text
stringlengths 3
1.74M
| label
class label 2
classes | source
stringclasses 3
values |
---|---|---|
[WP] "Sani-gel: The goo that keeps you sane when nothing else will!". | 0non-cybersec
| Reddit |
Do you guys have Mac memes here?. | 0non-cybersec
| Reddit |
install Psycopg2 on mac osx 10.9.5. <p>I'm trying to install Psycopg2 on my Mac-book. I still get the same error. I found a lot of same questions on Stack Overflow but no answer seems to work. I think it is outdated. I'm using:</p>
<pre><code>Mac osx 10.9.5
Python 3.4.3
</code></pre>
<p>My error code is:</p>
<blockquote>
<p>Running setup.py egg_info for package psycopg2 Error: pg_config
executable not found.</p>
</blockquote>
<blockquote>
<p>Please add the directory containing pg_config to the PATH or specify
the full executable path with the option:</p>
</blockquote>
<blockquote>
<p>python setup.py build_ext --pg-config /path/to/pg_config build ...</p>
</blockquote>
<blockquote>
<p>or with the pg_config option in 'setup.cfg'. Complete output from
command python setup.py egg_info: running egg_info</p>
</blockquote>
<blockquote>
<p>writing pip-egg-info/psycopg2.egg-info/PKG-INFO</p>
</blockquote>
<blockquote>
<p>writing top-level names to
pip-egg-info/psycopg2.egg-info/top_level.txt</p>
</blockquote>
<blockquote>
<p>writing dependency_links to
pip-egg-info/psycopg2.egg-info/dependency_links.txt</p>
</blockquote>
<blockquote>
<p>warning: manifest_maker: standard file '-c' not found</p>
</blockquote>
<blockquote>
<p>Error: pg_config executable not found.</p>
</blockquote>
<blockquote>
<p>Please add the directory containing pg_config to the PATH</p>
</blockquote>
<blockquote>
<p>or specify the full executable path with the option:</p>
</blockquote>
<blockquote>
<p>python setup.py build_ext --pg-config /path/to/pg_config build ...</p>
</blockquote>
<blockquote>
<p>or with the pg_config option in 'setup.cfg'.</p>
</blockquote>
<blockquote>
<hr />
<p>Command python setup.py egg_info failed with error code 1 in
/Users/sg/build/psycopg2 Storing complete log in
/Users/sg/Library/Logs/pip.log</p>
</blockquote>
| 0non-cybersec
| Stackexchange |
Set minimal JRE version to deb package dependency. <p>I want to bundle Java application into a .deb package. Inside it is a jar launched with a <code>java -jar $path/app.jar</code> script. I need to specify in the package dependencies that it will require JRE >= 11. I've tried 2 options:</p>
<ul>
<li><code>Depends: java11-runtime</code> - here the package will be uninstallable because it depends on a virtual package.</li>
<li><code>Depends: default-jre | java11-runtime</code> - now it will try to install <code>default-jre</code> which won't guarantee that it will be at least JRE 11.</li>
</ul>
| 0non-cybersec
| Stackexchange |
How to import CSV and save in database. <p>This is a snippet of the first part of my code</p>
<pre><code>package main
import (
"encoding/csv"
"fmt"
"os"
)
func main() {
file, err := os.Open("Account_balances.csv")
if err != nil {
fmt.Println("Error", err)
return
}
defer file.Close()
reader := csv.NewReader(file)
record, err := reader.ReadAll()
if err != nil {
fmt.Println("Error", err)
}
for value:= range record{ // for i:=0; i<len(record)
fmt.Println("", record[value])
}
}
</code></pre>
<p>I want to write code that saves the CSV file in any database (i.e SQL, SQLite or PostgreSQL).</p>
| 0non-cybersec
| Stackexchange |
Cannot ssh into Ubuntu guest on Virtualbox 4.0.4 on Windows 7. <p>I have an Ubuntu guest installed on Virtualbox 4.0.4 running on Windows 7 Home Premium. I have two firewall rules for Vbox which allow any, any inbound for both TCP and UDP and those rules have edge traversal enabled. I have host ports 9080 and 9022 forwarded to 80 and 22 on the guest. The Win7 box is on an Ethernet connection</p>
<p>After some testing, I have a netbook with a Wifi connection and Ubuntu netbook remix which cannot make an ssh connection to the Ubuntu guest.</p>
<p>But, the same netbook can telnet to port 9080 on the Win7 machine's address and successfully connect to a web server running on port 80 of the Ubuntu guest.</p>
<p>In order to check this out, I ran <code>initctl stop ssh</code> on the Ubuntu guest, verified thagt port 22 had no listeners, and ran ssh with <code>/usr/sbin/sshd -d -e</code>. This shows various bits of debug info from the console. Then I ran Putty on the win7 machine to connect to port 9022 on it's own IP address (that it got from DHCP) and made a successful connection to the guest Ubuntu.</p>
<p>The variable that I don't know much about is the landlord's cable router setup, but I can't figure out why that would block packets to 9022 but not packets to 9080. </p>
<p>Where would you look next?</p>
| 0non-cybersec
| Stackexchange |
The Moire Effect. | 0non-cybersec
| Reddit |
Romney Wins Big in Florida Primary. | 0non-cybersec
| Reddit |
Games that don’t need reflexes. Hi everyone. I just had surgery and I’m looking for some good games to play that don’t require my reflexes to be at their best.
For reference, some games I enjoy are Mario Maker 2, Hollow Knight, Dragonball Fighterz, but those sound way to hard right now.
The two things making this hard are: I don’t like tactics games (so no Fire Emblem or Mario + Rabbids) and I don’t know how long I can focus to follow a text-heavy story-driven experience.
Thanks for any games you can suggest I check out! | 0non-cybersec
| Reddit |
Jimmy Butler jumps, checks his email, listens to some music, blocks a shot, then lands.. | 0non-cybersec
| Reddit |
Why is $i^3$ (the complex number "$i$") equal to $-i$ instead of $i$?. <p>$$i^3=iii=\sqrt{-1}\sqrt{-1}\sqrt{-1}=\sqrt{(-1)(-1)(-1)}=\sqrt{-1}=i
$$</p>
<p>Please take a look at the equation above. What am I doing wrong to understand $i^3 = i$, not $-i$?</p>
| 0non-cybersec
| Stackexchange |
How to move focus back to the webpage in Firefox?. <p>When the focus is in some other places in Firefox, such as the address bar, what keyboard shortcut I can use to move the focus back to the webpage (so I can use shortcuts like <code>Page Down</code> to navigate the page)?</p>
| 0non-cybersec
| Stackexchange |
What does CompileThreshold, Tier2CompileThreshold, Tier3CompileThreshold and Tier4CompileThreshold control?. <p>HotSpot's <a href="http://docs.oracle.com/javase/7/docs/technotes/guides/vm/performance-enhancements-7.html#tieredcompilation" rel="noreferrer">tiered compilation</a> uses the interpreter until a threshold of invocations (for methods) or iterations (for loops) triggers a client compilation with self-profiling. The client compilation is used until another threshold of invocations or iterations triggers a server compilation.</p>
<p><a href="https://stackoverflow.com/questions/10486375/print-all-jvm-flags">Printing HotSpot's flags</a> shows the following flag values with -XX:+TieredCompilation.</p>
<pre><code>intx CompileThreshold = 10000 {pd product}
intx Tier2CompileThreshold = 0 {product}
intx Tier3CompileThreshold = 2000 {product}
intx Tier4CompileThreshold = 15000 {product}
</code></pre>
<p>There are too many flags for just a client and server compiler. What compilers are controlled by these flags? If not client and server, what is the purpose of the additional compilers?</p>
<p>Are CompileThreshold and Tier2CompileThreshold ignored in this case? What does Tier3CompileThreshold control when a client compilation is triggered? What does Tier4CompileThreshold control when a server compilation is triggered?</p>
| 0non-cybersec
| Stackexchange |
Could we feasibly build a particle accelerator to probe physics at the GUT scale?. | 0non-cybersec
| Reddit |
Mongodb secondary going down. <p>I have a problem with my secondary, which is constantly going down, in normal replica set (primary, secondary, arbiter).</p>
<p>What I saw while investigating that there is one long lasting operation in database which is connected to sync with master:</p>
<pre><code>{
"host" : "primary-ip:my-port",
"desc" : "WT RecordStoreThread: local.oplog.rs",
"threadId" : "140599714879232",
"active" : true,
"currentOpTime" : "2018-04-24T09:36:40.103+0000",
"opid" : 9222195,
"secs_running" : NumberLong(30849),
"microsecs_running" : NumberLong("30849456103"),
"op" : "none",
"ns" : "local.oplog.rs",
"command" : {
},
"numYields" : 0,
"locks" : {
},
"waitingForLock" : false,
"lockStats" : {
"Global" : {
"acquireCount" : {
"r" : NumberLong(1),
"w" : NumberLong(1)
}
},
"Database" : {
"acquireCount" : {
"w" : NumberLong(1)
}
},
"oplog" : {
"acquireCount" : {
"w" : NumberLong(1)
}
}
}
}
</code></pre>
<p>One other thing that I saw is that some of my queries didn't have indexes and there were some operations in currentOp() that were lasting around 10 sec. One more thing is strange graphs on mms monitoring interface (left is secondary, right is primary): <a href="https://i.stack.imgur.com/LUIy0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LUIy0.png" alt="enter image description here"></a></p>
<p>Mongodb version: 3.6.0-rc3<br>
Platform: Ubuntu 16.04<br>
Cloud: AWS EC2<br>
Usage: Lots of writes and updates </p>
<p>My question is what do you think is causing this behaviour? Is it possible that those queries without index are affecting this, and if they do, why are they affecting secondary instance and not primary? Should I just kill this long lasting operation?
Any kind of lead or advice is welcome.</p>
| 0non-cybersec
| Stackexchange |
The Endless Summer. | 0non-cybersec
| Reddit |
Logic of Elementary Row Operations to Create Equivalent Systems. <p>Can anyone explain why the 3rd operation applied on a system creates an equivalent system with the same solution. </p>
<p>Elementary Row Operations.</p>
<p>1.
Interchange two rows.</p>
<p>2.
Multiply a row with a nonzero number.</p>
<p><strong>3.
Add a row to another one multiplied by a number.</strong> </p>
| 0non-cybersec
| Stackexchange |
What is an obviously coordinate-independent description of the Chevellay-Eilenberg complex for a Lie algebroid?. <p>I've read in many places, including the <a href="http://ncatlab.org/nlab/show/Lie+algebroid" rel="nofollow">n-Lab page</a>, that a Lie algebroid (which I think of as in the first definition on the n-Lab page) is the same as a vector bundle $A \to X$ and a (properties?) derivation that makes $\Gamma(\wedge^\bullet A^*)$ into a cochain complex (here $A^* \to X$ is the dual vector bundle). One motivation for considering this cochain complex is that in the two extremes $A = {\rm T}X$ and $X = \{\rm pt\}$, the complex becomes respectively the deRham complex and the Chevellay-Eilenberg complex for a Lie algebra. My motivation has something to do with understanding BRST-type arguments.</p>
<p>I only partially understand this relationship. Given a trivialized vector bundle $(V\times X)\to X$ with a differential $d$ on $\mathcal C^\infty (X,\wedge^\bullet V)$, then I can define a Lie algebroid structure on $V\times X \to X$ — the Lie algebroid axioms are equivalent to $d^2 = 0$. Conversely, given a Lie algebroid $A\to X$ with $A$ trivialized as a bundle, I know how to interpret the standard formulas for the differential on $\Gamma(\wedge^\bullet A^*)$ — n-Lab, for example, reproduces the standard formula.</p>
<p>But I do not know how to interpret the formula defining the differential without trivializing the bundle, and my interpretation, as far as I can tell, depends on the trivialization (the fiber coordinates). At least, I've tried to check that my interpretation of the formula (which does get the above statements about $d^2 = 0$, etc., correct) is invariant under changing the trivialization, and I have failed. Hence:</p>
<blockquote>
<p>What is a totally invariant description of the Lie algebroid CE chain complex?</p>
</blockquote>
<p>Better: is there such a description that is simultaneously useful for explicit calculations?</p>
| 0non-cybersec
| Stackexchange |
Geolocation Accurcy When Anonymizing IP. <p>I'm setting up a new server for a website. I want to ensure that my users' privacy is well protected (at least from my side). Initially I wanted to not track IP addresses at all. However, I need some rough estimation of the user's location so that I know where in the world to place my servers to improve access speeds. The city and even region is not that important, I'm only concerned with the country.</p>
<p>Instead of not logging IPs at all, I decided to rather anonymize them. I want to anonymize as many octets of the IP as possible (increase anonymity), but still have a good pinpoint of the country (accuracy).</p>
<p>I found a few articles that discuss this, but they are only concerned with a single octet. According to those articles, about 1-5% of countries might be misclassified if one octet is anonymized.</p>
<p>Does anyone know (more or less) how this accuracy looks like when anonymizing 2 or 3 octets?</p>
| 0non-cybersec
| Stackexchange |
ITAP of a rope. | 0non-cybersec
| Reddit |
laptop shuts down due to overheating during ubuntu installation. <p>I have an HP pavilion g6 laptop and it came pre-installed with windows 8.</p>
<p>I'm trying to dual boot Ubuntu. I've disabled secure boot and tried to install both Ubuntu 12.10 and 13.04. </p>
<p>During both installations my laptop shut down and later when I started it again it warned about an overheating problem. even during the installation the laptop fan blew at a very high speed.</p>
<p>AMD A4, 4 GB RAM, 1GB ati radeon 7420G,500GB</p>
| 0non-cybersec
| Stackexchange |
[Build Ready] PSU choice. Hello /r/buildapc, first of all sorry for not following the format but it doesn't really work for me since I am only looking for a new PSU.
I'll start off by listing my current setup:
* CPU: AMD FX6100 + CM Hyper 212 Evo
* Motherboard: AsRock 970 Extreme3
* GPU: Sapphire Radeon HD7850 2GB @1200MHz
* RAM: 3x2GB of generic DDR3 RAM from an ancient pre-built.
* Case: Phanteks Enthoo Luxe
* PSU: Corsair CX500 V2
* HDD: 1TB WD Blue and 1TB WD Green
* SSD: Samsung 840 EVO 250GB
Fallout 4 is coming, and it's time for an upgrade. I'm gonna go for an entirely black/blue build. First I'll be upgrading my PSU and GPU, and in about 20 days I'll be upgrading my CPU, motherboard and RAM. I plan on getting a Gigabyte R9 390X G1 Gaming. My current PSU has always done a really good job, but it feels like it's probably a good idea not to use it with a 275W R9 390X, so I'll be looking for a 700+ watt PSU.
Since I live in the Netherlands, I cannot order from Newegg or Amazon. Here's a list of PSU's that are available under €120,- Keep in mind, the price does matter to me. I've set 120 as budget, but would really prefer to keep it under 100 euros. Also, modularity is **not** an issue at **all to** me. My case has a big PSU shroud with a lot of room. Quality is, though - I don't want to have to upgrade again any time soon. But as long as it doesn't explode on me, it's probably good enough for me. Doesn't have to be completely silent either.
* Cooler Master GM G750M - € 84,89
* Seasonic S12G 750W - €118,95
* Seasonic M12II Evo 750W - €109,90
* Antec TruePower Classic TP-750C - € 105,40
* Antec VP700P - €69,85 (seems too good to be true?)
* XFX PRO750W - €104,10
* XFX PRO850W - €115,10
* EVGA SuperNOVA 750 B1 - €93,20
* be quiet! System Power 7 700W €91,90
* be quiet! Pure Power L8 700W €85,30
* be quiet! Pure Power L8 730W CM €101,89
Which one should I go with and why? I've left out the Corsair CS/CX PSU's because a lot of people are very negative about those because of the capacitors (even though my current PSU has always done a very good job for me, and doesn't have bad reviews at all). Which of these PSUs also have "bad caps" and should be avoided?
Edit: Maybe I should have gone with "Build help", but initially I only listed 2 PSU's until I started looking at others.
Edit2: Efficiency does **not** matter to me at all, absolutely means nothing to me as I do not pay for electricity. | 0non-cybersec
| Reddit |
For years, I didn't have the confidence to wear bold lipstick. I finally sucked it up and got MAC lipstick in Lady Danger.. | 0non-cybersec
| Reddit |
Nintendo Switch is supposed To last 7 - 10 Years. | 0non-cybersec
| Reddit |
Which sector size shall I choose to run ddrescue with direct access on an Advanced Format drive?. <p>I started the imaging of an AF/512e HDD by first running a following command:</p>
<pre><code> ddrescue -n /dev/sdb2 drive_c.img mapfile.log
</code></pre>
<p>Upon its completion I made a backup of mapfile.log and decided to run the splitting phase with direct disk access using the drive's physical sector size of 4K:</p>
<pre><code> ddrescue -d -b4096 -r3 /dev/sdb2 drive_c.img mapfile.log
</code></pre>
<p>Had I chosen a 512 bytes sector-size would I have scraped more from the bad sectors?</p>
<p>As I write this, the splitting stage has finished and the bad sectors are being retried for the second time. Naturally, almost all bad blocks in the mapfile are of n×4K size. Will I be able to scrape more off of them if I run the same command but with a 512 b sector?</p>
<h3>Thoughts and Confusion</h3>
<p>First of all, I am not even sure if the use direct disk access was appropriate.</p>
<p>The info file for ddrescue calls for direct disk access switch when</p>
<blockquote>
<p>the positions and sizes in the log file are ALWAYS multiples of the
sector size</p>
</blockquote>
<p>which would mean that the</p>
<blockquote>
<p>kernel is caching the disc accesses and grouping them. </p>
</blockquote>
<p>So if my kernel had been "grouping" the requests, the smallest block in the mapfile should have been 8K or 16K. In my case, however, the mapfile contained plenty of 512 bytes blocks both unreadable and rescued after the first run had completed.</p>
<p>During the second run the majority of the 512 b blocks were merged into 4K blocks. For example, a 512 b bad sector which was adjacent to the non-split block before the splitting phase got merged together with an adjacent bad sector. This seems fine to me. Probably, at the trimming phase a head on the hard drive wasn't able to read a 4K sector so it returned a 512 b bad sector to ddrescue. The trimming ended right there, and the block following the 512 b sector was marked as a non-split.</p>
<p>What doesn't seem normal is having a 512 b bad sector like in this screenshot:
<img src="https://i.imgur.com/VK3d91m.png" alt="512 b bad sector sandwitched"></p>
<p>How come a head is able to read a 4K sector but declare only a 1/8 of it unreadable? I was under impression that a physical sector is read atomically by a head? So if a part of it is bad, the whole sector is bad.</p>
<p>This obviously raises a question -- is it possible to get data from a 4K "partially bad" sector by running ddrescue with or without direct access but with a 512 b sector size? </p>
<p>Obviously something doesn't add up.</p>
<p>BTW this is my first posted question so please excuse me if the format is not consistent with the forum or the question is too loaded. But that aside I would be grateful to get an input on any of the topics relevant to the main question i.e. Advanced Format, direct disk access, kernel caching etc. as everything I find is either too far from the case in point or clearly assumes expertise from the reader.</p>
<p>Cheers!</p>
| 0non-cybersec
| Stackexchange |
Integral involving power of logarithm. <p>I was wondering if we can compute the following integral:</p>
<p>$$ I = \int_{0}^{1}{e^{\alpha y} y^{\beta} (\ln y)^m {\rm d}y} $$</p>
<p>where $m \in \mathbb{N}$, $\alpha > 0$, $\beta>0$. </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 |
City tree - a moss culture with the environmental benefit of up to 275 actual trees that removes dust, nitrogen dioxide and ozone gases from the air. The installation is autonomous with solar panels for electricity, while rainwater is collected into a reservoir and then pumped into the soil.. | 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 |
Vista to Ubuntu. <p>I have successfully replaced windows on laptops with Ubuntu in the past. I have two older laptops running windows Vista (one home and one premium) that I am trying, and failing to boot from the USB. I have tried multiple versions of Ubuntu, two different USB's, every available boot order available and I always get the warning on both machines:- </p>
<p>No DEFAULT or UI configuration found!</p>
<p>I have read every help thread on ways to overcome this but either I am missing something or it is not applicable to my situation.</p>
<p>32 bit, 512MB Ram, 80 GB hard drive</p>
<p>Any ideas? </p>
| 0non-cybersec
| Stackexchange |
spam me shit - [email protected] <[email protected]>;. | 0non-cybersec
| Reddit |
Get windows firewall to ignore test builds. <p>I've got a continuous integration system running on my computer
which is placing the test build outputs into temporary files on the system.<br>
Unfortunately this means Windows Firewall considers each one to be a separate application and pops up a notification for every single build, which is several over the course of a test run.<br>
These builds communicate exclusively via localhost, so there is absolutely no reason to let them through the firewall. They currently use port <code>8081</code> but can be set to anything.</p>
<p>Is there a way to get Windows Firewall to simply leave every program under <code>%TEMP%</code> blocked?</p>
<p><img src="https://i.stack.imgur.com/xyIfc.png" alt="windows firewall has blocked some features of this app"></p>
| 0non-cybersec
| Stackexchange |
How can I reinstall the WinRM service on WS2012?. <p>Whatever winrm command I issue I get,</p>
<blockquote>
<p>The client cannot connect to the destination specified in the request
... Error number: -2144108526 0x80338012</p>
</blockquote>
<p>I checked all the usual suspects. The service is running. All updates have been applied.</p>
<p>I would like to uninstall the WinRM service and reinstall but I can't find WinRM listed as a "Windows Feature". Is there a way to reset/reinstall this function?</p>
<p>This is a newly installed Standard Windows 2012 server. It was upgraded from Windows 2008 RS Web Server.</p>
| 0non-cybersec
| Stackexchange |
Directions unclear, made cookie loaf. | 0non-cybersec
| Reddit |
To save paper.... | 0non-cybersec
| Reddit |
2008 R2 DC refuses to Sync w32tm with an external NTP server. <p>We've been dealing with clock inaccuracy in the office for a few months now as a result of our DC's internal clock drifting, and I finally have a few spare cycles to try to take care of the problem.</p>
<p>We're running a Server 2008 R2 domain controller (this is a physical box, not a virtual server) and it seems that no matter what I do I cannot get it to sync to an external NTP server.</p>
<p>For instance, I've tried this command to configure it to sync to a couple of external NTP servers:</p>
<blockquote>
<p>w32tm /config /manualpeerlist:"0.north-america.pool.ntp.org 1.north-america.pool.ntp.org" /syncfromflags:manual /reliable:yes /update</p>
</blockquote>
<p>But it just won't take. Here's what I get when I query the peers:</p>
<pre><code>C:\Windows\system32>w32tm /query /peers
#Peers: 1
Peer:
State: Pending
Time Remaining: 820.7812500s
Mode: 0 (reserved)
Stratum: 0 (unspecified)
PeerPoll Interval: 0 (unspecified)
HostPoll Interval: 0 (unspecified)
</code></pre>
<p>As you can see, the peers that I specified are not listed and the one "peer" (which seems to have no information) is listed as "pending".</p>
<p>Here's the status:</p>
<pre><code>C:\Windows\system32>w32tm /query /status
Leap Indicator: 0(no warning)
Stratum: 1 (primary reference - syncd by radio clock)
Precision: -6 (15.625ms per tick)
Root Delay: 0.0000000s
Root Dispersion: 10.0000000s
ReferenceId: 0x4C4F434C (source name: "LOCL")
Last Successful Sync Time: 7/20/2012 11:24:24 AM
Source: Local CMOS Clock
Poll Interval: 6 (64s)
</code></pre>
<p>I'm pulling my hair out here; what am I missing? I've tried stopping and starting the service, and I've tried registering and unregistering, but so far no luck.</p>
| 0non-cybersec
| Stackexchange |
Jquery Tablesorter not working! What's wrong with that?. <p>I'm new to Jquery and I'm trying to use Jquery Tablesorter plugin and I've tested it in a simple html file as below but it is not working. All I have seen in browser is only a plain table with no sorting, none clickable header, it doesn't look like what I seen on Jquery Tablesorter home page. I don't know what's wrong with my html. I have placed 2 jquery files in same folder with this html file. Please advise!</p>
<pre><code><html>
<head>
<script type="text/javascript" src="jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="jquery.tablesorter.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
$("#myTable").tablesorter( {sortList: [[0,0], [1,0]]} );
}
);
</script>
</head>
<body>
<table id="myTable" class="tablesorter">
<thead>
<tr>
<th>Last Name</th>
<th>First Name</th>
<th>Email</th>
<th>Due</th>
<th>Web Site</th>
</tr>
</thead>
<tbody>
<tr>
<td>Smith</td>
<td>John</td>
<td>[email protected]</td>
<td>$50.00</td>
<td>http://www.jsmith.com</td>
</tr>
<tr>
<td>Bach</td>
<td>Frank</td>
<td>[email protected]</td>
<td>$50.00</td>
<td>http://www.frank.com</td>
</tr>
<tr>
<td>Doe</td>
<td>Jason</td>
<td>[email protected]</td>
<td>$100.00</td>
<td>http://www.jdoe.com</td>
</tr>
<tr>
<td>Conway</td>
<td>Tim</td>
<td>[email protected]</td>
<td>$50.00</td>
<td>http://www.timconway.com</td>
</tr>
</tbody>
</table>
</body>
</html>
</code></pre>
| 0non-cybersec
| Stackexchange |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
[OC] New York City respiratory related emergency department visits by neighborhood. | 0non-cybersec
| Reddit |
Locus of a point.. <p>Consider the locus of a moving point P = <span class="math-container">$(x, y)$</span> in the plane which satisfies the law <span class="math-container">$2x^2 = r^2 + r^4$</span>, where <span class="math-container">$r^2 = x^2 + y^2$</span>. Then only one of the following statements is true. Which one is it? </p>
<p>(a) For every positive real number d, there is a point <span class="math-container">$(x, y)$</span> on the locus such that <span class="math-container">$r = d$</span>. </p>
<p>(b) For every value <span class="math-container">$d$</span>, <span class="math-container">$0 < d < 1$</span>, there are exactly four points on the locus, each of which is at a distance <span class="math-container">$d$</span> from the origin. </p>
<p>(c) The point P always lies in the first quadrant. </p>
<p>(d) The locus of P is an ellipse. </p>
<p>The answer is option b.</p>
<p>I could eliminate options c and d because it's not an ellipse and <span class="math-container">$(x,y)$</span> can be in any quadrant. However, I'm struggling to disprove option 'a'. How do I do that?</p>
| 0non-cybersec
| Stackexchange |
Found my car's twin brother!. | 0non-cybersec
| Reddit |
I love this. | 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 |
Those damn tree huggers.... | 0non-cybersec
| Reddit |
Gandalf!. | 0non-cybersec
| Reddit |
Classifying Python array by nearest "seed" region?. <p>I have a raster of ecological habitats which I've converted into a two-dimensional Python numpy array (example_array below). I also have an array containing "seed" regions with unique values (seed_array below) which I'd like to use to classify my habitat regions. I'd like to <strong>'grow' my seed regions 'into' my habitat regions such that habitats are assigned the ID of the nearest seed region, as measured 'through' the habitat regions.</strong> For example:</p>
<p><a href="https://i.stack.imgur.com/oFfOX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/oFfOX.png" alt="Image of arrays"></a></p>
<p>My best approach used the <code>ndimage.distance_transform_edt</code> function to create an array depicting the nearest "seed" region to each cell in the dataset, which was then substituted back into the habitat array. This doesn't work particularly well, however, as the function doesn't measure distances "through" my habitat regions, for example below where the red circle represents an incorrectly classified cell:</p>
<p><a href="https://i.stack.imgur.com/lmlQu.png" rel="noreferrer"><img src="https://i.stack.imgur.com/lmlQu.png" alt="Incorrect output using ndimage"></a></p>
<p>Below are sample arrays for my habitat and seed data, and an example of the kind of output I'm looking for. My actual datasets are much larger - over a million habitat/seed regions. Any help would be much appreciated!</p>
<pre><code>import numpy as np
import scipy.ndimage as ndimage
import matplotlib.pyplot as plt
# Sample study area array
example_array = np.array([[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1],
[0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1],
[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0],
[1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1],
[1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1],
[1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1],
[1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0],
[1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0],
[1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0],
[1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]])
# Plot example array
plt.imshow(example_array, cmap="spectral", interpolation='nearest')
seed_array = np.array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 1, 1, 1, 0, 0, 2, 2, 0, 0, 0, 0],
[0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]])
# Plot seeds
plt.imshow(seed_array, cmap="spectral", interpolation='nearest')
desired_output = np.array([[0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 4, 4, 4, 0, 0, 0, 3, 3, 3],
[0, 0, 0, 0, 4, 4, 0, 0, 0, 3, 3, 3],
[0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 3, 0],
[1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 3, 3],
[1, 1, 0, 1, 0, 0, 0, 0, 2, 2, 3, 3],
[1, 1, 1, 1, 0, 0, 2, 2, 2, 0, 0, 3],
[1, 1, 1, 1, 1, 2, 2, 2, 2, 0, 0, 0],
[1, 1, 1, 1, 0, 0, 2, 2, 2, 0, 0, 0],
[1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0],
[1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]])
# Plot desired output
plt.imshow(desired_output, cmap="spectral", interpolation='nearest')
</code></pre>
| 0non-cybersec
| Stackexchange |
President Donald J. Trump Proclaims April 2017 as National Sexual Assault Awareness and Prevention Month. | 0non-cybersec
| Reddit |
Managing/Designing actors and their state in Azure Service Fabric. <p>After some consideration I ended up seeing that Service Fabric Actors is probably the best way to start. Now, I'm wondering if I'm approaching this the right way.</p>
<p><strong>The structure</strong></p>
<p>Below, is the structure i came up with.</p>
<p><a href="https://i.stack.imgur.com/e3o6s.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e3o6s.png" alt="enter image description here"></a></p>
<p><strong>Summary</strong></p>
<p>I have a Stateless Service (DeviceCalculatorManager) which is responsible for mapping the received events to the correct Actor Service (DeviceCalculatorActor). Then, the write operations are taken care of by a different actor, the DeviceWriterActor which takes care of the write operations in either SQL Database, Queues or any other more intensive write operation.</p>
<p><strong>Questions</strong></p>
<ol>
<li><p>Assuming each actor is independent from other Actors, Is it required to perform transactions over StateManager? I don't think so because its always guaranteed 1 Actor has only 1 Thread running or am I missing something here? The Async methods don't release the lock of the Thread, is this correct?</p></li>
<li><p>I wanted to use some sort of ordered queue to store pending events to process for each stateful service. Like the DeviceCalculatorActor would receive events from DeviceCalculatorManager and store them in a queue before it begins processing it. Whats the best way to implement this? I think this is important in cases when Services want to shutdown and process the events in a later date.</p></li>
</ol>
<p><strong>Note</strong>: The DeviceCalculatorManager is a stateless service because I'm not storing any information that is relevant about the used Actors. Since Service Fabric maintains its own Actor's table for management. If you see I should approach this service differently I guess this counts as the 3rd question.</p>
<p>Thank you in advance.</p>
| 0non-cybersec
| Stackexchange |
How to disable Chrome's popup notifications?. <p>I have Chrome notifications enabled (Bell icon in the taskbar <a href="https://i.stack.imgur.com/O8Aq7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/O8Aq7.png" alt="enter image description here"></a>). It works great - especially with <a href="https://www.pushbullet.com/" rel="nofollow noreferrer">Pushbullet</a>.</p>
<p>I like the bell being white when there are pending notifications and grayed when all are read. What I hate is the popups. When a new notification arrives, a popup jumps onto the screen, blocking part of it and making me loose concentration. This is extremely <strong>intrusive</strong>!!!</p>
<p><strong>How can I stop the popups but keep the bell?</strong></p>
<p>* I have a feeling it's not related to a specific OS.</p>
| 0non-cybersec
| Stackexchange |
Can we get some sorting of recipes in the sidebar? Like Breakfast, Lunch, Dinner, Snack, Dessert? That would be nice.. | 0non-cybersec
| Reddit |
Pythagoras' Theorem showing incorrect answer. <p><img src="https://i.stack.imgur.com/Ls1E6.png" alt="Diagram 1"></p>
<p>Given the diagram above, where I calculate y to be $11.3 = \sqrt{8.2^2 + 7.8^2}$ after square rooting the answer, to 1 d.p. Z therefore should be $10.1$, given by $11.3^2 - 5^2$, then square rooted?</p>
<p>This is flagging incorrect, can someone explain why?</p>
| 0non-cybersec
| Stackexchange |
What fonts are used in this formula?. <p>I have been trying to match the following style for some work I am doing but can't see to match the various font weights very well. Does anyone know which fonts are being used?</p>
<p><img src="https://i.stack.imgur.com/BkuA2.png" alt="enter image description here"></p>
<p>In particular I can't seem to get the curly l, the 5 pointed asterisk and the right kerning between the fn and x.</p>
| 0non-cybersec
| Stackexchange |
LONDON: Dave Barry: Olympic Games should be a lot of fun — if I can find them - Dave Barry - MiamiHerald.com. | 0non-cybersec
| Reddit |
Learning Spanish on the wall of the Mexican restaurant.. | 0non-cybersec
| Reddit |
How should I log in my pytest plugin?. <p>I'm building a pytest plugin and I currently log by adding something similar to the following two lines at the top of the plugin file:</p>
<pre><code>logging.basicConfig()
log = logging.getLogger(PLUGIN_NAME)
</code></pre>
<p>However, this does not seem to take into account pytest configuration (through either command line options or ini file) such as the log file path, logger format, etc.</p>
<p>I can manually copy those into my <code>basicConfig</code> call, but I assume there's a better facility used across pytest and third party plugins for logging, is there not?</p>
<p>I found quite a bit of logging references in pytest's documentation and code, but all of it was discussing capturing <em>test logs</em>. I'm interesting in logging the <em>pytest plugin</em> itself.</p>
| 0non-cybersec
| Stackexchange |
About conjugating a $7$-cycle in a subgroup of $S_7$. <p>Following a proof in which I have a transtive group $G$ of order $168$ , which is a subgroup of $S_7$ (I am trying to characterize it, I cannot use well know facts such as it is always isomorphic to $GL(3, 2)$). The proof claims that for every operation $\rho \in G$ of order $3$ there is an operation $\sigma \in G$ of order $7$ such that $\rho^{-1}\sigma \rho = \sigma^2$.</p>
<p>I was trying to prove it but I am stucked. I know that as $\rho^{-1}a^k \rho = (\rho^{-1} a \rho)^k$ for any element $a$, then the conjugation by $\rho$ must take every $7$-Sylow subgroup (cycles of order $7$) to either itself or to another $7$-Sylow. Moreover, as conjugating $3$ times is the identity, the orbits of the conjugation by $\rho$ of $7$-Sylow subgroups are either $1$ or $3$ $7$-Sylow subgroups. I already know that there are $8$ $7$-Sylow subgroups in $G$ and therefore there are at least two $7$-Sylow subgroups whose orbit is itself (the worst case is two orbits of $3$ subgroups and then two orbits of $1$ subgroup).</p>
<p>For those two $7$-Sylow that are mapped to itself, as conjugating $3$ times is the identity, the automorphism of the elements of a $7$-Sylow subgroup induced by the conjugations must be the exponentiation to a primitive cubic root of unity in $\mathbb{Z}^*_7$, this is, it must be the exponentiation by $2$ or $4$. In the first case, the claim would be proved, but I don't know why that case will always happen.</p>
<p>Could you help me to finish my proof?</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 |
Firebase Storage downloadURL()' is deprecated: Use `StorageReference.downloadURLWithCompletion(). <p>Normally I am updating image with url to firebase storage with:</p>
<pre><code>Storage.storage().reference().child("profile_images").child(fileName).putData(uploadData, metadata: nil) {
[weak self] (metadata, err) in
guard let strongSelf = self else {
return
}
if let err = err {
print(err)
}
guard let profileImageUrl = metadata?.downloadURL()?.absoluteString else {
return
}
ProfilePhotoHandler.Instance.addPhotoUrl(withUrl: profileImageUrl)
}
</code></pre>
<p>But right now <code>Xcode 9.3</code> show warning:</p>
<pre><code>downloadURL()' is deprecated: Use `StorageReference.downloadURLWithCompletion()
</code></pre>
<p>Firebase docs still shows old way. Does anyone can help me how to handle it now?</p>
| 0non-cybersec
| Stackexchange |
add custom part to v-autocomplete dropdown. <p>I'm using vuetify's v-autocomplete component, and I'd like to add custom part to its dropdown (marked with red arrow on this screenshot: <a href="https://prnt.sc/lm3vjc" rel="noreferrer">https://prnt.sc/lm3vjc</a>)</p>
<p>This is how my component looks like, so I'd like to add that part on top of items:</p>
<pre><code><v-autocomplete @change='selectedSearchedCandidate' append-icon="search" :loading="loading" :filter="v => v" :items="items" :search-input.sync="search" v-model="select" flat hide-no-data hide-details return-object placeholder="Search candidates">
<template slot="selection" slot-scope="{ item, selected }">
{{item.firstName}} {{item.lastName}}
</template>
<template slot="item" slot-scope="{ item, tile }">
<v-list-tile-content>
<p class='fullName'>{{item.firstName}} {{item.lastName}}</p>
<p class='employer'>{{item.employer}}</p>
<p class='phoneNumber grey--text'>{{formattedPhoneNumber(item.phoneNumber)}}</p>
</v-list-tile-content>
</template>
</v-autocomplete>
</code></pre>
| 0non-cybersec
| Stackexchange |
Jimmy Kimmel on Mass Shooting in Las Vegas. | 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 |
Fiji sevens coach Ben Ryan gifted land and chief's name after Rio Olympics gold. | 0non-cybersec
| Reddit |
Despite being able to dunk like this, Derrick Williams is heading back to school during the lockout...a commendable action for someone looking at millions when the lockout ends. | 0non-cybersec
| Reddit |
Best way to manage Git branches in different environments. <p>I had a basic question regarding using a git repository in different environments. I'm more of a Sys admin than a web developer, so the teams I've worked on before just worked right in the master, which obviously isn't the right way to do it.</p>
<p>I'm setting up a dev/prod/stage environment for a small company, and the Git repo has master/stage/dev branches. Locally, I just clone the git repo, then <code>git checkout development</code>, which works fine, but I was wondering what the best way to do that in the dev/stage/prod servers would be? </p>
<p>To me, it seems like checking out the entire repository in the environments, then just <code>get checkout <environment></code> might not be the right way to do it, since the prod only needs the production branch, dev only needs development, etc.</p>
| 0non-cybersec
| Stackexchange |
Guys, what things do you love that women do to initiate physical contact?. I'm 21F, inexperienced, and I grew up in an environment with abusive/neglectful concepts of boundaries. This has caused me to be hesitant when approaching people physically. That being said, I still truly desire to have positive physical connections with people and I'd even love to be able to initiate them. I'm very willing to try new things, to learn, and to work towards building a healthy concept of touch and boundaries. Ssoooo, I'm curious as to what you guys respond well to! What are the moves a woman pulls or small things a woman does that you just love (I'm not talking about just sex either)? How and where do you like a woman touching you when initiating contact? Spill the deets and give me the tips! I want to hear it all! | 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 reduce file size produced by Microsoft Print to PDF?. <p>Before I switched to Win10, I used Adobe Acrobat 8 to print to PDF. The PDF printer included with Windows 10 (Microsoft Print to PDF) produces files that are many times larger than those produced by Acrobat.</p>
<p>For example, an old-style Word .doc that's 77kB was rendered as a 28kB .pdf by Acrobat, but Microsoft Print to PDF creates a 325kB .pdf!</p>
<p>I can't find any settings that can be changed in Microsoft Print to PDF to reduce the size of the PDFs it creates. Are there any tricks to do so?</p>
| 0non-cybersec
| Stackexchange |
Prove that a is an eigenvalue of $p(T)$ if $a=p(\lambda)$ for some eigenvalue $\lambda$ of $T$. <p>Suppose $\mathbb{F}=\mathbb{C}$, $T \in L(V)$, $p \in \mathbb{P}(\mathbb{C})$ and $a \in \mathbb{C}$.
Prove that a is an eigenvalue of $p(T)$ if $a=p(\lambda)$ for some eigenvalue $\lambda$ of $T$</p>
<p>The answer:</p>
<p>Suppose that a is an eigenvalue of $p(T)$. </p>
<p>Using the Fundamental Theorem of Algebra, we can factor $p(x) − a$
into linear factors over $\mathbb{C}$, i.e.
$p(x) − a = a_n(x − r_1)(x − r_2)...(x − r_n)$
and by the definition of eigenvalue, there is some $v ≠ 0$ such that
$(p(T) − aI)(v) = a_n(T − r_1)(T − r_2)...(T − r_n)(v) = 0$</p>
<p>Let $i$ be the first factor that kills off the image of $v$. Then $(T − r_i)(w) = 0$ for $w ≠ 0$, so $r_i$
is an eigenvalue of T. Recall that $r_i$
is a root of $p(x) − a$, so
$p(r_i) − a = 0$, $p(r_i) = a$.
Thus, $\lambda = r_i$
is the desired eigenvalue.</p>
<p>What I dont get is this:</p>
<p>1) Why are we allowed to just plug in an OPERATOR $T$ into the equation?</p>
<p>2) Also, is the equation with the operator $T$, $(T-r_1)$ MULTIPLIED by $(T-r_2)$ or COMPOSITION?</p>
<p>3) If it is composition, how can I prove that it is in fact composition?</p>
<p>4) Also, when I find $r_i$, why is it that it is a root of the original equation with z as the variable? I thought that if it comes from an equation under an operator T, then you cant use it in the equation with z?</p>
<p>thanks!!!!!!!!!!!!</p>
| 0non-cybersec
| Stackexchange |
Runtime Error 52 when running 32-bit software on 64-bit OS. <p>I have keyboard/typing software designed in 32-bit, and want to run it on 64-bit Windows 7. I am currently getting <strong><em>Runtime Error 52 - Bad File Name or Number</em></strong> whenever I try to run the software. </p>
<p>Is there a download or process that allows me to run the 32-bit software as-is?</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 |
SQL Data Recovery and Merger. <p>I had my principal database in a SQL server that was scheduled to back up at 9 AM and 3 PM. A second server contained these backups in case of failure. The main server went down yesterday at about 2 AM, and the most recent backup was at 3 PM the day before. I was able to recover from the backup on the backup server, but users began work without realizing that there were changes made between the last backup and the start of morning work that did not make it into the restored DB.</p>
<p>They're still working today, but I want to transfer the transactions made against the backup server to the original server, which I have now recovered. Is there a way to migrate the transactions made to the backup to the original server? There are lots of transactions that were made, and a mass insertion doesn't work because there are modifications, insertions, deletions, etc.</p>
| 0non-cybersec
| Stackexchange |
Disable (or switch off) a network interface on windows but keep the "plug and play". <p>I'm looking for a good workaround to do this on Windows 7 and Windows XP:</p>
<ul>
<li>Disable or make ineffective the network interface (ETH, WIFI, any NIC).</li>
<li>If the user connect his ETH cable, the network interface enable again.</li>
</ul>
<p>Important Notes to take care:</p>
<ul>
<li>I'm working with <strong>wmic</strong> on <strong>Win7</strong> (through the command line)</li>
<li>I'm working with <strong>devcon</strong> on <strong>WinXP</strong> (through the command line)</li>
<li>I'm specifically working with the .NET Framework 2.0 on C# but this is just for informational purposes.</li>
<li>I know that an <strong>event</strong> won't help me to detect it (if there is a way or workaround to do this I don't know it). </li>
</ul>
<p><strong><em>The real problem is that when I disable the NIC, I can't know if the user connects his cable or has a wired network. This is why I am looking for a workaround.</em></strong></p>
<p>I'll treat suggestions as answers if no direct answer exists. I'll provide any extra detail necessary.</p>
| 0non-cybersec
| Stackexchange |
disable mod_proxy for subdirectory (apache). <p>I have apache with one folder used for reverse proxy:</p>
<pre><code><VirtualHost *:80>
...
ProxyPass /site http://server.local:8989/site
ProxyPassReverse /site http://server.local:8989/site
</VirtualHost *:80>
</code></pre>
<p>How can I disable proxy for url's /site/IMAGES/* ?</p>
| 0non-cybersec
| Stackexchange |
Sleep tight.. | 0non-cybersec
| Reddit |
Maximum Principle fails when u∉C²(Ω)? Can't find example.. <p>I would like an example where the maximum principle fails in a bounded smooth domain $\Omega$ where one has a solution which is not $C^2(\Omega)$ to $Lu=0$ where $L$ is elliptic and linear. This obviously must rely on the coefficients being discontiuous for the elliptic operator since otherwise one can do interior regularity estimates. All of the examples I have tried to come up with turn out to not actually be weak solutions so I'm stuck on this. Perhaps maximum principles extend to the non-smooth setting? Any insight on this would be appreciated.</p>
| 0non-cybersec
| Stackexchange |
Programmatically scroll to a specific position in an Android ListView. <p>How can I programmatically scroll to a specific position in a <code>ListView</code>?</p>
<p>For example, I have a <code>String[] {A,B,C,D....}</code>, and I need to set the top visible item of the <code>ListView</code> to the index 21 of my <code>String[]</code>.</p>
| 0non-cybersec
| Stackexchange |
Jungle Guardian, Kilian Eng, Digital, 911x 1276. | 0non-cybersec
| Reddit |
How would I split left and right audio in Windows and handle as independent channels?. <p>I want to handle the left and right stereo channels as if they are totally separate and independent paths. For example, most Bluetooth speakers have speakers for both channels in one cabinet, and the output is through one Bluetooth connection. </p>
<p>I want to be able to have two independent, single-channel speakers, each with a separate Bluetooth connection, each handling one of the stereo channels, and direct the left channel to one and the right channel to the other. </p>
<p>Is there a way to do this in Windows?</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 |
Disk management report wrong drive size. <p>Hello Any insight with this would be appreciate. </p>
<p>About a year ago I replaced the 2 hard drives for my win7 os. Both were 1tb -
first drive is the boot drive and the second was just for data - the boot drive
was having some sort of I/O issues so, I replaced both drive. I replaced the
boot drive with a 1tb drive û and since the second drive was just a ôdataö drive
- I replaced the 1tb drive with a 3tb drive</p>
<p>after the new hardware installed, I started up the computer -- I was able to
clone the boot drive and win7 started up fine.</p>
<p>So now I wanted to format the second drive, but windows was telling me the the
size of the second disk was just 768gb - I then reboot, when to the BIOS and
that reported the drive as 3TB.</p>
<p>I then took out the 3tb drive and formatted on another win7 machine û creating a
GPT and it formatted the full 3tb </p>
<p>I then put that drive back in the first computer and window now sees a 3tb drive, tools like testdisk and reflect still see the size as 768gb, but will use the formatted size of drive, 3TB</p>
<p>It seems to be working OK -- I was able to write files to it and last time I
checked I was using more that 50% of the drive -- past the 768gb "hardware" size</p>
<p>What do I need to do to have win7 find the correct size of the drive? Thanks</p>
| 0non-cybersec
| Stackexchange |
Problem extending native (es6) classes in Safari. <p>I'm having trouble extending the native <code>WebSocket</code> class using es6 classes.</p>
<p>The following piece of code works on Chrome and Firefox, but not on Safari:</p>
<pre><code>class MyWebSocket extends WebSocket {
doSomething() {
console.log('hi');
}
}
let ws = new MyWebSocket('wss://127.0.0.1:4000');
ws.doSomething();
</code></pre>
<blockquote>
<p>TypeError: ws.doSomething is not a function. (In 'ws.doSomething()', 'ws.doSomething' is undefined)</p>
</blockquote>
<p><code>console.log('MyWebSocket.prototype')</code> lets me see that the function was added to the prototype.
This happens with a few other builtin classes, <code>Animation</code> being one, but not with others, like <code>Date</code> for example.</p>
<p>Has anyone run into this? Is this a bug in Safari? Any advice is appreciated!</p>
| 0non-cybersec
| Stackexchange |
[USA][OC] Driving down a pedestrian path (again). | 0non-cybersec
| Reddit |
Knowing when a key becomes compromised. <p>I am trying to determine best practices for identifying a compromised key. I have had very little luck finding any material on this however was hoping there was some kind of service which would notify when a key has been found on the web.</p>
<p>For instance, I have an RSA key. It is posted online somewhere, somehow, but I do not know this and continue to use the key. I'd like to be notified asap that something has been spotted so that the public key can be removed from known areas.</p>
<p>What's the best thing to do?</p>
| 0non-cybersec
| Stackexchange |
Cooking with Scott week 8: We go now up from the American South to the American Midwest, with baked beans, barbecued chicken, and a winter squash casserole.. | 0non-cybersec
| Reddit |
Time-lapse of a stop-motion recording. | 0non-cybersec
| Reddit |
Projective but not free (exercise from Adkins - Weintraub). <p>This is exercise 38 from Chapter 3 (Modules and Vector Spaces) in <em>Algebra</em> by Adkins and Weintraub (GTM). How do you solve this problem? </p>
<p>Let
\begin{equation*}
R = \lbrace f : [0, 1] \to \Re : f \;\text{ is continuous and} \; f (0) = f (1) \rbrace
\end{equation*}
and let
\begin{equation*}
M = \lbrace f : [0, 1]\to \Re : f \;\text{is continuous and} \; f (0) = - f (1) \rbrace.
\end{equation*}
Then $R$ is a ring under addition and multiplication of functions, and $M$ is an $R$-module. Show that $M$ is a projective $R$-module that is not free. </p>
| 0non-cybersec
| Stackexchange |
Using multiple versions of the same DLL. <p>I've been tasked in creating a new module for an application, and so, I'm adding new DLLs to the project. This is all fine and well.</p>
<p>However, in my DLLs I'd like to use a new version of an external DLL (over which I have no control). If I just reference the new DLL and work with that one only, my code will work, but the old code will stop functioning.</p>
<pre><code>Could not load file or assembly 'itextsharp, Version=5.0.6.0, Culture=neutral,
PublicKeyToken=8354ae6d2174ddca' or one of its dependencies. The located assembly's
manifest definition does not match the assembly reference. (Exception from HRESULT:
0x80131040)
</code></pre>
<p>I've tried a simple trick of changing the DLLs name, but that apparently was a bit too naive of me, to think it would work. I've tried using the external aliases (by defining them in my references), but I still don't know how to get two files with the same name into one BIN folder...</p>
<p>What should I do?</p>
| 0non-cybersec
| Stackexchange |
MIT's artificial leaf 10x more efficient than the real thing.. | 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 |
Evaluating: $ \lim\limits_{x\to 1^{-}}\left[\ln\left(1-x \over 1 + x\right) - \ln\left(1 - x^{2}\right)\right] $. <p>I would like to evaluate the following limit:</p>
<p>$$
\lim_{x\to 1^{-}}\left[%
\ln\left(1-x \over 1 + x\right) - \ln\left(1 - x^{2}\right)\right]
$$</p>
<p>I put this into a limit calculator and the calculator gave as answer $-\log\left(4\right)$. Why ?.</p>
<p>Should the answer not be?:
$$
\lim_{x \to 1^{-}}\ln\left(1 - x \over 1+x\right)
-\lim_{x \to 1^{-}}\ln\left(1 - x^{2}\right)
=-\infty - \left(-\infty\right) = -\infty + \infty$$</p>
<p>My second, and to me more important question, what is the value of $$-\infty + \infty$$</p>
<p>Thanks for your help.</p>
| 0non-cybersec
| Stackexchange |
Netflix needs to have half-stars for its reviews, because 90% of the movies out there are 2.5 stars -- between "Liked it" and "Didn't like it," roughly "meh". | 0non-cybersec
| Reddit |
How to convert a CD into MP3 files with just Windows XP & Windows Media Player 9?. <p>How can I convert a CD into MP3 files with Windows XP and Windows Media Player 9?</p>
<p>At first sight it seems it can only save WMA files.</p>
| 0non-cybersec
| Stackexchange |
Quick video on mastering RGB curves for toning!. | 0non-cybersec
| Reddit |
adding pgadmin3 to windows start menu. <p>I have installed postgres (different versions actually) as well as pgadmin3 on windows using the package manager:</p>
<p><a href="https://www.openscg.com/bigsql/package-manager/" rel="nofollow noreferrer">https://www.openscg.com/bigsql/package-manager/</a>
<a href="https://www.openscg.com/bigsql/docs/pgcli/pgcli/" rel="nofollow noreferrer">https://www.openscg.com/bigsql/docs/pgcli/pgcli/</a></p>
<p>I also added the bin directories into the path environment on windows. Is there any way I can install program shortcuts to the start menu in windows?</p>
| 0non-cybersec
| Stackexchange |
Found this great ad. I don't think putting a keyboard underwater makes your computer slow.. | 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 |
Hide Randomness in Ciphertext. <p><strong>Ciphertext</strong> has the property to appear <strong>random</strong>. As a matter of fact, randomness is the first test, an encryption algorithm must pass. However, there are various setups, which monitor the incoming/ outgoing traffic and can easily identify <strong>Random Bits (ciphetext)</strong>. Is there any technique/ research paper in literature which can disguise the randomness of ciphertext, making it less susceptible to identification? In other words, can a system be designed to introduced undetectable form of encryption?</p>
<p><strong>Note</strong>:- I am fully aware of <strong>steganography</strong>, but I want to explore the chances of hiding randomness in the domain of Encryption. </p>
| 0non-cybersec
| Stackexchange |
Format certain floating dataframe columns into percentage in pandas. <p>I am trying to write a paper in IPython notebook, but encountered some issues with display format. Say I have following dataframe <code>df</code>, is there any way to format <code>var1</code> and <code>var2</code> into 2 digit decimals and <code>var3</code> into percentages.</p>
<pre><code> var1 var2 var3
id
0 1.458315 1.500092 -0.005709
1 1.576704 1.608445 -0.005122
2 1.629253 1.652577 -0.004754
3 1.669331 1.685456 -0.003525
4 1.705139 1.712096 -0.003134
5 1.740447 1.741961 -0.001223
6 1.775980 1.770801 -0.001723
7 1.812037 1.799327 -0.002013
8 1.853130 1.822982 -0.001396
9 1.943985 1.868401 0.005732
</code></pre>
<p>The numbers inside are not multiplied by 100, e.g. -0.0057=-0.57%.</p>
| 0non-cybersec
| Stackexchange |
Driver for new Canon ink-tank printers?. <p>I would be tempted by the potential economy of the new Canon ink-tank printers, particularly the Pixma G5050.
But as far as I can see, there are no Linux drivers available on any of the usual Canon sites (Europe, USA, Asia...).</p>
<p>I can't find any reference to it on any of the CUPS sites I have tried...</p>
<p>Does that mean no way to use these printers with Ubuntu?</p>
<p>Thanks for any confirmation (or preferably for a solution!).</p>
| 0non-cybersec
| Stackexchange |
Bernoulli trials - proving that a sequence will occur infinitely many times. <p>Let's consider the infinite numbers of Bernoulli trials.<br>
The probability of the success ($S$ - success, $F$ - failure) is equal to $p$.<br>
I am to prove that the possibility of getting the infinite amount of the following occurrence - $SSSFFF$ is equal to $1$.</p>
<hr>
<p><strong>My attempt:</strong><br>
<strong>1)</strong>
I tried to solve the problem by redefining the success. Now for me it would be not $S$ but the sequence $SSSFFF$. The probability of such sequence would be equal to $p^3(1-p)^3 > 0$.<br>
$E[X = \text{success at k-th trial}] = \frac{1}{p^3(1-p^3)}$ so I would need $E[X]$ trials to get my "new" success. Of course after infinite numbers of them I would get infinite numbers of successes.<br>
<strong>2)</strong>
$P(\text{getting at least one redefined success in n trials}) = 1 - P(\text{only F in n trials}) = 1 - (1 - p^3(1-p^3))^n \rightarrow 1$.<br>
Thus because of the "no memory rule" we will get infinite numbers of "new" successes.<br>
Are my solutions correct? If no, why?</p>
| 0non-cybersec
| Stackexchange |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.