text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
New Moto Devour In Silver.
0non-cybersec
Reddit
How to detect hand gesture in live webcam using javascript?. <p>I embedded live web cam to html page. Now i want to find hand gestures. How to do this using JavaScript, I don't have idea. I Googled lot but didn't get any good idea to complete this. So any one know about this? how to do this.</p>
0non-cybersec
Stackexchange
How to prove that a vector field over the torus is diferenciable?. <p>I was dealing with a question that for me seems vague, surely because I'm starting in differential geometry. Well:</p> <blockquote> <p>One vector field of the torus <span class="math-container">$T$</span> is obtained by parametrization of the meridian by arc lenght e defining <span class="math-container">$w(p)$</span> as the velocity of meridian by <span class="math-container">$p$</span>. Prove that the field is diferenciable.</p> </blockquote> <p>Well, I am confused because maybe there's more than one parametrization... I could not understand how to approach can run in general.</p> <p>Many thanks!</p>
0non-cybersec
Stackexchange
Given Seed, keyfragment and cipher text, how to get actual text using LFSR?. <p><span class="math-container">$\text{seed = 1100010001101001}$</span></p> <p><span class="math-container">$\text{key fragment = 110001010000101011001011111101100}$</span></p> <p><span class="math-container">$\text{cipher text = 0xa50b839547f7fe7cf882}$</span></p> <p>What is the actual text and how to evaluate it? I would like to know the exact procedure to do it.</p>
1cybersec
Stackexchange
How can I create a symfony twig filter?. <p>For instance my bundle namespace is <code>Facebook\Bundle\FacebookBundle\Extension</code>.</p> <p>Using this how can I create a twig extension ?</p>
0non-cybersec
Stackexchange
How has your culture changed over time?.
0non-cybersec
Reddit
This ol girl is 26 years old! Look at what she’s put out!!! So proud of her!.
0non-cybersec
Reddit
There is no words on this... just action!!!!.
0non-cybersec
Reddit
R markdown add list of figures to table of content. <p>Is it possible to add the "list of figures" to my "table of content" in R Markdown?</p> <p>My toc is working, but it shows only the chapters of the document but not the generated list of figures. </p> <p>The list of figures is generated automatically by using \listoffigures in the code. But only the chapters which are added with # Chaptername are shown in the toc.</p>
0non-cybersec
Stackexchange
How do I bring an application running in the background to the foreground in Linux without the commands fg or nohup?. <p>Due to habits formed over the years, I tend to click on the "x" icon in a Skype session running on Windows to minimize it however when I do the same on Linux Mint 11, it is sent to the background and there doesn't appear to be a way to bring it back to the foreground without me killing the running instance. Is there a better way?</p> <p><strong>EDIT 0</strong></p> <p>When I run the command <code>nohup skype &amp;</code>, it seems brings Skype back to the foreground however am logged out. I am then unable to log back in without killing the process. The command <code>fg %processid</code> seems to be limited to jobs</p> <p><strong>EDIT 1</strong></p> <p>I am running Linux Mint 11, with Gnome 2. I believe the window manager is Metacity.</p>
0non-cybersec
Stackexchange
Centos 6 PHP 5.3.29 from IUS with httpd 2.4. from IUS too. <p>I have old depracated linux Centos6 machines for old SW. We need PHP 5.3. for customers. I'd like use this machines for newer versions PHP with FPM - and migrate to htpd 2.4. and FPM for PHP 5.3 too. </p> <p>Problem is with compatibility. I run </p> <pre><code>yum replace httpd --replace-with=httpd24u </code></pre> <p>But I get this in summary:</p> <pre><code>Removing for dependencies: php53u x86_64 5.3.29-1.ius.el6 @ius-archive 4.4 M php53u-fpm x86_64 5.3.29-1.ius.el6 @ius-archive 4.0 M </code></pre> <p>I need stay with php53u. I think, that it is safe because with FPM I will without some dependencie on Apache.</p> <p>Can you help me what I can do with this?</p>
0non-cybersec
Stackexchange
Defining math functions. <pre><code>\documentclass[aspectratio=1610]{beamer} \usepackage{amsmath} \begin{document} \def\function(#1){ 96* (#1)-16 *(#1)^2 } %1. I am trying to condense the following two lines \pgfmathparse{3+\function(1)} \let\z\pgfmathresult z result is \z % %2. I would like store the result of the previous line in a 'variable' %The following doesn't work \def\myfp(#1,#2){\pgfmathparse{#1} \let\#2\pgfmathresult} \myfp(3+ \function(1),\z) % /This yields the right answer BUT z Result is \z ..... Yields error %3. Why does the following mess up% \let\z7\pgfmathresult z7 result is {\z7} %4. PLEASE point me to relevant documentation! \end{document} </code></pre>
0non-cybersec
Stackexchange
Auto scaling for Google container engine. <p>Can GKE (Google Container Engine) do autoscaling? I know that it allows manual adjustment of node replication, but can it be configured some how to detect load and replicate automatically?</p>
0non-cybersec
Stackexchange
Improve coding quality. <p>I have been dealing with programming for several years now (I am still a student but with a lot of internships). Mostly working with C++, Python and MATLAB, I noticed that whenever I download an SDK or a library from Internet/GitHub and look inside, the code is much more complex than mine, using error catches everywhere and other things that would never come to my mind while writing my own code. My question is, how can I learn or practice this kind of things? From my experience, no programming course talked about coding style, when and how to use try/catch efficiently, how to debug faster etc... I am also not thinking about using mutex while accessing one variable from different functions at the same time because my code is simply working without them and I didn't face any problem until now.</p> <p>Currently I am working on a project using Python and Pycharm is helping me a lot keeping a correct coding style but it is limited to the syntax and naming conventions.</p>
0non-cybersec
Stackexchange
I also found the end of the sidewalk. [OC].
0non-cybersec
Reddit
How do I use MATLAB to solve an Euler Backward problem for a Differential Equation?. <p>Is there a way to use MATLAB to solve an Euler Backward problem when the function I have is a differential equation? </p> <p>My original problem was to simulate an electromagnetic and an electrical field for a certain interval in R^2 and in this interval an electron would enter with an initial speed in x, y direction. I then plotted the path the electron would take inside the field, but now I'm trying to approximate the path using Euler Backward.</p> <p>Our differential equation in MATLAB looks like this:</p> <pre><code>dy(1)=y(3); dy(2)=y(4); dy(3)=y(4)+1; dy(4)=-y(3) </code></pre> <p>Where y=[x ; y ; u ; v] where u is the derivative of x and v is that of y.</p>
0non-cybersec
Stackexchange
Weird unwanted phrases in my table of content! How to get rid of this?. <p>Here is a screenshot of my table of content (amsart documentclass) : <a href="https://i.stack.imgur.com/7InoQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7InoQ.png" alt="TOC"></a></p> <p>I do not want these Section *.2, Section *.3, Section *.4 in between the actual lines. How do I get rid of these inexplicable phrases? Thank you.</p> <hr> <p>Apparently the problem is occurring due to the use of my self-defined command <code>\addsubsection*</code> instead of <code>\subsection*</code> (because I do not want the subsections to be shown in the table of contents).</p> <hr> <p>A minimal code:</p> <pre><code> \pdfoutput=1 \documentclass[11pt,a4paper,reqno]{amsart} \usepackage{amssymb} \usepackage{bm} \numberwithin{equation}{section} \usepackage{mathabx} \usepackage{mathrsfs} \usepackage{mathtools} \usepackage{color} \theoremstyle{plain} \newtheorem{theorem}{Theorem}[section] \newtheorem{proposition}[theorem]{Proposition} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary} \newtheorem{conjecture}[theorem]{Conjecture} \newtheorem{principle}[theorem]{Principle} \newtheorem{claim}[theorem]{Claim} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition} \newtheorem{remark}[theorem]{Remark} \newtheorem{remarks}[theorem]{Remarks} \newtheorem{example}[theorem]{Example} \newtheorem{examples}[theorem]{Examples} \newcommand\R{\mathbb{R}} \newcommand\Z{\mathbb{Z}} \newcommand\N{\mathbb{N}} \newcommand\Q{\mathbb{Q}} \newcommand\eps{\varepsilon} \newcommand\normsymb{\ell} % was \|\,\| \newcommand\norm[1]{\ell({#1})} % was \|{#1}\| \newcommand\normn[1]{\ell_n({#1})} % was \|{#1}\| \newcommand\free[1]{\mathbf{F}_{#1}} %\vast \Vast - Bigger than \Bigg \makeatletter \newcommand{\vast}{\bBigg@{4}} \newcommand{\Vast}{\bBigg@{5}} \makeatother %\addsubsection - not shown in toc \makeatletter \ifcsname phantomsection\endcsname \newcommand*{\qrr@gobblenexttocentry}[5]{} \else \newcommand*{\qrr@gobblenexttocentry}[4]{} \fi \newcommand*{\addsubsection}{% \addtocontents{toc}{\protect\qrr@gobblenexttocentry}% \subsection} \makeatother \usepackage[breaklinks=true,hidelinks]{hyperref} \begin{document} \title{TITLE} \maketitle %\today \tableofcontents %\need to fix it \section{Introduction} \label{section-introduction} bla bla bla... \vspace{0.2cm} \addsubsection*{blablabla} We consider this and that, that and that.. \vspace{0.2cm} \section{New section} \vspace{0.2cm} \addsubsection*{here we are} \addsubsection*{also here} \vspace{0.2cm} \section{The main theorem} \end{document} </code></pre>
0non-cybersec
Stackexchange
When you hear a coworker open a bag of chips in the cube next to you but you have misophonia..
0non-cybersec
Reddit
Connection handshake diagram with TikZ. <p>I'm trying to get the following diagram on TikZ. However, I didn't find any package that is able to draw something similar. The most similar one I found was a sequence diagram using <code>pgf-umlsd</code>. </p> <p><img src="https://i.stack.imgur.com/1vA4x.png" alt="handshake"></p> <p>The following code is the best attempt to get the diagram. The problem is that I <strong>need the lines to be diagonals</strong> to show the delay in the connection. </p> <p>How can I achieve this using TikZ?</p> <pre><code>\documentclass[tikz, border=2mm]{standalone} \usetikzlibrary{arrows,shadows} \usepackage{pgf-umlsd} \begin{document} \begin{sequencediagram} \newthread[white]{c}{Initiator} \newinst[4]{s}{Receiver} \mess{c}{FIN}{s} \mess{s}{ACK}{c} \mess{s}{FIN}{c} \mess{c}{ACK}{s} \end{sequencediagram} \end{document} </code></pre> <p><img src="https://i.stack.imgur.com/NFPwJ.png" alt="enter image description here"></p> <h2>Similar questions</h2> <p><a href="https://tex.stackexchange.com/questions/99436/network-message-sequence-diagram">Network/Message Sequence Diagram</a> poses the same problem, but the solution there is to use <a href="http://ftp.inf.utfsm.cl/pub/tex-archive/macros/latex/contrib/msc/manual.pdf" rel="nofollow noreferrer"><code>msc</code></a>. However, I would like to get a TikZ solution (I think it looks nicer).</p> <p><a href="https://tex.stackexchange.com/questions/102624/protocol-message-diagram-arrow-colored">protocol message diagram - arrow colored</a> has a similar solution using <code>pgf-umlsd</code>, but it has the same limitation of using only horizontal lines.</p>
0non-cybersec
Stackexchange
Found my Gameboy Camera. 11 year old pictures still there. [FIXED].
0non-cybersec
Reddit
MAC spoofing preventing connection. <p>I'm attempting MAC spoofing on a network I own. I'm connecting to a NETGEAR WNDR4300 wireless router from an Ubuntu Linux machine. The network uses WPA2-PSK [AES] security.</p> <p>Connecting to the network with an un-spoofed MAC works fine. I can bring my network interface down with</p> <pre><code>sudo ip link set dev wlan1 down </code></pre> <p>and then spoof my MAC with either</p> <pre><code>sudo macchanger -e wlan1 </code></pre> <p>or manually with</p> <pre><code>sudo ip link set dev wlan1 address XX:XX:XX:XX:XX:XX </code></pre> <p>(picking some address). Both techniques work. When I bring the interface up with</p> <pre><code>sudo ip link set dev wlan1 up </code></pre> <p>it attempts to reconnect to the network, then prompts me for the password. I enter the correct password, but it fails to connect. I've tried this numerous times, with various MACs (random, same vendor, etc.), without success.</p> <p>What's going wrong, or how can I diagnose the issue?</p>
1cybersec
Stackexchange
College student has poster on College Game Day Live asking mom for bit coins. People answer him and he receives over 3000 dollars worth..
0non-cybersec
Reddit
Iptables exception for specific port. <p>I'm new to iptables but configured a simple natting today on my raspian:</p> <pre><code># Always accept loopback traffic /sbin/iptables -A INPUT -i lo -j ACCEPT # Allow established connections, and those not coming from the outside /sbin/iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT /sbin/iptables -A INPUT -m state --state NEW -i tun0 -j ACCEPT /sbin/iptables -A FORWARD -i tun0 -o eth2 -m state --state ESTABLISHED,RELATED -j ACCEPT # Allow outgoing connections from the LAN side. /sbin/iptables -A FORWARD -i eth2 -o tun0 -j ACCEPT # Masquerade. /sbin/iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE # Don't forward from the outside to the inside. /sbin/iptables -A FORWARD -i tun0 -o tun0 -j REJECT # Enable routing. echo 1 &gt; /proc/sys/net/ipv4/ip_forward </code></pre> <p>So as you can see I also use openvpn and redirect the traffic to the tunnel interface. I'd like to create an exception for example for the port range 900 to 999 and source 192.168.1.5 to be excluded and sent directly to interface eth1 and avoid the vpn encryption.</p> <p>How can I create such a rule?</p> <p>Thanks a lot for your input.</p> <p>EDIT: I tried something like</p> <pre><code>iptables -t nat -A POSTROUTING -p tcp --dport 900:999 --out-interface eth1 -j MASQUERADE </code></pre> <p>But it doesn't seem to have the expected effect...</p>
0non-cybersec
Stackexchange
Do people in China consider products made in China to be poor quality too?.
0non-cybersec
Reddit
Critical airspeed.
0non-cybersec
Reddit
Someone recommended "The Summer That Melted Everything" on here, I just finished it and thought it was incredible, definitely a summer must-read.. This felt like a book that should be recommended to read in classes, it felt like one of those books that's so influential and does such a great job with it's storytelling that it felt like something that altered my perspectives on a lot of things. The book is beautifully written, I found myself highlighting more sentences in this book than in any other book in years. I was surprised to see the author doesn't have any other books written yet as this one seemed so well-written. I haven't heard much about this book but I think it deserves more attention. I laughed, cried and audibly gasped while reading it. I hope this convinces others to read it as it's such a great read, and thank you to whoever recommended it!
0non-cybersec
Reddit
Duplicate Contents and Glossary title. <p>I am getting duplicates of my glossary and contents titles as shown below. How can I get rid of the first one?</p> <p><a href="https://imgur.com/CMMaXha" rel="nofollow noreferrer"><img src="https://i.imgur.com/CMMaXha.png?1" title="Hosted by imgur.com" /></a></p> <p>Most of my preamble is shown below.</p> <pre><code>\documentclass[11pt, a4paper]{article} \usepackage{graphicx,pgfplots,pgfplotstable, acronym, fullpage, booktabs, rotating, multirow, longtable, siunitx, fancyhdr, filecontents, textcomp, gensymb,pdfpages, amsmath, caption, subcaption} \usepackage[parfill]{parskip} % Remove indentation \usepackage[titletoc, page]{appendix} % To number appendix in toc \usepackage[section]{placeins} % To stop figures floating across sections \usepackage[hidelinks]{hyperref} % For clickable urls \usepackage{cleveref} % To allow \cref to be used \usepackage[T1]{fontenc} % Use EC fonts \usepackage[utf8]{inputenc} % Encoding \usepackage{csquotes} % To manage quotes \usepackage[english]{babel} % Language selection \usepackage[acronym,toc,style=tree, nonumberlist, shortcuts]{glossaries} \usepackage[backend=biber, citestyle=authoryear,doi=true,url=true]{biblatex} </code></pre>
0non-cybersec
Stackexchange
This picture of the moon I took. 30 gigs of data went into it..
0non-cybersec
Reddit
Strongswan established connection but cannot ping anything. <p>I received data from certain company to establish s2s connection:</p> <pre><code>Company VPN gateway: 195.x.37.168 IKE: Ikev1 AES256-SHA1 group 2 1440min IPSEC: AES128-SHA1 group 2 3600 sec (60 min) Left VPN gateway: 185.x.192.227 Left side network: 172.x.74.200/29 Company network: 10.6.7.0/24,10.6.4.0/24,10.6.5.0/24,10.6.6.0/24,10.6.8.0/24 Test host (ping): 10.0.1.55 </code></pre> <p>So I created this /etc/ipsec.conf </p> <pre><code>conn comp left=%defaultroute leftsubnet=172.x.74.200/29 leftfirewall=yes right=195.x.37.168 rightsubnet=10.6.7.0/24 rightfirewall=yes authby=secret keyexchange=ikev1 keylife=60m auto=add esp=aes128-sha1 ike=aes256-sha1-modp1024 ikelifetime=1440m lefthostaccess=yes type=tunnel conn comp-2 also=comp rightsubnet=10.6.4.0/24 conn comp-3 also=comp rightsubnet=10.6.5.0/24 conn comp-4 also=comp rightsubnet=10.6.6.0/24 conn comp-4 also=comp rightsubnet=10.6.8.0/24 </code></pre> <p>Connection seem to be OK:</p> <pre><code>sudo ipsec up comp generating QUICK_MODE request 2398914035 [ HASH SA No ID ID ] sending packet: from 217.x.73.231[500] to 195.x.37.168[500] (204 bytes) received packet: from 195.x.37.168[500] to 217.x.73.231[500] (172 bytes) parsed QUICK_MODE response 2398914035 [ HASH SA No ID ID ] CHILD_SA comp{123} established with SPIs c776f6f6_i a38bf565_o and TS 172.x.74.200/29 === 10.x.7.0/24 connection 'comp' established successfully </code></pre> <p>sudo ipsec status</p> <pre><code> Routed Connections: comp-4{5}: ROUTED, TUNNEL, reqid 4 comp-4{5}: 172.18.74.200/29 === 10.6.8.0/24 comp-3{4}: ROUTED, TUNNEL, reqid 3 comp-3{4}: 172.18.74.200/29 === 10.6.5.0/24 comp-2{3}: ROUTED, TUNNEL, reqid 2 comp-2{3}: 172.18.74.200/29 === 10.6.4.0/24 comp{2}: ROUTED, TUNNEL, reqid 1 comp{2}: 172.18.74.200/29 === 10.6.7.0/24 Security Associations (1 up, 0 connecting): comp[1]: ESTABLISHED 5 minutes ago, 217.x.73.231[217.x.73.231]...195.x.37.168[195.250.37.168] comp{1}: INSTALLED, TUNNEL, reqid 1, ESP SPIs: c2f2a492_i 83f84c35_o comp{1}: 172.18.74.200/29 === 10.6.7.0/24 comp{6}: INSTALLED, TUNNEL, reqid 1, ESP SPIs: c36f4493_i 0f13aa49_o comp{6}: 172.18.74.200/29 === 10.6.7.0/24 </code></pre> <p>But I can't ping anything from company network.</p>
0non-cybersec
Stackexchange
How can I improve my memory?. I can't remember song lyrics, passages, conversations...it honestly sucks. Is there a way to fix this?
0non-cybersec
Reddit
What are some ways to locate other mobile phones within a building?. <p>I am currently working on a research project trying to locate people near a mobile device. Currently I have a mobile phone with monitor mode enabled and I am attempting to track other phones by looking at probe requests sent out by other phones and grabbing their RSSI values. But, this could also be done with any computer with monitor mode, what are some ways to abuse the sensors on the phone to enhance this localization problem? </p> <p>Here are some extra sensors I have access to:</p> <ul> <li>Accelerometer</li> <li>Magnetometer</li> <li>Gyroscope</li> <li>GPS</li> <li>Proximity Sensor</li> <li>Barometer</li> <li>Compass</li> <li>Step Counter </li> </ul>
0non-cybersec
Stackexchange
Paragraph that takes into account spaces, indentations, etc. <p>I have a Paragraph. It begins with \begin{gather*} then for every line there is a \text{...} then \end{gather*}. I was wondering if there is an easier way to make a Paragraph that takes into account spaces, indentations, etc. </p> <pre><code> \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \centering \begin{gather*} \text{Ecliptic and Equatorial Planes Explained} \\ \text{The distance from the Sun and Earth is iconic. It is the basic for calculations of other bodies in the solar System and beyond and is the average of the largest and the smallest part of Earth orbit.} \\ \end{gather*} \end{document} </code></pre> <p>What are my options for {gather*} so I do not have to write \text for each row and so I get spaces?</p>
0non-cybersec
Stackexchange
How do I run safecopy in terminal?. <p>I'm very new to terminal and Linux. I have a crashed external hard drive that is spinning but won't appear on the desktop. I ran <code>safecopy</code> from terminal and this is what it said at the end</p> <pre><code>Description of output: . : Between 1 and 1024 blocks successfully read. _ : Read of block was incomplete. (possibly end of file) The blocksize is now reduced to read the rest. |/| : Seek failed, source can only be read sequentially. &gt; : Read failed, reducing blocksize to read partial data. ! : A low level error on read attempt of smallest allowed size leads to a retry attempt. [xx](+yy){ : Current block and number of bytes continuously read successfully up to this point. X : Read failed on a block with minimum blocksize and is skipped. Unrecoverable error, destination file is padded with zeros. Data is now skipped until end of the unreadable area is reached. &lt; : Successful read after the end of a bad area causes backtracking with smaller blocksizes to search for the first readable data. }[xx](+yy) : current block and number of bytes of recent continuous unreadable data. </code></pre> <p>I don't know what to do next. Is it telling me that it cannot be resurrected or is it telling me that it is waiting for me to do something?</p>
0non-cybersec
Stackexchange
HP CP5225 print colour with Windows 7 64-bit drivers. <p>According to the HP website, the following operating systems are supported:</p> <blockquote> <p>Compatible operating systems</p> <ul> <li>Microsoft® Windows® 2000</li> <li>XP Home</li> <li>XP Professional</li> <li>Server 2003</li> <li>XP Media Center</li> <li>XP Professional x64</li> <li>Windows Vista®</li> <li>Windows® 7 (HP UPD only)</li> <li>Mac OS X v10.3, v10.4 or higher</li> </ul> </blockquote> <p>Our client purchased HP CP5225 printers less than a year ago and used it successfully with Windows XP 32-bit and Vista 32-bit clients. Note that this model only connects via USB and has no networking capability.</p> <p>Following HP's instructions, we set up new Windows 7 64-bit clients using the HP UPD (Universal Printer Driver). This works, but does not allow for colour printing. Specifically the "<em>Color</em>" tab is not present under "<em>Printing Prefrences</em>" allowing monochrome printing only.</p> <p>HP's support call centre only advises to reinstall the driver. I've tried cycling through the PCL and PostScript options, but to no avail.</p> <p>We have also tested the following with negative results:</p> <ol> <li><p>Running <em>Printer Properties</em> -> <em>Device Settings</em> -> <em>Automatic Configuration</em> -> <strong>Update Now</strong> detects the printer, but returns the following message "<em>The device 'HP_PCL6_x64_UDP_Traditional' may not be able to print this document. Communication with the device could not be established to verify this is a supported device. Would you like to use this device anyway?</em>" Selecting <em>Yes</em> and checking <em>Printing Preferences</em> before and after a reboot confirms no Color tab is present.</p></li> <li><p>Enabling and disabling Duplexing makes no difference as some on the web suggested.</p></li> </ol> <p>If you know of any solutions or workarounds specific to an HP colour printing issue with the HP UPD via USB on Windows 7 64-bit, please share your findings or suggested solution to the above problem.</p>
0non-cybersec
Stackexchange
POTUS v. TIME.
0non-cybersec
Reddit
Windows in-built compression command without utilizing any external tools. <p>I want a Windows (7 onward) command line compression and archiving command/script, which doesn't require any external tools or utilities, including PowerShell, as I am not much of Windows scripter. It should be totally independent, like Unix/Linux zip/tar commands.</p> <p>I have searched a lot for this type of a command or script, but I haven't found any yet. Has anyone found something like this?</p>
0non-cybersec
Stackexchange
Greg Oden's first basket since 2009. A putback DUNK..
0non-cybersec
Reddit
Bill Gates reveals the 5 best books he read in 2016.
0non-cybersec
Reddit
Bill Maher's latest Christine O'Donnell clip: "You know what? Evolution is a myth. Why aren't monkeys still evolving into humans?".
0non-cybersec
Reddit
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
How to 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
Found some old teeth molds for sale at a thrift store.
0non-cybersec
Reddit
First meal in my new crock pot. White chicken chili.
0non-cybersec
Reddit
[DISCUSSION] Travis Scott- Days Before Rodeo (Five Years Later). Days Before Rodeo was Travis Scott’s second mixtape release, and it’s now been 5 years since it came out. In my opinion, it’s one of the greatest mixtapes of the current generation and really was the steeping stone for the Travis that we saw on Rodeo, How do you guys think it compares to the rest of the discography as well as your general opinion on it?
0non-cybersec
Reddit
Bought smaller clothes than I've ever bought since high school today.. All the pants I own have either a 40" or 38" waist, and all my shirts are XL. When I began this journey the 40" pants fit a little snug, but doable, and my 38" pants were a forgotten dream of what once was, doomed to spend eternity at the bottom of my dresser. At some point the 38" pants started to fit okay. Then the 40" pants were just way to big as to be comical, so I got rid of them. Today I went to get some jeans and a shirt, and I realized that my belt was the only thing really keeping my 38" pants up on my waist, so I tried out some 36" pants, and while I was at it tried a large shirt, because why not. Well, the 36" pants fit perfectly now, and the large shirt is perfect as well. I don't remember ever wearing a large shirt, and I haven't had a 36" waist since high school, and that was back in the 90's. I was 245 lbs when I started taking care of this problem. Now I'm 205, with a goal of about 180ish or so. Weight loss tools include getting rid of my car and cycling everywhere, and using My Fitness Pal to keep track of calorie intake. Currently eating about 1790 calories daily. The wife called me "too sexy", and joking forbids me from wearing my new clothes in public where other women might see. I've got to admit, I'm really starting to like what I see.
0non-cybersec
Reddit
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
How can I identify spam traffic?. <p>Recently I am getting some referrals traffic which are everyday changing their name (I am blocking them everyday from GA). First few days their name was example.xyz but now they are using various name. All the traffic's are coming from Russia. They are only landing to / and nowhere. How can I identify that it's a spam traffic or not? </p>
1cybersec
Stackexchange
Some important advice to keep in mind in these trying times....
0non-cybersec
Reddit
when my friend starts talking about all the times we got drunk/high while having dinner with my parents [GIF].
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
Checking the uber app to see how long the driver will be ......... The driver :.
0non-cybersec
Reddit
How to change color of a tab in Firefox Quantum?. <p>I'm trying to change the colour of one or more tabs (not necessarily the one that is currently selected). It need to be at least the bit where the tab title is displayed, not sure how it's called. </p> <p><a href="https://i.stack.imgur.com/ZVxPH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZVxPH.png" alt="enter image description here"></a></p> <p>The Pre-Quantum Firefox addons don't work any more, is there any other way to do it? The colour does not need to persistent be between sessions. By the way the goal in the end is to visibly group contiguous tabs. I want it to be easy to differentiate between the tab groups (I'm already using tree style etc. but I want the distinction in the tab bar as well).</p>
0non-cybersec
Stackexchange
Where is `Google Speech API Key`?. <p>I was refering to <a href="http://mikepultz.com/2013/07/google-speech-api-full-duplex-php-version/" rel="noreferrer">this link</a> where it discuss about the Google Speech engine. It says that I have to get an API Key from google, to use the google speech engine they are discussing. In the link posted, they have shown an image of activating the Speech API Key.</p> <p>However when I went to the <a href="https://code.google.com/apis/console/" rel="noreferrer">API Site</a> I can't find anything about <code>Speech API</code>.</p> <p>Is there no more API keys for Speech API? Or else no need to use them? It is worth to understand that this speech API allows uploading <code>flac</code> files, which is quite different from others.</p>
0non-cybersec
Stackexchange
Resources ID in REST Api = primary key in database. <p>I am creating a RESTful API.</p> <p>My table of e.g. users has a primary key 1,2,3, ...</p> <p>Now to name my resources in the API I want some more complex name. A hash of something which also will be a unique identifier but a little more difficult to guess.</p> <p>Should I save this hash in an extra column in my user table or kick the 1,2,3, ... out of the primary key and use the unique hash as global id (database &amp; API)</p>
0non-cybersec
Stackexchange
How is this tool called for sorting out wires on newly installed patch panels?. <p>I've lost my tool I use frequently. Since I don't know the name for the tool I am having a hard time to find a replacement.</p> <p><img src="https://i.postimg.cc/25s3h8pF/gereedschap.png" alt="Text" /></p> <p>How is above tool called? It is meant for patch panels to correct faulty wires and such.</p>
0non-cybersec
Stackexchange
Cocycles for right- and left- regular representations on $\ell_2(G)$. <p>Using the standard notation, let $\lambda_gf(x)=f(g^{-1}x)$ be the left regular representation and $\rho_gf(x)=f(xg)$ be the right regular one, acting on the space $V$ of complex-values functions on $G$.</p> <p>Let $b:G\to \ell_2(G)$ be a cocycle for $\rho$; i.e., $b_g=\rho_g f-f\in \ell_2(G)$ for some $f\in V$ and every $g\in G$.</p> <p>Question: Does $a_g=\lambda_g f-f$ belong to $\ell_2(G)$ for every $g\in G$? If not, what is the "smallest" subspace $W$ of $V$, $\ell_2(G)\subseteq W\subseteq V$ for which this happens?</p> <p>The most interesting case seems to be when $G$ is amenable.</p> <p>Edit: The metric interpretation is the following. Take all $f\in V$ whose discrete gradient with respect to the left-invariant metric is $\ell_2$-summable. Then $W$ is the space consisting of gradients of these $f$, with respect to the right-invariant metric. </p>
0non-cybersec
Stackexchange
Suppose $X$ has density function $f(x)$ for $-1\leq x\leq1$ and 0 otherwise. Find the density function of $Y=\vert X\vert$. <p>The answer is $f(-y)+f(y)$ for $-1\leq y\leq1$ but I don't see how that answer was reached using the formula $g(s(y))s'(y)$.</p>
0non-cybersec
Stackexchange
Integrating $\sqrt{1-x^2}$ by interpreting it geometrically as an area within a circle. <p>For the integral $$\int \sqrt{1-x^2} dx = \frac{1}{2} \left ( \arcsin(x) + x \sqrt{1-x^2} \right)$$ Now it was explained to me that geometrically I could take part of the integral as an area sector and the other half a triangle. I am having a hard time seeing how I can even get a triangle as I am summing the rectangles.</p> <p>How could you even see that the angle must be $\arcsin(x)$? </p> <p><img src="https://i.stack.imgur.com/5t43D.jpg" alt="part of circle"></p> <p>Compare to: </p> <p><img src="https://i.stack.imgur.com/6zFqZ.jpg" alt="sector"></p> <p>This is not a good approximation of the integral. What happened to the red area? </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
Is it possible to change the view size of iOS 8 Action Extension?. <p>I'm developing an action extension for iOS 8 at the moment. I want the view to be full screen, and it is on the iPhones, but not on the iPad, on the iPad my extension is presented in a small view in the middle. Is it possible to make it so that it's full screen on the iPad too?</p> <p><img src="https://i.stack.imgur.com/dxkNJ.jpg" alt="Action Extension view not taking up the full screen size on iPad"></p>
0non-cybersec
Stackexchange
Why are virtual machines on vSphere 5.0 suddenly suspended?. <p>We just got our vSphere 5.0 and vCenter Server 5.0 configuration working with several VMS.</p> <p>These are the vms.</p> <ol> <li>Jenkins appliance.</li> <li>vCenter Server Appliance</li> <li>Windows7x64</li> <li>Windows7x64-1</li> <li>Windows7x64-2</li> </ol> <p>For some reason the Windows vms become unexpectedly suspended. To recover we simply power them back on it all is well until the next time. We found dcx some vmWare instructions to debug this via getting the log file from the vm. And here it is. But even with their hints..it's still unclear.</p> <p>One important thing to notice in the log below is that this is only an portion of the file starting a few lines before where suspending started. So you can see the time stamp jumps 30 minutes because it ran fine for that long before it went suspended.</p> <pre><code>2012-06-06T17:22:28.762Z| vcpu-1| TOOLS unified loop capability requested by 'toolbox';now sending options via TCLO 2012-06-06T17:22:28.763Z| vcpu-1| TOOLS sending 'OS_PowerOn' (state=3 callback=0 clientData=0) state change request 2012-06-06T17:22:28.763Z| vcpu-1| Guest: toolbox: Version: build-621624 2012-06-06T17:22:28.835Z| vcpu-1| TOOLS state change 3 returned status 1 2012-06-06T17:22:56.558Z| vmx| GuestRpcSendTimedOut: message to toolbox-dnd timed out. 2012-06-06T17:52:30.943Z| vcpu-0| SVGA: Unregistering IOSpace at 0x10d0 2012-06-06T17:52:30.943Z| vcpu-0| SVGA: Unregistering MemSpace at 0xd8000000(0xd8000000) and 0xd0800000(0xd0800000) 2012-06-06T17:52:31.600Z| vcpu-0| PIIX4: PMAccessPM got ACPI S1 request 2012-06-06T17:52:31.600Z| vcpu-0| PIIX4: PM Suspending... (to S1 (0x4)) 2012-06-06T17:52:31.601Z| vmx| VMXVmdbCbVmVmxExecState: Exec state change requested to state suspended without reset, hard, softOptionTimeout: 0. 2012-06-06T17:52:31.692Z| vmx| CPT current = 0, requesting 1 2012-06-06T17:52:31.692Z| vcpu-1| Done Sync monModules(1). 2012-06-06T17:52:31.692Z| vcpu-0| E1000: Syncing with mode 1. 2012-06-06T17:52:31.692Z| vcpu-0| Done Sync monModules(1). 2012-06-06T17:52:31.692Z| vcpu-0| CPT: monitor ACKing mode 1 2012-06-06T17:52:31.693Z| vcpu-0| Destroying virtual dev for scsi0:0 vscsi=8207 2012-06-06T17:52:31.693Z| vcpu-0| VMMon_VSCSIStopVports: No such target on adapter 2012-06-06T17:52:31.718Z| vcpu-0| CPT current = 1, requesting 2 2012-06-06T17:52:31.718Z| vcpu-0| CPT: monitor ACKing mode 2 2012-06-06T17:52:31.718Z| vcpu-0| Closing all the disks of the VM. 2012-06-06T17:52:31.718Z| vcpu-0| Closing disk scsi0:0 2012-06-06T17:52:31.718Z| vcpu-0| DISKLIB-VMFS : "/vmfs/volumes/4fb4d5f9-127383b4-64d5-d4ae5292223d/Win7x64VS2010-2/Win7x64VS2010-2-flat.vmdk" : closed. 2012-06-06T17:52:31.718Z| vcpu-0| CPT current = 2, requesting 3 2012-06-06T17:52:31.718Z| vcpu-0| Done Cpt monModules(3). 2012-06-06T17:52:31.718Z| vcpu-0| CPT: monitor ACKing mode 3 2012-06-06T17:52:31.731Z| vcpu-0| Progress -1% (msg.checkpoint.saveStatus) 2012-06-06T17:52:31.731Z| vcpu-0| Checkpointed in VMware ESX, 5.0.0, build-623860, Linux Host 2012-06-06T17:52:31.754Z| vcpu-0| BusMemSampleCheckpoint: checkpoint 3 touched: initPct 75 pages 36700 : dirtied: initPct 75 pages 31457 2012-06-06T17:52:31.774Z| vcpu-0| Progress 0% (none) 2012-06-06T17:52:31.817Z| vcpu-0| Progress 1% (none) 2012-06-06T17:52:31.975Z| vcpu-0| Progress 2% (none) 2012-06-06T17:52:32.429Z| vcpu-0| Progress 3% (none) 2012-06-06T17:52:32.484Z| vcpu-0| Progress 4% (none) 2012-06-06T17:52:32.555Z| vcpu-0| Progress 5% (none) 2012-06-06T17:52:33.637Z| vcpu-0| Progress 6% (none) 2012-06-06T17:52:34.510Z| vcpu-0| Progress 7% (none) 2012-06-06T17:52:34.860Z| vcpu-0| Progress 8% (none) 2012-06-06T17:52:35.085Z| vcpu-0| Progress 9% (none) 2012-06-06T17:52:35.231Z| vcpu-0| Progress 10% (none) 2012-06-06T17:52:35.405Z| vcpu-0| Progress 11% (none) 2012-06-06T17:52:35.526Z| vcpu-0| Progress 12% (none) 2012-06-06T17:52:35.700Z| vcpu-0| Progress 13% (none) 2012-06-06T17:52:35.876Z| vcpu-0| Progress 14% (none) 2012-06-06T17:52:35.992Z| vcpu-0| Progress 15% (none) 2012-06-06T17:52:36.168Z| vcpu-0| Progress 16% (none) 2012-06-06T17:52:36.284Z| vcpu-0| Progress 17% (none) 2012-06-06T17:52:36.461Z| vcpu-0| Progress 18% (none) 2012-06-06T17:52:36.578Z| vcpu-0| Progress 19% (none) 2012-06-06T17:52:36.754Z| vcpu-0| Progress 20% (none) 2012-06-06T17:52:36.928Z| vcpu-0| Progress 21% (none) 2012-06-06T17:52:37.045Z| vcpu-0| Progress 22% (none) 2012-06-06T17:52:37.220Z| vcpu-0| Progress 23% (none) 2012-06-06T17:52:37.338Z| vcpu-0| Progress 24% (none) 2012-06-06T17:52:37.512Z| vcpu-0| Progress 25% (none) 2012-06-06T17:52:37.628Z| vcpu-0| Progress 26% (none) 2012-06-06T17:52:37.805Z| vcpu-0| Progress 27% (none) 2012-06-06T17:52:37.979Z| vcpu-0| Progress 28% (none) 2012-06-06T17:52:38.096Z| vcpu-0| Progress 29% (none) 2012-06-06T17:52:38.274Z| vcpu-0| Progress 30% (none) 2012-06-06T17:52:38.391Z| vcpu-0| Progress 31% (none) 2012-06-06T17:52:38.564Z| vcpu-0| Progress 32% (none) 2012-06-06T17:52:38.681Z| vcpu-0| Progress 33% (none) 2012-06-06T17:52:38.857Z| vcpu-0| Progress 34% (none) 2012-06-06T17:52:39.033Z| vcpu-0| Progress 35% (none) 2012-06-06T17:52:39.148Z| vcpu-0| Progress 36% (none) 2012-06-06T17:52:39.324Z| vcpu-0| Progress 37% (none) 2012-06-06T17:52:39.442Z| vcpu-0| Progress 38% (none) 2012-06-06T17:52:39.616Z| vcpu-0| Progress 39% (none) 2012-06-06T17:52:39.792Z| vcpu-0| Progress 40% (none) 2012-06-06T17:52:39.910Z| vcpu-0| Progress 41% (none) 2012-06-06T17:52:40.086Z| vcpu-0| Progress 42% (none) 2012-06-06T17:52:40.240Z| vcpu-0| Progress 43% (none) 2012-06-06T17:52:40.415Z| vcpu-0| Progress 44% (none) 2012-06-06T17:52:40.531Z| vcpu-0| Progress 45% (none) 2012-06-06T17:52:40.706Z| vcpu-0| Progress 46% (none) 2012-06-06T17:52:40.882Z| vcpu-0| Progress 47% (none) 2012-06-06T17:52:40.999Z| vcpu-0| Progress 48% (none) 2012-06-06T17:52:41.175Z| vcpu-0| Progress 49% (none) 2012-06-06T17:52:41.293Z| vcpu-0| Progress 50% (none) 2012-06-06T17:52:41.469Z| vcpu-0| Progress 51% (none) 2012-06-06T17:52:41.586Z| vcpu-0| Progress 52% (none) 2012-06-06T17:52:41.763Z| vcpu-0| Progress 53% (none) 2012-06-06T17:52:41.939Z| vcpu-0| Progress 54% (none) 2012-06-06T17:52:42.055Z| vcpu-0| Progress 55% (none) 2012-06-06T17:52:42.230Z| vcpu-0| Progress 56% (none) 2012-06-06T17:52:42.342Z| vcpu-0| Progress 57% (none) 2012-06-06T17:52:42.544Z| vcpu-0| Progress 58% (none) 2012-06-06T17:52:42.662Z| vcpu-0| Progress 59% (none) 2012-06-06T17:52:42.839Z| vcpu-0| Progress 60% (none) 2012-06-06T17:52:43.013Z| vcpu-0| Progress 61% (none) 2012-06-06T17:52:43.130Z| vcpu-0| Progress 62% (none) 2012-06-06T17:52:43.305Z| vcpu-0| Progress 63% (none) 2012-06-06T17:52:43.422Z| vcpu-0| Progress 64% (none) 2012-06-06T17:52:43.598Z| vcpu-0| Progress 65% (none) 2012-06-06T17:52:43.717Z| vcpu-0| Progress 66% (none) 2012-06-06T17:52:43.890Z| vcpu-0| Progress 67% (none) 2012-06-06T17:52:44.066Z| vcpu-0| Progress 68% (none) 2012-06-06T17:52:44.183Z| vcpu-0| Progress 69% (none) 2012-06-06T17:52:44.358Z| vcpu-0| Progress 70% (none) 2012-06-06T17:52:44.475Z| vcpu-0| Progress 71% (none) 2012-06-06T17:52:44.650Z| vcpu-0| Progress 72% (none) 2012-06-06T17:52:44.768Z| vcpu-0| Progress 73% (none) 2012-06-06T17:52:44.942Z| vcpu-0| Progress 74% (none) 2012-06-06T17:52:45.117Z| vcpu-0| Progress 75% (none) 2012-06-06T17:52:45.236Z| vcpu-0| Progress 76% (none) 2012-06-06T17:52:45.412Z| vcpu-0| Progress 77% (none) 2012-06-06T17:52:45.528Z| vcpu-0| Progress 78% (none) 2012-06-06T17:52:45.702Z| vcpu-0| Progress 79% (none) 2012-06-06T17:52:45.878Z| vcpu-0| Progress 80% (none) 2012-06-06T17:52:45.995Z| vcpu-0| Progress 81% (none) 2012-06-06T17:52:46.170Z| vcpu-0| Progress 82% (none) 2012-06-06T17:52:46.287Z| vcpu-0| Progress 83% (none) 2012-06-06T17:52:46.462Z| vcpu-0| Progress 84% (none) 2012-06-06T17:52:46.579Z| vcpu-0| Progress 85% (none) 2012-06-06T17:52:46.755Z| vcpu-0| Progress 86% (none) 2012-06-06T17:52:46.930Z| vcpu-0| Progress 87% (none) 2012-06-06T17:52:47.049Z| vcpu-0| Progress 88% (none) 2012-06-06T17:52:47.223Z| vcpu-0| Progress 89% (none) 2012-06-06T17:52:47.341Z| vcpu-0| Progress 90% (none) 2012-06-06T17:52:47.515Z| vcpu-0| Progress 91% (none) 2012-06-06T17:52:47.631Z| vcpu-0| Progress 92% (none) 2012-06-06T17:52:47.806Z| vcpu-0| Progress 93% (none) 2012-06-06T17:52:47.982Z| vcpu-0| Progress 94% (none) 2012-06-06T17:52:48.099Z| vcpu-0| Progress 95% (none) 2012-06-06T17:52:48.275Z| vcpu-0| Progress 96% (none) 2012-06-06T17:52:48.392Z| vcpu-0| Progress 97% (none) 2012-06-06T17:52:48.565Z| vcpu-0| Progress 98% (none) 2012-06-06T17:52:48.683Z| vcpu-0| Progress 99% (none) 2012-06-06T17:52:49.319Z| vcpu-0| DISKLIB-VMFS : "/vmfs/volumes/4fb4d5f9-127383b4-64d5-d4ae5292223d/Win7x64VS2010-2/Win7x64VS2010-2-flat.vmdk" : open successful (21) size = 34359738368, hd = 0. Type 3 2012-06-06T17:52:49.319Z| vcpu-0| DISKLIB-VMFS : "/vmfs/volumes/4fb4d5f9-127383b4-64d5-d4ae5292223d/Win7x64VS2010-2/Win7x64VS2010-2-flat.vmdk" : closed. 2012-06-06T17:52:49.321Z| vcpu-0| GuestRpc: Reinitializing Channel 0(toolbox) 2012-06-06T17:52:49.321Z| vcpu-0| GuestMsg: Channel 0, Cannot unpost because the previous post is already completed 2012-06-06T17:52:49.322Z| vcpu-0| GuestRpc: Channel 0 reinitialized. 2012-06-06T17:52:49.560Z| vcpu-0| Progress 101% (none) 2012-06-06T17:52:49.565Z| vcpu-0| Vix: [5408 mainDispatch.c:4084]: VMAutomation_ReportPowerOpFinished: statevar=1, newAppState=1875, success=1 additionalError=0 2012-06-06T17:52:49.565Z| vmx| Stopping VCPU threads... 2012-06-06T17:52:49.565Z| vcpu-0| VMMon_WaitForExit: vcpu-0: worldID=5403 2012-06-06T17:52:49.565Z| vcpu-1| VMMon_WaitForExit: vcpu-1: worldID=5405 2012-06-06T17:52:50.343Z| mks| Ending MKSRole pseudocalls, state was 1 2012-06-06T17:52:50.343Z| mks| Async MKS thread is exiting 2012-06-06T17:52:50.343Z| vmx| Vix: [5402 mainDispatch.c:1165]: VMAutomation_PowerOff: Powering off. 2012-06-06T17:52:50.345Z| vmx| 2012-06-06T17:52:50.345Z| vmx| --&gt; OvhdMem: Final Overheads 2012-06-06T17:52:50.345Z| vmx| 2012-06-06T17:52:50.345Z| vmx| OvhdMem: Vmx overhead max used max reserved avg used 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_VmxAllocTrack : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_VmxCallStackProf : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_VmxGlobals : 0 1024 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_VmxGlobalsLibs : 0 1024 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_VmxHeap : 0 5120 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_VmxMainMemCheck : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_VmxMks3d : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_VmxMksShadowFB : 771 2176 769 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_VmxPhysMemRingBuf : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_VmxReplayCheck : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_VmxSLEntryBuf : 0 128 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_VmxText : X [ 3328] 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_VmxTextLibs : X [ 15360] 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_VmxThreadMks : 512 512 512 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_VmxThreadVmx : 0 512 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_VmxThreadsVcpu : 512 512 512 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_VmxThreadsWorker : 0 1536 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem Total : 1795 31232 2012-06-06T17:52:50.345Z| vmx| 2012-06-06T17:52:50.345Z| vmx| OvhdMem: Vmm overhead max used max reserved avg used 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_SharedArea : 54 95 54 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_TraceBitmapMainMem : 16 16 16 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_KSTATS_vmm : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_STATS_vmm : 0 4 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_KSTATS_device : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_STATS_device : 0 2 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_KSTATS_migrate : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_PFrame : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_VProbe : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_DFStackvcpu : 0 2 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_DFCR3vcpu : 0 6 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_DFCR3PTvcpu : 0 2 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_DFCR3PageDirForSwitchPg : 0 2 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_VIDE_KSEG : 16 16 16 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_VGA : 64 64 64 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_BusMemRemap : 131 131 131 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_PShareMPN : 1 2 1 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_P2MUpdateMPN : 1 1 1 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_P2MUpdateBuffer : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_SharedMPNsPool : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_SwapMPN : 1 1 1 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_VMCIMPN : 1 1 1 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_LocalApic : 2 2 2 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_BusError : 1 1 1 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_VBIOS : 8 8 8 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_VnicGuest : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_VnicMmap : 1 1 1 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_LSIBIOS : 0 4 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_LSIRings : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_PCIPBIOS : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_PVSCSIBIOS : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_PVSCSIKickReg : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_SAS1068BIOS : 4 4 4 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_SBIOS : 0 16 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_FlashRam : 128 128 128 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_SHPC_MemReg : 0 2 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_SVGAFB : 2048 2048 2048 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_SVGAMEM : 64 64 64 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_HDAudioReg : 0 3 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_EHCIRegister : 0 1 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_XhciRegister : 0 1 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_PhysMemDebug : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_MainMem : X [ 524288] 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_HVIOBitmap : 0 3 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_HVMSRBitmap : 0 2 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_vhvMSRBitmap : 0 2 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_StateLoggerLogBuf : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_DebugStubSSEvents : 1 2 1 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_DebugStubBWPEvents : 1 2 1 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_PCIP : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_VMsafe : 0 4 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_MonWired : 128 128 128 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_MonLow : 0 2 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_MonNuma : 273 273 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_MonOther : 0 30 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_MonAnon : 3956 6216 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_SVMLowMem : 0 3 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem OvhdUser_PAEShadow : 0 2 0 2012-06-06T17:52:50.345Z| vmx| OvhdMem Total : 6900 533585 2012-06-06T17:52:50.345Z| vmx| 2012-06-06T17:52:50.345Z| vmx| OvhdAnon Detailed Sources max used max rsvd avg used 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_Alloc : 0 94 0 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_BusMemFrame : 1751 1849 1751 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_BusMemFramePGAR : 3 11 3 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_BusMemMMTracePGAR : 2 2 2 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_BusMem2MRegionPGAR : 8 8 8 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_BusMemZapListMPN : 1 1 1 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_MMU : 38 422 36 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_MonTLB : 12 12 12 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_DT : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_TCCoherency : 24 42 20 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_TC : 1536 1536 1024 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_ChainInfo : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_Island : 0 2 0 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_BusMemScratchAS : 6 21 6 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_BackdoorHintsMPN : 0 3 0 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_HV : 2 2 2 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_VNPTShadow : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_VNPTBackmap : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_SVMIDT : 0 2 0 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_CallStackProfAnon : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_Numa : 93 723 91 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_GPhysTraced : 177 233 124 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_GPhysEPT : 280 1173 230 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_GPhysNoTrace : 14 58 9 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_BTScratchPage : 1 1 1 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_StateLoggerBufferPA : 0 1 0 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_TraceALot : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_VIDE : 0 4 0 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_VMXNETWake : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_BusLogic : 0 8 0 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_PVSCSIShadowRing : 0 0 0 2012-06-06T17:52:50.345Z| vmx| OvhdAnon OvhdMon_LSIRings : 8 8 8 2012-06-06T17:52:50.345Z| vmx| OvhdAnon Total : 3956 6216 2012-06-06T17:52:50.345Z| vmx| 2012-06-06T17:52:50.345Z| vmx| OvhdMem maximum overheads: paged 12550 nonpaged 3075 anonymous 5692 2012-06-06T17:52:50.345Z| vmx| 2012-06-06T17:52:50.345Z| vmx| OvhdMem: average total user: 4464 anon: 3329 2012-06-06T17:52:50.345Z| vmx| OvhdMem: memsize 2048 MB VMK fixed 74 pages var 0 pages cbrcOverhead 0 pages total 1099 pages 2012-06-06T17:52:50.345Z| vmx| VMMEM: Maximum Reservation: 75MB (MainMem=2048MB SVGA=8MB) VMK=4MB 2012-06-06T17:52:50.347Z| vmx| VMXVmdb_SetToolsVersionStatus: status value set to 'ok', 'current', install possible 2012-06-06T17:52:50.349Z| vmx| Virtual Device for scsi0:0 was already successfully destroyed 2012-06-06T17:52:50.350Z| vmx| MKS local poweroff 2012-06-06T17:52:50.355Z| vmx| WORKER: asyncOps=0 maxActiveOps=0 maxPending=0 maxCompleted=0 2012-06-06T17:52:50.489Z| vmx| Vix: [5402 mainDispatch.c:4084]: VMAutomation_ReportPowerOpFinished: statevar=1, newAppState=1875, success=1 additionalError=0 2012-06-06T17:52:50.489Z| vmx| Vix: [5402 mainDispatch.c:4103]: VMAutomation: Ignoring ReportPowerOpFinished because the VMX is shutting down. 2012-06-06T17:52:50.508Z| vmx| Vix: [5402 mainDispatch.c:4084]: VMAutomation_ReportPowerOpFinished: statevar=0, newAppState=1870, success=1 additionalError=0 2012-06-06T17:52:50.508Z| vmx| Vix: [5402 mainDispatch.c:4103]: VMAutomation: Ignoring ReportPowerOpFinished because the VMX is shutting down. 2012-06-06T17:52:50.508Z| vmx| Transitioned vmx/execState/val to suspended 2012-06-06T17:52:50.512Z| vmx| VMX idle exit 2012-06-06T17:52:50.512Z| vmx| VMIOP: Exit 2012-06-06T17:52:50.514Z| vmx| Vix: [5402 mainDispatch.c:900]: VMAutomation_LateShutdown() 2012-06-06T17:52:50.515Z| vmx| Vix: [5402 mainDispatch.c:850]: VMAutomationCloseListenerSocket. Closing listener socket. 2012-06-06T17:52:50.516Z| vmx| Flushing VMX VMDB connections 2012-06-06T17:52:50.516Z| vmx| VmdbDbRemoveCnx: Removing Cnx from Db for '/db/connection/#1/' 2012-06-06T17:52:50.516Z| vmx| VmdbCnxDisconnect: Disconnect: closed pipe for pub cnx '/db/connection/#1/' (0) 2012-06-06T17:52:50.522Z| vmx| VMX exit (0). 2012-06-06T17:52:50.522Z| vmx| AIOMGR-S : stat o=2 r=6 w=0 i=0 br=98304 bw=0 2012-06-06T17:52:50.522Z| vmx| VMX has left the building: 0. </code></pre>
0non-cybersec
Stackexchange
Alternative to Source Insight. More of a code auditing issue than reverse engineering, but hopefully it does belong in here. I'm looking for a tool that does the same job as Source Insight - source code analysis and browsing. Key features- * Parsing C/++ code. * Jump-to-Definition, double-pane symbol under cursor preview, Symbol reference list. * File content index pane (list all #define's, classes, methods, functions etc. by name). Would've been nice: * Ability to parse slightly-erroneous content. * Contextual info pop-up. * Runs on Linux. * Still under active development (SI development seems to be limited to compatibility issues only). The software really doesn't have to have any build/compilation or editing ability. Meant to be used as a viewer/browser only. A bundle of plugins to Vim/Sublime Text that perform together the tasks above would be a great answer too.
1cybersec
Reddit
The Vikings new home - US Bank Stadium (xpost from r/evilbuildings).
0non-cybersec
Reddit
Doraemon Nobita's Story of Seasons(JP) | Nintendo Switch | Official Trailer.
0non-cybersec
Reddit
https://alisaleplus.com/fishing-hunting/.
0non-cybersec
Reddit
Can a MSSQL job change its own active schedule?. <p>I am planning a new job for MSSQL Sever 2016.</p> <p>I'd like the job to run on Sunday, every 10 minutes, until it sees a confirmation record is added to a table it checks as the final step in the job. If the record is there, the job modifies its current schedule so it will not run again until next Sunday. This leads me to wonder when the schedule updates in a "natural" job cycle. I wonder if my change would be overwritten before it could be used.</p> <p>So, can I use msdb.dbo.sp_update_jobschedule in a job's final step to do this to the current job and what technical pitfalls might I encounter doing that? </p> <p>Examples and/or alternate solutions are always welcomed.</p>
0non-cybersec
Stackexchange
Calculting the angle between two roads on the map. <p>Suppose you're given three points $A = (latitude,longitude),B=(latitude,longitude),C=(latitude,longitude)$. There's a road connecting $A$ and $B$ and one connecting $B$ and $C$. How do you calculate the angle between the road $(A,B)$ and the road $(B,C)$ ?</p>
0non-cybersec
Stackexchange
Insulting this man.
0non-cybersec
Reddit
Increasing accuracy of solution of transcendental equation. <p>I have a specific kinematics as a part of a more complex machine and need to compute some physical parameters that are <strong>very hard</strong> (more like impossible) to measure with proper <strong>accuracy</strong> with instruments I have at my disposal</p> <p><strong>[kinematics]</strong></p> <p><img src="https://i.stack.imgur.com/XtSXq.png" alt="enter image description here"></p> <p>At first look it is a simple <code>1</code> degree of freedom arm (black) which can rotate around <code>x</code> axis. It has a weight to force it to go always up until it hit the mechanic endpoint (angle <code>a0</code>) or some tube (blue) with radius <code>r0</code>. Arm rotation center is at <code>y0</code>. The tube can be moved to any <code>y(t)</code> height.</p> <p><strong>[usage]</strong></p> <p>This is used to measure the radius of a tube for further processing. The radius can be computed (by basic goniometry) which leads to equation in the bottom of image. The constants <code>a0,y0,z0</code> are very hard to measure (it is inside complex machinery) so the measurement accuracy for distances is min <code>0.1 mm</code> and angle <code>0.1 deg</code> and even that is questionable.</p> <p><strong>[calibration]</strong></p> <p>So I decided to try compute these parameters from set of measurements done by the machine itself (auto-calibration). So I have calibration tube with known radius <code>r0</code>. All green parameters can be handled as constants. Now I position the tube along <code>y</code> axis to cover as much angles of arm as I could. Sadly the range is only about <code>20 degrees</code> (for current machine setup) remembering measured <code>a(t)</code> for preset <code>y(t)</code> ... as <code>n</code> point dataset. This gives me system of <code>n</code> transcendent equations. From this I try/guess "all" possibilities of <code>a0,y0,z0</code> remembering the best solution (closest to <code>r0</code>)</p> <p><strong>[approximation of a0,y0,z0]</strong></p> <p>approximation is based on this class of mine:</p> <pre><code>//--------------------------------------------------------------------------- class approx { public: double a,aa,a0,a1,da,*e,e0; int i,n; bool done,stop; approx() { a=0.0; aa=0.0; a0=0.0; a1=1.0; da=0.1; e=NULL; e0=NULL; i=0; n=5; done=true; } approx(approx&amp; a) { *this=a; } ~approx() {} approx* operator = (const approx *a) { *this=*a; return this; } //approx* operator = (const approx &amp;a) { ...copy... return this; } void init(double _a0,double _a1,double _da,int _n,double *_e) { if (_a0&lt;=_a1) { a0=_a0; a1=_a1; } else { a0=_a1; a1=_a0; } da=fabs(_da); n =_n ; e =_e ; e0=-1.0; i=0; a=a0; aa=a0; done=false; stop=false; } void step() { if ((e0&lt;0.0)||(e0&gt;*e)) { e0=*e; aa=a; } // better solution if (stop) // increase accuracy { i++; if (i&gt;=n) { done=true; a=aa; return; } // final solution a0=aa-fabs(da); a1=aa+fabs(da); a=a0; da*=0.1; a0+=da; a1-=da; stop=false; } else{ a+=da; if (a&gt;a1) { a=a1; stop=true; } // next point } } }; //--------------------------------------------------------------------------- </code></pre> <p>It search the full range of single variable by some initial step then find the min deviation point. After that change the range and step to close area of this point and recursively increase accuracy.</p> <p>The solution itself looks like this:</p> <pre><code>// (global) input data #define _irc_calib_n 100 #define _irc_approx_n 5 int irc_calib_ix; // number of measured points double irc_calib_y[_irc_calib_n]; // y(t) double irc_calib_a[_irc_calib_n]; // a(t) double irc_calib_r; // calibration tube radius + arm radius // approximation int ix=0; double e,a,deg=M_PI/180.0; approx aa,ay,az; // min max step recursions ErrorOfSolutionVariable for (aa.init(-90.0*deg,+90.0*deg,10.0*deg,_irc_approx_n,&amp;e);!aa.done;aa.step()) for (ay.init( 0.0 ,200.0 ,10.0 ,_irc_approx_n,&amp;e);!ay.done;ay.step()) for (az.init( 50.0 ,400.0 ,10.0 ,_irc_approx_n,&amp;e);!az.done;az.step()) { for (e=0.0,ix=0;ix&lt;_irc_calib_n;ix++) // test all measured points (e is cumulative error) { a=irc_calib_a[ix]+aa.a; if (a&gt; pi) a-=pi2; if (a&lt;-pi) a+=pi2; if (fabs(a)&gt;0.5*pi) { e=100.0; break; } // ignore too far angles e+=fabs(+(cos(a)*(irc_calib_y[ix]-ay.a)) -(sin(a)*(az.a)) -(irc_calib_r)); } } // here aa.a,ay.a,az.a holds the result </code></pre> <p>This leads to solution close to the measured values but inside simulation the result is still not accurate enough. It is from 0.1 mm to 0.5 mm depending on number of points and angle range. If I measure properly <code>z0</code> and ignore its approximation then the precision is boosted significantly leaving <code>y0</code> without error (in simulation) and <code>a0</code> with error around 0.3 degree</p> <p><strong>Q1 how can I further improve accuracy of the solution?</strong></p> <p>I cannot increase the angular range. The number of points is best around <code>100</code> the more the better accuracy but above 150 the result is unstable (for some radiuses it is completely off). Have absolutely no clue why. The recursions number above <code>6</code> has not much effect </p> <p>Could help weighting the deviations according to angular distance from <code>0 degree</code> ? But sadly <code>a(t)</code> range does not necessarily include <code>0 degrees</code></p> <p>desired accuracy is <code>0.01 mm</code> for <code>y0,z0</code> and <code>0.01 degree</code> for <code>a0</code></p> <p><strong>Q2 is there something I have missed?</strong></p> <p>Like wrongly nested approximations or some math simplification or different approach</p> <p><strong>[notes]</strong></p> <p>The angle must be in form of <code>a(t)+a0</code> because it is measured by IRC with SW reset (<code>16000 steps/round</code>). It is reseted when in <code>a0</code> position I do not count vibrations and calibration tube eccentricity they are taken care of already and my first goal is to make this work in simulation without them. Tube <code>y(t)</code> can be positioned at free will and the <code>a(t)</code> measurement can be done at will. </p> <p>Right now the calibration process scan points along <code>y</code> axis (movement from <code>a0</code> down). Computation with <code>6</code> recursions take around <code>35</code> seconds (so be patient). <code>5</code> recursions take around <code>22</code> seconds</p> <p><strong>[edit1] here how the simulation is done</strong></p> <pre><code>approx aa; double e; for (aa.init(-90.0*deg,+90.0*deg,10.0*deg,6,&amp;e);!aa.done;aa.step()) e=fabs(+(cos(aa.a)*(y(t)-y0)) -(sin(aa.a)*(z0)) -(irc_calib_r)); if (aa.a&lt;a0) aa.a=a0; </code></pre> <p><strong>[edit2] some values</strong></p> <p>Just realized that I had only <code>4</code> recursions in simulation code to match the input IRC accuracy then there must be <code>6</code> recursions. After changing it (also in previous edit) here are some results</p> <pre><code> | a0[deg]| y0[mm] | z0[mm] | simulated | -7.4510|191.2590|225.9000| z0 known | -7.4441|191.1433|225.9000| z0 unknown | -7.6340|191.8074|225.4971| </code></pre> <p>So the accuracy with <code>z0</code> measured is almost in desired range but with <code>z0</code> unknown the error is still <code>~10</code> times bigger then needed. Increasing simulation accuracy has no effect above <code>6</code> recursions and also no sense because real input data will not be more accurate either.</p> <p>Here the simulated/measured points for testing with above simulated settings:</p> <pre><code> ix a [deg] y [mm] 0 -0.2475 +105.7231 1 -0.4500 +104.9231 2 -0.6525 +104.1231 3 -0.8550 +103.3231 4 -1.0575 +102.5231 5 -1.2600 +101.7231 6 -1.4625 +100.9231 7 -1.6650 +100.1231 8 -1.8675 +99.3231 9 -2.0700 +98.5231 10 -2.2725 +97.7231 11 -2.4750 +96.9231 12 -2.6775 +96.1231 13 -2.8575 +95.3077 14 -3.0600 +94.5154 15 -3.2625 +93.7231 16 -3.4650 +92.9308 17 -3.6675 +92.1385 18 -3.8700 +91.3462 19 -4.0725 +90.5538 20 -4.2750 +89.7615 21 -4.4877 +88.9692 22 -4.6575 +88.1769 23 -4.8825 +87.3615 24 -5.0850 +86.5154 25 -5.2650 +85.7000 26 -5.4675 +84.9077 27 -5.6700 +84.1154 28 -5.8725 +83.3231 29 -6.0750 +82.5308 30 -6.2775 +81.7000 31 -6.5025 +80.8462 32 -6.6825 +80.0462 33 -6.8850 +79.2538 34 -7.0875 +78.4615 35 -7.2900 +77.6538 36 -7.5159 +76.7692 37 -7.6725 +75.9769 38 -7.8750 +75.1846 39 -8.1049 +74.3692 40 -8.2800 +73.5000 41 -8.4825 +72.7077 42 -8.6850 +71.9154 43 -8.9100 +71.0308 44 -9.0900 +70.2231 45 -9.2925 +69.4308 46 -9.5175 +68.5462 47 -9.6975 +67.7462 48 -9.9000 +66.9462 49 -10.1025 +66.0615 50 -10.3148 +65.2692 51 -10.4850 +64.3769 52 -10.6875 +63.5846 53 -10.9125 +62.7462 54 -11.0925 +61.9077 55 -11.2950 +61.0846 56 -11.4975 +60.2231 57 -11.7000 +59.3923 58 -11.9025 +58.5308 59 -12.1288 +57.6692 60 -12.3075 +56.8385 61 -12.5100 +55.9462 62 -12.7125 +55.1538 63 -12.9150 +54.2615 64 -13.1175 +53.4000 65 -13.2975 +52.5769 66 -13.5000 +51.6846 67 -13.7025 +50.7923 68 -13.9050 +50.0000 69 -14.1075 +49.1077 70 -14.3100 +48.2154 71 -14.5350 +47.3615 72 -14.7150 +46.5308 73 -14.9175 +45.6385 74 -15.1200 +44.7462 75 -15.3225 +43.8538 76 -15.5250 +42.9615 77 -15.7490 +42.0692 78 -15.9075 +41.2769 79 -16.1100 +40.3846 80 -16.3125 +39.4923 81 -16.5150 +38.6000 82 -16.7175 +37.7077 83 -16.9200 +36.8154 84 -17.1225 +35.9231 85 -17.3250 +34.9308 86 -17.5275 +34.0385 87 -17.7300 +33.1462 88 -17.9325 +32.2538 89 -18.1350 +31.3615 90 -18.3405 +30.4692 91 -18.5175 +29.4769 92 -18.7200 +28.5846 93 -18.9225 +27.6923 94 -19.1250 +26.8000 95 -19.3275 +25.8077 96 -19.5300 +24.9154 97 -19.7325 +23.9231 98 -19.9350 +23.0308 99 -20.1375 +22.1385 </code></pre> <p><strong>[edit3] progress update</strong></p> <p><strong>some clarification for @Ben</strong></p> <p><strong>how it works</strong></p> <p>the colored equation under the first image gives you the radius <code>r0</code> it is made from 2 joined <code>90 degree</code> triangles (basic trigonometry)</p> <p><strong>red stuff:</strong></p> <ul> <li><code>y(t)</code> is motor position and it is known</li> <li><code>a(t)</code> is IRC state also known</li> </ul> <p><strong>green stuff:</strong></p> <ul> <li><code>a0,y0,z0</code> are mechanical dimensions and are known but not precise so I measure many <code>a(t)</code> for different positions of <code>y(t)</code> with known calibration tube <code>r0</code> and compute the <code>a0,y0,z0</code> with higher precision from it</li> </ul> <p><strong>further accuracy improvement</strong></p> <p>I actually managed to get it more precise by measuring <code>y1=y0+z0*cos(a0)</code> from special calibration movement with precision around <code>0.03 mm</code> and better. It is the height of intersection between arm in <code>a0</code> position and tube <code>y</code> movement axis. It is measured and interpolated from situation when arm get first time contact when tube coming from up to down but the real position must be recomputed by used radius and <code>a0</code>... because contact point is not on this axis ... (unless <code>r0=0.0</code>). This also eliminates one approximation loop from calibration because <code>y1,a0,z0</code> are dependent and can be computed from each other. Also removing double aliasing from measurement of IRC due to discontinuous manner of measurement and <code>a(t),y(t)</code> positions helped a lot to increase precision and computation stability (on real machine). I can not reliably asses accuracy right now because by analysis of many measured cycles I found some mechanical problems on the machine so I wait until it is repaired. Anyway the calibration vs. simulation accuracy for <code>r0=80.03 mm</code> with accounting both approaches and <code>_irc_calib_n=30</code> is now:</p> <pre><code> ; computed simulated |delta| a0= -6.915840 ; -6.916710 +0.000870 deg y0=+186.009765 ;+186.012822 +0.003057 mm y1=+158.342452 ;+158.342187 +0.000264 mm z0=+228.102470 ;+228.100000 +0.002470 mm </code></pre> <p>The bigger the calibration <code>r0</code> the less accuracy (due to more limited <code>a(t)</code> range) this is by computing all <code>a0,y0,(y1),z1</code> nothing is measured directly or known. This is already acceptable but as I wrote before need to check on machine when it is ready. Just to be complete here is how simulated measurements looks like now:</p> <p><img src="https://i.stack.imgur.com/L0sLu.jpg" alt="simulation measurements"></p> <p><strong>[edit4] see <a href="https://stackoverflow.com/q/36163846/2521214">How approximation search works</a></strong></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
Derivation Gaussian Mixture Models log-Likelihood. <p>I'm trying to understand the derivation of the log-likelihood function for Gaussian Mixture Models. According to my records the following steps are made.</p> <p>The log-likelihood function is defined as:</p> <p>$ L(X|\Theta) = \sum_{n=1}^N ln P(x_n|\Theta) = \sum_{n=1}^N ln \sum^M_{m=1} \alpha_m \mathcal{N}(x_n|\mu_m, \Sigma_m) $</p> <p>And then the partial derivative w.r.t. $\mu_m$ is made, where the first step seems fine for me, applying the chain rule and the derivative of the log:</p> <p>$$ \frac{\partial ln P(X|\theta)}{\partial \mu_m} = \sum_{n=1}^N \frac{1}{\sum_{m'=1}^M\alpha_{m'} \mathcal{N}(x_n|\mu_{m'},\Sigma_{m'})} \cdot \frac{\partial \sum^M_{m=1} \alpha_m \mathcal{N}(x_n|\mu_m, \Sigma_m)}{\partial\mu_m} $$</p> <p>I just don't get how the prior equation leads to the following: </p> <p>$$ \frac{\partial ln P(X|\theta)}{\partial \mu_m} = \sum_{n=1}^N \frac{\alpha_m \mathcal{N}(x_n|\mu_n, \Sigma_m)}{\sum_{m'=1}^M\alpha_{m'} \mathcal{N}(x_n|\mu_{m'},\Sigma_{m'})} \cdot \frac{\partial[ln(\alpha_m) + ln \mathcal{N}(x_n|\mu_m, \Sigma_m)]}{\partial\mu_m} $$</p> <p>From where does the log arises here again after the derivation?</p>
0non-cybersec
Stackexchange
I drew this last night. Thoughts? Suggestions?.
0non-cybersec
Reddit
My SO cut his hair off and I hate it. [Remorse]: If you feel bad When I met my SO, he had really long hair. We used to joke about him being "Rapunzel" etc, it was cute, then he cut it a bit shorter (so like just below the ears) and it looked SUPER hot. He's such an attractive guy, the combination of his sexy jawline and manly stubble and hot body and sexy tousled hair just drove me mad. Today I came home and he's got this retarded looking short "posh guy" haircut, clean shaven, and doesn't even look like himself. I hate it. His reasoning was that he works outdoors and the extra 5 or so inches of hair made him too hot. Fair enough. I just hate his haircut. I just jokingly told him he could star in a BBC miniseries and have started calling him "Mr Darcy" to try and lighten the mood and not make it obvious how unattracted I am to him right now. I'm taking the piss but deep down I really really can't stand the look he has now. I don't know why I am so upset by this. Yes, his old hairstyle looked better. I might be PMSing or something but I just feel like he did this behind my back. If I came home with a shaved head I'm sure he would be "allowed" to not be attracted to me. Either way, I feel bad. It's his hair, his body, I wish I wasn't being so shallow.
0non-cybersec
Reddit
Let continuous $T:X\to Y$ with $(X,||.||)$ and $(Y,||.||&#39;)$ normed spaces.Is it always true that $T(Bx)=By$?. <p>I am looking for a case where you have continuous <span class="math-container">$T:X\to Y$</span> where <span class="math-container">$T(Bx)$</span> is something else than a open (or closed) ball or even sphere (<span class="math-container">$Bx$</span> is the closed ball of <span class="math-container">$X$</span> with centre 0 and radius 1). If you have an isometry I think that is true to say <span class="math-container">$T(Bx)=By$</span> (where <span class="math-container">$By$</span> is the closed ball of <span class="math-container">$Y$</span> with centre 0 and radius 1) but if not I guess that you can see different things on <span class="math-container">$T(Bx)$</span>. Any ideas?</p>
0non-cybersec
Stackexchange
Active Directory Integration issue Nodejs. <p>I am new with Node js and I want to make Authentication with Azure Active Directory. I Downloaded Node and Installed NPM as mentioned <a href="https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-devquickstarts-openidconnect-nodejs" rel="noreferrer">Here</a></p> <pre><code>npm install express npm install ejs npm install ejs-locals npm install restify npm install mongoose npm install bunyan npm install assert-plus npm install passport npm install passport-azure-ad </code></pre> <p>after that as per document, I followed <strong>Step 3: Set up your app to use the passport-node-js strategy</strong></p> <p>Here is <em>config.js</em></p> <pre><code>exports.creds = { returnURL: 'https://hpe.onmicrosoft.com/8d332647-xxxx-4xxc-8xx-11776XXXXX', identityMetadata: 'https://login.microsoftonline.com', // For using Microsoft you should never need to change this. clientID: '22XXXX9-b5fa-XXXXb-bc7a-XXXXXXXa92a', clientSecret: 'Srekv8dM1NqP4Sqnxxxxxxxxxxxx', // if you are doing code or id_token code skipUserProfile: true, // for AzureAD should be set to true. responseType: 'id_token code', // for login only flows use id_token. For accessing resources use `id_token code` responseMode: 'query', // For login only flows we should have token passed back to us in a POST //scope: ['email', 'profile'] // additional scopes you may wish to pass }; </code></pre> <p>and rest of code i have written as mentioned in document.</p> <p>But when I run app.js am getting issues.</p> <pre><code>C:\Nikunj Data\Project\Active Directory\WebApp-OpenIDConnect-NodeJS-skeleton\node_modules\passport-azure-ad\lib\validator.js:51 throw new TypeError(`Invalid value for ${item}.${checker.error}`); ^ TypeError: Invalid value for redirectUrl.The URL must be valid and be https:// at Object.keys.forEach (C:\Nikunj Data\Project\Active Directory\WebApp-OpenIDConnect-NodeJS-skeleton\node_modules\passport-azure-ad\lib\validator.js:51:13) at Array.forEach (native) at Validator.validate (C:\Nikunj Data\Project\Active Directory\WebApp-OpenIDConnect-NodeJS-skeleton\node_modules\passport-azure-ad\lib\validator.js:37:28) at new Strategy (C:\Nikunj Data\Project\Active Directory\WebApp-OpenIDConnect-NodeJS-skeleton\node_modules\passport-azure-ad\lib\oidcstrategy.js:495:13) at Object.&lt;anonymous&gt; (C:\Nikunj Data\Project\Active Directory\WebApp-OpenIDConnect-NodeJS-skeleton\app.js:42:14) at Module._compile (module.js:569:30) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:503:32) at tryModuleLoad (module.js:466:12) at Function.Module._load (module.js:458:3) </code></pre> <p>Please help me..</p> <p>Regards Nikunj</p> <p><strong>Try 1 :</strong> I tried Nan yu 's suggested code and I got error : </p> <pre><code>(node:2628) DeprecationWarning: `open()` is deprecated in mongoose &gt;= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/connections.html#use-mongo-client events.js:182 throw er; // Unhandled 'error' event ^ MongoError: failed to connect to server [localhost:27017] on first connect [MongoError: connect ECONNREFUSED 127.0.0.1:27017] at Pool.&lt;anonymous&gt; (C:\Nikunj Data\Project\Active Directory\WebApp-OpenIDConnect-NodeJS-master\node_modules\mongodb\node_modules\mongodb-core\lib\topologies\server.js:329:35) at emitOne (events.js:115:13) at Pool.emit (events.js:210:7) at Connection.&lt;anonymous&gt; (C:\Nikunj Data\Project\Active Directory\WebApp-OpenIDConnect-NodeJS-master\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:280:12) at Object.onceWrapper (events.js:318:30) at emitTwo (events.js:125:13) at Connection.emit (events.js:213:7) at Socket.&lt;anonymous&gt; (C:\Nikunj Data\Project\Active Directory\WebApp-OpenIDConnect-NodeJS-master\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:187:49) at Object.onceWrapper (events.js:316:30) at emitOne (events.js:115:13) at Socket.emit (events.js:210:7) at emitErrorNT (internal/streams/destroy.js:62:8) at _combinedTickCallback (internal/process/next_tick.js:102:11) at process._tickCallback (internal/process/next_tick.js:161:9) </code></pre>
0non-cybersec
Stackexchange
She likes the sink.
0non-cybersec
Reddit
What is the operations order of these two functions. <p>I was writing a function to calculate the volume of a sphere when I encounter a problem and I don't know why if I change 4/3 * PI to PI * 4/3 I got different result. What is the order of evaluation, if I use parenthesis like (4/3) * PI and PI * (4/3) I got the wrong answer in both cases.</p> <pre><code>#define PI 3.141592 float Volume(int radius){ return (4/3 * PI * pow(radius, 3)); } float Volume(int radius){ return (PI * 4/3 * pow(radius, 3)); //the good one } </code></pre>
0non-cybersec
Stackexchange
Russian joke. "Hey dad I met a new exchange student today at school, he's Russian" "Where to?"
0non-cybersec
Reddit
YSK the vast majority of gun owners and industry professionals also find carrying your rifle, or any long gun, in public places because "it's perfectly legal", in poor taste.. The practice of carrying a rifle into public to protest for your gun rights is not only detrimental to the movement, but it also paints gun owners and firearm enthusiasts as ignorant children. Doing this sours opinions and creates bad press. Most gun owners see it this way. Every professional in the firearms industry I've talked to see it this way. There are other ways to express your rights and protest without causing unnecessary fear. People who openly carry rifles in public are a small minority of gun owners looking for attention or baiting police or baiting the public. Dressing up in your best army surplus, or completely mall ninja tactikool gear and carrying your AR15 into a Denny's, so you can scare people, and be a dick to the cop who is just trying to figure out what's going on doesn't make you a protester or a patriot. It makes you an asshole. On behalf of gun owners everywhere. We get it too. Most of us aren't like them. -from a former gunsmith
0non-cybersec
Reddit
Facing quality issues. <p>A workforce management software has complex GUI (for example values in a page depends on the status (closed or open) of other pages). Only latest and near past development has test coverage. During our last release, we received lots of bugs from customer in-spite of 2 weeks of testing Sprint. We don't have dedicated test team. The developers does the unit test and User acceptance test. Every day triggers automated regression test.</p> <p>I am afraid the developers are not testing the entire workflow because its time consuming also not able to automate it because of its complexity. Any suggestions? The legacy code (15 years of development) has less code coverage. How can I improve quality?</p> <p>Note: Now not possible to hire testers to have independent test team.</p>
0non-cybersec
Stackexchange
Who are the candidates for player of the month in both conferences?. Mostly asking cuz as a Wiz fan I really want a John Wall repeat. The only other player in the East I see a strong argument for is IT. And then in the West I imagine it'll be Curry right?
0non-cybersec
Reddit
Vegan Lettuce Taco Wraps (x-post from /r/eatwraps) [Recipe + nutritional information].
0non-cybersec
Reddit
Boyfriend of almost 2 years is having his ex-girlfriend move in with him.. advice please.. Ok Reddit, to keep it short and sweet.. I (27 female) was recently informed that my boyfriend (28 male) of 2 years is planning on having his ex-girlfriend (who he dated for 6 or 7 years) move in with him. From what I was told, he has known about this for almost 2 weeks now and has yet had the balls to tell me. Today while I was at work he sent me a text saying "we needed to have a little chat - and it's not going to be something you're going to be happy about but I'm sick of being broke". We still have not had this conversation yet since I worked 12 hours today and really just want sleep right now, and definitely don't want to have this conversation anyway other then in person.. so he said we'll talk about it tomorrow. To add fuel to the fire, very early on in our relationship he actually cheated on me with this particular ex.. though he still denies it, I know there are pictures that exist of them making out that was taken while we were together. He has sworn up and down the past 2 years that this ex is nothing more then a really good friend (who supposedly has a boyfriend right now) and me not wanting to be the controlling girlfriend.. has sucked it up as best as I have been able to and kept my feelings (for the most part) to myself. But this.. this is a whole new level that I am 95% positive I cannot be comfortable with. So.. reddit.. what do I do? Am I wrong for considering ending it? He's one of the most stubborn people I've ever met and I know he will not back down from this decision, but I don't think I can live with him living with his ex-girlfriend. Advice always greatly greatly appreciated. **UPDATE** Wow.. never expected this many comments.. and this may be the first time in the history of reddit where every single person agrees to one answer. As one of you stated so greatly - I think I know what I need to do. I'm going to meet with him now.. bottle of wine in tow.. if you all are interested I will post an update to how it all goes down. More importantly - thank you all from the bottom of my heart - sometimes we humans need a good kick in the ass to wake up - so sincerely, thank you.
0non-cybersec
Reddit
Filter Products using Storefront API in shopify. <p>We are developing filters functionality using Storefront API. We can write query with operators as given below to search within parent key such as &quot;product_type&quot; but we couldn't find way to search within child key.</p> <pre><code>.products(first: 10, query: &quot;tag:blue AND product_type:sneaker&quot;) { $0 ... } </code></pre> <p>So can anyone help us to search within child key's such as variant selected options?</p> <p>We are expecting query format like:</p> <pre><code>.products(first: 10, query: &quot;selectedProductVarient.option1:M&quot;) { $0 ... } </code></pre>
0non-cybersec
Stackexchange
Is it possible to switch between multiple legends when switching between base groups?. <p>I am visualizing some vector data using leaflet in r which has multiple non-spatial variables that a user might be interested in. I want to allow the user to select one variable that will determine the color of the features. I accomplish this with the <code>baseGroups</code> argument to the <code>addLayersControl</code> function, where each group is the same data with a different color palette. This works fine for switching the colors of the features themselves, but does not allow me to switch between legends- every legend I add is always shown, even if I use the appropriate <code>group</code> within <code>addLegend</code>. See the example code and screenshot below:</p> <pre><code>data &lt;- data.frame(long = c(-93.2, -93, -93.5), lat = c(44.9, 45, 44.9), var1 = c(1,2,3), var2 = c(10, 9, 1)) pal1 &lt;- colorNumeric(palette = "Blues", domain = data$var1) pal2 &lt;- colorNumeric(palette = "Reds", domain = data$var2) leaflet(data) %&gt;% addCircleMarkers(color = ~pal1(var1), group = "var1") %&gt;% addCircleMarkers(color = ~pal2(var2), group = "var2") %&gt;% addLegend(pal = pal1, values = ~var1, group = "var1") %&gt;% addLegend(pal = pal2, values = ~var2, group = "var2") %&gt;% addLayersControl(baseGroups = c("var1", "var2"), position = "topleft") </code></pre> <p><a href="https://i.stack.imgur.com/Q4Qja.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Q4Qja.png" alt=""></a></p> <p>If I replace <code>baseGroups</code> with <code>overlayGroups</code> in my layers control, this works as expected, and only the legends for the selected groups are shown. However, this option isn't ideal because I don't want the user to be able to select multiple groups or deselect all groups.</p> <p><a href="https://i.stack.imgur.com/8D6Tz.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8D6Tz.png" alt="enter image description here"></a></p> <p><a href="https://stackoverflow.com/questions/50641092/r-leaflet-map-change-legends-based-on-selected-layer-group">These</a> <a href="https://stackoverflow.com/questions/40770641/how-to-hide-toggle-legends-based-on-addlayercontrol-in-leaflet-for-r">questions</a> are quite similar to mine, but the accepted solutions both use <code>overlayGroups</code>, while I want to stick with <code>baseGroups</code>. I'm also hoping to avoid using shiny, if possible.</p>
0non-cybersec
Stackexchange
stdin redirection for the script that asks for the input. <p>I'm trying to get the script that asks for the input to work when stdin is redirected. It could be that this is not even possible, but I would like to understand why. Here is an example:</p> <pre><code>$ echo 'q = raw_input("question ?"); print "\ngot: ", q' | python - &lt; &lt;(echo answer) Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; NameError: name 'answer' is not defined </code></pre> <p>I know I can get it to work with this:</p> <pre><code>$ python &lt;(echo 'q = raw_input("question ?"); print "\ngot: ", q') &lt; &lt;(echo answer) question ? got: answer </code></pre> <p>but this is a process substitution. Is it possible to get it to work only with redirection?</p>
0non-cybersec
Stackexchange
Designing Helm charts for microservices based application. <p>I'm currently building an application that is composed of 4 microservices (a, b, c, d). We would like to make Kubernetes Helm part of our CI/CD pipeline. </p> <p>We are at the point where we're discussing how best to define the charts and was wondering was the advice from the community.</p> <p>Our current options appear to be:</p> <ol> <li>a chart per microservice (so 4 charts)</li> <li>a chart per "application flow" (service a calls b, service c calls d, so 2 charts in total)</li> <li>a single chart that deploys all 4 microservices</li> <li>some combination of 1. and 3. where we leverage the dependencies feature of Helm</li> </ol> <p>It might be worth calling out that:</p> <ul> <li>we currently don't have a requirement to deploy any microservice in isolation e.g. make it available to a separate application. </li> <li>it is likely that we will need to have the ability to scale any microservice independently i.e. not simply replicate all 4 services.</li> </ul> <p>I'm mentioning these requirements because I feel that they may be relevant to the chart design.</p>
0non-cybersec
Stackexchange
Stopping a Running Spark Application. <p>I'm running a Spark cluster in standalone mode.</p> <p>I've submitted a Spark application in cluster mode using options:</p> <pre><code>--deploy-mode cluster –supervise </code></pre> <p>So that the job is fault tolerant.</p> <p>Now I need to keep the cluster running but stop the application from running.</p> <p>Things I have tried:</p> <ul> <li>Stopping the cluster and restarting it. But the application resumes execution when I do that.</li> <li>Used Kill -9 of a daemon named DriverWrapper but the job resumes again after that. </li> <li>I've also removed temporary files and directories and restarted the cluster but the job resumes again.</li> </ul> <p>So the running application is really fault tolerant.</p> <p>Question: Based on the above scenario can someone suggest how I can stop the job from running or what else I can try to stop the application from running but keep the cluster running.</p> <p>Something just accrued to me, if I call <code>sparkContext.stop()</code> that should do it but that requires a bit of work in the code which is OK but can you suggest any other way without code change.</p>
0non-cybersec
Stackexchange
object literal notation vs prototype speed and memory. <p>i came across this post <a href="http://www.webmasterworld.com/javascript/3066162.htm">http://www.webmasterworld.com/javascript/3066162.htm</a> about how in javascript when you instantiate an object literal if it has methods defined in it then each time one is instantiated its methods are copied as well. so if you have a bunch of instances of the object literal then the copied methods would begin to add up in memory.</p> <p>how ever he/she states that using prototype to make your methods is more efficient because the methods are not copied for each instance of the constructor object. </p> <p>is this true? because i was under the impression that prototype allowed you to add properties/methods even after the object was instantiated rather than within the object when its first created.</p>
0non-cybersec
Stackexchange
Idris 1.0 Released.
0non-cybersec
Reddit
LPT: If you are ever in a car accident and need to break the windows but don't have anything to break it, take the headrest out and use it to smash the windows.. If you are ever in a car accident, use the headrest to break the window. Source: [/u/OmAerial on an Ask Reddit Thread](http://www.reddit.com/r/AskReddit/comments/16bktk/what_is_the_true_reallife_horror_story_youve_been/c7ulwho)
0non-cybersec
Reddit
colorbox around parbox too big. <p>I want to typset some text with colored background <em>and</em> outline, that spans the whole <code>\textwidth</code>. I tried to get this with a <code>colorbox</code> surrounding a <code>parbox</code>. It works in some way, but the <code>colorbox</code> is always a bit bigger than the <code>parbox</code>, causing the colored fill to overlap the outline a bit: <a href="https://i.stack.imgur.com/AMIgJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AMIgJ.png" alt="colored fill overlaps outline"></a></p> <p>Is there any way to fix this? I didn't find one. The corresponding code:</p> <pre><code>\newcommand{\information}[1]{\colorbox{DarkOliveGreen2}{\fboxsep4mm\framebox[\textwidth][l]{\parbox{\linewidth}{\textbf{foo: } #1}}}} </code></pre> <p>Any ideas are greatly appreciated. Thanks!</p> <p><strong>Edit:</strong> As supposed in the comments: I already tried removing or changing the <code>\fboxsep</code>-value, but it doesn't change the behavior. Just the space between the text and the border of the boxes tightens, and I want that space...</p>
0non-cybersec
Stackexchange
Imaginary roots in $\widetilde{E}_8$. <p>Consider the root system of a Kac-Moody algebra. Denote by <span class="math-container">$\alpha_i$</span> the simple root associated with node <span class="math-container">$i$</span> by for <span class="math-container">$i \in \{1, \ldots, n-1\}$</span> and by <span class="math-container">$\beta$</span> the simple root associated with <span class="math-container">$n$</span>.</p> <p>The Dynkin diagram for <span class="math-container">$\widetilde{E}_8$</span> is <span class="math-container">\begin{align} \circ - \circ - &amp; \circ - \circ - \circ - \circ - \circ - \circ \\ &amp; \ | \\ &amp; \ \bullet \end{align}</span> where <span class="math-container">$\bullet$</span> corresponds to the simple root <span class="math-container">$\beta$</span>. The degree of a root is the coefficient of the root at <span class="math-container">$\beta$</span>.</p> <p>Are there some reference of imaginary roots of type <span class="math-container">$\widetilde{E}_8$</span>? I only find one imaginary root <span class="math-container">$\gamma=3 \beta + 2 \alpha_1 + 4 \alpha_2 + 6 \alpha_3 + 5 \alpha_4 + 4 \alpha_5 + 3 \alpha_6 + 2 \alpha_7 + \alpha_8$</span>. The root <span class="math-container">$\gamma$</span> has degree <span class="math-container">$3$</span>.</p> <p>Thank you very much.</p>
0non-cybersec
Stackexchange
The front row seats of a cinema theatre are like the back row seats of a concert..
0non-cybersec
Reddit
rPi 3 w/ Rasplex + Multiple USBs Thumb Drives. Hi All, Recently was thinking about purchasing an rPi3 to use as a media server using Rasplex. I have a couple questions that I think the Reddit community could help me out with: 1.) Can Rasplex read from multiple USBs? Say if I had 2x 64Gb thumbdrives, could both of them have media on them and be found by Rasplex? 2.) If #1 is yes, then would multiple USB drives (lets say 4 for example) drain too much power from the Pi and affect performance? I would be using the Pi as a server for local networks only. I just find that it would be nice to put it in my pocket and watch movies and play music on long trips. Thanks!
0non-cybersec
Reddit
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
How to 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
Not able to send/receive emails outside my Domain from recently configured email-server. <h3> Email-server setup is not working on Ubuntu 16,postfix,dovecot. <br>below are the config/facts</h3> <ol> <li>Registered a domain say atul.com</li> <li>ISP is comcast who blocks port <strong>25</strong></li> <li>Created <code>A record @ -- 1.2.3.4</code></li> <li><strong>No</strong> CNAME except www</li> <li>MX Record <code>mail -- @</code></li> <li>all ports are open like 110, 143,993,995,465,587</li> <li>I am <strong>able</strong> to send/receive mail at local users with [email protected], [email protected], [email protected]</li> <li>I am able to <strong>telnet</strong> mail.atul.com 465 and @587</li> <li>I <strong>do not have</strong> any mail subscription/account @godaddy.com</li> <li>I allowed all necessary ports on my router</li> </ol> <hr> <h3>My Doubts/Questions:</h3> <ul> <li>Why I am not able to receive email from outside domain? (even when I am able to telnet on mail.atul.com 587)?</li> <li>Why I am not able to send mail to outside from my domain? while I tried setting my relayhost on below settings</li> </ul> <blockquote> <pre><code>relayhost = blank relayhost = * relayhost = email.secureserver.net </code></pre> </blockquote> <p>My Question on <strong>relayhost</strong> is : </p> <ul> <li>Can't I setup my <strong>independent mail server</strong>? without any intervene by comcast or godaddy? Because I don't want to use their mx records or smtp server.</li> <li>What all I need to do if I don't want to use their MX Records (smtp server)</li> <li><p>Please Guide me to place correct values for below Fields</p> <pre> A Record, CNAME, MX Record , myhostname, mydestination, relayhost </pre></li> </ul> <p>Below are the Different configuration I am using...</p> <h1>main.cf</h1> <pre><code>myhostname = mail.atul.com mydestination = atul.com, mail.atul.com localhost.localdomain, localhost relayhost = [email.secureserver.net] </code></pre> <h1>master.cf</h1> <pre><code># ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (no) (never) (100) # ========================================================================== #smtp inet n - - - - smtpd #smtp inet n - - - 1 postscreen #smtpd pass - - - - - smtpd #dnsblog unix - - - - 0 dnsblog #tlsproxy unix - - - - 0 tlsproxy submission inet n - - - - smtpd -o syslog_name=postfix/submission -o smtpd_tls_security_level=encrypt -o smtpd_sasl_auth_enable=yes -o smtpd_reject_unlisted_recipient=no -o smtpd_client_restrictions=$mua_client_restrictions -o smtpd_helo_restrictions=$mua_helo_restrictions -o smtpd_sender_restrictions=$mua_sender_restrictions -o smtpd_recipient_restrictions= -o smtpd_relay_restrictions=permit_sasl_authenticated,reject -o milter_macro_daemon_name=ORIGINATING smtps inet n - - - - smtpd -o syslog_name=postfix/smtps -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes -o smtpd_reject_unlisted_recipient=no -o smtpd_client_restrictions=$mua_client_restrictions -o smtpd_helo_restrictions=$mua_helo_restrictions -o smtpd_sender_restrictions=$mua_sender_restrictions -o smtpd_recipient_restrictions= -o smtpd_relay_restrictions=permit_sasl_authenticated,reject -o milter_macro_daemon_name=ORIGINATING </code></pre> <h1>10-master.conf</h1> <pre><code>service imap-login { inet_listener imap { #port = 0 } inet_listener imaps { port = 993 ssl = yes } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { mode = 0600 user = postfix group = postfix } } </code></pre> <p>Any Help will be <strong>highly appreciable</strong>, Thanks in Advance</p> <p><h2>More info added below</h2> <i>atul.com is not real domain I changed the name</i></p> <pre><code>nslookup &gt; set type=MX &gt; atul.com Non-authoritative answer: *** Can't find atul.com: No answer and When I do &gt; mail.atul.com Server: 75.75.75.75 Address: 75.75.75.75#53 Non-authoritative answer: mail.atul.com mail exchanger = 10 atul.com. Authoritative answers can be found from: </code></pre>
0non-cybersec
Stackexchange
Happy Perihelion! Get close to someone!.
0non-cybersec
Reddit
StrongLoop - LoopBack 4 September 2019 Milestone Update.
0non-cybersec
Reddit