text
stringlengths 3
1.74M
| label
class label 2
classes | source
stringclasses 3
values |
---|---|---|
Default argument allowing constructor to call private method. <p>I have the class</p>
<pre><code>class A
{
public:
class Key
{
Key() {}
Key(Key const &) {}
};
A(Key key, int a = 5) {}
};
</code></pre>
<p>The constructor for <code>Key</code> is private, so no one should be able to construct an object <code>A</code>. However, with the following code:</p>
<pre><code>int main() {
A a(A::Key()); // this compiles !!!
A a2(A::Key(), 5); // this doesn't
// somehow defaulting the argument causes the private constructor
// to be OK - no idea why
return 0;
}
</code></pre>
<p>By making use of the default argument for <code>int a</code> in my constructor, the compiler happily compiles my usage of <code>A::Key()</code> despite the fact that it is private. If I explicitly give a value for <code>a</code>, though, the compiler correctly recognizes that I am trying to use a private constructor and errors out. Why is this? Is there someway to force the compiler to error out for the first example as well?</p>
<p>See <a href="https://ideone.com/fqeGGc" rel="nofollow noreferrer">here</a> for live example.</p>
| 0non-cybersec
| Stackexchange |
"[!] Something went wrong.. Try again" sendmail with setoolkit in kali behind tor. <p>I've been working in a little project, and the goal right now is spoof an e-mail address. That simple, but doing it in an elegant way.</p>
<p>I've done the following, using Kali on a VM (in VirtualBox) I downloaded sendmail and used it with setoolkit, the result was successful, with the only problem that my IP was revealed on the message. I search in unix.stackexchange.com and found a way to <a href="https://unix.stackexchange.com/questions/79808/localhost-127-0-0-1-in-email-headers">hide the IP</a> (I used the second answer, the one not accepted): one of them assured that editing the <em>interfaces</em> file, one can spoof the IP. I followed the tutorial step by step and it didn't worked, probably, because the IP used by this guy was his own public IP address, thing that I don't have, and it's completely what I am avoiding to share.</p>
<p>For me the coolest solution right now is Tor. So I tunneled the entire Kali OS with the Whonix Gateway (actually re installed Kali), updated everything and surprise:</p>
<p>When I try to send an email using setoolkit, running sendmail everything behind whonix I receive the error "[!] Something went wrong.. Try again" with no information at all, but that something went wrong.</p>
<p><strong>Question is:</strong></p>
<p>First, how to fix it?.
Second, if there's no way to fix it, why does that happen?, Am I unable to use sendmail behind Whonix?</p>
<h2>Important Note:</h2>
<p>I don't really know what information from the system you need, so do not get mad at me and just ask for any information you need, I'll be more than happy to post it.</p>
| 1cybersec
| Stackexchange |
Showing Kernel of One Linear Operator is Invariant Under Another. <p>Let $S,T:V \rightarrow V$ be linear operators such that $ST=TS$. Show that if $\lambda$ is an eigenvalue of T, then Ker$(T-\lambda{I})^{k}$, $k\in{\mathbb{Z}^{+}}$, is invariant under $S$.</p>
| 0non-cybersec
| Stackexchange |
Linear Friction Welding Is Pretty Dope. | 0non-cybersec
| Reddit |
Can't mount or repair Transcend 1TB external HD. <p>I have a Transcend 1TB external hard drive. The hard drive shows up in Disk Utility but when I click on Mount, the LED of the drive blinks for 2 seconds. And then nothing happens. When I clicked on Repair I got this message:</p>
<pre><code>Repairing file system.
Invalid content in journal
Checking Journaled HFS Plus volume.
Detected a case-sensitive volume.
Checking extents overflow file.
Checking catalog file.
Invalid node structure
The volume HD1 could not be verified completely.
Invalid content in journal
File system check exit code is 8.
Updating boot support partitions for the volume as required.
</code></pre>
<p>I don't think that's the problem but my hard drive was almost full and I clicked on backup. And I think the problem happen at this moment.</p>
<p>I tried another USB cable, and on Windows but without success.</p>
<p>Any idea that involves not losing my data is very welcome :)</p>
<hr>
<p>OS : El Capitan 10.11.6
MacBook Pro (late 2008)</p>
| 0non-cybersec
| Stackexchange |
What the 2018 Campaign Looks Like in Your Hometown. | 0non-cybersec
| Reddit |
Export sql query results to excel using vba with headers. <p>I need to export a simple SQL query result to excel. I am able to get the results, however the headers are missing, how can I export the headers as well?</p>
<p>This is what i have so far:</p>
<pre><code>Sub Conn2SQL()
Dim cnn1 As New ADODB.Connection
Dim mrs As New ADODB.Recordset
Set cnn1 = New ADODB.Connection
cnn1.ConnectionString = "driver={SQL Server};server=MyDBServer;uid=MyuserID;pwd=mypassword;database=MyDB"
cnn1.ConnectionTimeout = 30
cnn1.Open
SQry = "use MyDB select * from TableName"
mrs.Open SQry, cnn1
Sheet2.Range("A2").CopyFromRecordset mrs
mrs.Close
cnn1.Close
End Sub
</code></pre>
| 0non-cybersec
| Stackexchange |
Factory for creating a singleton instance. <p>We have some legacy code that has a bunch of singletons all over the place (written in C#).</p>
<p>The singleton is a fairly "classic" implementation of the pattern:</p>
<pre><code>public class SomeSingleton
{
private static SomeSingleton instance;
private SomeSingleton()
{
}
public static SomeSingleton Instance
{
get
{
if (instance == null)
{
instance = new SomeSingleton();
}
return instance;
}
}
}
</code></pre>
<p>Note that thread safety is not a concern, so no locks are used.</p>
<p>In order to make the code more testable, and without making too many modifications, I'd like to modify this code to delegate the creation of the singleton instance in another class (a factory or similar pattern).</p>
<p>This can assist in creating a "test" instance for testing purposes, or the real version, as it is used now.</p>
<p><strong>Is this a common practice? I could not find any reference to such pattern being used.</strong></p>
| 0non-cybersec
| Stackexchange |
I just saw a Pringles vending machine in Slovenia. | 0non-cybersec
| Reddit |
What should I do about my wife?. I've been married for 23 years. I know that's older than most Redditors have been alive but hopefully there are some married men here with a similar experience. I don't know what to do about my wife. For the last 10 years or so she has been depressed. It's gotten steadily worse over the years to the point in the last couple of years where I just don't know if I can deal with it any more. In the last couple of years, she has been in a job she really likes that is in a medical setting. Her job will pay for her to go to school to get education which improves her job prospects and pay potential. She started college for the first time in her life in January taking two classes. After a month, she dropped 1 class despite the fact that she was getting a 100%. She said it was just too much for her. Now this morning she won't get out of bed to go to the other class she had remaining and told me that she is dropping this class too because there just isn't any point. She is also doing very well in this class.
Her depression is obviously the reason she is quitting these things but I just can't stand it. I don't know if I can confront her about it or if I even should care at this point. I want to tell her to get her ass out of bed and get to class. College is a grind and there are plenty of days you just don't feel like doing it, but you do it and just get through it. She is not at all open to discussion about anything. If I talk about it, she gets very defensive and cries and says she is worthless and that no one wants her around and that she should just disappear. That has caused me over the years to shut down all discussion about what is clearly a huge problem.
There are other issues in the marriage as well that stem from her depression. I don't know what to do. She has tried medication but stopped because she said she didn't like the way it made her feel. I'm worried that she is more comfortable being depressed and that she doesn't even care to get out of it.
We have been married since we were 17. We have grown up together and been through a lot. I don't know what to do. I don't feel like I can leave because we have been together most of our lives but I also feel like I'm drowning.
Sorry for the long rant. If anyone has any perspective, I'd appreciate it.
EDIT: I am blown away by the response. I've been on Reddit for a couple of years and have thought it was mostly full of unfeeling a-holes. While I've gotten some of that today, it was far less than I would have expected. I appreciate the stories everyone has told me today of how things have been for them. I know a lot of people are suffering with this problem and it's been nice to get some perspective.
Nothing drastic is going to happen today. I think we will have a conversation but nothing huge. I want to get the conversation started and see what she is thinking and what kind of response I get from her.
Thank you again everyone. I am moved by your responses. | 0non-cybersec
| Reddit |
Patient 314 - Day 5. [Day 4](https://www.reddit.com/r/nosleep/comments/5t2ncl/patient_314_day_4/)
Mt. Whitney Psychiatric Ward
Patient 314 Personal Log
*2/9/2017 – 10:23PM*
I guess I need to eat my words a bit. He said today would be fun and it WAS! Sure, yeah it started out kind of slow but shooting a gun was invigorating, mesmerizing even. The power inside of that tiny little weapon is astounding. I wouldn't mind taking it up as a hobby someday but who needs a gun when you can visualize severing the spinal cord and it actually happens? Well I guess I don’t know if the spinal cord severed but the dad-clone died so whatever I did to it killed it. How did he know I could do that? I guess since I am patient 314 that means there were 313 before me but the real question is where they *like* me or were they all different? Like, different abilities and stuff? I am going to ask some questions tomorrow.
------------------
Dr. Feldman
*2/9/2017 – 10:59PM*
Observations from experiment four – logging…
Patient 314 has shown more promise in four days than any other patient in a months’ time. I do not think that we have seen anywhere close to his maximum potential. 314 is also becoming a bit more interactive – this can only be taken in a positive way. Only two other patients have reacted positively once testing began. He appears to be settling in to his routine nicely.
As I theorized, an isolated kill is very static, and only fluctuates with emotional connection. This is important for a great many applications where emotion must be removed from a situation. When multiple beings are killed there is a multiplier factor of 1.3. This is possibly linked to adrenaline or a similar effect to “runner’s high” – more testing will be done to determine the exact cause.
It should also be noted that the method of killing plays a factor. Patient 314 gained more from killing with the knife than he did with the pistol. He does seem to favor using his hands when killing. This might tie in with the emotion aspect.
Most exciting of all is having another patient with the mental ability. Patient 313 was a complete failure in the testing environment however the discovery of her mental abilities led us to Patient 314 so I shouldn’t be too hard on her. Where she failed he has succeeded! Autopsy on the Faceless that 314 failed to kill showed some damage to the neck similar to whiplash and minor internal bleeding on the brain. Autopsy on the clone showed a cleanly severed spinal cord. If we can somehow find a way to translate that result without the personal/emotional connection… I am getting ahead of myself.
Tomorrow will be interesting.
-----------------
*2/10/2017 – 6:15AM*
Experiment five – logging…
Breakfast delivered. 314 appears contemplative and relaxed while he eats.
Sixteen subjects enter the room just as Dr. Feldman begins to speak.
**Dr.** - Good morning, 314. Today we will attempt to verify a few theories I have. In front of you is a mixture of Faceless and clones of your Father, Mother, and myself. Each one is holding a different weapon. Those without a weapon you will kill with your bare hands, except the very last which must be killed with your mind. On my mark move to the first subject. Please wait thirty seconds between each kill. Proceed.
Readings are taken, compared, logged.
314 moves to the first subject. When he finds himself in front of the last he locks eyes with the subject. Blood seeps slowly out of the mouth, nostrils, eyes, and ears of the subject as it crumples to the clean, white floor.
Readings are taken, compared, logged.
A powerful strobe lashes out, blindingly bright, accompanied by a thunderclap of sound.
Readings are taken, compared, logged.
**Dr.** - Wonderful, simply marvelous! Sixteen more are coming in now. This time I would like for you to try and mentally kill the first subject AND the last subject. Proceed.
314 approaches the first subject. Sweat begins beading on his forehead. His breathing grows harsher.
**Dr.** - 314, enough. Use your hands and move on to the next.
314 moves down the line with more violent intent. When he steps in front of the final subject the neck twists swiftly in a full 360 degrees. 314’s hands never left his sides.
**Dr.** - Perfect, thank you 314. I am sure you need some rest so I’ll have a snack brought and we can resume at 8.
**314** - How did you know I could do that? You know, with my mind?
**Dr.** - I suppose you deserve a few answers. Patient 313 had similar mental capabilities. Once an ability is discovered in one Patient we check every Patient for those abilities as well.
**314** - Are there other Patients here? Can I meet them? Can I meet 313?
**Dr.** - You’ve already met Patient 313.
Dr. Feldman walks away and a tray with sliced meats and cheeses is brought it. 314 eats in silence.
------------------
*2/10/2017 – 8:00AM*
Experiment five, continued – logging…
**Dr.** - How are you feeling, 314? Have you had any headaches or eye strain?
**314** - Not yet, no. Was that an issue with 313?
**Dr.** - It was, among others. We are going to continue the testing now if that is ok.
Three clones of Dr. Feldman enter the observation room.
**Dr.** - If you would, please try to kill each one mentally.
**314** - [mumbles] Like this world needs more crazy doctors running around…
Patient 314 stays on his cot but focuses on the first clone. His knuckles turn white as his grip tightens on the edge of the cot, then the clone crumples to the floor. Readings are taken, compared, logged.
314’s neck bulges and strains as the second clone drops to the floor, twitching slightly twice. A large vein is standing out on 314’s forehead and gleams with sweat. Readings are taken, compared, logged.
A guttural yell escapes the lips of Patient 314. His concentration has forced him to stop breathing, his head vibrating back and forth.
**Dr.** - Breathe. Recollect yourself. Then try again.
Patient 314 leans back, drawing in a large breath. Again. Again. The color in his hands and face start to return to normal. He locks eyes with the last clone – twenty seconds later it drops lifelessly to the floor. Readings are taken, compared, logged.
**Dr.** - I believe we have found your threshold. There will be one more test today but it can wait until just before dinner. A second channel has been added to your television. Please try to rest.
----------------
*2/10/2017 – 11:15AM*
Lunch delivered. Patient 314 awakened by the sound of the tray. Television mode is activated while 314 eats.
-------------------
*2/10/2017 – 4:00PM*
Experiment five, continued – logging…
Six Faceless enter the room.
**Dr.** - This is the last test of the day. I would like you to kill four with your hands. Then try to kill the remaining two at the same time with your mind.
**314** - Are you kidding? At the same time? How am I going to do that?!
**Dr.** - How do you kill one? You visualize the action and carry out the action with your mind. Try to visualize them both.
314 sighs and closes his eyes. He rubs his temples for a minute before looking up at the Faceless. Breathing is slow and even. Eventually two thuds resonate through the room. Readings are taken, compared, logged.
**Dr.** - [whispers] Yes…
[to 314] How do you feel?
**314** - Tired. Could I meet 313 again?
**Dr.** - I am afraid that isn’t possible anymore. You killed her yesterday.
[ADDENDUM TO LOG] - Patient 314 killed her two days before. See Day 3.
---------------
*2/10/2017 – 5:15PM*
Dinner is delivered. A comedy movie is playing on the television.
Experiment [5 complete.](https://www.reddit.com/r/nosleep/comments/5thx2n/patient_313/)
[■](https://www.facebook.com/aaron.writes.1) | 0non-cybersec
| Reddit |
Some cool ads in Herald Square Station, NYC. They had ones without “graffiti” from Team Rocket earlier.. | 0non-cybersec
| Reddit |
Can someone tell me why Firefox is requesting access to monitor my keystrokes??. [https://imgur.com/a/cYjwRsf](https://imgur.com/a/cYjwRsf)
Thanks! | 1cybersec
| 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 |
Derrick Rose Pretty Sure He Just Tore ACL By Looking At Knee. | 0non-cybersec
| Reddit |
Tox over Tor won't come online. <p>I've recently installed toxic (tox-based terminal chat client) and am attempting to route it through Tor for extra privacy. I followed <a href="https://wiki.tox.chat/users/tox_over_tor_tot" rel="nofollow">this</a> tutorial for installing the tor service. But, when I try and start toxic with forced TCP going through the localhost Tor proxy, toxic will start, but will remain offline.</p>
<p>How can I fix this? I can provide screenshots/configurations if necessary, I really just want to get this up and running.</p>
| 0non-cybersec
| Stackexchange |
How to access Android File system from Windows 7 command line through USB. <p>When my Android device (Samsung galaxy s4) is connected to my laptop (Windows 7), I would like to be able to access files on the Android device from the Windows 7 command line. The commands :</p>
<pre><code>cd Computer\GGS4\Phone
</code></pre>
<p>or </p>
<pre><code>Computer\GGS4\Phone:
</code></pre>
<p>don’t work</p>
<p>FYI, the reason why I need this is to use <code>mp3slpt</code> from laptop to cut mp3 file on the Android device.
Something like : </p>
<pre><code>D:\temp> mp3splt Computer\GGS4\Podcast\program1.mp3 7.12 7.30 -d out -o program1Extract
</code></pre>
| 0non-cybersec
| Stackexchange |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
Easy way to find FTP Path used by COTS package?. Simple question I already have an answer for but am asking to see if there is something even easier.
Software package has an option to download the latest patches from the vendor via FTP.
However the software package sucks and I would much rather just grab the bits and push them out via alternate means (this is supported, but you have to download every patch individually).
So I was wondering how I can run the software in a sandbox of some kind, watch the internet traffic going out to determine the address and login details (if any, might be anonymous) of the FTP connection.
I assumed WireShark on the machine (its Windows based software) would work, but I don't already have that up and running nor familiarity with it. So I was wondering if there was something else that was even easier given my specific goals outlined above.
Thanks Guy and Gals. | 1cybersec
| Reddit |
Pug bro teaching his sister how to use the stairs. | 0non-cybersec
| Reddit |
What are you never too old for?. | 0non-cybersec
| Reddit |
How to simulate an 'outer join' in core.logic?. <p>I've just started playing with core.logic, and to work on it I'm trying to implement something simple that is similar to a problem that I am currently working on professionally. However, one part of the problem has me stumped...</p>
<p>As a simplification of my example, if I have a catalog of items, and some of them are only available in certain countries, and some are not available in specific countries. I'd like to be able specify the list of items, and the exceptions, something like:</p>
<pre><code>(defrel items Name Color)
(defrel restricted-to Country Name)
(defrel not-allowed-in Country Name)
(facts items [['Purse 'Blue]
['Car 'Red]
['Banana 'Yellow]])
(facts restricted-to [['US 'Car]])
(facts not-allowed-in [['UK 'Banana]
['France 'Purse]])
</code></pre>
<p>If possible, I'd rather not specify allowed-in for all countries, as the set of items with restrictions is relatively small, and I'd like to be able to make a single change to allow/exclude for an item for a given country.</p>
<p>How can I write a rule that gives the list of items/colors for a country, with the following constraints:</p>
<ul>
<li>The item must be in the list of items</li>
<li>The country/item must be not be in the 'not-allowed-in' list</li>
<li>Either:
<ul>
<li>There is no country in the restricted-to list for that item</li>
<li>The country/item pair is in the restricted-to list</li>
</ul></li>
</ul>
<p>Is there some way to do this? Am I thinking about things in entirely the wrong way?</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 |
Working class fighter donates his bonus to opponent in need. | 0non-cybersec
| Reddit |
how to use Varela Round font with MikTex. <p>Hi I would like to specify a specific font for my documentclass, Varela Round.</p>
<p>I am using MikTex and need to compile with PDFLaTeX only. Is this possible?</p>
| 0non-cybersec
| Stackexchange |
How to make a batch script to run commands on a remote machine using credentials. <p>I have wrote some batch scripts to perform docker commands on a machine and made it run using c# program. I can successfully run those batch scripts in my local machine, but I want it to run on a remote machine. How can I do that by giving remote machine access credentials? I am looking for batch commands that will first connect to the remote machine and then execute its body in remote machine.
A sample batch script is as below.</p>
<pre><code>::Start an exited container
::Iam expecting some code here to connect to a remote machine
@echo off
docker start %1
</code></pre>
<p>Or, Is there any option to do it through c# program? </p>
| 0non-cybersec
| Stackexchange |
Integral $\int_{-\infty}^\infty dx e^{-nx^2/2}(z-ix)^n$. <p>$$
I\equiv\mathcal{F}_n(z)=\int_{-\infty}^\infty dx e^{-nx^2/2}(z-ix)^n.
$$
Evaluate I for $n \to \infty$ and z real. We can consider $z\geq 0$ due to the symmetry of $\mathcal{F}$ given by
$$
\mathcal{F}_n(-z)=(-1)^n\mathcal{F}_n(z).
$$
I am looking for a solution, thanks. </p>
| 0non-cybersec
| Stackexchange |
Technical Review of Bitcoin. <p>I am currently looking on how does Bitcoin work, and I would like to sum things up with your help. The point is, if I ever want to write my own mining agent, what do I have to understand in order to do so ?</p>
<p>First Point: The Data</p>
<p>Through my research, I didn't really understand WHO gives the current hash to work on. I know that it is working as a P2P network, and I think, but not sure, that all clients connected to the network are aware of the transactions.</p>
<p>But what should I do if I want to have access to the latest OFFICIAL (might not be the best word) block, without being in a mining pool ?</p>
<p>Second Point: The Computation</p>
<p>If I undestood this part, I have to try every nonce until sha256(sha256(data + nonce)) meets the requirements from Bitcoin.</p>
<p>Third part, submitting the answer</p>
<p>Assuming I found the right nonce, how can I submit my result. But I didn't find how I can do that.</p>
<p>I want to make this point clear, I want to be SOLO, not mining solo, but if I wanted to write my own mining program, how could I do that WITHOUT being in a mining pool and finding information all by myself.</p>
<p>Thanks for your answers.</p>
| 0non-cybersec
| Stackexchange |
Jimmy Butler, Paul McCartney, Luol Deng and Joakim Noah. | 0non-cybersec
| Reddit |
Creepy baby man with a dead Bird.. | 0non-cybersec
| Reddit |
Learn how to make perfect Egg Fried Rice- EVERYTIME (details in the comments). | 0non-cybersec
| Reddit |
What 1 year of keto and sobriety has done for me.. Hello! I’ve hit my one year keto anniversary. One year ago today I was over 365 pounds, I smoked a pack a day, and would binge drink 3 days a week. And ate nothing but absolutely garbage.
Today I’m happy to say I’ve lost 120 pounds (80 to go), quit smoking one year ago (3/27/18) and have touched alcohol one time (oops) since (3/27/2018). And wow. My body is thanking me every single day.
[Hello to a new face](http://imgur.com/0qnLVUA)
[In progress ](http://imgur.com/wWAjmrX)
**edited to add another photo. | 0non-cybersec
| Reddit |
so the SF Giants are having a "gamers Night" at tonights game. The first 10,000 fans got these. | 0non-cybersec
| Reddit |
I just wanna be immune to it.. I’m only 20 and I’m about to collapse under societal pressure. I hate that I think about who my “match” will be and constantly guessing if any guy who throws their attention my way will be “the one”. I’m at a constant battle with myself because on one hand I know my self-worth and I know that when it happens, it will be the perfect time. But there’s also this longing in me that just wants that, even if it’s w/ someone that I know won’t be good for me. I want that “someone”. Y’all know what I mean when I say “someone”.
I even tried tinder and learnt very quickly what everyone was looking for. *sigh*
I’m tired of feeling this pressure. Im tired of the fact that I feel it. I just wanna be immune to it.
So... If there’s a guy out there who’s 20-24...
😂😂 I’m just kidding.
| 0non-cybersec
| Reddit |
Network Media Player with Other OS option. <p>Not sure this is the right SE site to post this on but figure from the faq: "and is not about... consumer electronics such as media players, cell phones or smart phones, except when <b>designing these products or hacking their electronics for other uses</b>" this probably fits the bill.</p>
<p>Is there any known network media player that allows for an "Other OS" option? Take for example the Apple TV, or the WD Live TV, etc systems, which are really small form factors, have decent hard drives, have great options for hooking up displays (Composite, Component, HDMI/DVI/etc.). The PS3 used to allow the Other OS option but then they removed it for unknown reasons, I would love something like.</p>
<p>I need a hardware device that I can install Windows on (I know, probably a long shot). Does anyone know of any hardware device that will allow this?</p>
<p>Now, there is a small form factor PC device from Dell called the Zino (as an example), which would work out very good, except that it only has VGA/HDMI output, my needs call for the older composite, component outputs to work as well as an option for hooking up to a TV.</p>
| 0non-cybersec
| Stackexchange |
10x better than anything posted on here.. Listen, someone already posts this saying it was a freestyle. Totally slept on, this is better than anything I have ever heard. Its definitely a written.
http://www.youtube.com/watch?v=sEOKgjoxoto&feature=related | 0non-cybersec
| Reddit |
how to run rm in background in terminal. <p>I have the following command to delete files in a folder that are 15 days or older:</p>
<blockquote>
<p>find /var/www/App/app/var/sessions* -mtime +15 -exec rm {} \;</p>
</blockquote>
<p>what is the best way to speed this up and run it on the background? I heard rm is a pretty slow operation</p>
| 0non-cybersec
| Stackexchange |
Cutting Noodles By Hand. | 0non-cybersec
| Reddit |
How to add new Dataframe Column with Dictionary Key, if the Value is found in a column text string. <p>I have a dataframe in which one column has text information.</p>
<pre><code>print(df):
... | ... | Text |
... | ... | StringA. StringB. StringC |
... | ... | StringZ. StringY. StringX |
... | ... | StringL. StringK. StringJ |
... | ... | StringA. StringZ. StringJ |
</code></pre>
<p>I also have a dictionary that has the following:</p>
<pre><code>dict = {'Dogs': ['StringA', 'StringL'],'Cats': ['StringB', 'StringZ', 'StringJ'],'Birds': ['StringK', 'StringY']}
</code></pre>
<p>EDIT: i have about 100 dictionary Keys which each have 4+ Values.</p>
<p>What I am hoping to do is create extra columns in the dataframe for each Key in the dictionary and then place a "1" in the column when any of the Values from the dictionary appear.</p>
<p>Therefore the output i am trying to get is:</p>
<pre><code>print(df):
... | ... | Text | Dogs | Cats | Birds
... | ... | StringA. StringB. StringC | 1 | 1 | 0
... | ... | StringZ. StringY. StringX | 0 | 1 | 1
... | ... | StringL. StringK. StringJ | 1 | 1 | 1
... | ... | StringA. StringZ. StringJ | 1 | 1 | 0
</code></pre>
<p>EDIT: The issue is I'm not sure how to search for the values within the text column and then return a 1 if found to the Key column. Any help would be much appreciated! Thanks!</p>
| 0non-cybersec
| Stackexchange |
Bye!. | 0non-cybersec
| Reddit |
The log transform turns scalar multiplication into addition. Is there an analogous transformation for matrix-vector multiplication?. <p>Napier's method of logarithms and corresponding <a href="https://en.wikipedia.org/wiki/Mathematical_table" rel="nofollow noreferrer">tables of logarithms</a> provided a important tool to simplify hand computation by converting multiplication and division to equivalent problems of addition and subtraction.</p>
<p>Suppose I have a linear equation for <span class="math-container">$x$</span>:</p>
<p><span class="math-container">$$ a x = b $$</span></p>
<p>While it would be overkill, if I wanted to avoid division by <span class="math-container">$a$</span> I could log transform both sides and use the convenient property converting products to sums</p>
<p><span class="math-container">$$ \log(a) + \log(x) = \log(b) $$</span></p>
<p>then subtract <span class="math-container">$\log(a)$</span> and express the solution as</p>
<p><span class="math-container">$$ x = \exp(\log(b) - \log(a)) .$$</span></p>
<p>Consider the matrix equation</p>
<p><span class="math-container">$$ A X = B $$</span></p>
<p>where <span class="math-container">$A, X, B$</span> are square matrices. Under certain conditions we can compute <a href="https://en.wikipedia.org/wiki/Logarithm_of_a_matrix" rel="nofollow noreferrer">logarithms of square matrices</a>; the convenient products-to-sums property only holds for matrices which commute, but if A commutes with X then we have</p>
<p><span class="math-container">$$ \log(A) + log(X) = \log(B) $$</span></p>
<p><span class="math-container">$$ X = \exp(\log(B) - \log(A)) $$</span></p>
<p>What about when <span class="math-container">$x$</span> is a vector? Is there an analogous method to solve the system
<span class="math-container">$$ A \vec{x} = \vec{b} \ \ \ ?$$</span></p>
<p>I don't believe it's possible to exponentiate a vector, let alone take its logarithm. Eigenvalue decomposition would be a natural choice to separate the equations, but then you still have to divide. Perhaps there is another transformation that can be applied, something between the simple logarithm and the Laplace/Fourier/etc transforms so useful in differential equations.</p>
<p>I'm aware of iterative methods to solve linear equations without computing <span class="math-container">$A^{-1}$</span>. I'm looking for a pre-processing transformation (which might itself be very complicated!) to convert the equation into something trivially easy to solve (say, for a black box computer which only knows addition & subtraction), after which I can apply the inverse transformation to solve the original equation.</p>
| 0non-cybersec
| Stackexchange |
If a date pulled the oldest trick in the book (stretch into arm wrap while watching a movie) how would you react?. | 0non-cybersec
| Reddit |
Why the subway smells like piss. | 0non-cybersec
| Reddit |
Open source command line tool for Linux to diff XML files ignoring element order. <p>Is there an open source command-line tool (for Linux) to diff XML files which ignores the element order?</p>
<p>Example input file <code>a.xml</code>:</p>
<pre><code><tag name="AAA">
<attr name="b" value="1"/>
<attr name="c" value="2"/>
<attr name="a" value="3"/>
</tag>
<tag name="BBB">
<attr name="x" value="111"/>
<attr name="z" value="222"/>
</tag>
<tag name="BBB">
<attr name="x" value="333"/>
<attr name="z" value="444"/>
</tag>
</code></pre>
<p><code>b.xml</code>:</p>
<pre><code><tag name="AAA">
<attr name="a" value="3"/>
<attr name="b" value="1"/>
<attr name="c" value="2"/>
</tag>
<tag name="BBB">
<attr name="z" value="444"/>
<attr name="x" value="333"/>
</tag>
<tag name="BBB">
<attr name="x" value="111"/>
<attr name="z" value="222"/>
</tag>
</code></pre>
<p>So comparing these 2 files should not output any differences.
I have tried to sort the files with XSLT first:</p>
<pre><code><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="WINDOWS-1252" omit-xml-declaration="no" indent="yes"/>
<xsl:strip-space elements="*"/>
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*">
<xsl:sort select="@*" />
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
</code></pre>
<p>But the problem is that for the elements <code><tag name="BBB"></code> there is no sorting. They are simply output the order which they are input.</p>
<p>I have already looked at <code>diffXml</code>, <code>xDiff</code>, <code>XMLUnit</code>, <code>xmlstarlet</code> but none of these solve the problem; the diff output should be human readable, e.g. like when using <code>diff</code>.</p>
<p>Any hints on how either the sorting or ignoring element-order diff can be solved? Thanks!</p>
| 0non-cybersec
| Stackexchange |
Cool sub here! Thought I'd share my tattoo done by Justin Hartman in San Diego, CA. | 0non-cybersec
| Reddit |
[US] Divorce Corp (2014) - Documentary about a $50 billion industry, filled with corrupt courts that harm families, harms children, and literally robs both parents' money to fill the pockets of lawyers and judges. | 0non-cybersec
| Reddit |
Ripped him apart.. | 0non-cybersec
| Reddit |
Global variable implementation. <p>When I write the following program:</p>
<p>file 1:</p>
<pre><code>#include <stdio.h>
int global;
void print_global1() {
printf("%p\n", &global);
}
</code></pre>
<p>file 2:</p>
<pre><code>#include <stdio.h>
char global;
void print_global2() {
printf("%p\n", &global);
}
</code></pre>
<p>file 3:</p>
<pre><code>void print_global1();
void print_global2();
int main()
{
print_global1();
print_global2();
return 0;
}
</code></pre>
<p>output:</p>
<pre><code>$ ./a.out
0x804a01c
0x804a01c
</code></pre>
<p>Here is my question:</p>
<ul>
<li>Why are the linker implementing "int global" and "char global" as the same global variable:</li>
<li>How come the compiler does not complain (not the smallest warning with <code>-Wall -Wextra -ansi</code> ...)</li>
<li>How are the size of the global variable managed (the size of int and char are different)</li>
</ul>
<p>PS: The second question is architecture/compiler related, so lets take the gcc or Visual C++ (for C) with the int size as 32 bits</p>
<p>EDIT: THIS IS NOT A QUESTION FOR C++ BUT for C!</p>
<p>I use gcc version 4.4.1 and on Ubuntu 9.10, Here is the compilation console output:</p>
<pre><code>$ ls
global_data1.c global_data2.c global_data.c
$ gcc -Wall -Wextra -ansi global_data*.c
$ ./a.out
0x804a01c
0x804a01c
or
$ gcc -Wall -Wextra -ansi -c global_data*.c
$ gcc -Wall -Wextra -ansi global_data*.o
$ ./a.out
0x804a01c
0x804a01c
</code></pre>
| 0non-cybersec
| Stackexchange |
To feed a baby. | 0non-cybersec
| Reddit |
[4K] SSX 3: A Retro Masterpiece Is Even Better on Xbox One and Xbox One X!. | 0non-cybersec
| Reddit |
I've been on C# course and struggle to remember things?. <p>I'm an apprentice and I've been on a couple of training courses in C#, I understood the concept of c# programming and covered inheritance etc, but when I've came to code for my coursework "I've got to make a shopping basket and save the contents into a .txt" I just seems to not know what to do, as if I've got no idea how to program. I've got a copy of the end product apart from it's altered so we can't copy it whole, so I've just been taking code and not really understanding everything that's doing on.
I just seem as if I don't want to program as if I'm in a different mind set, I just seem to go blank at the thought of creating a simple program from scratch and have no Idea where to start? Any one got any ideas for help ? :) thx</p>
| 0non-cybersec
| Stackexchange |
A new skin patch can reduce peanut allergies. After one year of wearing the patch, roughly 50% of patients showed an increased tolerance to eating peanuts.. | 0non-cybersec
| Reddit |
Love of my life boyfriend cheated on me. So confused and wondering what I should do. Advice please.. Hi reddit, I'm (f, 21) he's (m, 23). We have a long history together. We've been friends for 3 years. Long story short we got together last October. In December he freaked out and wanted to take a break because he had just gotten out of a relationship and felt lost. I said that was fine, we were moving fast. But about a week into our break he came back to me with flying colors.
Constantly we would say I love you, I want to be with you forever, I miss you, I want you. We were attached at the hip. We went through a lot this year, but it was agreed we would be together for a long time and these things would only make us stronger. What was the kicker though, was that I have something called "vestibulitis." That means I have painful sex, and need months (if not years) of treatment. So, my sex drive took a dive while my boyfriend and I did simple things. I could tell he wanted more, but I knew he would never cheat on me. It is NOT in his character to "hook up" or cheat on someone. I know this because I know all his friends and ex's. If he didn't like the relationship he would end it.
He is also incredibly insecure. Always thinking I was going to leave him. He said I was the first real love he had had. I was also his second sex partner and his first oral sex partner. We had planned much ahead of what we wanted for each other. We agreed to always talk about our problems.
Last Sunday we had a fight. Last monday he told me he wanted space to find himself out for a bit, but was distant. He told me he loved me and didnt want to separate. Three days go by and he gets more distant, all those days though we see each other and he tells me he loves me. On Thursday Morning, I biked to his house to talk to him and found him in bed with another girl I had never seen before. She left, I screamed, he was in shock, and cried. I asked why and who she was.
He said he had met her at work, she was a customer. She came over and knew he was already fucked and let it happen. He said they didn't have sex.
I took all my things and told everyone about it. NOBODY expected it. His sister, his ex's, people he knew since high school. It was very unexpected.
Yesterday it has been 4 days, and he hasn't contacted me. His sister told me that they had met up and he had never felt more depressed in his life and that it was only that time.
I went to his house while he was at work so I could get more of my stuff. I found that he had mementos on his bedside of us. And a note either left out so I could see it or a confession for himself. To put briefly, he said how sorry he was, how bad he wronged me, how I didn't deserve that, and how he cries everyday knowing I won't be in his arms again. He also admitted he didnt know what he wanted from this girl, just for the excitement. I found two condoms left in his drawer, which meant he was being truthful about not having sex with her because all we had left was two.
I left the room the way it was and still haven't heard from him.
Why do I think he hasn't talked to me? Because whenever we fought and he knew he lost, he would never talk. Just let me "beat him" in a way and just take it knowing he did something wrong and that he thought I didn't deserve him. Very self defeating kind of guy. But loved me to no end. He told his sister just a week or so before the incident that he was going to be with me for a long time.
I'm in love with him still. I can't imagine finding someone else better or like him. He hasn't talked to me yet.
What do I do? To be honest, I want him back. I don't see him cheating again, but I want him to know that my respect and trust will have to be earned back, but it can be done. He does need some space, I'm not saying I will accept him back within a few months but I do want him back eventually. What do I do? | 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 |
Anyone else wish that iTunes supported handoff?. I'd love to pick up my iPhone and immediately continue to listen to the music that's playing on my Mac, without having to dig through my phone's library and then scrub to a specific point. I'm sure that I'm not alone. | 0non-cybersec
| Reddit |
Run Karma using Gradle?. <p>I have Jasmine unit tests that I would like to run and get Istanbul code coverage reports for. I can run a command line script to run Karma in Jenkins, but it would be nice to have everything execute using my build.gradle.</p>
<p>Is it possible to run Karma using Gradle? I've searched google, but I can't seem to find a solution.</p>
<p>Thanks</p>
| 0non-cybersec
| Stackexchange |
Any Italo Horror / Giallo suggestions. something drenched in gory technicolor glory. Straight from the 70s or 80s ? | 0non-cybersec
| Reddit |
Saw this on /r/video's, water bug kills snake.. https://www.youtube.com/watch?v=HjRoGyRE5z0 | 0non-cybersec
| Reddit |
When can a Non-Deterministic Finite Automaton with Epsilon transitions considered to be in an accepted state?. <p>A non-deterministic finite automaton is considered to be halted when either the whole input string has been consumed or when we reach a state where no available transition (if any) matches the current character being read.</p>
<p>If the machine halts when it's in an accepted state and at the same time the whole input has been consumed the input string is considered to be accepted.</p>
<p>Now, when introduce <span class="math-container">$\epsilon$</span> transitions the machine doesn't necessarily halt when the whole input string has been consumed, for it is possible that there are still <span class="math-container">$\epsilon$</span> transitions available.</p>
<p>Suppose we have a NFA that is in an accepted state and also that the whole input has been consumed, but there are still <span class="math-container">$\epsilon$</span> transitions available in this state, can we considered the input string to be accepted or do we need to "follow the trail" of <span class="math-container">$\epsilon$</span> transitions until we reach a state where no other transition is available?</p>
| 0non-cybersec
| Stackexchange |
LPT: If someone gives you a gift, text them when you use it! It will make them feel good.. Even (especially) if it's months later! Works especially well for clothes, jewelry, or kitchen stuff. | 0non-cybersec
| Reddit |
Restrict portrait orientation for Ionic App. <p>I am using Ionic, cordova to make an app. I am trying to restrict the orientation of the view to portrait only, I am doing the following in the config.xml file, but it is still not working any ideas?</p>
<pre><code> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<widget id="com.ionicframework.ionicucas805049" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>ionicUcas</name>
<description>
An Ionic Framework and Cordova project.
</description>
<author email="hi@ionicframework" href="http://ionicframework.com/">
Ionic Framework Team
</author>
<content src="index.html"/>
<access origin="*"/>
<preference name="webviewbounce" value="false"/>
<preference name="UIWebViewBounce" value="false"/>
<preference name="DisallowOverscroll" value="true"/>
<preference name="BackupWebStorage" value="none"/>
<preference name="Orienation" value="portrait" />
<feature name="StatusBar">
<param name="ios-package" value="CDVStatusBar" onload="true"/>
</feature>
</widget>
</code></pre>
<p>I have added <code><preference name="Orienation" value="portrait" /></code>
But no Joy....</p>
| 0non-cybersec
| Stackexchange |
Virgola Dresser By Rossetto. | 0non-cybersec
| Reddit |
I'm in my 20s and have absolutely no life skills whatsoever, can someone please teach me how to make a sandwich. | 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 |
mommies(and daddies) of r/parenting...for the first time ever, this summer i will be flying to cancun with my two year old son(also has never flown before) for vacation. advice needed!. as my title says, this is the first time we've both ever been on an airplane, and im already panicking. we will have one layover for an hour and a half in baltimore before we head to cancun. we're going with my father, brother, stepmom, and stepsister. in all of your collective wisdom, what are some tips, tricks, to-do's, and general to-knows about a trip like this? i already have my passport, but im starting the process for my little to get his. any answers will be greatly appreciated!
edit: also, does anyone know if i will be able to bring sand home as a souvenir? i like to collect sand from any new beach that i go to. | 0non-cybersec
| Reddit |
What does this PHP syntax mean?. <p>Consider the code:</p>
<pre><code>$a = "foobar";
echo $a{3}; // prints b
</code></pre>
<p>I know <code>$a[3]</code> is <code>'b'</code> but how come using <code>{}</code> in place of <code>[]</code> produec the same result ?</p>
| 0non-cybersec
| Stackexchange |
Considering WW1, WW2, Vietnam, JFK Assassination, 9/11 and countless other tragedies: we could be in the dark timeline caused by an incompetent time-traveler.. | 0non-cybersec
| Reddit |
Geography of Africa ftw. | 0non-cybersec
| Reddit |
I hate your guts!. | 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 |
Why do Angular (1.5) components always have an isolated scope?. <p>I'm building an Angular library that provides a bunch of components that should make it easier to build SPA application on top of a certain API. For some components we're using the multi-slot transclusions feature. Multi-slot transclusions and components were introduces in the AngularJS 1.5 release. </p>
<p>I really like both features, but I don't understand why components always have an isolated scope. I would like to control how variables are accessible in my transcluded template. But now I can't, because I can't control the scope. This basically means I have to tell the users of my library to reference the parent scope first in order to get to the data they need.</p>
<p>Does anyone know a workaround?, or maybe I'm doing it wrong. Then please tell me :-)</p>
<p>So this is my component: </p>
<pre><code>export const ProductsListComponent =
{
transclude: {
'template' : '?productListItemTemplate'
},
templateUrl: 'app/components/products-list/products-list.html',
controller: ProductsListComponentController,
bindings: {
list: '='
}
}
...
angular.module('MyWebApplication', ['ngMessages', 'ui.router' ])
.component( 'productList', ProductsListComponent )
...
</code></pre>
<p>Here's the template HTML:</p>
<pre><code><div class="product-list-wrapper" ng-repeat="$product in $ctrl.list">
<ng-transclude ng-transclude="template">
<product-list-item product="$product"></product-list-item>
</ng-transclude>
</div>
</code></pre>
<p>And this is how it can be used. And you see my problem. The expression must begin with <strong>$parent.</strong>$product.title, because the component scope is contained.</p>
<pre><code><product-list list="search.products">
<product-list-item-template>
<h2>{{$parent.$product.title}}</h2>
</product-list-item-template>
</product-list>
</code></pre>
| 0non-cybersec
| Stackexchange |
A collection of 151 chill/ serene, bass heavy electronic music songs, the curation of which has been greatly influenced by this sub. Enjoy! Chill Electronic Gentle + Elegant, a playlist by wize.gaia on Spotify. | 0non-cybersec
| Reddit |
Hard disk on Macbook Pro. <p>I am very new to Mac and Apple world, please excuse me for my ignorance if any. I do see Macbook pro or Air doesn't come with Hard Disk drive..!! It comes with flash storage with just storage like 128GB etc (which is very low I feel). Can anyone let me know why no Hard Disk on Macbook pro? Is it possible to install third party hard disk to it?</p>
<p><a href="http://www.apple.com/in/macbook-pro/specs-retina/" rel="nofollow">http://www.apple.com/in/macbook-pro/specs-retina/</a></p>
| 0non-cybersec
| Stackexchange |
Thinking of the group $(\mathbb{Z}, +)$ as a single-object category?. <p>I am totally new to the category theory and my question might sound stupid. Nevertheless, I am eager to understand.</p>
<p>I assume existence of category $C$ with a single object $A$. So each an every arrow in this category deliberately points back to itself. In other words, all the maps there are $A \mapsto A$. </p>
<p>Now, at this point, nothing guarantees that those $A \mapsto A$ morphism are indeed <strong>isomorphisms</strong>. It appears to happen only when any group emerges, since, by definition, whatever group required to ship pairs of $(a, a^{-1})$; hence, it is perfectly fine to acknowledge the existence of $a \mapsto a^{-1}$ morphism together with $a^{-1} \mapsto a$, which both make $(a, a^{-1})$ isomorphic to each other. </p>
<p>Next step is to define, let say, $(\mathbb{Z}, +)$ group as a category $C$. At this point I fail:</p>
<blockquote>
<p>Then category $C$ consists of set (or class) $A \mapsto A$ maps and associative composition function $(A, A) \times (A, A) \mapsto (A, A)$.</p>
</blockquote>
<p>I can't understand: $(+)$ is not an instance of $(A, A) \times (A, A) \mapsto (A, A)$. So somehow $(+) : (g \in A, g' \in A) \mapsto g'' \in A$ must be "upgraded" to become an $((+, +), (+, +)) \mapsto (+, +)$ and I see no clear yet obvious way to achieve it.</p>
<p>So my question is: what is the magic trick to get the Cartesian product of <strong>binary operators</strong> given by any group such that it satisfy above-mentioned requirement? It would be really great if you stick to the $(\mathbb{Z}, +)$ example. </p>
| 0non-cybersec
| Stackexchange |
The reals in $L$. <p>Assume "$0^\#$ exists". </p>
<p>We know that $0^\#$ is a $\Pi^1_2$-singleton. That means, there is a Shoenfield tree $S$ on $\omega \times (\omega \times \omega_1)$ so that $$x = 0^\# \leftrightarrow S_x \text{ is wellfounded},$$ where $S$ has the following definiton: for some recursive
$$f : (\omega\times\omega)^{<\omega} \to \text{linear orders} $$
we have </p>
<ul>
<li>$|s|=|t|=k \to f(s,t)$ is a linear order $k+1$ with greatest element
$0$</li>
<li>$s \subset s' \wedge t \subset t' \to f(s,t)$ is a suborder of $f(s',t')$.</li>
<li>$(s,(t,\vec{\alpha})) \in S \leftrightarrow (\{\alpha_0, \dots,\alpha_k\};<) \simeq (k+1, f(s,t)) \wedge t(0)=0$. (The requirement $t(0)=0$ is only for convenience in the question to follow)</li>
</ul>
<p>The question is: <strong>How wellfounded is $S_{0^\#}$?</strong> Since 0 is always the greatest element of $f(s,t)$, the rank of $\emptyset$ in $S_{0^\#}$ must $\omega_1$. But what is the rank of a length-1 node $(\langle 0 \rangle, \langle \alpha \rangle )$? Let $S'$ be the "stretch" of $S$ onto some $\kappa>\omega_1$. That is, $S'$ is a tree on $\omega \times (\omega \times \kappa)$ with the same definition. <strong>What is the smallest possible value of
$$ \beta_{S,0^\#}=\text{rank}_{S'_{0^\#}} (\langle 0 \rangle, \langle \omega_1 \rangle )$$
for all possible choices of $S$ satisfying $p[S] = \omega^\omega \setminus \{0^\#\}$?</strong></p>
<p>It is not hard to come up with a definition of $S$ so that $\beta_{S,0^\#} = (\omega_1^V)^{+L}$. It seems that $\beta_{S,0^\#} < (\omega_1^V)^{+L}$ is impossible. </p>
<p>The ordinal $(\omega_1^V)^{+L}$ appears to be some kind of closure ordinal, or the higher level analog of $\omega_1^{CK}$.</p>
<p><strong>In general, if $x$ is a $\Pi^1_2$-singleton and there is a choice of $S$ so that $\beta_{S,x} < (\omega_1^V)^{+L}$ and $p[S] = \omega^\omega \setminus \{x\}$, must $x \in L$?</strong></p>
| 0non-cybersec
| Stackexchange |
Made a little Network "Monitoring" System to keep track of who is at home!. | 0non-cybersec
| Reddit |
Squirrel vs Dog. | 0non-cybersec
| Reddit |
How to Win at White Elephant. | 0non-cybersec
| Reddit |
How can I [20f] make some new friends that are girls?. Hello, try to keep an open mind while reading this. I am a twenty year old girl and I moved to a new state about a year ago, and I have not made any new friends. It is really depressing. I have a boyfriend but he lives about an hour away, with the rest of my old friends. I still keep in contact with my out of state friends (texting/facebook messaging a few times a week) but I rarely actually see them in person. I hang out with my boyfriend and his friends every weekend, but I do not have any of my own where I am currently living. It is almost embarrassing because my boyfriend has many, many friends and makes them very easily. I have a best friend that lives nearby my boyfriend but we don't hang out much due to her working and going to school, and also being boyfriend-obsessed which is fine., although we talk just about everyday through texting. I go to college (yes, I know, perfect place to make friends) but go to a commuter-only school. There are barely any clubs and no intramural sports teams. It's already a month into the semester so I am not sure if I can even join any new clubs? I have a part-time job and talk to my co-workers often, genuinely enjoying talking to them and I feel as though they feel the same about me, but there are either a) many years older, b) have kids and/or are married, so I don't see them having a great desire to hang out outside of work. In my classes I usually talk to people, but the classes are very small and I am the only girl in most of them (computer science major), so I feel as though becoming friends with a guy outside of class is just a bad idea. I really am desperate to make friends, preferably girls, but I don't even know where to start. I have anxiety but am working hard on managing it, which I think would help a lot with making some new friends to hang out with in my new home-state when I'm not with my boyfriend. I am considering just showing up to a club meeting at school but am worried about coming halfway into the school year into a group of people that already know each other. I would really appreciate some kind words and advice on how I can make some new friends. | 0non-cybersec
| Reddit |
The song titles on this album form a pleasant curve. | 0non-cybersec
| Reddit |
OpenVPN can connect but no internet unless UFW is disabled. <p>I have searched and found several questions similar to this, but they often are unanswered or the answers do not work in my case. I'm hoping that the added detail will help debug my problem.</p>
<p>My Raspberry Pi B+ has OpenVPN running on port 443/TCP. I can successfully connect even with UFW enabled but my device cannot access the internet. With UFW disabled the VPN works correctly.</p>
<p>Interestingly, I tried disabling and resetting UFW, then re-adding the rules to allow 53, 80, 443 and everything from 10.8.0.0/24. This worked for a bit (I think it stopped working after the first reboot).</p>
<p><strong>cat /var/log/ufw.log</strong></p>
<pre><code># 100s of near identical lines ommitted
Aug 24 20:14:25 raspberrypib kernel: [ 559.195772] [UFW BLOCK] IN=tun0 OUT=enxb827eb4217d2 MAC= SRC=10.8.0.2 DST=172.217.25.36 LEN=60 TOS=0x00 PREC=0x00 TTL=63 ID=42717 DF PROTO=TCP SPT=50554 DPT=443 WINDOW=65535 RES=0x00 SYN URGP=0
Aug 24 20:14:25 raspberrypib kernel: [ 559.343362] [UFW BLOCK] IN=tun0 OUT=enxb827eb4217d2 MAC= SRC=10.8.0.2 DST=216.58.220.106 LEN=1378 TOS=0x00 PREC=0x00 TTL=63 ID=12146 DF PROTO=UDP SPT=46888 DPT=443 LEN=1358
Aug 24 20:14:46 raspberrypib kernel: [ 580.290379] [UFW BLOCK] IN=tun0 OUT=enxb827eb4217d2 MAC= SRC=10.8.0.2 DST=216.58.200.99 LEN=60 TOS=0x00 PREC=0x00 TTL=63 ID=63518 DF PROTO=TCP SPT=35938 DPT=443 WINDOW=65535 RES=0x00 SYN URGP=0
</code></pre>
<p>This seems to suggest that UFW is blocking my traffic intentionally but I believe that I have the required rules. All traffic to or from <code>tun0</code> should be allowed. Traffic from 10.8.0.0/24 should be allowed.</p>
<p><strong>ufw status verbose</strong></p>
<pre><code>Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), allow (routed)
New profiles: skip
To Action From
-- ------ ----
22 ALLOW IN Anywhere
443 ALLOW IN Anywhere
80 ALLOW IN Anywhere
443/tcp ALLOW IN Anywhere
Anywhere ALLOW IN 10.8.0.0/24
53 ALLOW IN Anywhere
Anywhere on tun0 ALLOW IN Anywhere
22 (v6) ALLOW IN Anywhere (v6)
443 (v6) ALLOW IN Anywhere (v6)
80 (v6) ALLOW IN Anywhere (v6)
443/tcp (v6) ALLOW IN Anywhere (v6)
53 (v6) ALLOW IN Anywhere (v6)
Anywhere (v6) on tun0 ALLOW IN Anywhere (v6)
Anywhere ALLOW OUT Anywhere on tun0
Anywhere (v6) ALLOW OUT Anywhere (v6) on tun0
</code></pre>
<p><strong>ip route | grep default</strong></p>
<pre><code>default via 192.168.1.1 dev enxb827eb4217d2 src 192.168.1.101 metric 202
</code></pre>
<p><strong>cat /etc/ufw/before.rules</strong></p>
<pre><code>#
# rules.before
#
# Rules that should be run before the ufw command line added rules. Custom
# rules should be added to one of these chains:
# ufw-before-input
# ufw-before-output
# ufw-before-forward
#
# START OPENVPN RULES
# NAT table rules
*nat
:POSTROUTING ACCEPT [0:0]
# Allow traffic from OpenVPN client to masquerade
-A POSTROUTING -s 10.8.0.0/24 -o enxb827eb4217d2 -j MASQUERADE
COMMIT
# END OPENVPN RULES
# Don't delete these required lines, otherwise there will be errors
*filter
:ufw-before-input - [0:0]
:ufw-before-output - [0:0]
:ufw-before-forward - [0:0]
:ufw-not-local - [0:0]
# End required lines
# allow all on loopback
-A ufw-before-input -i lo -j ACCEPT
-A ufw-before-output -o lo -j ACCEPT
# quickly process packets for which we already have a connection
-A ufw-before-input -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A ufw-before-output -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A ufw-before-forward -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
# drop INVALID packets (logs these in loglevel medium and higher)
-A ufw-before-input -m conntrack --ctstate INVALID -j ufw-logging-deny
-A ufw-before-input -m conntrack --ctstate INVALID -j DROP
# ok icmp codes for INPUT
-A ufw-before-input -p icmp --icmp-type destination-unreachable -j ACCEPT
-A ufw-before-input -p icmp --icmp-type source-quench -j ACCEPT
-A ufw-before-input -p icmp --icmp-type time-exceeded -j ACCEPT
-A ufw-before-input -p icmp --icmp-type parameter-problem -j ACCEPT
-A ufw-before-input -p icmp --icmp-type echo-request -j ACCEPT
# ok icmp code for FORWARD
-A ufw-before-forward -p icmp --icmp-type destination-unreachable -j ACCEPT
-A ufw-before-forward -p icmp --icmp-type source-quench -j ACCEPT
-A ufw-before-forward -p icmp --icmp-type time-exceeded -j ACCEPT
-A ufw-before-forward -p icmp --icmp-type parameter-problem -j ACCEPT
-A ufw-before-forward -p icmp --icmp-type echo-request -j ACCEPT
# allow dhcp client to work
-A ufw-before-input -p udp --sport 67 --dport 68 -j ACCEPT
#
# ufw-not-local
#
-A ufw-before-input -j ufw-not-local
# if LOCAL, RETURN
-A ufw-not-local -m addrtype --dst-type LOCAL -j RETURN
# if MULTICAST, RETURN
-A ufw-not-local -m addrtype --dst-type MULTICAST -j RETURN
# if BROADCAST, RETURN
-A ufw-not-local -m addrtype --dst-type BROADCAST -j RETURN
# all other non-local packets are dropped
-A ufw-not-local -m limit --limit 3/min --limit-burst 10 -j ufw-logging-deny
-A ufw-not-local -j DROP
# allow MULTICAST mDNS for service discovery (be sure the MULTICAST line above
# is uncommented)
-A ufw-before-input -p udp -d 224.0.0.251 --dport 5353 -j ACCEPT
# allow MULTICAST UPnP for service discovery (be sure the MULTICAST line above
# is uncommented)
-A ufw-before-input -p udp -d 239.255.255.250 --dport 1900 -j ACCEPT
# don't delete the 'COMMIT' line or these rules won't be processed
COMMIT
</code></pre>
<p><strong>ip addr show tun0</strong></p>
<pre><code>3: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 100
link/none
inet 10.8.0.1/24 brd 10.8.0.255 scope global tun0
valid_lft forever preferred_lft forever
inet6 fe80::b3bb:ee7d:df9e:3f65/64 scope link flags 800
valid_lft forever preferred_lft forever
</code></pre>
<p><strong>cat /etc/default/ufw</strong></p>
<pre><code># /etc/default/ufw
#
# Set to yes to apply rules to support IPv6 (no means only IPv6 on loopback
# accepted). You will need to 'disable' and then 'enable' the firewall for
# the changes to take affect.
IPV6=yes
# Set the default input policy to ACCEPT, DROP, or REJECT. Please note that if
# you change this you will most likely want to adjust your rules.
DEFAULT_INPUT_POLICY="DROP"
# Set the default output policy to ACCEPT, DROP, or REJECT. Please note that if
# you change this you will most likely want to adjust your rules.
DEFAULT_OUTPUT_POLICY="ACCEPT"
# Set the default forward policy to ACCEPT, DROP or REJECT. Please note that
# if you change this you will most likely want to adjust your rules
DEFAULT_FORWARD_POLICY="ACCEPT"
# Set the default application policy to ACCEPT, DROP, REJECT or SKIP. Please
# note that setting this to ACCEPT may be a security risk. See 'man ufw' for
# details
DEFAULT_APPLICATION_POLICY="SKIP"
# By default, ufw only touches its own chains. Set this to 'yes' to have ufw
# manage the built-in chains too. Warning: setting this to 'yes' will break
# non-ufw managed firewall rules
MANAGE_BUILTINS=no
#
# IPT backend
#
# only enable if using iptables backend
IPT_SYSCTL=/etc/ufw/sysctl.conf
# Extra connection tracking modules to load. Complete list can be found in
# net/netfilter/Kconfig of your kernel source. Some common modules:
# nf_conntrack_irc, nf_nat_irc: DCC (Direct Client to Client) support
# nf_conntrack_netbios_ns: NetBIOS (samba) client support
# nf_conntrack_pptp, nf_nat_pptp: PPTP over stateful firewall/NAT
# nf_conntrack_ftp, nf_nat_ftp: active FTP support
# nf_conntrack_tftp, nf_nat_tftp: TFTP support (server side)
IPT_MODULES="nf_conntrack_ftp nf_nat_ftp nf_conntrack_netbios_ns"
</code></pre>
<p><strong>cat /etc/sysctl.conf</strong></p>
<pre><code>#
# /etc/sysctl.conf - Configuration file for setting system variables
# See /etc/sysctl.d/ for additional system variables.
# See sysctl.conf (5) for information.
#
#kernel.domainname = example.com
# Uncomment the following to stop low-level messages on console
#kernel.printk = 3 4 1 3
##############################################################3
# Functions previously found in netbase
#
# Uncomment the next two lines to enable Spoof protection (reverse-path filter)
# Turn on Source Address Verification in all interfaces to
# prevent some spoofing attacks
#net.ipv4.conf.default.rp_filter=1
#net.ipv4.conf.all.rp_filter=1
# Uncomment the next line to enable TCP/IP SYN cookies
# See http://lwn.net/Articles/277146/
# Note: This may impact IPv6 TCP sessions too
#net.ipv4.tcp_syncookies=1
# Uncomment the next line to enable packet forwarding for IPv4
net.ipv4.ip_forward=1
# Uncomment the next line to enable packet forwarding for IPv6
# Enabling this option disables Stateless Address Autoconfiguration
# based on Router Advertisements for this host
#net.ipv6.conf.all.forwarding=1
###################################################################
# Additional settings - these settings can improve the network
# security of the host and prevent against some network attacks
# including spoofing attacks and man in the middle attacks through
# redirection. Some network environments, however, require that these
# settings are disabled so review and enable them as needed.
#
# Do not accept ICMP redirects (prevent MITM attacks)
#net.ipv4.conf.all.accept_redirects = 0
#net.ipv6.conf.all.accept_redirects = 0
# _or_
# Accept ICMP redirects only for gateways listed in our default
# gateway list (enabled by default)
# net.ipv4.conf.all.secure_redirects = 1
#
# Do not send ICMP redirects (we are not a router)
#net.ipv4.conf.all.send_redirects = 0
#
# Do not accept IP source route packets (we are not a router)
#net.ipv4.conf.all.accept_source_route = 0
#net.ipv6.conf.all.accept_source_route = 0
#
# Log Martian Packets
#net.ipv4.conf.all.log_martians = 1
#
###################################################################
# Magic system request Key
# 0=disable, 1=enable all
# Debian kernels have this set to 0 (disable the key)
# See https://www.kernel.org/doc/Documentation/sysrq.txt
# for what other values do
#kernel.sysrq=1
###################################################################
# Protected links
#
# Protects against creating or following links under certain conditions
# Debian kernels have both set to 1 (restricted)
# See https://www.kernel.org/doc/Documentation/sysctl/fs.txt
#fs.protected_hardlinks=0
#fs.protected_symlinks=0
</code></pre>
<p><strong>sudo iptables --table nat --list</strong></p>
<pre><code>Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- 10.8.0.0/24 anywhere
</code></pre>
<p>EDIT: I can ping the server and connect via SSH.</p>
| 0non-cybersec
| Stackexchange |
Gradle equivalent to maven systemPath. <p>I can't figure out what to put in gradle to satisfy this dependency:</p>
<pre><code> <dependency>
<groupId>javax.jnlp</groupId>
<artifactId>jnlp-api</artifactId>
<version>8.0</version>
<scope>system</scope>
<systemPath>${java.home}/lib/javaws.jar</systemPath>
</dependency>
</code></pre>
| 0non-cybersec
| Stackexchange |
People With Sneeze Fetish Have Divided Feelings About the Pandemic. | 0non-cybersec
| Reddit |
How to test redux saga with jest?. <p>Just new in react , react-redux/saga and jest</p>
<p>consider:</p>
<p><strong>-----The Componnent ()----</strong></p>
<pre><code>componentDidMount() {
this.props.actions.initTodos(
axios,
ajaxURLConstants.WP_GET_TODOS,
appStateActions.setAppInIdle,
appStateActions.setAppInProcessing,
todosActions.todosInitialized
);
}
</code></pre>
<p>So when my <strong>TodoApp</strong> component did mount, it will dispatch the <strong>INIT_TODOS</strong> action which then <strong>my root saga is listening</strong> , and when it caught it, will spawn the appropriate worker saga to act accordingly.</p>
<p><strong>-----The Corresponding Worker Saga-----</strong></p>
<pre><code>export function* initTodosSaga( action ) {
try {
yield put( action.setAppInProcessing() );
let response = yield call( action.axios.get , action.WP_GET_TODOS );
if ( response.data.status === "success" )
yield put( action.todosInitialized( response.data.todos ) );
else {
console.log( response );
alert( response.data.error_msg );
}
} catch ( error ) {
console.log( "error" , error );
alert( "Failed to load initial data" );
}
yield put( action.setAppInIdle() );
}
</code></pre>
<p><strong>-----The Test So Far-----</strong></p>
<pre><code>import todos from "../../__fixtures__/todos";
import { initTodosSaga } from "../todosSaga";
test( "saga test" , () => {
let response = {
status : "success",
todos
},
action = {
axios : {
get : function() {
return new Promise( ( resolve , reject ) => {
resolve( response );
} );
}
},
WP_GET_TODOS : "dummy url",
setAppInIdle : jest.fn(),
setAppInProcessing : jest.fn(),
todosInitialized : jest.fn()
};
let initTodosSagaGen = initTodosSaga( action );
initTodosSagaGen.next();
expect( action.setAppInIdle ).toHaveBeenCalled();
} );
</code></pre>
<p><strong>-----The Test Result-----</strong></p>
<p><a href="https://i.stack.imgur.com/sJKiD.png" rel="noreferrer"><img src="https://i.stack.imgur.com/sJKiD.png" alt="enter image description here"></a></p>
<p>So the important part is this </p>
<p><strong>console.error node_modules\redux-saga\lib\internal\utils.js:240</strong></p>
<p><strong>uncaught at check put(action): argument action is undefined</strong></p>
<p>but I have console.log the action i passed on my test inside the worker saga and indeed it is not undefined</p>
<p>what am I missing?</p>
<p>Thanks in advance.</p>
<p><strong>----------Update------------</strong></p>
<p>Ok notice on the top that it is complaining on this line of code</p>
<pre><code>yield put( action.setAppInIdle() );
</code></pre>
<p>Which is outside the try catch block , so i made a couple of changes</p>
<p>1.) I moved the code above inside the try catch block, just after the else statement of </p>
<pre><code>if ( response.data.status === "success" )
</code></pre>
<p>please check <strong>initTodosSaga</strong> code above</p>
<p>Then on my saga test, i test for </p>
<pre><code>expect( action.setAppInProcessing ).toHaveBeenCalled();
</code></pre>
<p>instead of the <strong>setAppInIdle</strong> spy function</p>
<p>and this is the test result</p>
<p><a href="https://i.stack.imgur.com/rcmrs.png" rel="noreferrer"><img src="https://i.stack.imgur.com/rcmrs.png" alt="enter image description here"></a></p>
<p>so the test passed! <strong>but still it is complaining about the action being undefined</strong></p>
<p>now what is interesting is if in my saga test, if I test for this now</p>
<pre><code>expect( action.setAppInProcessing ).toHaveBeenCalled();
expect( action.setAppInIdle ).toHaveBeenCalled();
</code></pre>
<p>This is the result</p>
<p><a href="https://i.stack.imgur.com/YIBtn.png" rel="noreferrer"><img src="https://i.stack.imgur.com/YIBtn.png" alt="enter image description here"></a></p>
<p>so now it still complains about the action still undefined ( I have not included in my screenshot, but still same as above )</p>
<p>plus the second assert i have about the <strong>setAppInIdle</strong> spy function was not called, but the <strong>setAppInProcessing</strong> did pass!</p>
<p>I hope this additional info helps in resolving this question.</p>
| 0non-cybersec
| Stackexchange |
He’s the worst 😭. | 0non-cybersec
| Reddit |