text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
A silly question about $C_0$. <p>Let $X = \mathbb{R}^n$ and let $Z$ be a closed subspace of $X$. The inclusion map $i: Z \hookrightarrow X$ induces a map $C_0(X) \to C_0(Z)$ (via pullback). My question is simple: what is the kernel? The answer should either be $C_0(X - Z)$ or $C(X - Z)$ and I think I know which one is correct. But I need a sanity check, so I thought I would post the question here.</p>
0non-cybersec
Stackexchange
Post-Match Thread: FC Barcelona 2 - 2 Celta Vigo [La Liga]. [Aspas min 20](https://imgtc.com/uploads/dgfnmr0lDTB.mp4) [Messi min 22](https://imgtc.com/uploads/PTd4anOsxP2.mp4) [Suarez min 62](https://imgtc.com/uploads/Rg8XgTeuJ6v.mp4) [Gomez min 70](https://imgtc.com/uploads/C40Tobioa0W.mp4)
0non-cybersec
Reddit
Fedora 32 / dir has 73.4 gb but my disk it 1TB my home has ~700 gb. <p>my fedora system is attached to a 1TB disk but the / only has 73.4 gb and my home directory has ~700 gb why? df -h</p> <pre><code> Filesystem Size Used Avail Use% Mounted on devtmpfs 5.8G 0 5.8G 0% /dev tmpfs 5.8G 149M 5.7G 3% /dev/shm tmpfs 5.8G 2.3M 5.8G 1% /run /dev/mapper/fedora_localhost--live-root 69G 66G 0 100% / tmpfs 5.8G 24K 5.8G 1% /tmp /dev/loop5 128K 128K 0 100% /var/lib/snapd/snap/hello-world/29 /dev/loop4 63M 63M 0 100% /var/lib/snapd/snap/gtk-common-themes/1506 /dev/sda1 976M 315M 595M 35% /boot /dev/loop3 162M 162M 0 100% /var/lib/snapd/snap/gnome-3-28-1804/128 /dev/loop2 98M 98M 0 100% /var/lib/snapd/snap/core/9289 /dev/loop0 58M 58M 0 100% /var/lib/snapd/snap/discord/109 /dev/loop1 55M 55M 0 100% /var/lib/snapd/snap/core18/1754 /dev/mapper/fedora_localhost--live-home 841G 109G 689G 14% /home tmpfs 1.2G 16K 1.2G 1% /run/user/42 tmpfs 1.2G 196K 1.2G 1% /run/user/1000 /dev/sdb1 1.7T 125G 1.5T 8% /run/media/juliefilm/Dev_Large /dev/sdb2 221G 18G 203G 9% /run/media/juliefilm/Dev_Small </code></pre> <p>mount</p> <pre><code>sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) devtmpfs on /dev type devtmpfs (rw,nosuid,size=6036936k,nr_inodes=1509234,mode=755) securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755) cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate) pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime) none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700) configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime) /dev/mapper/fedora_localhost--live-root on / type ext4 (rw,relatime) systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=17257) hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M) tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime) debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime) mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime) tmpfs on /tmp type tmpfs (rw,nosuid,nodev) fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime) /var/lib/snapd/snaps/hello-world_29.snap on /var/lib/snapd/snap/hello-world/29 type squashfs (ro,nodev,relatime,x-gdu.hide) /var/lib/snapd/snaps/gtk-common-themes_1506.snap on /var/lib/snapd/snap/gtk-common-themes/1506 type squashfs (ro,nodev,relatime,x-gdu.hide) /dev/sda1 on /boot type ext4 (rw,relatime) /var/lib/snapd/snaps/gnome-3-28-1804_128.snap on /var/lib/snapd/snap/gnome-3-28-1804/128 type squashfs (ro,nodev,relatime,x-gdu.hide) /var/lib/snapd/snaps/core_9289.snap on /var/lib/snapd/snap/core/9289 type squashfs (ro,nodev,relatime,x-gdu.hide) /var/lib/snapd/snaps/discord_109.snap on /var/lib/snapd/snap/discord/109 type squashfs (ro,nodev,relatime,x-gdu.hide) /var/lib/snapd/snaps/core18_1754.snap on /var/lib/snapd/snap/core18/1754 type squashfs (ro,nodev,relatime,x-gdu.hide) /dev/mapper/fedora_localhost--live-home on /home type ext4 (rw,relatime) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime) tmpfs on /run/user/42 type tmpfs (rw,nosuid,nodev,relatime,size=1212744k,mode=700,uid=42,gid=42) tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1212744k,mode=700,uid=1000,gid=1000) gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000) /dev/sdb1 on /run/media/juliefilm/Dev_Large type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2) /dev/sdb2 on /run/media/juliefilm/Dev_Small type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2) portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000) [juliefilm@localhost /]$ df -h df: /run/user/1000/doc: Operation not permitted Filesystem Size Used Avail Use% Mounted on devtmpfs 5.8G 0 5.8G 0% /dev tmpfs 5.8G 149M 5.7G 3% /dev/shm tmpfs 5.8G 2.3M 5.8G 1% /run /dev/mapper/fedora_localhost--live-root 69G 66G 0 100% / tmpfs 5.8G 24K 5.8G 1% /tmp /dev/loop5 128K 128K 0 100% /var/lib/snapd/snap/hello-world/29 /dev/loop4 63M 63M 0 100% /var/lib/snapd/snap/gtk-common-themes/1506 /dev/sda1 976M 315M 595M 35% /boot /dev/loop3 162M 162M 0 100% /var/lib/snapd/snap/gnome-3-28-1804/128 /dev/loop2 98M 98M 0 100% /var/lib/snapd/snap/core/9289 /dev/loop0 58M 58M 0 100% /var/lib/snapd/snap/discord/109 /dev/loop1 55M 55M 0 100% /var/lib/snapd/snap/core18/1754 /dev/mapper/fedora_localhost--live-home 841G 109G 689G 14% /home tmpfs 1.2G 16K 1.2G 1% /run/user/42 tmpfs 1.2G 196K 1.2G 1% /run/user/1000 /dev/sdb1 1.7T 125G 1.5T 8% /run/media/juliefilm/Dev_Large /dev/sdb2 221G 18G 203G 9% /run/media/juliefilm/Dev_Small [juliefilm@localhost /]$ mount sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) devtmpfs on /dev type devtmpfs (rw,nosuid,size=6036936k,nr_inodes=1509234,mode=755) securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755) cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate) pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime) none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700) configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime) /dev/mapper/fedora_localhost--live-root on / type ext4 (rw,relatime) systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=17257) hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M) tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime) debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime) mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime) tmpfs on /tmp type tmpfs (rw,nosuid,nodev) fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime) /var/lib/snapd/snaps/hello-world_29.snap on /var/lib/snapd/snap/hello-world/29 type squashfs (ro,nodev,relatime,x-gdu.hide) /var/lib/snapd/snaps/gtk-common-themes_1506.snap on /var/lib/snapd/snap/gtk-common-themes/1506 type squashfs (ro,nodev,relatime,x-gdu.hide) /dev/sda1 on /boot type ext4 (rw,relatime) /var/lib/snapd/snaps/gnome-3-28-1804_128.snap on /var/lib/snapd/snap/gnome-3-28-1804/128 type squashfs (ro,nodev,relatime,x-gdu.hide) /var/lib/snapd/snaps/core_9289.snap on /var/lib/snapd/snap/core/9289 type squashfs (ro,nodev,relatime,x-gdu.hide) /var/lib/snapd/snaps/discord_109.snap on /var/lib/snapd/snap/discord/109 type squashfs (ro,nodev,relatime,x-gdu.hide) /var/lib/snapd/snaps/core18_1754.snap on /var/lib/snapd/snap/core18/1754 type squashfs (ro,nodev,relatime,x-gdu.hide) /dev/mapper/fedora_localhost--live-home on /home type ext4 (rw,relatime) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime) tmpfs on /run/user/42 type tmpfs (rw,nosuid,nodev,relatime,size=1212744k,mode=700,uid=42,gid=42) tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1212744k,mode=700,uid=1000,gid=1000) gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000) /dev/sdb1 on /run/media/juliefilm/Dev_Large type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2) /dev/sdb2 on /run/media/juliefilm/Dev_Small type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2) portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000) </code></pre> <p>gparted <a href="https://i.stack.imgur.com/HR1RS.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HR1RS.jpg" alt="my 1TB disk in gparted" /></a></p> <p><strong>solved: /usr wasnt writable odd but ok WORNG (still need answers)</strong></p>
0non-cybersec
Stackexchange
FROM CLAY TO MOSAICS.
0non-cybersec
Reddit
How to convert arrayBuffer into an mp3 audio?. <p>with using AudioContext of javascript the mixing of audio is achived and for exporting the audio mix i used OfflineAudioContext and,n, lame js to encode the decoded audio , now the expoort is working fine but it is very slow , i am looking for an efficient way to do that with more faster than the current one . </p>
0non-cybersec
Stackexchange
Does anyone freelance after hours?. As the title says; does anyone freelance after hours? Do level 1/2/3 work after hours for a few hours or a few nights as a way to get a side income? I would just gain a little extra income once my kids are in bed and wondering if anyone has a good link/site to get jobs for easy things (installations, virus removal, etc) or even harder things (like setting up new VMware hosts)? Thanks in advance.
0non-cybersec
Reddit
How can i meet more women by myself? and how can i form more intimate relations? (Crosspost from r/socialskills). I am a 22 year old male, i am reasonably attractive, kinda athletic, of average height, and have no crazy opinions or personality traits (as far as i know). People tend to regard me as a pretty calm person. I have friends, both male and female. I feel like i am quite socially adept, though i am (and always have been) quite introverted, but i have no problem talking to people (regardless of my relationship with them). No religious upbringing. But during my teens (and even today) i never really liked drinking or partying. So somewhere along the way, i did not get the memo on how to hook up, and how to make intimate connections. My problem is that i've never been in a relationship, nor have i been intimate with anyone, never been on a date or anything of that nature. This is something i keep to myself, but when asked, i tell the truth, which always seem to somewhat baffle people. Its not something i let define me as a person, or something that affects my selfworth (not anymore, at least), but i view it as a personal problem (which gets bigger as i age). And i am so tired of being alone/lonely, and never having anything "going on". Most of my friends are in relationships of their own, so whenever we go out its never with the intentions of "meeting people", which does not help my case. And just going out by my self seems like quite the crash and burn strategy, so how/where am i to meet women? People seem to get into this kind of things all the time, but i never do, and i don't know what to do about it. I've read a endless of threads suggesting that the most important/effective thing is to work on yourself and it will happen, but i seem to do nothing but. I do understand why i am single, but i honestly don't know how to solve the problem. So fellow redditors, do you have any advice/insight on how i can fix this? I want to have sex, flings, and girlfriends, but i am at a loss on how to approach this problem. How can i meet more women by myself? and how can i live a more hedonistic life? Edit: Sorry for the wall of text. For the lazy: just read second and last paragraph.
0non-cybersec
Reddit
Whose Line Is It Thursday: /r/electronicmusic - June 04, 2015. Welcome to **Whose Line Is It Thursday: /r/electronicmusic,** where everything's made up and the points don't matter. Guidelines: - Post a skit - Keep skits in the form of a statement, not a question. - Any skits longer than two lines should be in quotations. - If you add any additional commentary, put the skit in quotations. - If you don't understand the concept, a skit looks like this: "Song titles that would change the message of the song completely if one letter was removed." "The next fad to take over big room." "Things more elusive than the identity of UZ." Been having a lot of fun with this game over at /r/hiphopheads, /r/hockey, /r/baseball & /r/squaredcircle. Crack some jokes and enjoy yourselves rather than getting tied up trying to talk about music here.
0non-cybersec
Reddit
How to set up TightVNC Java viewer index.html on web server?. <p>I've got the Java TightVNC viewer applet set up with the provided index.html on my Mac OS X 10.6.3 with web sharing enabled.</p> <p>Using a remote computer I was able to get to the webpage but I only see a white box with an X (for error?) that represents where the viewer is supposed to be. Any ideas on how to get this to work?</p> <p>I've tried to set the port (in index.html) to 5900 and 5901, none worked. Are any of these the default VNC port for Mac OS X 10.6.3?</p> <p>Also, I've activated Screen Sharing and Remote Login in System Preferences, allowing VNC viewers to connect.</p> <p>Here is the code for my index.html:</p> <pre><code>&lt;HTML&gt; &lt;TITLE&gt; TightVNC desktop &lt;/TITLE&gt; &lt;APPLET CODE="classes/VncViewer.class" ARCHIVE="classes/VncViewer.jar" WIDTH="1440" HEIGHT="900"&gt; &lt;PARAM NAME="PORT" VALUE="5900"&gt; &lt;PARAM NAME="Scaling factor" VALUE="50"&gt; &lt;/APPLET&gt; &lt;BR&gt; &lt;A href="http://www.tightvnc.com/"&gt;TightVNC site&lt;/A&gt; &lt;/HTML&gt; </code></pre> <p>Again I can get to this page, but the applet doesn't seem to work, the Java console also doesn't say anything.</p> <p>Thanks in advance for your help!</p>
0non-cybersec
Stackexchange
Unable to get django declared app routes working as pages. <p>I am creating an Django app and am facing issues with routes not being identified. It is the same DJango poll app I am trying to create but the documentation code does not work. Here is my code below:</p> <p><code>djangoproject/urls.py</code></p> <pre><code>from django.conf.urls import url, include from django.contrib import admin urlpatterns = [ url(r'^simpleapp/', include('simpleapp.urls')), url(r'^admin/', admin.site.urls), ] </code></pre> <p><code>simpleapp/views.py</code></p> <pre><code>from django.shortcuts import render from django.http import HttpResponse, request def index(request): return HttpResponse("Hello, world. You're at the polls index.") def detail(request, question_id): return HttpResponse("You're looking at question %s." % question_id) def results(request, question_id): response = "You're looking at the results of question %s." return HttpResponse(response % question_id) def vote(request, question_id): return HttpResponse("You're voting on question %s." % question_id) </code></pre> <p><code>simpleapp/urls.py</code></p> <pre><code>from django.conf.urls import url from . import views urlpatterns = [ # ex: /simpleapp/ # url('', views.index, name='index'), # ex: /simpleapp/5/ url('&lt;int:question_id&gt;/', views.detail, name='detail'), # ex: /simpleapp/5/results/ url('&lt;int:question_id&gt;/results/', views.results, name='results'), # ex: /simpleapp/5/vote/ url('&lt;int:question_id&gt;/vote/', views.vote, name='vote'), ] </code></pre> <p>If I un-comment the first url of '' path of <code>simpleapp/urls.py</code> code, all the pages shown are '' path. However, if I keep the url '' path commented, then the routes give me the following error:</p> <pre><code>Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000/simpleapp/34/ Using the URLconf defined in simple_django.urls, Django tried these URL patterns, in this order: ^simpleapp/ &lt;int:question_id&gt;/ [name='detail'] ^simpleapp/ &lt;int:question_id&gt;/results/ [name='results'] ^simpleapp/ &lt;int:question_id&gt;/vote/ [name='vote'] ^admin/ The current path, simpleapp/34/, didn't match any of these. You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page. </code></pre> <p>I was unable to get the <code>path()</code> imported using <code>django.conf.urls</code> or <code>django.urls</code>. <code>url()</code> was successful. I am using python version 3.6.7 and Django version 2.1.5. What am I missing?</p> <p><a href="https://i.stack.imgur.com/PSL46.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PSL46.png" alt="enter image description here"></a></p> <p><a href="https://i.stack.imgur.com/fDskW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fDskW.png" alt="enter image description here"></a></p> <p><a href="https://i.stack.imgur.com/8Oy8F.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8Oy8F.png" alt="enter image description here"></a></p> <p><a href="https://i.stack.imgur.com/GUi7j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GUi7j.png" alt="enter image description here"></a></p>
0non-cybersec
Stackexchange
Mouse pointer disappears when moving over the Virtualbox guest terminal? Why?. <p>When I move the mouse pointer over the windows it disappears from that windows? What if I need to copy dome text from the guest terminal?<br> Also, I cannot Use the menu key in the guest terminal in order to copy and paste commands. </p> <p>Host: Fedora 22<br> Guest: Ubuntu server 14.04</p>
0non-cybersec
Stackexchange
Not your average fireworks.
0non-cybersec
Reddit
issue with endnotes and macros. <p>I have the following issue with endnotes and macros. Here is the code:</p> <pre class="lang-latex prettyprint-override"><code>\documentclass{article} \usepackage{endnotes} \begin{document} \def\tmp{yellow} yellow\endnote{\tmp} \def\tmp{blue} blue\endnote{\tmp} \theendnotes \end{document} </code></pre> <p>Output is:<a href="https://i.stack.imgur.com/oomN7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oomN7.png" alt="enter image description here"></a></p> <p>In other words the second definition of /tmp kills the content of the first endnote. This is caused by the way endnotes handles macros and generates the .ent file:</p> <pre class="lang-latex prettyprint-override"><code>\@doanenote {1} macro:-&gt;\tmp \@endanenote \@doanenote {2} macro:-&gt;\tmp \@endanenote </code></pre> <p>Is there a way around it? I have a fairly complex tex application where endnote content is assembled at runtime from a database (using package datatool) and I can't avoid the use of macros. Content is however fairly simple and made of simple text, nothing fancy. I'd like to pass to \endnote{} this simple text and not the macro used to generate it, but I'm at a loss. Sorry if the answer is kinda trivial.</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
Convergence of Fourier integral. <p>I have noticed that the Fourier integral $\int_{-\infty}^\infty \mathscr{F}f(\omega) e^{i\omega t} d\omega $ of $f(t) = \mu(t) e^{-t}$, where $\mathscr{F}f(\omega) = \frac{1}{2\pi} \int_{-\infty}^\infty f(t) e^{-i\omega t} dt$ and $\mu(t)$ is the step function diverges at $t = 0$. Is there a beautiful notation using the Riemann-integral that fixes the problem? Here I mean the improper Riemann-integral of the first kind. I have considered the operator pair \begin{eqnarray} \mathscr{F}f(\omega) &amp; = &amp; \frac{1}{2\pi} \int_0^\infty (f(t) e^{-i\omega t} + f(-t) e^{i\omega t}) dt \\ \mathscr{F}'F(t) &amp; = &amp; \int_0^\infty (F(\omega) e^{i\omega t} + F(-\omega) e^{-i\omega t}) d\omega \ , \end{eqnarray} that is defined for functions $f$ that satisfy i) $\mathscr{F}f$ exists everywhere, ii) $\mathscr{F}' \mathscr{F}f$ exists everywhere, iii) $\mathscr{F}' \mathscr{F} f = f$. The Cauchy principal value would be ideal, but I don't quite like the notation P.V. in front of the integral and it might allow functions to satisfy all conditions without being locally bounded. The limit form $\lim_{M \rightarrow \infty} \int_{-M}^M f(x) dx$ isn't good either because it isn't notationally optimal for applications. I mean that for example the formula $De^x = e^x$ is simple but $D \lim_{n \rightarrow \infty} \big(1+\frac{x}{n}\big)^n = \lim_{n \rightarrow \infty} \big(1+\frac{x}{n}\big)^n$ is a little more complicated. I would want to find good expressions for Fourier and inverse Fourier transform that exist everywhere for some important functions familiar from signal processing including $\chi_{[-1,1]}(x)$ and $\textrm{sinc}(x)$.</p>
0non-cybersec
Stackexchange
Is my “give me treats” face still working?.
0non-cybersec
Reddit
Blueberry with blueberry tumor.
0non-cybersec
Reddit
Does adding a lower step progression into a higher step progression make any sense?. For example, at the moment I can do two sets of 3 pull ups followed by a set of 2 pull ups before my body unceremoniously murders my form. Would there be any benefit to trying to add negative pull ups at the end of every normal pull up set; or will this just tire me out needlessly and slow down the pull up progression?
0non-cybersec
Reddit
How can i automatically (FTP) upload files when saving with Netbeans?. <p>I am building a php project with Netbeans. Is there a way to automatically upload the files to the host when saving, using FTP?</p>
0non-cybersec
Stackexchange
[Homemade] fresh bread.
0non-cybersec
Reddit
I'm not a star, somebody lied....
0non-cybersec
Reddit
Who uses keywords (and how)?. <p>Almost all journals ask for keywords and most authors comply.</p> <p>Does any math researcher out there actually use them to search? Are there mechanisms to do that?</p> <p>I just wrote to someone that I assumed no one uses them because I never do. It then occurred to me that my assumption might be wrong.</p> <p>Educate me.</p> <p>(BTW, the MO auto-criticism mechanism is giving me this message: "That's not a very good title. Can you add some more unique words to it?" The implicit self references in the situation make it too difficult for me to even try.)</p> <p>(Second BTW, this question either has never been asked here, or it was deemed worthy of being expunged.)</p>
0non-cybersec
Stackexchange
Convert a list of objects to an array of one of the object&#39;s properties. <p>Say I have the following class:</p> <pre><code>public class ConfigItemType { public string Name { get; set; } public double SomeOtherThing { get; set; } } </code></pre> <p>and then I make a list of the following classes (<code>List&lt;ConfigItemType&gt; MyList</code>)</p> <p>Now I have a method with the following signature:</p> <pre><code>void AggregateValues(string someUnrelatedValue, params string[] listGoesHere) </code></pre> <p>How can I fit <code>MyList</code> in to the <code>listGoesHere</code> using the value in <code>ConfigItemType.Name</code> as the params string array?</p> <p>I am fairly sure that Linq can do this.... but <code>MyList</code> does not have a <code>select</code> method on it (which is what I would have used).</p>
0non-cybersec
Stackexchange
Deterministic RSA blinding. <p>I have an implementation of the RSA private key operation in a context where I don't have access to an entropy source. I'd like to add blinding to it (both message and exponent), to make it resist some side channel attacks.</p> <p>(The subsequent padding operation does have access to an entropy source. It's only the exponentiation operation that can't use an RNG.)</p> <p>I can run a PRNG inside the RSA private operation if I want. My constraint is that <code>rsa_private</code> has to be deterministic: its operation can only depend on its inputs (message and private key).</p> <p>Is it sensible to do blinding deterministically, i.e. use a PRNG that is seeded by the message and the key? And if so should it be seeded by message+key or key alone? Or does the blinding need to be unpredictable?</p> <p>I'm interested in the answer for both CRT and straight $m^d$ implementations.</p>
1cybersec
Stackexchange
How to Properly Migrate SQL. <p>If I am changing servers, I usually migrate my wordpress database by going to phpmyadmin and doing an SQL Export on one server and doing an Import on the other server.</p> <p>I notice that in this process, some times my data gets malformed.</p> <p>For example, " : ' ~ ... etc, these characters may turn into weird stuff like ‚ÂÂ</p> <p>What am I doing wrong?</p>
0non-cybersec
Stackexchange
The current state of Reddit.
0non-cybersec
Reddit
On the evaluation of $\int_0^\infty e^{-x^2} \sin \left (\frac{1}{4x^2} \right ) \, dx$. <p>When attempting to find an alternative solution to this question <a href="https://math.stackexchange.com/questions/2580285/is-it-possible-to-compute-int-infty-infty-x-sin-x-over-x41dx-withou">here</a>, which called for the evaluation of the integral $$\int_0^\infty \frac{x \sin x}{1 + x^4} \, dx$$ using real methods, I ran up against the following improper integral $$\int_0^\infty e^{-x^2} \sin \left (\frac{1}{4 x^2} \right ) \, dx. \tag1$$ A value for this improper integral can be found. It is $$\frac{\sqrt{\pi}}{2} \exp \left (-\frac{1}{\sqrt{2}} \right ) \sin \left (\frac{1}{\sqrt{2}} \right ),$$ and is what I am having trouble in finding.</p> <p>I have tried a number of the various tricks one typically employs when attempting to find such integrals such as Feynman trick of differentiating under the integral sign, series solution, and so on, all to no avail (perhaps I missed something here).</p> <p>One method that looked promising was to use <a href="https://en.wikipedia.org/wiki/Laplace_transform#Evaluating_integrals_over_the_positive_real_axis" rel="noreferrer">properties for the (inverse) Laplace transform</a>, namely $$\int_0^\infty f(x) g(x) \, dx = \int_0^\infty (\mathcal{L} f)(s) \cdot (\mathcal{L}^{-1} g)(s) \, ds.$$</p> <p>After enforcing a change of variable $x \mapsto \dfrac{1}{2 \sqrt{x}}$ we have \begin{align*} \int_0^\infty e^{-x^2} \sin \left (\frac{1}{4 x^2} \right ) \, dx &amp;= \frac{1}{4} \int_0^\infty \frac{e^{-1/(4x)}}{x^{3/2}} \cdot \sin x \, dx\\ &amp;= \int_0^\infty \mathcal{L} \{\sin x\} \cdot \mathcal{L}^{-1} \left \{\frac{e^{-1/(4x)}}{x^{3/2}} \right \} \, ds\\ &amp;= \frac{1}{4} \int_0^\infty \frac{1}{s^2 + 1} \cdot \frac{2 \sin (\sqrt{s})}{\sqrt{\pi}} \, ds\\ &amp;= \frac{1}{\sqrt{\pi}} \int_0^\infty \frac{s \sin s}{1 + s^4} \, ds, \tag2 \end{align*} where in the last line a substitution of $s \mapsto s^2$ has been made.</p> <p>While this is a perfectly valid approach the only problem is the integral one ends up with in (2) is exactly the integral one started out with.</p> <p>So my question is</p> <blockquote> <p>Is it possible to evaluate the integral given in (1) using real methods that does not depend on evaluating the integral given in (2)?</p> </blockquote>
0non-cybersec
Stackexchange
Sub-Query or Join with embedded/nested document using C# LINQ with MongoDB. <p>I am trying to do something like bellow example but getting exception as - System.ArgumentException: Expression of type 'System.Collections.Generic.IEnumerable<code>1 ' cannot be used for parameter of type 'System.Linq.IQueryable</code>1' of method. Here is my code and related classes . how can i resolve this issue, is there any way except which a trying to do.</p> <pre><code> var channels = _channelService.Collection; var tracks = _trackService.Collection; var query = from b in tracks.AsQueryable() select b; var data = (from q in channels.AsQueryable() from p in q.Episodes //from x in trackcoll.AsQueryable() select new { p, Tracks = query.Where(w =&gt; p.Tracks.Contains(w.Id)) }).ToList(); // Related classes public class ContentBase : IAuditable { public string Id { get; set ; } public string CreatedBy { get ; set ; } public string CreatedOn { get ; set ; } public string UpdatedBy { get ; set ; } public string UpdatedOn { get; set; } } public class Channel: ContentBase { public List&lt;Episode&gt; Episodes { get; set; } } public class Episode: ContentBase { // List of track Id public List&lt;string&gt; Tracks { get; set; } } public class Track: ContentBase { public string TrackUrl { get; set; } public string Duration { get; set; } public string Size { get; set; } public string ContentType { get; set; } </code></pre>
0non-cybersec
Stackexchange
iOS Playground doesn&#39;t show UI preview. <p>I've created a simple playground with XCode 7.1 and I've typed this simple code:</p> <pre><code>import UIKit import XCPlayground var str = "Hello, playground" let color = UIColor (red: 1 , green: 1 , blue: 0 , alpha: 0 ) let view = UIView() view.backgroundColor = UIColo (colorLiteralRed: 1 , green: 0 , blue: 0 , alpha: 0 ) view.frame = CGRect (x: 0 ,y: 0 ,width: 100 ,height: 100 ) let label = UILabel (frame: CGRect (x: 5 , y: 5 , width: 50 , height: 20 )) label.text = str view.addSubview(label) </code></pre> <p>When the playground runs, it doesn't show UIKit object preview, but only debug information:</p> <p><a href="https://i.stack.imgur.com/1EHL7.png"><img src="https://i.stack.imgur.com/1EHL7.png" alt="playground"></a></p> <p>What am I doing wrong?</p>
0non-cybersec
Stackexchange
This makes me want to actively avoid your website. Stop doing this..
0non-cybersec
Reddit
How to access local site from other computer on windows PC. <p>On my linux pc i access webisite by going <a href="http://site1.local" rel="nofollow noreferrer">http://site1.local</a></p> <p>I have setup virtual host in httpd.conf</p> <p>I want that when i should be able to access that address from windows PC.</p> <p>In the windows hosts file i have written</p> <pre><code>192.168.1.81 site1.local </code></pre> <p>But still i can't access the page.</p> <p>i can ping that adress but not get the webpage to work</p>
0non-cybersec
Stackexchange
A tangent, a few doubts. <p>I have a question: A tangent, I am told is a line through a specified point (a, f(a)) which touches no other point in atleast one neighbourhood of 'a'. How do I prove from here that a tangent is also a line of best approximation of the function in that neighbourhood? Thanking all in anticipation :) Edit: Another question that comes to my mind is: Why can't there be more than one such lines which suffice to be the "best approximation" of the unique function ? i got this question while reading arturo's pleasant <a href="https://math.stackexchange.com/a/12290/46124">answer</a>.</p>
0non-cybersec
Stackexchange
Make Lotus Notes mail sent by .NET program save sent mail to a different folder. <p>I have a .NET program that runs on my PC (Windows XP Pro) that periodically sends automated email messages through my Lotus Notes client.</p> <p>Is there a way in my .NET code that I can tell it to save the sent mail to a different Lotus Notes folder and not in my normal Sent mail folder? I want my Sent mail folder to only contain emails I send myself, and not have my program's sent mail mixed in.</p>
0non-cybersec
Stackexchange
Proof a quantified predicate logic statement. <p>I am having trouble really understanding how to prove this </p> <p>$$(S(y) \to T(y)) \land S(x) \to (∃x)T(x).$$</p> <p>My solution so far is:</p> <ol> <li><p>$S(y) \to T(y)$ --- Hypothesis</p></li> <li><p>$S(x)$ --- Hypothesis</p></li> <li><p>$T(y)$ --- Modus Ponens of 1 and 2</p></li> <li><p>$(∃x)T(x)$ --- Existential Generalization of 3</p></li> </ol> <p>It seems incorrect to me due to the usage of x and y. Can anyone help with this?</p>
0non-cybersec
Stackexchange
ASA 5505 blocks users. <p>I have recently installed an ASA 5505. But now i have users that are being blocked/kicked from the internet. </p> <p>What can i do to prevent this?</p> <p>Here is the running config:</p> <p>Result of the command: "sh run"</p> <pre><code>: Saved :ASA Version 9.0(1) ! hostname ciscoasa enable password ------------- encrypted passwd ------------ encrypted names ! interface Ethernet0/0 switchport access vlan 2 ! interface Ethernet0/1 ! interface Ethernet0/2 ! interface Ethernet0/3 ! interface Ethernet0/4 ! interface Ethernet0/5 ! interface Ethernet0/6 ! interface Ethernet0/7 ! interface Vlan1 nameif inside security-level 100 ip address 192.168.1.1 255.255.255.0 ! interface Vlan2 nameif outside security-level 0 ip address xxx.xxx.xxx.xxx 255.255.255.248 ! ftp mode passive object network obj_any subnet 0.0.0.0 0.0.0.0 pager lines 24 logging enable logging asdm informational mtu inside 1500 mtu outside 1500 icmp unreachable rate-limit 1 burst-size 1 no asdm history enable arp timeout 14400 no arp permit-nonconnected ! object network obj_any nat (inside,outside) dynamic interface route outside 0.0.0.0 0.0.0.0 xxx.xxx.xxx.xxx 1 timeout xlate 3:00:00 timeout pat-xlate 0:00:30 timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02 timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00 timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00 timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute timeout tcp-proxy-reassembly 0:01:00 timeout floating-conn 0:00:00 dynamic-access-policy-record DfltAccessPolicy user-identity default-domain LOCAL http server enable http 192.168.1.0 255.255.255.0 inside no snmp-server location no snmp-server contact snmp-server enable traps snmp authentication linkup linkdown coldstart warmstart crypto ipsec security-association pmtu-aging infinite crypto ca trustpool policy telnet timeout 5 ssh timeout 5 console timeout 0 dhcpd dns xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx dhcpd auto_config outside ! dhcpd address 192.168.1.5-192.168.1.30 inside dhcpd enable inside ! threat-detection basic-threat threat-detection statistics host threat-detection statistics port threat-detection statistics protocol threat-detection statistics access-list no threat-detection statistics tcp-intercept ! class-map inspection_default match default-inspection-traffic ! ! policy-map type inspect dns preset_dns_map parameters message-length maximum client auto message-length maximum 512 policy-map global_policy class inspection_default inspect dns preset_dns_map inspect ftp inspect h323 h225 inspect h323 ras inspect rsh inspect rtsp inspect esmtp inspect sqlnet inspect skinny inspect sunrpc inspect xdmcp inspect sip inspect netbios inspect tftp inspect ip-options ! service-policy global_policy global prompt hostname context no call-home reporting anonymous Cryptochecksum:dac8da9f3df0438bed0b9b1b714a1e67 : end </code></pre>
0non-cybersec
Stackexchange
$\sum_{p|q_n} (\log p)^\alpha\sim n(\log n)^\alpha, n\to\infty $, where $q_n:=\prod_{j\leq n}p_j$. <p>Let $\alpha \in (0,1)$ and let $p_j$ be the sequence of primes and let $q_n:=\prod_{j\leq n}p_j$. Prove that $$ \sum_{p|q_n} (\log p)^\alpha \sim n(\log n)^\alpha \qquad n\to\infty $$</p> <p>I am stuck here. Most what I proved is that $\sum_{p|q} (\log p)^\alpha \leq (\omega(q))^{1-\alpha} (\log q)^\alpha$, and then $\omega(q_n) = n$, but I am not sure if I can use this somehow ($\omega(n) = $ no. of distinct prime divisors of n). Any help?</p>
0non-cybersec
Stackexchange
What is your current mentality on life? What do you believe is a good mentality to have?. I've been putting a lot of thought on my mindset and how I should operate on a day to day basis. I'm 22 and have trouble with motivation, anxiety, and depression but it is something I have slowly been working on. However in the mornings and at night before I go to bed my mindset is awful which doesn't help my sleep at all, essentially I don't look forward to the day ahead. How do you get the energy to not have that mindset and take care of task that come to you. Sometimes I feel like I've done "enough" for the day, like after a day of work I don't want to go workout or do this extra task but it would benefit me. Curious of what your mentality is? Would like to learn from others and start working even harder on fixing my perception.
0non-cybersec
Reddit
Here's my second set of walls collection..
0non-cybersec
Reddit
Face transplant.
0non-cybersec
Reddit
The Fallen of World War II(2016) - An animated data-driven documentary about war and peace.
0non-cybersec
Reddit
Halloween flash tattoo by Alicia @ Living Colour Tattoo Studio in ottawa.
0non-cybersec
Reddit
I'm getting tired of broccoli and asparagus. What are your favorite vegetable recipes?. My personal goal is to eat healthier. My biggest struggle in this goal is getting enough vegetables. Right now I'm eating either broccoli or asparagus almost everyday, but I know it's healthier to eat a wider variety of vegetables and I'm getting tired of the same thing. What are you favorite ways to prepare vegetables?
0non-cybersec
Reddit
What are the integer coeffcients of a cubic polynomial having two particular properties?. <p>Let <span class="math-container">$f(x) = x^3 + a x^2 + b x + c$</span> and <span class="math-container">$g(x) = x^3 + b x^2 + c x + a\,$</span> where <span class="math-container">$a, b, c$</span> are integers and <span class="math-container">$c\neq 0\,$</span>. Suppose that the following conditions hold:</p> <ol> <li><span class="math-container">$f(1)=0$</span> </li> <li>The roots of <span class="math-container">$g(x)$</span> are squares of the roots of <span class="math-container">$f(x)$</span>.</li> </ol> <p>I'd like to find <span class="math-container">$a, b$</span> and <span class="math-container">$c$</span>.</p> <p>I tried solving equations made using condition 1. and relation between the roots, but couldn't solve. The equation which I got in <span class="math-container">$c$</span> is <span class="math-container">$c^4 + c^2 +3 c-1=0$</span> (edit: eqn is wrong). Also I was able to express <span class="math-container">$a$</span> and <span class="math-container">$b$</span> in terms of <span class="math-container">$c$</span>. But the equation isn't solvable by hand. </p>
0non-cybersec
Stackexchange
Crack is whack.
0non-cybersec
Reddit
How do I uninstall Internet Explorer 9 so I can install Internet Explorer 6?. <p>I've tried uninstalling Internet Explorer 9 in Windows 7 from Control Panel, it always produces an error and fails. From Command Prompt, it didn't do anything. The file can not be deleted. I can move it, and then delete it through Linux (dual-boot), on booting back into Windows, Internet Explorer 9 is there. </p> <p>I want to install Internet Explorer 6 for my father for an exam he wants to take, but am unable to install it, because Internet Explorer 9 cannot be removed. I even tried to delete the relevant registry entries with regedit, but that doesn't help either. </p> <p>Is there some way to accomplish this? If not, are there other solutions I should be considering?</p>
0non-cybersec
Stackexchange
Renaissance Costume Suggestions.
0non-cybersec
Reddit
Can any long term investment alternative plan beat out semi-maxing out or Maxing-Out 401k at work?. Can any long term investment alternative plan beat out semi-maxing out or Maxing-Out 401k at work? Just saw a really negative slide show about the negatives and downsides of 401k.
0non-cybersec
Reddit
Relative strength and propositional indistinguishability of non-distributive lattices. <p>Consider the class of bounded non-distributive lattices <span class="math-container">$\mathbf{Mn}$</span> (<span class="math-container">$n\geqslant 3$</span>). <a href="https://i.stack.imgur.com/1W6QF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1W6QF.png" alt=""></a> From left to right: <strong>M3</strong>, <strong>M4</strong>, <strong>Mn</strong></p> <p>Now consider a propositional language over <span class="math-container">$\{\wedge,\vee,\neg\}$</span> with the following semantics: <span class="math-container">$\wedge$</span> and <span class="math-container">$\vee$</span> correspond to the meet and join of a lattice while <span class="math-container">$\neg$</span> works as follows: <span class="math-container">$\neg\top=\bot$</span>, <span class="math-container">$\neg\bot=\top$</span>, <span class="math-container">$\neg\mathbf{k}=\mathbf{k}$</span> (<span class="math-container">$\mathbf{k}\leqslant\mathbf{n}$</span>). A valuation <span class="math-container">$v$</span> maps propositional variables to the underlying set of some fixed lattice.</p> <p>For formulas <span class="math-container">$\phi$</span> and <span class="math-container">$\chi$</span> in our language say that <span class="math-container">$\phi\vDash_{\mathbf{Mn}}\chi$</span> iff <span class="math-container">$$\forall v:v(\phi)\leqslant_{\mathbf{Mn}}v(\phi)$$</span></p> <p>Now we call two lattices <span class="math-container">$\mathfrak{L}$</span> and <span class="math-container">$\mathfrak{L}'$</span> <em>propositionally indistinguishable</em> iff for any two formulas over <span class="math-container">$\{\wedge,\vee,\neg\}$</span> <span class="math-container">$\phi$</span> and <span class="math-container">$\chi$</span> <span class="math-container">$$\phi\vDash_{\mathfrak{L}}\chi\Leftrightarrow\phi\vDash_{\mathfrak{L}'}\chi$$</span></p> <p>We say that <span class="math-container">$\mathfrak{L}$</span> is <em>stronger</em> that <span class="math-container">$\mathfrak{L}'$</span> iff for any <span class="math-container">$\phi$</span> and <span class="math-container">$\chi$</span> <span class="math-container">$$\phi\nvDash_{\mathfrak{L}'}\chi\Rightarrow\phi\nvDash_{\mathfrak{L}}\chi$$</span></p> <p>The question is, thus, as follows.</p> <p><strong>Is it true that all <span class="math-container">$\mathbf{Mn}$</span> lattices are indistinguishable? If yes, how can we prove it (or where it has been proved)?</strong></p>
0non-cybersec
Stackexchange
I Want To Create Programming Videos (Tutorials) For My Fellow Redditors!. Dear r/learnprogramming, I love to teach and would be happy to create programming tutorials for my fellow programmers at r/learnprogramming on topics that you want to learn more about, focusing on general programming knowledge and machine learning. Hope that I can help some of you to become better programmers! - Post your request in the comments section. - Topics will be chosen out of comment upvotes. - I will publish the video in r/learnprogramming and ping you when it’s uploaded. Happy coding :) <3 **EDIT:** Video length will vary per tutorial, everything from 5 minutes to 1.5 hours. I'm very open to suggestions! **EDIT 2:** Got asked to put these on a YouTube. I do already have an existing YouTube channel on machine learning / programming, and the videos will be uploaded there. You can find it here: https://www.youtube.com/channel/UCskG7xk7hK7n8wSZsblz2vQ I will also, as earlier mentioned, upload any tutorial requested here on r/learnprogramming as well, linking to that video and mentioning the person who requested it. **EDIT 3:** Wow! Happy to see so many people interested. FYI, I've also set up a community on Slack a while ago about programming/AI/blockchain, and there are some people in there that are learning programming (#programming) right now, that you could engage with to learn from each other. I go there quite often to answer people's questions in person as well. See the following invite link. Slack Community: https://join.slack.com/t/oscaralsingcommunity/shared_invite/enQtMjkwNjc5NDY4NTYxLWQxNWE5MWRiNjY2MDU2YjVhZjU3NDk2ZmU0ZDI4YzM2ZTllMjQ3OWMyNTI3OTQ1YThmYTNjMDQwNGMzZWFkOGY **Thanks for all the great requests so far! Super keen to start doing the tutorials :)**
0non-cybersec
Reddit
Dreamweaver not recognizing symbolic link as directory. <p>I have this directory</p> <pre><code>drwxrwxr-x 6 awdfiles pasgroup 4096 Jan 31 17:20 awdfiles </code></pre> <p>Which I want to access via another FTP connection. The user is part of the <code>pasgroup</code></p> <p>I traverse to the root html directory of my desired user and create the symlink</p> <pre><code>$ cd rayhawkpas/dev $ ln -s ../../awdfiles awdfiles lrwxrwxrwx 1 rayhawkpas rayhawkpas 14 Feb 6 13:06 awdfiles -&gt; ../../awdfiles </code></pre> <p>However, when I try to download the directory in dreamweaver it looks like this</p> <p><img src="https://i.stack.imgur.com/vkYio.png" alt="enter image description here"></p> <p>It seems to not recognize that it's a directory.</p> <p>I tried symlinking to a specific file to make sure my permissions were right</p> <pre><code>ln -s ../../awdfiles/themes/1/includes/header.php test.php </code></pre> <p>This worked fine. It showed up in dreamweaver and I was able to download and upload the file.</p>
0non-cybersec
Stackexchange
[WP] You are an extremely Americanized character who has just been dropped into a typical high school anime that is riddled with all of the common anime tropes. Try as you might, you can't understand why the other characters behave the way they do..
0non-cybersec
Reddit
Strong mixing property for endomorphisms of a finite set. <p>Let's consider $X = \{1, 2, \ldots, n \}$. I would like to establish, how many of the maps $f: X \to X$ have the following strong mixing property:</p> <blockquote> <p>For a given triple $(X, \mathcal{B}, \mu)$, $T: X \to X$ is strong mixing, if it preserves measure and the shares the following property $\mu(T^{-n}(A) \cap B) \rightarrow \mu(A) \mu(B)$, as $n \to \infty$</p> </blockquote> <p>Then, after several attempts i've found it quite challenging to find a general approach to the problem that might work. (after considering some cases in particular)</p> <p>Are there any hints that might help?</p>
0non-cybersec
Stackexchange
How to ban password use on Ubuntu Hardy?. <p>How to ban password use on Ubuntu Hardy?</p> <p>I will be using Ubuntu instances on EC2 where passwords are not used but private keys are used to login via ssh.</p> <p>Thanks for help.</p>
0non-cybersec
Stackexchange
Darrell Bevell fired as offensive coordinator of the Seattle Seahawks after seven seasons, per sources..
0non-cybersec
Reddit
Reference request: A collection of topologies on $\mathbb{N}$ formed via series. <p>First, some quick notation: for any series $\sum_{n=1}^\infty a_n$ whose terms are positive real numbers, and for any subset $M = \{m_1, m_2,...\} \subseteq \mathbb{N}$, we write $\sum_M a_n$ to mean $a_{m_1} + a_{m_2} + ....$.</p> <p>Then, for each series, one can associate a topology on $\mathbb{N}$ by declaring a proper subset $M\subsetneq \mathbb{N}$ to be closed iff $\sum_M a_n &lt; \infty$. So, e.g., in the $\sum \frac{1}{n}$-topology, the set of even numbers is neither open nor closed (both $\sum \frac{1}{2n+1}$ and $\sum \frac{1}{2n}$ diverge), but the set of squares is closed ($\sum \frac{1}{n^2}$ converges).</p> <p>There is, of course, an interplay between the topological properties $\mathbb{N}$ inherits and the analytic properties of $\sum a_n$. For instance, $\mathbb{N}$ gets the cofinite topology iff $\liminf a_n &gt; 0$.</p> <p>Much less trivially, <a href="https://math.stackexchange.com/questions/2429389/is-there-a-bijection-of-the-natural-numbers-which-swaps-frac1n-summable-s">one can show</a> that this association generates precisely $|\mathbb{R}|$ many topologies on $\mathbb{N}$ (distinct up to homeomorphism). In fact, for $0\leq p &lt; q \leq 1$, the spaces obtained from $\sum \frac{1}{x^p}$ and $\sum \frac{1}{x^q}$ are not homeomorphic.</p> <p>I am not a general topologist by training so my question is probably very simple. Has anything like this appeared in the literature before? MathSciNet doesn't seem to turn up anything, but maybe there is some terminology I need to know. Maybe these form a subclass in some well studied class of topological spaces?</p> <p>In case it helps, here are some curious data points about these topological spaces.</p> <ol> <li>They are homogeneous. More generally, the homeomorphism group acts transitively on the set of $k$-element subsets for any fixed $k$.</li> <li>Every subset is closed or dense. (This is equivalent to the topology being downward-closed: every subset of a proper closed set is closed.)</li> <li>If $\lim_{n\rightarrow \infty} a_n = 0$ but $\sum a_n$ diverges, then any non-empty open set is homeomorphic to $\mathbb{N}$. </li> </ol>
0non-cybersec
Stackexchange
The new year is off to a good start. Day two of my workbench build..
0non-cybersec
Reddit
Share a Wi-Fi connection. <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://superuser.com/questions/446186/share-a-wi-fi-connection">Share a Wi-Fi connection</a> </p> </blockquote> <p>I have a wifi connection [wifi000] and I want to share it. When I use adhoc connection to do this, I have to disconnect from my wifi000. So how can I share my current wifi connection providing another wifi connection or using a cable? I'm using windows7.</p> <p>Thank you!</p>
0non-cybersec
Stackexchange
Udev hwdb rule does not work. <p>I am switching from Ubuntu to Arch Linux and encountering the issue that a udev hwdb rule that has worked until now does not work anymore. The only obvious difference between the systems is that Ubuntu uses udev version 219 and Arch uses udev version 221.</p> <p>I have the following contents in <code>/etc/udev/hwdb.d/90-logitech-m560.hwdb</code> on both systems:</p> <pre><code>keyboard:usb:v046DpC52B* KEYBOARD_KEY_90004=left KEYBOARD_KEY_90005=right KEYBOARD_KEY_70007=back KEYBOARD_KEY_700E7=forward </code></pre> <p>On Ubuntu it worked after executing <code>udevadm hwdb --update</code> and rebooting.</p> <p>However on Arch, I have executed the command <code>udevadm hwdb --update</code> (multiple times) und rebooted (also multiple times) and also tested <code>udevadm trigger</code> and <code>udevadm control --reload</code> as suggested by other answers here but nothing has worked so far. <strong>So my question is: How do I get this udev rule to work in Arch Linux?</strong></p> <p>This is the evdev output on Ubuntu (where it works):</p> <pre><code>Input driver version is 1.0.1 Input device ID: bus 0x3 vendor 0x46d product 0x402d version 0x111 Input device name: "Logitech M560" Supported events: Event type 0 (EV_SYN) Event type 1 (EV_KEY) Event code 1 (KEY_ESC) Event code 2 (KEY_1) Event code 3 (KEY_2) Event code 4 (KEY_3) Event code 5 (KEY_4) Event code 6 (KEY_5) Event code 7 (KEY_6) Event code 8 (KEY_7) Event code 9 (KEY_8) Event code 10 (KEY_9) Event code 11 (KEY_0) Event code 12 (KEY_MINUS) Event code 13 (KEY_EQUAL) Event code 14 (KEY_BACKSPACE) Event code 15 (KEY_TAB) Event code 16 (KEY_Q) Event code 17 (KEY_W) Event code 18 (KEY_E) Event code 19 (KEY_R) Event code 20 (KEY_T) Event code 21 (KEY_Y) Event code 22 (KEY_U) Event code 23 (KEY_I) Event code 24 (KEY_O) Event code 25 (KEY_P) Event code 26 (KEY_LEFTBRACE) Event code 27 (KEY_RIGHTBRACE) Event code 28 (KEY_ENTER) Event code 29 (KEY_LEFTCTRL) Event code 30 (KEY_A) Event code 31 (KEY_S) Event code 33 (KEY_F) Event code 34 (KEY_G) Event code 35 (KEY_H) Event code 36 (KEY_J) Event code 37 (KEY_K) Event code 38 (KEY_L) Event code 39 (KEY_SEMICOLON) Event code 40 (KEY_APOSTROPHE) Event code 41 (KEY_GRAVE) Event code 42 (KEY_LEFTSHIFT) Event code 43 (KEY_BACKSLASH) Event code 44 (KEY_Z) Event code 45 (KEY_X) Event code 46 (KEY_C) Event code 47 (KEY_V) Event code 48 (KEY_B) Event code 49 (KEY_N) Event code 50 (KEY_M) Event code 51 (KEY_COMMA) Event code 52 (KEY_DOT) Event code 53 (KEY_SLASH) Event code 54 (KEY_RIGHTSHIFT) Event code 55 (KEY_KPASTERISK) Event code 56 (KEY_LEFTALT) Event code 57 (KEY_SPACE) Event code 58 (KEY_CAPSLOCK) Event code 59 (KEY_F1) Event code 60 (KEY_F2) Event code 61 (KEY_F3) Event code 62 (KEY_F4) Event code 63 (KEY_F5) Event code 64 (KEY_F6) Event code 65 (KEY_F7) Event code 66 (KEY_F8) Event code 67 (KEY_F9) Event code 68 (KEY_F10) Event code 69 (KEY_NUMLOCK) Event code 70 (KEY_SCROLLLOCK) Event code 71 (KEY_KP7) Event code 72 (KEY_KP8) Event code 73 (KEY_KP9) Event code 74 (KEY_KPMINUS) Event code 75 (KEY_KP4) Event code 76 (KEY_KP5) Event code 77 (KEY_KP6) Event code 78 (KEY_KPPLUS) Event code 79 (KEY_KP1) Event code 80 (KEY_KP2) Event code 81 (KEY_KP3) Event code 82 (KEY_KP0) Event code 83 (KEY_KPDOT) Event code 85 (KEY_ZENKAKUHANKAKU) Event code 86 (KEY_102ND) Event code 87 (KEY_F11) Event code 88 (KEY_F12) Event code 89 (KEY_RO) Event code 90 (KEY_KATAKANA) Event code 91 (KEY_HIRAGANA) Event code 92 (KEY_HENKAN) Event code 93 (KEY_KATAKANAHIRAGANA) Event code 94 (KEY_MUHENKAN) Event code 95 (KEY_KPJPCOMMA) Event code 96 (KEY_KPENTER) Event code 97 (KEY_RIGHTCTRL) Event code 98 (KEY_KPSLASH) Event code 99 (KEY_SYSRQ) Event code 100 (KEY_RIGHTALT) Event code 102 (KEY_HOME) Event code 103 (KEY_UP) Event code 104 (KEY_PAGEUP) Event code 105 (KEY_LEFT) Event code 106 (KEY_RIGHT) Event code 107 (KEY_END) Event code 108 (KEY_DOWN) Event code 109 (KEY_PAGEDOWN) Event code 110 (KEY_INSERT) Event code 111 (KEY_DELETE) Event code 113 (KEY_MUTE) Event code 114 (KEY_VOLUMEDOWN) Event code 115 (KEY_VOLUMEUP) Event code 116 (KEY_POWER) Event code 117 (KEY_KPEQUAL) Event code 119 (KEY_PAUSE) Event code 121 (KEY_KPCOMMA) Event code 122 (KEY_HANGUEL) Event code 123 (KEY_HANJA) Event code 124 (KEY_YEN) Event code 125 (KEY_LEFTMETA) Event code 126 (KEY_RIGHTMETA) Event code 127 (KEY_COMPOSE) Event code 128 (KEY_STOP) Event code 129 (KEY_AGAIN) Event code 130 (KEY_PROPS) Event code 131 (KEY_UNDO) Event code 132 (KEY_FRONT) Event code 133 (KEY_COPY) Event code 134 (KEY_OPEN) Event code 135 (KEY_PASTE) Event code 136 (KEY_FIND) Event code 137 (KEY_CUT) Event code 138 (KEY_HELP) Event code 140 (KEY_CALC) Event code 142 (KEY_SLEEP) Event code 150 (KEY_WWW) Event code 152 (KEY_SCREENLOCK) Event code 158 (KEY_BACK) Event code 159 (KEY_FORWARD) Event code 161 (KEY_EJECTCD) Event code 163 (KEY_NEXTSONG) Event code 164 (KEY_PLAYPAUSE) Event code 165 (KEY_PREVIOUSSONG) Event code 166 (KEY_STOPCD) Event code 173 (KEY_REFRESH) Event code 176 (KEY_EDIT) Event code 177 (KEY_SCROLLUP) Event code 178 (KEY_SCROLLDOWN) Event code 179 (KEY_KPLEFTPAREN) Event code 180 (KEY_KPRIGHTPAREN) Event code 183 (KEY_F13) Event code 184 (KEY_F14) Event code 185 (KEY_F15) Event code 186 (KEY_F16) Event code 187 (KEY_F17) Event code 188 (KEY_F18) Event code 189 (KEY_F19) Event code 190 (KEY_F20) Event code 191 (KEY_F21) Event code 192 (KEY_F22) Event code 193 (KEY_F23) Event code 194 (KEY_F24) Event code 240 (KEY_UNKNOWN) Event code 272 (BTN_LEFT) Event code 273 (BTN_RIGHT) Event code 274 (BTN_MIDDLE) Event code 277 (BTN_FORWARD) Event code 278 (BTN_BACK) Event code 279 (BTN_TASK) Event code 280 (?) Event code 281 (?) Event code 282 (?) Event code 283 (?) Event code 284 (?) Event code 285 (?) Event code 286 (?) Event code 287 (?) Event type 2 (EV_REL) Event code 0 (REL_X) Event code 1 (REL_Y) Event code 6 (REL_HWHEEL) Event code 8 (REL_WHEEL) Event type 4 (EV_MSC) Event code 4 (MSC_SCAN) Event type 17 (EV_LED) Event code 0 (LED_NUML) Event code 1 (LED_CAPSL) Event code 2 (LED_SCROLLL) Event code 3 (LED_COMPOSE) Event code 4 (LED_KANA) Key repeat handling: Repeat type 20 (EV_REP) Repeat code 0 (REP_DELAY) Value 250 Repeat code 1 (REP_PERIOD) Value 33 Properties: Testing ... (interrupt to exit) Event: time 1437136178.466244, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e7 Event: time 1437136178.466244, type 1 (EV_KEY), code 159 (KEY_FORWARD), value 1 Event: time 1437136178.466244, -------------- EV_SYN ------------ Event: time 1437136178.590240, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e7 Event: time 1437136178.590240, type 1 (EV_KEY), code 159 (KEY_FORWARD), value 0 Event: time 1437136178.590240, -------------- EV_SYN ------------ </code></pre> <p>And this is on Arch (where the remapping does not work):</p> <pre><code>Input driver version is 1.0.1 Input device ID: bus 0x3 vendor 0x46d product 0x402d version 0x111 Input device name: "Logitech M560" Supported events: Event type 0 (EV_SYN) Event type 1 (EV_KEY) Event code 1 (KEY_ESC) Event code 2 (KEY_1) Event code 3 (KEY_2) Event code 4 (KEY_3) Event code 5 (KEY_4) Event code 6 (KEY_5) Event code 7 (KEY_6) Event code 8 (KEY_7) Event code 9 (KEY_8) Event code 10 (KEY_9) Event code 11 (KEY_0) Event code 12 (KEY_MINUS) Event code 13 (KEY_EQUAL) Event code 14 (KEY_BACKSPACE) Event code 15 (KEY_TAB) Event code 16 (KEY_Q) Event code 17 (KEY_W) Event code 18 (KEY_E) Event code 19 (KEY_R) Event code 20 (KEY_T) Event code 21 (KEY_Y) Event code 22 (KEY_U) Event code 23 (KEY_I) Event code 24 (KEY_O) Event code 25 (KEY_P) Event code 26 (KEY_LEFTBRACE) Event code 27 (KEY_RIGHTBRACE) Event code 28 (KEY_ENTER) Event code 29 (KEY_LEFTCTRL) Event code 30 (KEY_A) Event code 31 (KEY_S) Event code 32 (KEY_D) Event code 33 (KEY_F) Event code 34 (KEY_G) Event code 35 (KEY_H) Event code 36 (KEY_J) Event code 37 (KEY_K) Event code 38 (KEY_L) Event code 39 (KEY_SEMICOLON) Event code 40 (KEY_APOSTROPHE) Event code 41 (KEY_GRAVE) Event code 42 (KEY_LEFTSHIFT) Event code 43 (KEY_BACKSLASH) Event code 44 (KEY_Z) Event code 45 (KEY_X) Event code 46 (KEY_C) Event code 47 (KEY_V) Event code 48 (KEY_B) Event code 49 (KEY_N) Event code 50 (KEY_M) Event code 51 (KEY_COMMA) Event code 52 (KEY_DOT) Event code 53 (KEY_SLASH) Event code 54 (KEY_RIGHTSHIFT) Event code 55 (KEY_KPASTERISK) Event code 56 (KEY_LEFTALT) Event code 57 (KEY_SPACE) Event code 58 (KEY_CAPSLOCK) Event code 59 (KEY_F1) Event code 60 (KEY_F2) Event code 61 (KEY_F3) Event code 62 (KEY_F4) Event code 63 (KEY_F5) Event code 64 (KEY_F6) Event code 65 (KEY_F7) Event code 66 (KEY_F8) Event code 67 (KEY_F9) Event code 68 (KEY_F10) Event code 69 (KEY_NUMLOCK) Event code 70 (KEY_SCROLLLOCK) Event code 71 (KEY_KP7) Event code 72 (KEY_KP8) Event code 73 (KEY_KP9) Event code 74 (KEY_KPMINUS) Event code 75 (KEY_KP4) Event code 76 (KEY_KP5) Event code 77 (KEY_KP6) Event code 78 (KEY_KPPLUS) Event code 79 (KEY_KP1) Event code 80 (KEY_KP2) Event code 81 (KEY_KP3) Event code 82 (KEY_KP0) Event code 83 (KEY_KPDOT) Event code 85 (KEY_ZENKAKUHANKAKU) Event code 86 (KEY_102ND) Event code 87 (KEY_F11) Event code 88 (KEY_F12) Event code 89 (KEY_RO) Event code 90 (KEY_KATAKANA) Event code 91 (KEY_HIRAGANA) Event code 92 (KEY_HENKAN) Event code 93 (KEY_KATAKANAHIRAGANA) Event code 94 (KEY_MUHENKAN) Event code 95 (KEY_KPJPCOMMA) Event code 96 (KEY_KPENTER) Event code 97 (KEY_RIGHTCTRL) Event code 98 (KEY_KPSLASH) Event code 99 (KEY_SYSRQ) Event code 100 (KEY_RIGHTALT) Event code 102 (KEY_HOME) Event code 103 (KEY_UP) Event code 104 (KEY_PAGEUP) Event code 105 (KEY_LEFT) Event code 106 (KEY_RIGHT) Event code 107 (KEY_END) Event code 108 (KEY_DOWN) Event code 109 (KEY_PAGEDOWN) Event code 110 (KEY_INSERT) Event code 111 (KEY_DELETE) Event code 113 (KEY_MUTE) Event code 114 (KEY_VOLUMEDOWN) Event code 115 (KEY_VOLUMEUP) Event code 116 (KEY_POWER) Event code 117 (KEY_KPEQUAL) Event code 119 (KEY_PAUSE) Event code 121 (KEY_KPCOMMA) Event code 122 (KEY_HANGUEL) Event code 123 (KEY_HANJA) Event code 124 (KEY_YEN) Event code 125 (KEY_LEFTMETA) Event code 126 (KEY_RIGHTMETA) Event code 127 (KEY_COMPOSE) Event code 128 (KEY_STOP) Event code 129 (KEY_AGAIN) Event code 130 (KEY_PROPS) Event code 131 (KEY_UNDO) Event code 132 (KEY_FRONT) Event code 133 (KEY_COPY) Event code 134 (KEY_OPEN) Event code 135 (KEY_PASTE) Event code 136 (KEY_FIND) Event code 137 (KEY_CUT) Event code 138 (KEY_HELP) Event code 140 (KEY_CALC) Event code 142 (KEY_SLEEP) Event code 150 (KEY_WWW) Event code 152 (KEY_SCREENLOCK) Event code 158 (KEY_BACK) Event code 159 (KEY_FORWARD) Event code 161 (KEY_EJECTCD) Event code 163 (KEY_NEXTSONG) Event code 164 (KEY_PLAYPAUSE) Event code 165 (KEY_PREVIOUSSONG) Event code 166 (KEY_STOPCD) Event code 173 (KEY_REFRESH) Event code 176 (KEY_EDIT) Event code 177 (KEY_SCROLLUP) Event code 178 (KEY_SCROLLDOWN) Event code 179 (KEY_KPLEFTPAREN) Event code 180 (KEY_KPRIGHTPAREN) Event code 183 (KEY_F13) Event code 184 (KEY_F14) Event code 185 (KEY_F15) Event code 186 (KEY_F16) Event code 187 (KEY_F17) Event code 188 (KEY_F18) Event code 189 (KEY_F19) Event code 190 (KEY_F20) Event code 191 (KEY_F21) Event code 192 (KEY_F22) Event code 193 (KEY_F23) Event code 194 (KEY_F24) Event code 240 (KEY_UNKNOWN) Event code 272 (BTN_LEFT) Event code 273 (BTN_RIGHT) Event code 274 (BTN_MIDDLE) Event code 275 (BTN_SIDE) Event code 276 (BTN_EXTRA) Event code 277 (BTN_FORWARD) Event code 278 (BTN_BACK) Event code 279 (BTN_TASK) Event code 280 (?) Event code 281 (?) Event code 282 (?) Event code 283 (?) Event code 284 (?) Event code 285 (?) Event code 286 (?) Event code 287 (?) Event type 2 (EV_REL) Event code 0 (REL_X) Event code 1 (REL_Y) Event code 6 (REL_HWHEEL) Event code 8 (REL_WHEEL) Event type 4 (EV_MSC) Event code 4 (MSC_SCAN) Event type 17 (EV_LED) Event code 0 (LED_NUML) Event code 1 (LED_CAPSL) Event code 2 (LED_SCROLLL) Event code 3 (LED_COMPOSE) Event code 4 (LED_KANA) Key repeat handling: Repeat type 20 (EV_REP) Repeat code 0 (REP_DELAY) Value 250 Repeat code 1 (REP_PERIOD) Value 33 Properties: Testing ... (interrupt to exit) Event: time 1437143765.953616, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e7 Event: time 1437143765.953616, type 1 (EV_KEY), code 126 (KEY_RIGHTMETA), value 1 Event: time 1437143765.953616, -------------- EV_SYN ------------ Event: time 1437143766.063653, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e7 Event: time 1437143766.063653, type 1 (EV_KEY), code 126 (KEY_RIGHTMETA), value 0 Event: time 1437143766.063653, -------------- EV_SYN ------------ </code></pre>
0non-cybersec
Stackexchange
Having a homogenous system of linear equations with real coefficients with a non-trivial complex solution than there is a real solution too.. <p>I'm struggeling a bit with this proof.</p> <blockquote> <p>Suppose we have a homogenous system of linear equations with real coefficients with a non-trivial complex solution than there is a real solution too. </p> </blockquote> <p>This looks really simple and my first thought was...</p> <p>In our course we proved that, if <span class="math-container">$\alpha,\beta \in L(A,0) \implies \alpha + \beta \in L(A,0)$</span>. </p> <p>So let <span class="math-container">$z_1 = a+ib, z_2 = \bar{z_1} = a-ib$</span> both <span class="math-container">$\in L(A,0)$</span>.</p> <p>Than the sum of them <span class="math-container">$z_1+z_2 = a+ib + a-ib = 2a \in L(A,0)$</span>. Since <span class="math-container">$a\in\mathbb{R}$</span> there is a real solution too. </p> <p>Additionally i figured out, that the complex conjugation is a field homorphism. </p> <p>My questions are:</p> <ol> <li>Can somebody show me an example for a homogenous system of linear equations with real coefficients with a non-trivial complex solution?</li> <li>if my idea is correct, why can I assume that <span class="math-container">$\bar{z_1}$</span> is a solution too?</li> <li>if my idea is not correct, where is my mistake?</li> </ol> <p>Many thanks in advance</p>
0non-cybersec
Stackexchange
F# check if a string contains only number. <p>I am trying to figure out a nice way to check if a string contains only number. This is the result of my effort but it seems really verbose:</p> <pre><code>let isDigit c = Char.IsDigit c let rec strContainsOnlyNumber (s:string)= let charList = List.ofSeq s match charList with | x :: xs -&gt; if isDigit x then strContainsOnlyNumber ( String.Concat (Array.ofList xs)) else false | [] -&gt; true </code></pre> <p>for example it seems really ugly that I have to convert a string to char list and then back to a string. Can you figure out a better solution?</p>
0non-cybersec
Stackexchange
jQuery not define in bootstrap module. <p>I want to use bootstrap for my website (with node.js). But I have the following error :</p> <blockquote> <p>/var/www/node_modules/bootstrap/js/transition.js:59 }(jQuery); ^ ReferenceError: jQuery is not defined at Object. (/var/www/node_modules/bootstrap/js/transition.js:59:3) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (/var/www/node_modules/bootstrap/dist/js/npm.js:2:1) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10)</p> </blockquote> <p>I tried to do a</p> <pre><code>var bootstrap = require('bootstrap'); </code></pre> <p>in my main node.</p> <p>I installed bootstrap with npm (<code>npm install bootstrap</code> from my folder). I also tried to instal jquery with the same way and to add a <code>var jQuery= require('jquery');</code> but it does not work. Do you have any idea what could be wrong ? I am starting node.js, i may miss something</p> <p>Then I use <code>&lt;link href="../node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"&gt;</code> in my HTML webpage to refer to bootstrap `</p>
0non-cybersec
Stackexchange
Switch primary and secondary screen with keyboard shortcut. <p>I have two screen one is monitor which is secondary screen and is in extended mode and another is laptop which is primary screen. Whenever I open anything new it opens in primary screen(i.e. laptop) and then I have to drag it to secondary screen(i.e. monitor).</p> <p>Is there any shortcut to switch primary screen and secondary screen which let me open file in screen where I have opened it?</p>
0non-cybersec
Stackexchange
is pfSense suited for my setup?. <p>I have a fairly large home network that consists of:</p> <ul> <li>2 wired PCs,</li> <li>3 Smartphones,</li> <li>1 Tablet,</li> <li>2 wireless PCs</li> <li>2 wired gaming consoles</li> <li>2 wireless gaming consoles</li> </ul> <p>The problem is that I think that my router has problems handling all the traffic that this generates, since it crashes (reboots, no more WAN, etc.) every once in a while. I have an old machine here, a couple NICs, and a switch. Would it make sense to get that box to run pfSense and distribute traffic across different NICs (1 to switch for wired, 1 to router (as AP) for wireless)?</p>
0non-cybersec
Stackexchange
Classy dessert pizza. .
0non-cybersec
Reddit
Does connecting to a VPN always provide a secure environment over unencrypted WiFI connections?. <p>Sometimes I have to use public WiFi connections. I always connect to a VPN thinking it will provide the security of encryption.</p> <p>However, I don't know any details about how the VPN I use is implemented, so have some uncertainty. Do VPNs always alleviate the dangers of using insecure WiFI connections?</p>
0non-cybersec
Stackexchange
Your cash? I take that.
0non-cybersec
Reddit
Dietary cocoa flavanols reverse age-related memory decline in mice.
0non-cybersec
Reddit
Does Signal Application use Eliptic Curve cryptography for encryption as well?. <p>I am studying how Signal application works and as I was reading the <a href="https://www.signal.org/docs/specifications/xeddsa/" rel="nofollow noreferrer">documentation</a> on how is applied the XEdDSA and VXEdDSA Signature Schemes.</p> <p>But I kept wondering: if Signal uses elliptic curve for signing a message (as far as I understood), then how does it apply cryptography for encrypting the actual voice and instant messages. Does it use an eliptic curve cryptography scheme with a different key besides the other one?</p>
0non-cybersec
Stackexchange
A new Horror Game called "Routine" is being developed for the PC by a three-person indie team calling itself Lunar Software Devs said they want it to be like System Shock 2 mixed with Amnesia. Check out the scary trailer..
0non-cybersec
Reddit
Heap Layout Visualization with mona.py and WinDBG.
1cybersec
Reddit
PSA Cloudflare portal is down. [https://www.cloudflarestatus.com/](https://www.cloudflarestatus.com/) Just to add another headache. &#x200B; EDIT: They've unborked it now.
0non-cybersec
Reddit
Recon/port scanning techniques for Windows machines?. Hello guys, So I have been messing around with VMs for a while. I recently joined this online pen-testing lab that has Linux and Windows machines. I have never had any practice against a Windows machine before. Doing usual nmap scans returns all ports as filtered. I assume this is because of Windows Firewall? If I revert to stealth scans and what not, I get (expected) results, but it's too minimal. Does anyone know of some nmap scan settings, or can give some resources on Windows scanning?
1cybersec
Reddit
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
The Birth of Black Nationalism.
0non-cybersec
Reddit
Good o.
0non-cybersec
Reddit
Integral $ \int_{-\infty}^{+\infty} \frac{ \sin^2(\sqrt{(x-a)^2 + b^2}\,\,t)}{(x-a)^2 + b^2} dx$. <p>I am trying to solve the following definite integral:</p> <p><span class="math-container">$$ \int_{-\infty}^{+\infty} \frac{ \sin^2(\sqrt{(x-a)^2 + b^2}\,\,t)}{(x-a)^2 + b^2} dx$$</span> with <span class="math-container">$a$</span> and <span class="math-container">$b$</span> being real constants. Notice that the integrand is non-negative for all x , with a peak around <span class="math-container">$x=a$</span> for small values of <span class="math-container">$b/a$</span>. So the integration does give a finite value. </p> <p>To go about this, I tried substituting <span class="math-container">$(x-a)^2 + b^2 = y^2$</span></p> <p>This gives me <span class="math-container">$dx \,(x - a) = y \, dy$</span> whence:</p> <p><span class="math-container">$$ \int_{?}^{+\infty} \frac{ \sin^2(|y|\,\,t)}{y} \frac{1}{\sqrt{y^2 - b^2}} dy$$</span></p> <p>While the upper limit of y transforms to <span class="math-container">$+\infty$</span>, clearly the lower limit is not <span class="math-container">$-\infty$</span> (even if it is <span class="math-container">$-\infty$</span> the integrand is odd so it evaluates to zero which cannot be true).</p> <p>This suggests its a case of bad substitution. The only better alternative I can think of is to substitute <span class="math-container">$x-a = y$</span>, this gives me:</p> <p><span class="math-container">$$ \int_{-\infty}^{+\infty} \frac{ \sin^2(\sqrt{y^2 + b^2}\,\,t)}{y^2 + b^2} dy $$</span></p> <p>Any thoughts on how I can get an expression for this integral ?</p> <p>Thanks for your time!</p>
0non-cybersec
Stackexchange
Change entry file path of android and ios in react-native project. <p>After starting a new project with <strong>react-native init awesomeProject</strong>, i try to restructure my project, putting <strong>index.ios.js</strong> and <strong>index.android.ios</strong> inside a common folder named <strong>src</strong>.</p> <p>When i execute <strong>react-native run-android</strong>, i get the following error:</p> <p><img src="https://i.stack.imgur.com/j5dKr.jpg" alt="Error on android device"></p> <p>Where i have to change to react-native search for entry files in the right path?</p>
0non-cybersec
Stackexchange
Anybody know these boots from the front-page Larry David post? (resubmitted).
0non-cybersec
Reddit
A Study of Continuity of a given Function. <p>I am trying to figure out if the following function is in fact continuous: given $$f(x,y) = \left\{\begin{array}{cc} \frac{|y|-|x|}{y^2} &amp; |x| &lt; |y| \\ 0 &amp; |x| \geq |y| \end{array}\right.$$ I am studying the continuity of the function $$g(y) = \int_{-1}^1 f(x,y) dx, y \in [-1,1].$$ $x$ and $y$ take on the domain $[-1,1].$ I am wondering what is the most reasonable way to begin exploring the continuity of this function, since it seems to me that the many absolute values that make up this particular function makes the splitting of the integral rather hectic. Any recommendations on how one goes about dealing with integrals of absolute value functions?</p>
0non-cybersec
Stackexchange
20% Off PS Store (Until midnight). First come, first serve.. Hey guys, I got a PS4 for Christmas and it came with a code for a 20% discount I can't use because is for US accounts only. It expires today at midnight so grab it fast. Happy New Year! Code: 6PCL7NRH8E
0non-cybersec
Reddit
How to eat Fruity Pebbles and other similar cereal the right way so every bite stays crispy. Step 1: This step is optional but it helps with the process and that is to get really stoned. Step 2: Pour the Fruity Pebbles into the middle your bowl until a little mountain forms. This should happen naturally and require little effort.  DO NOT EVEN YOUR PEBBLES OUT! Keep it in mountain form Step 3: Pour a small but steady river of cow juice slightly against the side of the bowl. Doing this will let the milk flow underneath your Pebbles without damaging the mountain structure of said Pebbles. DO NOT UNDER ANY CIRCUMSTANCE POUR THE MILK ALL OVER YOUR PEBBLES! That will ruin the whole experience and prove that you're not ready for a cereal like Fruity Pebbles and quite frankly can't be trusted. Step 4: Now you're ready to eat. This step needs to happen very quickly because if not the Pebbles will get soggy and this will have all been for nothing. Take your spoon and eat from the bottom...NOT THE TOP. Doing this will allow you to get a cruncy bite of Pebbles and milk with every spoonful until your ration gets to such a low point that your Pebbles fall back into the sea of now flavored milk. Step 5: Now it's time to drink the milk. IF YOU DON'T DRINK THE MILK, SORRY, BUT YOU ARE A SUB-HUMAN AND I CANT TRUST YOU. This step is pretty easy but nuanced. Put the bowl up to your mouth and start drinking it as a blue whale would eat plankton and such. Let the milk flow freely but use your teeth, like a whale using it's baleen, to filter the remaining Fruity Pebbles to the sides of your mouth for later consumption after the milk has gone down your gullet. Step 6: This step is optional but important. As soon as you're done drinking your flavored milk wash the bowl off in the sink. Dried on Fruity Pebbles stuck to your bowl is nothing you wanna deal with when you start washing dishes. You'll spend too much time using a butter knife scraping that shit off the sides because who has time to let the dishes soak.
0non-cybersec
Reddit
Accomplishing Ctrl-z + bg in one step?. <p>We can use Ctrl-z to stop the current job followed by</p> <pre><code>bg </code></pre> <p>to send it to the background, but can we do this in one action that doesn't briefly pause the execution of the program?</p> <p>Is there a combined </p> <pre><code>Ctrl-z + bg </code></pre> <p>type command that we can use?</p>
0non-cybersec
Stackexchange
[Everything] About Jon's friend. I know Ghost hasn't showed up in the latest episodes because Dragons but, wouldn't it be badass if Jon arrived at Dragonstone with a f*cking direwolf stating that those were a myth from beyond the wall yet here's a big one! Just to secure his statement about myths being real and the white walkers also being real I guess it would help in it's own way, maybe in a less bloody way Robb had his when Greatjon was pushing his luck.
0non-cybersec
Reddit
Symfony3: Construct FormType. <p>I have a form in Symfony3, which I initialize - following the docs - as followed:</p> <pre><code>$form=$this-&gt;createForm(BookingType::class,$booking); </code></pre> <p>$booking is an already existing entity, which I want to modify - but I want to modify the form depending on the entity - like:</p> <pre><code>public function buildForm(FormBuilderInterface $builder,$options) { $builder-&gt;add('name'); if(!$this-&gt;booking-&gt;getLocation()) { $builder-&gt;add('location'); } } </code></pre> <p>Prior Symfony 2.8 it was possible to construct the FormType like:</p> <pre><code>$form=$this-&gt;createForm(new BookingType($booking),$booking); </code></pre> <p>Which is exactly what I want :) But in Symfony3 this method throws an exception. How can I pass an entity to my formtype?</p>
0non-cybersec
Stackexchange
What is &quot;dist-upgrade&quot; and why does it upgrade more than &quot;upgrade&quot;?. <p>I was wondering why <code>upgrade</code> sometimes doesn't want to upgrade certain parts of the system, while <code>dist-upgrade</code> does. Here's an example after running <code>apt-get upgrade</code>:</p> <p><code>apt-get upgrade</code>:</p> <pre><code>rimmer@rimmer-Lenovo-IdeaPad-S10-2:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done The following packages have been kept back: linux-generic linux-headers-generic linux-image-generic 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. </code></pre> <p>versus <code>apt-get dist-upgrade</code>:</p> <pre><code>rimmer@rimmer-Lenovo-IdeaPad-S10-2:~$ sudo apt-get dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following NEW packages will be installed: linux-headers-3.0.0-13 linux-headers-3.0.0-13-generic linux-image-3.0.0-13-generic The following packages will be upgraded: linux-generic linux-headers-generic linux-image-generic 3 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 48.5 MB of archives. After this operation, 215 MB of additional disk space will be used. Do you want to continue [Y/n]? </code></pre> <p>In other words, why can't this be performed by <code>upgrade</code>?</p>
0non-cybersec
Stackexchange
How to deal with Program Files (x86) as user input?. <p>I have written this little backup script that accepts user input for the source/destination for the files. It can deal just fine with spaces and <code>C:\Program Files\</code> but can't seem to be able to deal with <code>C:\Program Files (x86)\</code>. This is the snippet of my code that I'm using to test and resolve my issue.</p> <pre><code>@echo off set sourcedef=%USERPROFILE%\Desktop\Source set /P sourceinp= Location of the source [Default=%sourcedef%] : if &quot;%sourceinp%&quot; == &quot;&quot; ( set source=%sourcedef% ) if not &quot;%sourceinp%&quot; == &quot;&quot; ( set source=%sourceinp% ) echo Source folder set as : %source% pause </code></pre> <p>If i try to give it any Program Files (x86) directory, the cmd.exe just closes down shop. Any tips?</p>
0non-cybersec
Stackexchange
Asynchronous multiprocessing with a worker pool in Python: how to keep going after timeout?. <p>I would like to run a number of jobs using a pool of processes and apply a given timeout after which a job should be killed and replaced by another working on the next task. </p> <p>I have tried to use the <code>multiprocessing</code> module which offers a method to run of pool of workers asynchronously (e.g. using <code>map_async</code>), but there I can only set a "global" timeout after which all processes would be killed. </p> <p>Is it possible to have an individual timeout after which <strong>only a single process that takes too long is killed and a new worker is added</strong> to the pool again instead (<strong>processing the next task and skipping the one that timed out</strong>)?</p> <p>Here's a simple example to illustrate my problem:</p> <pre><code>def Check(n): import time if n % 2 == 0: # select some (arbitrary) subset of processes print "%d timeout" % n while 1: # loop forever to simulate some process getting stuck pass print "%d done" % n return 0 from multiprocessing import Pool pool = Pool(processes=4) result = pool.map_async(Check, range(10)) print result.get(timeout=1) </code></pre> <p>After the timeout all workers are killed and the program exits. I would like instead that it continues with the next subtask. Do I have to implement this behavior myself or are there existing solutions?</p> <h2>Update</h2> <p>It is possible to kill the hanging workers and they are automatically replaced. So I came up with this code:</p> <pre><code>jobs = pool.map_async(Check, range(10)) while 1: try: print "Waiting for result" result = jobs.get(timeout=1) break # all clear except multiprocessing.TimeoutError: # kill all processes for c in multiprocessing.active_children(): c.terminate() print result </code></pre> <p>The problem now is that the loop never exits; even after all tasks have been processed, calling <code>get</code> yields a timeout exception. </p>
0non-cybersec
Stackexchange
cursed_donald.
0non-cybersec
Reddit
NotificationListenerService not working - even after giving permission. <p>Below is my code to capture notifications. I dont understand why the <strong>onNotificationPosted</strong> is not getting fired.</p> <p>I am giving my app Notifications access from Settings > Security and the <strong>onCreate</strong> from MyNotifService is also getting fired, but <strong>onNotificationPosted</strong> is not getting fired.</p> <p>What am I missing or doing wrong?</p> <p>From my <strong>MainActivity's onCreate()</strong> function:</p> <pre><code>Intent intent = new Intent(this, MyNotifService.class); this.startService(intent); </code></pre> <p>My Service code that extends <strong>NotificationListenerService</strong>:</p> <pre><code>@SuppressLint("NewApi") public class MyNotifService extends NotificationListenerService { @Override public void onNotificationPosted(StatusBarNotification sbn) { super.onNotificationPosted(sbn); Log.v("focus", "in onNotificationPosted() of MyNotifService"); } @Override public void onCreate() { super.onCreate(); Log.v("focus", "in onCreate() of MyNotifService"); } } </code></pre> <p>In the <strong>manifest file</strong>, I have this:</p> <pre><code>&lt;service android:name="com.mavdev.focusoutfacebook.notifications.MyNotifService" android:label="@string/app_name" android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE" &gt; &lt;intent-filter&gt; &lt;action android:name="android.service.notification.NotificationListenerService" /&gt; &lt;/intent-filter&gt; &lt;/service&gt; </code></pre>
0non-cybersec
Stackexchange
"The Death of Cheat Codes:" A 22-minute long-form discussion video about the rise and fall of cheat codes over the last 3 decades..
0non-cybersec
Reddit
deck plans.
0non-cybersec
Reddit
Conversion journaled to APFS under Mojave. <p>I would like to update from Mojave to Catalina.</p> <p>MAC is late 2012 and OS is Mojave 10.14.2</p> <p>Update fails because SSD is not APFS.</p> <p>I have read disk can be converted, using Disk Utility in recovery mode. Function to convert disk should be either in the edit menu or under a conversion button.</p> <p>Unfortunately, I Can find neither edit menu nor conversion button.</p> <p>The system is in recovery mode. There is a convert button which gets enabled selecting disk1, but the effect is different from what I expected, as shown</p> <p><a href="https://i.stack.imgur.com/RCIVH.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RCIVH.jpg" alt="enter image description here"></a></p> <p><a href="https://i.stack.imgur.com/p1H0W.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p1H0W.jpg" alt="enter image description here"></a><a href="https://i.stack.imgur.com/bzPqJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bzPqJ.png" alt="mac os"></a><a href="https://i.stack.imgur.com/W8VTM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W8VTM.png" alt="ssd"></a></p>
0non-cybersec
Stackexchange
How can I use DoctorJS with Emacs?. <p>Is there a way to use DoctorJS (apparently it used to be called jsctags) to generate a TAGS file for Emacs? </p> <p>I've been looking around and it seems to always use the vi tags style, but I could be missing something very obvious.</p>
0non-cybersec
Stackexchange
Another proof for how many n-digit numbers are even. <p>For n is greater than or equal to 2, how many n-digit numbers are even. Give at least 2 proofs.</p> <p>I did this proof: The first digit cannot be zero (9 choices) and the last digit has to be even (5 choices). This leaves n-2 places in the number, each of which has 10 choices. Therefore, $9*10^{(n-2)}*5$ is the required number.</p> <p>Can someone help me work a second proof? I considered complementary counting, but that would be the exact same thing basically and probably is not viable for a second proof.</p>
0non-cybersec
Stackexchange
MFA, what is the one piece of clothing that you would suggest to everyone and why?. Something that adds value to what your wardrobe Edit: First of all, thank you, everyone. Secondly, A special thanks to those who have added pictures. PS: Please add pictures, guys.
0non-cybersec
Reddit
Terranauts by Iason Treumfern.
0non-cybersec
Reddit
China builds new military facilities on South China Sea islands: think tank.
0non-cybersec
Reddit
The Tetris 99 Theme A Remix is a real bop.
0non-cybersec
Reddit
Set Keystroke for Service from Terminal. <p>I created some services to be used in Finder. Now I wanted to create some keystrokes to call these services. That would be easy in the System Settings, however, I would like to add them from the command line in order to automate this setup.</p> <p>I tried the following which did allow me not trigger the services by a keystroke:</p> <pre><code>defaults write com.apple.Finder NSUserKeyEquivalents '{ "label-red" = "$@1"; "label-green" = "$@2"; "label-none" = "$@0"; }' </code></pre> <p>Any ideas to make this work? Instead of <code>com.apple.Finder</code> I might have to use another identifier, but which?</p>
0non-cybersec
Stackexchange
Ana POTG's are so rare. I feel honored..
0non-cybersec
Reddit