text
stringlengths
3
1.74M
label
class label
2 classes
source
stringclasses
3 values
Is it possible to lead a life in international waters?. In my drunken reverie in the afternoon, I came up with an idea about living in international waters, on a fully self-sufficient boat. I know it is legal and free for anyone to travel in the oceans, as long as one doesn't enter some country's territorial waters. I thought of a boat ( a submersible actually), with large, fold-able solar panels. I could use the electricity generated to power a motor, to keep the boat mobile. Also, while not moving, I could use the electricity generated for the electrolysis of water, that generates hydrogen, which could be used for, say, heating/cooking purposes. The seas would have edible fish. The best idea I could come up with for drinking water, is to collect and hoard it when it rains, which I am sure is not a rare occurrence in oceans. EDIT: I could make a stop on some remote uninhabited island, just in case my longing for terra firma gets unbearable. What do you think about it? Is it possible (theoretically? practically??)
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
Where we use assumption that resolution is locally free (Hartshorne III.6.5). <p>Where we use assumption that resolution of $\mathcal{G}$ must be locally free of finite rank? It seems natural to me, that $h^0(\mathcal{Hom(L.,G))}$ must be equal to $\mathcal{Hom(F,G)}$ without that assumption (thats because $\mathcal{Hom(?,G)}$ is left exact contravariant functor), and $\mathcal{Hom(?,I)}$ must be exact whenever $\mathcal{I}$ is injective object without that assumption too (thats just another definition of injective object). I am confused, hope for your help!</p> <p><a href="https://i.stack.imgur.com/rrHeQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rrHeQ.png" alt="Hartshorne page screen"></a></p>
0non-cybersec
Stackexchange
When a ping is lost, what happens?. <p>Suppose that the message you are sending does not reach the destination, such as a ping. Is the content of that message protected? How is a retransmission accomplished?</p>
0non-cybersec
Stackexchange
How to plot python pyviz network nodes. <p>I am using python pyvis package for nodes visualization. Is it pyvis tree can only render on separate html? can't we plot using matplotlib package? </p> <pre><code>from pyvis.network import Network import pandas as pd got_net = Network(height="750px", width="100%", bgcolor="#222222", font_color="white") # set the physics layout of the network got_net.barnes_hut() got_data = pd.read_csv("https://www.macalester.edu/~abeverid/data/stormofswords.csv") sources = got_data['Source'] targets = got_data['Target'] weights = got_data['Weight'] edge_data = zip(sources, targets, weights) for e in edge_data: src = e[0] dst = e[1] w = e[2] got_net.add_node(src, src, title=src) got_net.add_node(dst, dst, title=dst) got_net.add_edge(src, dst, value=w) neighbor_map = got_net.get_adj_list() # add neighbor data to node hover data for node in got_net.nodes: node["title"] += " Neighbors:&lt;br&gt;" + "&lt;br&gt;".join(neighbor_map[node["id"]]) node["value"] = len(neighbor_map[node["id"]]) got_net.show("gameofthrones.html") </code></pre> <p>In the above code, nodes are rendering in separate html on new browser tab, I want to plot them instead of HTML something like </p> <pre><code>plt.plot(got_net) </code></pre> <p>I appreciate if anyone can help to understand this package.</p>
0non-cybersec
Stackexchange
Venus, Jupiter and Earth as seen from Mars..
0non-cybersec
Reddit
TIL the you can take a mp3 and 3D print it to a record and have it play on a turntable. .
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
I made an "Unturned" Rocket Server with some plugins and permissions, but I always get this.. Im sitting here since 3 hours and Im tired of this. Please help me what I did wrong. &#x200B; So Im trying to setup perms for my server and I get this when I run the server: Rocket.CoreException in Rocket.Core: System.Exception: Failed to deserialize XMLFileAsset: Permissions.config.xml ---> System.Xml.XmlException: 'Element' is an invalid node type. Line 10, position 8. at System.Xml.XmlReader.ReadElementString () \[0x00000\] in <filename unknown>:0 at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadPrimitiveValue (System.Xml.Serialization.XmlTypeMapElementInfo elem) \[0x00000\] in <filename unknown>:0 at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObjectElement (System.Xml.Serialization.XmlTypeMapElementInfo elem) \[0x00000\] in <filename unknown>:0 at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadMembers (System.Xml.Serialization.ClassMap map, System.Object ob, Boolean isValueList, Boolean readByOrder) \[0x00000\] in <filename unknown>:0 at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstanceMembers (System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob) \[0x00000\] in <filename unknown>:0 at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstance (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) \[0x00000\] in <filename unknown>:0 at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) \[0x00000\] in <filename unknown>:0 at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObjectElement (System.Xml.Serialization.XmlTypeMapElementInfo elem) \[0x00000\] in <filename unknown>:0 at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadListElement (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, System.Object list, Boolean canCreateInstance) \[0x00000\] in <filename unknown>:0 at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadMembers (System.Xml.Serialization.ClassMap map, System.Object ob, Boolean isValueList, Boolean readByOrder) \[0x00000\] in <filename unknown>:0 at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstanceMembers (System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob) \[0x00000\] in <filename unknown>:0 at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstance (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) \[0x00000\] in <filename unknown>:0 at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType) \[0x00000\] in <filename unknown>:0 at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot (System.Xml.Serialization.XmlTypeMapping rootMap) \[0x00000\] in <filename unknown>:0 at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot () \[0x00000\] in <filename unknown>:0 at System.Xml.Serialization.XmlSerializer.Deserialize (System.Xml.Serialization.XmlSerializationReader reader) \[0x00000\] in <filename unknown>:0 \--- End of inner exception stack trace --- at Rocket.Core.Assets.XMLFileAsset\`1\[Rocket.API.Serialisation.RocketPermissions\].Load (Rocket.API.AssetLoaded\`1 callback) \[0x00000\] in <filename unknown>:0 at Rocket.Core.Assets.XMLFileAsset\`1\[Rocket.API.Serialisation.RocketPermissions\]..ctor (System.String file, System.Type\[\] extraTypes, Rocket.API.Serialisation.RocketPermissions defaultInstance) \[0x00000\] in <filename unknown>:0 at Rocket.Core.Permissions.RocketPermissionsManager.Start () \[0x00000\] in <filename unknown>:0 &#x200B; The Permissions.config file: <?xml version="1.0" encoding="utf-8"?> <RocketPermissions xmlns:xsi="\[http://www.w3.org/2001/XMLSchema-instance\](http://www.w3.org/2001/XMLSchema-instance)" xmlns:xsd="\[http://www.w3.org/2001/XMLSchema\](http://www.w3.org/2001/XMLSchema)"> <DefaultGroup>default</DefaultGroup> <Groups> <Group> <Id>default</Id> <DisplayName>Jobless</DisplayName> <Prefix></Prefix> <Suffix>\[Member\]/> <Color>#800080</Color> <Members /> <Priority>100</Priority> <Permissions> <Permission Cooldown="0">p</Permission> <Permission Cooldown="0">compass</Permission> <Permission Cooldown="0">rocket</Permission> <Permission Cooldown="0">jobs</Permission> <Permission Cooldown="0">joinjob</Permission> <Permission Cooldown="0">leavejob</Permission> </Permissions> </Group> <Group> <Id>vip</Id> <DisplayName>VIP</DisplayName> <Prefix>\[VIP\]/> <Suffix>\[Member\]/> <Color>#FF9900</Color> <Members> </Members> <ParentGroup>default</ParentGroup> <Priority>100</Priority> <Permissions> <Permission Cooldown="0">p</Permission> <Permission Cooldown="0">compass</Permission> <Permission Cooldown="0">rocket</Permission> <Permission Cooldown="0">jobs</Permission> <Permission Cooldown="0">joinjob</Permission> <Permission Cooldown="0">leavejob</Permission> <Permission Cooldown="0">effect</Permission> <Permission Cooldown="120">heal</Permission> <Permission Cooldown="30">v</Permission> </Permissions> </Group> <Group> <Id>Taxi</Id> <DisplayName>Taxi Driver</DisplayName> <Prefix>\[Taxi\]</prefix> <Suffix>\[Member\]/> <Color>#FFFF00</Color> <Members> </Members> <ParentGroup>default</ParentGroup> <Priority>100</Priority> <Permissions> <Permission Cooldown="0">p</Permission> <Permission Cooldown="0">compass</Permission> <Permission Cooldown="0">rocket</Permission> <Permission Cooldown="0">jobs</Permission> <Permission Cooldown="120">joinjob</Permission> <Permission Cooldown="30">leavejob</Permission> </Permissions> </Group> <Group> <Id>Cook</Id> <DisplayName>Cook</DisplayName> <Prefix>\[Cook\]</prefix> <Suffix>\[Member\]/> <Color>#FFFFFF</Color> <Members> </Members> <ParentGroup>default</ParentGroup> <Priority>100</Priority> <Permissions> <Permission Cooldown="0">p</Permission> <Permission Cooldown="0">compass</Permission> <Permission Cooldown="0">rocket</Permission> <Permission Cooldown="0">jobs</Permission> <Permission Cooldown="120">joinjob</Permission> <Permission Cooldown="30">leavejob</Permission> </Permissions> </Group> <Group> <Id>Trader</Id> <DisplayName>Trader</DisplayName> <Prefix>\[Trader\]</prefix> <Suffix>\[Member\]/> <Color>#808080</Color> <Members> </Members> <ParentGroup>default</ParentGroup> <Priority>100</Priority> <Permissions> <Permission Cooldown="0">p</Permission> <Permission Cooldown="0">compass</Permission> <Permission Cooldown="0">rocket</Permission> <Permission Cooldown="0">jobs</Permission> <Permission Cooldown="120">joinjob</Permission> <Permission Cooldown="30">leavejob</Permission> </Permissions> </Group> <Group> <Id>Farmer</Id> <DisplayName>Farmer</DisplayName> <Prefix>\[Farmer\]</prefix> <Suffix>\[Member\]/> <Color>#008000</Color> <Members> </Members> <ParentGroup>default</ParentGroup> <Priority>100</Priority> <Permissions> <Permission Cooldown="0">p</Permission> <Permission Cooldown="0">compass</Permission> <Permission Cooldown="0">rocket</Permission> <Permission Cooldown="0">jobs</Permission> <Permission Cooldown="120">joinjob</Permission> <Permission Cooldown="30">leavejob</Permission> </Permissions> </Group> <Group> <Id>Military</Id> <DisplayName>Military</DisplayName> <Prefix>\[Military\]</prefix> <Suffix>\[Member\]/> <Color>#00FFFF</Color> <Members> </Members> <ParentGroup>default</ParentGroup> <Priority>100</Priority> <Permissions> <Permission Cooldown="0">p</Permission> <Permission Cooldown="0">compass</Permission> <Permission Cooldown="0">rocket</Permission> <Permission Cooldown="0">jobs</Permission> <Permission Cooldown="120">joinjob</Permission> <Permission Cooldown="30">leavejob</Permission> </Permissions> </Group> <Group> <Id>Military Leader</Id> <DisplayName>Military Leader</DisplayName> <Prefix>\[Military\]</prefix> <Suffix>\[Leader\]</Suffix> <Color>#00FFFF</Color> <Members> </Members> <ParentGroup>default</ParentGroup> <Priority>100</Priority> <Permissions> <Permission Cooldown="0">p</Permission> <Permission Cooldown="0">compass</Permission> <Permission Cooldown="0">rocket</Permission> <Permission Cooldown="0">jobs</Permission> <Permission Cooldown="120">joinjob</Permission> <Permission Cooldown="30">leavejob</Permission> <Permission Cooldown="30">acceptjob</Permission> </Permissions> </Group> <Group> <Id>Police</Id> <DisplayName>Police</DisplayName> <Prefix>\[Police\]</prefix> <Suffix>\[Member\]/> <Color>#0000FF</Color> <Members> </Members> <ParentGroup>default</ParentGroup> <Priority>100</Priority> <Permissions> <Permission Cooldown="0">p</Permission> <Permission Cooldown="0">compass</Permission> <Permission Cooldown="0">rocket</Permission> <Permission Cooldown="0">jobs</Permission> <Permission Cooldown="120">joinjob</Permission> <Permission Cooldown="30">leavejob</Permission> </Permissions> </Group> <Group> <Id>Police Leader</Id> <DisplayName>Police Leader</DisplayName> <Prefix>\[Police\]</prefix> <Suffix>\[Leader\]</Suffix> <Color>#0000FF</Color> <Members> </Members> <ParentGroup>default</ParentGroup> <Priority>100</Priority> <Permissions> <Permission Cooldown="0">p</Permission> <Permission Cooldown="0">compass</Permission> <Permission Cooldown="0">rocket</Permission> <Permission Cooldown="0">jobs</Permission> <Permission Cooldown="120">joinjob</Permission> <Permission Cooldown="30">leavejob</Permission> <Permission Cooldown="30">acceptjob</Permission> </Permissions> </Group> <Group> <Id>Spec Ops</Id> <DisplayName>Spec Ops</DisplayName> <Prefix>\[Spec Ops\]</prefix> <Suffix>\[Member\]/> <Color>#000000</Color> <Members> </Members> <ParentGroup>default</ParentGroup> <Priority>100</Priority> <Permissions> <Permission Cooldown="0">p</Permission> <Permission Cooldown="0">compass</Permission> <Permission Cooldown="0">rocket</Permission> <Permission Cooldown="0">jobs</Permission> <Permission Cooldown="120">joinjob</Permission> <Permission Cooldown="30">leavejob</Permission> </Permissions> </Group> <Group> <Id>Spec Ops Leader</Id> <DisplayName>Spec Ops Leader</DisplayName> <Prefix>\[Spec Ops\]</prefix> <Suffix>\[Leader\]</Suffix> <Color>#000000</Color> <Members> </Members> <ParentGroup>default</ParentGroup> <Priority>100</Priority> <Permissions> <Permission Cooldown="0">p</Permission> <Permission Cooldown="0">compass</Permission> <Permission Cooldown="0">rocket</Permission> <Permission Cooldown="0">jobs</Permission> <Permission Cooldown="120">joinjob</Permission> <Permission Cooldown="30">leavejob</Permission> <Permission Cooldown="30">acceptjob</Permission> </Permissions> </Group> <Group> <Id>Guns</Id> <DisplayName>Gun Seller</DisplayName> <Prefix>\[Gun Seller\]</prefix> <Suffix>\[Member\]/> <Color>#FFA500</Color> <Members> </Members> <ParentGroup>default</ParentGroup> <Priority>100</Priority> <Permissions> <Permission Cooldown="0">p</Permission> <Permission Cooldown="0">compass</Permission> <Permission Cooldown="0">rocket</Permission> <Permission Cooldown="0">jobs</Permission> <Permission Cooldown="120">joinjob</Permission> <Permission Cooldown="30">leavejob</Permission> </Permissions> </Group> <Group> <Id>Guns Leader</Id> <DisplayName>Gun Seller Leader</DisplayName> <Prefix>\[Gun Seller\]</prefix> <Suffix>\[Leader\]</Suffix> <Color>#FFA500</Color> <Members> </Members> <ParentGroup>default</ParentGroup> <Priority>100</Priority> <Permissions> <Permission Cooldown="0">p</Permission> <Permission Cooldown="0">compass</Permission> <Permission Cooldown="0">rocket</Permission> <Permission Cooldown="0">jobs</Permission> <Permission Cooldown="120">joinjob</Permission> <Permission Cooldown="30">leavejob</Permission> <Permission Cooldown="30">acceptjob</Permission> </Permissions> </Group> <Group> <Id>Bandit</Id> <DisplayName>Bandit</DisplayName> <Prefix>\[Bandit\]</prefix> <Suffix>\[Member\]/> <Color>#FF0000</Color> <Members> </Members> <ParentGroup>default</ParentGroup> <Priority>100</Priority> <Permissions> <Permission Cooldown="0">p</Permission> <Permission Cooldown="0">compass</Permission> <Permission Cooldown="0">rocket</Permission> <Permission Cooldown="0">jobs</Permission> <Permission Cooldown="120">joinjob</Permission> <Permission Cooldown="30">leavejob</Permission> </Permissions> </Group> <Group> <Id>Bandit Leader</Id> <DisplayName>Bandit Leader</DisplayName> <Prefix>\[Bandit\]</prefix> <Suffix>\[Leader\]</Suffix> <Color>#FF0000</Color> <Members> </Members> <ParentGroup>default</ParentGroup> <Priority>100</Priority> <Permissions> <Permission Cooldown="0">p</Permission> <Permission Cooldown="0">compass</Permission> <Permission Cooldown="0">rocket</Permission> <Permission Cooldown="0">jobs</Permission> <Permission Cooldown="120">joinjob</Permission> <Permission Cooldown="30">leavejob</Permission> <Permission Cooldown="30">acceptjob</Permission> </Permissions> </Group> </Groups> </RocketPermissions>
0non-cybersec
Reddit
Zero divisors in modules?. <p>Let $R$ be a ring. I find myself considering $M=R^n$, as an $R$-module. If $a$ is not a zero divisor in $R$, it holds that</p> <p>$\forall x \in M: ax=0 \Rightarrow a=0 \vee x=0$ .</p> <p>For what kinds of modules in general is this the case?</p>
0non-cybersec
Stackexchange
ELI5: Why do my mole-hairs grow black when I'm blond?.
0non-cybersec
Reddit
How to recover data from a Windows 2003 Server HP StorageWorks Ultrium 448 Backup via Linux?. <p>I have a scenario where I have to recover a backup from an Ultirum 448 tape medium that was made on Windows 2003 server. The only system that I have available for recovery is a Linux server with comparable hardware.</p> <p>Is there a way to use tape accessibility software available on Linux to recover tape data in such a scenario?</p>
0non-cybersec
Stackexchange
Any questions? No?.
0non-cybersec
Reddit
Why did the babylonians approximated the square root of two the way they did?. <p>I was researching about the Newton-Raphson method and came across <a href="http://www.sosmath.com/calculus/diff/der07/der07.html" rel="nofollow noreferrer">http://www.sosmath.com/calculus/diff/der07/der07.html</a>. On the third line of the page near the end of the line it told us to consider $2/x_1$:</p> <blockquote> <p>Consequently $3/2&gt;\sqrt{2}$. If we now consider $2/x_1=4/3$, its square $16/9$ is of course smaller than $2$, so $2/x_1&lt;\sqrt{2}$.</p> </blockquote> <p>Why is that? Why did they divide $2$ by $x_1$ and not divide $1$ by $x_1$?</p>
0non-cybersec
Stackexchange
Bugging out over this girl. So I've been hanging out with this chick for the past couple of months.. we have become best of friends. I'm totally into her and I can tell she has a thing for me. Recently at a party we both got really drunk and finally kissed. Things got a little out of hand between us (a bunch of wrestling and such) and i feel that i was being to agressive trying to kiss her too much and it may have turned her off. She usually calls or texts me first but nothing since that night. When I text her I'm getting one sentence responses. Shes still including exclamation points (not sure if that means anythng). Anyway i'm sure she knows I like her now and I feel that this has lowered her level of interest. Any suggestions of what I should do? I'm just getting these crazy weird/bad vibes about the whole thing. Any advice would be greatly appreciated. Thanks!
0non-cybersec
Reddit
Do you correct people on minor technical details?. Just thoughts on this? Do you correct project managers or other non-technical peers on minor technical details? I thought I was being helpful but I wonder if I'm being an a*hole.
1cybersec
Reddit
Thunar File Manager left side pane (tree view) configuration. <p>I don't know if it's possible but why when I select a folder in Thunar on left side pane (tree view) and hit for example "g" letter nothing happens? I would expect that the selection jumps to the first match of a folder or file beginning of a letter "g". This behavior works on right side pane (shortcuts view) as expected. Another issue - selected folder on left side pane then hit "enter" also nothing happens, I must have to hover the cursor over the expander then left click to open it. Can I change these settings ? Thanks, Vladi PS: Thunar 1.6 , Xubuntu 16.0.5</p>
0non-cybersec
Stackexchange
eNMS - a vendor-agnostic NMS for carrier-grade network visualization and network automation. # eNMS - first release I spent the past few weeks working on eNMS, a vendor-agnostic NMS designed for network visualization and, more importantly, network automation. I've just published a first release yesterday that you can find on [Github](https://github.com/afourmy/eNMS). You can find a description of the main features in the readme, I made some video to make it as clear as possible what you can do with it. I also hosted a demo version on pythonanywhere, which you can find at the following link: http://afourmy.pythonanywhere.com/ credentials: username: cisco / password: cisco (this demo is mainly for you to see what it looks like, I disabled most functionalities.) # Features: In short, the main features are: - interface to Netmiko and NAPALM to send scripts graphically to about any type of network device (or group of devices) - possibility to use Jinja2 along with a YAML file to send a template-based script - scheduling of the script: you can send a script to any group of devices, at any time, at any frequency (once a day, once a week, etc). When a script is sent to a group of device, it is executed in parallel with multiple processes (so it's very fast, even if you have hundreds of routers/switches). - visualization of your network with either Open Street Map or via a force-based algorithm if you don't have the GPS coordinates - SSH connection to a device from OpenStreetMap or the force-based visualization - TACACS+ authentication - Dashboard showing some useful information about your network - Advanced regex-based filtering (very important and powerful: see readme for details) - Export to Google Earth - a few other things If you want to find out more about the project, I suggest you read the readme on github. # History of the project: It all started during the NAPALM hackathon end of november, when I created a first version that I called "eNAPALM". After a while, I decided to change a lot of things and it wasn't entirely focused on NAPALM anymore, so I renamed it eNMS. So the project is about 6-7 weeks old and there definitely is some testing / debugging to do (if you find a bug (there should be plenty), you can create an issue on github and I'll do my best to fix it). I reimplemented many features that I had already implemented about a year ago in pyNMS (https://github.com/afourmy/pyNMS), a similar project in pyQt. # Technical stack: Back-end: - Python (Flask) - APScheduler (job scheduling) - NAPALM / Netmiko / Jinja2 / YAML (network automation) - SQLAlchemy (SQLite for now but I will switch to PostgreSQL soon) Front-end: - Bootstrap - Javascript (leaflet, vis, jquery, etc.) See the "Credits" section of the readme for more information. For the front-end, I used a Bootstrap template called "Gentelella" (https://github.com/puikinsh/gentelella). When I started, there was no integration of Gentelella with Flask (only Django) so as a pre-requisite of eNMS, I had to do that. I thought it might be interesting for other devs, so I made it a standalone project. If you want to develop some Flask interface, this can be a good place to start, kinda like a Flask boilerplate: https://github.com/afourmy/flask-gentelella # Contributions: Contributions are most welcome ! This could be improving the code, adding some features (see the issues for a list of things that would be nice to have), creating some documentation (the readme is pretty much all there is right now), creating files for the containerization (I made a /docker folder to host some dockerfiles for example), and commiting some useful templates that you use. For the templates, I made a /script folder where I show some examples of Jinja2 templates + the YAML file that goes with it. If you have such j2 template (any platform / OS), and you're willing to share, that would be awesome. (the "structure" would be /script/vendor-name/os-name/the-files-here) # Distribution: GPLv3. Free.
1cybersec
Reddit
It's finally over!.
0non-cybersec
Reddit
Reduce font size in Google Documents. <p>I created a document with Google Docs. Now I want to reduce the fontsize by 1pt. There are several fontsizes in the documents, so I can't just apply a different size to the whole document. </p> <p>In MS Word, you can select all and press Ctrl+Shift+. </p> <p>Is this possible in Google Docs?</p>
0non-cybersec
Stackexchange
What was the millennial for Halloween?. Offended.
0non-cybersec
Reddit
GAME THREAD: Utah Jazz (17-18) @ Dallas Mavericks (21-16) - (Mar. 03, 2012). ##General Information **TIME** |**MEDIA** |**LOCATION** |**MISC** :------------|:------------------------------------|:-------------------|:------------------------- 08:30 Eastern |**TV**: Away: Root Sports Utah, Home: FOX Sports Southwest | American Airlines Center, Dallas, TX | [Live chat](http://webchat.freenode.net/?channels=r/NBA&uio=MTE9MjQ255/) 07:30 Central |**Streaming**: N/A | **Team Subreddits**| 06:30 Mountain|**Game Story**: [NBA.com](http://www.nba.com/games/20120303/UTADAL/gameinfo.html#nbaGIlive)| [/r/UtahJazz](http://reddit.com/r/UtahJazz) | 05:30 Pacific |**Box Score**: [NBA.com](http://www.nba.com/games/20120303/UTADAL/gameinfo.html#nbaGIboxscore) | [/r/Mavericks](http://reddit.com/r/Mavericks) | -----
0non-cybersec
Reddit
That's gay.
0non-cybersec
Reddit
How to setup SVN on Mac OS X 10.8.2?. <p>I have found information that SVN comes with Mac OS X. But there was no SVN on my system. I have installed <code>Subversion-1.6.17-1_10.7.x.pkg</code> and all was good. But after update to Mac OS X 10.8.2 all SVN files were automatically removed from the system. I have tried to install <code>Subversion-1.6.17-1_10.7.x.pkg</code> again - but Next button is disabled. I have tried to found an updated version - but there is no Mac OS support now.</p> <p>How to simply setup SVN on Mac OS X 10.8.2?</p> <p>Thanks a lot for the help.</p>
0non-cybersec
Stackexchange
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application. I need to scale my app adding some spot instances that EB do not support.</p> <p>So I create a second autoscaling from a launch configuration with spot instances. The autoscaling use the same load balancer created by beanstalk.</p> <p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p> <p>This work fine, but:</p> <ol> <li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p> </li> <li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p> </li> </ol> <p><strong>UPDATE</strong></p> <p>Elastic Beanstalk add support to spot instance since 2019... see: <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
0non-cybersec
Stackexchange
Ubuntu 14.04 ethernet connection problem. <p>I've just upgraded from 12.04 to 14.04, and when I disconnect the ethernet cable or I suspend, network manager keeps trying connecting 4-5 times, with failures, and then finally succeed. If I restart, the connection is ok, but if I disconnect again, the problem is back again.</p> <p>This is the output of dmesg:</p> <pre><code>[ 1234.523258] PM: Syncing filesystems ... done. [ 1234.743865] PM: Preparing system for mem sleep [ 1234.744109] Freezing user space processes ... (elapsed 0.002 seconds) done. [ 1234.746257] Freezing remaining freezable tasks ... (elapsed 1.504 seconds) done. [ 1236.250482] PM: Entering mem sleep [ 1236.250514] Suspending console(s) (use no_console_suspend to debug) [ 1236.251018] sd 0:0:0:0: [sda] Synchronizing SCSI cache [ 1236.251343] sd 0:0:0:0: [sda] Stopping disk [ 1236.812155] PM: suspend of devices complete after 561.290 msecs [ 1236.812530] PM: late suspend of devices complete after 0.371 msecs [ 1236.828483] ehci-pci 0000:00:04.1: System wakeup enabled by ACPI [ 1236.844052] ohci-pci 0000:00:04.0: System wakeup enabled by ACPI [ 1236.860284] PM: noirq suspend of devices complete after 47.750 msecs [ 1236.860415] ACPI: Preparing to enter system sleep state S3 [ 1236.861876] PM: Saving platform NVS memory [ 1236.862162] Disabling non-boot CPUs ... [ 1236.964057] smpboot: CPU 1 is now offline [ 1236.964265] ACPI: Low-level resume complete [ 1236.964265] PM: Restoring platform NVS memory [ 1236.964265] Enabling non-boot CPUs ... [ 1236.964265] x86: Booting SMP configuration: [ 1236.964265] smpboot: Booting Node 0 Processor 1 APIC 0x1 [ 1236.863533] Initializing CPU#1 [ 1236.976181] CPU1 is up [ 1236.977216] ACPI: Waking up from system sleep state S3 [ 1237.556134] ohci-pci 0000:00:04.0: System wakeup disabled by ACPI [ 1237.572108] ehci-pci 0000:00:04.1: System wakeup disabled by ACPI [ 1237.620274] PM: noirq resume of devices complete after 79.948 msecs [ 1237.620451] PM: early resume of devices complete after 0.147 msecs [ 1237.940033] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300) [ 1238.012503] ata2.00: configured for UDMA/100 [ 1239.452092] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300) [ 1239.456315] ata1.00: configured for UDMA/133 [ 1239.456825] sd 0:0:0:0: [sda] Starting disk [ 1239.486112] PM: resume of devices complete after 1865.656 msecs [ 1239.486478] PM: Finishing wakeup. [ 1239.486481] Restarting tasks ... done. [ 1239.503830] video LNXVIDEO:00: Restoring backlight state [ 1239.691997] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded [ 1239.692095] r8169 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control [ 1239.692359] r8169 0000:03:00.0: irq 41 for MSI/MSI-X [ 1239.735826] r8169 0000:03:00.0 eth0: RTL8168b/8111b at 0xf842a000, e0:cb:4e:2f:c4:f7, XID 18000000 IRQ 41 [ 1239.735831] r8169 0000:03:00.0 eth0: jumbo features [frames: 4080 bytes, tx checksumming: ko] [ 1241.841344] r8169 0000:03:00.0 eth0: link down [ 1241.841364] r8169 0000:03:00.0 eth0: link down [ 1241.841639] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 1243.636825] r8169 0000:03:00.0 eth0: link up [ 1243.636843] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 1244.281364] r8169 0000:03:00.0 eth0: link down [ 1244.281395] r8169 0000:03:00.0 eth0: link down [ 1244.281616] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 1244.561344] r8169 0000:03:00.0 eth0: link down [ 1244.561442] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 1246.377956] r8169 0000:03:00.0 eth0: link up [ 1246.377971] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 1251.433358] r8169 0000:03:00.0 eth0: link down [ 1251.433411] r8169 0000:03:00.0 eth0: link down [ 1251.433481] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 1253.072957] r8169 0000:03:00.0 eth0: link up [ 1253.072974] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 3498.716445] r8169 0000:03:00.0 eth0: link down [ 3501.273340] r8169 0000:03:00.0 eth0: link down [ 3501.273452] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 3501.673354] r8169 0000:03:00.0 eth0: link down [ 3501.673419] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 3503.203193] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 3523.370577] r8169 0000:03:00.0 eth0: link up [ 3523.370595] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready </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
Either I've seen too much pr0n, or they haven't seen enough. [sfw].
0non-cybersec
Reddit
Horrible Little Rat Vs Lizard.
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
Automatically set up Outlook Profile for new user. <p>I'm a part of a small IT team for a medium sized business. </p> <p>When we set up a new user, we usually create an email account and set their password up, we never give email passwords out for security reasons. </p> <p>We have a external office with users that Hot desk, meaning that we need to set up the new user on every machine and set up the Outlook account manually. This is done over Remote Support.</p> <p>Is there anyway that the Outlook account sets up automatically by fetching the details from AD or setting up some kind of group policy for this?</p> <p>We have users set up on either Windows 7, 8, 8.1 or 10 although we need to start using one version of OS to avoid confusion. All users have Outlook 2013 installed. </p> <p>Thanks!</p>
0non-cybersec
Stackexchange
Turn a Pi into a Spectrometer using Legos (open source).
0non-cybersec
Reddit
I caught the moon between clouds tonight.
0non-cybersec
Reddit
Equivalency of all norms on a finite dimensional vector space: compactness theorems vs. the open mapping theorem. <p>Going through my functional analysis course notes, I feel like there are two different proofs for the following theorem.</p> <blockquote> <p>In <span class="math-container">$\mathbb{R}^n$</span> (or <span class="math-container">$\mathbb{C}^n$</span>), any two norms are equivalent. </p> </blockquote> <p>One uses the compactness-related extreme value theorem (i.e., a continuous function on compact set must achieve its maximum and minimum values), while the other uses the open mapping theorem (i.e, for every continuous linear mapping <span class="math-container">$T$</span> from a Banach space <span class="math-container">$X$</span> onto another Banach space <span class="math-container">$Y$</span>, and every <span class="math-container">$U \in X$</span> open, <span class="math-container">$T(U)$</span> is open). These two theorems use different hypothesis and are not equivalent. Therefore, I am suspicious that I am doing something wrong.</p> <p><em>My questions is whether both these proofs are correct, or if I am doing something wrong here</em>.</p> <h3>Common steps of both proofs</h3> <ul> <li>Define (recall) the <span class="math-container">$\|.\|_\text{sup}$</span> norm as <span class="math-container">$\|x\| = \sup_{i} |x_i|$</span>. </li> <li>(*) Show that for any norm <span class="math-container">$\|.\|_b$</span> on <span class="math-container">$\mathbb{R}^n$</span>, there exist an <span class="math-container">$M_b &gt; 0$</span>, such that for all <span class="math-container">$x \in \mathbb{R}^n$</span>, <span class="math-container">$\|x\|_b \leq M_b \|x\|_\text{sup}$</span> (see for example <a href="https://math.stackexchange.com/questions/3053327/all-norms-defined-on-a-finite-dimensional-normed-linear-space-are-equivalent">here</a> on how to find <span class="math-container">$M_b$</span>).</li> </ul> <h3>Proof with extreme value theorem</h3> <ul> <li>From (*) we deduce that any norm <span class="math-container">$\|x\|_b$</span> is continuous w.r.t the <span class="math-container">$\|x\|_\text{sup}$</span> norm.</li> <li>(+) Use the fact that the unit sphere (of the sup norm) is compact in <span class="math-container">$\mathbb R^n$</span>, (*), and the extreme value theorem to deduce that <span class="math-container">$\|x\|_b$</span> achieves a minimum <span class="math-container">$m_b$</span> on the unit sphere (of the sup norm). In other words, there exists <span class="math-container">$m_b &gt; 0$</span> such that <span class="math-container">$\|x\|_b \geq m_b \|x\|_\text{sup}$</span> for all <span class="math-container">$x \in \mathbb R^n$</span>.</li> <li>Combining (+) and (*), we get that any norm <span class="math-container">$\|.\|_b$</span> and <span class="math-container">$\|.\|_\text{sup}$</span> are equivalent <span class="math-container">$\blacksquare$</span> </li> </ul> <h3>Proof with the open mapping theorem</h3> <p>This is the proof that I am not sure about.</p> <ul> <li><p>From the open mapping theorem, one can prove that (see for example <a href="https://math.stackexchange.com/questions/1706065/real-analysis-folland-problem-5-3-32-the-baire-category-theorem?noredirect=1&amp;lq=1">here</a> for a proof):</p> <blockquote> <p>Let <span class="math-container">$\|.\|_1$</span> and <span class="math-container">$\|.\|_2$</span> be norms on a Banach space <span class="math-container">$X$</span>, such that <span class="math-container">$\|x\|_1 \leq\|x\|_2$</span>. Then, the norms are equivalent.</p> </blockquote></li> <li><p>Now combine this with (*) with the fact that <span class="math-container">$\mathbb R^n$</span> is complete (Banach), and you get that any norm in <span class="math-container">$\mathbb{R}^n$</span> is equivalent to the <span class="math-container">$\|.\|_\text{sup}$</span> norm <span class="math-container">$\blacksquare$</span> </p></li> </ul>
0non-cybersec
Stackexchange
Visual Studio Code c++11 extension warning. <p>I am in the process of learning c++ and I'm using visual studio code for Mac. I use Code Runner to run my program. My problem is that when I use something from c++11 like "auto" for variable declaration, visual studio code gives me a warning like this, but if I try running it on Xcode or Eclipse it doesn't:</p> <pre><code>warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] for(auto y: nstrVec) </code></pre> <p>This is the program if it's necessary:</p> <pre><code>#include &lt;iostream&gt; #include &lt;cstdlib&gt; #include &lt;string&gt; #include &lt;vector&gt; #include &lt;numeric&gt; #include &lt;sstream&gt; int main(){ std::vector&lt;std::string&gt; nstrVec(10); std::string str("I'm a string"); nstrVec[0] = str; std::cout &lt;&lt; str.at(0) &lt;&lt; "\n"; std::cout &lt;&lt; str.front() &lt;&lt; " " &lt;&lt; str.back() &lt;&lt; "\n"; std::cout &lt;&lt; "Length " &lt;&lt; str.length() &lt;&lt; "\n"; // copies all characters after the fourth std::string str2(str, 4); for(auto y: nstrVec) if(y != "") std::cout &lt;&lt; y &lt;&lt; "\n"; return 0; } </code></pre> <p>And this is the c_cpp_proprerties.json file:</p> <pre><code>{ "configurations": [ { "name": "Mac", "includePath": [ "${workspaceFolder}/**", "/System/Library/Frameworks/Kernel.framework/Versions/A/Headers" ], "defines": [], "macFrameworkPath": [ "/System/Library/Frameworks", "/Library/Frameworks" ], "compilerPath": "/usr/bin/clang", "cStandard": "c11", "cppStandard": "c++17", "intelliSenseMode": "clang-x64" } ], "version": 4 } </code></pre>
0non-cybersec
Stackexchange
China Now Makes More Electric Cars Than Every Country COMBINED.
0non-cybersec
Reddit
Triple gears? How about Fractal gears..
0non-cybersec
Reddit
State whether or not the relation on the set of reals is reflexive, symmetric, antisymmetric or transitive. <p>State whether or not the relation on the set of real numbers is reflexive, symmetric, anti-symmetric or transitive.</p> <p><span class="math-container">$$R= \{(x,y)\mid x=1\text{ or }y=1\}$$</span></p> <p>This is what I have done up to now, not sure if I am right though.</p> <blockquote> <p>i) it is reflexive.</p> <p>for any arbitrary <span class="math-container">$x\in R$</span>; <span class="math-container">$(x,x)\in R$</span></p> <p><span class="math-container">$x=1$</span> or <span class="math-container">$x=1$</span></p> <p>ii) it is symmetric</p> <p>since if <span class="math-container">$x=1$</span> or <span class="math-container">$y=1$</span> then <span class="math-container">$y=1$</span> or <span class="math-container">$x=1$</span></p> <p>iii) it is not antisymmetric</p> <p>counterexample.</p> <p><span class="math-container">$(1,5)\in R$</span> and <span class="math-container">$(5,1)\in R$</span></p> <p>but <span class="math-container">$x\ne y$</span></p> <p>IV) it is not transitive.</p> <p>counterexample:</p> <p><span class="math-container">$(7,1)\in R$</span> and <span class="math-container">$(1,7)\in R$</span></p> <p>But <span class="math-container">$(7,7)\notin R$</span></p> </blockquote>
0non-cybersec
Stackexchange
Trying to find a pair of frames like the one's Aaron Sorkin is wearing in this Esquire Interview. http://www.esquire.com/features/what-ive-learned/meaning-of-life-2011/aaron-sorkin-interview-0111 Thanks guys, been on the hunt for new frames for ages and would like to try something like these... but cannot find them anywhere.
0non-cybersec
Reddit
Circle Tangency Problem in Cartesian Plane. <p>Compute <span class="math-container">$k$</span>, <span class="math-container">$k$</span> greater than 1, for which the circles with radius <span class="math-container">$k$</span>, centered at <span class="math-container">$(k,k),(k,-k),(-k,k),(-k,-k),$</span> are exactly tangent to those with radius 1, centered at <span class="math-container">$(1,1),(1,-1),(-1,1),(-1,-1)$</span>.</p> <p>Using Desmos, I have an estimate of approximately 5.828, but I don’t know what the closed form is, nor how to determine it.</p>
0non-cybersec
Stackexchange
In Android, How can I avoid the onStart method from being deprecated?. <p>I am having a problem with setting the onStart method in my app. It always has a strikethrough, saying "This method was deprecated in API level 5. I need onStart, not onStartCommand.</p> <p>How can I resolve this?</p> <p>MyNotificationService.java</p> <pre><code> import android.app.Service; import android.content.Intent; import android.os.IBinder; import android.widget.Toast; public class MyNotificationService extends Service { @Override public IBinder onBind(Intent arg0) { // TODO Auto-generated method stub return null; } @Override public void onCreate() { // TODO Auto-generated method stub super.onCreate(); Toast.makeText(this, "OnCreate()", Toast.LENGTH_SHORT).show(); } @Override public void onDestroy() { // TODO Auto-generated method stub super.onDestroy(); Toast.makeText(this, "OnDestroy()", Toast.LENGTH_SHORT).show(); } @Override @Deprecated public void onStart(Intent intent, int startId) { // TODO Auto-generated method stub super.onStart(intent, startId); } } </code></pre> <p>Reminder_2.java</p> <pre><code>import android.media.MediaPlayer; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.Menu; import android.view.View; import android.view.Window; import android.widget.DatePicker; import android.widget.ImageButton; public class Reminder_2 extends Activity { String message; DatePicker datepicker; @Override protected void onCreate(Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_NO_TITLE); super.onCreate(savedInstanceState); setContentView(R.layout.activity_reminder_2); datepicker=(DatePicker)findViewById(R.id.datePicker1); Home(); Next(); Save(); } private void Next() { final MediaPlayer button_tone = MediaPlayer.create(this, R.raw.button_sound); ImageButton Button = (ImageButton) findViewById(R.id.imageButton1); View.OnClickListener myListener = new View.OnClickListener() { @Override public void onClick(View v) { button_tone.start(); finish(); } }; Button.setOnClickListener(myListener); } private void Save() { final MediaPlayer button_tone = MediaPlayer.create(this, R.raw.button_sound); ImageButton Button = (ImageButton) findViewById(R.id.imageButton3); View.OnClickListener myListener = new View.OnClickListener() { @Override public void onClick(View v) { button_tone.start(); Intent intent = new Intent(); intent.setClass(getApplicationContext(), MyNotificationService.class); startService(intent); } }; Button.setOnClickListener(myListener); } private void Home() { final MediaPlayer button_tone = MediaPlayer.create(this, R.raw.button_sound); ImageButton Button = (ImageButton) findViewById(R.id.imageButton2); View.OnClickListener myListener = new View.OnClickListener() { @Override public void onClick(View v) { button_tone.start(); Intent intent = new Intent(getApplicationContext(), MainActivity.class); intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(intent); } }; Button.setOnClickListener(myListener); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.reminder, menu); return true; } } </code></pre>
0non-cybersec
Stackexchange
network will not work properly after having run TCP optimizer, but safe mode settings work perfectly. how to restore?. <p>I was experiencing some issues with my connection while playing online and I tried to optimize it by running TCP optimizer on my PC (Windows 7 64bit professional). I thought maybe the situation could improve. but it didn't.</p> <p>actually, I now get an extremely slow page loading time, probably due to a very low RWIN value of 1024. I understand that Windows 7 has a system to automatically adjust the RWIN value when needed. The setting from netsh is "normal" so I guess something else must be wrong.</p> <p>I tried every automatic tool out there to restore Windows' default values, but I had no success. I currently have what should be labeled as "default values" for everything TCP Optimizer initially changed, but the problem persists.</p> <p>The thing is, I just found out that running Windows in safe mode SOLVES the problem completely. The problem is that as soon as I reboot, I get the same issue all over again.</p> <p>So my question is: <em>is there a way to use SAFE MODE network settings in NORMAL mode?</em></p>
0non-cybersec
Stackexchange
Sailors tattoo meanings.
0non-cybersec
Reddit
Existence of Certain Names in Iterated Forcing. <p>Suppose $\mathbb{P}$ is a forcing. Let $\dot{\mathbb{Q}}$, $\dot{&lt;_\mathbb{Q}}$, and $\dot{1}_\mathbb{Q}$ be a name such that $1_\mathbb{P} \Vdash_\mathbb{P} ``\langle \dot{\mathbb{Q}}, \dot{&lt;}_{\mathbb{Q}}, \dot{1}_\mathbb{Q}\rangle$ is a forcing poset".</p> <p>The question is: let $\dot{q}$ be some $\mathbb{P}$-name such that $p \Vdash_\mathbb{P} \dot{q} \in \dot{\mathbb{Q}}$. How do you show that there exists another name $\dot{r}$ such that $1_\mathbb{P} \Vdash \dot{r} \in \dot{\mathbb{Q}}$ and $p \Vdash \dot{r} = \dot{q}$?</p> <p>Thanks.</p>
0non-cybersec
Stackexchange
Status bar on folder view ios9 vs 10. On iOS 9, the main top status bar would still be visible when you went into a folder. Since 10, the bar gets blurred out with the rest of the screen. Is there a setting to make the bar remain visible on folder view? I have some folders where I switch back and forth between apps and having to close the folder to check time/battery is a pain.
0non-cybersec
Reddit
Ruby Silicon Fusion.
0non-cybersec
Reddit
Cannot infer type when passing None to Option&lt;impl FnMut()&gt;. <p>I have something like this:</p> <pre><code>fn my_func(cb: Option&lt;impl FnMut(i32) + 'static&gt;) { ... } </code></pre> <p>If I try to pass in None, such as: <code>my_func(None)</code>, I get:</p> <pre><code>cannot infer type for type parameter `impl FnMut(i32) + 'static` declared on the method `my_func` </code></pre> <p>I found a previous post that said I still need to specify a type via <code>None::&lt;T&gt;</code> using something that implements <code>T</code>, and that makes sense, but how do I do that in this case? I tried defining an empty function that matches the signature, but that didn't work. Rust complained I wasn't passing in any "types", and I was passing too many "consts".</p>
0non-cybersec
Stackexchange
Customize the Outlook Web App (OWA) Overall Theme in Exchange 2013. <p>I am not talking about the individual user themes they can pick for their mailbox but rather the overall theme for OWA pages like login or expiredpassword, etc. </p> <p>So far I have found the directory where the default base theme is located: </p> <p>..\Microsoft\Exchange Server\V15\FrontEnd\HttpProxy\owa\auth\15.0.712\themes </p> <p>This has two directories "base" and "resources" which contain the images, css, etc.,<br> I can obviously go into that directory and swap out images / change css to customize it.<br> This method is described here: <a href="http://technet.microsoft.com/en-us/library/ee633483(v=exchg.150).aspx" rel="nofollow noreferrer">Customize Outlook Web App</a></p> <p>Here is a screenshot of the default theme owa login page (one of the pages I'd like to customize):</p> <p><img src="https://i.stack.imgur.com/KdFAI.png" alt="Outlook Web App Login"></p> <p>There just seems like there has got to be a better way to do this. </p> <p>Does anyone know how to create a custom theme for OWA on Exchange Server 2013?<br> Also if it is possible, how to switch between themes? </p> <p>Any help would be greatly appreciated.</p>
0non-cybersec
Stackexchange
Arsenal 1-[2] Chelsea : Alonso 84'.
0non-cybersec
Reddit
Indecision.
0non-cybersec
Reddit
Servers unexpectedly change to BDC on AD?. <p>I've got two AD virtual machines runnning on HyperV. AD1(PDC) syncs its time with pool.ntp.org and AD2(BDC) syncs with AD1 to get the time correct. Both are windows server 2008 servers.</p> <p>This worked fine for a while, but lately servers seem to drop out from AD1 and authenticate with AD2 instead, even though AD1 is up and running.</p> <p>I've tried to shut down AD2 and restart all servers on the domain to force them to authenticate to AD1 which works fine. But whenever I put AD2 on the network again servers will still auth to AD2 on reboot.</p> <p>This behavior is unknown to me and I'm having a hard time troubleshooting the issue.</p>
0non-cybersec
Stackexchange
Trusted Constraints and NOT FOR REPLICATION. <p>Version and Build: SQL Server 2005 SP4 (9.0.5000)</p> <p>As a disclaimer of sorts, I am asking this question to generate some discussion and/or debate on the topic. I don't know if there is really a correct answer, or if the correct answer is a big fat "It Depends". As such, I will be pretty slow to accept an answer, unless definitive evidence is presented that cannot be countered by the opposing view.</p> <p>The issue deals with the OBJECTPROPERTY CnstIsNotTrusted and the OBJECTPROPERTY CnstIsNotRepl, and how they relate. The CnstIsNotTrusted property is controlled with the WITH CHECK|NOCHECK while adding or checking a constraint. The CnstIsNotTrusted property means that the constraint was enabled without checking existing rows; therefore, the constraint may not be true for all rows. When true, the constraint cannot be used for query optimization. For example, I have a Person table with a Check Constraint on LastName ensuring LastName LIKE 'Mc%'. If CnstIsNotTrusted = 1 then if I search for LastName = 'Smith', the query plan will still need to scan/seek the index. If CnstIsNotTrusted = 0 then the execution plan won't even touch the table. This has been proven here:</p> <p><a href="https://sqlserverfast.com/blog/hugo/2007/03/can-you-trust-your-constraints/" rel="nofollow noreferrer">https://sqlserverfast.com/blog/hugo/2007/03/can-you-trust-your-constraints/</a></p> <p>The OBJECTPROPERTY CnstIsNotRepl (NOT FOR REPLICATION in DDL) enforces that the constraint will not be checked during replication synchronizations. More accurately stated, the publisher side will be checked, but the subscriber side will not be checked. This ensures that the same constraint isn't checked more than once. However, using NOT FOR REPLICATION will render your constraint untrusted.</p> <p>My question is, is it worth the extra CPU cycles to not use NOT FOR REPLICATION, in order to sometimes receive a more efficient execution plan?</p>
0non-cybersec
Stackexchange
How to show different Widget when user is offline while using StreamBuilder?. <p>I am trying to fetch some data from the internet. With the use of <code>FutureBuilder</code>, handling for various cases like offline, online,error is quite easy but I am using <code>StreamBuilder</code> and I am not able to understand how to handle offline case</p> <p>Following is my code to use StreamBuilder which works but I have not handled offline data or error</p> <pre><code>return StreamBuilder( builder: (context, AsyncSnapshot&lt;SchoolListModel&gt; snapshot) { if (snapshot.hasError) { return Expanded( child: Center( child: Text(SOMETHING_WENT_WRONG), )); } if (!snapshot.hasData) { return Expanded( child: Center( child: CircularProgressIndicator(), ), ); } if (snapshot.data != null) { if (snapshot.data.status == 1) { return buildSchoolList(snapshot.data.schoolListData); } else { showMessageDialog(snapshot.data.msg.toString(), context); } } }, stream: schoolListBloc.schoolList, ); } </code></pre> <p>Now to handle the offline case I am doing the following two options which don't work in my case</p> <p>Option one.</p> <pre><code>return StreamBuilder( builder: (context, AsyncSnapshot&lt;SchoolListModel&gt; snapshot) { switch (snapshot.connectionState) { case ConnectionState.none: return Text(SOMETHING_WENT_WRONG); case ConnectionState.active: case ConnectionState.waiting: return Expanded( child: Center( child: CircularProgressIndicator(), ), ); case ConnectionState.done: if (snapshot.hasError) { return errorData(snapshot); } else { if (snapshot.data.status == 1) { return buildSchoolList(snapshot.data.schoolListData); } else { showMessageDialog(snapshot.data.msg.toString(), context); } } } }, stream: schoolListBloc.schoolList, ); } </code></pre> <p>I keep seeing the <code>CircularProgressIndicator</code> and no error on the console. I fail to understand why the above switch case works for <code>FuturBuilder</code> and not <code>StreamBuilder</code>.</p> <p>Second Option.</p> <pre><code>Future&lt;bool&gt; checkInternetConnection() async { try { final result = await InternetAddress.lookup('google.com'); if (result.isNotEmpty &amp;&amp; result[0].rawAddress.isNotEmpty) { print('connected'); return true; } } on SocketException catch (_) { print('not connected'); return false; } return false; } return StreamBuilder( builder: (context, AsyncSnapshot&lt;SchoolListModel&gt; snapshot) { checkInternetConnection().then((isAvailable) { if (isAvailable) { if (!snapshot.hasData || snapshot.data == null) { return Center( child: CircularProgressIndicator(), ); } if (snapshot.data != null) { if (snapshot.data.status == 1) { return buildSchoolList(snapshot.data.schoolListData); } else { showMessageDialog(snapshot.data.msg.toString(), context); } } } else { return Center( child: Column( children: &lt;Widget&gt;[ Text(CHECK_YOUR_INTERNET_CONNECTION), RaisedButton( onPressed: () {}, child: Text(TRY_AGAIN), ) ], ), ); } }); }, stream: schoolListBloc.schoolList, ); } </code></pre> <p>Using this option throws the following error</p> <pre><code>the following assertion was thrown building StreamBuilder&lt;SchoolListModel&gt;(dirty, state: I/flutter ( 5448): _StreamBuilderBaseState&lt;SchoolListModel, AsyncSnapshot&lt;SchoolListModel&gt;&gt;#dd970): I/flutter ( 5448): A build function returned null. I/flutter ( 5448): The offending widget is: StreamBuilder&lt;SchoolListModel&gt; I/flutter ( 5448): Build functions must never return null. To return an empty space that causes the building widget to I/flutter ( 5448): fill available room, return "new Container()". To return an empty space that takes as little room as.. </code></pre> <p>What approach should I take with the following cases of offline, online and error data when using StreamBuilder</p>
0non-cybersec
Stackexchange
android: data binding error: cannot find symbol class. <p>I am getting started for using <code>DataBinding</code> feature. I am facing problem with it.</p> <blockquote> <p>Error:(21, 9) error: cannot find symbol class ContactListActivityBinding</p> </blockquote> <p><strong>build.gradle(Module: app)</strong></p> <pre><code>apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.2" defaultConfig { applicationId "com.letsnurture.ln_202.databindingdemo" minSdkVersion 15 targetSdkVersion 23 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } dataBinding { enabled = true } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.android.support:design:23.1.1' } </code></pre> <p><strong>ContactListActivity.java</strong></p> <pre><code>import android.databinding.DataBindingUtil; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.View; import android.view.Menu; import android.view.MenuItem; import com.letsnurture.ln_202.databindingdemo.model.Contact; public class ContactListActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ContactListActivityBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_contact_list); Contact user = new Contact("Chintan Soni", "+91 9876543210"); binding.setContact(user); // setContentView(R.layout.activity_contact_list); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); fab.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG) .setAction("Action", null).show(); } }); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.menu_contact_list, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle action bar item clicks here. The action bar will // automatically handle clicks on the Home/Up button, so long // as you specify a parent activity in AndroidManifest.xml. int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); } } </code></pre> <p><strong>content_contact_list.xml</strong></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;layout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" tools:context="com.letsnurture.ln_202.databindingdemo.ContactListActivity" tools:showIn="@layout/activity_contact_list"&gt; &lt;data&gt; &lt;variable name="user" type="com.letsnurture.ln_202.databindingdemo.model.Contact" /&gt; &lt;/data&gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:padding="@dimen/activity_horizontal_margin" app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@{user.contactName}" tools:text="Name" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@{user.contactNumber}" tools:text="Number" /&gt; &lt;/LinearLayout&gt; &lt;/layout&gt; </code></pre> <p><strong>activity_contact_list.xml</strong></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" tools:context="com.letsnurture.ln_202.databindingdemo.ContactListActivity"&gt; &lt;android.support.design.widget.AppBarLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:theme="@style/AppTheme.AppBarOverlay"&gt; &lt;android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="?attr/colorPrimary" app:popupTheme="@style/AppTheme.PopupOverlay" /&gt; &lt;/android.support.design.widget.AppBarLayout&gt; &lt;include layout="@layout/content_contact_list" /&gt; &lt;android.support.design.widget.FloatingActionButton android:id="@+id/fab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|end" android:layout_margin="@dimen/fab_margin" android:src="@android:drawable/ic_dialog_email" /&gt; &lt;/android.support.design.widget.CoordinatorLayout&gt; </code></pre>
0non-cybersec
Stackexchange
Tranny - Rant: Why is it so important?. The other day I was at an auto shop picking up some rim shine and oil with a friend of mine, while telling him about the '97 Integra I was trying to fix up. I guess someone working there overheard and was interested, because he started asking me about the car, basic stuff like the year it was made and all that. It was a fairly recent purchase, so when he asked me about the trim, I had to think for a moment before telling him it was the LS Sedan. It seemed like he picked up on that, and gave me kind of a weird look and asked "Automatic or Manual?" The second I said Automatic, he gave me a "have a nice day.." and just turned around and walked away mid conversation. My question is: Why the fuck does it matter? I've never really talked to many gearheads, but I hope to god everyone's not like that. I've loved cars for as long as I can remember and just haven't gotten around to learning stick, does that mean I'm not allowed to talk to anyone about my car? Ugh. *Edit: Lots of interesting discussion, some good some bad. Just some general comments I'm getting that I want to refute: 1. I'm sure Manual trans are great, I'm not saying they aren't "better". No need to convince me why manual transmissions are awesome. 2. I bought an auto sedan because it was the best deal I could get. I don't have a huge car budget, but I knew that I wanted an Integra. Out of all the Integras I looked at, this deal just couldn't be beat. If the manual was cheaper, I would have bought it and just dealt with it. 3. Despite what most people believe, I bought the car because of the complete package. As a whole car, I enjoy what the Integra has to offer. Looks attractive, comfortable interior. Minor electrical work, and you've got a solid cabin/ride. I guess I just assumed that more car people were into the "ideas" behind a car than the typical "it doesn't vroom vroom as much as you could make it vroom vroom".
0non-cybersec
Reddit
YSK: If sharing a pdf, you can adjust the way it opens for your recipient in ‘Preferences’.. This works great for brochures or anything else you might want the viewer to quickly understand the context of said document.
0non-cybersec
Reddit
How do I determine which IP I should use for my MariaDB Galera Cluster?. <p>I have set up MariaDB Galera Cluster (let's say 3-4 nodes).</p> <p>Which IP should I specify in the configuration of my application? </p> <p>Should I specify all of them or I should have some proxy in front of the Cluster so the app can see the cluster as one? </p> <p>Can I have the cluster without a proxy and still see it in my app as one node not as a cluster?</p>
0non-cybersec
Stackexchange
Deleting VLAN on Cisco 887. <p>How can I delete a VLAN config from a Cisco 887VA with IOS 15.3?</p> <p>For some testing I have created VLAN2 and no longer need it but now I can't get rid of it from <code>show running-config</code>.</p> <p>From config mode I tried:</p> <ul> <li><code>interface vlan 2</code> → <code>shutdown</code></li> <li><code>no vlan 2</code></li> <li><code>write mem</code></li> </ul> <p>But even after reload the VLAN is still showing up <code>running-config</code>.</p> <p>Not that it's a big issue but it's polluting the config...</p>
0non-cybersec
Stackexchange
ELI5: Why are humans, as well as so many other animals, symmetrical in appearance?.
0non-cybersec
Reddit
New game with Ethereum, similar to cryptokitties or ethertanks. Register, invite, get free fish, sell for ethereum.DayZ Standalone Fails #1.
0non-cybersec
Reddit
Come at me please.
0non-cybersec
Reddit
TIL there were lions in Southeast Europe up until 100 AD.
0non-cybersec
Reddit
Kids Dancing to Taiko Drummers.
0non-cybersec
Reddit
Number of walks from $(0, 0)$ to $(2n, 0)$ that are positive.. <p>Show that the number of walks from $(0, 0)$ to $(2n, 0)$ that are positive is equal to $\frac{1}{2n-1}{2n-1 \choose n}$.</p> <p>(Such a walk is called a bridge.)</p> <p>Here, one step within the walk is a movement of one unit to the right, with the possibility of moving up for $1$ and $-1$. I believe that the walk being positive means it stays above the x-axis and only touches it at $(0,0)$ and $(2n,0)$</p> <p>I have been thinking that this is the same number of paths from $(1,1)$ to $(2n-1, 1)$ that do not touch the x-axis but I am not sure if this is the right way to go about it.</p>
0non-cybersec
Stackexchange
vector&lt;T&gt;::push_back is used on predefined constructor?. <p>I am here to ask if my perception is actually true. I originally thought defining <code>vector&lt;T&gt; v(size_t someSize, T init_value)</code> would call a function such as <code>vector&lt;T&gt;::reserve</code>, instead of <code>vector&lt;T&gt;::push_back</code>. I found some discussion relating to this here: <a href="https://stackoverflow.com/questions/4006634/stdvector-push-back-is-bottleneck">std::vector push_back is bottleneck</a>, but this is slightly different in its idea.</p> <p>Running some experiments, I notice that <code>vector&lt;T&gt; v(size_t someSize, T init_value)</code> calls <code>::push_back</code> all along. Is this true? I have the following report using <code>uftrace</code>(<a href="https://github.com/namhyung/uftrace" rel="nofollow noreferrer">https://github.com/namhyung/uftrace</a>). </p> <pre><code> Avg total Min total Max total Function ========== ========== ========== ==================================== 858.323 ms 858.323 ms 858.323 ms main 618.245 ms 618.245 ms 618.245 ms sortKaway 234.795 ms 234.795 ms 234.795 ms std::sort 72.752 us 72.752 us 72.752 us std::vector::_M_fill_initialize 65.788 us 49.551 us 82.026 us std::vector::vector 20.292 us 11.387 us 68.629 us std::vector::_M_emplace_back_aux 18.722 us 17.263 us 20.181 us std::equal 18.472 us 18.472 us 18.472 us std::vector::~vector 17.891 us 10.002 us 102.079 us std::vector::push_back // push_back?! </code></pre> <p>Does <code>vector&lt;T&gt;::reserve</code> also call on <code>vector&lt;t&gt;::push_back</code> eventually? Is there faster version for <code>vector</code>?</p> <hr> <p>The above was the original post. After some comments, I tested a simple version, and realized I was completely mistaken.</p> <pre><code>#include &lt;vector&gt; #include &lt;functional&gt; #include &lt;queue&gt; #include &lt;cassert&gt; using namespace std; // for the time being int main () { vector&lt;int&gt; v(10, 0); return 0; } </code></pre> <p>This actually results in the following, which doesn't involve <code>std::vector&lt;T&gt;::push_back</code>.</p> <pre><code> # Function Call Graph for 'main' (session: 9ce7f6bb33885ff7) =============== BACKTRACE =============== backtrace #0: hit 1, time 12.710 us [0] main (0x4009c6) ========== FUNCTION CALL GRAPH ========== 12.710 us : (1) main 0.591 us : +-(1) std::allocator::allocator 0.096 us : | (1) __gnu_cxx::new_allocator::new_allocator : | 6.880 us : +-(1) std::vector::vector 4.338 us : | +-(1) std::_Vector_base::_Vector_base 0.680 us : | | +-(1) std::_Vector_base::_Vector_impl::_Vector_impl 0.445 us : | | | (1) std::allocator::allocator 0.095 us : | | | (1) __gnu_cxx::new_allocator::new_allocator : | | | 3.294 us : | | +-(1) std::_Vector_base::_M_create_storage 3.073 us : | | (1) std::_Vector_base::_M_allocate 2.849 us : | | (1) std::allocator_traits::allocate 2.623 us : | | (1) __gnu_cxx::new_allocator::allocate 0.095 us : | | +-(1) __gnu_cxx::new_allocator::max_size : | | | 1.867 us : | | +-(1) operator new : | | 2.183 us : | +-(1) std::vector::_M_fill_initialize 0.095 us : | +-(1) std::_Vector_base::_M_get_Tp_allocator : | | 1.660 us : | +-(1) std::__uninitialized_fill_n_a 1.441 us : | (1) std::uninitialized_fill_n 1.215 us : | (1) std::__uninitialized_fill_n::__uninit_fill_n 0.988 us : | (1) std::fill_n 0.445 us : | +-(1) std::__niter_base 0.096 us : | | (1) std::_Iter_base::_S_base : | | 0.133 us : | +-(1) std::__fill_n_a </code></pre> <p>Sorry for the confusion. Yes, the library implementation works as we expect, it doesn't involve <code>push_back</code> if constructed with <code>initial size</code>.</p>
0non-cybersec
Stackexchange
Why is my dog shaking?. I am babysitting a chihuahua for a friend. She is an ex-puppy mill dog and not spayed (yet). I am also fostering some 4 week old kittens and whenever I am holding one she starts shaking. She's taken an extreme interest in them. She is always trying to sniff/lick them and I often have to push her away as its getting obsessive. Why is she shaking? She seems to want to mother them but I thought shaking was a nervous response? What should I do? Could it be because one of the kittens hissed at her and startled her?
0non-cybersec
Reddit
How to prove that the sequence $a_{n}=2^{n}\times \sin(\frac{1}{n})$ diverges as $n$ approaches $\infty$?. <p>Trying to choose $2$ sub sequences that converge to a different limit to show that an diverges but i'm not succeeding,any tips?</p>
0non-cybersec
Stackexchange
Disabling of EditText in Android. <p>In my application, I have an EditText that the user only has Read access not Write access.</p> <p>In code I set <code>android:enabled="false"</code>. </p> <p>Although the background of EditText changed to dark, when I click on it the keyboard pops up and I can change the text.</p> <p>What should I set to disable EditText?</p>
0non-cybersec
Stackexchange
Why do I need a double ampersand when getting values from a HashMap?. <p>I'm having some trouble with references in rust. I have the following code that does not compile:</p> <pre class="lang-rust prettyprint-override"><code>use std::collections::HashMap; fn main() { let mut map = HashMap::new(); map.insert(&amp;0, &amp;0); map.insert(&amp;1, &amp;1); assert_eq!(map.get(&amp;0), Some(&amp;0)); } </code></pre> <p>The compilation error I get is:</p> <pre class="lang-rust prettyprint-override"><code>error[E0308]: mismatched types --&gt; rust_doubt.rs:9:5 | 9 | assert_eq!(map.get(&amp;0), Some(&amp;0)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected &amp;{integer}, found integral variable | = note: expected type `std::option::Option&lt;&amp;&amp;{integer}&gt;` found type `std::option::Option&lt;&amp;{integer}&gt;` = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) error: aborting due to previous error </code></pre> <p>Sure enough, if I change the line:</p> <p><code>assert_eq!(map.get(&amp;0), Some(&amp;0));</code> to <code>assert_eq!(map.get(&amp;0), Some(&amp;&amp;0));</code> (double ampersand) the code compiles</p> <h3>Questions:</h3> <ol> <li><code>map.insert(&amp;0, &amp;0)</code> inserts pointers to two integer literals into the map. I'm not sure how this is even possible since I have not used a variable anywhere. How can I have a reference to a literal? I was expecting the compiler to make me do this: </li> </ol> <pre class="lang-rust prettyprint-override"><code>let a = 0; let b = 0 map.insert(&amp;a, &amp;b); </code></pre> <p>In other words, what does <code>&amp;0</code> even mean? Does it allocate memory for the literal and return a reference to it? If so, then am I correct in assuming that no two <code>&amp;0</code>s would point to the same memory?</p> <ol start="2"> <li>Why do I have to do <code>Some(&amp;&amp;0)</code> instead of just <code>Some(&amp;0)</code>? What does <code>&amp;&amp;0</code> even mean? I understand that <code>**ptr</code> means dereferencing a variable twice to get the underlying value. But I can't quite imagine the reverse - how can you "refer" an integer literal twice?</li> </ol>
0non-cybersec
Stackexchange
MYSQL count the number of members in a group. <p>Recently started working with MySQL and PHP so my setup is still a bit clunky most likely but here is how my 2 tables look right now:</p> <h3>Table 1 named <code>clanlist</code></h3> <p><img src="https://i.stack.imgur.com/L3Qky.png" alt="clanlist" /></p> <h3>Table 2 named <code>clanusers</code></h3> <p><img src="https://i.stack.imgur.com/Fr19g.png" alt="clanusers" /></p> <p>What I need to do is check the number of users for each &quot;clan&quot; and show that number in the clanlist in the members column.</p> <p>So what it should do is count the number of users who have &quot;1&quot; in their name and update the amount in table &quot;clanlist&quot;. So if 3 users have &quot;1&quot; in the &quot;clanname&quot; column it should update the clanlist table and show 3 in the members column. I find it a bit hard to explain and I don't know if there are easier ways to do this so feel free to help me out with anything.</p> <p>I would like to add that I already tried doing something similar in php code but it was unreliable and it required me to include the php code every time a user opened a webpage. Which obviously causes slower loadtimes for the page.</p> <p>And one more thing, I saw something about the <code>COUNT</code> function which you can use in a query. But the code was really complex and I couldn't get it to work at all.</p> <p>Created this in paint real quick: <img src="https://i.stack.imgur.com/msNVc.png" alt="brief description" /></p> <p>The column members has to amount of rows in the clanusers table which have the clan_id from clanlist in it.</p>
0non-cybersec
Stackexchange
Intellij idea opens static pages in browser with different url formats. <p>Intellij idea has a nice "open in browser feature" that I use quite often for my static html files. Any html file can be opened in browser in two ways: 1. Idea has an internal web server that serves static content at <code>http://localhost:63342/&lt;relative path to content&gt;</code> . 2. Via <code>file:///&lt;absolute path&gt;</code> url. </p> <p>After a recent update (14.0.2) the browser started to open pages as <code>file:///&lt;absolute path&gt;</code> although the internal web server is still present and all I need to do is edit the url. Very annoying. I searched a lot but still can't figure out how can I influence this behaviour so all my static pages would open in browser as <code>http://localhost:63342/&lt;relative path to content&gt;</code></p>
0non-cybersec
Stackexchange
Taste le Tour - Stage 2.
0non-cybersec
Reddit
I made a shitty version of Chopped in my garage with contestants I found on Craigslist.
0non-cybersec
Reddit
how to prevent normal-user from opening port. <p>In linux,since normal-user can open ports above 1024- does any one know how to prevent normal-user from opening any port on the system.</p>
0non-cybersec
Stackexchange
React Native app opens and closes quickly after installation on ios simulator. <p>I've been developing an App using React Native and when I switched to a Mac environment to set up the configurations for ios, after all the setup has been done, the app opens very quickly and closes after the installation, showing that powered by react native screen. I noticed that in my packager screen, the line from the bundle which shows a progress of how much has been loaded does not appear, as if it has never been loaded. Same thing happens if I try to run the code from Xcode.</p> <p>Here is the screen I'm talking about, for a test project I started for comparisson purposes:</p> <p><a href="https://i.stack.imgur.com/sDnew.png" rel="noreferrer"><img src="https://i.stack.imgur.com/sDnew.png" alt="enter image description here"></a></p> <p>And here is the same screen for my App, without the progress indicator being displayed:</p> <p><a href="https://i.stack.imgur.com/N0xDU.png" rel="noreferrer"><img src="https://i.stack.imgur.com/N0xDU.png" alt="enter image description here"></a></p> <p>I tried following some solutions provided by the comunity for similar issues but none of them worked. Note that no error message is displayed in my terminal window, as if the build and installation has been succesfull.</p> <p>Can someone help me with this one? I've been strugling with this App for quite some time, as react native always seems to crash and display error messages for me. Any help would be much appreciated :)</p> <p>Edit: forgot to mention that I'm trying to run the app on the simulator since I don't have an actual device.</p>
0non-cybersec
Stackexchange
How prove this inequality $\sum\limits_{cyc}\frac{1-2\sin{\frac{C}{2}}}{\sin{\frac{B}{2}}}\ge 0$. <p>in $\Delta ABC$,prove or disprove $$\dfrac{1-2\sin{\dfrac{C}{2}}}{\sin{\dfrac{B}{2}}}+\dfrac{1-2\sin{\dfrac{A}{2}}}{\sin{\dfrac{C}{2}}}+\dfrac{1-2\sin{\dfrac{A}{2}}}{\sin{\dfrac{A}{2}}}\ge 0$$</p> <p>My idea: since $$\sum_{cyc}\dfrac{1-2\sin{\dfrac{C}{2}}}{\sin{\dfrac{B}{2}}}\ge 0$$ $$\sum_{cyc}\sin{\dfrac{A}{2}}\sin{\dfrac{C}{2}}(1-2\sin{\dfrac{C}{2}})\ge 0$$ then I can't</p> <p>Thank you for you help</p>
0non-cybersec
Stackexchange
I have tried grub booting to reset my password but it won&#39;t work, did I do something wrong?. <p>I was changing my administration password to my computer and I must have made a mistake and mis-typed some part of the password because I tried every password I had put on the PC, nothing worked. Is there anyway to wipe the PC (the memory card is a SSD Sandisk 120GB) or recover the administration password? Plus the PC is currently turned off so is there a way I turn It on in a passwordless root or something? Also every time I try the grub boot, when it asks me for a new password I enter it and it says "authentication token manipulation error. What does that mean???? Will I have to wipe the memory or just buy a new one.</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
Find GUID of MSI Package. <p>How can I find the GUID of an MSI package? I would like to script the removal of a program on a large number of desktops by using: </p> <blockquote> <p>msiexec.exe /x <em>ProductCode</em></p> </blockquote> <p>Any reason why this would not work for any applications listed in "Add/Remove Programs?"</p>
0non-cybersec
Stackexchange
Green Egg Grill: A Perfect Stuff for an Epicure during Hunting..
0non-cybersec
Reddit
Handmade iphone docks.
0non-cybersec
Reddit
The hand of an x-ray technician at the Royal London Hospital showing damage from radiation exposure, ca. 1900 [589x495].
0non-cybersec
Reddit
Game: What would you guess a book was about if you only knew its title?. For Example: Atlas Shrugged: a book about the devastation wreaked on the earth when it is thrown off its orbit and slowly drifts away from (or towards) the sun.
0non-cybersec
Reddit
Anyone else intentionally come into MoP without looking at the pre and post release information?. With the past expansions, I would be eagerly reading up on them whenever they dropped little bits of information about it. This time, I actually did not even know MoP was coming out until less than a week before release, so that made this really easy. No clue about factions/dungeons/raids/zones/cities/bosses/even what the point of the expansion is (though it's mostly because it isn't nearly as obvious as the previous ones with the guy on the cover). And now, after loving the pandaren starting zone... I've got a lot of leveling to do before I see anything else new. Did not think that one through (I always start fresh on a different server at expansions). The information blackout is gonna last a while, but at least I still haven't seen all the Cataclysm redone 1-60 content.
0non-cybersec
Reddit
Ordered the 30th Anniversary Halloween II Bluray... this was the insert..
0non-cybersec
Reddit
apt-get install fails -- attempts a previous unrelated install. <p>I'm trying to install glut by running the command <code>sudo apt-get install freeglut3-dev</code> but instead of installing glut apt-get attempts to install Java, which I remember trying to install a few days ago.</p> <p>Error message:</p> <pre><code>Reading package lists... Done Building dependency tree Reading state information... Done freeglut3-dev is already the newest version (2.8.1-3). 0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Setting up oracle-java7-installer (7u80+7u60arm-0~webupd8~1) ... Downloading Oracle Java 7... --2017-06-05 22:27:09-- http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz Resolving download.oracle.com (download.oracle.com)... 2.127.246.99, 2.127.246.88 Connecting to download.oracle.com (download.oracle.com)|2.127.246.99|:80... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz [following] --2017-06-05 22:27:09-- https://edelivery.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz Resolving edelivery.oracle.com (edelivery.oracle.com)... 2a02:26f0:6000:188::2d3e, 2a02:26f0:6000:182::2d3e, 72.246.145.28 Connecting to edelivery.oracle.com (edelivery.oracle.com)|2a02:26f0:6000:188::2d3e|:443... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz?AuthParam=1496698149_caee32bd2be689be6e287d0dc2327b9b [following] --2017-06-05 22:27:09-- http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz?AuthParam=1496698149_caee32bd2be689be6e287d0dc2327b9b Connecting to download.oracle.com (download.oracle.com)|2.127.246.99|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2017-06-05 22:27:11 ERROR 404: Not Found. download failed Oracle JDK 7 is NOT installed. dpkg: error processing package oracle-java7-installer (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: oracle-java7-installer E: Sub-process /usr/bin/dpkg returned an error code (1) </code></pre> <p><strong>Update</strong></p> <p><code>sudo apt-get autoremove</code> also fails with the error message</p> <pre><code>Reading package lists... Done Building dependency tree Reading state information... Done 0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up oracle-java7-installer (7u80+7u60arm-0~webupd8~1) ... Downloading Oracle Java 7... --2017-06-05 22:40:46-- http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz Resolving download.oracle.com (download.oracle.com)... 90.223.189.171, 90.223.189.136 Connecting to download.oracle.com (download.oracle.com)|90.223.189.171|:80... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz [following] --2017-06-05 22:40:46-- https://edelivery.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz Resolving edelivery.oracle.com (edelivery.oracle.com)... 2a02:26f0:a1:29d::2d3e, 2a02:26f0:a1:2a0::2d3e, 72.246.145.28 Connecting to edelivery.oracle.com (edelivery.oracle.com)|2a02:26f0:a1:29d::2d3e|:443... connected. HTTP request sent, awaiting response... 302 Moved Temporarily Location: http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz?AuthParam=1496698966_f1174438ea33637e096efb0850659a23 [following] --2017-06-05 22:40:46-- http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz?AuthParam=1496698966_f1174438ea33637e096efb0850659a23 Connecting to download.oracle.com (download.oracle.com)|90.223.189.171|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2017-06-05 22:40:46 ERROR 404: Not Found. download failed Oracle JDK 7 is NOT installed. dpkg: error processing package oracle-java7-installer (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: oracle-java7-installer E: Sub-process /usr/bin/dpkg returned an error code (1) </code></pre>
0non-cybersec
Stackexchange
OpenAdmin write-up by D_F4U1T.
1cybersec
Reddit
My look for Day Five of the Electric Palette Challenge from /r/TheMakeupChallenges!.
0non-cybersec
Reddit
Grassley - The Right To Bear Arms Comes From God.
0non-cybersec
Reddit
Great Wolf Sif.
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
Hey Guys, I just finished watching the Superbowl (I live in Japan) and I am really worried.... Did they get around to helping the guy stuck up in the rafters?? I noticed that only the players could see he was in trouble.. (maybe cause of a clear view from the field?!?) After every play they would point up to him as if to say, "Hey look at that guy up there! Somebody do something!" I mean....I know they get paid a lot of money to do their job and had to play on but...it got so bad that some of them got on their knees while pointing, pleading for someone to notice. Why couldn't anyone see him??? I am so worried... edit:spelling
0non-cybersec
Reddit
RAM hot-add HP Proliant - Esxi. <p>I have to add some RAM to my HP Proliant DL385 g7 and I was wondering if I can hot-add the memory due to some mission critical VMs that I can't move because of lack of hardware. I use ESXi 5.5 as HV. I tried to look around HP support site but I didn't find anything. Is it possible ? If yes, Is there any risk or precaution I'd take during the operation ?</p>
0non-cybersec
Stackexchange
Invalid byte sequence error in normalize_yaml_input being thrown?. <p>I'm getting the error (below) when trying to push my project to Heroku. Googling found a few people with similar issues turning up, but with a different gem as the last gem before the error, so I don't think it's got to do with warden. A few of the similar errors/github issues I found had solutions pointing back to a rubygems error, which was apparently <a href="https://github.com/rubygems/rubygems/issues/139#issuecomment-1894945">to be fixed in 1.8.10</a> (which I've got already, so I'm doubtful that it's that issue either.</p> <p>Any suggestions would be appreciated—I'm sure it's something simple I've missed.</p> <pre><code>cobychapple at shiva in ~/code/zzz on master! ± git push heroku master Counting objects: 201, done. Delta compression using up to 2 threads. Compressing objects: 100% (181/181), done. Writing objects: 100% (201/201), 92.14 KiB, done. Total 201 (delta 38), reused 0 (delta 0) -----&gt; Heroku receiving push -----&gt; Ruby/Rails app detected -----&gt; Detected Rails is not set to serve static_assets Installing rails3_serve_static_assets... done -----&gt; Configure Rails 3 to disable x-sendfile Installing rails3_disable_x_sendfile... done -----&gt; Configure Rails to log to stdout Installing rails_log_stdout... done -----&gt; Gemfile detected, running Bundler version 1.0.7 Unresolved dependencies detected; Installing... Using --without development:test Fetching source index for http://rubygems.org/ Installing rake (0.9.2.2) Installing multi_json (1.0.3) Installing activesupport (3.1.2) Installing builder (3.0.0) Installing i18n (0.6.0) Installing activemodel (3.1.2) Installing erubis (2.7.0) Installing rack (1.3.5) Installing rack-cache (1.1) Installing rack-mount (0.8.3) Installing rack-test (0.6.1) Installing hike (1.2.1) Installing tilt (1.3.3) Installing sprockets (2.1.2) Installing actionpack (3.1.2) Installing mime-types (1.17.2) Installing polyglot (0.3.3) Installing treetop (1.4.10) Installing mail (2.3.0) Installing actionmailer (3.1.2) Installing arel (2.2.1) Installing tzinfo (0.3.31) Installing activerecord (3.1.2) Installing activeresource (3.1.2) Installing addressable (2.2.6) Installing bcrypt-ruby (3.0.1) with native extensions Installing coffee-script-source (1.1.3) Installing execjs (1.2.9) Installing coffee-script (2.2.0) Installing rack-ssl (1.3.2) Installing json (1.6.1) with native extensions Installing rdoc (3.11) Installing thor (0.14.6) Installing railties (3.1.2) Installing coffee-rails (3.1.1) Installing orm_adapter (0.0.5) Installing warden (1.1.0) /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/specification.rb:519:in `normalize_yaml_input': invalid byte sequence in US-ASCII (ArgumentError) from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/specification.rb:479:in `from_yaml' from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/package/tar_input.rb:183:in `load_gemspec' from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/package/tar_input.rb:51:in `block in initialize' from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/package/tar_reader.rb:64:in `block in each' from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/package/tar_reader.rb:55:in `loop' from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/package/tar_reader.rb:55:in `each' from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/package/tar_input.rb:32:in `initialize' from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/package/tar_input.rb:17:in `new' from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/package/tar_input.rb:17:in `open' from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/package.rb:58:in `open' from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/format.rb:63:in `from_io' from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/format.rb:51:in `block in from_file_by_path' from /usr/ruby1.9.2/lib/ruby/1.9.1/open-uri.rb:35:in `open' from /usr/ruby1.9.2/lib/ruby/1.9.1/open-uri.rb:35:in `open' from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/format.rb:50:in `from_file_by_path' from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/source.rb:72:in `fetch' from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/installer.rb:45:in `block in run' from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/spec_set.rb:12:in `block in each' from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/spec_set.rb:12:in `each' from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/spec_set.rb:12:in `each' from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/installer.rb:44:in `run' from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/installer.rb:8:in `install' from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/cli.rb:225:in `install' from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/task.rb:22:in `run' from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task' from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor.rb:246:in `dispatch' from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:389:in `start' from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/bin/bundle:13:in `&lt;top (required)&gt;' from /usr/ruby1.9.2/bin/bundle:19:in `load' from /usr/ruby1.9.2/bin/bundle:19:in `&lt;main&gt;' FAILED: http://devcenter.heroku.com/articles/bundler ! Heroku push rejected, failed to install gems via Bundler To [email protected]:zzz.git ! [remote rejected] master -&gt; master (pre-receive hook declined) error: failed to push some refs to '[email protected]:zzz.git' </code></pre> <p>Here's the output of <code>bundle install</code> too, in case it helps:</p> <pre><code>cobychapple at shiva in ~/code/zzz on master ± bundle install Using rake (0.9.2.2) Using multi_json (1.0.3) Using activesupport (3.1.2) Using builder (3.0.0) Using i18n (0.6.0) Using activemodel (3.1.2) Using erubis (2.7.0) Using rack (1.3.5) Using rack-cache (1.1) Using rack-mount (0.8.3) Using rack-test (0.6.1) Using hike (1.2.1) Using tilt (1.3.3) Using sprockets (2.1.2) Using actionpack (3.1.2) Using mime-types (1.17.2) Using polyglot (0.3.3) Using treetop (1.4.10) Using mail (2.3.0) Using actionmailer (3.1.2) Using arel (2.2.1) Using tzinfo (0.3.31) Using activerecord (3.1.2) Using activeresource (3.1.2) Using addressable (2.2.6) Using ansi (1.4.1) Using bcrypt-ruby (3.0.1) Using bundler (1.0.18) Using coffee-script-source (1.1.3) Using execjs (1.2.9) Using coffee-script (2.2.0) Using rack-ssl (1.3.2) Using json (1.6.1) Using rdoc (3.11) Using thor (0.14.6) Using railties (3.1.2) Using coffee-rails (3.1.1) Using orm_adapter (0.0.5) Using warden (1.1.0) Using devise (1.5.1) Using faker (1.0.1) Using rails (3.1.2) Using formtastic (2.0.2) Using formtastic-bootstrap (1.0.1) Using haml (3.1.3) Using launchy (2.0.5) Using rest-client (1.6.7) Using rubyzip (0.9.4) Using term-ansicolor (1.0.7) Using heroku (2.14.0) Using jquery-rails (1.0.18) Using kaminari (0.12.4) Using populator (1.0.0) Using sass (3.1.10) Using sass-rails (3.1.5) Using sequel (3.20.0) Using sinatra (1.0) Using sqlite3 (1.3.4) Using sqlite3-ruby (1.3.3) Using taps (0.3.23) Using turn (0.8.2) Using uglifier (1.1.0) Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed. </code></pre> <p>Rubygems version:</p> <pre><code>cobychapple at shiva in ~/code/zzz on master ± gem -v 1.8.10 </code></pre>
0non-cybersec
Stackexchange
Ryze should thematically be able to ult out of the death realm. Just think about it. For an ability called "Realm Warp," it's pretty disappointing to see that he can't warp out of "the death realm." I think it'd be a cool thing to add gameplay and lore-wise that wouldn't really raise too many issues with inconsistency. After all, there are already several ways to get out of Morde ult.
0non-cybersec
Reddit
Line integral over smooth curves. <p>Let $C$ be the line segment from $(0,0)$ to $(1,1)$. Compute $\int_{C}{(3x^2y^2+1) \, dx + (2x^3y) \, dy}$.</p> <p>I did this by setting $x=t$ which implied $y=t$ along $C$. Thus, the integral became</p> <p>$$\int_0^1 (5t^5+1) \, dt=2$$</p> <p>Now, if we choose some other smooth curve $C^'$ from $(0,0)$ to $(1,1)$, then what can we say about the value of</p> <p>$$\int_{C^'} (3x^2y^2+1) \, dx + (2x^3y) \, dy?$$</p>
0non-cybersec
Stackexchange
I think this was a success for the media today regarding Canada.
0non-cybersec
Reddit
Pairwise disjoint or disjoint?. <p>I am reading Lebesgue measure. In many situations I have found that the author says <em>pairwise disjoint</em> collection of subsets of <span class="math-container">$\mathbb{R}$</span> and in some others simply <em>disjoint</em>. What is the difference in Mathematics?</p>
0non-cybersec
Stackexchange
Election fraud: Why a Kansas mathematician is suing the state. Lately there's been some news about a Kansas mathematician, Beth Clarkson, suing the state for voting records to either prove or disprove election fraud. She's currently being barred access to the voting records. Her research uses statistics to point out how results are skewed in favor of certain candidates -- in other words, she shows how someone must have tampered with results for them to be what they are. It's not particularly hard to understand, but most news stories skip the technical explanation. I think that's a shame; people deserve to see it when their elections are being rigged. So here's a quick picture-based explanation. All the pictures in these albums are taken from the 2012 paper she's basing her research off of. The topic is currently relevant due to her difficulty in getting access to voting records. First, an explanation of the concept and a look at the Republican nomination in 2012: http://imgur.com/a/BfLmH (Romney gained a lot of votes.) Then, some examples of the same issue from the 2008 general election. McCain, the Republican candidate, won a large number votes from Obama using the same pattern. http://imgur.com/a/tGosA It's important to note that, a) This is not a statistical anomaly. It's described by the authors as "a veritable mathematical impossibility". b) No Democratic candidate gained a sizable number of votes from this pattern. c) The perpetrator could be a single agent, but it looks very likely that there *is* a perpetrator. Read the full paper here: http://madisonvoices.com/pdffiles/2008_2012_ElectionsResultsAnomaliesAndAnalysis_V1.5.pdf Read a newer piece by the Kansas mathematician, Beth Clarkson, here: http://www.statslife.org.uk/significance/politics/2288-how-trustworthy-are-electronic-voting-systems-in-the-us And here's a recent article about how she's not allowed access to the voting records: http://americablog.com/2015/08/mathematician-actual-voter-fraud-kansas-republicans.html
0non-cybersec
Reddit
ON/OFF charger has been removed from your pc. <p>Since the last Windows 10 update, I've been getting this notification <em>every time I boot</em>. Does anybody know what the heck it is? And how to stop it complaining at me?</p> <p><a href="https://i.stack.imgur.com/T5nQu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T5nQu.png" alt="enter image description here"></a></p> <p>My PC was originally an iBuyPower custom build, but I've swapped out a few components since. It has an i5-2550K CPU on a Gigabyte GA-Z68AP-D3 motherboard. Not sure if that might be relevant.</p>
0non-cybersec
Stackexchange