text
stringlengths 3
1.74M
| label
class label 2
classes | source
stringclasses 3
values |
---|---|---|
My sister (f15) is constantly trying to start fights with me (m17) and my dad (m51) is always on her side, idk what to do. Whenever I'm around my family my sister always tries to start fights with me and my parents don't do anything about it but if I start to retaliate my dad tells me to stop. I like my mom and she sometimes tries to defend me but really has no control over my sister but my dad seems to always side with my sister no matter what she does.
They also never punish my sister, so she has no respect for anyone and does whatever she wants, (she attacked my dad once for trying to take her phone away and my dad ended up giving it back, she also threatened to kill herself when my mom tried to take her phone and my mom also gave in, she will do anything to get her way.) I can't even have a conversation around my sister without her condescending remarks. I recently tried to eat dinner with my family and my mom asked if i wanted to have a grad party and my sister said no one would show up anyway, my parents didn't say anything, I said why are you even here to my sister and my dad tells me to stop, so I just left. I don't know what to do it seems like I only have two options 1. just let her say whatever she wants to me and take it or 2. just avoid my family altogether. I enjoy being around my brother and mom but it immediately turns bad when my sister is around, I don't understand why she does this, I need some advice I've been dealing with this for about 2 years now and I'm considering giving up on my family.
\--- \*\*TL;DR;\*\* : My sister always tries to start conflict with me and my parents don't stop her but if I say anything back my dad tells me to stop and gets upset. I can't even have a conversation if my sister is around, I don't know what to do in this situation. | 0non-cybersec
| Reddit |
If you were given the task of naming the Reddit Alien, what you you call it?. | 0non-cybersec
| Reddit |
CREATE DATABASE AS COPY does not work with Azure. <p>I'm new with T-SQL and MSSQL but need to copy Azure SQL database from one server to another.</p>
<p>As I googled <a href="https://azure.microsoft.com/en-us/documentation/articles/sql-database-copy-transact-sql/" rel="noreferrer">here</a> - it can be done with a <code>CREATE DATABASE Database1_copy AS COPY OF server1.Database1;</code> query, but in my Vusial Studio Code editor on the Ubuntu Linux with the <code>vscode-mssql</code> extention - I have an error:</p>
<blockquote>
<p>Msg 156, Level 15, State 1, Line 1 : Incorrect syntax near the keyword 'database'.</p>
</blockquote>
<p>My full query looks next:</p>
<pre><code>CREATE DATABASE Database1_copy AS COPY OF oldserver.database.windows.net.olddatabasenamehere;
</code></pre>
<p>Additional googling leads me to the same solutions (<a href="http://blog.idera.com/sql-server/how-to-make-a-copy-of-a-database-on-windows-azure-sql-database/" rel="noreferrer">here</a> is another example I found).</p>
<p>What I'm doing wrong here? </p>
<p>I understood that even the first link published on Azure's resource (azure.microsoft.com) - it does not necessarily is working solution for Azure's SQL.</p>
<p>P.S. Idea is to automate DEV environment rollout (with ARM templates) as a copy of the current Live environment, with creating databases as a copy of Live's databases.</p>
| 0non-cybersec
| Stackexchange |
Happy dog comes with built in fan.. | 0non-cybersec
| Reddit |
A stunning panorama of Europe at night, seen from the International Space Station.. | 0non-cybersec
| Reddit |
Today, my dreams started coming true. Here is a look at my business going from a dream to reality!. | 0non-cybersec
| Reddit |
Let $L/K$ be a field extension and let $a, b \in L$ be algebraic elements over $K$ having the same minimal polynomial. Show that $K(a) \simeq K(b)$.. <p>The above question was given to me as an assignment but I'm a bit stuck and I think the way I've been going about it is a dead end, or if not a dead end, I can't figure out a way to finish it off</p>
<p>So in a previous question we had to prove that <span class="math-container">$\mathbb{Q}/(x^{2}-5) \simeq\mathbb{Q}[\sqrt{5}]$</span>, and I did this with the isomorphism <span class="math-container">$\varphi:\mathbb{Q}/(x^{2}-5)\to\mathbb{Q}[\sqrt{5}],\;ax+b\mapsto a\sqrt{5}+b$</span> </p>
<p>I then thought that I could do the same with this, question, isomorphically mapping <span class="math-container">$\varphi:K(a) \to K[x]/(f)$</span> where <span class="math-container">$f$</span> is the minimal polynomial of <span class="math-container">$a$</span>, and then mapping <span class="math-container">$\psi:K[x]/(f) \to K(b)$</span> using something of a similar form to my above example. What I came up with was </p>
<p><span class="math-container">$$\varphi: K(a) \to K[x]/(f),\; \sum_{i=0}^{n-1}c_{i}a^{i} \mapsto \sum_{i=0}^{n-1}c_{i}x^{i}$$</span> </p>
<p>where <span class="math-container">$n = \deg(f)$</span>, but I don't know how to prove this is an isomorphism or if I was wrong and it actually isn't one. The additive property is easy and works out fine, but I don't know how to prove the multiplicative property because of when the power of <span class="math-container">$a$</span> goes above <span class="math-container">$n-1$</span>. I looked around for answers to this before posting and I know that <span class="math-container">$K(a) \simeq K[x]/(f) \simeq K(b)$</span> is true, but I couldn't find a proof anywhere. Is what I'm doing a dead end or am I barking up the completely wrong tree, and if so, how should I go about proving this?</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 |
I'll just...thanks.. | 0non-cybersec
| Reddit |
When Lady Luck is smiling. | 0non-cybersec
| Reddit |
Distinct projections along factors of splitting prime. <p>Fix a number field $k$ and some $\alpha \in \mathcal{O}_k \setminus \mathbb{Z}$.
Let $p$ be a rational prime which splits completely in $k$, so that $p \mathcal{O}_k = P_1 \cdots P_m$ for $m = [k : \mathbb{Q}]$ and some prime ideal $P_1, \ldots, P_m$ of $\mathcal{O}_k$.
Now it is easy to see that for any $i=1,\ldots,m$ there exists an unique integer $0 \leq \alpha_i < p$ such that $\alpha \equiv \alpha_i$ (mod $P_i$).
For no reason we can say that $\alpha_1, \ldots, \alpha_m$ are all distinct integers, indeed this is not certainly the case if $p < m$.</p>
<p>My question is: <strong>Is it true that for "most" of the primes $p$ which split completely in $k$ we have that $\alpha_1, \ldots, \alpha_m$ are all distinct?</strong></p>
<p>Here by "most", I mean, for example, a set of relatively positive density, or even density $1$... I let to you give a precise meaning.</p>
<p>My guess is that the answer should be YES. Indeed, assuming that each $\alpha_i$ is a random non-negative integer less than $p$, the probability that $\alpha_1, \ldots, \alpha_m$ are all distinct is
$$\left(1 - \frac1{p - 1}\right)\left(1 - \frac1{p - 2}\right)\cdots\left(1 - \frac1{p - m + 1}\right) \to 1 ,$$
as $p \to +\infty$. Moreover, in the special case $m = 2$, we have that $\alpha_1 = \alpha_2$ means that $\alpha \in \alpha_1 + p \mathcal{O}_k \subseteq \mathbb{Z} + p \mathcal{O}_k$ and it seems that the set $\mathbb{Z} + p \mathcal{O}_k$ is "small" for large $p$, so $\alpha$ should be not in it.</p>
<p>Thanks for any idea/reference.</p>
| 0non-cybersec
| Stackexchange |
Whether the 2 minimum spanning tree of same graph contains the lowest edges in common?. <blockquote>
<p>If two minimum spanning trees on the same graph only have 2 edges in common, then those two edges must be the lowest costs edges in the graph.</p>
</blockquote>
<p>True/false? and why?</p>
<p>Because according to me if there is a only edge which connects 2 subgraphs then that will be included in the MST whatever might be the value. So according to me the answer is False but the solution says the answer to be true. Please explain.</p>
| 0non-cybersec
| Stackexchange |
My Son's "Imaginary" Friend - 5 - The Offering. Please check out the [first post](http://www.reddit.com/r/nosleep/comments/1m9uv8/my_sons_imaginary_friend/) the mini [update](http://www.reddit.com/r/nosleep/comments/1md6nr/my_sons_imaginary_friend_update_1/) the [Second Update](http://www.reddit.com/r/nosleep/comments/1mgpbm/my_sons_imaginary_friend_update_2_the_gash_and/) the [Third Update](http://www.reddit.com/r/nosleep/comments/1mmop6/my_sons_imaginary_friend_miniupdate_3_just/) and [The Investigator](http://www.reddit.com/r/nosleep/comments/1myd4s/my_sons_imaginary_friend_part_4_the_investigator/) before reading.
You want to play games? Jack likes games. He really does. Jude realizes this now.
Many of you, so smart and almost psychic yourself, mentioned things while Jude was one step ahead.
Jack hates a lot of things. Being ignored, he lashes out with being ignored. He hates being mocked. He can't pass the salt, which Jude just informed me isn't just table salt. It's dead sea salt, whatever the fuck that is, and he mixes it with red brick dust before making the circle. He recircles his property daily. He can't tell if it's the salt or the dust causing him to stay behind it. It's apparent by random claw marks, Jack has circled the property. We salt it twice a day now.
Jude and I have become pretty close. Yeah, yeah shut it. Not like that... really. He made us all necklaces. They are really like little pouch amulet thingies with Lavender and some other stuff in them. You can't be too safe.
Jude notices that Jack doesn't like unity. He almost feels like it's having a man around that does it. Jack likes the weak, like children and women who are going through crisis. There aren't any negative emotions allowed in this house. I'm not allowed to talk about R.
Last night he came up with a plan. We were going to try to give Jack a gift, an offering if you will. He got creative. He went to the store and came back with... a Jack in the box. 3 of them. He took them to the basement to edit them a bit. He loosened the handles so they were easier to play with. There was a little one, a female, and a male. Unity he said. He just wanted to "see what he'd do."
We placed the boxes along the salt line where Jack likes to sit and wait with a note and a crayon. The note simply said, "For Jack." He thinks this may open up communication. We put the boxes in a line, touching, with the smallest in the middle. It was to prove a point stand our ground. We left them all night so we could get some sleep.
We couldn't get some sleep as for some reason we heard pounding. We had no idea where it was coming from. Jude grabbed my hand and we looked around the house together but still came up with nothing.
He looked at me, shaking his head. He was at a loss. He's uncomfortable being at a loss. He's never experienced it before. Michael slept through the noise. He hasn't had much sleep lately. It was kind of crazy though because the pounding was at his window. Wind. We're stupid. I guess we're on edge.
The wind was crazy and it wouldn't stop. The trees we're going crazy but you could feel it on the windows. It howled through the house and almost sounded like groaning and crying. Then we got the call.
"Can you kill it or something? We can't sleep anymore!" The guys next door were hearing the groans too.
"I can't control the wind, guy," Jude explained.
"Bro," His neighbor began, "This shit isn't wind."
"We can't hear it," Jude said, looking at me with an eyebrow raised. "Looks like you need to hire me, too," Jude laughed. The neighbors didn't laugh. They hung up.
"Weird," He said to me before grabbing a flashlight and walking outside. "Stay here," he said, holding his hand up to stop me from going anywhere. He took the flashlight and walked out to the back yard and stepped over the salt circle.
I watched him as he immediately covered his ears. He suddenly fell to the ground. I stood there in awe watching him block invisible attacks. I've never seen anything like it. He put his arms up to grab at his face, quickly rose to his feet and hopped over the circle running back to the house.
"It's like a fucking siren!" He said. "Something is wailing out there and I have no idea of how to stop it!"
I noticed a cut on his lip and face. He told me he was fine. I'm a mom, you're not fine. I grabbed some antibiotic ointment from under his bathroom sink. I told him to sit down but he kept telling me he's fine.
"Sit down!" I commanded. He sat. We we're in the living room now.
"You should talk like that to Jack," He laughed.
I sat down I cleaned off his cheek and his lip. I put the antibiotic ointment on the scratch on his cheek and the scrape below his lip. I looked at him and he looked at me and he kissed me. He immediately apologized got up and walked outside to check on our gifts.
The male was the only one pretty much left alone and it was thrown inside the salt. Kind of like Jude was. The female box was destroyed, the actual "jack" thrown into the trees and the box destroyed beyond recognition. The little one was gone. He came back inside with the paper still intact and under the rock where Jude had left it. It said "Gonna get em."
Jude knew the gifts wouldn't work. Jack wants to play games. While we're in here and he can't play. He wrote back, in huge font, "HOW?" He placed it back outside... with my pocket mirror he threw out when I first got here. I don't know why. He might not even know why. He doesn't know what this is so he's trying everything.
He apologized again for kissing me. He offered to "hug it out" and of course I forgave him. We walked into the kitchen for a midnight snack. We were both hungry from not really eating. I made some potato skins. They were delicious, for the record.
Jude was cleaning the dishes while I checked on Michael in our little guest room. Michael was doing fine. I was coming down the stairs when I heard a crash of a dish breaking. I began running to Jude who was just staring out the kitchen window.
"Jude?"
He didn't respond for a minute. "I saw him."
"What? Who?"
"Jack! I saw him in the window!"
"Was he inside?"
"... Not possible. Wow... I've seen a lot of ghosts but that thing. He was fucking clear as day."
I reacted to Jude cursing. He doesn't do that often.
"That thing couldn't have been human. No fucking way, he's too strong."
"Fuck," I mimicked. Joking at him cursing.
It was only then that he looked at me. "That things a killer. His arms..." He shook his head to process. "His hands were at his feet. He wasn't slouching but his arms they were just... unusually long."
"I've heard," I said.
"We need to find out his goal... that's what we have to do. Why does he NEED Mikey?"
I would have answered something like I don't know but he took off to the basement again. It was like something triggered him. He was on a mission.
Michael came down in the commotion. Saying that Jack kept calling his name outside and throwing rocks at the window.
"Put him in my room!" I heard from the basement. His room was a bit... odd. Covered in symbols and random markings on the wall. Kind of like a room you'd assume a madman would have. Most of the symbols matched his tattoos. Still, I put Mikey in the king bed. We watched TV until he fell asleep.
I walked to the living room just as Jude emerged from the basement with a hand full of books and some jars of stuff. I raised an eyebrow.
"He likes games right?"
I nodded.
"Oh, we're gonna play."
[The Game](http://www.reddit.com/r/nosleep/comments/1n5w7o/my_sons_imaginary_friend_6_the_game/) | 0non-cybersec
| Reddit |
[NSV] First goal met + dinner with friends / no cheats + pants falling off. I posted about hitting the 170s this morning and being really psyched that I was not even tempted to celebrate by feeding carb addictions... so we joined friends for dinner at this local steakhouse. The cocktails and locally brewed beer were tempting, but I had unsweetened ice tea. Instead of an appetizer, I had a wedge salad with their homemade blue cheese dressing and home smoked pork belly, and a ribeye with blue cheese butter and side of broccoli. No dessert. I'm stuffed, but as I'm walking out of the restaurant, I feel my "I never wear these because my legs look like sausages" white jeans slipping off my ass.. Seriously I had to pull them up on the sidewalk. I never wear these because they are usually too tight, even when I've lost some weight. But today I pulled them on in a hurry. I came home thinking that I had pulled on a pair of jeans in a larger size (I have a closet full of jeans in sizes ranging from 10s-14s, because, you know... one of these days I'm going to lose this weight!! LOL!!) Anyways, I check the size. THESE ARE MY 10s. These are the tightest, least flattering jeans I own and they are practically falling down and slipping off my hips as I walk. I am only down 25-ish lbs, but these are fitting like I'm down 35 lbs? Is my body composition changing that drastically?? I guess so!!
tl;dr: keto rocks, ordering new pants in an 8 | 0non-cybersec
| Reddit |
Does a "semi-dependent" sequential event affect probability?. <p>Say I have a set of 5 different cards and pick one at random, let's say the ace of hearts.</p>
<p>$1/5 = 20\%$</p>
<p>Then, I put the ace into a different set of only 4 cards (including the ace) and pick again. This time, I <em>also</em> pick the ace.</p>
<p>$1/4 = 25\%$</p>
<p>$1/7 * 1/4 = 5\%$</p>
<p>Does "surviving" the first round affect the probability of picking the ace again or is it still treated as independent events?</p>
| 0non-cybersec
| Stackexchange |
BANG. It’s late, he’s still not home. Another episode of Firefly to keep me company. The dogs sleep, one on the couch at my feet and the other just beside me on the floor. The only lights in the room are the glow from the TV and the laptop screen sitting beside me. I look over and grab the already half empty bag of chips sitting next to me and shove a few in my mouth. I know that he will be home soon so I shouldn’t eat too much. Stupid night classes.
About halfway through the episode Jokers ears perk up, he lifts his head and seems to focus on the door. That’s normal, probably just someone outside. I scritch behind his ear and forget about it. A few moments later Joker jumps up and creeps over to the door, that creep dogs do when they are hunting something.
I looked through the blinds, there is nothing on the porch… No lights.. No people.. What is he after? I call him back over and tug on his collar to get him to lay down. Another couple of minutes and a a loud bang from outside the front door. Joker and Alice both jump up and do their normal jumping running barking dance that they do. I look out the window in the top of the front door.. Nothing.. No lights… No People.. What was that?
I have to stand on my toes to see out the window, I can’t see all of the porch.
BANG
I could feel the door vibrate under my hands with that. Still.. Nothing. Nothing that I can see. The dogs are going insane, the barking high pitch and fevered. Backing away from the door, Alice gets under my feet and I trip. Flat on my ass staring at the door while the dogs whirl around me.
BANG
Shit..
BANG
I have to get out of this room.. What the hell is that..
Ok, I fantasize about the whole zombie apocalypse thing, what do I need to do..
BANG
Umm… I grab the dogs collars and shove them up the stairs, shut the door and lock myself in my room. From my bedroom upstairs I can hear the sounds from the first floor.. Something is scratching on the wood. Long drawn out scratching.
The glow of my phone illuminates my face as I text my boyfriend. “Where are you. Come home NOW. Something is banging on the front door.”
The banging has stopped for a couple minutes… My boyfriend is still not home.. I sit here huddled on the bed, wrapped in blankets, because despite it being 80 degrees I am freezing cold. I've locked the dogs in their kennels. They were driving me insane with their constant jumping and barking and scratching at the door.
I have to go back downstairs. It's late. Myles should be home. Why is he not home... I have to see if whatever it was is gone.. I head down, leaving the dogs upstairs, still wrapped in my blanket, still freezing. I slowly open the door from the stairwell into the kitchen and look with wide eyes toward the front door.
There are scratches on the door..
On the inside of the door..
It's in the house.
[Update 1](http://www.reddit.com/r/nosleep/comments/1l9t24/bang_2/)
[Update 2](http://www.reddit.com/r/nosleep/comments/1la7sx/bang_3/)
[Update 3](http://www.reddit.com/r/nosleep/comments/1lana5/bang_4/)
[Update Final](http://www.reddit.com/r/nosleep/comments/1lb0r6/bang_final/)
| 0non-cybersec
| Reddit |
4 Important Features Of Home Security Cameras. | 1cybersec
| Reddit |
Rails routing with subfolders. <p>I have such structure of my view folders (they display logis structure):</p>
<p><img src="https://i.stack.imgur.com/oRfAa.png" alt="dir"></p>
<p>so i have subfolder in admin subfolder, that in catalogs folder i have to subfolder, manufacturer etc (manufacturer and other have there controller's with views, only catalogs and to are empty)</p>
<p>and rails automatically generated me such routes:</p>
<pre><code> namespace :admin do
namespace :catalogs do
namespace :to do
namespace :manufacturers do
namespace :models do
namespace :types do
resources :articles
end
end
end
end
end
end
namespace :admin do
namespace :catalogs do
namespace :to do
namespace :manufacturers do
namespace :models do
resources :types
end
end
end
end
end
namespace :admin do
namespace :catalogs do
namespace :to do
namespace :manufacturers do
resources :models
end
end
end
end
namespace :admin do
namespace :catalogs do
namespace :to do
resources :manufacturers
end
end
end
</code></pre>
<p>manufacturers, models, types work normally, but articles work strange... When i try to write such form partial:</p>
<pre><code>= form_for [:admin, :catalogs, :to, :manufacturers, :models, :types, @art] do |f|
= f.label "OEM"
= f.text_field :oem_number
= f.label "Бренд"
= f.text_field :manufacturer
= f.label "Название"
= f.text_area :name
= f.label "Кол-во"
= f.text_field :quantity
= f.label "Комментарий"
= f.text_area :details
= f.label "Только с VIN"
= f.check_box :only_with_vin
= f.hidden_field :type_id, @type_id
.form-actions
= f.submit 'Сохранить изменения', :class => "btn btn-primary"
</code></pre>
<p>something is bad, i get
undefined method `admin_catalogs_to_manufacturers_models_types_to_articles_path' for #<#:0xbbedf60></p>
<p>but for example in types i have such form:</p>
<pre><code>= form_for [:admin, :catalogs, :to, :manufacturers, :models, @man] do |f|
%b
= @man.Name
%br
= @man.TYP_PCON_START.to_s[4...6].concat("-").concat(@man.TYP_PCON_START.to_s[0...4])
\-
-if @man.TYP_PCON_END.blank?
= "наст. время"
-else
= @man.TYP_PCON_END.to_s[4...6].concat("-").concat(@man.TYP_PCON_END.to_s[0...4])
%br
= ((@man.TYP_HP_FROM.to_f*0.74).round).to_i
kW
= f.label "Отображать в списке ТО?"
= f.check_box :is_in_to
.form-actions
= f.submit 'Сохранить', :class => "btn btn-danger"
= link_to 'Назад', :back, :class => "btn"
</code></pre>
<p>and all is ok, what's wrong with articles? How and what to change in my route and optimize it? I try a little bit, but get errors...</p>
| 0non-cybersec
| Stackexchange |
Tracing system call on Ubuntu 12.04. <p>The main task I have to carry out, is to trace the system call of processes in ubuntu 12.04 LTS.</p>
<p>Problem is, I am unable to trace them continuously, i.e. as soon as they are added to the system, they should get traced.</p>
<p>Is there any kind of signal or interrupt which can inform the user about a newly added process in the system?</p>
| 0non-cybersec
| Stackexchange |
[WP] You aspire to be a serial killer. The only problem is, you always end up choosing comically less than lethal techniques.. | 0non-cybersec
| Reddit |
My S/O [19/f] can't commit and its breaking me [19/m]. This might be a bit long, bare with me, context is necessary.
My S/O and I have known each other for about 4 years now, I knew of her for a while before I met her though. She went to a different school, and a lot of guys I knew went completely mad trying to chase her. I hated the perfect picture they put in my head, it was so sickening, the idea of the "perfect girl" really seemed stupid and the way they all talked about her was plain annoying. Then I met her, at first, and for a long time I only really thought about her looks, all the stories I'd heard barely did her justice. But still a couple years down the track I wasn't really thinking about her romantically, she was just there, just a friend.
I can't tell you when or how but close to a year and a half ago something changed between us almost instantly. I could only try describe it to you. All of a sudden we couldn't stop thinking about each other. Non-stop messaging everyday, late nights, snapchatting...it was really exciting. The real issue here was that she was travelling overseas to train (she does a sport) and would be gone for about 6 months. Wow, just my luck right? Thats ok, we hoped to get a night in with each other before she left, so a couple days before she left, she came down to my beach house with me for a night.
We've talked about it since and the idea going down there was, lets just have fun and see how much sex we can have in 24hours...on the drive back however, I knew that "lets just have fun" was not on the cards anymore. She didn't let go of my hand for the whole drive back to town, I knew she felt it too.
The next year and a bit is really depressing to be honest. We would still message each other all the time, even though we were in completely different timezones, I would call her at least twice a week and we'd talk for hours. We both had our fun in this time, she did what she wanted and I did what I wanted. There was no talk of a long distance relationship, neither of us wanted that, but I felt closer to her than some of my own family members.
She came back to town for three days last June (2016). She was going to put a whole day and night away for me and come back down to my beach house. I couldn't believe that, 6 months away from family, friends, she had three days to see everyone and she put a third of that aside, just for me.
It never happened, I broke my nose the week before she got back, had to have surgery, the surgery landed on the day we planned to go down. I left for my travels for 7 months the week after. We didn't see each other till she got back to our town in April.
When she got back we immediately started seeing each other. My group of friends were well aware of what was happening, her group, not so much. Here is where the complications start. When she first came down to my beach house, she was seeing someone. I knew him well so it wasn't like she went behind my back with that, but we both have some history with each others friends and she felt a bit shy about the whole thing.
Fine with me, we can hang out with my new group and we talk to yours when we're ready.
Everything is perfect for months. Honestly I haven't been happier, I give her everything I can because thats my personality, not last week she was coming down with the flu, badly. I gave her a lift home from work and made some chicken soup, I still drove home not sure if I did enough.
It was only this week I started feeling like something was odd, purely through her lack of communication with me (wasn't calling/texting and didn't make much of an effort to catch up with me) and I thought it was because she was sick.
Then she comes to my house yesterday to drop off some things and says. I need to put this on hold, I've got some unresolved shit that I need to push through. You give me the world and everything is great when I'm with you but as soon as I leave your presence I feel guilty because I know I can't give enough back.
^Her unresolved shit is she's had some awful bfs before me, I've known this for a while, its nothing new to me.
In my head I'm trying to convince myself that this came out of the blue enough to reason that, maybe she's just scared about the whole thing because of her past relationships, and needs some time to think it over. She is going away for two weeks holiday now anyway, so its not like I can go and see her or anything.
I've worked so hard and so long to help foster this relationship and she's been such a presence in my life over the last year and a half. Not talking to her these last few days have been unbearable enough, but I know she needs space.
My question to you all is
1. How do I deal with this personally
2. What would be your advice going forward (assuming I still want this relationship to work)
tl;dr: S/O struggles with her past and therefore is struggling to commit to me.
Edit: Worth saying she has said that she wants this to work, but is struggling with it right now. | 0non-cybersec
| Reddit |
Even In Digital Photography Age, High Schoolers Still Flock To the Darkroom. | 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 |
What exactly constitutes a "full calendar sync" in EKCalendar?. <p>The documentation for the <code>EKCalendar</code> class states this for the <code>calendarIdentifier</code> property: </p>
<blockquote>
<p>A full sync with the calendar will lose this identifier. You should
have a plan for dealing with a calendar whose identifier is no
longer fetch-able by caching its other properties.</p>
</blockquote>
<p>When exactly does a "full sync" occur and what properties are liable to change besides the <code>calendarIdentifier</code>?</p>
| 0non-cybersec
| Stackexchange |
Wounded US Marine Gunnery Sgt. Jeremiah Purdie reaching out to a fellow Marine near Hill 484, near the DMZ in South Vietnam [2000 × 1318] October 5, 1966. | 0non-cybersec
| Reddit |
Spiral of Archimedes area and sketch in polar coordinates. <p>This is an exercise from Apostol's <em>Calculus, Volume 1</em>. It asks us to sketch the graph in polar coordinates and find the area of the radial set for the function:</p>
<p>$$f(\theta) = \theta$$</p>
<p>On the interva $0 \leq \theta \leq 2 \pi$. I think to find the area we should just integrate $\theta \ d\theta$ from 0 to $2\pi$ like any other function? Is that right? Also I'm not sure how to think about sketching a function in polar coordinates.</p>
<p>The problem is the book gives the answer as $4\pi^3/3$ which is not what I get if I just integrate the function.</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 |
My Place of Solace is Gone. | 0non-cybersec
| Reddit |
How to deal with uncontrolled dogs on walks?. Some backstory: In April I moved into a new neighborhood. While walking my dog I've noticed it's seemingly common for people in this neighborhood to have their dogs out, unleashed or tethered, in their front yards with them. My dog has fear aggression when strange dogs approach her, so I always do my best to avoid these dogs (crossing to the other side of the street, etc). Sometimes it's not a problem and we can walk by without any issue. However, 4 or 5 times now there have been dogs that run at us out of their yard/away from their owner and won't leave us alone (even though my dog is snarling and growling). Every time the owners have tried to rely on their, unsuccessful, attempts to verbally call the dog back to them and then they take their sweet time actually coming to physically retrieve their dogs. Out of all the times this has happened, only one owner has actually apologized to me.
It just happened again on my walk and this was the most afraid I had been that there was about to be an actual fight; I was almost ready to kick the other dog even though I would hate to do anything to hurt an animal. So my question is, what kinds of things can I do when this sort of thing happens? I know there's that dog pepper spray, does anyone have experience with that working? I'm also going to start taking note of the addresses this happens at and calling in complaints to Animal Control, since it is illegal for these people to have their dogs out unleashed. | 0non-cybersec
| Reddit |
Anything you want to tell me about that glass on the floor, Floyd?. | 0non-cybersec
| Reddit |
How to set a cancel button in Progress Dialog?. <p>I want to set a cancel button in my <code>ProgressDialog</code>. Below is my code:</p>
<pre><code>myDialog = new ProgressDialog(BaseScreen.this);
myDialog.setMessage("Loading...");
myDialog.setCancelable(false);
myDialog.show();
</code></pre>
<p>I want to set a button with an <code>onClickListener</code> on this <code>ProgressDialog</code>.
I tried with this code:</p>
<pre><code>myDialog.setButton("Cancel", new OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
myDialog.dismiss();
}
});
</code></pre>
<p>But it isn't working. I tried other similar listeners also, but still no success.
How can I solve this problem?</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 |
Java: How to write binary files?. <p>I have been doing web programming for several years now and since then I have not done any programming for desktop applications, and I have forgotten so many things. Please be patient if this is too simple.</p>
<p>Now I have this situation:<br>
I am trying to store some hashed words in a file. I think I should use binary files for this (please correct me if I am wrong). But I have no idea how should I write the words to the file. I tried many ways, but when I read back the file, and try to decrypt the words, I get <code>BadPaddingException</code>.</p>
<p>Does anyone have any idea how to write the words to a file?</p>
<p>P.S: I use this code for encrypting/decrypting the words (I got it from another StackOverflow thread, with a few modifications):</p>
<pre><code>public static byte[] encrypt(String property) throws GeneralSecurityException, UnsupportedEncodingException {
SecretKeyFactory keyFactory = SecretKeyFactory.getInstance("PBEWithMD5AndDES");
SecretKey key = keyFactory.generateSecret(new PBEKeySpec(password));
Cipher pbeCipher = Cipher.getInstance("PBEWithMD5AndDES");
pbeCipher.init(Cipher.ENCRYPT_MODE, key, new PBEParameterSpec(salt, 20));
return pbeCipher.doFinal(property.getBytes("UTF-8"));
}
public static String decrypt(byte[] property) throws GeneralSecurityException, IOException {
SecretKeyFactory keyFactory = SecretKeyFactory.getInstance("PBEWithMD5AndDES");
SecretKey key = keyFactory.generateSecret(new PBEKeySpec(password));
Cipher pbeCipher = Cipher.getInstance("PBEWithMD5AndDES");
pbeCipher.init(Cipher.DECRYPT_MODE, key, new PBEParameterSpec(salt, 20));
return new String(pbeCipher.doFinal(property));
}
</code></pre>
| 0non-cybersec
| Stackexchange |
Daily Discussion [2018-08-01]. This thread is for general football discussion and a place to ask quick questions.
New to the subreddit? Get your [team crest](/r/soccerbot/wiki) and have a read of [our rules](/r/soccer/wiki/rules#wiki_community_rules).
**Quick links**:
[](#icon-ball) [Match threads](/r/soccer/search?q=flair%3Amatch%2Bthread+AND+NOT+flair%3Apost+AND+NOT+flair%3Apre&restrict_sr=on&sort=new&t=day#res-hide-options)
[](#icon-whistle) [Post match threads](/r/soccer/search?q=flair%3Apost%2Bmatch&restrict_sr=on&sort=new&t=week#res-hide-options)
[](#icon-news) [League roundups](/r/soccer/search?q=flair%3Aroundup&sort=new&restrict_sr=on&t=week&feature=legacy_search#res-hide-options)
[](#icon-tv) [Watch highlights](/r/soccer/search?q=flair%3Amedia+OR+flair%3AMirror&restrict_sr=on&sort=hot&t=day#res-hide-options)
[](#icon-notes) [Read the news](/r/soccer/search?q=NOT+flair%3Amedia+AND+NOT+flair%3AMirror&restrict_sr=on&sort=hot&t=day#res-hide-options)
This thread is posted every 23 hours to give it a different start time each day.
| 0non-cybersec
| Reddit |
Static initializer doesn't run during JUnit tests. <p>I have an interesting JUnit problem here (JUnit 4.12). I have a base class that only has static methods. They have to be static, because of the way they're used. I inherit other classes from the base class. So, if the base class is <code>Base</code>, we have <code>ChildA</code> and <code>ChildB</code>.</p>
<p>Most of the methods are contained in the base class, but it has to know which child it actually is (just calling the methods as the base class is invalid). This is done via a static data member in the base class:</p>
<pre><code>public class Base {
protected static ChildType myType = ChildType.Invalid;
...
}
</code></pre>
<p>Each child sets the data member via a static initializer, thus:</p>
<pre><code>static {
myType = ChildType.ChildA;
}
</code></pre>
<p>Then when the methods are called, the base class knows what type it is and loads the appropriate configurations (the type is actually a configuration name).</p>
<p>This all works perfectly when running the application. Stepping through it in the debugger and through log messages, I can see the appropriate types are set and the methods load the appropriate configurations based on the child type.</p>
<p>The problem arises when using JUnit. We have some JUnit tests to test each of the base class methods. Since calling the methods on just the base class is invalid, we call the methods on the child classes, thus:</p>
<pre><code>bool result = ChildA.methodTwo();
</code></pre>
<p>This ''always fails''. Why? The static initializer never gets called. When running the code as an application, it gets called, and everyone is happy. When I run it as a JUnit test, the static initializer is skipped and the methods have invalid data. What is JUnit doing that skips the static initializer? Is there a way around it?</p>
<p><strong>Details</strong></p>
<p>In reality, we're not calling the method as I posted above. I just wanted the example to be as clear as possible. In reality, we have a Web Service written with the Jersey framework. The method called is one of the REST endpoints.</p>
<pre><code>@POST
@Produces(MediaType.TEXT_PLAIN)
public String methodPost() {
...
return new String( itWorked ? "success" : "fail" );
}
</code></pre>
<p>And we call it like this (sorry about the ugly syntax, it's just the way it works):</p>
<pre><code>@Test
public void testThePost() throws Exception {
javax.ws.rs.core.Response response = target("restapi/").request().post(Entity.entity(null, MediaType.TEXT_PLAIN));
assertEquals( 200, response.getStatus() );
}
</code></pre>
<p>All the GET tests work, and the static initializer is called on all of them. It's just this POST that fails, and only when running the JUnit test.</p>
| 0non-cybersec
| Stackexchange |
[No Spoilers] I've been wanting to read these, and now I'm excited!. | 0non-cybersec
| Reddit |
Coin of unknown origin, same design on both sides. Any ideas?. | 0non-cybersec
| Reddit |
Docs for OpenSSH CA-based certificate based authentication. <p>OpenSSH 5.4 added a new method for certificate authentication (<a href="http://www.openssh.com/txt/release-5.4" rel="nofollow noreferrer">changes</a>).</p>
<pre><code> * Add support for certificate authentication of users and hosts using a
new, minimal OpenSSH certificate format (not X.509). Certificates
contain a public key, identity information and some validity
constraints and are signed with a standard SSH public key using
ssh-keygen(1). CA keys may be marked as trusted in authorized_keys
or via a TrustedUserCAKeys option in sshd_config(5) (for user
authentication), or in known_hosts (for host authentication).
Documentation for certificate support may be found in ssh-keygen(1),
sshd(8) and ssh(1) and a description of the protocol extensions in
PROTOCOL.certkeys.
</code></pre>
<p>Is there any guides or documentation beyond what is mentioned in the ssh-keygen man-page? The man page covers how to generate certificate and use them, but it doesn't really seem to provide much information about the certificate authority setup. For example, can I sign the keys with an intermediate CA, and have the server trust the parent CA?</p>
<p>This comment about the new feature seems to mean that I could setup my servers to trust the CA, then setup a method to sign keys, and then users would not have to publish their individual keys on the server. This also seems to support key expiration, which is great since getting rid of old/invalid keys is more difficult then it should be. But I am hoping to find some more documentation about describe the total configuration CA, SSH server, and SSH client settings needed to make this work.</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 |
software center got stuck/not responding. <p>A few days ago I installed Ubuntu 13.04. After installation I ran few programs one by one to see that if everything worked fine. </p>
<p>At that time the Software Center ran and it listed some software in the window. But now two days after installation, when I open the Software Center it does not list any software at all. I closed it and ran it from terminal by typing <code>sudo software-center</code> as suggested in some forums, the terminal shows the following error:</p>
<pre><code>root@engrali-OptiPlex-760:~# sudo software-center
2013-08-13 21:23:50,366 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'
Traceback (most recent call last):
File "/usr/bin/software-center", line 130, in <module>
app = SoftwareCenterAppGtk3(options, args)
File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 338, in __init__
self.icons)
File "/usr/share/software-center/softwarecenter/ui/gtk3/session/appmanager.py", line 66, in __init__
self.oauth_token = helper.find_oauth_token_sync()
File "/usr/share/software-center/softwarecenter/backend/ubuntusso.py", line 141, in find_oauth_token_sync
sso.find_credentials()
File "/usr/share/software-center/softwarecenter/backend/login_impl/login_sso.py", line 75, in find_credentials
self.proxy.find_credentials(self.appname, self._get_params())
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
return self._proxy_method(*args, **keywords)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
**keywords)
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
</code></pre>
<p>please, can someone help me to solve this problem?</p>
| 0non-cybersec
| Stackexchange |
C# Mock IHttpclient & CreateClient. <p>I have a function that I want to x-unit test, but it seems that I have to mock the CreateClient function? Whenever I debug it during testing it seems that the var client is equals to null. I am injecting the dependencies properly, I am sure of that. What I want to know is how to mock the CreateClient.</p>
<p>here is that function: </p>
<pre><code> public async Task CreateMessageHistoryAsync(Message message)
{
//This seems to be giving a null value
var client = this.clientFactory.CreateClient(NamedHttpClients.COUCHDB);
var formatter = new JsonMediaTypeFormatter();
formatter.SerializerSettings = new JsonSerializerSettings
{
Formatting = Formatting.Indented,
NullValueHandling = NullValueHandling.Ignore,
ContractResolver = new CamelCasePropertyNamesContractResolver()
};
Guid id = Guid.NewGuid();
var response = await client.PutAsync(id.ToString(), message, formatter);
if (!response.IsSuccessStatusCode)
{
throw new HttpRequestException(await response.Content.ReadAsStringAsync());
}
}
</code></pre>
<p>here is the unit test, I am mocking the IHttpClient in a separate class and I am using that class.</p>
<pre><code> [Collection("MockStateCollection")]
public class CreateMessageHistory
{
private readonly MockStateFixture mockStateFixture;
public CreateMessageHistory(MockStateFixture mockStateFixture)
{
this.mockStateFixture = mockStateFixture;
}
[Fact]
public async Task Should_NotThrowHttpRequestException_When_AMessageHistoryIsCreated()
{
var recipients = MockMessage.GetRecipients("Acc", "Site 1", "Site 2", "Site 3");
var message = MockMessage.GetMessage(recipients);
mockStateFixture
.MockMessageHistoryService
.Setup(service => service.CreateMessageHistoryAsync(message));
var messageHistoryService = new MessageHistoryService(
mockStateFixture.MockIHttpClientFactory.Object);
mockStateFixture.MockIHttpClientFactory.Object.CreateClient("CouchDB");
var task = messageHistoryService.CreateMessageHistoryAsync(message);
var type = task.GetType();
Assert.True(type.GetGenericArguments()[0].Name == "VoidTaskResult");
Assert.True(type.BaseType == typeof(Task));
await task;
//await Assert.IsType<Task>(messageHistoryService.CreateMessageHistoryAsync(message));
// await Assert.ThrowsAsync<HttpRequestException>(() => messageHistoryService.CreateMessageHistoryAsync(message));
}
}
</code></pre>
<p>it seems to me that I also need to mock the CreateClient class is it?</p>
| 0non-cybersec
| Stackexchange |
Comess - Guess Who’s Back [EDM/Dubstep]. | 0non-cybersec
| Reddit |
Can all unit-distance graphs have their vertices at algebraic integers?. <p>A graph $G$ is described as a <em>unit-distance graph</em> if there exists a function $f:G \rightarrow \mathbb{C}$ such that for every edge $(u,v) \in E(G)$, we have $|f(u) - f(v)| = 1$.</p>
<p>Obviously, we can necessarily find an embedding into the algebraic numbers $\bar{\mathbb{Q}}$. In other words, if $G$ is a unit-distance graph, we can find $g:G \rightarrow \bar{\mathbb{Q}}$ such that for all $(u,v) \in E(G)$, we have $|g(u) - g(v)| = 1$.</p>
<p>But what about if we further restrict ourselves to the algebraic <strong>integers</strong> $\mathcal O(\bar{\mathbb{Q}})$? Can all unit-distance graphs be embedded in such a way?</p>
| 0non-cybersec
| Stackexchange |
knockout.js - deferred databinding for modal?. <p>I am using knockout.js to display a list of employees. I have a single hidden modal markup on the page. When the "details" button for a single employees is clicked, I want to data-bind that employee to the modal popup. I am using the ko.applyBindings(employee, element) but the problem is when the page loads, it is expecting the modal to start off as bound to something. </p>
<p>So I'm wondering, is there a trick/strategy to do a late/deferred databinding? I looked into virtual bindings but the documentation was not helpful enough.</p>
<p>Thanks!</p>
| 0non-cybersec
| Stackexchange |
How to compile c++ to javascript using emscripten while including third party libraries?. <p>Actually I'm using GSL in my c++ program. I've referred to the emscripten documentation but got nothing. This is what I see in the documentation, which makes no sense:</p>
<pre><code># For example, consider the case where a project “project” uses a library “libstuff”:
# Compile libstuff to bitcode
./emconfigure ./configure
./emmake make
# Compile project to bitcode
./emconfigure ./configure
./emmake make
# Compile the library and code together to HTML
emcc project.bc libstuff.bc -o final.html
</code></pre>
<p>(Isn't there something wrong with the documentation?)
And it says nothing about how to use the library in javascript.</p>
<p>Here's the problems I have:</p>
<ol>
<li>How to build a third party library into bitcode?</li>
<li>How to use the library in javascript?</li>
</ol>
<p>Thanks in advance.</p>
| 0non-cybersec
| Stackexchange |
Different proof of the Plancherel Formula in $L^2(\mathbb R).$. <p>In chapter 9 of Rudin's "Real and Complex Analysis", the formula is stated without proof after he shows that $f\mapsto \hat f$ is an isometry of $L^2(\mathbb R)$ onto $L^2(\mathbb R),$ with Lebesgue measure. </p>
<p>Is Plancherel's formula an immediate consequence of Rudin's proof? If so, how? I know that isometries preserve inner products, but I think it requires at least a mention, if not an argument.</p>
<p>The usual proof (at least, the only one I have seen) of this identity without using directly the above-mentioned fact is a somewhat messy calculation, which I doubt fits into the situation presented by Rudin. </p>
<p>My thought is: $[f,g]=\int \hat f \overline {\hat g}\ $ defines an inner product, such that $[f,f]=\|f\|^2\ $ (using the isometry). From here, an application of the polarization identity gives the result: $\int f\overline g=\int \hat f \overline {\hat g}.$ </p>
| 0non-cybersec
| Stackexchange |
Every dad's favorite bottle opener. The Popener. | 0non-cybersec
| Reddit |
How to limit memory usage within a python process. <p>I run Python 2.7 on a Linux machine with 16GB Ram and 64 bit OS. A python script I wrote can load too much data into memory, which slows the machine down to the point where I cannot even kill the process any more.</p>
<p>While I can limit memory by calling:</p>
<pre><code>ulimit -v 12000000
</code></pre>
<p>in my shell before running the script, I'd like to include a limiting option in the script itself. Everywhere I looked, the <code>resource</code> module is cited as having the same power as <code>ulimit</code>. But calling:</p>
<pre><code>import resource
_, hard = resource.getrlimit(resource.RLIMIT_DATA)
resource.setrlimit(resource.RLIMIT_DATA, (12000, hard))
</code></pre>
<p>at the beginning of my script does absolutely nothing. Even setting the value as low as 12000 never crashed the process. I tried the same with <code>RLIMIT_STACK</code>, as well with the same result. Curiously, calling:</p>
<pre><code>import subprocess
subprocess.call('ulimit -v 12000', shell=True)
</code></pre>
<p>does nothing as well.</p>
<p>What am I doing wrong? I couldn't find any actual usage examples online.</p>
<hr>
<p>edit: For anyone who is curious, using <code>subprocess.call</code> doesn't work because it creates a (surprise, surprise!) new process, which is independent of the one the current python program runs in.</p>
| 0non-cybersec
| Stackexchange |
Working example of latest android facebook sdk login. <p>I am working on custom facebook login button, I found that there is little source (especially working code example) about the latest facebook android sdk. I spent all day but still the code is not working. I wonder if there is any project example or your project code of:</p>
<ol>
<li>facebook login:</li>
<li>share session to other activity/fragment (so I can check the login / logout status in everywhere of the app)</li>
<li>post to wall</li>
<li>logout</li>
</ol>
<p>Here are my code, but it actually return non-login status even I am logined</p>
<p>Login:</p>
<pre><code>public class Login {
private final static String TAG = "FaceBookLogin";
public Context ctx;
public Session fb_session;
public Login(Context _ctx) {
ctx = _ctx;
Settings.addLoggingBehavior(LoggingBehavior.INCLUDE_ACCESS_TOKENS);
fb_session = Session.getActiveSession();
if(fb_session == null)
fb_session = Session.openActiveSessionFromCache(ctx);
}
public void checkLogin() {
printHashKey();
if (fb_session != null && fb_session.isOpened()) {
Log.i(TAG, "Facebook Login State");
} else {
if (fb_session == null)
fb_session = new Session(ctx);
Session.setActiveSession(fb_session);
ConnectToFacebook();
Log.i(TAG, "Facebook Not login State");
}
}
public void printHashKey() {
try {
PackageInfo info = ctx.getPackageManager().getPackageInfo("com.project.hkseven",
PackageManager.GET_SIGNATURES);
for (Signature signature : info.signatures) {
MessageDigest md = MessageDigest.getInstance("SHA");
md.update(signature.toByteArray());
Log.d(TAG,
Base64.encodeToString(md.digest(), Base64.DEFAULT));
}
} catch (NameNotFoundException e) {
Log.d(TAG,""+e);
} catch (NoSuchAlgorithmException e) {
Log.d(TAG,""+e);
}
}
private void ConnectToFacebook() {
Session session = Session.getActiveSession();
if(session == null)
session = Session.openActiveSessionFromCache(ctx);
if (!session.isOpened() && !session.isClosed()) {
Log.i(TAG, "ConnectToFacebook if");
OpenRequest newSession = new Session.OpenRequest((Activity) ctx);
newSession.setCallback(callback);
session.openForRead(newSession);
try {
Session.OpenRequest request = new Session.OpenRequest((Activity) ctx);
request.setPermissions(Arrays.asList("email","publish_stream","publish_actions"));
} catch (Exception e) {
Log.d(TAG,""+e);
e.printStackTrace();
}
} else {
Log.i(TAG, "ConnectToFacebook else");
Session.openActiveSession((Activity) ctx, true, callback);
}
}
private Session.StatusCallback callback = new Session.StatusCallback() {
public void call(final Session session, final SessionState state,
final Exception exception) {
Log.d(TAG,"callback" + state);
onSessionStateChange(session, state, exception);
}
};
private void onSessionStateChange(final Session session,
SessionState state, Exception exception) {
Log.i(TAG, "state change");
if (session != null && session.isOpened()) {
Log.i(TAG, "Change to Facebook Login");
}
}
}
</code></pre>
<p>Any kind of help is appreciate , thanks for kindly help</p>
| 0non-cybersec
| Stackexchange |
Why use this comma in this return statement?. <p>I understand what this C++ function does, but I don't understand why the <code>return</code> statement is written this way:</p>
<pre><code>int intDivide(int num, int denom){
return assert(denom!=0), num/denom;
}
</code></pre>
<p>There is only one statement here, because there is only one <code>;</code> but the comma confuses me. Why not write:</p>
<pre><code>int intDivide(int num, int denom){
assert(denom!=0);
return num/denom;
}
</code></pre>
<p>Aside from "elegance" is there something to be gained in the first version?</p>
<p>What exactly is that comma doing anyway? Does it break a single statement into 2 parts such that essentially the above 2 versions are identical?</p>
| 0non-cybersec
| Stackexchange |
Does the class of Hausdorff spaces have a shared "Coordinate space"?. <p>Given topological spaces $X$ and $C$ we call $C$ a <strong>coordinate space</strong> for $X$ to mean that every open set $U \subset X$ is of the form $f^{-1}(V)$ for some open $V \subset C$ and continuous $f \colon X \to C$. </p>
<p>More generally if $\mathscr X$ is a class of spaces we call $C$ a <strong>coordinate space</strong> for $\mathscr X$ to mean it is a coordinate space for every member of $\mathscr X$.</p>
<p>Two familiar examples of coordinate spaces:</p>
<ol>
<li><p>The Seirpinski space $\{0,1\}$ with exactly one closed point and one open point is a coordinate space for the class of all topological spaces.</p></li>
<li><p>The closed unit interval is a coordinate space for the class of all completely-regular spaces. Moreover the closed unit interval is itself completely-regular.</p></li>
</ol>
<p>But what about the class of all Hausdorff spaces? Obviously the Seirpinski space is still a coordinate space here. But what if we demand the coordinate space itself be Hausdorff -- as with example 2? </p>
<p>I would reckon such a space does not exist but have no idea how to prove that?</p>
<p>Does this notion already have a name and has the question been addressed before?</p>
| 0non-cybersec
| Stackexchange |
Kraftwerk wins electronic best album at The Grammys, LCD Soundsytem win best electronic record. I mean the nominees were all pretty awful but these wouldn't have been the 2 I had picked lol. | 0non-cybersec
| Reddit |
That.Just.Happened.. | 0non-cybersec
| Reddit |
equalities of localisations by 10. <p>I denote by <span class="math-container">$R_{10}$</span> the localisation of a ring R by <span class="math-container">$10$</span>.
I see in a proof of an exercice that <span class="math-container">$3\mathbb{Z}_{10} = 15 \mathbb{Z}_{10}$</span>
but I don't understand.</p>
<p>If the statement above is true, then <span class="math-container">$\mathbb{Z}_{10} = 5 \mathbb{Z}_{10}$</span>,
but <span class="math-container">$7/10\notin 5 \mathbb{Z}_{10}$</span>, which is a contradiction?</p>
<p>Thank you for your help.</p>
| 0non-cybersec
| Stackexchange |
Difference in having * inside vs outside of brackets for NFA. <p>If you have a question saying "draw the NFA for the following language" what difference does it makes if the language is $(0^* \cup1^*)$ vs $(0 \cup1)^*$ in otherwords what difference does it make for the diagram if the star is on the inside or outside of the brackets?</p>
| 0non-cybersec
| Stackexchange |
When East meets West in Star Wars. | 0non-cybersec
| Reddit |
Moving files one directory level up fast on filezilla?. <p>I have a website on a test directory folder:</p>
<pre><code>www.example.com/tst/
</code></pre>
<p>I want to move the whole website a directory up to become live (/root folder). </p>
<p>Is there a fast way to do it rather than wait for filezilla to copy every single file which might take hours??</p>
| 0non-cybersec
| Stackexchange |
What Windows 7 Product Keys will work for Bootcamp!. <p>I am trying to setup Bootcamp, but am having a tough time. I know this question has been asked previously, but all of the answers are outdated. What SKU product key for Windows 7 is licensed for Bootcanp on 2013 MacBook Pro?</p>
<p>Keep in mind I don't have a DVD drive which makes use of any optical media problematic. </p>
| 0non-cybersec
| Stackexchange |
Touchpad failure after upgrading Ubuntu. <p>I have just bought an HP laptop pre-loaded with ubuntu. I was expecting it to be 14.04 but it was not and this was available as a downloadable upgrade.</p>
<p>Suffice to say the upgrade crashed my touchpad and it no longer works. I have tried several terminal based patches but this does not work either.</p>
<p>I can not log in to the root system to enable permissions for editing the grub file and now the I can not type in the password for the system in the terminal either.</p>
<p><strong>Has anyone got a reliable and simple patch that will get the touchpad working again?</strong></p>
| 0non-cybersec
| Stackexchange |
Our new dog! Reddit, meet Jethro.. | 0non-cybersec
| Reddit |
WakeMate Helps You Sleep Smarter With Your iPhone. | 0non-cybersec
| Reddit |
Rotation in the complex plane. <p>The function
$f(z) = \frac{(-1 + i \sqrt{3}) z + (-2 \sqrt{3} - 18i)}{2}$
represents a rotation around some complex number $c$. Find $c$.</p>
<p>Hello,
I am having some trouble trying to do this problem. I thought of the given equation as a "circle" equation, like $(x-a)^2+(y-b)^2=r^2$, but in complex form. Can anyone help me? </p>
| 0non-cybersec
| Stackexchange |
How to avoid log space error while executing SSIS packages?. <p>I'm executing ssis package with more than 70 million data's. But I'm facing issue as
log space full error message while executing the package.</p>
<p>Is there any option to resolve this issue?</p>
| 0non-cybersec
| Stackexchange |
Based on a real-life murder, "Serial" has captivated listeners around the world. But when the show’s fans started doing their own investigations on Reddit, it took the phenomenon into uncharted waters.. | 0non-cybersec
| Reddit |
How does babel implement Set / Map polyfills. <p>My question is related to computational complexity of Set / Map, Weak Set / Weak Map polyfills by Babel? Afaik there are no ES5 language features allowing to implement Set / Map directly, and so it might happen that Set / Map might use Array structure under the hood to implement lookup by object reference which would yield to O(N) lookup performance. And so the question is:</p>
<p>What is the computational complexity of Set / Map lookup operations?</p>
<p>Thank you in advance!</p>
| 0non-cybersec
| Stackexchange |
(FFMpeg) Split the video by size after conversion. <p>I have a 5,000MB long video in <em>.mp4</em> format. I would like to split the video into segments by the size. For example, I set the size to 1,024,000KB, or simply 1,024MB, because I want it to be accurate. Could conversion process from <em>.mp4</em> to (E.g <em>.vob</em>) be done while splitting process is going on? I would like to change some settings like bitrate or audio codec.<br><br>
Example:</p>
<blockquote>
<p>(Bitrate: 2600kbps, Audio codec: AAC)</p>
<blockquote>
<p>Original_video.mp4 --- <strong>5,000,000 KB</strong></p>
</blockquote>
</blockquote>
<p>Converted:</p>
<blockquote>
<p>(Bitrate: 2200kbps, Audio codec: AC3)</p>
<blockquote>
<p>First_video.vob --- <strong>1,024,000 KB</strong><br>
Second_video.vob --- <strong>1,024,000 KB</strong><br>
Thrid_video.vob --- <strong>1,024,000 KB</strong><br>
Fourth_video.vob --- <strong>1,024,000 KB</strong><br>
Fifth_video.vob --- <strong>~300,000 KB</strong><br><br>
Total --- <strong>~4,400,000GB</strong></p>
</blockquote>
</blockquote>
| 0non-cybersec
| Stackexchange |
Where I live, it is illegal to talk on the phone and drive without a hands free device, but I see cops doing it ALL THE TIME! What can the average citizen do about it?. | 0non-cybersec
| Reddit |
Patrick Beverley appears to be giving Jae Crowder advice on how to guard his former teammate, James Harden.. | 0non-cybersec
| Reddit |
Cassandra CQL query check multiple values. <p>How can I check if a non-primary key field's value is either 'A' or 'B' with a Cassandra CQL query? (I'm using Cassandra 2.0.1)</p>
<p>Here's the table definition:</p>
<pre><code>CREATE TABLE my_table (
my_field text,
my_field2 text,
PRIMARY KEY (my_field)
);
</code></pre>
<p>I tried:</p>
<pre><code>1> SELECT * FROM my_table WHERE my_field2 IN ('A', 'B');
2> SELECT * FROM my_table WHERE my_field2 = 'A' OR my_field = 'B' ;
</code></pre>
<p>The first one failed with this messeage:</p>
<pre><code>Bad Request: IN predicates on non-primary-key columns (my_field2) is not yet supported
</code></pre>
<p>The second one failed because Cassandra CQL doesn't support OR keyword</p>
<p>I couldn't get this simple query working (with a pretty straight forward way). I'm pretty frustrated dealing with CQL queries in general. Is it because Cassandra is not mature enough and has really poor support with queries, or is it me who must change the way of thinking?</p>
| 0non-cybersec
| Stackexchange |
DNS configuration for webserver path. <p>What I have is: some vservers and some domains, located at different hosters. A webserver with Port 8081 on one server. I have a path like "123.123.123.123:8081/app/"</p>
<p>What I want is: a subdomain pointing to this path. For example: app.mydoman.com. I tried it at some ways, but I´m not happy with the only solution I found: a redirection over a meta tag in html. It works but I am sure you can show me a better way to do that.</p>
<p>Thank your very much !</p>
| 0non-cybersec
| Stackexchange |
[homemade] chocolate lava cake in a sugar shell with chocolate and strawberry mousse and meringue. | 0non-cybersec
| Reddit |
Florida coronavirus cases surge past 58,700, the biggest daily gain in six weeks. | 0non-cybersec
| Reddit |
Hide a C++ code block from Intellisense. <p>In order to work around some Intellisense deficiencies in MSVC++ 2010, I would like to "hide" some code block from Intellisense, but not from the compiler. For example:</p>
<pre><code>#ifndef INTELLISENSE
void foo(); // compiled, but skipped by Intellisense
#endif
</code></pre>
<p>I'm looking for the exact name of this <code>INTELLISENSE</code> macro, if such a macro exists; or an equivalent way to do the same thing.</p>
| 0non-cybersec
| Stackexchange |
Python, How to extend Decimal class to add helpful methods. <p>I would like to extend the Decimal class to add some helpful methods to it, specially for handling money.</p>
<p>The problem when I go do this:</p>
<pre><code>from decimal import Decimal
class NewDecimal(Decimal):
def new_str(self):
return "${}".format(self)
d1 = NewDecimal(1)
print d1.new_str() # prints '$1'
d2 = NewDecimal(2)
d3 = NewDecimal(3)
d5 = d2 + d3
print d5.new_str() #exception happens here
</code></pre>
<p>It throws an exception: </p>
<pre><code>AttributeError: 'Decimal' object has no attribute 'new_str'
</code></pre>
<p>This is because of the way Decimal does arithmetic, it always returns a new Decimal object, by literally calling Decimal(<em>new value</em>) at the end of the computation.<br>
Does anyone no a workaround for this other than completely reimplementing all the arithmetic?</p>
| 0non-cybersec
| Stackexchange |
Running Docker with Apache WSGI side by side with Apache. <p>I need to run Docker side by side with Apache on one server.
Apache currently has a few virtual hosts and Docker has Apache with a specific Python version together with WSGI on it.</p>
<p>I need to set them up together without changing a lot of configuration of virtual hosts which are already there. Basically I need to forward port 80 from container as Apache virtual host or something.</p>
<p>Any ideas?</p>
| 0non-cybersec
| Stackexchange |
YSK: if a YouTube video is region-protected (i.e. blocked) in your country... add "gen" to the URL to watch it.. Lets say you really wanted to watch The Beet's smash hit, Killer Tofu. But - oh no! - the video is blocked in your country. Here's what I've been doing:
Take the original URL:
https://www.youtube.com/watch?v=p7c3bQQmwVE
Add "gen" before the "youtube" part:
https://www.genyoutube.com/watch?v=p7c3bQQmwVE
This site detects if the video is blocked before trying to download it. If it is, a different server is used from a country where the video isn't blocked. Pretty cool. | 0non-cybersec
| Reddit |
A Bee's life cycle.. | 0non-cybersec
| Reddit |
how auto_increment work in mysql. <p>im confused here , i create a table and have 2 columns id and name.</p>
<p>Now id is primary key , not null and auto increment.</p>
<p>Suppose i fire: <code>insert into table (name) values('test');</code></p>
<p>this will give me: </p>
<pre><code>1 | test
</code></pre>
<p>Now if i fire : <code>alter table table_name auto_increment = 5;</code></p>
<p>this will populate id with 5 on next insert. </p>
<p>now if i delete value of id =5 and again re-insert : <code>insert into table (name) values ('test2');</code></p>
<p>it gives me : </p>
<pre><code> 6 | test2
</code></pre>
<p>why it doesn't give me 5 again?</p>
<p>Also is it not possible that we can't reset the existing auto_increment values to desired one in MySql?</p>
| 0non-cybersec
| Stackexchange |
How can I use ContentChild/Children in nested <ng-content>. <p>I am successfully using <code><ng-content></ng-content></code> to show a component in a grandchild as answered here: <a href="https://stackoverflow.com/questions/40045138/father-to-son-component-tree-with-guest-component">Father-to-son component tree with guest component</a>, but now I would like to use <code>@ContentChild</code> in that grandchild to access the passed in content, but I can't seem to get anything working.</p>
<p>Here is my attempt using a selector and <code>@ContentChild</code> in a stackBlitz:
<a href="https://stackblitz.com/edit/angular-dpu4pm" rel="nofollow noreferrer">https://stackblitz.com/edit/angular-dpu4pm</a> . No matter what I do, the <code>@ContentChild</code> is always undefined in TheChild component, but works in TheParent component.</p>
<pre><code>@Component({
selector: 'spinner',
template: `
spinner
`,
})
@Component({
selector: 'my-app',
template: `
works <the-parent><spinner #spin></spinner></the-parent>
`,
})
@Component({
selector: 'the-parent',
template: 'this is parent <the-child><ng-content #content></ng-content></the-child>'
})
export class TheParent implements AfterViewInit{
@ContentChild('spin') spin;
ngAfterViewInit() {
alert('parents spin is '+typeof this.spin); //object
}
}
@Component({
selector: 'the-child',
template: 'this is child <ng-content></ng-content>'
})
export class TheChild implements AfterViewInit{
@ContentChild('spin') spin;
@ContentChild('content') content;
ngAfterViewInit() {
alert('childs spin is '+typeof this.spin); //undefined
alert('childs content is '+typeof this.content); //undefined
}
}
</code></pre>
<p>Any advice on how to make this work, or any other approach to access the grandparent from the grandchild would be much appreciated.</p>
| 0non-cybersec
| Stackexchange |
Java: error: release version 13 not supported. <p>I'm very new to coding and don't understand much yet. I'm running a small program that should give the output Hello World!
I'm getting an error java.release version 13 not supported.
Anyone that can explain how to fix this please?</p>
| 0non-cybersec
| Stackexchange |
Host based firewall, looking for input on config. I have a setup which im looking to get some opinions on how safe it is.
Im natting my public IP to a local IP using an airport extreme.
In the localhost, I have a Symantec AV with firewall installed. Attached are my rules. only one port is open for Media Streaming purposes, I do believe there is no risk associated with it.
http://imgur.com/u7Vexgr
Is this how you'd configure your firewall?
Am I missing something to make it more secure?
Is there a risk for the other IP's within the local network?
| 1cybersec
| Reddit |
not get option for "address of network interface you want open vpn listening to" while configuring open vpn. <p>by using this command <code>$ sudo ./openvpn-install.sh</code>
first option to configure ip address of network interface for open vpn is not offered to me. i directly start below this option.
why this option is not shown to me?
<a href="https://i.stack.imgur.com/5ENhR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5ENhR.png" alt="enter image description here"></a></p>
| 0non-cybersec
| Stackexchange |
amd graphics card driver for R5 m330. <p>I recently purchased an Hp laptop that came with 2 Gb dedicated AMD Radeon R5 Series M330 Graphics .Currently i am running ubuntu 15.04 on my laptop.
I checked for the graphics driver in Hp's website as well as in the AMD's website.I even checked the same in software and updates .But i didn't find any.
How can i download the graphics driver ?</p>
| 0non-cybersec
| Stackexchange |
Whats something you don't have an opinion about?. You're indifferent or undecided. | 0non-cybersec
| Reddit |
How to Changing Windows 8.1' elements colors to get better visualization?. <p>A photo is worth a thousand words:
<a href="https://i.stack.imgur.com/kSAp9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kSAp9.png" alt="enter image description here"></a></p>
<p>This is a Windows Explorer's file listing detail view. I can't view the end of each column because the line is almost invisible in my notebook.
Since I'm a developer, in my own programs I changed that color to a darker gray and my eyes (and the customer's) thanked.</p>
<p>Where I can find the app to change those Windows default colors to something less eye demanding? </p>
<p>NOTE: I would like if it is possible with bare Windows, but 3rd party apps are ok.</p>
| 0non-cybersec
| Stackexchange |
Those constrictors are a pain. | 0non-cybersec
| Reddit |
There was an attempt to be funny. | 0non-cybersec
| Reddit |
Could not parse Master URL: 'spark:http://localhost:18080'. <p>When I'm trying to run my code it throws this <code>Exception</code>:</p>
<pre><code>Exception in thread "main" org.apache.spark.SparkException: Could not parse Master URL:spark:http://localhost:18080
</code></pre>
<p>This is my code:</p>
<pre><code>SparkConf conf = new SparkConf().setAppName("App_Name").setMaster("spark:http://localhost:18080").set("spark.ui.port","18080");
JavaStreamingContext ssc = new JavaStreamingContext(sc, new Duration(1000));
String[] filet=new String[]{"Obama","ISI"};
JavaReceiverInputDStream<Status> reciverStream=TwitterUtils.createStream(ssc,filet);
JavaDStream<String> statuses = reciverStream.map(new Function<Status, String>() {
public String call(Status status) { return status.getText(); }
}
);
ssc.start();
ssc.awaitTermination();}}
</code></pre>
<p>Any idea how can I fix this problem?</p>
| 0non-cybersec
| Stackexchange |
If a theory is incomplete, does that mean there is a formula which is undecidable in that theory?. <p>If a theory is incomplete (meaning there exists a formula <span class="math-container">$A$</span> and <span class="math-container">$\neg A$</span> which neither of them is logically entailed from axioms of that theory), does that mean there exist a formula which is not decidable (meaning <span class="math-container">$A$</span> nor <span class="math-container">$\neg A$</span> is provable) from the axioms of that theory?</p>
<p>Or do I misunderstand the definition of a formula being undecidable from a set of axioms of a theory?</p>
| 0non-cybersec
| Stackexchange |
Olympics-Retreat To Your London Outskirts. | 0non-cybersec
| Reddit |
Is it really so much to ask?. My husband doesn't make a whole lot of extra cash. But, really, all I want is to go on one(1) date a month. He calls this a waste of money because it only lasts a few hours. He's very financially minded (because of the lack of extra cash), but why does he make me feel like this is so much to ask for? He tells me, "We can just have dinner at home and I'll download a movie." He doesn't understand that there's a difference between doing what we do EVERY weekend (I cook almost every dinner of the week from scratch) and having a nice romantic evening out.
On top of this, he goes about buying extra things that he wants and says it's okay because the enjoyment "lasts longer".
I just want some goddamn romance. I feel like it seems that now that we're married, he doesn't need to make the effort to make me feel appreciated in this way anymore. We have talked about it a LOT. And I don't mean to say that I'm not appreciated--I know that I am--I would just like a special night out once a month, and not once every 6 months, or only if his parents/friends are there too, which is how it's been. It's not like I'm asking for 5 star restaurants, either... | 0non-cybersec
| Reddit |
OpenSSL: Generate an SSL certificate private key and SHA-2 certificate request. | 1cybersec
| Reddit |
Introducing Fontus: The Drink Bottle That Conjures Water Out Of Thin Air. | 0non-cybersec
| Reddit |
Everyone's favorite scene from the movie Unbroken (2014). | 0non-cybersec
| Reddit |
Probability for getting $n$ black balls. <blockquote>
<p>In a jar there are $ 5 $ white and $ 7 $ black balls. each time we choose a ball, it is returned with addition of two balls in the same color.Find the probability that the n first chosen balls are black.</p>
</blockquote>
<p>For 2 balls the probability is $\dfrac{7\cdot 9}{12 \cdot 14}=\dfrac 3 8$, </p>
<p>For 3 balls the probability is $\dfrac{7 \cdot 9 \cdot 11}{12 \cdot 14 \cdot 16}=\dfrac {33} {128}$</p>
<p>$\vdots$</p>
<p>For $n$ balls the probability is defined to be $\frac{\displaystyle\prod_{k=1}^{n}(5+2k)}{\displaystyle\prod_{j=1}^{n}(10+2j)}$.</p>
<p>Even though on first look it seems a final solution, when is n is divided by 4 some elements from the counter and the denominator are reducible. My question is if we can either determine which elements are reducible or simplify the result to a more "friendly" one. </p>
| 0non-cybersec
| Stackexchange |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
My radio flashes red and blue every 5 minutes, seeing it in my peripheral vision makes me think I’m being pulled over or there’s an emergency vehicle near me. | 0non-cybersec
| Reddit |
Gradient of distance vector length. <p>Suppose that there is a surface described by:</p>
<p>$\phi(x,y,z)=c$</p>
<p>And suppose that there is a fixed point A:<br>
$\vec{r_A}=(x_A,y_A,z_A)$</p>
<p>Let $\vec r$ be position vector of any point on the surface so that:</p>
<p>$R=|\vec r-\vec r_A|$ </p>
<p>Show that $\nabla R$ is a unit vector whose direction is along $\vec r-\vec r_A$</p>
<p>I tried to write $z=f(x,y)$ and then calculate what is $\nabla R$ but I got that it has no $z$ component which leads to a contradiction...</p>
| 0non-cybersec
| Stackexchange |
Call requires api level in non android modules. <p>I'm getting <code>call requires api level X</code> in non-android modules when using Java 8 features.
How to remove it.
Suppressing with annotation doesn't seem the right way to me</p>
| 0non-cybersec
| Stackexchange |
"Segmentation fault" when using phpseclib. <p>I downloaded <strong>phpseclib-0.3.10</strong> from <a href="http://phpseclib.sourceforge.net/" rel="nofollow">http://phpseclib.sourceforge.net/</a></p>
<p>My php Version : <strong>PHP 5.2.4</strong></p>
<p>OS : CentOS release 6.6</p>
<p>When I run following I am getting "Segmentation fault" at this line <code>$ssh->login('username', 'password')</code></p>
<pre><code><?php
set_include_path(get_include_path() . PATH_SEPARATOR . 'phpseclib');
include('Net/SSH2.php');
$ssh=new Net_SSH2('servername');
if (!$ssh->login('username', 'password')) {
exit('Login Failed');
}
echo $ssh->exec('pwd');
?>
</code></pre>
<p>I am unable find the reason for this issue. Could you please help me to find the reason for this.</p>
| 0non-cybersec
| Stackexchange |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.