text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
Check if a String is valid UTF-8 encoded in Java. <p>How can I check if a string is in valid UTF-8 format?</p>
0non-cybersec
Stackexchange
When the breading comes off your onion ring leaving the floppy onion behind..
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
Custom title page for thesis with new fields (institute, supervisor). <p>Sorry, this has probably been tried more than once, but I ended up with the following broken code below.</p> <p>Briefly, I attempted to: </p> <ol> <li>define a <code>\institute</code> and <code>\supervisor</code> command;</li> <li>redefine the <code>\maketitle</code> command (taking into account the provided institute/supervisor).</li> </ol> <pre><code>\documentclass[a4paper]{report} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{wallpaper} % background figure on title page % copied from Pandoc default template \providecommand{\institute}[1]{} \makeatletter % copied from https://tex.stackexchange.com/a/196650/95423 \newcommand{\@supervisor}{} \newcommand{\supervisor}[1]{\renewcommand{\@supervisor}{#1}} \makeatother \title{The Limits of Individual Plasticity} \author{Edward \textsc{Prendick}} \institute{Island of Doctor Moreau} \supervisor{Dr. \textsc{Moreau}} \date{1896} \makeatletter \def\maketitle{% \begin{titlepage}% \begin{center}% \ThisULCornerWallPaper{0.2}{logo-univ}\par \vspace*{2.5cm} \huge\@title \vspace{1.5cm} \Large\@author \vspace{1.5cm} \normalsize A thesis for the degree of PhD \vfill \normalsize Supervised by:\\ \@supervisor\\ \vspace{0.8cm} %\includegraphics[width=0.4\textwidth]{logo/logo-lab} \normalsize \@institute \@date \end{center}% \end{titlepage}% } \makeatother \begin{document} \maketitle \end{document} </code></pre> <p>Would anyone tell me why it fails with:</p> <pre><code>! Undefined control sequence. \maketitle ...} \par \par \normalsize \@institute \par \@date \par \end {cen... l.58 \maketitle ? </code></pre>
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
Testing the Observer complete event with Jest?. <p>The RxJS <code>Observer</code> fires the events:</p> <ul> <li><code>complete</code></li> <li><code>error</code></li> <li><code>next</code></li> </ul> <p>If we want to test for the complete event with Jest. How is this done?</p> <p>For example we can test the <code>next</code> and <code>error</code> events, because those functions pass data:</p> <pre><code>o.subscribe(result =&gt; { expect(result.data.length).toEqual(1); }, (e)=&gt;{expect(e).toBeFalsy()}, ()=&gt;{ WHAT TO EXPECT HERE? } </code></pre> <p>The <code>complete</code> event does not. The function signature is <code>()=&gt;void</code>. How do we test that function signature?</p> <p>Also the line <code>(e)=&gt;{expect(e).toBeFalsy()}</code> because it never actually fires. Is there a way to check that a callback does not run?</p>
0non-cybersec
Stackexchange
r/Hacking megathread: 1) www.google.com 2)No we won't hack him 3) Yes you're being attacked 4)No we still won't hack him and 5) Have you tried turning it off and back on again?. This should answer pretty much all of the questions and topics being asked on this sub as of recently.
1cybersec
Reddit
Installing Arch Linux Error: grub-install: error: cannot find EFI directory. <p>I'm trying to install Arch Linux on my machine, following <a href="https://youtu.be/HpskN_jKyhc" rel="nofollow noreferrer">these</a> instructions.</p> <pre><code>timedatectl set-ntp true timedatectl status cfdisk mkfs.ext4 /dev/sda2 mkswap /dev/sda3 swapon /dev/sda3 mount /dev/sda2 /mnt pacstrap /mnt base linux linux-firmware genfstab -U /mnt &gt;&gt; /mnt/etc/fstab arch-chroot /mnt ln -sf /usr/share/zoneinfo/myRegion/myCity /etc/localtime hwclock --systohc locale-gen nano/etc/locale.conf LANG=en_US.UTF-8 nano /etc/hostname myhostname nano /etc/hosts 127.0.0.1 localhost ::1 localhost 127.0.1.1 myhostname.localdomain myhostname passwd useradd -m newusername passwd newusername usermod -aG wheel,audio,video,optical,storage newusername pacman -S vim visudo pacman -S grub grub-install /dev/sda </code></pre> <p>At <code>cfdisk</code>, I configured my partitions as follows:</p> <pre><code>sda1: EFI system partition sda2: Linux x86-64 root sda3: Linux swap </code></pre> <p>At the mounting steps, I did the following: </p> <pre><code>mkfs.ext4 /dev/sda1 mkswap /dev/sda3 swapon /dev/sda3 mount /dev/sda2 /mnt </code></pre> <p>The rest is mostly the same, just with my own info.</p> <p>I'm currently stuck here:</p> <pre><code>/# grub-install /dev/sda grub-install: error: cannot find EFI directory </code></pre> <p>I've checked out a few similar post with this problem but it hasn't helped me progress.</p> <p>How should I fix this problem? </p>
0non-cybersec
Stackexchange
Increment a value in Postgres. <p>I'm a little new to postgres. I want to take a value (which is an integer) in a field in a postgres table and increment it by one. For example if the table 'totals' had 2 columns, 'name' and 'total', and Bill had a total of 203, what would be the SQL statement I'd use in order to move Bill's total to 204?</p>
0non-cybersec
Stackexchange
Jerk Cat tests other cats swimming abilities..
0non-cybersec
Reddit
Johnny Cash on Sesame Street. There is an amazing amount of musical performances in the catalogues of Sesame Street. This one has been one of my favorites. Call me John... https://www.youtube.com/watch?v=5M2v-pkSIQY
0non-cybersec
Reddit
Setting the alpha value for a ConstraintLayout group. <p>I want to ask is it possible to change the alpha for a constraint group?</p> <pre><code>&lt;android.support.constraint.Group android:layout_width="wrap_content" android:layout_height="wrap_content" app:constraint_referenced_ids="statusTv, statusDropDownIv" android:id="@+id/buttonGroup" android:visibility="visible" android:alpha="0" /&gt; </code></pre> <p>Right now the <code>visibility</code> tag has effect if I set it to visible/gone but the <code>alpha</code> tag seems to not work.</p>
0non-cybersec
Stackexchange
Stats you need to know about gasoline, crude oil and the companies producing it.
0non-cybersec
Reddit
US Bus and Amtrak Routes.
0non-cybersec
Reddit
What is an opportunity you passed up, that you now regret?.
0non-cybersec
Reddit
My mini aussie when we first got him, his name is Cooper. Named after Alice Cooper, not the car mini cooper.
0non-cybersec
Reddit
There's a first for everything.
0non-cybersec
Reddit
$f$ uniformly continuous , $a_n$ Cauchy $\Rightarrow f(a_n)$ is Cauchy. <p>Let $I$ be an interval and let $f: I\to \mathbb{ R}$ be uniformly continuous on I. Suppose that $\{a_n\}$ is a Cauchy sequence in $I$. Prove that $\{f(a_n)\} $is a Cauchy sequence.</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
PSA: If you reinstall a new mac, here is a tool that install all the apps for you. Some of you may know Ninite.com a service that changed my life as I'm a tech guy and need to often reinstall some systems (PC). Here is the equivalent for Mac: http://www.getmacapps.com/ You just need to select the apps you want to be installed, copy past a command in terminal, and let the magic do the rest! EDIT: Thanks to /u/noxorm here is an other one that has way more apps: http://macapps.link/
0non-cybersec
Reddit
TIL Operation Paul Bunyan involved the US military sending 800 troops, 7 Cobra attack helicopters, B-52 bombers, and F-4 fighters and mobilizing 12,000 additional troops in order to cut down one single tree..
0non-cybersec
Reddit
Trying to Create an AFM relationship by using GPFS protocol. Having error in cache side cluster. <p>I am trying to create an <code>AFM</code> relationship by using <code>GPFS</code> protocol. Having error in cache side cluster.</p> <p>Steps of Home cluster :</p> <p>1) Create a home cluster (cluster name - gpfs01).</p> <p>2) Create a file system at the home cluster (filesystem name - gpfs01).</p> <p>3) Enable remote access to the file system .</p> <p>4) To configure the exported path at the home cluster for <code>AFM</code>.</p> <p>Steps of Cache cluster :</p> <p>1) Create a cache cluster (cluster name - gpfs02)</p> <p>1) <code>mmchnode --gateway -N Node1</code></p> <p>2) <code>mmstartup -a</code></p> <p>3) <code>mmmount Device -a</code></p> <p>4) Mount the home filesystem on the cache cluster remotely.</p> <p>5) When i am created <code>AFM</code> fileset and link it but still getting this error. </p> <pre><code> [root@gpfs02 ~]# mmcrfileset gpfs02 singleWriter1 -p afmtarget=gpfs:///gpfs/storage/ -p afmmode=sw --inode-space new mmcrfileset: File system gpfs02 belongs to cluster gpfs01. Command is not allowed for remote file systems. mmcrfileset: Command failed. Examine previous error messages to determine cause. [root@gpfs02 ~]# mmcrfileset gpfs01 afm2 -p afmtarget=gpfs:///gpfs/storage/ -p afmmode=sw --inode-space new mmcrfileset: [E] Invalid option specified: gpfs:///gpfs/storage/. The AFM target must be on a separate filesystem. mmcrfileset: Command failed. Examine previous error messages to determine cause. </code></pre>
0non-cybersec
Stackexchange
Setting a base url for urls generated by Spring. <p>We've got a restful api running using spring which generates HATEOAS links. When I run the service locally, they are generated fine, but on our server, which hosts tomcat behind apache which proxies the app to /api/ (locally it's just run on /), the urls are still generated like the app is run on /.</p> <p>Is there any way to tell spring to use a base url when generating these?</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
Small inheritance. I am about to inherit about $40,000. I coincidentally have about $40,000 in student loan debt. Wondering if I should put this $ into a brokerage account and continue to make payments on my student loans, or if I should pay off the loans in one fell swoop. Or, put half toward the principal of my loan and invest the rest. I am a public servant, which means I qualify for loan forgiveness after 120 months of loan payments. I believe that my 120 payments will be completed in about 5 years, of which I'll have to apply for forgiveness and (fingers crossed) be approved. I am not certain that I want to be in my current career for the next 5 years, but if it makes a huge difference to my financial situation, I'll figure out a way to remain a public servant. For some context, I am 30, make only $40,000/year, have no other debt, $5,000 in savings, do not own a home, contribute to a retirement account and a Roth, but generally feel way behind in securing retirement. I would love to purchase a home someday, but know I need stronger investments and/or a higher paying job before this becomes possible.
0non-cybersec
Reddit
Embedding 2-complexes null homotopically into 2-complexes. <p>Whitehead's conjecture states that if <span class="math-container">$L$</span> is an aspherical 2-complex and <span class="math-container">$K$</span> is a subcomplex of <span class="math-container">$L$</span>, then <span class="math-container">$K$</span> is also aspherical. It is known by work of Howie and Luft that if the Whitehead conjecture is false, then there is a counterexample where <span class="math-container">$L$</span> is constructed as the limit of a series of nested spaces <span class="math-container">$K= K_0 \subset K_1 \subset K_2 \subset \cdots$</span> where the inclusion of <span class="math-container">$K_i$</span> in <span class="math-container">$K_{i+1}$</span> is nullhomotopic and each <span class="math-container">$K_i$</span> is not aspherical (or should I just say spherical?). </p> <p>I do not think about 2-complexes very often so I apologize if this is too basic, but I can't picture any examples of such inclusions of 2-complexes <span class="math-container">$A \subset B$</span> where the inclusion is null homotopic and <span class="math-container">$\pi_2(A) \neq 0$</span>. What are some examples of this? Ideally, I would like for <span class="math-container">$A$</span> and <span class="math-container">$B$</span> to both be finite. Any example will probably have <span class="math-container">$\pi_2(B) \neq 0$</span>, since otherwise you solve Whitehead. </p> <p>Given a 2-complex <span class="math-container">$A$</span>, can we always find another 2-complex <span class="math-container">$B$</span> containing <span class="math-container">$A$</span> as a subcomplex so that <span class="math-container">$A$</span> is nullhomotopic in <span class="math-container">$B$</span>? If you could, then this would yield a solution to the Whitehead conjecture, since you could just do that over and over again, and the resulting limit space would be aspherical by compactness. So there are presumably obstructions, does anyone know some? </p> <p>Edit: Whoops - In light of Mike's observation I should assume that <span class="math-container">$H_2(A) = 0$</span>. For the setup of the Whitehead conjecture, we have <span class="math-container">$H_2(K) = 0$</span>, so I definitely should have included that initially - sorry. </p>
0non-cybersec
Stackexchange
ThreadPoolExecutor: how to limit the queue maxsize?. <p>I am using ThreadPoolExecutor class from the concurrent.futures package</p> <pre><code>def some_func(arg): # does some heavy lifting # outputs some results from concurrent.futures import ThreadPoolExecutor with ThreadPoolExecutor(max_workers=1) as executor: for arg in range(10000000): future = executor.submit(some_func, arg) </code></pre> <p>but I need to limit the queue size somehow, as I don't want millions of futures to be created at once, is there a simple way to do it or should I stick to queue.Queue and threading package to accomplish this?</p>
0non-cybersec
Stackexchange
Problem Unlocking Keyring on login. <p>I have a problem with unlocking the keyring.</p> <p>The problem is that every time when login, a window pops up and ask's for password to unlock the key ring.</p> <p>How can this problem be solved?, such that the keyring unlocks automatically when I login.</p>
0non-cybersec
Stackexchange
freepbx/asterisk &quot;All circuits are busy&quot; new install. <p>This has been an issue with every install I have ever put together and could google the answer quickly. However, I haven't built a freepbx for over 2 years and cant recall how to resolve it, and can not find the answer.</p> <p>On all outgoing calls, I get a voice prompt "All circuits are busy"</p> <p>FreePBX 14.0.13.24 asterisk 13.30.0 Centos 6.5</p> <p>Outgoing</p> <pre><code>Trunk Name: Exetel host=58.96.1.2 context=from-trunk type=peer qualify=no reinvite=yes username=*********** secret=*********** disallow=all allow=ulaw&amp;alaw trustrpid=yes sendrpid=yes dtmfmode=rfc2833 </code></pre> <p>Incoming</p> <pre><code>USER Context: 086****** host=sip1.exetel.com.au secret=*********** type=peer insecure=very username=*********** nat=yes dtmfmode=rfc2833 disallow=all allow=ulaw,alaw,gsm,g726 </code></pre> <p>logs</p> <pre><code>netsock2.c: Using SIP RTP TOS bits 184 netsock2.c: Using SIP RTP CoS mark 5 pbx.c: Executing [**outgoing phone**@from-internal:1] Macro("SIP/101-00000006", "user-callerid,LIMIT,EXTERNAL,") in new stack pbx.c: Executing [s@macro-user-callerid:1] Set("SIP/101-00000006", "TOUCH_MONITOR=1580512305.30") in new stack pbx.c: Executing [s@macro-user-callerid:2] Set("SIP/101-00000006", "AMPUSER=101") in new stack pbx.c: Executing [s@macro-user-callerid:3] GotoIf("SIP/101-00000006", "0?report") in new stack pbx.c: Executing [s@macro-user-callerid:4] ExecIf("SIP/101-00000006", "1?Set(REALCALLERIDNUM=101)") in new stack pbx.c: Executing [s@macro-user-callerid:5] Set("SIP/101-00000006", "AMPUSER=101") in new stack pbx.c: Executing [s@macro-user-callerid:6] GotoIf("SIP/101-00000006", "0?limit") in new stack pbx.c: Executing [s@macro-user-callerid:7] Set("SIP/101-00000006", "AMPUSERCIDNAME=Ben") in new stack pbx.c: Executing [s@macro-user-callerid:8] ExecIf("SIP/101-00000006", "0?Set(__CIDMASQUERADING=TRUE)") in new stack pbx.c: Executing [s@macro-user-callerid:9] GotoIf("SIP/101-00000006", "0?report") in new stack pbx.c: Executing [s@macro-user-callerid:10] Set("SIP/101-00000006", "AMPUSERCID=101") in new stack pbx.c: Executing [s@macro-user-callerid:11] Set("SIP/101-00000006", "__DIAL_OPTIONS=Ttr") in new stack pbx.c: Executing [s@macro-user-callerid:12] Set("SIP/101-00000006", "CALLERID(all)="Ben" &lt;101&gt;") in new stack pbx.c: Executing [s@macro-user-callerid:13] ExecIf("SIP/101-00000006", "0?Set(CALLERID(all)=EXTERNAL)") in new stack pbx.c: Executing [s@macro-user-callerid:14] GotoIf("SIP/101-00000006", "0?limit") in new stack pbx.c: Executing [s@macro-user-callerid:15] ExecIf("SIP/101-00000006", "1?Set(GROUP(concurrency_limit)=101)") in new stack pbx.c: Executing [s@macro-user-callerid:16] NoOp("SIP/101-00000006", "Macro Depth is 1") in new stack pbx.c: Executing [s@macro-user-callerid:17] GotoIf("SIP/101-00000006", "1?report2:macroerror") in new stack pbx_builtins.c: Goto (macro-user-callerid,s,18) pbx.c: Executing [s@macro-user-callerid:18] GotoIf("SIP/101-00000006", "1?continue") in new stack pbx_builtins.c: Goto (macro-user-callerid,s,36) pbx.c: Executing [s@macro-user-callerid:36] Set("SIP/101-00000006", "CALLERID(number)=101") in new stack pbx.c: Executing [s@macro-user-callerid:37] Set("SIP/101-00000006", "CALLERID(name)=Ben") in new stack pbx.c: Executing [s@macro-user-callerid:38] GotoIf("SIP/101-00000006", "0?cnum") in new stack pbx.c: Executing [s@macro-user-callerid:39] Set("SIP/101-00000006", "CDR(cnam)=Ben") in new stack pbx.c: Executing [s@macro-user-callerid:40] Set("SIP/101-00000006", "CDR(cnum)=101") in new stack pbx.c: Executing [s@macro-user-callerid:41] Set("SIP/101-00000006", "CHANNEL(language)=en") in new stack pbx.c: Executing [**OUTGOING PHONE NUMBER**@from-internal:2] Gosub("SIP/101-00000006", "sub-record-check,s,1(out,**OUTGOING PHONE NUMBER**,dontcare)") in new stack pbx.c: Executing [s@sub-record-check:1] GotoIf("SIP/101-00000006", "0?initialized") in new stack pbx.c: Executing [s@sub-record-check:2] Set("SIP/101-00000006", "__REC_STATUS=INITIALIZED") in new stack pbx.c: Executing [s@sub-record-check:3] Set("SIP/101-00000006", "NOW=1580512305") in new stack pbx.c: Executing [s@sub-record-check:4] Set("SIP/101-00000006", "__DAY=01") in new stack pbx.c: Executing [s@sub-record-check:5] Set("SIP/101-00000006", "__MONTH=02") in new stack pbx.c: Executing [s@sub-record-check:6] Set("SIP/101-00000006", "__YEAR=2020") in new stack pbx.c: Executing [s@sub-record-check:7] Set("SIP/101-00000006", "__TIMESTR=20200201-071145") in new stack pbx.c: Executing [s@sub-record-check:8] Set("SIP/101-00000006", "__FROMEXTEN=101") in new stack pbx.c: Executing [s@sub-record-check:9] Set("SIP/101-00000006", "__MON_FMT=wav") in new stack pbx.c: Executing [s@sub-record-check:10] NoOp("SIP/101-00000006", "Recordings initialized") in new stack pbx.c: Executing [s@sub-record-check:11] ExecIf("SIP/101-00000006", "0?Set(ARG3=dontcare)") in new stack pbx.c: Executing [s@sub-record-check:12] Set("SIP/101-00000006", "REC_POLICY_MODE_SAVE=") in new stack pbx.c: Executing [s@sub-record-check:13] ExecIf("SIP/101-00000006", "0?Set(REC_STATUS=NO)") in new stack pbx.c: Executing [s@sub-record-check:14] GotoIf("SIP/101-00000006", "3?checkaction") in new stack pbx_builtins.c: Goto (sub-record-check,s,17) pbx.c: Executing [s@sub-record-check:17] GotoIf("SIP/101-00000006", "1?sub-record-check,out,1") in new stack pbx_builtins.c: Goto (sub-record-check,out,1) pbx.c: Executing [out@sub-record-check:1] NoOp("SIP/101-00000006", "Outbound Recording Check from 101 to 0405652555") in new stack pbx.c: Executing [out@sub-record-check:2] Set("SIP/101-00000006", "RECMODE=dontcare") in new stack pbx.c: Executing [out@sub-record-check:3] ExecIf("SIP/101-00000006", "1?Goto(routewins)") in new stack pbx_builtins.c: Goto (sub-record-check,out,7) pbx.c: Executing [out@sub-record-check:7] Gosub("SIP/101-00000006", "recordcheck,1(dontcare,out,0405652555)") in new stack pbx.c: Executing [recordcheck@sub-record-check:1] NoOp("SIP/101-00000006", "Starting recording check against dontcare") in new stack pbx.c: Executing [recordcheck@sub-record-check:2] Goto("SIP/101-00000006", "dontcare") in new stack pbx_builtins.c: Goto (sub-record-check,recordcheck,3) pbx.c: Executing [recordcheck@sub-record-check:3] Return("SIP/101-00000006", "") in new stack pbx.c: Executing [out@sub-record-check:8] Return("SIP/101-00000006", "") in new stack pbx.c: Executing [**OUTGOING PHONE NUMBER**@from-internal:3] Set("SIP/101-00000006", "MOHCLASS=default") in new stack pbx.c: Executing [**OUTGOING PHONE NUMBER**@from-internal:4] Set("SIP/101-00000006", "_NODEST=") in new stack pbx.c: Executing [**OUTGOING PHONE NUMBER**@from-internal:5] Macro("SIP/101-00000006", "dialout-trunk,2,0405652555,,on") in new stack pbx.c: Executing [s@macro-dialout-trunk:1] Set("SIP/101-00000006", "DIAL_TRUNK=2") in new stack pbx.c: Executing [s@macro-dialout-trunk:2] ExecIf("SIP/101-00000006", "0?Set(DIAL_OPTIONS=tr)") in new stack pbx.c: Executing [s@macro-dialout-trunk:3] GosubIf("SIP/101-00000006", "0?sub-pincheck,s,1()") in new stack pbx.c: Executing [s@macro-dialout-trunk:4] ExecIf("SIP/101-00000006", "0?Set(CALLERID(num)=101)") in new stack pbx.c: Executing [s@macro-dialout-trunk:5] GotoIf("SIP/101-00000006", "0?disabletrunk,1") in new stack pbx.c: Executing [s@macro-dialout-trunk:6] Set("SIP/101-00000006", "DIAL_NUMBER=**OUTGOING PHONE NUMBER**") in new stack pbx.c: Executing [s@macro-dialout-trunk:7] Set("SIP/101-00000006", "DIAL_TRUNK_OPTIONS=Ttr") in new stack pbx.c: Executing [s@macro-dialout-trunk:8] Set("SIP/101-00000006", "OUTBOUND_GROUP=OUT_2") in new stack pbx.c: Executing [s@macro-dialout-trunk:9] Set("SIP/101-00000006", "DIAL_TRUNK_OPTIONS=T") in new stack pbx.c: Executing [s@macro-dialout-trunk:10] GotoIf("SIP/101-00000006", "0?nomax") in new stack pbx.c: Executing [s@macro-dialout-trunk:11] GotoIf("SIP/101-00000006", "0?chanfull") in new stack pbx.c: Executing [s@macro-dialout-trunk:12] GotoIf("SIP/101-00000006", "0?skipoutcid") in new stack pbx.c: Executing [s@macro-dialout-trunk:13] Macro("SIP/101-00000006", "outbound-callerid,2") in new stack pbx.c: Executing [s@macro-outbound-callerid:1] NoOp("SIP/101-00000006", "101") in new stack pbx.c: Executing [s@macro-outbound-callerid:2] NoOp("SIP/101-00000006", "") in new stack pbx.c: Executing [s@macro-outbound-callerid:3] NoOp("SIP/101-00000006", "off") in new stack pbx.c: Executing [s@macro-outbound-callerid:4] ExecIf("SIP/101-00000006", "0?Set(CALLERPRES(name-pres)=)") in new stack pbx.c: Executing [s@macro-outbound-callerid:5] ExecIf("SIP/101-00000006", "0?Set(CALLERPRES(num-pres)=)") in new stack pbx.c: Executing [s@macro-outbound-callerid:6] ExecIf("SIP/101-00000006", "0?Set(REALCALLERIDNUM=101)") in new stack pbx.c: Executing [s@macro-outbound-callerid:7] ExecIf("SIP/101-00000006", "0?Set(AMPUSER=101)") in new stack pbx.c: Executing [s@macro-outbound-callerid:8] GotoIf("SIP/101-00000006", "1?normcid") in new stack pbx_builtins.c: Goto (macro-outbound-callerid,s,12) pbx.c: Executing [s@macro-outbound-callerid:12] Set("SIP/101-00000006", "USEROUTCID=") in new stack pbx.c: Executing [s@macro-outbound-callerid:13] Set("SIP/101-00000006", "EMERGENCYCID=") in new stack pbx.c: Executing [s@macro-outbound-callerid:14] Set("SIP/101-00000006", "TRUNKOUTCID=0862431616") in new stack pbx.c: Executing [s@macro-outbound-callerid:15] GotoIf("SIP/101-00000006", "1?trunkcid") in new stack pbx_builtins.c: Goto (macro-outbound-callerid,s,21) pbx.c: Executing [s@macro-outbound-callerid:21] ExecIf("SIP/101-00000006", "1?Set(CALLERID(all)=**DID**)") in new stack pbx.c: Executing [s@macro-outbound-callerid:22] ExecIf("SIP/101-00000006", "0?Set(CALLERID(all)=)") in new stack pbx.c: Executing [s@macro-outbound-callerid:23] ExecIf("SIP/101-00000006", "0?Set(CALLERID(all)=)") in new stack pbx.c: Executing [s@macro-outbound-callerid:24] ExecIf("SIP/101-00000006", "0?Set(CALLERID(all)=101)") in new stack pbx.c: Executing [s@macro-outbound-callerid:25] ExecIf("SIP/101-00000006", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack pbx.c: Executing [s@macro-outbound-callerid:26] ExecIf("SIP/101-00000006", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack pbx.c: Executing [s@macro-outbound-callerid:27] Set("SIP/101-00000006", "CDR(outbound_cnum)=**DID**") in new stack pbx.c: Executing [s@macro-outbound-callerid:28] Set("SIP/101-00000006", "CDR(outbound_cnam)=") in new stack pbx.c: Executing [s@macro-dialout-trunk:14] GosubIf("SIP/101-00000006", "1?sub-flp-2,s,1()") in new stack pbx.c: Executing [s@sub-flp-2:1] ExecIf("SIP/101-00000006", "0?Return()") in new stack pbx.c: Executing [s@sub-flp-2:2] ExecIf("SIP/101-00000006", "1?Return()") in new stack pbx.c: Executing [s@macro-dialout-trunk:15] Set("SIP/101-00000006", "OUTNUM=**OUTBOUND PHONE NUMBER**") in new stack pbx.c: Executing [s@macro-dialout-trunk:16] Set("SIP/101-00000006", "custom=SIP/Exetel") in new stack pbx.c: Executing [s@macro-dialout-trunk:17] ExecIf("SIP/101-00000006", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)") in new stack pbx.c: Executing [s@macro-dialout-trunk:18] ExecIf("SIP/101-00000006", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack pbx.c: Executing [s@macro-dialout-trunk:19] Macro("SIP/101-00000006", "dialout-trunk-predial-hook,") in new stack pbx.c: Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/101-00000006", "") in new stack pbx.c: Executing [s@macro-dialout-trunk:20] GotoIf("SIP/101-00000006", "0?bypass,1") in new stack pbx.c: Executing [s@macro-dialout-trunk:21] ExecIf("SIP/101-00000006", "1?Set(CONNECTEDLINE(num,i)=**OUTBOUND PHONE NUMBER**)") in new stack pbx.c: Executing [s@macro-dialout-trunk:22] ExecIf("SIP/101-00000006", "1?Set(CONNECTEDLINE(name,i)=CID:**DID**)") in new stack pbx.c: Executing [s@macro-dialout-trunk:23] ExecIf("SIP/101-00000006", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)**DID**)") in new stack pbx.c: Executing [s@macro-dialout-trunk:24] GotoIf("SIP/101-00000006", "0?customtrunk") in new stack pbx.c: Executing [s@macro-dialout-trunk:25] ExecIf("SIP/101-00000006", "0?Set(DIAL_TRUNK_OPTIONS=)") in new stack pbx.c: Executing [s@macro-dialout-trunk:26] Dial("SIP/101-00000006", "SIP/Exetel/**OUTBOUND PHONE NUMBER**,300,Tb(func-apply-sipheaders^s^1,(2))") in new stack netsock2.c: Using SIP RTP TOS bits 184 netsock2.c: Using SIP RTP CoS mark 5 app_stack.c: SIP/Exetel-00000007 Internal Gosub(func-apply-sipheaders,s,1(2)) start pbx.c: Executing [s@func-apply-sipheaders:1] NoOp("SIP/Exetel-00000007", "Applying SIP Headers to channel SIP/Exetel-00000007") in new stack pbx.c: Executing [s@func-apply-sipheaders:2] Set("SIP/Exetel-00000007", "TECH=SIP") in new stack pbx.c: Executing [s@func-apply-sipheaders:3] Set("SIP/Exetel-00000007", "SIPHEADERKEYS=") in new stack pbx.c: Executing [s@func-apply-sipheaders:4] While("SIP/Exetel-00000007", "0") in new stack app_while.c: Jumping to priority 10 pbx.c: Executing [s@func-apply-sipheaders:11] Return("SIP/Exetel-00000007", "") in new stack app_stack.c: Spawn extension (from-trunk, **OUTBOUND PHONE NUMBER**, 1) exited non-zero on 'SIP/Exetel-00000007' app_stack.c: SIP/Exetel-00000007 Internal Gosub(func-apply-sipheaders,s,1(2)) complete GOSUB_RETVAL= app_dial.c: Called SIP/Exetel/**OUTBOUND PHONE NUMBER** chan_sip.c: Received response: "Forbidden" from '&lt;sip:**DID**@**SERVER IP**&gt;;tag=as5b56e5d8' app_dial.c: Everyone is busy/congested at this time (1:0/0/1) pbx.c: Executing [s@macro-dialout-trunk:27] NoOp("SIP/101-00000006", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21") in new stack pbx.c: Executing [s@macro-dialout-trunk:28] GotoIf("SIP/101-00000006", "1?continue,1:s-CHANUNAVAIL,1") in new stack pbx_builtins.c: Goto (macro-dialout-trunk,continue,1) pbx.c: Executing [continue@macro-dialout-trunk:1] NoOp("SIP/101-00000006", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 21 - failing through to other trunks") in new stack pbx.c: Executing [continue@macro-dialout-trunk:2] ExecIf("SIP/101-00000006", "1?Set(CALLERID(number)=101)") in new stack pbx.c: Executing [**OUTBOUND PHONE NUMBER**@from-internal:6] Macro("SIP/101-00000006", "outisbusy,") in new stack pbx.c: Executing [s@macro-outisbusy:1] Progress("SIP/101-00000006", "") in new stack pbx.c: Executing [s@macro-outisbusy:2] GotoIf("SIP/101-00000006", "0?emergency,1") in new stack pbx.c: Executing [s@macro-outisbusy:3] GotoIf("SIP/101-00000006", "0?intracompany,1") in new stack pbx.c: Executing [s@macro-outisbusy:4] Playback("SIP/101-00000006", "all-circuits-busy-now&amp;please-try-call-later, noanswer") in new stack file.c: &lt;SIP/101-00000006&gt; Playing 'all-circuits-busy-now.ulaw' (language 'en') file.c: &lt;SIP/101-00000006&gt; Playing 'please-try-call-later.ulaw' (language 'en') </code></pre> <p>From what I can see, the problem starts with </p> <pre><code>Received response: "Forbidden" from '&lt;sip:**DID**@**SERVER IP**&gt;;tag=as5b56e5d8' </code></pre>
0non-cybersec
Stackexchange
Getting Microsoft Security Essentials to alert me when a threat has been found. <p>Is there a way of getting Microsoft Security Essentials to alert me when a threat has been found?</p> <p>I recently went through the log tab of Windows Defender and found a number of threats in the quarantine, but I have no idea how they got there. For future events, I would like to find out if and when I enter a hostile web page by having Microsoft Security EssentialsMicrosoft Security Essentials (or some 3rd party) notify me.</p> <p>Is this possible? Perhaps some kind of tool that would monitor the Events log?</p>
0non-cybersec
Stackexchange
Pupper doesn't approve of photography..
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
If Obi Wan had used force speed.
0non-cybersec
Reddit
Why isn’t there a huge outcry that iPhones still don’t support 4K on Youtube?. I‘m aware it’s because of the different codecs used, but I don’t give a shit. I have a 4K Apple TV hooked up to a 4K TV and can only get 1080P when using Airplay from my 1500 fucking Euro XS Max. How do people not go postal over that?
0non-cybersec
Reddit
How can I place a table (including caption) across two columns of a \twocolum document?. <p>I have inserted a table in a two column document. The table should span across both columns without a page break. Ideally, the table should be fixed at the top of a page with two columns of text below. I almost got what I wanted using <code>\FloatBarrier</code>. The table now ignores the columns and spans across the whole page breadth. However, this didn't work for the caption below, which is fit into the left column. I also noticed that in Overleaf the text gets printed over the table and the table is still fixed to a column (when it gets positioned on a right side column, it stretches over the borders of the page). Is there a way to get the result I want (see picture)<a href="https://i.stack.imgur.com/XM6u8.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XM6u8.jpg" alt="enter image description here"></a>?</p> <pre><code>\documentclass[12pt,a4paper,twoside]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[left={2.5cm},right={2.5cm},top={2cm},bottom={2.5cm}]{geometry} \usepackage{multirow} \usepackage{tabularx,booktabs} \usepackage{placeins} \usepackage{calc} \usepackage{float} \usepackage{lipsum} \begin{document} \twocolumn \lipsum[3-5] \FloatBarrier \begin{table}[!tbh] \centering \begin{tabularx}{\textwidth}{lllll} %\toprule \textbf{step} &amp; \textbf{extractant} &amp; \textbf{target phase} &amp; \parbox{3cm}{\bfseries possible mechanism} &amp; \textbf{reference} \\ \addlinespace[0.2cm] \parbox[t][][t]{\widthof{digestion}}{PO\(_4\)} &amp; \parbox[t][][t]{\widthof{1\,M NaH2PO4}}{1\,M NaH2PO4, pH\,5, 16\,h, 24\,h + water wash} &amp; \parbox[t][][t]{\widthof{As coprecipitated}}{adsorbed As} &amp; \parbox[t][][t]{3.2cm}{anion exchange of PO4 for AsO4 and AsO3} &amp; \parbox[t][][t]{3.3cm}{\cite{welchFactorsControllingShallow1998}; modified by \cite{keonValidationArsenicSequential2001}}\\ \addlinespace[0.2cm] \parbox[t][][t]{\widthof{digestion}}{HCl} &amp; \parbox[t][][t]{\widthof{1\,M NaH2PO4}}{1\,N HCl, 2\(*\)\,1\,h + water wash} &amp; \parbox[t][][t]{\widthof{As coprecipitated}}{As coprecipitated with Mn oxides and amorphous Fe oxides} &amp; \multirow{3}{3.2cm}{proton dissolution; Fe-Cl complexation} &amp; \parbox[t][][t]{3.3cm}{\cite{huerta-diazPyritizationTraceMetals1992}; \cite{cornwellCharacterizationIronSulfide1987}; \cite{wallmannNewProcedureDetermining1993}; \cite{canfieldSulfateReductionDiagenesis1988}} \\ \addlinespace[0.2cm] \parbox[t][][t]{\widthof{digestion}}{Microwave digestion} &amp; \parbox[t][][t]{\widthof{1\,M NaH2PO4}}{xxx} &amp; \parbox[t][][t]{\widthof{As coprecipitated}}{xxx} &amp; \parbox[t][][t]{3.2cm}{xxx} &amp; \parbox[t][][t]{3.3cm}{cite{various}} \\ \bottomrule \end{tabularx} \caption[Single Extraction: Steps]{Single Extraction Procedure; table from \cite{keonValidationArsenicSequential2001} (modified)} \label{extraction_steps} \end{table} \lipsum[6-8] \end{document} </code></pre>
0non-cybersec
Stackexchange
Are there any other movies like 'From Dusk Till Dawn' that did a complete 180 on the plot half way into the movie?. I am not sure if the trailer at the time acknowledge the whole vampire element of the film, but when I first saw that movie I was completely unprepared when the shit hits the fan in the titty twister! Are there any other movies that pull something similar like this off? Also, what did you think about the vampire twist in FDTD? Did you enjoy it or think it ruined the movie? As much as I'd love a more serious film with the Gecko brothers, I still had so much fun with that movie as it played out.
0non-cybersec
Reddit
Call js-function using JQuery timer. <p>Is there anyway to implement a timer for JQuery, eg. every 10 seconds it needs to call a js function. </p> <p>I tried the following</p> <pre><code>window.setTimeout(function() { alert('test'); }, 10000); </code></pre> <p>but this only executes once and then never again. </p>
0non-cybersec
Stackexchange
A nurse describes their most gruesome case in terrific detail.
0non-cybersec
Reddit
cURL &quot;response reading failed&quot; in FTPS file transfer. <p>I am trying to download a directory and it's files using cURL via FTPS.</p> <p>The following command gets me very close - I successfully logged in and set the clear command channel, but then it fails with <code>curl: (56) response reading failed</code></p> <pre><code>curl -v --ftp-ssl --data-ascii --ftp-pasv --no-epsv --user myusername:XXXXXXXX ftp://ftp.server.com:21 -Q "CCC" * About to connect() to ftp.server.com port 21 (#0)* Trying 55.55.55.55... connected &lt; 220-This System Is For Authorized Users Only. &lt; 220- &lt; 220 Secure FTP Server - SecureTransport ready. &gt; AUTH SSL &lt; 234 SSLv23/TLSv1 * successfully set certificate verify locations: * CAfile: none CApath: /etc/ssl/certs * SSLv3, TLS handshake, Client hello (1): * SSLv3, TLS handshake, Server hello (2): * SSLv3, TLS handshake, CERT (11): * SSLv3, TLS handshake, Server finished (14): * SSLv3, TLS handshake, Client key exchange (16): * SSLv3, TLS change cipher, Client hello (1): * SSLv3, TLS handshake, Finished (20): * SSLv3, TLS change cipher, Client hello (1): * SSLv3, TLS handshake, Finished (20): * SSL connection using AES256-SHA * Server certificate: * subject: DC=local; DC=ftp_host_company; DC=us; OU=Accounts; OU=SSL Accounts; CN=ftp.server.com * start date: 2012-02-14 16:29:37 GMT * expire date: 2015-02-14 16:59:37 GMT * common name: ftp.server.com (matched) * issuer: DC=local; DC=ftp_host_company; CN=Configuration; CN=Services; CN=Public Key Services; CN=AIA; CN=FTP_hosting_company Issuing CA 1 * SSL certificate verify ok. &gt; USER myusername &lt; 331 Password required for myusername. &gt; PASS XXXXXXXX &lt; 230 Virtual user myusername logged in. &gt; PBSZ 0 &lt; 200 PBSZ=0 &gt; PROT P &lt; 200 PROT command successful &gt; PWD &lt; 257 "/" is current directory. * Entry path is '/' &gt; CCC &lt; 200 command channel cleared. &gt; PASV * Connect data stream passively * SSLv3, TLS alert, Client hello (1): * response reading failed * Closing connection #0 * SSLv3, TLS alert, Client hello (1): curl: (56) response reading failed </code></pre> <p>The ftps host specifically said that I would need to connect with FTPS with Clear Command Channel on Port 21 - anything I'm missing?</p>
0non-cybersec
Stackexchange
Printing all lines between two strings, with one as a user input, using sed. <p>I'm trying to use:</p> <pre><code>sed -n '/String1/,/String2/p' Filename </code></pre> <p>to print all lines between String1 and String2. Although I want to add String1 as a user input so,</p> <pre><code>read $userinput sed -n '/$userinput/,/String2/p' Filename. </code></pre> <p>But as the input is within quotation is is read as the string <code>$userinput</code> instead of the given input.</p>
0non-cybersec
Stackexchange
Upside down tikz-qtree with concentrated edges. <p>I would like to create an upside down tree with concentrate edges and labels inside the nodes as labels above them.</p> <p><img src="https://i.stack.imgur.com/NVSj9.jpg" alt="desired result"></p> <p>Right now I've come so far. But I still need the edges to concentrate/combine and put the labels <code>+</code> and <code>*</code> next to the overlapping bit. And I need to add the extra labels <code>x</code>, <code>y</code>, and <code>z</code> to the top nodes.</p> <p><img src="https://i.stack.imgur.com/osant.png" alt="current situation"></p> <p>How do I get the tree from the first image? (The corners do not need to be rounded.) It is not absolutely necessary to use tikz-qtree.</p> <pre><code>\tikzstyle{var} = [draw,shape=rectangle,minimum size=2em, inner sep=2pt,fill=white!20] \tikzstyle{operator} = [draw=none,fill=none,minimum size=2em, inner sep=2pt,fill=white!20] \begin{tikzpicture}[grow'=up,level distance=1.25cm,sibling distance=1cm,] \tikzset{every node/.style={var}} \Tree [.7 \edge node[auto=right,style={operator}] {$+$}; [.6 \edge node[auto=right,style={operator}] {$*$}; [.2 ] [.3 ] ] [.1 ] ] \end{tikzpicture} </code></pre>
0non-cybersec
Stackexchange
could not connect to server (FreeNAS server). <p>I have imported a volume and set its permission like this <img src="https://i.stack.imgur.com/1fdRH.png" alt="enter image description here"></p> <p>then I created an AFP share like this <img src="https://i.stack.imgur.com/bOYm9.png" alt="enter image description here"></p> <p>then I created an AFP service like this <img src="https://i.stack.imgur.com/ebtQS.png" alt="enter image description here"></p> <p>but when I am trying to connect to server from Mac I am getting error <img src="https://i.stack.imgur.com/XVEln.png" alt="enter image description here"></p>
0non-cybersec
Stackexchange
Bringing myself up to speed. Hi folks, I'm looking to build a new gaming rig in the very near future. I've built PCs before, but I haven't built anything in the past several years, and I'm finding that I'm pretty out of the loop when it comes to having a good grasp of all the hardware that's available now. Does anyone know of any good resources to help bring me up to speed on all the fancy hardware out there and what to look for in terms of benchmarks and such? Any help would be greatly appreciated. :)
0non-cybersec
Reddit
I have 20 different steam keys to give away!. I have 20 steam keys to give away. Nothing special. I honestly have never heard of any of these games before, and none interest me, so I don't really want them. I'll add a list of these games on this post at 4:30pm US Eastern Time (in about 45 minutes). Please leave a comment before then to let me know that this post has gained attention. I'm thinking I'll just give whichever key to whoever asks for it first, and will cross off and keep updated which keys are taken. **SOME RULES** **1.** One key per request. **2.** Your account must be at least 2 weeks old and appear active. (to avoid one person asking for multiple keys) **3.** I will private message you the key. **4.** I have no reason to doubt the valid status of these keys. I purchased them in random crates, and am under the belief that I am the first to see them. I apologize if there are issues registering the key, but seeing that this is a giveaway, I will not oblige any request to purchase you that game, or any other. **5.** If there is a dispute where multiple users ask for the same key, and I cannot determine who asked first, it will be up to choosing a number between 1 and 100. **This giveaway is in the spirit of sharing fun among our glorious community. Thank you for participating!** **EDITS** The games are up for grabs once the list is posted MAKE A NEW COMMENT FOR YOUR REQUEST. I WILL BE MONITORING MY INBOX FOR THIS WHOLE THING, AND EDITS DO NOT SHOW UP AS NEW. It is going to take a minute or so to process each request, between checking the user's history, crossing off the title, and messaging them the code. Please be patient. I am only one man. **10 minutes peeps** **5 Minutes** leave a comment as soon as you know what game you want. I'll be going in order of what shows up in my inbox **2 Minutes** You just have to be the first to say what you want **1 Minute!** The Hype Train is approaching the station! Alien Hallway Alien Shooter - Revisited Bloodbath kavkaz Commander - Conquest Of The Americas Cubetractor Culling Of The Cows Fly and Destroy Gun Metal Hacker Evolution Knightshift Pixel Puzzles 2 Anime Pixel Puzzles 2 Birds Pixel Puzzles Japan Shut Up And Dig Soulbringer Space Farmers Survive in space Two Worlds - Game of the Year Edition Two Worlds 2 Zombie Shooter **THATS IT HOMIES!** Wow that kinda fucked my inbox I hope every one atleast had fun, and congratulations to the winners. I hope you get some enjoyment out of your new game! The instant i submitted the list, my inbox was just like WWHOOOOOSSHHHHH!!!!!! I started with the earliest enrty and counted toward the last. about the time people started asking for what i no longer had, i tried replying to each one, but that was just foolish, because i was still getting like 3 new comments every second. haha it was a lot of fun actually. Fun enough that i may do it again some time soon ;) **It's over guys!** Sorry I thought i said that already in the edits
0non-cybersec
Reddit
Israel, Vanunu and the Bomb (2007) - The story about Mordechai Vanunu who showed the world Israels nuclear weapons..
0non-cybersec
Reddit
Difference between / and /* in servlet mapping url pattern. <p>The familiar code: </p> <pre class="lang-xml prettyprint-override"><code>&lt;servlet-mapping&gt; &lt;servlet-name&gt;main&lt;/servlet-name&gt; &lt;url-pattern&gt;/*&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; &lt;servlet-mapping&gt; &lt;servlet-name&gt;main&lt;/servlet-name&gt; &lt;url-pattern&gt;/&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; </code></pre> <p>My understanding is that <code>/*</code> maps to <code>http://host:port/context/*</code>.</p> <p>How about <code>/</code>? It sure doesn't map to <code>http://host:port/context</code> root only. In fact, it will accept <code>http://host:port/context/hello</code>, but reject <code>http://host:port/context/hello.jsp</code>.</p> <p>Can anyone explain how is <code>http://host:port/context/hello</code> mapped? </p>
0non-cybersec
Stackexchange
iPhone 6+ (iOS v12.4.6)'s Photos app shows "From My Mac" album after USB2 syncing my PC's iTunes photos..
0non-cybersec
Reddit
Ashamed of my new girlfriend. It feels bad/makes me sad to type this, but right now, I'm ashamed of my new girlfriend. We're both 21, and we've been together for a month now. I just got back from a new years eve party, and she made a complete fool out of herself, and me. She got completely wasted tonight. I honestly can't count the amount of times she just randomly fell down on the floor throughout the night. She couldn't stand on her feet by the end of the night, she kept having random mood swings where she'd start crying, she'd fall asleep at the bar, and everyone would make fun of her, while I was there supporting her. At the end, I had to carry her on my back, sat on the bus together with her to get to her home, then walk all the way back in the cold, to the city we went out (about an hour and half by foot) as there was no other bus to go back. Now you might say "it's new years eve, relax" it's not the first time this has happened though. Tonight was also the night where she met some of my friends for the first time, and they really have a pathetic view of her right now. I guess talking about it with her is the obvious answer, but I'd have no idea how to begin about this, without offending her? I also hope she realizes and appreciates what I've done for her tonight **EDIT** Thank you for the replies, Reddit. I REALLY appreciate it. She's coming over tonight to have dinner with my parents and myself, she's then staying the night. I will bring it up.
0non-cybersec
Reddit
Canoeing through a massive group of rays.
0non-cybersec
Reddit
Time Capsule Fileshare over internet with windows. <p>I can access the hard disc from the time capsule over the internet with any mac computer. But it is not working with windows. Windows prompts the network security alert where I have to enter the username and password. But the correct username and password is always wrong. For example, if I enter the credentials Michael in the username field and qwerty123 in the password field on a mac, it connects. The same on windows and it says wrong credentials. </p> <p>My setup is as follows: A router is connected to the WAN. Because the IP changes every 24h, I setup a dyn DNS. The time capsule is connected to the router with a cable and is in bridge mode. Windows and OSX can access the hard disc in the LAN. The router makes a port forwarding to the time capsule. </p>
0non-cybersec
Stackexchange
Got my first haircut in 4 years. Is it an improvement?.
0non-cybersec
Reddit
First Non-Dorky Bluetooth Headset? -Moto Hint..
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
Guesses Based on Your Location/Climate/Geography. The area I live in has a good range of salt and fresh water, coniferous and deciduous forest, plains, hills and rocky areas. That combined with the fact that we have big ranges in temperature and precipitation between seasons, I am hoping we will get a good range.Nothing like Infernape or Metang, but maybe Larvitar or Sudowoodo. I also expect to see Deerling since we have a lot of Moose and Deer. Honestly except for anything tropical or from areas with extreme temperatures I wouldn't be surprised by much, especially if they don't arbitrarily limit what and how many pokemon can be found in different regions. Anyone else have any guesses for what they are expecting or even what they are hoping for?
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
space car.
0non-cybersec
Reddit
Yep. You Nailed It..
0non-cybersec
Reddit
‘Independence Day: Resurgence’ Viral Video "The War of 1996” | A United World News Special. ["The War of 1996”](https://www.youtube.com/watch?v=6IKUNzGn2cc)
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
Darth Vapor! .
0non-cybersec
Reddit
Where do I set &#39;NODE_OPTIONS=&quot;–max-old-space-size=2048&quot;&#39;. <p>When I run "npm start" in application I get the following error - FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory</p> <p>Most of the solutions posted online are about increasing memory with NODE_OPTIONS="–max-old-space-size=2048". But I have no idea where to set this. Some posts talked about a .bashrc file which my project does not have. I'm also on a windows system. The "npm start" command runs "npm run build-semantic &amp;&amp; react-scripts start" as set up in package.json.</p>
0non-cybersec
Stackexchange
What is up with the new angel game controller award here on Reddit?. Along with Gold, Silver, and Platinum, I've been seeing another award popping up a lot in the last few days. It looks like a video game controller with wings and a halo. It's not listed on [the help page for awards.](https://www.reddithelp.com/en/categories/reddit-101/reddit-basics/what-are-awards) I know some subs have their own community awards now, but I've been seeing this one all over the place, on lots of different subs and posts. Can somebody tell me what I means please? Thank you!
0non-cybersec
Reddit
My friends home was broken into while we were out camping. The house bit back..
0non-cybersec
Reddit
Facebook bans Iranian network of shills 'Targeting U.S., Israel and Saudi Arabia'.
1cybersec
Reddit
Is there an easy way to get something like Keras model.summary in Tensorflow?. <p>I have been working with Keras and really liked the <code>model.summary()</code> It gives a good overview of the size of the different layers and especially an overview of the number of parameters the model has.</p> <p>Is there a similar function in Tensorflow? I could find nothing on Stackoverflow or the Tensorflow API documentation.</p>
0non-cybersec
Stackexchange
Solve $x^3 +y^3 + z^3 =57$. <p>How can we solve $x^3 + y^3 + z^3 =57$ efficiently in a shorter way. $x$ $y$ and $z$ are integers. Given that modulus of $x$ $y$ and $z$ is less than or equal to five. We can of course do by hit and trial but what is the method of solving such questions. I actually stumbled upon this equation while solving a determinant. How to proceed. Pls help</p>
0non-cybersec
Stackexchange
Get minSdkVersion and targetSdkVersion from apk file. <p>I am trying to get the values of <code>minSdkVersion</code> and <code>targetSdkVersion</code> from an apk stored on the device. Getting other details are discussed <a href="https://stackoverflow.com/questions/5661418/get-apk-file-icon-version-name">here</a>, but only the <a href="http://developer.android.com/reference/android/content/pm/ApplicationInfo.html#targetSdkVersion" rel="nofollow noreferrer"> targetSdkVersion </a> is available in the <code>ApplicationInfo</code> class. Can the <code>minSdkVersion</code> be obtained other than by extracting the apk file and reading AndroidManifest.xml?</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
upgrade of virtual machine upgraded main machine. <p>I was running Ubuntu 10.11 , with several virtual machines on it (Windows XP, Windows 7, Ubuntu 11.04 etc) and decided to update the Ubuntu 11.04 virtual machine to 11.10.</p> <p>However, it decided (there was no option anywhere) to update the MAIN machine, not the virtual machine and consequently, the computer won't boot up!</p> <p>I have got it going using a flash drive and I can see all my files - but I can't get at them to copy, because it says I do not have the necessary permissions.</p> <p>Similarly, I can see the virtual machine folders, but I can't access them.</p> <p>Anyone any bright ideas? Thanks Chris</p>
0non-cybersec
Stackexchange
Smurfing IS a problem in Overwatch. As we all know the world cup countries that are allowed to participate are the top 20 countries based on the top 150 players average SR. I will use dafran here as an example, but he is off course not the only one "guilty" of this. Dafran currently has 3 acccounts, they are rank 1,2 and 4. These 3 accounts SIGNIFICANTLY boost the average SR of Denmark. Not only do these accounts change the seeding Denmark will have, but Dafran gets to vote 3 times on his countries coach. Now imagine this happening on a much larger scale, where the top players of each countries all have several accounts in the top 150 players of their country. They all get several votes and can change the outcome, of what should be a fair vote. I think the only solution for this problem is if Blizzard steps up, and doesn't give these secondary accounts the option to vote. And, doesn't take these accounts into calculation when determining the average SR per country. Edit: I may have worded this poorly by using the word smurfing. What i mean is alternate accounts, that play at the same level as their main account.
0non-cybersec
Reddit
Shout out to people who corner.
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
Who's excited for the return of Salem tonight?.
0non-cybersec
Reddit
An r-neighborhood of a measurable set of intermediate measure has strictly larger measure. <p>I think the following should be true but can’t seem to figure out a proof:</p> <p>Let <span class="math-container">$M$</span> be a connected compact Riemannian manifold (without boundary) with the volume measure, normalized so that the total measure is 1.</p> <p>Let <span class="math-container">$A$</span> be a Borel measurable subset such that <span class="math-container">$0 &lt; \mathrm{vol}(A) &lt; 1$</span>. For <span class="math-container">$r &gt; 0$</span>, let <span class="math-container">$$ B(A, r) := \bigcup_{x \in A} B(x, r) $$</span> be the <span class="math-container">$r$</span>-neighborhood of <span class="math-container">$A$</span>, where <span class="math-container">$B(x, r) := \{y \in M \mid d(x, y) &lt; r\}$</span>. </p> <p>Show that for all <span class="math-container">$r &gt; 0$</span>, <span class="math-container">$\mathrm{vol}(B(A,r)) &gt; \mathrm{vol}(A)$</span>.</p> <p>If A is closed (hence compact) this is clear. But I am having trouble proving it in general. I have thought of using the fact that <span class="math-container">$A$</span> can be approximated from the inside by compact sets but it is not clear to me how to complete the proof. Any suggestions are appreciated. Thanks.</p>
0non-cybersec
Stackexchange
Why won&#39;t Ubuntu 11.10 fully boot?. <p>I get stuck on boot-up and need help. I get an error message that says:</p> <blockquote> <p>103.795829 drm:drm_crtc_helper_set_config. ERROR failed to set mode on crtc:6. </p> </blockquote> <p>Can anyone help me fix this?</p>
0non-cybersec
Stackexchange
What does this even mean.
0non-cybersec
Reddit
Git pull from specific branch. <p>I want to pull changes from specified branch to my local repository, but I don't wont it to merge with master branch. What is the right way to do that? Do I have to make my own branch and than pull? </p>
0non-cybersec
Stackexchange
Who’s ready to Karaoke when the bars open?.
0non-cybersec
Reddit
PSA: For those who love diet sodas...consider your teeth!. I thought this was a good time to chime in on the debate over diet soda, after /u/funchord's [post about soda consumption](https://www.reddit.com/r/loseit/comments/4cprv4/article_us_soda_consumption_falls_to_30year_low/). I love diet soda, and I drink about 1 to 2 cans a day to ease the craving for something cold and sweet. It's also my default drink to order when I go to bars with friends. However, a few days ago I went to the dentist. This guy came highly recommended by my co-worker, and I was unsatisfied with the government-subsidised dentist I'd been going to over the past few years (it was always a wham-bam-thank-you-ma'am experience). This new dentist took the time to examine my teeth properly. The first thing he asked me was: "Has anyone ever told you that you grind your teeth in your sleep?" I was surprised that he asked that, and said no. He remarked that my teeth had a LOT of wear and tear, and looked very eroded. That was when I told him I drink a lot of diet soda, and he shook his head. I'm at that point where I'm still able to save most of my teeth, but the damage of 30+ years of soda has already taken its toll. We may argue back and forth over whether diet soda increases sugary cravings, or whether it's good for weight loss. Me? I've decided to give it up in order to save my teeth. I might have one occasionally, but my days of guzzling a can with lunch AND dinner are over. I really hope this post doesn't sound preachy or anything. I just thought that if I had seen something cautionary like this, I would have stopped drinking diet soda years ago, so I thought I'd post this in case it might benefit someone else.
0non-cybersec
Reddit
ASMR Sleep Meditation Music - Beat Insomnia & Anxiety.
0non-cybersec
Reddit
Is there any &quot;superlogarithm&quot; or something to solve $x^x$?. <p>Is there any "superlogarithm" or something to solve an equation like this:</p> <p>$$x^x = 10?$$</p>
0non-cybersec
Stackexchange
Deciding whether $f^{-1} (f(A)) = A$ or $f(f^{-1}(B)) = B$. <p>$X$ and $Y$ are two sets and $f:X\to Y$. If $f(C)=\{f(x):x\in C\}$ for $C\subseteq X$ and $f^{-1}(D)=\{x:f(x)\in D\}$ for $D\subseteq Y$, then the true statement is </p> <p>(A) $f(f^{-1}(B))=B$</p> <p>(B) $f^{-1}(f(A))=A$</p> <p>(C) $f(f^{-1}(B))=B$ only if $B\subseteq f(X)$</p> <p>(D) $f^{-1}(f(A))=A$ only if $f(X)=Y$</p>
0non-cybersec
Stackexchange
Exploding the Phone: The Untold Story of the Teenagers and Outlaws Who Hacked Ma Bell | Threat Level.
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
Variation of parameters for 2nd order ODE. <p><a href="http://en.wikipedia.org/wiki/Variation_of_parameters" rel="nofollow">http://en.wikipedia.org/wiki/Variation_of_parameters</a> describes the general solution to a second order system under "General Second Order Equation." What does it mean when the forcing function $f$ is not $C^1$? Does that just mean that the assumption of the form of the particular solution is wrong? (We know from general theory that there exists a unique solution per initial condition on $u$ and its first derivative.)</p>
0non-cybersec
Stackexchange
Sony NEX mirrorless interchangeable lens cameras released.
0non-cybersec
Reddit
How to make a transparent proxy server based intranet dns. <p>I want to implement a server for responding any <code>http/https</code> request sent to it. </p> <p>It's much like forward proxy using CONNECT method. I do not want the clients to set proxy explicitly. The DNS of the clients is a customized <code>dnsmasq</code> which will resolve some domain to the proxy server. </p> <p>How can I achieve this via using iptables for packet forward to a normal forward proxy like squid. Or should I use some hacks like write a <code>netfilter/iptables</code> plugin, modify the code of squid to make it work in connect mode without connect method.</p> <p>In short, I want to implement a transparent <code>http/https</code> proxy which can respond to any normal <code>http/https</code> request sent to it.</p>
0non-cybersec
Stackexchange
Modified 1965 Ford Mustang by Detroit Speed - One Take.
0non-cybersec
Reddit
How to change terminal folder font color. <p>I use terminal with the fish shell. I played the themes and colors in <code>fish_config</code> as well as the ANSI colors in the terminal preferences. Nothing I do can change the folder font colors. How do I get rid of this ugly purple-blue color?</p> <p><a href="https://i.stack.imgur.com/SFIs9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SFIs9.png" alt="enter image description here"></a></p>
0non-cybersec
Stackexchange
3D-printed objects fit perfectly together [from r/oddlysatisfying].
0non-cybersec
Reddit
If Buying Condoms Was Like Buying Birth Control (Buzzfeed).
0non-cybersec
Reddit
Algorithm for a strategy game. <p>This is a question I have been toying with for a week or so, proposed by a colleague:</p> <p>Imagine a game played on a <a href="http://www.corknine.com/new/img/funji.jpg" rel="nofollow noreferrer">36x36 grid</a>. The goal of the game is to create four corners of a square of any size (eg., 2x2, 3x3, 4x4, and so on). The first player places a game-piece anywhere except the center four grid spaces. After the first move, players can place their game-piece anywhere on the grid. Game-pieces cannot be moved after they are placed. And that's it; The game is simple and fun. </p> <p>I have been trying to come up with an algorithm to win, or at least do well at this game. Any suggestions?</p>
0non-cybersec
Stackexchange
Is Continuous Integration nowadays intended as &quot;Continuous Inspection&quot;?. <p>I've been reading a log about CI (mostly Addison-Wesley books) and taking "CI" courses. I see two clear distinctions between old books on CI and new ones:</p> <ul> <li>Old ones focus on "committing" or "pushing" your code often (integrating often)</li> <li>New ones talk about practices for having feedback early in the process, like running builds and tests in a pull request instance.</li> </ul> <p>I think it's not common nowadays to commit or push every day (or multiple times per day), but it's a great practice to build and run tests in every pull request. Is it still Continuous Integration? Or am I missing something?</p> <p>Edit: I'm following Martin Fowler's definition: "A software development practice where members of a team integrate their work frequently, usually each person integrates at least daily—leading to multiple integrations per day"</p> <p>In the context of Git, I understand it as pushing/committing your code to the "development" branch daily. Maybe I'm mistaken, and it refers to a "working" or "feature" branch.</p>
0non-cybersec
Stackexchange
On the way to park, my dog got one new friend.
0non-cybersec
Reddit
I can&#39;t connect to mysql on a remote server. <p>I'm trying to connect from an Ubuntu server to a RHEL6 server using mysql. I've tried <code>telnet</code>ing into the server as well as trying to connect with mysql. I've tried commenting out the bind-address but didn't have any success with that either. I don't get an error code or anything with <code>telnet</code>. It just fails after a minute or so. With mysql, I get this error code <code>ERROR 2003 (HY000): Can't connect to MySQL server on 'SERVER_IP' (111)</code>. "SERVER_IP" is of course a placeholder where actual error gives that actual IP.</p> <p>I've included my my.cnf as well as well as my iptables from the destination server.</p> <p>On Destination Server...</p> <p>my.cnf:</p> <pre><code>[mysqld] bind-address=0.0.0.0 tmp_table_size=512M max_heap_table_size=512M sort_buffer_size=32M read_buffer_size=128K read_rnd_buffer_size=256K table_cache=2048 key_buffer_size=512M thread_cache_size=50 query_cache_type=1 query_cache_size=256M query_cache_limit=24M #query_alloc_block_size=128 #query_cache_min_res_unit=128 innodb_log_buffer_size=16M innodb_flush_log_at_trx_commit=2 innodb_file_per_table innodb_log_files_in_group=2 innodb_buffer_pool_size=32G innodb_log_file_size=512M innodb_additional_mem_pool_size=20M join_buffer_size=128K max_allowed_packet=100M max_connections=256 wait_timeout=28800 interactive_timeout=3600 # modify isolation method for faster inserting. # Do not uncomment the line below unless you understand what this does. # transaction-isolation = READ-COMMITTED # do not reverse lookup clients skip-name-resolve #long_query_time=6 #log_slow_queries=/var/log/mysqld-slow.log #log_queries_not_using_indexes=On #log_slow_admin_statements=On datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock user=mysql # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0 #Added by Magento ECG long_query_time=1 slow_query_log [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid </code></pre> <p>iptables:</p> <pre><code>:INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 225 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp -i eth1 --dport 11211 -j ACCEPT -A INPUT -j REJECT --reject-with icmp-host-prohibited -A FORWARD -j REJECT --reject-with icmp-host-prohibited COMMIT </code></pre> <p>sudo netstat -ntpl</p> <pre><code>Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:11211 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:2123 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:1581 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN - tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN - tcp 0 0 :::11211 :::* LISTEN - tcp 0 0 :::22 :::* LISTEN - tcp 0 0 :::225 :::* LISTEN - </code></pre> <p>sshd_config:</p> <pre><code>Protocol 2 SyslogFacility AUTHPRIV PasswordAuthentication yes ChallengeResponseAuthentication no GSSAPIAuthentication yes GSSAPICleanupCredentials yes UsePAM yes AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE AcceptEnv XMODIFIERS X11Forwarding yes Subsystem sftp /usr/libexec/openssh/sftp-server </code></pre>
0non-cybersec
Stackexchange
[NO SPOILERS] the iron throne made from willow in Belfast’s Ulster museum.
0non-cybersec
Reddit
Export CSV using Laravel via Ajax. <p>I have a export csv function, it worked fine with laravel. But now I want to call export function via ajax and use method post, but I there is no respone. I can send a variable from laravel controller to response, but can not send a file download.</p> <p>Here is my code :</p> <p><strong>route.php</strong></p> <pre><code> Route::get('/title/show', 'TitleController@show'); Route::post('/title/show', 'TitleController@exportFromDB'); </code></pre> <p><strong>show.blade.php</strong></p> <pre><code>&lt;script&gt; $(document).ready(function () { $('#exportFromDB').click(function () { $.ajax({ url: "", type: "post", headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')}, data: {}, success: function (response) { var a = document.createElement("a"); a.href = response.file; a.download = response.name; } }) }) }) </code></pre> <p></p> <p><strong>TitleController.php:</strong></p> <pre><code> $dataExport['Oversea'] = $dataOversea; $this-&gt;titleRepository-&gt;export('csv', $properties, $dataExport); </code></pre> <p><strong>TitleRepository.php</strong></p> <pre><code>public function export($type, $properties, $data) { if (in_array($type, self::EXPORT_TYPE)) { try { return Excel::create($properties['_title'], function ($excel) use ($data, $properties) { $excel-&gt;setTitle($properties['_title']); $excel-&gt;setCreator($properties['_creator']) -&gt;setCompany($properties['_company']); $excel-&gt;setDescription($properties['_description']); $excel-&gt;sheet('Sheet', function ($sheet) use ($data) { foreach ($data as $item) { $sheet-&gt;fromArray($item); } }); })-&gt;export($type); } catch (Exception $error) { throw $error; } } } </code></pre> <p>How can I fix them ? Thank !</p>
0non-cybersec
Stackexchange
OS X (Mavericks) file sharing: Can only see contents of shared folder, not open files. <p>I have setup my mac with two admin users, lets call them foo and bar. The user foo has a folder x which contain files and other folders and so on. In system preferences I have enabled file sharing and added "read only" access to the user bar for the folder x. Now, if I am logged in as user bar, I can open the folder x and see its files and folders. However, if I try to open, say, a pdf-file in that folder, I get an error message telling me I do not have permissions. Interestingly, if I copy this file to the desktop (being prompted for admin password), I can open the copy afterwards. </p> <p>Should not I be able to open all the files as user bar in folder x? Do I have to user more fine-grained access control, like, enabling access on each file?</p>
0non-cybersec
Stackexchange
Remember 2-finger swiping for text selection? It’s back on the iPhone 6S with 3D Touch.
0non-cybersec
Reddit
Get size of an Iterable in Java. <p>I need to figure out the number of elements in an <code>Iterable</code> in Java. I know I can do this:</p> <pre><code>Iterable values = ... it = values.iterator(); while (it.hasNext()) { it.next(); sum++; } </code></pre> <p>I could also do something like this, because I do not need the objects in the Iterable any further:</p> <pre><code>it = values.iterator(); while (it.hasNext()) { it.remove(); sum++; } </code></pre> <p>A small scale benchmark did not show much performance difference, any comments or other ideas for this problem?</p>
0non-cybersec
Stackexchange