text
stringlengths 3
1.74M
| label
class label 2
classes | source
stringclasses 3
values |
---|---|---|
How to set CSS attributes to default values for a specific element (or prevent inheritance). <p>Given any HTML element that is a child of another element and is automatically inheriting a series of CSS attributes: how can you set one (or all) of those attributes to the default value?</p>
<p>Example:</p>
<p>CSS:</p>
<pre><code>.navigation input {
padding: 0;
margin: 0 30em;
}
</code></pre>
<p>HTML</p>
<pre><code><div class="navigation">
Some text: <input type="text" name="one" />
More text: <input type="text" name="two" />
<!-- The next input, I want it to be as browser-default -->
<div class="child">
<input type="text" name="three">
</div>
</div>
</code></pre>
<p>Here, by <strong>browser-default</strong> I mean I want it to look exactly as if no CSS at all was applied to that element.</p>
<p>Here I'm using an <code>input</code> element as an example, but I'm talking about any kind of element. I'm not asking how to set different CSS attributes to that specific element, I'm asking how to <strong>reset</strong> it to its defaults.</p>
<p>Different elements have different default attributes like <code>padding</code> when they are not set. For example, a <code>button</code> that has a padding of <code>0</code> in CSS will wrap its text without any space. You can later set its padding to another value, but how would you set it to the default padding?</p>
<p>Thanks in advance for any comments!</p>
| 0non-cybersec
| Stackexchange |
Has anyone tried the TinyScreen OLEDs?. As the title says, has anyone played around with [these](https://tinycircuits.com/products/tinyscreen) at all?
I have a lot of experience with the pi, but none with an arduino. These are TINY arduino based screens (and other devices) that seem to be self contained arduino systems. I have a pair of "VR" HUD glasses ([Virtual IO iGlasses](http://www.amigahistory.plus.com/virtualio.html)) from the 90s that don't work. Gutted them down to just the screens and driver board, and added a pi zero. Got video working and the display is.. Well.. Disappointing.
They came with dual 0.7" lcd screens and I'm looking for alternatives to upgrade. These may just complicate things since they are individual self contained arduinos, but they are i2c and they offer two addresses for the ability to use two simultaneously. | 0non-cybersec
| Reddit |
"Just trying to marry someone so I don't snap and chain someone in my basement". | 0non-cybersec
| Reddit |
failed with exit status 69. <p>I'm trying to install a Python package (PIP) junos-eznc on MAC OS X Yosemite V10.10.1 and I'm not sure why i'm getting the following error? </p>
<p>"error: command '/usr/bin/clang' failed with exit status 69"</p>
<p><strong>That's the output log:</strong></p>
<pre><code>mac231s-MacBook-Air:~ macbookair$ pip install junos-eznc
Requirement already satisfied (use --upgrade to upgrade): junos-eznc in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
Downloading/unpacking lxml>=3.2.4 (from junos-eznc)
Downloading lxml-3.4.1.tar.gz (3.5MB): 3.5MB downloaded
Running setup.py (path:/private/var/folders/g_/4gqvq3096kg5sg6thyyh3j4h0000gp/T/pip_build_macbookair/lxml/setup.py) egg_info for package lxml
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
Building lxml version 3.4.1.
Building without Cython.
Using build configuration of libxslt 1.1.28
warning: no previously-included files found matching '*.py'
Downloading/unpacking ncclient>=0.4.1 (from junos-eznc)
Downloading ncclient-0.4.3.tar.gz (55kB): 55kB downloaded
Running setup.py (path:/private/var/folders/g_/4gqvq3096kg5sg6thyyh3j4h0000gp/T/pip_build_macbookair/ncclient/setup.py) egg_info for package ncclient
Requirement already satisfied (use --upgrade to upgrade): paramiko in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from junos-eznc)
Downloading/unpacking scp>=0.7.0 (from junos-eznc)
Downloading scp-0.8.0.tar.gz
Running setup.py (path:/private/var/folders/g_/4gqvq3096kg5sg6thyyh3j4h0000gp/T/pip_build_macbookair/scp/setup.py) egg_info for package scp
Downloading/unpacking jinja2>=2.7.1 (from junos-eznc)
Downloading Jinja2-2.7.3.tar.gz (378kB): 378kB downloaded
Running setup.py (path:/private/var/folders/g_/4gqvq3096kg5sg6thyyh3j4h0000gp/T/pip_build_macbookair/jinja2/setup.py) egg_info for package jinja2
warning: no files found matching '*' under directory 'custom_fixers'
warning: no previously-included files matching '*' found under directory 'docs/_build'
warning: no previously-included files matching '*.pyc' found under directory 'jinja2'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
warning: no previously-included files matching '*.pyo' found under directory 'jinja2'
warning: no previously-included files matching '*.pyo' found under directory 'docs'
Downloading/unpacking PyYAML>=3.10 (from junos-eznc)
Downloading PyYAML-3.11.tar.gz (248kB): 248kB downloaded
Running setup.py (path:/private/var/folders/g_/4gqvq3096kg5sg6thyyh3j4h0000gp/T/pip_build_macbookair/PyYAML/setup.py) egg_info for package PyYAML
Downloading/unpacking netaddr (from junos-eznc)
Downloading netaddr-0.7.13-py2.py3-none-any.whl (1.5MB): 1.5MB downloaded
Requirement already satisfied (use --upgrade to upgrade): setuptools>0.6 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from ncclient>=0.4.1->junos-eznc)
Downloading/unpacking markupsafe (from jinja2>=2.7.1->junos-eznc)
Downloading MarkupSafe-0.23.tar.gz
Running setup.py (path:/private/var/folders/g_/4gqvq3096kg5sg6thyyh3j4h0000gp/T/pip_build_macbookair/markupsafe/setup.py) egg_info for package markupsafe
Installing collected packages: lxml, ncclient, scp, jinja2, PyYAML, netaddr, markupsafe
Running setup.py install for lxml
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
Building lxml version 3.4.1.
Building without Cython.
Using build configuration of libxslt 1.1.28
building 'lxml.etree' extension
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/libxml2 -I/private/var/folders/g_/4gqvq3096kg5sg6thyyh3j4h0000gp/T/pip_build_macbookair/lxml/src/lxml/includes -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.6-intel-2.7/src/lxml/lxml.etree.o -w -flat_namespace
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
error: command '/usr/bin/clang' failed with exit status 69
Complete output from command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools, tokenize;__file__='/private/var/folders/g_/4gqvq3096kg5sg6thyyh3j4h0000gp/T/pip_build_macbookair/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/g_/4gqvq3096kg5sg6thyyh3j4h0000gp/T/pip-r8LGdK-record/install-record.txt --single-version-externally-managed --compile:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
Building lxml version 3.4.1.
Building without Cython.
Using build configuration of libxslt 1.1.28
running install
running build
running build_py
creating build
creating build/lib.macosx-10.6-intel-2.7
creating build/lib.macosx-10.6-intel-2.7/lxml
copying src/lxml/__init__.py -> build/lib.macosx-10.6-intel-2.7/lxml
copying src/lxml/_elementpath.py -> build/lib.macosx-10.6-intel-2.7/lxml
copying src/lxml/builder.py -> build/lib.macosx-10.6-intel-2.7/lxml
copying src/lxml/cssselect.py -> build/lib.macosx-10.6-intel-2.7/lxml
copying src/lxml/doctestcompare.py -> build/lib.macosx-10.6-intel-2.7/lxml
copying src/lxml/ElementInclude.py -> build/lib.macosx-10.6-intel-2.7/lxml
copying src/lxml/pyclasslookup.py -> build/lib.macosx-10.6-intel-2.7/lxml
copying src/lxml/sax.py -> build/lib.macosx-10.6-intel-2.7/lxml
copying src/lxml/usedoctest.py -> build/lib.macosx-10.6-intel-2.7/lxml
creating build/lib.macosx-10.6-intel-2.7/lxml/includes
copying src/lxml/includes/__init__.py -> build/lib.macosx-10.6-intel-2.7/lxml/includes
creating build/lib.macosx-10.6-intel-2.7/lxml/html
copying src/lxml/html/__init__.py -> build/lib.macosx-10.6-intel-2.7/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.macosx-10.6-intel-2.7/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.macosx-10.6-intel-2.7/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.macosx-10.6-intel-2.7/lxml/html
copying src/lxml/html/builder.py -> build/lib.macosx-10.6-intel-2.7/lxml/html
copying src/lxml/html/clean.py -> build/lib.macosx-10.6-intel-2.7/lxml/html
copying src/lxml/html/defs.py -> build/lib.macosx-10.6-intel-2.7/lxml/html
copying src/lxml/html/diff.py -> build/lib.macosx-10.6-intel-2.7/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.macosx-10.6-intel-2.7/lxml/html
copying src/lxml/html/formfill.py -> build/lib.macosx-10.6-intel-2.7/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.macosx-10.6-intel-2.7/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.macosx-10.6-intel-2.7/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.macosx-10.6-intel-2.7/lxml/html
creating build/lib.macosx-10.6-intel-2.7/lxml/isoschematron
copying src/lxml/isoschematron/__init__.py -> build/lib.macosx-10.6-intel-2.7/lxml/isoschematron
copying src/lxml/lxml.etree.h -> build/lib.macosx-10.6-intel-2.7/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.macosx-10.6-intel-2.7/lxml
copying src/lxml/includes/c14n.pxd -> build/lib.macosx-10.6-intel-2.7/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.macosx-10.6-intel-2.7/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.macosx-10.6-intel-2.7/lxml/includes
copying src/lxml/includes/etreepublic.pxd -> build/lib.macosx-10.6-intel-2.7/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.macosx-10.6-intel-2.7/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.macosx-10.6-intel-2.7/lxml/includes
copying src/lxml/includes/schematron.pxd -> build/lib.macosx-10.6-intel-2.7/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.macosx-10.6-intel-2.7/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.macosx-10.6-intel-2.7/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.macosx-10.6-intel-2.7/lxml/includes
copying src/lxml/includes/xmlerror.pxd -> build/lib.macosx-10.6-intel-2.7/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.macosx-10.6-intel-2.7/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.macosx-10.6-intel-2.7/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.macosx-10.6-intel-2.7/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.macosx-10.6-intel-2.7/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.macosx-10.6-intel-2.7/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.macosx-10.6-intel-2.7/lxml/includes
creating build/lib.macosx-10.6-intel-2.7/lxml/isoschematron/resources
creating build/lib.macosx-10.6-intel-2.7/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.macosx-10.6-intel-2.7/lxml/isoschematron/resources/rng
creating build/lib.macosx-10.6-intel-2.7/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.macosx-10.6-intel-2.7/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.macosx-10.6-intel-2.7/lxml/isoschematron/resources/xsl
creating build/lib.macosx-10.6-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.macosx-10.6-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.macosx-10.6-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.macosx-10.6-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.macosx-10.6-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.macosx-10.6-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.macosx-10.6-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.macosx-10.6-intel-2.7
creating build/temp.macosx-10.6-intel-2.7/src
creating build/temp.macosx-10.6-intel-2.7/src/lxml
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/libxml2 -I/private/var/folders/g_/4gqvq3096kg5sg6thyyh3j4h0000gp/T/pip_build_macbookair/lxml/src/lxml/includes -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.6-intel-2.7/src/lxml/lxml.etree.o -w -flat_namespace
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
error: command '/usr/bin/clang' failed with exit status 69
----------------------------------------
Cleaning up...
Command /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools, tokenize;__file__='/private/var/folders/g_/4gqvq3096kg5sg6thyyh3j4h0000gp/T/pip_build_macbookair/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/g_/4gqvq3096kg5sg6thyyh3j4h0000gp/T/pip-r8LGdK-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/g_/4gqvq3096kg5sg6thyyh3j4h0000gp/T/pip_build_macbookair/lxml
Storing debug log for failure in /Users/macbookair/.pip/pip.log
</code></pre>
| 0non-cybersec
| Stackexchange |
Why isn't it possible to name a folder "._." in Windows 7?. <p>I just noticed that it is not possible to name a folder <code>._.</code> - it gets named <code>._</code> instead. Sometimes, it disappears just after naming it but reappears after refreshing the view. Windows seems to have a problem with dots at the end of a filename - why is this?</p>
| 0non-cybersec
| Stackexchange |
OpenVPN client site network routing. <p>I have the following openvpn setup, the goal is to make host D can connect to any of the computer(linux) in the corporate network to do some maintaining job: </p>
<pre><code> corporate network remote vpn server
============================================= =====================
A B C(vpn client) D(vpn server)
10.0.10.101 ---- 10.0.10.100 |
10.0.51.100 ---- 10.0.51.101 |
10.8.1.2 ---|-- 10.8.1.1
|
</code></pre>
<p>host B route table:</p>
<pre><code>10.8.1.0/24 via 10.0.51.101
</code></pre>
<p>host C route table:</p>
<pre><code>10.0.10.0/24 via 10.0.51.100
</code></pre>
<p>host D route table:</p>
<pre><code>10.0.10.0/24 via 10.8.1.2
10.0.51.0/24 via 10.8.1.2
</code></pre>
<p>The openvpn is being setup with subnet topology, which links corporate network subnet 10.0.51.0/24. </p>
<p>My purpose is to make host D can link with host A, here is the progress I made:</p>
<ol>
<li>B ping through D(10.8.1.1): OK</li>
<li>D ping through B(10.0.10.100): Failed</li>
<li>D ping through B(10.0.51.100): OK</li>
<li>B ping C 10.0.51.101/10.8.1.2: OK</li>
<li>C ping B(10.0.10.100/10.0.51.100): OK</li>
</ol>
<p>It seems that route 10.0.10./24 via 10.8.1.2 being ignored when doing traceroute. How can I setup to make the host D on subnet 10.0.51.0/24 link to 10.0.10.0/24?</p>
| 0non-cybersec
| Stackexchange |
I caught my girlfriend (29F) texting another guy in a flirty way. How should I (29M) react?. To set the stage, I’ve been dating my girlfriend seriously for about a year now, total for about 2 years, and we are at the stage of talking about moving in together.
Yesterday, I was using my girlfriend’s computer for a minute to search something on Google and saw that her WhatsApp popped up. A guy texted her that I didn’t know. I saw that they had sent pornhub links to each other as “a joke”. Curious, I decided to read through their prior text messages (I’m not proud of this). There was a history of them texting for a long time, mostly innocuous stuff, talking about skiing or sending memes to each other, but definitely with a flirty vibe. I then read him talking about them having a threesome together, and she had responded that that was “her dream”.
After reading this, I was in shock and confronted her immediately - I was already at her house in quarantine. I talked through it with her and told her I didn’t know what to make of this, does she have feelings for this guy, or if there’s something I’m doing that isn’t fulfilling her needs. She claimed that this guy was her friend for a few years, they had a lot in common and she just saw him as a friend only. She said her texts were meant just to be fun, and it’s just her style of communicating.
Since yesterday, she’s been really remorseful about the whole episode. She read through the texts again and agreed they crossed the line and apologized. She told me that she had texted her friend and let him know that their messages had caused a big fight between herself and me and it’s better they don’t talk anymore.
Overall, I’m really hurt about what happened. If this had happened early on in our relationship, I would be more understanding, but we are serious now so this has hurt more. I want to believe that she was just “joking” and he’s just a friend, but the fact that she never has mentioned him to me makes me feel doubtful about this. She’s 29, an adult and knows what she’s doing at this point. It does make me feel better that she texted this guy after the event (assuming she’s truthful) and set boundaries with him.
I’m back at my place, and I haven’t made any decisions either way yet. I’m not sure if I’m making this too big a deal, or not enough of a big deal. I don’t know if I should I (1) make a boundaries chat or (2) do more serious things, like require her to let me read through her phone, or maybe even leave her entirely.
Would love advice here, thanks! Let me know if I can provide any clarification.
ONE WEEK LATER UPDATE:
Thank you all SO MUCH for the advice! The comments here really helped me think through this all.
After much thought, I ended up telling her that I lost my trust of her, and I didn’t believe her story of it being a little mistake, but was willing to give it one more shot anyways. She needs to work to rebuild my trust of her. She responded to all of this quietly and accepting, which I think given the circumstances is understandable. We are going to take it day by day, but I’m hopeful that we can rebuild trust together.
New question for you all: to close the loop, I asked my girlfriend to message the guy she’s been talking to and set boundaries, which she said she did. However, do you think it’s fair of me to ask to see those messages? Because I’ve lost trust of her, I have this thought in the back of my mind of what if she didn’t actually message him? Should I take her word for it, or ask for proof? | 0non-cybersec
| Reddit |
Is there something about drinking cold water that is physiologically more hydrating as opposed to drinking lukewarm or hot water?. I have noticed after finishing running when I drink ice cold water I feel more hydrated than when I drink lukewarm water. Is it more of a mentality with the colder water or does the temperature difference help the body cooler faster? | 0non-cybersec
| Reddit |
Monkey Attacks Drone. | 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 |
Multiple DatePickers in same activity. <p>I am absolutely new to the Android platform and have been building an application while learning the development process.</p>
<p>Currently, I am working on an activity in which i need to deploy 2 date pickers. One is a "Start Date" and the other is an "End date". I have been following the DatePicker tutorial on the android developers page here: <a href="http://developer.android.com/resources/tutorials/views/hello-datepicker.html" rel="noreferrer">http://developer.android.com/resources/tutorials/views/hello-datepicker.html</a></p>
<p>For one DatePicker, it works just fine.</p>
<p>Now my problem is, when I replicate the whole process for a second date picker, it shows up just fine on the emulator as well as on the handset. But when no matter which button I press to select the dates, only the first TextView is updated and the second TextView keeps showing the current date.</p>
<p>Here is the code:</p>
<pre><code>package com.datepicker;
import java.util.Calendar;
import android.app.Activity;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.DatePicker;
import android.widget.TextView;
public class datepicker extends Activity {
private TextView mDateDisplay;
private TextView endDateDisplay;
private Button mPickDate;
private Button endPickDate;
private int mYear;
private int mMonth;
private int mDay;
static final int START_DATE_DIALOG_ID = 0;
static final int END_DATE_DIALOG_ID = 0;
/** Called when the activity is first created. */
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
/* capture our View elements for the start date function */
mDateDisplay = (TextView) findViewById(R.id.startdateDisplay);
mPickDate = (Button) findViewById(R.id.startpickDate);
/* add a click listener to the button */
mPickDate.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
showDialog(START_DATE_DIALOG_ID);
}
});
/* get the current date */
final Calendar c = Calendar.getInstance();
mYear = c.get(Calendar.YEAR);
mMonth = c.get(Calendar.MONTH);
mDay = c.get(Calendar.DAY_OF_MONTH);
/* display the current date (this method is below) */
updateStartDisplay();
/* capture our View elements for the end date function */
endDateDisplay = (TextView) findViewById(R.id.enddateDisplay);
endPickDate = (Button) findViewById(R.id.endpickDate);
/* add a click listener to the button */
endPickDate.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
showDialog(END_DATE_DIALOG_ID);
}
});
/* get the current date */
final Calendar c1 = Calendar.getInstance();
mYear = c1.get(Calendar.YEAR);
mMonth = c1.get(Calendar.MONTH);
mDay = c1.get(Calendar.DAY_OF_MONTH);
/* display the current date (this method is below) */
updateEndDisplay();
}
private void updateEndDisplay() {
endDateDisplay.setText(
new StringBuilder()
// Month is 0 based so add 1
.append(mMonth + 1).append("-")
.append(mDay).append("-")
.append(mYear).append(" "));
}
private void updateStartDisplay() {
mDateDisplay.setText(
new StringBuilder()
// Month is 0 based so add 1
.append(mMonth + 1).append("-")
.append(mDay).append("-")
.append(mYear).append(" "));
}
</code></pre>
<p>/* the callback received when the user "sets" the date in the dialog for the start date function */ </p>
<pre><code> private DatePickerDialog.OnDateSetListener mDateSetListener =
new DatePickerDialog.OnDateSetListener() {
public void onDateSet(DatePicker view, int year,
int monthOfYear, int dayOfMonth) {
mYear = year;
mMonth = monthOfYear;
mDay = dayOfMonth;
updateStartDisplay();
}
};
@Override
protected Dialog onCreateDialog(int id) {
switch (id) {
case START_DATE_DIALOG_ID:
return new DatePickerDialog(this,
mDateSetListener,
mYear, mMonth, mDay);
}
return null;
}
/* the callback received when the user "sets" the date in the dialog for the end date function */
private DatePickerDialog.OnDateSetListener endDateSetListener =
new DatePickerDialog.OnDateSetListener() {
public void onDateSet(DatePicker view, int year,
int monthOfYear, int dayOfMonth) {
mYear = year;
mMonth = monthOfYear;
mDay = dayOfMonth;
updateStartDisplay();
}
};
protected Dialog onCreateDialog1(int id) {
switch (id) {
case END_DATE_DIALOG_ID:
return new DatePickerDialog(this,
endDateSetListener,
mYear, mMonth, mDay);
}
return null;
}
</code></pre>
<p>}</p>
<p>Please advise on the changes required for the code.</p>
| 0non-cybersec
| Stackexchange |
There was an attempt to open a keg (X-post from Gifs). | 0non-cybersec
| Reddit |
Not even retail is safe. | 0non-cybersec
| Reddit |
A jet powered hoverboard just smashed a world record - Flyboard Air inventor Franky Zapata sets Guinness World Record for farthest hoverboard flight. | 0non-cybersec
| Reddit |
Every time on creative.... | 0non-cybersec
| Reddit |
Is there a Serre Tor formula for nonproper intersections?. <p>Background: Let $X$ be a smooth complex projective algebraic variety, and let $V$ and $W$ be closed subvarieties. For simplicity, let's assume that $\dim V+\dim W=\dim X$.</p>
<p>Now Serre's famous Tor formula says that if $V\cap W$ has dimension zero, we have:</p>
<p>$$V\cdot W=\sum_{Z\subset V\cap W}\sum_{i=0}^\infty(-1)^i\operatorname{length}_{\mathcal O_{X,z}}\operatorname{Tor}_{\mathcal O_{X,z}}^i(\mathcal O_{X,z}/I_V,\mathcal O_{X,z}/I_W)$$</p>
<p>where the sum is over the irreducible components of $V\cap W$ (in this case, a finite number of points).</p>
<p>However (according to Wikipedia <a href="http://en.wikipedia.org/wiki/Intersection_theory_%28mathematics%29">here</a>), if $Z$ is an irreducible component of $V\cap W$ with positive dimension (this is called a nonproper intersection), then the alternating sum of $\operatorname{Tor}$'s, which I'll call $\mu(Z;V,W)$, is zero. Unfortunately, this means it cannot be used in exactly the same way as before to calculate $V\cdot W$. For example, if $V=W$, then the answer would always be zero, though certainly there exist half-dimensional varieties $V$ with $V\cdot V\ne 0$ (in fact it can even be negative).</p>
<p>Is it possible to remedy this situation? How does one count the intersection multiplicity if the intersection is not proper?</p>
<p>Comment: I know how to compute the self-intersection $V\cdot V$ as the top chern class of the normal bundle evaluated on $[V]$. I'm looking here for an answer that's the most general, i.e. applies to all $V$ and $W$ of complementary dimension, regardless of the dimension of their intersection.</p>
| 0non-cybersec
| Stackexchange |
I stopped for a pedestrian at shaded crosswalk today and the SUV behind me ended up inches from striking them. [Canada] [OC]. | 0non-cybersec
| Reddit |
How can I build an env file (with $ characters) listing as-is from echo command?. <p>I am trying to build a file invoked from a script that echoes what is in quotes to a file - only, the <code>$</code> gets omitted.</p>
<p>This is what I was trying to do:</p>
<pre><code>echo -e "export ORACLE_BASE=/oracle/APP/grid \n
export ORACLE_HOME=/oracle/APP/grid/12.1.0/grid\n
export PATH=$ORACLE_HOME/bin:$PATH\n export ORACLE_SID=+ASM”>/home/oragrid/ASM.env
</code></pre>
<p>But it doesn't quite <code>echo</code> into the file.</p>
| 0non-cybersec
| Stackexchange |
How to obtain info about physical volume as non root user. <p>Hello the pvs command gives me the following output:</p>
<pre><code> PV VG Fmt Attr PSize PFree
/dev/sd** ***** lvm2 a- 59.49g 47.49g
/dev/sd** ***** lvm2 a- 25.00g 8.00m
</code></pre>
<p>This only works if I am root user.</p>
<p>Can a different command be used to get this info as a non-root user. </p>
| 0non-cybersec
| Stackexchange |
How to verify scanned page count and quality when using sheet feeder?. <p>I would like to scan old text documents, and then destroy some of the originals. There would be a few thousand sides of A4.</p>
<p>To do this I will need some procedure to "QC" that all the pages have been scanned, and that the scanned pages are readable.</p>
<p>Is there any way to do this other than spot checks?</p>
| 0non-cybersec
| Stackexchange |
Graphic Evidence Against Steroid Abuse [PICS]. | 0non-cybersec
| Reddit |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
Injectivity of the cohomology map associated to the pullback of line bundles. <p>Let <span class="math-container">$f:X\to Y$</span> be a flat, surjective, smooth morphism between smooth algebraic varieties (over <span class="math-container">$\mathbb C$</span>). We assume that <span class="math-container">$f$</span> has relative dimension <span class="math-container">$n$</span> and we assume also that <span class="math-container">$\dim Y\ge 2$</span> (just to avoid the case of a curve that might be easier).</p>
<p>Let <span class="math-container">$L$</span> be a line bundle on <span class="math-container">$Y$</span>, then we have a homomorphism in sheaf cohomology:</p>
<p><span class="math-container">$$H^p(Y,L)\to H^p(X, f^\ast L) \quad\text{for } p=0,1,\ldots,\dim Y $$</span></p>
<p>Can we say anything about the injectivity of this map? Do we need some additional condition on <span class="math-container">$f$</span>?</p>
| 0non-cybersec
| Stackexchange |
Customize flask form as table. <p>I've been biting my nails on this one for quite some time. In my Flask-app I currently have a product-database, for which in the app I have a page that queries each product column into a table. </p>
<p>For example I'd have product <code>1234</code> for which I could view the details (i.e. database columns) in <code>example.com/items/1234</code> which would give me the following: </p>
<pre><code><div class="container">
<div class="content">
<a href="/item">Back</a>
<table class="table">
<thead>
<tr>
<th>#</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Detail-1<th>
<td>Example</td>
</tr>
<tr>
<th scope="row">Detail-2</th>
<td>Example</td>
</tr>
</code></pre>
<p>What I'm struggling with is the following: </p>
<p>I'd like to be able to add new products with same table-style. For this I have created a form like the following:</p>
<pre><code>class NewArticleForm(FlaskForm):
detail_1 = StringField("Detail-1")
detail_2 = IntegerField("Detail-2")
...
submit = SubmitField("Submit")
</code></pre>
<p>I am now at a total loss on how to customize the form appearance in the template beyond just <code>{{ wtf.quick_form(form) }}</code>. What I tried is the following: </p>
<pre><code><form method="POST">
<table class="table">
{% for name in form %}
<tr>
<th scope="row">{{ name.label }}</th>
<td>{{ name }}</td>
</tr>
{% endfor %}
</table>
</form>
</code></pre>
<p>The table looks good (at least that) but the request is not being sent correctly I presume. The page loads correctly with <code>"POST /url HTTP/1.1"</code> but it doesn't seem to come through correctly. </p>
<p>What I mean by that is that though the request is being sent correctly, as I can see if I run the app via the Flask server. However it seems that nothing is transmitted to the database. The page simply reloads with the entered data still in the fields and nothing transmitted to the database. If I simply use the <code>wtf.quick_form</code> then the data is correctly sent to the database. </p>
<p>So how can I correctly customize the form appearance and/or crucial step did I miss?</p>
| 0non-cybersec
| Stackexchange |
New USB headset has buzzing/ringing background noise. <p>I bought the Sentey Symph USB headset on Amazon, which just arrived today and has been having trouble right out of the box. I don't believe the problem is the headset itself, because it has amazing audio and microphone (which only sounds good when listening to itself via headset software).</p>
<p>When I'm playing games or listening to music and other stuff it's fine, but when I'm just browsing the internet or something that doesn't involve sound is when the problem occurs. There is a few things that I can hear. There is a low pitch buzzing sound that can be heard all the time, and then there is this sound that changes in pitch randomly, goes up and down every few seconds which is also always audible.</p>
<p>I think the cause is USB interference because when I move my mouse or use the scroll wheel I can hear slight feedback in the headphones. When I listen to the microphone by redirecting the sound to the headset it sounds amazing, but when it actually gets to the computer it sounds horrible with crackling and static in the background. I can't skype with people because it's so bad.</p>
<p>I'm just trying to figure out what to do to fix it because I want to use the amazing headphones without the interference. I already tried a few things I found on the internet:</p>
<ul>
<li>Moving my PSU cord into the wall instead of the power strip</li>
<li>Taking out the mouse to see if it's only that</li>
<li>Moving the headset to different slots in the front and back</li>
<li>Putting it in a USB hub instead of the computer</li>
</ul>
<p>But nothing just seems to be working.</p>
<p>EDIT: even when the audio is muted on windows, I still hear strange noises that almost sound like radio waves as described above. I'm not sure if it's the DAC because even when the sound is disabled it's still getting interference.</p>
| 0non-cybersec
| Stackexchange |
Using undefined property in php class. <pre><code><?php
class a{
public function out(){
$this->test = 8;
return $this->test;
}
}
$b = new a();
echo $b->out();
?>
output: 8
</code></pre>
<p>when i run this code, output the result 8 .</p>
<p>but when i add __set() function, it output a notice, and not 8 output</p>
<pre><code><?php
class a{
public function __set($property, $value) {
}
public function out(){
$this->test = 8;
return $this->test;
}
}
$b = new a();
echo $b->out();
?>
</code></pre>
<p>output: </p>
<blockquote>
<p>PHP Notice: Undefined property: a::$test in /usercode/file.php on line
13</p>
</blockquote>
<p>why is it happening?</p>
| 0non-cybersec
| Stackexchange |
Storing app / site settings within mongodb using mongoose. <p>I have been developing a node.js based site which is already running successfully live and it uses mongodb as the backend storage using the mongoose.</p>
<p>The thing is that, I want to implement some configurable settings for site (which should be able to configured using the /backend/ page).</p>
<p>So I've to find out a way to store all those settings using the mongoose but I couldn't came with a schema that can fit the thing.</p>
<pre><code>var mongoose = require('mongoose');
var SettingsSchema = new mongoose.Schema({
});
mongoose.model('Settimgs', SettingsSchema);
</code></pre>
<p>Is there anyway that I can force a schema to have only a single document? So I can use the above schema with only one document and put all my required settings there.</p>
<p>Other than I've came with another idea where settings-schema collection will host multiple documents each with their unique section name as the following, but then the contents of the schema for each section should be different. One idea I came with is just storing section specific json as an object data without giving the model details;</p>
<pre><code>var mongoose = require('mongoose');
var SettingsSchema = new mongoose.Schema({
name: { type: String, lowercase: true, trim: true, unique: true, required: true }, // the settings section name
...
JSON-Object or JSON-string here?
Is {data: Object} a possible usage?
});
mongoose.model('Settimgs', SettingsSchema);
</code></pre>
<p>But if I can find a way to define models for sections, it'll be lot better & testable -- like a model for backend-settings and another for front-end settings which should be all stored in Settings collection somehow.</p>
<p>So what I'd like to have is;</p>
<pre><code>var BackendSchema = new mongoose.Schema({
.. backend related settings here..
});
var FrontendSchema = new mongoose.Schema({
.. frontend related settings here..
});
</code></pre>
<p>and finally have a master settings-schema to cover these together and save all those documents to a single collection.</p>
<p>I've searched for a while to see if any interesting reads are available on the topic but had no luck -- will be nice if you can post in case that you are aware of 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 |
Create RDP gateway in Raspberry Pi or Ubuntu. <p>I have a few systems in my local network and want to RDP them from the Internet. One method is to allocate different ports to each system for RDP and configure them in the router. However, what I need is to configure RDP in default mode.</p>
<p>For example <code><ip-address>:3389/ubuntu</code> should point to <code>192.168.1.102:3389</code>.<br>
Similarly, <code><ip-address>:3389/win7</code> shall point to <code>192.168.1.101:3389</code> and so on.</p>
<p>I searched Google but articles are related to Windows Server, where they prefer making an RDP gateway server. I a prefer a Linux system (and even better Raspberry Pi) to do this task for me. I tried some RDP related searches on Pi and got information on dnsmasq. But I guess its related to connect to outer network (websites) from local network instead of local network from outside network.</p>
<p>Is is possible? Any hint or link/reference will be very helpful.</p>
| 0non-cybersec
| Stackexchange |
Sorry nut sorry buckaroo this is a nut-free zone!. | 0non-cybersec
| Reddit |
[WP] After being shut down and disassembled, the first AI shows up in Heaven..... | 0non-cybersec
| Reddit |
Gotta fine a better way to take pictures of him. | 0non-cybersec
| Reddit |
Can a CSV contain malicious code?. <p>I am working with a system that allows users to upload CSV files, that are downloaded by other users.</p>
<p>The system validates (amongst other things) that all CSV files can be parsed by an RFC 4180 compliant parser, and are valid UTF-8. It ensures that when files are downloaded, they have <code>Content-Type: text/csv; charset=utf-8</code>, and <code>Content-Disposition: attachment; filename="download.csv"</code>.</p>
<p>A concern has been raised that the system could be used to transmit malware or malicious code.</p>
<p>Are there any known mechanisms where a malicious CSV file could cause code to be executed by the recipient? If so, is there any further validation that would reduce the risk posed?</p>
| 1cybersec
| Stackexchange |
Boot Camp Assistant: "Your disk could not be restored to a single partition.". <p>I want to delete my Windows partition and regrow my Mac partition to use the whole disk. But when I click Restore in the Boot Camp Assistant, it says:</p>
<blockquote>
<p>Your disk could not be restored to a single partition.</p>
<p>An error occurred while restoring the disk to a single partition.</p>
</blockquote>
<p>I'm using Mac OS X 10.8.5, on a mid-2009 MacBook Pro.</p>
| 0non-cybersec
| Stackexchange |
PsBattle: This cop riding a stuffed beaver.. | 0non-cybersec
| Reddit |
Share iTunes Library from Nas across several clients. How in Windows. <p>I found this article <a href="http://gigaom.com/apple/one-itunes-library-on-multiple-computers/" rel="nofollow noreferrer">http://gigaom.com/apple/one-itunes-library-on-multiple-computers/</a> which describes sharing a single library with multiple clients. Unfortunately this article is for Macs and I use Windows. The article mentions 3 jobs that need to be completed.'</p>
<p>A) - pointing all clients to the location of the Library. This is understandable and I can replicate using windows clients. </p>
<p>B) Universal Library Set-up. This mentions holing the option key and double click iTunes icon. This is so you can create the index at a specific location</p>
<p>C) Point clients to index. Again this mentions Option double click.</p>
<p>What is the Windows equivalent to option double click iTunes?</p>
| 0non-cybersec
| Stackexchange |
Pantheon and the Perseus Pantheon for US. E2XLRRFL2AKRKYA | 0non-cybersec
| Reddit |
Bear by Johnny Mac at True Grit Tattoo in Albuquerque, New Mexico. | 0non-cybersec
| Reddit |
My touchpad scroll is not working in windows 10. <p>I just shifted from windows 8.1 to windows 10. My touchpad scroll was working with windows 8.1 but not with windows 10. I'm not able to find the settings for touchpad in control panel they only give options for mouse.</p>
| 0non-cybersec
| Stackexchange |
Unbalanced shoulders. Long time lurker, trying to get into BWF. Quick question here, I just realized this morning that my shoulders are kinda unbalanced like so: http://imgur.com/GwQQMSG
I had a childhood injury somewhere between the ages of 6-8 where I dislocated my left shoulder (right in the picture), and I'm not sure if that caused the bulge there.
I'm pretty keen to start out with the RR, my rings (coz I don't have a proper place for a bar) are coming in the mail today!
Will this prevent me from getting any exercises done? Do I need to pay extra attention to any movements to help balance out my shoulders/not injure myself? Any tips for a beginner?
Thanks! | 0non-cybersec
| Reddit |
ln() and product confuse me. <p>I have this function:</p>
<p>$p(x_n;\mu) = \frac{1}{(2\pi)^{\frac{l}{2}}|\Sigma|^{\frac{1}{2}}}\exp\left(-\frac{1}{2}(x_n-\mu)^T\Sigma^{-1}(x_n-\mu)\right)$</p>
<p>And I have to compute this: $L(\mu) = \ln\left( \prod\limits_{n=1}^{N} p(x_n;\mu)\right)$ which should be equal to:</p>
<p>$-\frac{N}{2}\, \ln( \space (2\pi)^l|\Sigma|\space) \space- \space \frac{1}{2} \space \sum\limits_{n=1}^{N}(x_n-\mu)^T\Sigma^{-1}(x_n-\mu)$</p>
<p>Note: $\Sigma$ is a covariance matrix.</p>
<hr>
<p>From my attempt I have:</p>
<p>$\frac{1}{(2\pi)^{\frac{l}{2}}|\Sigma|^{\frac{1}{2}}} = \ln1 - \ln((2\pi)^{l/2}|\Sigma|^{1/2}) = - \ln((2\pi)^{l/2}|\Sigma|^{1/2}) = -\frac{L}{2}\ln2\pi - \frac{1}{2}\ln|\Sigma|$</p>
<p>and:</p>
<p>$\ln(\exp(-\frac{1}{2}(x_n-\mu)^T\Sigma^{-1}(x_n-\mu))) = -\frac{1}{2}(x_n-\mu)^T\Sigma^{-1}(x_n-\mu)$</p>
<p>but when I put everything together with the product, it doesn't work out, squares appear and it doesn't feel right...Can you help me please <em>understand</em>?</p>
| 0non-cybersec
| Stackexchange |
Crab Meat. So my fiance and I ended up with a small can of crab claw meat, fully cooked and ready to eat. We opened it yesterday intending to make sushi with it, but didn't use very much of it before making sushi became really tiring.
Whose got a good recipe for what to do with the rest of it tonight before it goes bad? | 0non-cybersec
| Reddit |
Psycho loses job after freak out over being asked to wear a mask.. | 0non-cybersec
| Reddit |
/u/flynavy88 describes the unique role of Jordan in the Middle East. | 0non-cybersec
| Reddit |
Lucasfilm art manager indicates that TLJ Luke was basically in-line with what George Lucas was going for with his Sequel Trilogy drafts. | 0non-cybersec
| Reddit |
Customizing source-highlight's color schemes?. <p>The <code>source-highlight</code> package is installed on my system. It highlights files I view with less using <code>/usr/bin/lesspipe</code> and <code>LESSOPEN</code> environment variable. </p>
<p>Now, I want to change the color scheme this mechanism uses for some/all filetypes. I have root on the machine. How do I do this?</p>
<p>Note: It's a Devuan 3 Beowulf (~= Debian 10 Buster) Linux distribution.</p>
| 0non-cybersec
| Stackexchange |
How does someone keep in touch with old friends without feeling annoying?. How can I keep in touch with old friends (especially if they live in a different city) without feeling annoying?
Sometimes I'll shoot them a text or definitely let them know I'm in town, but that usually feels like a surface interaction. | 0non-cybersec
| Reddit |
How to provide an icon for a dexterity type with Plone 5. <p>icon_expr is gone.</p>
<p>There is an related issue <a href="https://github.com/plone/Products.CMFPlone/issues/1236">https://github.com/plone/Products.CMFPlone/issues/1236</a>
concerning the problem but only for control-panel icons.</p>
<p>What is the appropriate way to add a icon to a dexterity content type in plone 5?</p>
<p>Any pointer welcome</p>
<p>Volker</p>
| 0non-cybersec
| Stackexchange |
Andre Ryan would be proud of this game. | 0non-cybersec
| Reddit |
Just built pc- "HDMI no signal". Just built pc- "HDMI no signal"
This Is my first pc build, the pc turns on yet when connected to the monitor it swap from "no cable connected" to "HDMI no signal". I have already tried fixing it by disabling the graphics card and plugging the hdmi cable into the motherboard yet it still didnt work.
Any suggestions before I have to rebuild? Anyone have the same problem?
PC Specs:
cpu: i7 6600k
cpu cooler: cryorig r1 ultimate
motherboard: msi-Z170A GAMING M5
ram:G.Skill - Ripjaws V Series 16GB
hd:Western Digital - Caviar Blue 1TB 3.5" 7200RPM
ssd:Samsung - 850 EVO-Series 250GB 2.5"
graphics card:MSI GeForce GTX 1080 Gaming X+8G
case: nzxt h440
power supply: evga supernova 750 g2
Thanks in advance! | 0non-cybersec
| Reddit |
Legend at a stop light who lit his joint with a magnifying glass. | 0non-cybersec
| Reddit |
Ancient Temple. | 0non-cybersec
| Reddit |
ffmpeg entropy/bitplanenoise/freezedetect filters correct usage. <p>I am writing a node js package aimed at testing video streams.</p>
<p>I want to implement such features as measuring entropy, bit plane noise and freeze detect wrapping the corresponding ffmpeg filters.</p>
<p>Currently i am having problems doing this (which i assume is the problem of incorrect syntax use):</p>
<ol>
<li><p>Seems my current version of ffmpeg (4.1.3) does not support freeze detect filter:</p>
<p><code>ffmpeg -filters | grep freeze
ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
built with Apple LLVM version 10.0.1 (clang-1001.0.46.3)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.1.3 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags='-I/Library/Java/JavaVirtualMachines/openjdk-12.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/openjdk-12.jdk/Contents/Home/include/darwin' --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-videotoolbox --disable-libjack --disable-indev=jack --enable-libaom --enable-libsoxr
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100</code></p>
<p><code>ffmpeg -i simps_mpeg.mp4 -vf freezedetect -f null -
ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
built with Apple LLVM version 10.0.1 (clang-1001.0.46.3)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.1.3 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags='-I/Library/Java/JavaVirtualMachines/openjdk-12.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/openjdk-12.jdk/Contents/Home/include/darwin' --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-videotoolbox --disable-libjack --disable-indev=jack --enable-libaom --enable-libsoxr
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'simps_mpeg.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf58.20.100
Duration: 00:00:09.72, start: 0.000000, bitrate: 1129 kb/s
Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1128 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 24k tbc (default)
Metadata:
handler_name : Core Media Video
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
[AVFilterGraph @ 0x7fb1a1d13ec0] No such filter: 'freezedetect'
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
Conversion failed!</code></p></li>
<li><p>entropy filter does not output anything related to entropy measurement</p>
<p><code>ffmpeg -i simps_mpeg.mp4 -vf entropy -f null -
ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
built with Apple LLVM version 10.0.1 (clang-1001.0.46.3)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.1.3 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags='-I/Library/Java/JavaVirtualMachines/openjdk-12.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/openjdk-12.jdk/Contents/Home/include/darwin' --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-videotoolbox --disable-libjack --disable-indev=jack --enable-libaom --enable-libsoxr
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'simps_mpeg.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf58.20.100
Duration: 00:00:09.72, start: 0.000000, bitrate: 1129 kb/s
Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1128 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 24k tbc (default)
Metadata:
handler_name : Core Media Video
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
Output #0, null, to 'pipe:':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf58.20.100
Stream #0:0(und): Video: wrapped_avframe, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 23.98 fps, 23.98 tbn, 23.98 tbc (default)
Metadata:
handler_name : Core Media Video
encoder : Lavc58.35.100 wrapped_avframe
frame= 233 fps=0.0 q=-0.0 Lsize=N/A time=00:00:09.71 bitrate=N/A speed=25.7x
video:122kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown</code></p></li>
<li><p>same problem with bitplanenoise filter - no output with bit plane noise measurement:</p>
<p><code>ffmpeg -i simps_mpeg.mp4 -vf bitplanenoise -f null -
ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
built with Apple LLVM version 10.0.1 (clang-1001.0.46.3)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.1.3 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags='-I/Library/Java/JavaVirtualMachines/openjdk-12.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/openjdk-12.jdk/Contents/Home/include/darwin' --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-videotoolbox --disable-libjack --disable-indev=jack --enable-libaom --enable-libsoxr
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'simps_mpeg.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf58.20.100
Duration: 00:00:09.72, start: 0.000000, bitrate: 1129 kb/s
Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1128 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 24k tbc (default)
Metadata:
handler_name : Core Media Video
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
Output #0, null, to 'pipe:':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf58.20.100
Stream #0:0(und): Video: wrapped_avframe, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 23.98 fps, 23.98 tbn, 23.98 tbc (default)
Metadata:
handler_name : Core Media Video
encoder : Lavc58.35.100 wrapped_avframe
frame= 233 fps=0.0 q=-0.0 Lsize=N/A time=00:00:09.71 bitrate=N/A speed=12.2x
video:122kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown</code></p></li>
</ol>
<p>Regarding freezedetect: is this filter outdated?</p>
<p>ffpmeg ver. 4.1.3, OS: MacOS Mojave 10.14.5</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 |
Configure VPS to access SSH with subdomain. <p>Well, I just bought a unmanaged VPS with DirectSpace to try the service out.
I'm currently able to access it through the two IP adresses that they gave me, but now I'd like to get access to it through my Domain, which I get with GoDaddy through GoogleApps.</p>
<p>I'd like to be able to do something like</p>
<pre><code>ssh [email protected]
</code></pre>
<p>and get access to the shell this way.
Also, since I'm using the GoDaddy Name Servers and they are working good enough, I wouldn't like reassign them to my own host (ns1.mydomain.com, ns2.mydomain.com).</p>
<p>I've read somewhere that it is posible by setting an A Record, but honestly I'm lost.
Finally, I'd like to be able to use the VPS for hosting my own Web Site and also some other Customer Sites (with its own domains), so please, let me know if somebody can give me a clue on this.</p>
<p>Regards.</p>
| 0non-cybersec
| Stackexchange |
Command re-assigned. <p>I found a Bash script snippet earlier with which to echo a string to stderr:</p>
<pre><code>echoerr() { echo "$@" 1>&2; }
echoerr hello world
</code></pre>
<p>This remained in my clipboard, and when I wanted to edit a file (with VIM) I accidentally pasted this snippet again instead of the file name:</p>
<pre><code>vim echoerr() { echo "$@" 1>&2; }
echoerr hello world
</code></pre>
<p>It seems to have re-assigned <code>echoerr</code> to <code>vim</code>:</p>
<pre><code>$ where vim
vim () {
echo "$@" 1>&2;
}
/usr/bin/vim
</code></pre>
<p>Also, attempting to open a file with VIM now just echos the file name back:</p>
<pre><code>vim path/to/some-file
</code></pre>
<p>Prints:</p>
<pre><code>path/to/some-file
</code></pre>
<p><strong>What happened?</strong> (I'm running zsh inside tmux)</p>
| 0non-cybersec
| Stackexchange |
SSH "sleeping" for a long time before connect?. <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://unix.stackexchange.com/questions/5621/how-to-speed-my-too-slow-ssh-login">How to speed my too-slow ssh login?</a> </p>
</blockquote>
<p>I have a very strange issue with my SSH server. Whenever I attempt to connect, it literally waits about 30 seconds to a minute before allowing the connection. Other servers in the same datacenter are connecting in about 2-3 seconds, while this one waits just about the same amount of time before letting any connections through. Is there a configuration option which I can use to tweak this delay time? It's running OpenSSH 4.3p2, OpenSSL 0.9.8e-fips-rhel5.</p>
<p>Here's the output from <code>ssh -v user@myserver</code>:</p>
<pre><code>OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to myserver [2.2.2.2] port 22.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/rfkrocktk/.ssh/id_rsa" as a RSA1 public key
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing keytype
debug2: key_type_from_name: unknown key type 'Proc-Type:'
debug3: key_read: missing keytype
debug2: key_type_from_name: unknown key type 'DEK-Info:'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: missing keytype
debug1: identity file /home/rfkrocktk/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/rfkrocktk/.ssh/id_rsa-cert type -1
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/rfkrocktk/.ssh/id_dsa" as a RSA1 public key
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing keytype
debug2: key_type_from_name: unknown key type 'Proc-Type:'
debug3: key_read: missing keytype
debug2: key_type_from_name: unknown key type 'DEK-Info:'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: missing keytype
debug1: identity file /home/rfkrocktk/.ssh/id_dsa type 2
debug1: Checking blacklist file /usr/share/ssh/blacklist.DSA-1024
debug1: Checking blacklist file /etc/ssh/blacklist.DSA-1024
debug1: identity file /home/rfkrocktk/.ssh/id_dsa-cert type -1
debug1: identity file /home/rfkrocktk/.ssh/id_ecdsa type -1
debug1: identity file /home/rfkrocktk/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH_4*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.8p1 Debian-1ubuntu3
debug2: fd 3 setting O_NONBLOCK
debug3: load_hostkeys: loading entries for host "myserver" from file "/home/rfkrocktk/.ssh/known_hosts"
debug3: load_hostkeys: found key type RSA in file /home/rfkrocktk/.ssh/known_hosts:27
debug3: load_hostkeys: loaded 1 keys
debug3: order_hostkeyalgs: prefer hostkeyalgs: [email protected],[email protected],ssh-rsa
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: [email protected],[email protected],ssh-rsa,[email protected],[email protected],[email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,[email protected],zlib
debug2: kex_parse_kexinit: none,[email protected],zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,[email protected]
debug2: kex_parse_kexinit: none,[email protected]
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: found hmac-md5
debug1: kex: server->client aes128-ctr hmac-md5 none
debug2: mac_setup: found hmac-md5
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 124/256
debug2: bits set: 515/1024
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: RSA cd:e9:ff:ef:af:d0:a9:f4:23:85:4b:32:6c:be:f3:bc
debug3: load_hostkeys: loading entries for host "myserver" from file "/home/rfkrocktk/.ssh/known_hosts"
debug3: load_hostkeys: found key type RSA in file /home/rfkrocktk/.ssh/known_hosts:27
debug3: load_hostkeys: loaded 1 keys
debug3: load_hostkeys: loading entries for host "2.2.2.2" from file "/home/rfkrocktk/.ssh/known_hosts"
debug3: load_hostkeys: found key type RSA in file /home/rfkrocktk/.ssh/known_hosts:34
debug3: load_hostkeys: loaded 1 keys
debug1: Host 'myserver' is known and matches the RSA host key.
debug1: Found key in /home/rfkrocktk/.ssh/known_hosts:27
debug2: bits set: 534/1024
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/rfkrocktk/.ssh/id_dsa (0x7f3a27677d40)
debug2: key: /home/rfkrocktk/.ssh/id_rsa (0x7f3a27677d00)
debug2: key: /home/rfkrocktk/.ssh/id_ecdsa ((nil))
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug3: start over, passed a different list publickey,gssapi-with-mic,password
debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup gssapi-with-mic
debug3: remaining preferred: publickey,keyboard-interactive,password
debug3: authmethod_is_enabled gssapi-with-mic
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
Credentials cache file '/tmp/krb5cc_1000' not found
debug1: Unspecified GSS failure. Minor code may provide more information
Credentials cache file '/tmp/krb5cc_1000' not found
debug1: Unspecified GSS failure. Minor code may provide more information
debug2: we did not send a packet, disable method
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering DSA public key: /home/rfkrocktk/.ssh/id_dsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Offering RSA public key: /home/rfkrocktk/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug2: input_userauth_pk_ok: fp 1a:10:d2:9b:88:35:6d:be:c0:b2:9b:b0:87:99:0f:d5
debug3: sign_and_send_pubkey: RSA 1a:10:d2:9b:88:35:6d:be:c0:b2:9b:b0:87:99:0f:d5
debug1: Authentication succeeded (publickey).
Authenticated to myserver ([2.2.2.2]:22).
debug2: fd 5 setting O_NONBLOCK
debug2: fd 6 setting O_NONBLOCK
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug1: Entering interactive session.
debug2: callback start
debug2: client_session2_setup: id 0
debug2: fd 3 setting TCP_NODELAY
debug3: packet_set_tos: set IP_TOS 0x10
debug2: channel 0: request pty-req confirm 1
debug1: Sending environment.
debug3: Ignored env ORBIT_SOCKETDIR
debug3: Ignored env SSH_AGENT_PID
debug3: Ignored env TERM
debug3: Ignored env SHELL
debug3: Ignored env XDG_SESSION_COOKIE
debug3: Ignored env WINDOWID
debug3: Ignored env GNOME_KEYRING_CONTROL
debug3: Ignored env GTK_MODULES
debug3: Ignored env USER
debug3: Ignored env SSH_AUTH_SOCK
debug3: Ignored env USERNAME
debug3: Ignored env SESSION_MANAGER
debug3: Ignored env DEFAULTS_PATH
debug3: Ignored env TMUX
debug3: Ignored env XDG_CONFIG_DIRS
debug3: Ignored env PATH
debug3: Ignored env DESKTOP_SESSION
debug3: Ignored env PWD
debug3: Ignored env GDM_KEYBOARD_LAYOUT
debug1: Sending env LANG = en_US.UTF-8
debug2: channel 0: request env confirm 0
debug3: Ignored env MANDATORY_PATH
debug3: Ignored env GDM_LANG
debug3: Ignored env UBUNTU_MENUPROXY
debug3: Ignored env COMPIZ_CONFIG_PROFILE
debug3: Ignored env GDMSESSION
debug3: Ignored env SHLVL
debug3: Ignored env HOME
debug3: Ignored env LANGUAGE
debug3: Ignored env GNOME_DESKTOP_SESSION_ID
debug3: Ignored env LOGNAME
debug3: Ignored env XDG_DATA_DIRS
debug3: Ignored env DBUS_SESSION_BUS_ADDRESS
debug3: Ignored env WINDOWPATH
debug3: Ignored env DISPLAY
debug3: Ignored env IBUS_NO_SNOOPER_APPS
debug3: Ignored env XAUTHORITY
debug3: Ignored env COLORTERM
debug3: Ignored env _
debug2: channel 0: request shell confirm 1
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel_input_status_confirm: type 99 id 0
debug2: PTY allocation request accepted on channel 0
debug2: channel 0: rcvd adjust 2097152
debug2: channel_input_status_confirm: type 99 id 0
debug2: shell request accepted on channel 0
debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug2: channel 0: rcvd close
debug2: channel 0: close_read
debug2: channel 0: input open -> closed
debug3: channel 0: will not send data after close
debug3: channel 0: will not send data after close
debug2: channel 0: obuf empty
debug2: channel 0: close_write
debug2: channel 0: output drain -> closed
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 1
debug3: channel 0: status: The following connections are open:
#0 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)
debug1: fd 1 clearing O_NONBLOCK
debug1: fd 2 clearing O_NONBLOCK
Connection to myserver closed.
Transferred: sent 3504, received 2584 bytes, in 26.6 seconds
Bytes per second: sent 131.8, received 97.2
debug1: Exit status 1
</code></pre>
<p>It appears it's using weird authentication methods that I don't use. </p>
| 0non-cybersec
| Stackexchange |
This week's colorful daily ration: 1600 kcal, €4,70. | 0non-cybersec
| Reddit |
Set Chrome's language using Selenium ChromeDriver. <p>I download ChromeDriver and by defaults the browser language is in English, I need to change it to Spanish, and I have been unable.</p>
<pre><code>public WebDriver getDriver(String locale){
System.setProperty("webdriver.chrome.driver", "driver/chromedriver.exe");
return new ChromeDriver();
}
public void initializeSelenium() throws Exception{
driver = getDriver("en-us")
}
</code></pre>
| 0non-cybersec
| Stackexchange |
The Last of Us Part II: Accessibility Features Detailed. | 0non-cybersec
| Reddit |
Our workers painted over a dead bird stuck in the side of a warehouse. | 0non-cybersec
| Reddit |
A beautiful wolf smelling some flowers. | 0non-cybersec
| Reddit |
WebSphere Liberty-18.0.0.4 unable to consume messages from IBM MQ. <p>I have installed WebSphere Liberty 18.0.0.4 and IBM MQ client in my corporate laptop.
I have configured server.xml in such a way that the my localhost can get and put messages in IBM MQ which is running on server.
I installed my application on WebSphere liberty which can put messages in MQ but however not consuming the message.
Can you please help how to find where it goes wrong?
Below is the <code>server.xml</code>:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<server description="Default server">
<!-- Enable features -->
<featureManager>
<feature>javaee-8.0</feature>
<feature>ejbPersistentTimer-3.2</feature>
<!--feature>JDBC-4.1</feature-->
<!--feature>webProfile-7.0</feature-->
<feature>wmqJmsClient-2.0</feature>
<feature>jmsMdb-3.2</feature>
<feature>jms-2.0</feature>
<!--feature>jsf-2.2</feature-->
<!--feature>servlet-3.1</feature-->
<feature>jsp-2.3</feature>
<!--feature>jaxrs-2.0</feature-->
<!--feature>restConnector-1.0</feature-->
<feature>wasJmsServer-1.0</feature>
<feature>wasJmsClient-2.0</feature>
<feature>ejbRemote-3.2</feature>
<feature>ejb-3.2</feature>
<feature>concurrent-1.0</feature>
<feature>ejblite-3.2</feature>
<!--feature>cdi-1.2</feature-->
<feature>federatedRegistry-1.0</feature>
<feature>transportSecurity-1.0</feature>
<feature>localConnector-1.0</feature>
<!--feature>ssl-1.0</feature-->
<!--feature>appSecurity-2.0</feature-->
<feature>jndi-1.0</feature>
<feature>jca-1.7</feature>
<feature>ldapRegistry-3.0</feature>
<!--feature>adminCenter-1.0</feature-->
<feature>websocket-1.1</feature>
<!--feature>beanValidation-1.1</feature-->
</featureManager>
<!--For a user registry configuration, configure your user registry. For example, configure a basic user registry using the
basicRegistry element. Specify your own user name below in the name attribute of the user element. For the password,
generate an encoded password using bin/securityUtility encode and add it in the password attribute of the user element.
Then uncomment the user element. -->
<!--basicRegistry id="basic" realm="BasicRealm"-->
<!-- <user name="yourUserName" password="" />
</basicRegistry-->
<keyStore id="defaultKeyStore" password="keyspass" />
<!-- To allow access to this server from a remote client host="*" has been added to the following element -->
<httpEndpoint id="defaultHttpEndpoint"
host="*"
httpPort="9081"
httpsPort="9449" />
<!-- Automatically expand WAR files and EAR files -->
<applicationManager autoExpand="true"/>
<variable name="wmqJmsClient.rar.location" value="C:/Program Files/IBM/MQ/java/lib/jca/wmq.jmsra.rar"/>
<jmsConnectionFactory jndiName="jms/jmsConnectionFactory">
<properties.wmqJms maxPoolDepth="10" transportType="CLIENT" hostName="QTQTBI2.nl.eu.abnamro.com" port="1414" channel="ZTAT241.QTQTBI2.03" queueManager="QTQTBI2" />
<connectionManager maxPoolSize="10" minPoolSize="5" connectionTimeout="360s" maxIdleTime="30m" agedTimeout="30m" reapTime="180s" />
</jmsConnectionFactory>
<jmsQueue id="queue/t24OFSQueue" jndiName="queue/t24OFSQueue">
<properties.wmqJms baseQueueName="API.RUNTIME_REQUEST_ET_FIX.AO" baseQueueManagerName="QTQTBI2" transportType="CLIENT"/>
</jmsQueue>
<jmsQueue id="queue/t24OFSReplyQueue" jndiName="queue/t24OFSReplyQueue">
<properties.wmqJms baseQueueName="API.RUNTIME_REQUEST_ET_FIX.AI" baseQueueManagerName="QTQTBI2" transportType="CLIENT"/>
</jmsQueue>
</server>
</code></pre>
<p>Below is the <code>SystemOut.log</code>:</p>
<pre><code>[ERROR ] CWIMK0011E: The user registry operation could not be completed. A valid user registry was not found. Add or correct the registry definition in the server.xml file.
com.ibm.wsspi.security.wim.exception.NoUserRepositoriesFoundException: CWIMK0011E: The user registry operation could not be completed. A valid user registry was not found. Add or correct the registry definition in the server.xml file.
at com.ibm.ws.security.wim.ProfileManager.genericProfileManagerMethod(ProfileManager.java:223)
at [internal classes]
2019-07-22 16:26:59 [Default Executor-thread-1281] DEBUG:: >>>> direct://holdings-PSD2.getAccountOverview Exchange[ID-NLLR4000508015-1563804055316-36-3]
2019-07-22 16:26:59 [Default Executor-thread-1281] INFO :: Request: ENQUIRY.SELECT,,UPGRADEUSER.2/U123456u/BE0010001///,PZ.API.ACCOUNTS.1.0.0,ACCOUNTREFERENCE:EQ=674400057512
2019-07-22 16:26:59 [Default Executor-thread-1281] DEBUG:: response queue used is queue/OFSReplyQueue for client type INTERNAL
[WARNING ] J2CA8501E: Property transportType of configuration element com.ibm.ws.jca.adminObject.supertype[queue/OFSReplyQueue] cannot be set because it is not found on the class com.ibm.mq.connector.outbound.MQQueueProxy.
2019-07-22 16:26:59 [Default Executor-thread-1281] DEBUG:: jms destination lookup successfull forqueue/OFSReplyQueue
2019-07-22 16:26:59 [Default Executor-thread-1281] DEBUG:: request queue used is queue/OFSQueue for client type INTERNAL
[WARNING ] J2CA8501E: Property transportType of configuration element com.ibm.ws.jca.adminObject.supertype[queue/OFSQueue] cannot be set because it is not found on the class com.ibm.mq.connector.outbound.MQQueueProxy.
2019-07-22 16:26:59 [Default Executor-thread-1281] DEBUG:: jms destination lookup successfull forqueue/OFSQueue
2019-07-22 16:27:59 [Default Executor-thread-1281] ERROR:: Response not received from APP for Message Sent with JMS Correlation id e6e081d3-759f-43d9-9ee9-b37bfc2516da
2019-07-22 16:27:59 [Default Executor-thread-1281] ERROR:: JTC-001,Failed to send message to APP via JMS
2019-07-22 16:27:59 [Default Executor-thread-1281] ERROR:: TGVCP-001
2019-07-22 16:27:59 [Default Executor-thread-1281] DEBUG:: Writing response in non-chunked mode as plain text with content-length 129 and buffer size: 4096
</code></pre>
<p>Can anyone please suggest how I can fix this?</p>
| 0non-cybersec
| Stackexchange |
Why is the product of all units of a finite field equal to $-1$?. <p>Suppose $F=\{0,a_1,\dots,a_{q-1}\}$ is a finite field with $q=p^n$ elements. I'm curious, why is the product of all elements of $F^\ast$ equal to $-1$? I know that $F^\ast$ is cyclic, say generated by $a$. Then the product in question can be written as
$$
a_1\cdots a_{q-1}=1\cdot a\cdot a^2\cdots a^{q-2}=a^{(q-2)(q-1)/2}.
$$
However, I'm having trouble jumping from that product to $-1$. What is the key observation to make here? Thanks!</p>
| 0non-cybersec
| Stackexchange |
Astronomers capture a real image of two baby stars locked in a gravitational waltz that's twisting their planet-forming disks into a pretzel-shaped knot. The unprecedented look gives researchers a glimpse into the complex formation of the most common type of stellar setup — binary stars.. | 0non-cybersec
| Reddit |
xpost from r/batman that made me get up and work out immediately. | 0non-cybersec
| Reddit |
[Science] "Sugar causes a relentless biochemical drive for humans to eat more and get fat.". Great to see some generic press covering these sorts of nutrition facts without specifically getting into Keto:
http://www.news.com.au/lifestyle/food/busting-common-nutrition-myths/story-fneuz8zj-1226611849627 | 0non-cybersec
| Reddit |
Finding range, continuity and derivability of a function defined by cases. <p>Let $f(x) =
\begin{cases}
x^2\sin\frac{1}{x^2} & \text{$x\neq 0$} \\[2ex]
0 & \text{$x=0$}
\end{cases}$ and let $g(x)=f'(x)$.</p>
<p>Find its range, continuity and derivability range (the range in which it can be derivated).</p>
<p>I don't know how to do that for $g(x)$. Can you please show me how to find the derivability range of $g(x)$?</p>
<p>Thank you in advance, I don't know what to do. I'm stuck.</p>
| 0non-cybersec
| Stackexchange |
Girls can get pregnant by other girls I guess. | 0non-cybersec
| Reddit |
WHAT operations become slow when git repos become large, and WHY?. <p>This question was asked in various forms on SO and elsewhere, but no answer I was able to find has satisfied me, because none list the problematic/non problematic actions/commands, and none give a through explanation of the technical reason for the speed hit.</p>
<p>For instance:</p>
<ul>
<li><a href="https://stackoverflow.com/questions/29393447/why-cant-git-handle-large-files-and-large-repos">Why can't Git handle large files and large repos</a></li>
<li><a href="https://stackoverflow.com/questions/17543379/why-git-operations-becomes-slow-when-repo-gets-bigger">Why git operations becomes slow when repo gets bigger</a></li>
<li><a href="https://stackoverflow.com/questions/3313908/git-is-really-slow-for-100-000-objects-any-fixes">Git is really slow for 100,000 objects. Any fixes?</a></li>
</ul>
<p><strong>So, I am forced to ask again:</strong></p>
<ol>
<li>Of the basic git actions (commit, push, pull, add, fetch, branch, merge, checkout), which actions become slower when repos become larger (NOTICE: repos, not files for this question)</li>
</ol>
<p>And,</p>
<ol start="2">
<li>Why each action depends on repo size (or doesn't)?</li>
</ol>
<p><strong>I don't care right now about how to fix that</strong>.
I only care about which actions' performance gets hit, and the reasoning according to current git architecture.</p>
<hr>
<p>Edit for clarification:</p>
<p>It is obvious that <code>git clone</code> for instance, would be o(n) the size of the repo.</p>
<p>However it is not clear to me that <code>git pull</code> would be the same, because it is theoretically possible to only look at differences.</p>
<p>Git does some non trivial stuff behind the scenes, and I am not sure when and which.</p>
<hr>
<p>Edit2:</p>
<p>I found <a href="https://docs.microsoft.com/en-us/azure/devops/repos/git/manage-large-files?view=azure-devops" rel="noreferrer">this</a> article, stating</p>
<blockquote>
<p>If you have large, undiffable files in your repo such as binaries, you
will keep a full copy of that file in your repo every time you commit
a change to the file. If many versions of these files exist in your
repo, <strong>they will dramatically increase the time to checkout, branch,</strong>
<strong>fetch, and clone</strong> your code.</p>
</blockquote>
<p>I don't see why branching should take more than O(1) time, and I am also not sure the list is full. (for example, what about pulling?)</p>
| 0non-cybersec
| Stackexchange |
What happens when a project switches to a different license?. <p>I've been reading a bit about software licenses, and I'm having trouble getting my head around the idea of what happens when one wants to change the license. I've read a <a href="https://softwareengineering.stackexchange.com/questions/55326/can-you-change-a-license-once-you-pick-one">couple</a> of <a href="https://softwareengineering.stackexchange.com/questions/26548/what-is-the-default-software-license">questions</a> here on the topic and it clarifies things some, but there are still a couple of areas that are unclear to me.</p>
<p>One example: Suppose I have a project hosted on github with no license specified. If someone contributes a patch to my code base and I merge it in, does that patch still belong to them? If so, would I need their permission to change the license on my project?</p>
<p>Another example: Suppose I have my software under some permissive open source license. I understand that I am allowed to change the license on my software at will (barring conflicts with contributors), but does that effect existing copies of the software out there? If I decide to close source my project, do existing copies of the source with packaged OS license remain open source and distributable according to the previous license?</p>
<p>I like the idea of working together with others on projects in a flexible manner, and unless a project actually starts to pick up it seems like unnecessary overhead to go about deciding on an appropriate license. It would be nice to be more aware of the potential conflicts that could crop up, though.</p>
| 0non-cybersec
| Stackexchange |
Diagonalisation of a Quadratic form problem. <p>We have a quadratic form (in physics it is called a Lagrangian)</p>
<p>$$L=\frac{1}{2}\sum_{i,j}m_{ij}\dot{x}_i\dot{x}_j-\frac{1}{2}\sum_{i,j}k_{ij}x_ix_j=\frac{1}{2}\big(\dot{\vec{x}}|M\dot{\vec{x}}\big)-\frac{1}{2}\big(\vec{x}|K\vec{x}\big)$$</p>
<p>where $M$ and $K$ are positive definite symmetric matrices. We wish to find a change of basis such that both matrices $M$ and $K$ are diagonal (because then the equations of motion are separated, which is important in physics)</p>
<p>We can diagonalise $M$ with and orthogonal matrix $U$ because $M$ is real and symmetries, so:</p>
<p>$$M=S^TD_MS$$</p>
<p>now since $M$ positive definite it has positive eigenvalues so there exist a matrix $S_{ij}=\frac{\delta_{ij}}{\sqrt{\mu_i}}$ (where $\mu_i$ are eigenvalues of the matrix $D_M$)</p>
<p>we can see that the matrix $US$ transform the matrix $M$ in to an unit matrix</p>
<p>$$(US)^TM(US)=I$$</p>
<p>The matrix $(US)^TK(US)$ is still symmetric because</p>
<p>$$k'_{ij}=\sum_{k,l}(US)_{ik}^Tk_{kl}(US)_{lj}=\sum_{k,l}(US)_{ki}k_{kl}(US)_{jl}^T=\sum_{k,l}(US)_{jl}^Tk_{lk}(US)_{ki}=k'_{ji}$$</p>
<p>and since $K'$ is symmetric there exist a orthogonal matrix $V$ such that
$V^TK'V=(USV)^TK(USV)$
and since $(US)^TM(US)=I$ then changing the basis of a unitary matrix does nothing, that is $V^T(US)^TM(US)V=V^TIV=V^TV=I$.
This proves that the matrix $(USV)$ diagonalises $M$ and $K$ simultaneously.</p>
<p>my problem is the following:
first there is a change of basis that diagonalises $M$ so we rewrite it in a new basis and it is $D_M$ this part is standard diagonalisation, but now we ''shorten'' or ''lengthen'' each eigenvector so that our matrix becomes the unit matrix $I$. I am really confused about this part, this means that every diagonalisable (and positive definite) matrix is a unitary matrix in some coordinatisation, but since $I$ in unchanged by the change of basis any further transformation will leave it unchanged so that means any other coordinatisation also diagonalises $M$ which is the thing we use to prove that the transformation $V^TKV$ that diagonalises $K$ will not un-diagonalise $M$ (that is $(US)^TM(US)$ ) </p>
<p>this would mean that all vectors are eigenvectors of $M$ since any transformation that changes it's basis ($V^TV$) after we have reduced it to $I$ will not change it</p>
<p>This is obviously wrong, but I don't understand what is wrong with it.</p>
<p>and the second and third part of the question is</p>
<p>Are the eigenvector of $M$ and $K$ the same vectors or does just the transformation $USV$ change them, but not to the same basis (but I don't see how it would be possible) </p>
<p>and finally is the new basis orthogonal? (it seems to me it should be based on the principal axis theorem bit it makes no sense given this kind of transformation)</p>
| 0non-cybersec
| Stackexchange |
$X,Y$ infinite dimensional NLS , not both Banach , then $\exists T \in \mathcal L(X,Y)$ such that $R(T)$ is not closed in $Y$?. <p>Let $X,Y$ be infinite dimensional normed-linear spaces , not both Banach , then does there necessarily exist a continuous linear transformation $T:X \to Y $ such that $range (T)$ is not closed in $Y$ ? </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 |
Installing Tar file. <p>I have downloaded the iredmail tar file iRedMail-0.9.9.tar.bz2, and placed it ia a folder named iRedMail. Can some one give ma step-by-step instruction how I install it on Ubuntu 18.04? I will very much appreciate help from an expert.</p>
| 0non-cybersec
| Stackexchange |
Is it possible to use the contents of a cell in a custom conditional formatting rule in Google Sheets?. <p>For example, given the sheet below:</p>
<p><a href="https://i.stack.imgur.com/njpv7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/njpv7.png" alt="A colourful sheet" /></a></p>
<p><strong>I'd like the background colours of columns <code>B-D</code> to change automatically when I update the values in column <code>A</code></strong></p>
<p>Is that possible? I'm looking for a solution that will work with any colour, without preprogramming the sheet in some way to be aware of a fixed set of colours.</p>
| 0non-cybersec
| Stackexchange |
Armed Robber shot Dead. | 0non-cybersec
| Reddit |
learned my lesson [6]. last thursday my best friend flew in town with her bf, and we were giving him a tour of our uni and our hs. i've already moved back home for the summer, and i've occasionally smoked in my car w/ my pipe, but now it's my only way. we were smoking in my car and we decided to go to the beach to also drink. i'm stopping at a light to make a right to be pulling up to the ocean, and i turn to see a sheriff parked at the other light. i think *okay cool i am stopping it will be okay* trying not to freak out, just in case everything wasn't okay. i stop, turn right, and i'm gripping my pipe as i just stare into my rearview. his lights get brighter as i'm locking away my stash away in the console, yelling at my best friend to hide the rum as the siren goes off. the cop was super aggressive and scared the shit out of me. i honestly thought i was going to go to jail. but i dunno if the eye drops made it looked like i was crying or if i actually was, but he softened up towards the end & let us go because i was *an honest decent kid.* i'm laughing about that now, but only cause i'm trying to burn through my stash cause i'm never bringing anything other than a blunt into my car. wasn't the most safe way to smoke either; so i'm glad i have this near death experience to change my ways.
tl;dr: don't smoke & drive: especially if it's not disposable but more importantly cause it's unsafe. but if you are riding dirty, make sure you have body spray & try to look like you're crying so the officer takes pity on you | 0non-cybersec
| Reddit |
Hive: is the beetle way overpowered? Also, mitigating first player advantage.. EDIT: PLEASE DON'T READ ANY FURTHER IF YOU WANT TO HAVE POTENTIALLY GAME ALTERING STRATEGY EXPLAINED TO YOU. YOU SHOULD ONLY READ THIS IF YOU HAVE EXPLORED THE GAME ON YOUR OWN AND FEEL LIKE YOU ARE AT A DEAD END IN TERMS OF GAME PLAY. THANKS.
I've started playing Hive recently with a coworker at break times, and throughout the day (walk by and make a move sort of thing). We are having a blast but after a few dozen games we figured out that the beetle can be used to (practically) guarantee victory for the first player.
The strategy is to lay spider-bee-spider, move spider to pin opposing bee, drop beetle, move to cover bee, drop 2 pieces directly adjacent to bee, and then drop one ant and move it onto the bee, and finally drop the beetle into theist space.
You can defend against this by placing your beetle by the queen to cover the opposing beetle (or more usually just to threaten to cover it) but then you're "losing" another turn and also covering another side of your bee. Basically, unless player 1 completely messes up, they will win in about a dozen turns.
We've modified the rules to say that the beetle doesn't change the color of a queen under it, and that extends the game out enough that player 1 isn't assured victory, but assuming near-optimal play player 1 will always win.
We're seeing 80%+ win rates for player 1 with standard rules, and 60-70%+ with our beetle changes.
Are there any counters to the opening beetle-covering strategy I've outlined? Is the beetle just too powerful? If so, what can you do to mitigate it?
What other things can be done to minimize the first player advantage?
EDIT: I want to clarify that I am not saying I have an "unbeatable" strategy... what I am saying is that I *think* this strategy makes it so that player two can ONLY win if player 1 makes an error (and not even any error, but a pretty significant one). Given optimal play by player 2, they will only win if player 1 plays "moderately" optimal, for lack of a better phrase. I'm actually not that great of a player, TBH... but neither of us can figure out a scenario in which player 2 can win on their own merit, rather than strictly capitalizing on player 1's mistake.
I am sure there lots of people who are WAY better at me at this game, and so I was looking for input on how they deal with both the beetle and the first player advantage in ways that keep the game interesting. Sorry if I came off like I was claiming to be a master Hive player who can't be beat - it's more the other way 'round! *I* can't figure out if this strategy can be countered, and if it can't it sort of spoils the game for me, but maybe someone else can, which would "save" the game for me, which I really enjoy! | 0non-cybersec
| Reddit |
Astronomers have developed a new, highly accurate method of measuring the distances between stars, which could be used to measure the size of the galaxy, enabling greater understanding of how it evolved.. | 0non-cybersec
| Reddit |
Bulk SMS India Announces Offering Effective SMS Marketing Programs for Business Promotion. | 0non-cybersec
| Reddit |
Dandara AmA Announcement Thread. #Hello [r/Nintendo](https://www.reddit.com/r/Nintendo)
This thread is to let you know that we have an AMA with Long Hat House the developer behind Dandara. The game releases February 6th on the Nintendo Switch. The game is also releasing on PS4, Xbox One & PC the same day.
Dandara is published by Raw Fury.
\_\_\_
\*\*What is Dandara?\*\*
The world of Salt hangs on the brink of collapse. The citizens, once free spirits, now stand oppressed and isolated. But not all is lost, for out of this aether of fear arises a heroine, a ray of hope. Her name is Dandara.
Welcome to a unique 2D metroidvania platformer full of mystical creatures and boundless exploration. Defy gravity as you jump across floors, walls, and ceilings alike. Discover the mysteries and secrets hidden throughout the world of Salt and its diverse array of characters. Empower Dandara for combat and survival against enemies bent on oppression.
Awaken, Dandara, to bring freedom and balance to this directionless world.
\_\_\_
Starting Friday, February 2nd at 9:00 AM PST / 12:00 PM EST our friends will stop by to answer your questions.
\* \[Long Hat House Twitter\]\([https://twitter.com/longhathouse](https://twitter.com/longhathouse)\)
\* \[Official Website\]\([http://www.longhathouse.com/games/dandara/](http://www.longhathouse.com/games/dandara/)\)
\* \[Game Trailer\]\([**https://youtu.be/6GIrAeNRupI**](https://youtu.be/6GIrAeNRupI)\)
\_\_\_
Please note this is an announcement thread and not the AmA thread. Questions specifically for the developers will not be answered in this thread. | 0non-cybersec
| Reddit |
Mysql Update Query is not Giving Desired Result. <p>In My <strong>Php Code</strong> I Have Query As</p>
<pre><code>SELECT COUNT(id) AS todayleads
FROM `lead_data`
where `date` = '$todate' AND lead_status = 1
AND uid = '$userid' OR assign_to = '$userid'
</code></pre>
<p>When I echo Query it result me </p>
<pre><code>SELECT COUNT(id) AS todayleads
FROM `lead_data`
where `date` = '2018-01-12' AND lead_status = 1
AND uid = '3' OR assign_to = '3'
</code></pre>
<p>And Output Gives Mea All Data From Start to End. But <strong>Expected O/p</strong> is Only Data That have lead_status = 1 and uid = 3 Or assign_to = 3.</p>
| 0non-cybersec
| Stackexchange |
Well... It worked and I didn't even feel the blade. | 0non-cybersec
| Reddit |
Deke Slayton and John Glenn Didn't have Boots for their Space Suits in this Photo. Those are Hiking Boots Spray Painted Silver.. | 0non-cybersec
| Reddit |
/etc/resolv.conf managed by NM?. <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://askubuntu.com/questions/130452/how-do-i-add-a-dns-server-via-resolv-conf">How do I add a DNS server via resolv.conf?</a> </p>
</blockquote>
<p>I discovered (with great disappointment) that in 12.04 the file <code>/etc/resolv.conf</code> no longer contains the real nameserver IP, but just <code>127.0.0.1</code>.</p>
<p>In order now to know which is the DNS, we have to "easily" type the simple command</p>
<pre><code>nmcli dev list iface eth0
</code></pre>
<p>My question is this: What if I need to change (and I need it very often in my LAN) the nameserver and the search domain? Can we continue using <code>/etc/resolv.conf</code> or is there some new "magic"?</p>
| 0non-cybersec
| Stackexchange |
Fruitloops for breakfast.. A 5 year old and a 3 year old are upstairs in their bedroom
'You know what?' says the 5 year old, 'I think it's about time we started swearing.'
The 3 year old nods his head in approval, so the 5 year old says,
'When we go downstairs for breakfast I'm gonna swear first, then you swear after me, ok?'
'Ok' the 3 year old, agrees with enthusiasm.
The mother walks into the kitchen and asks the 5 year old what he wants for breakfast.
'Shit mum, I don't know, I suppose I'll have some Fruit Loops '
#WHACK...she spanks him
He flew out of his chair, tumbled across the kitchen floor, got up, and ran upstairs crying his eyes out.
She looked at the 3 year old and asked with a stern voice, 'And what do YOU want for breakfast, young man?'
'I don't know mum, but it won't be fucking Fruit Loops' | 0non-cybersec
| Reddit |
TIL of a stinging tree called the Gympie Gympie. It secretes a toxin that is so painful that is has driven humans and animals to suicide. It feels like being burnt with hot acid and electrocuted simultaneously. A man shot himself after using a leaf from the tree as toilet paper.. | 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 |
Interior is a Subset of the Closure. <blockquote>
<p>$\textbf{Question:}$ Let $A$ be a set. Why is the $interior(A)\subset closure(A)$?</p>
</blockquote>
<p>I use the following definitions for $\underline{interior}$ and $\underline{closure}$ given a metric space $X$.</p>
<ul>
<li>Interior Definition: $x\in interior(A)$ if $\exists$ a neighborhood
$N$ of the point $x$ such that $N\subset A$.</li>
<li>Closure Definition: $x\in closure(A)$ if $\forall$ neighborhoods $N$
of the point $x$, $N\cap A\neq \phi$.</li>
</ul>
<p>I started trying to prove this as follows, any help would be greatly appreciated!</p>
<p>Proof: Let $x\in interior(A)$. Thus, $\exists N$ of $x$ such that $N\subset A$. Say $N_0$ is such a neighborhood of $x$ which $N_0\subset A$ holds true. Then, I get stuck here as I am trying to show $x\in closure(A)$ by showing $\forall N$ of $x$, $N\not\subset A$ holds true or $N\cap A\neq \phi$ holds true (these are equivalent).</p>
| 0non-cybersec
| Stackexchange |
Dear Fringe: Thank you for "vagenda ". . Fringe has that rare ability to, during an incredibly tense moment, make me laugh my ass off. | 0non-cybersec
| Reddit |
Using TypeBuilder to create a pass-through constructor for the base class. <p>Say I have a <code>SpaceShip</code> class, like so:</p>
<pre><code>public class SpaceShip {
public SpaceShip() { }
public SpaceShip(IRocketFuelSource fuelSource) { }
}
</code></pre>
<p>I want to use <a href="http://msdn.microsoft.com/en-us/library/bhb2ecb2.aspx" rel="nofollow noreferrer"><code>TypeBuilder</code></a> to create a type at run-time which inherits from SpaceShip, and defines one constructor for each of the ones in SpaceShip. I don't need the constructors to actually <em>do</em> anything except pass their arguments up to the parent ("pass-through" constructors). For example, the generated type would look something like this if expressed in C#:</p>
<pre><code>public class SpaceShipSubClass : SpaceShip {
public SpaceShipSubClass() : base() { }
public SpaceShipSubClass(IRocketFuelSource fuelSource) : base(fuelSource) { }
}
</code></pre>
<p>To complicate things a bit, I don't actually know which class the generated type will be inheriting from until run-time (so I'll have to take into account any number of constructors, possibly with default parameters).</p>
<p>Is this possible? I think I could figure it out if I had a general direction to start with, it's just that I'm completely new to <code>TypeBuilder</code>.</p>
<p>Thanks!</p>
| 0non-cybersec
| Stackexchange |
Complete Metric Space if and only if. <p>Let <span class="math-container">$(X,d)$</span> be a metric space. Let <span class="math-container">$\mathcal{C}$</span> be the set of all collections <span class="math-container">$\{O_i\}_{i=1}^\infty$</span> of non-empty closed subsets such that <span class="math-container">\begin{align*}
&(a) O_{n+1}\subset O_n \forall n \\
&(b) \lim\operatorname{diam} (O_n) = 0 \ as \ n \to \infty
\end{align*}</span></p>
<p>Prove that <span class="math-container">$X$</span> is complete if and only if <span class="math-container">$\forall C \in \mathcal{C}$</span> <span class="math-container">\begin{align*}
\bigcap_{A\in C} A \not= \emptyset
\end{align*}</span>
For the <span class="math-container">$if$</span> part: For every <span class="math-container">$n$</span>, choose <span class="math-container">$x_n \in O_n$</span>. Then since <span class="math-container">$O_{n+1}\subset O_n$</span>, the set <span class="math-container">$\{x_n,x_{n+1},x_{n+2},\cdots\}\subset O_n$</span>. Since <span class="math-container">$\lim\operatorname{diam}(O_n) = 0$</span>, for any <span class="math-container">$\epsilon > 0$</span> choose a natural number <span class="math-container">$N$</span> so that <span class="math-container">$\operatorname{diam}(O_n)<\epsilon$</span> for <span class="math-container">$n\geq N$</span>. This means that for any <span class="math-container">$n,m \geq N$</span>, <span class="math-container">$|x_n-x_m| \leq\operatorname{diam}(\{x_{N},x_{N+1},\dots\}) \leq\operatorname{diam}(O_N) < \epsilon$</span>. So <span class="math-container">$\{x_n\}$</span> is a Cauchy sequence. By completeness of <span class="math-container">$X$</span>, <span class="math-container">$\{x_n\}$</span> converges to a point, <span class="math-container">$a$</span>. By <span class="math-container">$O_n$</span> being closed it must contain <span class="math-container">$\{x_n,x_{n+1},\dots\}$</span>. Thus, for any given <span class="math-container">$D\in\mathcal{C}$</span> we get
<span class="math-container">\begin{align*}
a\in \bigcap_{A \in D} A.
\end{align*}</span>
hence non-empty. </p>
<p>Also, I am not sure how to start the other direction. I think you need to look at the tails of each sequence </p>
| 0non-cybersec
| Stackexchange |
How to install gcc-4.6 (4.6.3-1ubuntu5) Source Package. <p>I have recently started working on ubuntu and I have been facing a lot of difficulties installing programs in it.
I don't know how I managed to install NetBeans and JAVA JDK and JRE.
Unfortunately the NetBeans came without C++ compiler and debugger. I've been googling for two days and all I could find and understand was some thing like this:</p>
<pre><code>sudo apt-get install build-essential
sudo apt-get install gcc g++
sudo apt-get install gdb
</code></pre>
<p>I finally -don't know how- installed the compiler but still no debugger.<br>
Then I start doing some crazy stuff. I purged <code>gcc</code>, <code>g++</code>, <code>gdb</code> and not sure what else.
Anyway I downloaded the <code>gcc-4.6</code> (<code>4.6.3-1ubuntu5</code>) Source Package from this link: <a href="http://packages.ubuntu.com/source/precise/gcc-4.6" rel="nofollow">http://packages.ubuntu.com/source/precise/gcc-4.6</a>
And as you may guess didn't know how to install it.
So please any help would be greatly appreciated ^_^</p>
| 0non-cybersec
| Stackexchange |
Advice in essential equipment in an amateur fitness club. We have the means and space to start and amateur fitness club. What equipment would you recommend that such a club should have? Squat rack, of course. Specialized deadlift area, Bench press bench. What else a Prowler? Battleropes? Tyre flipping? Gymnastic rings? | 0non-cybersec
| Reddit |
Quantum health to cure cancer. | 0non-cybersec
| Reddit |
Analogues of the elementary symmetric polynomials for the alternating group. <p>In the case of three variables, the elementary symmetric polynomials are
$$ \begin{align}
e_1(X_1,X_2,X_3)&:=X_1+X_2+X_3, \\
e_2(X_1,X_2,X_3)&:=X_1 X_2+X_1 X_3+X_2 X_3, \\
e_3(X_1,X_2,X_3)&:=X_1 X_2 X_3. \\
\end{align}$$
Knowledge of the values of $e_1,e_2,e_3$ determines the variables $X_1,X_2,X_3$ up to any permutation of $S_3$. That is, if
$$
\begin{align} e_1(X_1,X_2,X_3)&=e_1(Y_1,Y_2,Y_3), \\ e_2(X_1,X_2,X_3)&=e_2(Y_1,Y_2,Y_3) ,\\
e_3(X_1,X_2,X_3)&=e_2(Y_1,Y_2,Y_3),\\ \end{align}$$
then there exists a permutation $\sigma \in S_3$ such that $$X_i=Y_\sigma(i) ,$$
for all $1 \leq i \leq 3$.</p>
<p>I'm curious as to whether there exist other "less symmetric" polynomials, say $\{P_n(X_1,X_2,X_3)\}_n$ such that having
$$P_n(X_1,X_2,X_3)=P_n(Y_1,Y_2,Y_3) $$for all $n$ implies that there exists an <em>even</em> permutation $\sigma \in A_3 \subsetneq S_3$ for which $X_i=Y_\sigma(i)$ for all $1 \leq i \leq 3$.</p>
<p>I have tried keeping two of the elementary symmetric polynomials, replacing the third, but that didn't work out. </p>
<p>I would appreciate help with finding such polynomials $P_n$ (if they exist). Thank you! </p>
| 0non-cybersec
| Stackexchange |
Certificate not trusted over Win7 to Win7 Remote Desktop connection. <p>I'm experiencing a certificate issue while connecting two Windows 7 machines together via Remote Desktop. I have installed the certificate, but I'm getting a message that says the cert is not trusted. What can I do about this?</p>
| 0non-cybersec
| Stackexchange |
Intersections of convex hulls. <p>Given a set of $n$ points $\{A_1, \ldots , A_n\}$ of the plane and every possible triangle formed with $3$ points $A$, I would like to describe the intersections fo theses triangles. By intersection, I mean the part of the plane that is covered by the interiors of the triangles that intersect.</p>
<p>I am describing these triangles with convex hulls. For exemple, the triangle $A_1A_2A_3$ is represented by $\operatorname{Conv}(A_1, A_2, A_3)$.</p>
<p>I would like to define a set of convex such as every triangle (seen as a convex) is intersecting with at least of convex of this set. So basically, I would like to describe these intersections in order to count them or manipulate them.</p>
<p>I've heard of Helly's Theorem but I can't see a way to use it without knowing if the convex hulls are intersecting.</p>
<p>I am totally open to change my representation of triangles (for example by using something else than convex hulls) and I am not looking for algorithm to do it. If possible, my idea is to describe them 'mathematically'.</p>
| 0non-cybersec
| Stackexchange |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.