text
stringlengths 3
1.74M
| label
class label 2
classes | source
stringclasses 3
values |
---|---|---|
I Forget, I have a 4s on AT&T, if I get it unlocked, will it work on Verizon?. | 0non-cybersec
| Reddit |
What is the most dangerous thing you have ever done as a child?. | 0non-cybersec
| Reddit |
need help setting up https redirect. <p>I am an utter network newbie.</p>
<p>I have 1 Google Compute server. Let's say its ip is 111.222.33.4</p>
<p>Its running Apache Tomcat and serves up different pages on http and https</p>
<p><a href="http://111.222.33.4/myPage" rel="nofollow noreferrer">http://111.222.33.4/myPage</a> and <a href="http://111.222.33.4:8080/myPage" rel="nofollow noreferrer">http://111.222.33.4:8080/myPage</a> both serve up myPage properly</p>
<p>Following instructions I found online, I changed the https port (443) to 8443 and modified Tomcat server.conf to cause traffic on port 8443 to</p>
<p>I can access mySecurePage as follows:</p>
<p><a href="https://111.222.33.4:8443/mySecurePage" rel="nofollow noreferrer">https://111.222.33.4:8443/mySecurePage</a></p>
<p>But, I want to be able to type in:</p>
<p><a href="https://111.222.33.4/mySecurePage" rel="nofollow noreferrer">https://111.222.33.4/mySecurePage</a></p>
<p>and have that work.</p>
<p>I haven't the faintest idea what to Google to figure this out.</p>
<p>Can anyone help?</p>
| 0non-cybersec
| Stackexchange |
If you had your pick of one lost written work (or series of works) from any point in history to be found and translated, what would it be? Explain.. My picks
1: The rest of the epic cycle. Knowing that the Iliad and Odyssey, basically the foundation of western literature were only 1/4 of the story drives me nuts.
2: The original writings of Jesus and his apostles. God damn that would solve so many questions. Actually all the lost works relating to the Bible. The gospel of Eve sounds kinky.
3: The remaining works of Livy. At least half of what we know about Rome came from his histories, and we only have 35 books out of his 140 or so. | 0non-cybersec
| Reddit |
Slow cooker Chocolate and Nutella bread pudding. | 0non-cybersec
| Reddit |
Them:how was your weekend. Me:. | 0non-cybersec
| Reddit |
WiFi connectivity problem on iPhone6s. <p>I don't really know that is this forum is best for asking this question but if there is any other place to ask this question Please let me know. </p>
<p>We have an issue at home where the iPhone not connect to my WiFi network or if got connected, it will not stay for long, i have to stay at the same place after connecting it.
I have tried so many ways to get rid of this problem but not getting the right solution for this.</p>
<p>iPhone 4s & 7+ works perfectly fine.</p>
<p>I have tried so many solutions for this but none of them worked for me.</p>
<ol>
<li>Changed my IP address</li>
<li>Restarted my WiFi device</li>
<li>Restarting iPhone</li>
<li>Forgetting and re-adding network</li>
</ol>
| 0non-cybersec
| Stackexchange |
Navigation Controllers in UISplitViewController leave space for bottom bar. <p>As the title indicates, I am having an issue when using UINavigationControllers as the Master and Detail view in a UISplitView. The navigation controllers leave space for a bottom bar. When I remove the nav controllers, the views are rendered just fine.</p>
<p>The storyboard looks like:</p>
<p>TabBarController -> SplitView -> UINavigationController (master and detail) -> ViewControllers for each.</p>
<p>I am able to "hack" the view to render properly by adding 40px of extra space as a constraint, but I would rather not do that.</p>
<p>What am I missing?</p>
<p>EDIT: I've mocked everything up in an empty project and it seems to work fine by default. It seems I've changed some setting or doing something in my main project that is causing this issue.</p>
<p><a href="https://i.stack.imgur.com/D7NlR.png" rel="noreferrer"><img src="https://i.stack.imgur.com/D7NlR.png" alt="The gray space is what I am trying to remove."></a></p>
| 0non-cybersec
| Stackexchange |
OpenVPN on pfSense, can ping but nothing else. <p>I have an OpenVPN setup on a pfSense to give me access to the private network. Everything works fine, I can connect and ping the VMs on the private network no problem; but when I try to request a web page (or anything else really) the packet comes back via the VPN interface on the client and nothings happen. </p>
<p>Note that I can reach the gateway where pfSense is 192.168.50.1 but nothing else</p>
<p>Here's a screenshot from Wireshark :</p>
<p><a href="https://i.stack.imgur.com/Q5WFF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q5WFF.png" alt="enter image description here"></a></p>
<p>The client network is 192.168.1.0/24</p>
<p>The VPN network is 172.16.0.0/24</p>
<p>The remote network is 192.168.50.0/24</p>
<p>Why do I get a response but then nothing happen ?</p>
| 0non-cybersec
| Stackexchange |
Shout the fuck out to Nick Fox at Glenns Tattoo service in Wilmington NC for hooking it up with this new piece!!. | 0non-cybersec
| Reddit |
How can a "proper" function have a vertical slope?. <p>Plotting the function <span class="math-container">$f(x)=x^{1/3}$</span> defined for any real number <span class="math-container">$x$</span> gives us:
<a href="https://i.stack.imgur.com/zdDPO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/zdDPO.png" alt="plot of function"></a></p>
<p>Since <span class="math-container">$f$</span> is a function, for any given <span class="math-container">$x$</span> value it maps to a single y value (and not more than one <span class="math-container">$y$</span> value, because that would mean it's not a function as it fails the vertical line test).
This function also has a vertical tangent at <span class="math-container">$x=0$</span>. </p>
<p>My question is: how can we have a function that also has a vertical tangent? To get a vertical tangent we need 2 vertical points, which means that we are not working with a "proper" function as it has multiple y values mapping to a single <span class="math-container">$x$</span>. How is it possible for a "proper" function to have a vertical tangent?</p>
<p>As I understand, in the graph I pasted we cannot take the derivative of x=0 because the slope is vertical, hence we cannot see the instantaneous rate of change of x to y as the y value is not a value (or many values, which ever way you want to look at it). How is it possible to have a perfectly vertical slope on a function? In this case I can imagine a very steep curve at 0.... but vertical?!? I can't wrap my mind around it. How can we get a vertical slope on a non vertical function?</p>
| 0non-cybersec
| Stackexchange |
Number of possible outcomes in a license plate. <p>If a license plate consists of 3 letters followed by 3 digits and having at least one digit or letter repeated .. How many outcomes are there?</p>
<p>26 * 26 * 10* 10 * 10 .. Is that right?</p>
| 0non-cybersec
| Stackexchange |
tox uses wrong version of pip when multiple versions of python are installed. <p>I have a build box which supports python 2.4, 2.6 and 2.7. This leads to installing various versions of pips as required in their own python installations. I'm using <code>tox</code> to run tests through <code>setup.py</code>. </p>
<p>Whenever I run a <code>{python2.7_installation_dir}/bin/python setup.py test</code>, this results in a <code>.tox</code> directory. Inside <code>.tox</code> directory I run </p>
<pre><code>py27/bin/pip --version
pip 1.4.1 from {my_package}/.tox/py27/lib/python2.7/site-packages (python 2.7)
[buildbot@BUILD-SERV-01 .tox]# python2.7
Python 2.7.6 (default, Nov 20 2013, 15:33:09)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pip
>>> pip.__version__
'1.5.2'
</code></pre>
<p>So the version of pip inside .tox directory is 1.4.1 where as pip installed for python interpreter that I'm using to execute the <code>setup.py test</code> is 1.5.2. This leads to errors when running tests as it uses pip to install the directories and some of them come from external sources and in 1.5.2 we need to set explicitly --allow-external --allow-unverified flag for one of the module which doesn't exist in 1.4.1, which results in an error each time i invoke tests through tox.</p>
<p>There is only one python2.7 installation and it is installed from source. But I think it was running pip 1.4.1, but now been upgraded to use 1.5.2. How tox can use the old version? Is there any <code>.pth</code> file or something that could have been left behind which needs clearing up?</p>
<p>I could drop <code>tox</code> and run pytests directly but I'd prefer to run them via <code>tox</code>.<br>
Please let me know if you want to see the logs, I can update the question with the log. </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 |
Suicide car bomber rushes army checkpoint.. | 0non-cybersec
| Reddit |
Grep in files with a specific extension under a directory. <p>Is there a command that allows searching a keyword in files under a directory with specific extension ?</p>
<p>The string <code>grep -irn "string" ./path</code> gives a recursive search for all files under the directory<code>./path</code>. My specific requirement is to search in all files under <code>./path</code> with an extension such as <code>*.h</code></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 |
Transfer a working Windows XP installation to USB pen. <p>I would like to put my working windows xp installation on a usb pen and get rid of the hard disk (it's a video poker machine so performance of usb is not an issue and hd break very easily).
How can I achieve a perfect and bootable copy from my hd to my pendrive?</p>
<p>Thanks a lot!</p>
| 0non-cybersec
| Stackexchange |
Art Deco Stars Wars posters (via Wired). | 0non-cybersec
| Reddit |
A Visual History of MFA's Favorite Jackets. | 0non-cybersec
| Reddit |
Can you create a new Model instance without saving it to the database. <p>I want to create a whole bunch of instances of a model object in Laravel, then pick the optimal instance and save it to the database. I know that I can create an instance with <code>Model::create([])</code>, but that saves to the database. If possible I'd like to create a bunch of models, then only "create" the one that is best.</p>
<p>Is this possible?</p>
<p>I am using Laravel 5.0</p>
| 0non-cybersec
| Stackexchange |
What is the meaning of $1/(D+a)$, where $D$ is the derivative operator?. <p>Today I read the answer to <a href="https://math.stackexchange.com/questions/832348/what-is-the-most-efficient-method-to-evaluate-this-indefinite-integral">this post</a>, in which the poster integrates $x^5e^x$ by making these manipulations with the differential operator $D$: $$\frac1Dx^5e^x=e^x\frac{1}{1+D}x^5=e^x(1-D+D^2+...)x^5$$</p>
<p>which I was amazed by but yet suspicious of. After reading a bit on differential operators, I know a few properties. For example, $D+a$ (where $a$ is constant) is a polynomial differential operator which comes from the differential equation $y'+ay = q(x)$. Also, for polynomials $f$ and $g$, $f(x)\cdot g(x)=h(x)$ implies $h(D)u=f(D) \circ [g(D)u]$ with $u$ being a function and $f(D), g(D), h(D)$ being polynomial differential operators. Since $(1+x) \cdot \frac1{1+x} = 1$, I know that if we applied the operator $(1+D)$ to some function, $\frac{1}{1+D}$ would invert it back to the original function.</p>
<p>However, this still doesn't help me make sense of the meaning of $\frac{1}{1+D}$. For example:</p>
<ol>
<li>If $1+D$ comes from the differential equation $y'+ay+q$, where does $\frac{1}{1+D}$ come from? In other words, if $(1+D)y = 1\cdot y + Dy = y' + y$, how do we compute $\frac{1}{1+D}y$? (Is it even possible, and how does it relate to integration?)</li>
<li>How do we justify the power series of the operator? How do we know there are no convergence issues?</li>
</ol>
| 0non-cybersec
| Stackexchange |
Nothing is ever mandatory. There is always a second option, it's just that the second option is sometimes death.. | 0non-cybersec
| Reddit |
Does draining water out of cauliflower and/or sautéing the cauliflower on a pan for 10-15+ min make the cauliflower lose its nutrients and vitamins?. So lately I’ve been making cauliflower rice like everyday since it’s a good substitute for rice, pizza etc. I’ve been making more cauliflower rice lately but I’ve been asking myself if I lose the nutrients and minerals in the process? So personally what I do is a grate the cauliflower into rice then I put it on a pan at low heat and move it around for 10-15 mins and occasionally I put a lid over it to make it “steam” or “pressure cook” so water gets out of it. Then I take the cauliflower out and put it on a cheesecloth and then squeeze the water out. Then I usually fry it with some eggs and olive oil. In this process do I lose nutrients in the cauliflower. If so what can I do better to drain the water out and keep the nutrients. I hate how it taste when it’s moist and like most of the water out of it so I could enjoy it | 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 |
Is there a way to close cmus without quitting?. <p>I'm using <strong>cmus</strong> to listen to music now.One problem is that I couldn't close the interface while listening, i.e. keep it running background.The raw '&' doesn't work.I know <strong>moc(p)</strong> has the function,just pressing 'q', is there a similar way for cmus?</p>
| 0non-cybersec
| Stackexchange |
I've always worked for my dad. A few years ago I left him to get a job at another company. A year later he came to work for them too. Here's one of our favorite achievements.. | 0non-cybersec
| Reddit |
My first attempt at home made pizza... (how can i get thinner crust?). | 0non-cybersec
| Reddit |
C# HttpClient.SendAsync always returns 404 but URL works in browser. <p>I am developing an C# console application for testing whether a URL is valid or not. It works well for most of URLs. But we found that there are some cases the application always got 404 response from target site but the URLs actually work in the browser. And those URLs also works when I tried them in the tools such as DHC (Dev HTTP Client). </p>
<p>In the beginning, I though that this could be the reason of not adding right headers. But after tried using Fiddler to compose a http request with same headers, it works in Fiddler. </p>
<p>So what's wrong with my code? Is there any bug in .NET HttpClient?</p>
<p>Here are the simplified code of my test application:</p>
<pre><code>class Program
{
static void Main(string[] args)
{
var urlTester = new UrlTester("http://www.hffa.it/short-master-programs/fashion-photography");
Console.WriteLine("Test is started");
Task.WhenAll(urlTester.RunTestAsync());
Console.WriteLine("Test is stoped");
Console.ReadKey();
}
public class UrlTester
{
private HttpClient _httpClient;
private string _url;
public UrlTester(string url)
{
_httpClient = new HttpClient
{
Timeout = TimeSpan.FromMinutes(1)
};
// Add headers
_httpClient.DefaultRequestHeaders.Add("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36");
_httpClient.DefaultRequestHeaders.Add("Accept-Encoding", "gzip,deflate,sdch");
_httpClient.DefaultRequestHeaders.Add("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8");
_httpClient.DefaultRequestHeaders.Add("Accept-Language", "sv-SE,sv;q=0.8,en-US;q=0.6,en;q=0.4");
_url = url;
}
public async Task RunTestAsync()
{
var httpRequestMsg = new HttpRequestMessage(HttpMethod.Get, _url);
try
{
using (var response = await _httpClient.SendAsync(httpRequestMsg, HttpCompletionOption.ResponseHeadersRead))
{
Console.WriteLine("Response: {0}", response.StatusCode);
}
}
catch (HttpRequestException e)
{
Console.WriteLine(e.InnerException.Message);
}
}
}
}
</code></pre>
| 0non-cybersec
| Stackexchange |
Trigonometry problem: compute the value of $\cos{\theta}$ of an isosceles triangle. <p><a href="https://i.stack.imgur.com/2fziw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2fziw.jpg" alt="enter image description here"></a></p>
<p><strong>Question:</strong> ${\triangle}ABC\ \text{is an isosceles triangle, given}\ \overline{AD}=2\overline{EC}\ \text{, compute the value of}\cos{B}$</p>
<p><strong>My Attempt:</strong> $\cos{B} = \frac{\overline{BD}}{\overline{AB}}=\frac{\overline{BE}}{\overline{BC}}$</p>
<p>That's all I can do...</p>
<p>I noticed that ${\triangle}ADB\sim{\triangle}CEB$, but I don't know how to use it</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 |
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 |
Security for bitcoin businesses with Employees. <p>Have been investigating some of the gateway apps and offline systems that are being developed. I was wondering what is the most secure way for a business to conduct itself. Let's use a bar as an example. </p>
<p>I would assume a strategy like this would be a start.</p>
<ol>
<li>Owner creates a cold storage wallet with some read only addresses. I am thinking as this being the safe. (maybe even print some out so employees can easily cash out)</li>
<li>The bar then has an online accessible wallet.</li>
<li>He outfits his mobile devices running one of the online gateways or maybe even the electrum wallets.</li>
<li>Patron is ready to pay, the employee rings up the bill and says $xx.xx </li>
<li>The employee and the patron do their transactions. </li>
</ol>
<p>Here is the question...</p>
<p>How often should the employee dump the coin into the cold storage safe? I would think they would need some in case they needed to reimburse a customer.</p>
<p>What do you guys think is the optimal way for a business of anytime, customers or not should handle their coin?</p>
| 0non-cybersec
| Stackexchange |
ITAP of my friend on stage. | 0non-cybersec
| Reddit |
My brother and I carved pumpkins. Happy Festival of the Lost Guardians. [SIVA and Rasputin](http://imgur.com/6jgzThj)
| 0non-cybersec
| Reddit |
Random semantic security and bijective PRGs. <p>I'm working through Boneh and Shoup's "Graduate Course in Applied Cryptography", and have just finished reading the chapter on stream ciphers and PRGs.</p>
<p>The first exercise for this chapter introduces the notion of semantic security of a cipher for random plaintext messages. Formally, for a cipher $\mathcal{E}=(E, D)$ defined over $(\mathcal{K}, \mathcal{M}, \mathcal{C})$, we define an attack game where the <em>challenger</em> (instead of the adversary $\mathcal{A}$) chooses two messages $(m_0, m_1) \xleftarrow{R} \mathcal{M}$ uniformly at random from the message space, and encrypts $m_b$ in Experiment $b \in \{0, 1\}$, sending the adversary the resulting ciphertext $c$. $\mathcal{A}$ then sends back a single bit $\hat{b} \in \{0, 1\}$ to end the game. $\mathcal{A}$'s advantage in this game is then defined as </p>
<p>$$
SSRadv[\mathcal{A}, \mathcal{E}] = \left|Pr[\hat{b}=1|b=0] - Pr[\hat{b}=1|b=1]\right|
$$</p>
<p>and $\mathcal{E}$ is said to be semantically secure for random plaintexts if $SSRadv[\mathcal{A}, \mathcal{E}]$ is negligible for any efficient adversary $\mathcal{A}$.</p>
<p>The main body of the question asks about how one would build a cipher $\mathcal{E}'=(E', D')$ defined over $(\mathcal{K}', \mathcal{M}', \mathcal{C}')$ that is semantically secure in the "normal sense" (i.e. in an attack game where the adversary chooses $m_0$ and $m_1$), using an SSR-secure (as defined above) cipher $\mathcal{E}$ as a starting point. For complete context, the problem also states that $\mathcal{K}=\mathcal{K}', \mathcal{M}=\mathcal{M}'$.</p>
<p>Given the topic of the preceding chapter, it feels like a natural solution here is to use a secure PRG $G$. Specifically, let $G$ be a secure PRG defined over $(\mathcal{M}, \mathcal{M})$, and then for a given key $k \in \mathcal{K}$ and message $m \in \mathcal{M}$, define $E'(k, m) = E(k, G(m))$. Intuitively, G transforms any chosen plaintext $m$ into an essentially random element of $\mathcal{M}$, and then the random semantic security of $\mathcal{E}$ implies the semantic security of $\mathcal{E}'$. For brevity, I won't try to spell out the actual security proof here.</p>
<p>My main concern here arises when trying to define what the decryption algorithm $D'$ would look like here. In order to undo the application of $G$, we'd need $G$ to have an inverse, and since $G$ is defined over $(\mathcal{M}, \mathcal{M})$, this implies that $G$ is a bijection. This seems like it would contradict the assumed security of $G$; if we can readily define an inverse for $G$, then we could retrieve any seed from its corresponding image in $G$. </p>
<ol>
<li><p>Is it possible to have a secure PRG $G$ that is also a bijection, and if so are there restrictions on $\mathcal{M}$ (e.g. $\mathcal{M}$ is super-poly in the security parameter, etc.)?</p></li>
<li><p>Is there a different approach to building $\mathcal{E}'$ that gets around this potential security flaw?</p></li>
</ol>
| 0non-cybersec
| Stackexchange |
React Native - Exception '-[NSNull length]: unrecognized selector sent to instance 0x1e6c059b0' was thrown while invoking multiSet on. <p>I get this error few seconds after the app is loaded (but not always sometimes after few minutes or few downloads). I need to solve this issue.<br>
if more details are needed and/or editing - please tell me and I'll make them.</p>
<p>Exception '-[NSNull length]: unrecognized selector sent to instance 0x1e6c059b0' was thrown while invoking multiSet on target AsyncLocalStorage with params (
(
(
"@Ye-Music:songs",
""
)
),
483
)</p>
<p><a href="https://i.stack.imgur.com/jYDUl.png" rel="noreferrer"><img src="https://i.stack.imgur.com/jYDUl.png" alt="Screenshot of the error"></a></p>
<p><br> The function with AsyncStorage:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>allSongs = () => {
console.log('hello function!');
fetch(URL + "/SongsList", {
body: null, //// sending null because its a view from SQL db
method: "POST",
headers: {
Accept: 'application/json',
"Content-type": "application/json; charset=UTF-8"
}
})
.then(res => { return res.json()})
.then((songsResult) => {
AsyncStorage.setItem("@Ye-Music:songs", songsResult.d);
})
.catch(err => {
console.error(err);
});
};</code></pre>
</div>
</div>
</p>
<p><br> package.json</p>
<pre><code>"dependencies": {
"@expo/samples": "2.1.1",
"expo": "29.0.0",
"react": "16.3.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-29.0.0.tar.gz",
"react-native-elements": "^0.19.1",
"react-native-material-cards": "^1.0.9",
"react-native-music-control": "^0.7.3",
"react-native-music-player-service": "^0.1.4-beta",
"react-native-search-header": "^0.3.0",
"react-native-sound": "^0.10.9",
"react-native-track-player": "^0.2.5",
"react-navigation": "^2.9.3"
},
</code></pre>
| 0non-cybersec
| Stackexchange |
Order Pizza on Facebook by Linking PayPal Account. | 0non-cybersec
| Reddit |
Is the NotHaus conviction (Liberty Dollar) relevant as legal precedent?. <p>Bernard von NotHaus (the creator of the <a href="http://en.wikipedia.org/wiki/Liberty_Dollar">Liberty Dollar</a>) was convicted of violating a U.S. federal law that forbids the minting of a currency by anyone in the U.S. besides the federal government. Might it be claimed that bitcoins are also a currency and their users or creators violate that same law?</p>
| 0non-cybersec
| Stackexchange |
Does there exist a first-order theory $T$ and a proof system $\vdash$ such that $T\vDash\phi$ iff $T\vdash\phi$, but $\vdash$ is not complete?. <p>Let $L$ be a first-order language and $T$ a theory in $L$. (Here I take "theory" simply to mean a set of sentences in $L$.) </p>
<p>Under the standard semantics $\vDash_{std}$ and any standard proof system $\vdash_{std}$, we have strong soundness and strong completeness: for all first-order languages $L$ and for all sentences $\phi$ in $L$ and for all theories $T$ in $L$, $T\vDash_{std}\phi$ iff $T\vdash_{std}\phi$.</p>
<p>I'm wondering whether, given $L$, there is always an alternative proof system $\vdash_{*}$ such that there exist theories $T$ in $L$ for which $T\vDash_{std}\phi$ iff $T\vdash_{*}\phi$, even though $\vdash_{*}$ isn't strongly complete -- i.e. even though semantic and syntactic consequence don't coincide hold for <em>all</em> theories $T$.</p>
<p>Perhaps the question is trivial if we pick a silly enough proof system, but I've been away from logic for a while and am getting lost in quantifiers (does the language matter?). Perhaps one strategy is to imagine ditching some of the axioms or inference rules of a standard axiomatic proof system: we'll lose completeness of $\vdash_{std}$, so we'll lose the semantics-syntax correspondence on some theories, but will we necessarily lose it on <em>all</em> theories?</p>
<p>If the question is trivial, can it be perturbed to something interesting nearby?</p>
<hr>
<p><strong>EDIT</strong>: Per my own example (take $T$ to be $\left\{\forall x(x\neq x)\right\}$ and $\vdash_{*}$ to be the standard system without quantifier axioms, except for universal instantiation) and that of user Apostolos (take $T$ to be complete in the sense of containing, for each sentence $\phi$, either $\phi$ or its negation, and let $\vdash_{*}$ be the empty system, with no rules and no axioms), the answer to the question in the title is <em>yes</em>. </p>
<p>But what if we require $T$ to be consistent and $\vdash_{*}$ to be nonempty (i.e. to have some axioms and inference rules)?</p>
| 0non-cybersec
| Stackexchange |
Conditionally set first activity in Android. <p>Currently we have a splash screen that is displayed in our app. However, if there is no data to be gathered or processed that is waiting, we'd like to go straight into our first activity. Is there a way to do that without having the splash screen flash?</p>
<p>The AndroidManifest.XML of the splashscreen portion is as follows:</p>
<pre><code><activity android:name="com.example.SplashScreenActivity"
android:label="@string/app_name"
android:noHistory="true" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</code></pre>
| 0non-cybersec
| Stackexchange |
Anyone else feel like building another PC once done with yours?. I have so far built 2 computers within a couple months timeframe, last one being built around a month ago. I'm already itching on building an entirely new system, I just love the experience of putting together all the shiny new parts and doing all the cable management. Then being satisfied to have it work first boot.
I currently have a 970 and planning a sli 980 build whenever I can scrap together $3000 (Aud). I feel greedy with myself, always wanting more when I have PERFECTLY enough for what I need. If I had the money, I would build a 4 980ti sli build just because I can, and well because I'm probably stupid.
How can I stop this increasing addiction/desire to build a PC and instead use my money wisely? | 0non-cybersec
| Reddit |
C# Access the Properties of a Generic Object. <p>I have a method that counts the number of Contacts each Supplier, Customer and Manufacturer has (this is a scenario to try make explaining easier!)</p>
<p>The models are all created by Linq to SQL classes. Each Supplier, Customer and Manufacturer may have one or more Contacts</p>
<pre><code>public int CountContacts<TModel>(TModel entity) where TModel : class
{
return entity.Contacts.Count();
}
</code></pre>
<p>The above of course doesnt work, because the 'entity' is generic and doesnt know whether it has the property 'Contacts'. Can someone help with how to achieve this?</p>
| 0non-cybersec
| Stackexchange |
To anybody who is unsure if they want to build a PC, your hesitation is justified. There is a post at the top of this subreddit right now that I wanted to add to, but felt like creating a separate post regarding it would be best. Here is the post in question: [To anybody who is unsure if they want to build a PC...](https://www.reddit.com/r/buildapc/comments/hm5trz/to_anybody_who_is_unsure_if_they_want_to_build_a/)
​
'\*' = Preceding points are demonstrated within the comments section.
I fully encourage those of you who are anxious about PC building to utilize this subreddit to its fullest extent. The existence of this place, the wiki in particular, is a genuine human achievement. There is just no possible way to build a PC for the first time without enlisting the help of others. Period. YouTube videos and forums are useful tools for troubleshooting and general research, but there is a likelihood that your specific build is unique to you. This uniqueness is going to bring a unique set of problems that are unique to your build. Having access to and utilizing a community such as this one is going to be astronomically important to you throughout the building process, so being kind and being detailed to the users who try to help you can only work in your favor.\*
​
With this said, it is also very likely that you will feel completely alone, nervous, and filled with regret when building and troubleshooting. You may not have access to someone in real life who is willing to help you or knows anything about computer building.\* Those you look towards for help (be it online or in person) may also be stumped, unresponsive, or misunderstanding. You cannot possibly accommodate for every single thing that may or may not go wrong with your build. You cannot possibly know how to word every question you have, how to describe every sound you hear, how to provide a detailed Madden play-by-play of your certain issue and how you got there. There is a very realistic chance that you might have to attempt doing these things at some point and there is a very realistic chance that these things might not lead you anywhere.
​
Building a PC needs to be a calculated risk that you take. You trade the support net provided to you by a singular company selling you a pre-built or a laptop for a patchwork net consisting of the companies you chose for each specific computer part.\* The process of returning your PC parts is long and arduous. Some companies are not as forgiving as others. You may void a warranty, mention something during a live chat that voids your return, or break a part and be subject to the varying kindness of a corporation.\* These are fairly fringe examples, but these things do happen to people -- and you are very much a person. Issues with a specific part of your build may not be apparent, or may produce symptoms in an entire other part rather than the offending one. Your PC is a delicate ecosystem which relies on the stability of each and every participating part.
​
Do not be pressured into going through with a build if you feel that you are not adequately prepared. If you have financial concerns, adjust your performance expectations proportionately. The computer parts market is designed to make you feel like the parts in your price-range, whatever that range may be, are inadequate when compared to a higher tier. This includes YouTube reviewers and public forums such as this one, intentional or not.\* Building a PC is a test of maturity and responsibility; however, choosing not to build a PC is just as much a test of these qualities. When you build your first PC, you are first and foremost spending money on a learning experience. Only after this experience will you then reach the reward at the end. Despite what you all-too-often hear (typically via anecdotal evidence) regarding PC building, nothing about the process is what anyone can rightly consider easy.\* If you jump into this thinking you can wing it, you will regret your decision.
'\*' = Preceding points are demonstrated within the comments section.
​
TLDR: Don't feel bad for not understanding something. Shit happens all the time. Utilize this community and the other resources at your disposal. Building a PC is a big accomplishment and its complexity shouldn't be downplayed.
​ | 0non-cybersec
| Reddit |
What are your opinions on having someone who is "the one that got away"?. | 0non-cybersec
| Reddit |
Uniqueness of a local martingale problem. <p>First, some notation: let $X = (X_{t})_{t\geq 0}$ be some strong Markov process in $E = \mathbb R^n$ with cadlag paths. Let us denote by $P_t$ the transition semigroup of $X$ and by $\mathbb B$ the Banach space of all bounded measurable real-valued functions $f$ with a norm $\|f\| = \sup\limits_{x\in \mathbb E}|f(x)|$. Put:
$$
A f(x) = \lim\limits_{t\downarrow 0}\frac{P_tf(x) - f(x)}{t}\tag{IG}
$$
to be an infinitesimal generator of $P_t$, defined on $\mathscr D(A)\subset \mathbb B$ being the space of function for which the limit in $(\mathrm{IG})$ exists in norm. It is well-known that for any $f\in \mathscr D(A)$ and $x\in E$ the process
$$
C^{f}_t = f(X_t) - f(x)-\int\limits_0^t(Af)(X_s)ds
$$
is a martingale. </p>
<p>For $f\in \mathbb B$ we further say that $f\in\mathscr D(\mathscr A)$ if there is $h\in \mathbb B$ such that for any $x\in E$ the process
$$
C^{f,h}_t = f(X_t) - f(x)-\int\limits_0^t h(X_s)ds
$$
is a <em>local</em> martingale. On $\mathscr D(\mathscr A)$ we define the <em>extended</em> generator as
$$
\mathscr A:f\to h.\tag{EG}
$$
Note that $\mathscr A$ is defined up to some sort of uniqueness: i.e. if $h_1,h_2$ are candidates for $\mathscr A f$ then
$$
\int\limits_0^\infty 1\{s:h_1(X_s) \neq h_2(X_s)\}\;ds = 0 \text{ a.s.}
$$</p>
<p>Conversely, let $(L,\mathscr D(L))$ be some linear operator with $\mathscr D(L)\subset \mathbb B$. The Markov process $Y$ with cadlag paths is said to satisfy the martingale problem with $L$ if
$$
f(Y_t) - f(x)-\int\limits_0^t(Lf)(Y_s)ds \tag{LMP}
$$
is a local martingale for any $x\in E$ and $f\in \mathscr D(L)$. The local martingale problem is said to be well-posed if it has a solution and any two solutions have the same family of finite-dimensional distributions.</p>
<hr>
<p>My question is the following. Suppose we start with some given process $X$ and $\mathscr D(\mathscr A)$ precisely. Clearly, there is at least one solution of the local martingale problem for $\mathscr D(\mathscr A)$ which is given by the process $X$. I wonder if it is unique, or what are the sufficient conditions for the uniqueness.</p>
<p>My thoughts are: since we know $\mathscr D(\mathscr A)$ - we know also $\mathscr D( A)$ and the operator $A$ since $A = \mathscr A$ on the domain of definition of the former operator. Then we can switch to the <em>martingale</em> problem for the infinitesimal generator $A$ rather than dealing with the extended generator and the local martingale problem. I think I've seen somewhere that it such problem then have the unique solution - but I am not sure where have I've seen it and whether it's true.</p>
<p>Any help or hints are appreciated.</p>
| 0non-cybersec
| Stackexchange |
Child Molester Beaten to Death by Fellow Inmate Days After Arriving at Kern County Prison: Officials. | 0non-cybersec
| Reddit |
Airship Of Doom | Photo Manipulation. | 0non-cybersec
| Reddit |
21-year-old weightlifter tries to squat 1008 lbs. at nationals last weekend, projectile vomits on judge, passes out. | 0non-cybersec
| Reddit |
When is the iso-comma category $F \wr G $ a reflective subcategory of the comma category $F \downarrow G$?. <p>Let <span class="math-container">$F \wr G$</span> be the iso-comma category. This is basically the same construction as the comma category <span class="math-container">$F \downarrow G$</span> except that we require the morphism <span class="math-container">$F(x) \to G(y)$</span> to be an isomorphism instead. Observe that <span class="math-container">$F \wr G$</span> is a full subcategory of <span class="math-container">$F \downarrow G$</span>, my question is: under what conditions does the inclusion admit a left (or possibly right) adjoint? i.e. when is <span class="math-container">$F \wr G$</span> a (co)reflective subcategory of <span class="math-container">$F \downarrow G$</span>?</p>
<p>I'm looking for any references which consider this question as well.</p>
| 0non-cybersec
| Stackexchange |
[DISCUSSION] GQ NEW YORK FASHION WEEK AND THE FUCKIN TRENDS YOU FUCKERS WANNA LOOK OUT FOR. ALRIGHTY BOYS FIRST ID LIKE TO SHOUTOUT /u/carrixcake FOR HIS LOVELY POST FROM GQ COVERING NEW YORK FASHION WEEK STREET STYLES
SINCE IVE DECIDED I HATE MYSELF AND ALL OTHER NO LIFE POWER POSTERS I THOUGHT ID GIVE AWAY ALL OUR SECRETS BY GIVING EACH AND EVERY ONE OF YOU A COMPREHENSIVE RUN DOWN OF THE TRENDS IM NOTICING IN GQS ALBUM AND WHAT THAT MEANS FOR YOU
AFTER YOUVE GIVEN MY STREAM OF CONCIOUSNESS VOMIT COMIT OF A POST THE THOROUGH READING IT DESERVES FEEL FREE TO HIT UP THE COMMENTS AND TELL ME WHAT TRENDS I MISSED, WHAT TRENDS GQ MISSED, WHAT YOU LIKE OR DONT LIKE ABOUT SAID TRENDS AND AND AND (AND IM GONNA HATE MYSELF FOR THIS ONE) FEEL FREE TO ASK ME OR ANYONE FOR BRANDS TO LOOK OUTFOR AND CHEAP ALTS FOR THESE LOOKS YOU CAN ACHIEVE WHILE BALLIN ON A BUDGET
[GALLERY HERE](https://www.gq.com/gallery/street-style-new-york-fashion-week-men-fall-2018)
New York Fashion Week: buy a puffer jacket or get out
In all seriousness though its neat to see these trends developing. And what kind of looks are reaching prominence with those with their finger on the pulse of relevant fashion
Trends:
Long overcoats remain in style, but becoming more oversized, closer to lower legs and feet with ever expanding lapels.
Puffer jackets stupidly trendy at the moment. Everyone and their mom has one in the wildest color or material you can imagine.
Leathers and sherpas remain trendy, but worn less aggressively than in the past.
Colors are big. We're seeing more vibrant tones and deep colors. Smooth and mature oaks and shell blues and salmons compete for attention with deep oranges, mustard yellows, emerald greens and other more wacky triatic colors.
Pattern mixing making a huge comeback (along with more mature and weighty materials like wool, boucle, and knits. The drunk 1950s british dad look is both in and gorgious
Along with this is the continued prominence of wider cuts, slouching fits, and sloppy styling of mature pieces for an almost ageless effortless vibe
Shockingly im seeing a sort of quick death of the overbranding trend that struck hard last year. It may have been the rain but i was pleasantly suprisedto notice thay despite the luxe outfits and beautiful pieces on display not many people were plastered with branding or overt logos and graphics
Wacky 2000s and late 90s accessories are making a big comeback. Hit up your local Claire's for the coolest color tinted shades on the block to go with your new colorful wardrobe
Dad shoes OF COURSE are in baby. Ozweegoes, triple S, air max, whatever ungodly poop smeared abomination Gucci just shatout to stay trendy yes baby its daddy's year.
Big boy boots as well too match the thick aesthetic. Chunky chelseas, work boots (paired perfectly with every boys favorite carhartt or Craig green also making waves this year), and doc martens are all solid investments in 2018 the year of our lord
Deconstruction, the eternal Margiela meme machine seems to be thriving off the back of the recent sloppy styling trend. Exposed innards of overcoats, seems falling apart all over, the off white ten making big street appearances on anyone and everyone should tell you where this is going
Workwear/Military brands in general are huge. Or those attempting to capture the look and feel. OAMC, Alyx, Craig Green, Rothco, Carhartt all on the up and up this season
All in all I really like what im seeing and I'm super happy with the direction I see New York Fashion headed in as well as what that means for the rest of us | 0non-cybersec
| Reddit |
Tangent space and a subset of a tame Lie group. <p>I am curious if the set of all orientation-preserving diffeomorphisms with a given rotation number is a tame Lie subgroup or a tame submanifold of all orientation-preserving diffeomorphisms on the unit circle? Thanks.</p>
| 0non-cybersec
| Stackexchange |
Help with Ryzen 5 2400g build.. ###Troubleshooting Help:
**What is your parts list? [Consider formatting your parts list.](http://www.reddit.com/r/buildapc/wiki/pcpp)**
Ryzen 5 2400g (stock AMD cooler)
Gigabyte GA-AB350N Gaming Wifi
Corsair Vengeance RGB 2x8gb 3000mhz
SilverStone SG13 case
Windows 10 64bit
**Describe your problem. List any error messages and symptoms. Be descriptive.**
Haven't overclocked the APU or memory. XMP is turned off.
Just finished this build and computer is sluggish. After updating BIOS to F22B, it still takes a while to load webpages (20-30 seconds on average). Updated drivers via Gigabyte's website and Windows Update and Device Manager.
Trying to run Prey (2017), I can only run it at 720p Low settings or it crashes.
**List anything you've done in attempt to diagnose or fix the problem.**
I've messed with turning XMP on and running RAM at 3000mhz, but it seems to run the best and most stable with XMP off at 2133mhz.
**Post relevant photos of build/parts here.**
No pics right now.
**Provide any additional details you wish below.**
None. | 0non-cybersec
| Reddit |
You know it was that little caesars too.. | 0non-cybersec
| Reddit |
Recursively counting a parking function. <p><strong>Definition: Parking Function</strong></p>
<p>A parking function of order $n$ is a function $f:\{1,2,\ldots,n\}\rightarrow\{1,2,\ldots,n\}$ such that</p>
<p>$$|\{x:f(x)\le i\}|\ge i\qquad \textrm{for $1\le i\le n$}$$</p>
<p>It is often described using the following scenario: </p>
<p>$n$ cars $\{1,2,\ldots,n\}$ enter a one way street (or parking lot) with $n$ parking spaces. Each car enters the street one at a time <em>in numerical order</em>. They each proceed along the spaces $\{1,2,\ldots , n\}$ <em>in order</em> so that each successive car $x$ either fills its <em>preferred</em> space $f(x)$ or the next available space after $f(x)$. If all cars manage to find a space before exiting the parking lot at the far end then $f$ is called a "parking function". If <em>any</em> car <em>cannot</em> find a space after its preferred space then $f$ is not a parking function.</p>
<hr>
<p>My task is to provide a combinatoric argument for the recursive formula that counts the number of parking functions on $[n+1]$. The formula is given by $$P(n+1)=\sum_{i=0}^{n} \binom{n}{i} (i+1) P(i)P(n-i)$$</p>
<hr>
<p>I know that explicit formula for counting the number of parking function is given by $$P(n) = (n+1)^{n-1}$$ Providing a explanation for the recursion seems to be relate to the concept of dividing the "parking spots" into halves. With the first half having $i$ spots and the second half having $n-i$ spots, but I can't fully relate.</p>
| 0non-cybersec
| Stackexchange |
ngx-Codemirror cursor is not working correctly-Angular 8. <p>I have implemented <a href="https://www.npmjs.com/package/@ctrl/ngx-codemirror" rel="nofollow noreferrer">ngX-CodeMirror</a> in my angular project. I have added the code editor inside an angular material modal. It works fine I'm not able to move the cursor so that I can click on any text. I am able to click on some text but not where we intend to.</p>
<p>I have added this issue in stackblitz : <a href="https://stackblitz.com/edit/code-mirror-cursor-issue-in-modal" rel="nofollow noreferrer">Code Mirror Cursor Issue</a></p>
<p>This is s snippet from my component.html file</p>
<pre><code><ngx-codemirror
#codeMirror
[options]="codeMirrorOptions"
[(ngModel)]="codeObj"
></ngx-codemirror>
</code></pre>
<p>And in component.ts,</p>
<pre><code>import { Component, OnInit, ViewChild, ElementRef, Input } from "@angular/core";
import { CodemirrorComponent } from "@ctrl/ngx-codemirror";
export class CodeEditorComponent implements OnInit {
@Input()
configs: any;
testData: any;
@ViewChild("textArea") textArea: ElementRef;
codeMirrorOptions: any = {
theme: "idea",
mode: "application/json",
lineNumbers: true,
autoRefresh: true
};
codeObj: any;
constructor() {}
ngOnInit(): void {
this.codeObj = JSON.stringify(this.configs, undefined, 2);
}
}
</code></pre>
<p>I'm not sure why this happened or if we need to provide any specific options to see mouse cursor.
I have seen a related query for this in <a href="https://discuss.codemirror.net/t/codemirror-cursor-is-not-partially-visible/648" rel="nofollow noreferrer">codeMirrorDiscussionForum</a> but couldn't find a solution yet.</p>
<p>Please do help me solve this issue by referring the stackblitz link.</p>
| 0non-cybersec
| Stackexchange |
How long did it take to count, declare a winner and propagate the news across the nation in General Elections in the 19th century?. All of the flash polls and having news networks able to call states with 1% of the vote in sometime made me think about what an election was like before the 21st century, or even the 20th. I was down a rabbit hole the other day reading about Presidential travel and read that ..someone who I forgot was the first person to accept the nomination at their party's convention by traveling via air. | 0non-cybersec
| Reddit |
HD texture packs be like. | 0non-cybersec
| Reddit |
Cannot run phpunit test on codeigniter, CI not found error. <p>I am running phpunit test on codeigniter, I have a admin_test.php file with this piece of code.</p>
<pre><code>class Admin_test extends PHPUnit_Framework_TestCase{
private $CI;
public function __construct()
{
// create instance variable
$this->CI = &get_instance();
}
public function testRenderReturnsHelloWorld(){
$this->CI->load->controller('admin');
$data = $this->admin->render();
$expected = 'Hello World';
$this->assertEquals($expected, $data);
}
}
</code></pre>
<p>And when I run the phpunit test I get this error.</p>
<pre><code>PHP Fatal error: Call to undefined function get_instance() in C:\Users\farhana\Desktop\ci\tests\application\controllers\admin_test.php on line 16
PHP Stack trace:
PHP 1. {main}()
</code></pre>
<p>I used composer to get phpunit test so following other tutorials wont work since composer is loading bootstrap.php file</p>
<p>Here is my phpunit.xml file</p>
<pre><code><?xml version="1.0" encoding="UTF-8" ?>
<phpunit bootstrap="./vendor/autoload.php"
color = "true"
convertErrorsToExpections="true"
convertNoticesToExceptions="true"
convertWarningsToExpections="true"
syntaxCheck="false"
>
<testsuites>
<testsuite name="Unit Tests">
<directory>./tests/application/controllers/admin_test.php</directory>
</testsuite>
</testsuites>
</phpunit>
</code></pre>
| 0non-cybersec
| Stackexchange |
Volume of a shape. <p>The base is the semicircle $$y=\sqrt{9−x^2},$$ where $x\in[-3;3]$. The cross sections perpendicular to the $x$-axis are squares.</p>
| 0non-cybersec
| Stackexchange |
Best Tips For Mobile Application Security. | 1cybersec
| Reddit |
[Russia] Unmarked road repairs sends car flying. | 0non-cybersec
| Reddit |
Wikipedia in the builtin dictionary in hebrew...but only when searching for tech words?. <p>It doesn't do it for all of them, ex. when I search TCP/IP it's in english but a search for BSD yields this </p>
<blockquote>
<p>Berkeley Software Distribution, או בקיצור BSD, היא מערכת הפעלה נגזרת של מערכת ההפעלה UNIX, שנוצרה ותוחזקה באוניברסיטת קליפורניה בברקלי מאז שנות ה-70 עד לאמצע שנות התשעים של המאה העשרים. כיום, המושג 'BSD' מתייחס לאחד מצאצאי BSD המקורי, הווה אומר מערכות FreeBSD, NetBSD או OpenBSD, שגם הן מערכות דמויות UNIX.</p>
</blockquote>
<p>אחד הרכיבים של מערכת Mac OS X הוא Darwin, שהיא ליבת מערכת שמבוססת על FreeBSD.</p>
<p>I have already checked in preferences and english is the only language selected. I'm running 10.10.2 on a late 2013 Macbook Pro 15. Does anyone know what is causing certain ones to be in hebrew when I want only english and how to fix it?</p>
| 0non-cybersec
| Stackexchange |
What is n-dimensional DFT as a linear transformation matrix look like? How it can be expressed as a matrix multiplication?. <p><a href="https://i.stack.imgur.com/vpcEG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vpcEG.png" alt="enter image description here"></a></p>
<p>In the above picture, the Discrete Fourier Transform, for the case of 1-dimension is expressed as a matrix multiplication of the 1-D vector of length <span class="math-container">$N$</span> with a DFT matrix of dimension <span class="math-container">$N\times N$</span>. I want a similar thing for a general case of n-dimensional DFT. That is, let <span class="math-container">$x$</span> be an n-dimensional object, say <span class="math-container">$N_1\times N_2\times...\times N_n$</span>. I want to take a n-dimensional DFT of this object, by expressing as a product with a DFT matrix as in the case of 1-dimension example in the above figure. What kind of object would the DFT matrix (if i can call it a matrix) be? That defintely not a matrix product but something generalized to handle higher dimensions. Please provide me some theory and directions, or if it already exists, please point me to a reference.</p>
<p>PS : I don't know anything about Tensors, so Ia m not sure if tensors would help.</p>
| 0non-cybersec
| Stackexchange |
A$AP Ferg Wants to Be the Third Member of Daft Punk. | 0non-cybersec
| Reddit |
Permission denied when editing files in /Library/WebServer/Documents. <p>I've added a webroot directory and file within /Library/WebServer/Documents. The web site/file displays fine but when I try edit it within PHPStorm or when using <code>nano</code> (without sudo) I get file permission issues.</p>
<p>The parent directory of the webroot is owned by <code>root:wheel</code> and has 777 permissions.</p>
<p>Within the web directory <code>mysite</code> the permissions and owners are as follows:</p>
<pre><code>jcogan@/Library/WebServer/Documents/mysite
drwxrwxrwx@ 15 root wheel 480 11 May 10:25 .
drwxrwxrwx 11 root wheel 352 22 May 13:17 ..
-rwxrwxrwx@ 1 jcogan staff 6148 8 May 14:16 .DS_Store
drwxrwxrwx@ 43 jcogan staff 1376 22 May 14:03 web
</code></pre>
<p>Then in /web</p>
<pre><code>drwxrwxrwx@ 43 jcogan staff 1376 22 May 14:03 .
drwxrwxrwx@ 15 root wheel 480 11 May 10:25 ..
-rwxrwxrwx@ 1 jcogan staff 6148 25 Apr 17:25 .DS_Store
-rwxrwxrwx 1 jcogan staff 18 22 May 14:12 phpinfo.php
</code></pre>
<p>Are my owners configured wrong ?</p>
| 0non-cybersec
| Stackexchange |
[OC] Ranking of top European countries in math, reading, and science. | 0non-cybersec
| Reddit |
Using BeginCollectionItem in ASP.net Core. <p>I cannot use BeginCollectionItem by Steve Anderson in asp.net core. I got an error in my partial view when I use</p>
<pre><code>@using (Html.BeginCollectionItem("Entries"))
{
}
</code></pre>
<p>The type 'HtmlHelper' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. </p>
<p>is there an alternative way to achieve the functionality of BeginCollectionItem in ASP.net core?</p>
| 0non-cybersec
| Stackexchange |
Maximum length of a chain of topologies on $\Bbb R$. <p>Let $\frak T$ be a totally ordered set of topologies on $\Bbb R$.</p>
<p>Is $|\frak T|\le |\Bbb R|$?</p>
| 0non-cybersec
| Stackexchange |
Closed Polygonal Chains within a circle. <p>The circumference of a circle is divided into N equal parts by N points. How many different closed polygonal chains can be constructed, if they must be made of N segments of the same length, and use all of the N given points as vertices? (A closed polygonal chain is a connected series of line segments that ends at the point where it begins. The line segments may intersect. Two closed polygonal chains are considered identical if one will coincide with the other after rotation.) </p>
<p>how many such unique polygonal chains can be formed for any N? (AKA create a general formula)</p>
<p>Hint (Given to me by teacher): The formula is directly related to Euler's Totient Function</p>
| 0non-cybersec
| Stackexchange |
Looking for car opinions. Hey guy, and gals, I am just looking for some opinions on what you think I should buy. I currently drive a 2004 Jeep Rubicon, and although I love it, I need to sell it for a little better of a commuter. I'm looking for something that's sporty but doesn't drink as much gas as my Jeep. Some features I'm looking for are: AWD (front wheel drive might be ok), manual, >20 mpg (city), and must be under $10k. some cars I've been considering are: 2002-04 BMW 330xi, Chevy Cobalt ss, maybe a VW tdi. I'm open to any ideas you have, though I plan on not buying any Asian car except maybe Subaru. I live in Michigan so the AWD or front is a must for winter.
So, whatcha think!? | 0non-cybersec
| Reddit |
The End - Burt Reynolds and friends in a mental ward. | 0non-cybersec
| Reddit |
bg / fg inside a command line loop. <p>ctrl-z (^z) acts in ways I do not understand when done inside a loop executed from a terminal.</p>
<p>Say I type</p>
<pre><code>for ii in {0..100}; do echo $ii; sleep 1; done
</code></pre>
<p>then I hit ^z. I'll get:</p>
<pre><code>[1]+ Stopped sleep 1
</code></pre>
<p>I can resume the job using fg or bg, but the job refers only to he sleep command. The rest of the loop has apparently disappeared, and no more number appear on the terminal.</p>
<p>I could use & after the command to immediately run it in the background, or another solution is to wrap the whole thing in a subshell:</p>
<pre><code>( for ii in {0..100}; do echo $ii; sleep 1; done )
</code></pre>
<p>then ^z gives me</p>
<pre><code>[1]+ Stopped ( for ii in {0..100};
do
echo $ii; sleep 1;
done )
</code></pre>
<p>This job can be resumed and everyone is happy. But I'm not generally in the habit of doing this when running a one-off task, and the question I am asking is why the first behavior happens in the first place. Is there a way to suspend a command-line loop that isn't subshell'd? And what happened to the rest of the loop in the first example? </p>
<p>Note that this is specific to the loop: </p>
<pre><code>echo 1; sleep 5; echo 2
</code></pre>
<p>and hitting ^z during the sleep causes the <code>echo 2</code> to execute:</p>
<pre><code>1
^Z
[2]+ Stopped sleep 5
2
</code></pre>
<p>Or should I just get in the habit of using & and call it dark magic?</p>
| 0non-cybersec
| Stackexchange |
Units in quotient of polynomial ring in several variables. <p>Let <span class="math-container">$K$</span> be a field and <span class="math-container">$R = K[x,y]/(xy^2)$</span>.<br>
Let me denote by <span class="math-container">$S^{*}$</span> the set of units of a generic set <span class="math-container">$S$</span>. Moreover let <span class="math-container">$\pi : K[x,y] \to R $</span> be the quotient map.</p>
<p>I'm looking for the units of <span class="math-container">$R$</span>, i.e. <span class="math-container">$R^{*}$</span>.</p>
<ul>
<li>Clearly, <span class="math-container">$K[x,y]^{*} = K^{*} = K \setminus 0$</span> and using <span class="math-container">$\pi$</span> I know that <span class="math-container">$K^{*} \subset R^{*} $</span> (with this I mean that if <span class="math-container">$a \in K[x,y]^{*}$</span> then <span class="math-container">$[a]_{R} \in R^{*}$</span>)</li>
<li><span class="math-container">$[1 \pm x^my]_{R} \in R^{*}$</span>. Indeed <span class="math-container">$(1+x^my)(1-x^my) = 1 - x^{2m}y^2= 1 + xy^2(-x^{2m-1} ) $</span></li>
<li>What else? I mean, maybe there could be oyher units, how can I detect them?</li>
</ul>
<p>Moreover I know that <span class="math-container">$K[x,y]$</span> is UFD and so I have the notion of <span class="math-container">$gcd$</span>: clearly, if <span class="math-container">$f(x,y) \in K[x,y]$</span> and <span class="math-container">$gcd(f(x,y),xy^2)=1$</span> then there exists <span class="math-container">$p(x,y)$</span> and <span class="math-container">$q(x,y)$</span> in <span class="math-container">$K[x,y]$</span> such that <span class="math-container">$p(x,y)f(x,y)+q(x,y)xy^2=1 $</span>. Hence <span class="math-container">$f(x,y)p(x,y) = 1 + xy^2(-q(x,y))$</span>. Now, how can I find an explicit definition of such polynomial <span class="math-container">$f(x,y)$</span>?</p>
<p>Furthermore, if I call <span class="math-container">$X=[x]_{R}$</span> and <span class="math-container">$Y=[x]_{R}$</span>, I know that if <span class="math-container">$f$</span> is a unit in <span class="math-container">$R$</span> then it is also in <span class="math-container">$R/(X)$</span> and <span class="math-container">$R/(Y^2)$</span>. Can this fact help me?</p>
| 0non-cybersec
| Stackexchange |
Notorious Russian-Speaking Hacker: It’s Easier to Hack an Election than e-Bay. | 1cybersec
| Reddit |
Suppose $f$ is an integral defined on $[0,b]$, and. <p>Suppose $f$ is integral enough on $[0,b],$ and $g(x)=\int_x^b\frac{f(t)}{t} \, dt$ for $0<x\leq b.$</p>
<p>Prove that $g$ is integrable on $[0,b]$ and $\int_0^b g(x) \, dx=\int_0^b f(t) \, dt$</p>
<p>I know we are trying to prove $\limsup_{n\to 0}\int_n^b g < \infty$, but I tried to look at convergence theorems and I’m at lost, any help or hint? Thanks.</p>
| 0non-cybersec
| Stackexchange |
Model Heloise Guerin sports lingerie made with Mentos at the 2010 Victoria’s Secret Fashion Show. | 0non-cybersec
| Reddit |
Countable Connected Hausdorff Space. <p>What is an example of a connected Hausdorff space with a countable number of elements? Any finite Hausdorff space is discrete (therefore not connected) and there are a myriad of examples uncountable Hausdorff spaces. But what about countable?</p>
| 0non-cybersec
| Stackexchange |
No audio devices under linux. <p>I'm using Fedora 32, but the issue started from version 31: I simply do not see any sound device under Settings -> Sound.<a href="https://i.stack.imgur.com/oDOcY.png" rel="nofollow noreferrer">1</a></p>
<p>These are the outputs from commands I have seen requested on the internet when dealing with sound issues:</p>
<p><code>ls -l /dev/snd</code></p>
<pre><code>drwxr-xr-x. 2 root root 60 jun 9 20:29 by-path
crw-rw----+ 1 root audio 116, 11 jun 9 20:29 controlC0
crw-rw----+ 1 root audio 116, 9 jun 9 20:29 hwC0D0
crw-rw----+ 1 root audio 116, 10 jun 9 20:29 hwC0D2
crw-rw----+ 1 root audio 116, 3 jun 9 20:46 pcmC0D0c
crw-rw----+ 1 root audio 116, 2 jun 9 20:46 pcmC0D0p
crw-rw----+ 1 root audio 116, 8 jun 9 20:46 pcmC0D10p
crw-rw----+ 1 root audio 116, 4 jun 9 20:46 pcmC0D3p
crw-rw----+ 1 root audio 116, 5 jun 9 20:46 pcmC0D7p
crw-rw----+ 1 root audio 116, 6 jun 9 20:46 pcmC0D8p
crw-rw----+ 1 root audio 116, 7 jun 9 20:46 pcmC0D9p
crw-rw----+ 1 root audio 116, 1 jun 9 20:29 seq
crw-rw----+ 1 root audio 116, 33 jun 9 20:29 timer
</code></pre>
<p><code>groups</code></p>
<p><code>eric wheel audio</code></p>
<p><code>aplay -l</code> </p>
<pre><code>**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC3271 Analog [ALC3271 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0
</code></pre>
<p><code>aplay /usr/share/sounds/alsa/Noise.wav</code></p>
<pre><code>ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused
aplay: main:830: audio open error: Connection refused
</code></pre>
<p><code>ls .config/pulse</code></p>
<pre><code>0e07bbc7e383453fa4827474edd6cfb7-card-database.tdb 0e07bbc7e383453fa4827474edd6cfb7-device-volumes.tdb
0e07bbc7e383453fa4827474edd6cfb7-default-sink 0e07bbc7e383453fa4827474edd6cfb7-stream-volumes.tdb
0e07bbc7e383453fa4827474edd6cfb7-default-source
</code></pre>
<p><code>pulseaudio -v</code></p>
<pre><code>I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: [pulseaudio] core-util.c: Successfully gained nice level -11.
I: [pulseaudio] main.c: This is PulseAudio 13.99.1-rebootstrapped
I: [pulseaudio] main.c: Page size is 4096 bytes
I: [pulseaudio] main.c: Machine ID is 0e07bbc7e383453fa4827474edd6cfb7.
I: [pulseaudio] main.c: Using runtime directory /run/user/1000/pulse.
I: [pulseaudio] main.c: Using state directory /home/eric/.config/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib64/pulse-13.99/modules.
I: [pulseaudio] main.c: Running in system mode: no
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed.
</code></pre>
<p>In case it helps, I am using a Dell XPS-13 9370</p>
| 0non-cybersec
| Stackexchange |
How do you feel about men with stud earrings?. More specifically square studs, on the smaller end. | 0non-cybersec
| Reddit |
which event fires if excel-vba modeless userform window gets focus back?. <p>I've got a modeless userform in an Excel VBA project.
The userform is loaded by button on spreadsheet clicked (<em>not</em> an active-x button if that's relevant).
Because of modeless the user can work with excel or even other applications and than switch back to the form window. <strong>I need an event that fires if the form window becomes the active window again.</strong> I thought <code>UserForm_Activate</code> should do the job but it doesn't (neither does <code>UserForm_GotFocus</code> but there is no GotFocus event for userforms?). Is there any event that fires if the user switches back to a modeless userform (or in case not: is there any known work-around)? Or do I've got some strange bug here and <code>Activate</code> should fire?</p>
<p>Here's all the code I used for testing purpose:</p>
<pre><code>' standard module:
Sub BUTTON_FormLoad()
' associated as macro triggered by button click on a sheet
UserForm1.Show vbModeless
End Sub
' UserForm1:
Private Sub UserForm_Activate()
' does not fire if focus comes back
Debug.Print "Activated"
End Sub
Private Sub UserForm_GotFocus()
' does not fire if focus comes back
' wrong code - no GotFocus event for userforms?
Debug.Print "Focussed"
End Sub
Private Sub UserForm_Click()
' only fires if clicked *inside* form
' does not fire eg if user clicks top of form window
Debug.Print "Clicked"
End Sub
</code></pre>
<p>Where do I find the documentation of userform events? It's not on the '<a href="https://docs.microsoft.com/de-de/office/vba/language/reference/user-interface-help/userform-object" rel="nofollow noreferrer">UserForm object</a>' page.</p>
| 0non-cybersec
| Stackexchange |
The thrift shop owner said it was a collection.. | 0non-cybersec
| Reddit |
Streaming Champs Leage, Inter x CSKA, Barca x Arsenal. for all of us at work in the usa | 0non-cybersec
| Reddit |
Major milestone in human history.. During the development of humankind there were milestones that, figuratively speaking, were such a game changer that they influenced nations as earthquakes do to lands.
What were those points?
Example:
The invention, construction and application of printing press, speeding up the creation and distribution of ideas and knowledge was an escalator for the declining of catholic power, the rise of varied denominators, and spreading of education in European kingdoms. | 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 |
Simple rsync incremental backup that timestamps deleted files. <p>I use <code>rsync</code> as follows:</p>
<blockquote>
<p>rsync -a --backup --suffix="."$(date +"%Y%m%d%H%M") <em>source backups</em></p>
</blockquote>
<p>to dump the whole of folder <em>source</em> into the folder <em>backups</em>, with the additional feature that if I modify some file <em>foo</em> in <em>source</em>, the old version of <em>foo</em> in backups will be renamed with a date suffix before the new <em>foo</em> is copied into <em>backups</em>.</p>
<p>This simple procedure does the job for me, only that I would like a <strong>deleted</strong> file to be <strong>renamed</strong> with the date suffix instead of being removed from <em>backups</em>. That is, if <em>foo</em> is deleted from source, then rename <em>foo</em> in <em>backups</em> with the date suffix.</p>
<p>I have tried to achieve this but so far no success. Any ideas?</p>
| 0non-cybersec
| Stackexchange |
Hair Study #2. | 0non-cybersec
| Reddit |
It cant be unseen.... | 0non-cybersec
| Reddit |
yield return and return. <p>I often find myself writing sth. like this:</p>
<pre><code>if (condition)
{
yield return whatever;
yield break;
}
</code></pre>
<p>I find it quite verbose to have to use two yield statements for the standard paradigm "return one value and exit method". I know I can just <code>return new List<type>() { whatever };</code> but that would defeat the benefit of using yield in the rest of the method.</p>
<p>Is there a more elegant way to <code>yield return</code> a value and exit the method?</p>
| 0non-cybersec
| Stackexchange |
This Japanese Phone Booth is now a fish tank. | 0non-cybersec
| Reddit |
What gets easier the drunker you are?. | 0non-cybersec
| Reddit |
I'm Jordan Mechner, creator of Prince of Persia and Karateka -- ask me anything!. Hi! I made my first games (Karateka and Prince of Persia) on an Apple II in the 1980s. Since then I've worked with larger teams (The Last Express, Prince of Persia: The Sands of Time) but have gone the indie route for a modern remake of Karateka -- out this week on Steam (30 years later). I also write movies and graphic novels. For fun, I like to sketch with a pen on actual paper. Ask me anything!
Update: Got to go now... Thanks to everyone who posted questions and comments, I'm sorry I couldn't answer them all in time! It was fun.
http://jordanmechner.com, @jmechner
http://twitter.com/jmechner/status/276747231334375425/photo/1/large | 0non-cybersec
| Reddit |
\cventry with \url with %. <p>I'm using an <code>\url</code> command within <code>\cventry</code>. Unfortunately, my url contains a %. This sign seems to cause this error:</p>
<pre><code> Paragraph ended before \\cventry was complete. []
</code></pre>
<p>What can I do about it?</p>
<p>Here some code:</p>
<pre><code>\cventry{Test 1}{}{}{}{\url{http://example.com/2Fs40993} No Problem}
\cventry{Test 2}{}{}{}{\url{http://example.com/%2Fs40993} Problem}
</code></pre>
| 1cybersec
| Stackexchange |
What to do with jalapeno jelly?. I've been putting it on a bagel with cream cheese. This is good and all, but what else can I do with it?
EDIT: Thanks for the ideas. [Here's what I made](http://www.reddit.com/r/Cooking/comments/1jlnv2/follow_up_what_i_made_with_jalapeno_jelly_pics/)
| 0non-cybersec
| Reddit |
When object variable is reassigned in C++, what happens to the original object?. <p>When an object variable is reassigned in C++, what happens to the original value?
In the code below an object is created onto the stack and placed in <em>variable</em>. Then a new object is created on the stack and placed in the same variable. What happens to the original object? Does it stay on the stack until <em>variable</em> goes out of scope?</p>
<pre><code>void foo() {
ClassName variable(a, b); // variable created on the stack
variable = ClassName(c, d); // new value for variable created on stack
...
}
</code></pre>
| 0non-cybersec
| Stackexchange |
Reddit, I need some proposal ideas. I got nothing.. I've been racking my brain for weeks trying to think of a good way to propose to my girlfriend, and nothing I've come up with is good enough. I was hoping you guys could help me out.
Background info:
Me- 22 years old, slightly nerdy computer programmer/gamer.
Her- 22 years old, dancer, photography enthusiast, sweet tooth haver, reddit user (which is why I'm using a throw away account).
Situation- She's out of town right now, but she'll be coming back in a few weeks, and we are going to celebrate our 3 year anniversary. I want to take her to a nice dinner, and there is a dance performance that she wants to go to.
Also, I'm pretty sure that she doesn't want the proposal to be a public thing, so I don't think it's a good idea to actually do it at dinner or at the performance.
How do I take what is going to be a fun night, and turn it into an unforgettable one? | 0non-cybersec
| Reddit |
PGFPlots: symbolic x coords + extra ticks. <p>how can i add in this plot the extra x and y ticks ?
<img src="https://i.stack.imgur.com/6pyVE.jpg" alt="enter image description here"></p>
<pre><code>\documentclass[border=0.5mm,12pt]{standalone}
\usepackage{pgfplots,pgfplotstable} % Grafici
\pgfplotsset{%
mesh line legend/.style={legend image code/.code=\meshlinelegend#1},%
/pgf/number format/use comma,%
compat=newest,%
% height=9cm,%
width=12cm%
}
\begin{document}
%\begin{figure}
\centering
\begin{tikzpicture}
\begin{axis}[%
ybar,
/pgf/number format/fixed,
xtick=data,
tick style={thin,black},
ymin=0, ymax=12,
point meta min={0},
minor ytick={0,0.4,...,12},
point meta max={12},
yticklabel shift=2pt,
xticklabel shift=2pt,
xlabel=\large {Classe},
ylabel=\large {Frequenza},
ymajorgrids=true,
xticklabel interval boundaries,
symbolic x coords={%
$1$,
$2$,
$3$,
$4$,
$5$,
$6$,
$7$
},
colorbar,
colorbar style={
/pgf/number format/fixed,
xticklabel shift=2pt,
xticklabel style={text height=1.5ex}
},
axis line style={draw=none}, after end axis/.append code={\draw (rel axis cs:0,0) rectangle (rel axis cs:1,1);},
colormap={new}{color(0cm)=(violet);color(1cm)=(blue);color(2cm)=(cyan);color(3cm)=(green);color(4cm)=(yellow);color(5cm)=(orange);color(6cm)=(red)}
]
\addplot[%
ybar interval,
draw=black
] coordinates{%
($1$, 6)
($2$, 9)
($3$, 11)
($4$, 12)
($5$, 7)
($6$, 5)
($7$, 0)
};
\end{axis}
%\end{figure}
\end{tikzpicture}
\end{document}
</code></pre>
| 0non-cybersec
| Stackexchange |
iOS 11 wallpapers revealed featuring vibrant OLED friendly and retro images.. | 0non-cybersec
| Reddit |
My (35M) partner and I (35F) are considering adding in a third party (F). We are not in a committed relationship.. We’ve been seeing each other for over a year now. I’ve seen someone else and so has he. We keep finding our way back to each other. He recently told me about a girl he went on a date with and it turned me on so much I want to add her in. We’ve never done anything like this, and he has never been with two women at once. He’s a quadriplegic....so I’ll post this elsewhere too. But.....that didn’t feel like it was the first thing to mention. A threesome is a threesome.... | 0non-cybersec
| Reddit |
Creating a booting stick with Ubuntu 18.04.4 for removing Windows 7 and Windows 10. <p>I tried several times creating a booting stick according to found description.</p>
<ul>
<li><p>Downloaded Ubuntu 18.04.4 amd64 on Desktop and driver DVD from <a href="https://ubuntu.com/download/desktop" rel="nofollow noreferrer">https://ubuntu.com/download/desktop</a></p></li>
<li><p>Tried manually to make the stick bootable through found description. Tried with Rufus-download but Rufus on my PC does not display the option to have Ubuntu 18.04.4 amd64 as Start. Rufus display several options as Start (translated from german): - "no start ability", - "Free DOS" and several other options.</p></li>
</ul>
<p>When just copied Ubuntu on the stick, trying through Bios nothing could been found to start the PC through USB device.</p>
<p>No description which I tried works, it's frustrating!</p>
| 0non-cybersec
| Stackexchange |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.