text
stringlengths 3
1.74M
| label
class label 2
classes | source
stringclasses 3
values |
---|---|---|
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 |
[NAW] For anybody that thinks abortion is the easy way out.. My friend is going through one right now. It's been four hours since it's begun and she's screaming in pain. She's vomiting from the pain. She's begging for it to stop. She's pleading for it to stop.
Some women don't have the resources to carry to full term. Some women don't have a choice to carry full term. Some women don't have anybody to help them. To support them. To love them.
For anybody that thinks this is the easy way out, nothing about this is easy. You might think this is a sin. You might think this is wrong. You might think it's her fault for having sex in the first place. She was on birth control. She used a condom. She did everything she could to prevent this, but it still happened. Shame on you for making women feel guilty for having sex. Shame on you for making women feel guilty about not being able to have a baby. Shame on you for making women feel guilty for choosing what's best for us and the fetus. Shame on you for thinking this is easy. You don't understand the pain. You don't understand the trauma. You don't understand, so don't try to tell us what we're allowed to do with our body.
Nothing about this is easy. | 0non-cybersec
| Reddit |
Protecting Truth from Willful Ignorance and Deceit. | 0non-cybersec
| Reddit |
How do I setup my own home to pen test? What laptop is best for it <$300-400. I recently bought a vps to play for fun in hosting my own cloud. Then I had to go through so many things about securing my server. This is what got me into thinking of going into more of the field of pen testing and securing my own home router and network. It feels like a interesting hobby and good for myself in learning networking and etc.
I would like to buy a laptop dedicated to pen testing don't mind buying refurbished/used/and etc. I just don't know how good of a specs you would need for a laptop just to do pen testing. Also which brands/models would be good for a pen testing laptop for kali/backtrack/ and etc. If there's any sales atm for these laptops. Whats the opinion of chromebooks for pen testing?
I plan to mainly crack into my own personal router and maybe using one of my computers as a server and try to get into it. Im thinking of trying to exploit my own site as well. But im unsure of if thats legal to do pen testing on your own site hosted on a shared hosting or vps so i rather not risk it. If anything ill just host it on my raspberry pi or make a server at home to host it wont be on all the time just when i want to do pen testing. I do also have alot of spare routers lying around as well. At the end of all of this i just want to learn more about securing my own stuff and maybe with my friends permission i would like to offer to secure their routers and etc as well. I also heard its bad to have kali as your main os?
**What laptop brands/model are you using right now for pen testing and what limitations have you been hitting with it**
**This is what i currently own**
D-link routers
Couple of computers
raspberry pi (too slow to use as my main for pen testing i would like to set up
something on it and try to get into it)
TP-link wireless adapter
Sandisk ssd 32gb i think.
1tb hdd unused.
| 1cybersec
| Reddit |
how to get an object from a closure?. <p>How to get an object from a closure, that's confusion with me, here is the question:</p>
<pre class="lang-js prettyprint-override"><code>var o = function () {
var person = {
name: 'jonathan',
age: 24
}
return {
run: function (key) {
return person[key]
}
}
}
</code></pre>
<p><strong>question:</strong> How do i get original <code>person</code> object without changing the source code.</p>
| 0non-cybersec
| Stackexchange |
Can I offer you a nice joint in these trying times?. | 0non-cybersec
| Reddit |
How can I learn about typography, fonts, glyphs, etc.?. <p>I know so little about this that I'm having trouble formulating the question.</p>
<p>Apparently due to technical limitations, <a href="http://en.wikipedia.org/wiki/Nasta%CA%BFl%C4%ABq_script" rel="nofollow">nastaleeq</a> style of writing <a href="http://en.wikipedia.org/wiki/Urdu" rel="nofollow">Urdu</a> is very difficult, perhaps impossible, given current standards used on the web. I'd like to do a deep dive into why this is so (the technical aspects, at least).</p>
<p>My, very rough, understanding is this:</p>
<p>Unicode is the standard right now, but it doesn't define how characters look, it only define the names of characters and a numbering system to represent them.</p>
<p>"Fonts," such as Halvetica or Times New Roman, actually define the look of characters.</p>
<p>What is True Type then, and how is it different from Open Type or Postscript or LaTex?</p>
<p>If a language requires that shapes of characters, <em>and how the connect to each other</em> (think cursive), change, based on their location in text...how is that handled? If Unicode is only a representation system and fonts only concern themselves with single characters, where do these location based algorithms go?</p>
<p>Is the current set of standards too limited to handle complex cursive style typography? If so, can HTML's canvas be used to create an alternative/experimental "font system?" If I do need to "roll my own" is Knuth's work on digital typography still relevant or are there more modern references?</p>
| 0non-cybersec
| Stackexchange |
Windows 8: yes or no?. What's your oppinion? should we upgrade? | 0non-cybersec
| Reddit |
Heirlooms are the best.... | 0non-cybersec
| Reddit |
The Life of A Dispatcher - Patrick. Personally, I’ve always had a deep routed fear of home invasions and it has everything to do with the fact that I was the victim of one when I was 12 years old. I don't talk about it much because it wasn’t tragic whatsoever, but nonetheless, it was still deeply terrifying to go through alone. I remember dialing 911 for my first time, and in the midst of all potential danger, the dispatcher kept me relatively calm and helped me get through, what at the time, seemed like my impending doom. That day changed my life - I don't think I would have ever thought about becoming part of law enforcement without it happening.
Home invasions are possibly some of the more intense calls that I get as a dispatcher. I think it’s because I never truly know how it’ll play out or what the outcome will be. According to the United States Department of Justice, 38% of assaults and 60% of rapes occur during a home invasion. It is also said that there are about 32,000 people that are killed during home invasions each year in the U.S. And in the northern parts of North America, in Canada, the percentages of victims that are either seriously injured or killed make up 35%. Most people who invade a home are not looking to hurt someone, but in the midst of getting caught feel like they have no other choice and resort to violence. However, sometimes that isn’t the case. Sometimes people have the intent to rape, assault and/or kill someone.
For confidentiality reasons, all names have been made up.
*****
**PATRICK**
This call came in around 9 pm.
*“911, what’s your emergency?”*
*“I think someone is watching me or following me. I think they might be in the house.”* A young man’s voice came over the line, he sounded scared.
*“Okay, where are you right now? Are you in a safe place?”*
*“I’m at my friend Dylan’s house, he left to go to the corner store but I don’t know it’s been a little longer than usual. It doesn’t feel right.”*
*“Do you know Dylan’s address? What’s your name?”*
*“My name’s Patrick and yeah, it’s (address). I’m freaking out, man.”* He was panting a little.
*“You said that you think someone might be in the house, correct? Are you in a safe place? Can you give me more details?”* I sent out the dispatch.
*“Yeah, I’m in the basement now. I closed the door but I think I can hear someone walking around, I don’t know I might just be tripping out – but like yesterday I noticed this car outside my apartment and it’s been everywhere since. I went to class and saw it in the parking lot on my way in this morning. I tried to tell Dylan about it but he told me that I’m a pussy. I – I don’t know, it feels weird. Like the car is outside Dylan’s right now. It’s weird, right?”* He was talking fast, he was obviously freaked out.
*“It does sound a little suspicious. I’ve sent the dispatch, someone should be there shortly. Did you get a chance to look at their license plate? If the car is gone when the police arrive, they can run the plates.”*
*“No – but I can go out and look.”*
*“No, that’s not a good idea. Stay where you are. What does the car look like?”*
*“It’s a black Ford Focus, the windows are tinted and everything.”* His breathing was ragged as he spoke.
*“Okay, I’m just adding to the dispatch and letting them know to look out for a black Ford Focus. Can you still hear someone upstairs?”*
*“No – hold on.”* I could hear the phone being handled and them he came back over the line. *“Dylan just texted me, he’s gone to the grocery store to get munchies. Fuck – what do I do?”*
*“Can you ask him if there’s a possibility that anyone else could be at his house? His parents, sibling, a girlfriend or something?”*
*“They’re gone on vacation and he had to work, that’s why we’re crashing here. He’s got cable – I don’t. He doesn’t have a girlfriend either so I think whoever is following me is in the house.”*
*“Okay, is the door locked to the basement?”* I was trying to make him as safe as possible.
*“Yeah, I locked it when Dylan left. I’m not just paranoid, right?”*
*“No, I don’t think so. Just to be safe, I want you to stay in the basement. Text Dylan and let him know what’s going on so that he doesn’t walk into a potentially harmful situation.”* The phone shuffled around a little and he came back over the line.
*“Someone’s trying to get in, I can hear them trying the doorknob.”* His voice dropped to a small whisper.
*“Patrick, is there somewhere you can hide?”*
*“There’s a bathroom?”*
*“Okay, go in there and lock the door. I want you to stay there until the police arrive.”* We sat on the phone for about a minute in silence and then all of a sudden, the fire alarm went off.
*“Is that the fire alarm?”* I asked before continuing *“I want you to slowly exit the bathroom and I want you to tell me if you smell or see any smoke.”*
*“Yeah, the house is kind of foggy. Did someone start a fire in the house? What do I do?”* He started to panic.
*“Are there any windows in the basement?”*
*“No.”* He started to hyperventilate.
*“Okay, so you’ll have to go up through the basement door and to the nearest exit. But first, I want you to go into the bathroom.”* I paused and then continued. *“Do you see any towels?”* He agreed “I want you to soak it in cold water and put it over yourself and over your mouth and nose. It’ll help you to breathe, can you do that?”* I heard him turn on the water and soak some towels as quickly as he could possibly do, then I heard him running up the stairs.
*“It’s locked!”* He yelled and he banged against the door. *“The smoke’s really bad up here.”* He coughed through his sentence.
*“Try your best to break through the door, do you know if there’s another way out of the house from the basement?”*
*“I can’t break the fucking door, I think there’s something in front of it. What the fuck do I do?”* He started to cry.
*“Patrick, go down to where you were in the basement, the smoke won’t be as bad down there. Do you know if there’s any other way out of the house or any other way upstairs?”*
*“No – no there’s no way out of here. There’s a laundry shoot, but like I don’t know if I’ll be able to fit through the hole.”* He was still sobbing.
*“I want you to try to squeeze through it, unless you think you’ll get stuck. We’re going to try to get you out of this house, okay?”* I tried to remain calm, as I myself was feeling the pressure of the situation. He mumbled his way over to where the laundry shoot was and started to move some items around.
*“Okay, I made something to stand on.”* I could hear him trying to wiggle his way through the shoot when there was some commotion and then a thud. The phone had fallen and the impact of it hitting the ground disconnected the call.
The following morning I was off, I heard the news about the fire. The news read something along the lines of “Family home gets torched as family is away on vacation.” In the details they mentioned that a boy had been stuck in the basement and they had found him unconscious and badly burned. He was sent to the hospital for immediate care.
Upon further investigation, they found out that the fire was set intentionally and that Patrick had been trapped in the basement on purpose. Patrick himself had third degree burns to over 50% of his body and he was put into an induced coma for recovery. After spending 60 days in a coma, the doctors decided to wake him. He was awake for nearly a week before he suffered a stroke and died. He was only 21 years old. Police still don’t know who set the fire and why, but I’m positive it had to do with the car that he said was following him. | 0non-cybersec
| Reddit |
5e Favorite Non Combat Encounters?. So I've just starting DM'ing and have most of my stuff in order. I have my party in an open world where they can go where they want and am in the process of getting the map I made sorted out, i.e., what is going to be in this ruin/dungeon/etc...
Giving each place a unique combat encounter would be fairly easy, but I also don't want every place to necessitate combat. So my question to you guys is this: What have been your favorite non combat encounters? So puzzles, roleplay encounter, stuff like that.
Thanks for your feedback! | 0non-cybersec
| Reddit |
Bill Gates said in a recent keynote address that he’s confident the world will develop cancer therapies that can “control all infectious diseases.” Together with his wife Melinda, the couple has invested billions in companies over the last decade to develop such therapies.. | 0non-cybersec
| Reddit |
Combine multiple disks to one 'big' disk on my external HDD. <p>I run into a problem with my external HDD, i used it for backups but when i reinstalled windows (and forgot to remove the HDD) my HDD got wiped. After the wipe suddenly my HDD split itself into multiple Disks.</p>
<p>I would like to bring it back to one disk, just like it was when i bought it.</p>
<p>Can anyone help me out, or give me some tips on how to achieve this?</p>
<p>Here is an image of the partitions, if you need any extra details of information let me know and i will post it!</p>
<p>Disk management:</p>
<p><a href="https://i.stack.imgur.com/XGryJ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XGryJ.jpg" alt="enter image description here"></a></p>
| 0non-cybersec
| Stackexchange |
Mapping a Dataframe into another using conditionals. <p>I would like to map one dataframe into another, though it is not so simple because I am using 2 conditions to execute the mapping - I will explain them below. Basically, what I am trying to do is given two dataframes, df1 and df2, such that:</p>
<p>df1:</p>
<pre><code>A B Type
Heart Spades Boo
Heart Clubs Fog
Spades Diamonds Bler
</code></pre>
<p>df2:</p>
<pre><code>A B Boo Fog Bler
Heart Spades True True True
Spades Diamonds True False True
Heart Spades True True False
</code></pre>
<p>I could map the values contained in the columns 'Boo','Fog,'Bler' into a new column in df1 called 'Verification', resulting in:</p>
<pre><code>A B Type Verification
Heart Spades Boo True
Heart Clubs Fog
Spades Diamonds Bler True
</code></pre>
<p>Then, to do this process I have 2 conditions that need to be filled: the values in df1 and the values in df2 for the columns A and B must be equal - as they were acting as keys, and the mapping should take the values in some column of df2 based on the value in the type of df1. I am having two difficulties:</p>
<ol>
<li>The mapping requires two columns so I am not able to figure out a way to use pandas.series.map; furthermore I was not able to apply Dataframe.loc[conditions] in this context so that the conditions compare df1 and df2.</li>
<li>The example above is quite short, but the data set that I am working on has several combinations from the values of A and B, hence is unreasonable to write a function of association between A,B and value to each type.</li>
</ol>
<p>Do you have any suggestions?</p>
| 0non-cybersec
| Stackexchange |
Python: is it possible to link two variable belonging to two different classes?. <p>I would like to connect two variables totwo different classes but I don't know if what I'm trying to do is possible or not.</p>
<p>for instance, if I have those two classes:</p>
<pre><code>class one():
def __init__(self):
self.a = 0
def compute(self):
self.a = self.a + 1
class two():
def __init__(self):
self.a = 0
self.C_one = one()
self.link()
def link(self):
self.a = self.C_one.a
def compute(self):
self.C_one.compute()
print('C_one a=',self.C_one.a )
print('C_two a=',self.a )
C_two = two()
for i in range(5):
C_two.compute()
</code></pre>
<p>In the class <code>two</code> I would like connect the variable <code>a</code> with the variable <code>a</code> of class <code>one</code>, so I don't have to explicitly call <code>self.a = self.C_one.a</code> each time I execute <code>C_two.compute</code></p>
<p>The code in example give me this:</p>
<pre><code>C_one a= 1
C_two a= 0
C_one a= 2
C_two a= 0
C_one a= 3
C_two a= 0
C_one a= 4
C_two a= 0
C_one a= 5
C_two a= 0
</code></pre>
<p>Which is not the result I expect.
Somebody know if I can do that in python?</p>
<h2>update</h2>
<p>From the example below</p>
<pre><code>class one():
def __init__(self):
self.a = 0
def compute(self):
self.a = self.a + 1
class two():
def __init__(self):
self.a = 0
class three():
def __init__(self):
self.C_one = one()
self.C_two = two()
self.b = 0
def compute(self):
self.C_one.compute()
#self.C_two.a = self.C_one.a
print('C_one a=',self.C_one.a )
print('C_two a=',self.C_two.a )
C_three = three()
for i in range(5):
C_three.compute()
</code></pre>
<p>is it possible to use the answer of deceze and replace the commented line <code>#self.C_two.a = self.C_one.a</code>with a property ? Like that classes <code>one</code> and <code>two</code> are linked in the class <code>three</code>.</p>
<h2>answer from deceze</h2>
<pre><code>class one():
def __init__(self):
self.a = 0
def compute(self):
self.a = self.a + 1
class two():
def __init__(self,one):
self.C_one = one
@property
def a(self):
return self.C_one.a
class three():
def __init__(self):
self.C_one = one()
self.C_two = two(self.C_one)
self.b = 0
def compute(self):
self.C_one.compute()
print('C_one a=',self.C_one.a )
print('C_two a=',self.C_two.a )
C_three = three()
for i in range(5):
C_three.compute()
</code></pre>
| 0non-cybersec
| Stackexchange |
"Extremely average sized penis". | 0non-cybersec
| Reddit |
George H.W. Bush taking his very first steps towards global domination in 1925. | 0non-cybersec
| Reddit |
iTunes keeps saying there is not enough room when transferring music. <p>I dragged a folder containing lots of music into my iPod touch in iTunes. A message pops up saying there isn't enough room and it will try to transfer as many songs as possible. I click the button to dismiss the message, and then it will start transferring songs. After transferring a few songs the message pops up again. This keeps on repeating. I should only have to see this message once, right? Why does it keep coming up? What is the solution?</p>
| 0non-cybersec
| Stackexchange |
Is it possible to find $a$, $b$ such that $(a,b] \cap \mathbb{Q} = \emptyset$?. <p>Is it possible to find $a$, $b$ $\in \mathbb{R}$ satisfying $- \infty \leq a < b \leq \infty$ such that $(a,b] \cap \mathbb{Q} = \emptyset$?</p>
<p>I need this result for a proof I am doing...</p>
| 0non-cybersec
| Stackexchange |
🔥 Thirsty Baby Armadillo having a quick shower 🔥. | 0non-cybersec
| Reddit |
One more reason to get your ass to the gym!. | 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 |
Perl Program to efficiently process 500,000 small files in a directory. <p>I am processing a large directory every night. It accumulates around 1 million files each night, half of which are <code>.txt</code> files that I need to move to a different directory according to their contents.</p>
<p>Each <code>.txt</code> file is pipe-delimited and contains only 20 records. Record 6 is the one that contains the information I need to determine which directory to move the file to.</p>
<p>Example Record: </p>
<pre><code>A|CHNL_ID|4
</code></pre>
<p>In this case the file would be moved to <code>/out/4</code>.</p>
<p>This script is processing at a rate of 80,000 files per hour.</p>
<p>Are there any recommendations on how I could speed this up?</p>
<pre><code>opendir(DIR, $dir) or die "$!\n";
while ( defined( my $txtFile = readdir DIR ) ) {
next if( $txtFile !~ /.txt$/ );
$cnt++;
local $/;
open my $fh, '<', $txtFile or die $!, $/;
my $data = <$fh>;
my ($channel) = $data =~ /A\|CHNL_ID\|(\d+)/i;
close($fh);
move ($txtFile, "$outDir/$channel") or die $!, $/;
}
closedir(DIR);
</code></pre>
| 0non-cybersec
| Stackexchange |
How to correctly render coincident polygons in OpenGL (ES). <p>I understand that by setting the depth function in OpenGL ES one can control how overlapping geometries are rendered in a 3D scene. I use <code>gl.depthFunc(gl.LEQUAL)</code> (webgl) in my code.</p>
<p>However when two sets of polygons are coincident and are of different color, the resulting surface turns out to be an arbitrary mixed pattern of the two colors (which changes as the camera location changes, hence leads to flickering). Take a look at this image:</p>
<p><img src="https://i.stack.imgur.com/WN1xg.png" alt="enter image description here"></p>
<p>How can I fix this? I have tried different depthFunc values, but none of them solves this problem. I would like the coincident polygons to have single color, it doesn't matter which one.</p>
| 0non-cybersec
| Stackexchange |
Former CIA agent; "If you bloggers self organize and attach yourself like leeches to specific issues, corporations, organizations, challenges, whatever, you will be the intelligence minutemen of this century, the power is in your hands.". | 0non-cybersec
| Reddit |
Hoodrich Pablo Juan - We Don't Luv Em. | 0non-cybersec
| Reddit |
Code is Not Written in a Vacuum. | 0non-cybersec
| Reddit |
How can I console.log the value of a observable?. <p>I am using angular 2 and RxJS, and I am wondering how i can do the following:</p>
<p>In my component, I have defined the following:</p>
<p><code>count: Observable<number>;</code></p>
<p>In my component's constructor, I am doing the following:</p>
<pre><code>constructor(
private store: Store<any>
) {
this.count = this.store.select<any>(state => state.count);
}
</code></pre>
<p>How can I view the current value for the count? Right now if I <code>console.log(this.count)</code> I get a big object to log. If I want to view just the value for this.count, how can I do that?</p>
| 0non-cybersec
| Stackexchange |
How to make scrollbars wider in Visual Studio Code?. <p>Is there a way to make Visual Studio Code's window scrollbars wider? I'm finding they're a few pixels too skinny compared to other apps and my mouse often misses the precise location that I'm trying to click.</p>
| 0non-cybersec
| Stackexchange |
Just something that occurred to me in the shower.... | 0non-cybersec
| Reddit |
If the answer is 7, what is the question?. | 0non-cybersec
| Reddit |
*Nervous Laugh*. | 0non-cybersec
| Reddit |
Three photographs showing the reaction of a 16-year-old German Soldier after being captured by U.S. forces, Berlin, 1945 [1247x682]. | 0non-cybersec
| Reddit |
XOR in Swift 5?. <p>I'm trying to do an XOR operation in Swift 5. The documentation does not seem to mention explicitly doing it with two boolean values here:</p>
<p><a href="https://docs.swift.org/swift-book/LanguageGuide/AdvancedOperators.html" rel="noreferrer">https://docs.swift.org/swift-book/LanguageGuide/AdvancedOperators.html</a></p>
<p>Is this possible? It says to use the <code>^</code> operation but I get the error when trying: </p>
<pre><code> card != nil ^ appointment.instructor == nil
</code></pre>
<blockquote>
<p>ERROR Adjacent operators are in non-associative precedence group 'ComparisonPrecedence' </p>
</blockquote>
| 0non-cybersec
| Stackexchange |
Sometimes the spells in Skyrim do weird things.... | 0non-cybersec
| Reddit |
control of an integral using maximal function. <p>Let $I$ be a compact interval with center $c(I)$ and N be a large positive integer. It seems to me that there exists a constant $C$ such that for any good function $f$ (e.g. Schwartz function) we have
$$
\frac{1}{|I|}\int\frac{|f(x)|}{(1+\frac{|x-c(I)|}{|I|})^N} dx\le C\inf_{x\in I}Mf(x)
,$$ where $Mf$ is the Hardy-Littlewood maximal function of $f$.</p>
<p>I was unable to prove it. I know that $\int\frac{1}{(1+\frac{|x-c(I)|}{|I|})^N} dx$ is almost the same as $\int_I\frac{1}{(1+\frac{|x-c(I)|}{|I|})^N} dx$ because of the fast decay outside $I$. But when there is an $f(x)$ on the top, I'm worried about the situation $f$ is supported far away from $I$. Any help is appreciated. </p>
| 0non-cybersec
| Stackexchange |
Check if value exists before copy-paste. <p>Can someone help please as I am new to Google Scripts.</p>
<p>I have this simple code that copies values from one sheet to another</p>
<pre><code>function copyrevision() {
var ss = SpreadsheetApp.getActiveSpreadsheet ();
var destSheet = ss.getSheetByName("Fallas Tecnicas");
//DATE
var source = ss.getRange ("D4");
var destRange = destSheet.getRange(destSheet.getLastRow()+1,1);
source.copyTo (destRange, {contentsOnly: true});
//REPORT NUMBER
var source2 = ss.getRange ("C4");
var destRange = destSheet.getRange(destSheet.getLastRow(),2);
source2.copyTo (destRange, {contentsOnly: true});
//OBSERVACION
var source6 = ss.getRange ("E49");
var destRange = destSheet.getRange(destSheet.getLastRow(),6);
source6.copyTo (destRange, {contentsOnly: true});
}
</code></pre>
<p>I need this operation to be done only if the report number value does not exist in the column 2 of destination sheet.</p>
<p>How can it be done?</p>
| 0non-cybersec
| Stackexchange |
Self Portrait, Charcoal, Graphite, and Acrylic, 18x24". | 0non-cybersec
| Reddit |
Inserting an HTTP stream into a AVMutableComposition. <p>I am trying to insert an AVURLAsset of a AVPlayerItem that states <code>AVPlayerItemStatusReadyToPlay</code> into an <code>AVMutableComposition</code> like this:</p>
<pre><code>composition_ = [[AVMutableComposition alloc] init];
insertionPoint_ = kCMTimeZero;
item_ = [[AVPlayerItem playerItemWithURL:[NSURL URLWithString:@"http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8"]] retain];
[item_ addObserver:self forKeyPath:@"status" options:0 context:nil];
player_ = [[AVPlayer playerWithPlayerItem:item_] retain];
[player_ addObserver:self forKeyPath:@"currentItem.duration" options:0 context:nil];
/**
* append a player-item to our composition
*/
- (void)addItemToComposition:(AVPlayerItem *)item
{
NSError *error = nil;
VTRACE(@"item duration: %g", CMTimeGetSeconds(item.duration));
if (![composition_ insertTimeRange:CMTimeRangeMake(kCMTimeZero, item.duration)
ofAsset:item.asset
atTime:insertionPoint_
error:&error])
{
VTRACE(@"error: %@", error);
}
}
/**
* simplified value observer callback
*/
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
{
if ([object isKindOfClass:[AVPlayerItem class]])
{
AVPlayerItem *item = (AVPlayerItem *)object;
//playerItem status value changed?
if ([keyPath isEqualToString:@"status"])
{ //yes->
switch(item.status)
{
case AVPlayerItemStatusFailed:
VTRACE(@"player item status failed");
break;
case AVPlayerItemStatusReadyToPlay:
VTRACE(@"player item status is ready to play");
[self addItemToComposition:player_.currentItem];
break;
case AVPlayerItemStatusUnknown:
VTRACE(@"player item status is unknown");
break;
}
}
}
else if([object isKindOfClass:[AVPlayer class]])
{
if ([keyPath isEqualToString:@"currentItem.duration"])
{ //yes->
VTRACE(@"player item duration available");
}
}
}
</code></pre>
<p>Unfortunately, all I get is this lousy error message from the attempt to invoke <code>AVMutableComposition insertTimeRange:ofAsset:atTime:error:</code></p>
<blockquote>
<p>2011-11-29 22:24:59.446 XXX[13626:10703] -[XXX addItemToComposition:]
-- error: Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo=0x7699f30
{NSLocalizedFailureReason=An unknown error occurred (-12780),
NSUnderlyingError=0xd124dd0 "The operation couldn’t be completed.
(OSStatus error -12780.)", NSLocalizedDescription=The operation could
not be completed}</p>
</blockquote>
<p>What am I missing?</p>
<p>Why is it not possible to insert the item into the composition? </p>
<p>When inspecting the <code>AVURLAsset</code> of that <code>AVPlayerItem</code> I also noticed that the tracks array is allocated but empty. Could that be the reason, and if so, how do I get the <code>AVURLAsset</code> to properly hold valid tracks?</p>
| 0non-cybersec
| Stackexchange |
How to disable Ctrl + Alt + Del in Unity. <p>I have Ubuntu 12.04 LTS and I want to disable the Ctrl+Alt+Del shortcut because it interferes with the same shortcut in my VirtualBox's Windows. How can I do this?</p>
<p>I tried to remove it from keyboard shortcuts in settings but it didn't help.</p>
| 0non-cybersec
| Stackexchange |
What am I supposed to take away from the term Routed Events?. <p>I use events all the time, I cheat and use autocomplete in Visual Studio. Object.closing += [tab] button. Put something in the autogenerated function. Some people like to emphasize the "routed" nature of it, and that leads me to believe I'm missing something. Is there more to it? What am I supposed to know about routed events?</p>
| 0non-cybersec
| Stackexchange |
Spring's JdbcTemplate and Transactions. <p>When using JdbcTemplate, do I need to explicitly configure transactions?</p>
<p>My code layout looks like the following:</p>
<p>I will have a UserDao that will be injected into my UserService, and then my Controllers will make calls on methods in my UserService.</p>
<p>I want to keep things as simple as possible transaction wise, and I don't need multiple database calls to span a transaction.</p>
<p>By default, do I have to do anything in my configuration file or use a <code>@Transaction</code> annotation anywhere?</p>
<p>Now say in my controller I need to make 2 calls on my userService and accountService, could I explicitly wrap it in a transaction somehow?</p>
<pre><code>userService.updateUser(user);
accountService.updateXXX(...);
</code></pre>
| 0non-cybersec
| Stackexchange |
Macros in macros. <p>Is it possible to put a macro in a macro in c++?</p>
<p>Something like:</p>
<pre><code>#define Something\
#ifdef SomethingElse\ //do stuff \
#endif\
</code></pre>
<p>I tried and it didn't work so my guess is it doesn't work, unless there's some sort of syntax that can fix it?</p>
| 0non-cybersec
| Stackexchange |
Copy column to automatically update in Excel. <p>I currently have a column of numbers in, say, sheet A. I'd like to copy this column to sheet B which is easy enough.<br>
However, if i make a change to a value in the column in sheet A is there a way to make the value automatically alter in sheet B?
(I am working on a Mac but answers in either Windows or Mac would be helpful).</p>
<p>Currently, sheet A is a long list of numbers and sheet B is identical with the duplicates removed. If I add a new value into A I would like this to automatically appear in B.</p>
| 0non-cybersec
| Stackexchange |
Nothing in /sys/class/bluetooth. <p>Using Arch Linux and a bluetooth USB dongle identified as RTL8192CU.</p>
<p>Have all the recommended bluez packages installed and a few others besides:</p>
<pre><code>extra/bluez 5.51-2 [installed]
Daemons for the bluetooth protocol stack
extra/bluez-libs 5.51-2 [installed]
Deprecated libraries for the bluetooth protocol stack
extra/bluez-qt 5.63.0-1 (kf5) [installed]
Qt wrapper for Bluez 5 DBus API
extra/bluez-utils 5.51-2 [installed]
Development and debugging utilities for the bluetooth protocol stack
community/bluez-tools 0.2.0-4 [installed]
A set of tools to manage Bluetooth devices for Linux
local/bluez-hciconfig 5.50-1 [installed]
deprecated hciconfig tool from bluez
local/bluez-hcitool 5.45-1 [installed]
deprecated rfcomm tool from bluez
</code></pre>
<p>I have been following the wikis from Arch Linux: <a href="https://wiki.archlinux.org/index.php/Bluetooth#Debugging" rel="nofollow noreferrer">Bluetooth</a> and <a href="https://wiki.archlinux.org/index.php/Bluetooth_headset#Legacy_documentation:_ALSA,_bluez5_and_PulseAudio_method" rel="nofollow noreferrer">Bluetooth Headset</a></p>
<p>Initially I had problems starting the bluetooth.service in systemd. It would not start if /sys/class/bluetooth was absent. I managed to force this to happen by adding btusb in a file in /etc/modules-load.d. I now have a directory called /sys/class/bluetooth, but this remains resolutely empty.</p>
<p>In dmesg I can see that the adapter is identified and the microcode loaded.</p>
<pre><code>[ 23.984058] rtl8192cu: Chip version 0x10
[ 24.072147] rtl8192cu: Board Type 0
[ 24.073623] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
[ 24.074935] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
[ 24.076401] ieee80211 phy0: Selected rate control algorithm 'rtl_rc'
[ 24.077927] usbcore: registered new interface driver rtl8192cu
</code></pre>
<p>I think the correct modules are loaded:</p>
<pre><code>Module Size Used by
bnep 28672 2
fuse 139264 3
rtl8xxxu 139264 0
rtl8192cu 94208 0
snd_hda_codec_hdmi 69632 1
rtl_usb 24576 1 rtl8192cu
rtl8192c_common 65536 1 rtl8192cu
snd_hda_codec_via 24576 1
rtlwifi 126976 3 rtl8192c_common,rtl_usb,rtl8192cu
snd_hda_codec_generic 94208 1 snd_hda_codec_via
ledtrig_audio 16384 1 snd_hda_codec_generic
mac80211 999424 4 rtl_usb,rtl8192cu,rtlwifi,rtl8xxxu
saa7134_alsa 28672 1
intel_rapl_msr 20480 0
intel_rapl_common 28672 1 intel_rapl_msr
cfg80211 856064 2 rtlwifi,mac80211
i915 2326528 26
libarc4 16384 1 mac80211
i2c_algo_bit 16384 1 i915
x86_pkg_temp_thermal 20480 0
saa7134 192512 1 saa7134_alsa
input_leds 16384 0
intel_powerclamp 20480 0
joydev 28672 0
mousedev 24576 0
drm_kms_helper 212992 1 i915
drm 516096 15 drm_kms_helper,i915
tveeprom 28672 1 saa7134
coretemp 20480 0
v4l2_common 16384 1 saa7134
intel_gtt 24576 1 i915
snd_hda_intel 53248 5
videobuf2_dma_sg 16384 1 saa7134
agpgart 53248 2 intel_gtt,drm
videobuf2_memops 20480 1 videobuf2_dma_sg
videobuf2_v4l2 28672 1 saa7134
snd_hda_codec 159744 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_via
kvm 778240 0
videobuf2_common 57344 2 saa7134,videobuf2_v4l2
syscopyarea 16384 1 drm_kms_helper
snd_hda_core 102400 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_via
videodev 237568 4 v4l2_common,saa7134,videobuf2_v4l2,videobuf2_common
sysfillrect 16384 1 drm_kms_helper
irqbypass 16384 1 kvm
mc 61440 4 videodev,saa7134,videobuf2_v4l2,videobuf2_common
rc_core 57344 1 saa7134
r8169 94208 0
sysimgblt 16384 1 drm_kms_helper
iTCO_wdt 16384 0
iTCO_vendor_support 16384 1 iTCO_wdt
snd_hwdep 20480 1 snd_hda_codec
fb_sys_fops 16384 1 drm_kms_helper
realtek 20480 1
libphy 98304 2 r8169,realtek
mei_wdt 16384 0
eeepc_wmi 16384 0
snd_pcm 135168 6 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,saa7134_alsa,snd_hda_core
asus_wmi 36864 1 eeepc_wmi
snd_timer 40960 1 snd_pcm
crct10dif_pclmul 16384 1
wmi_bmof 16384 0
ppdev 24576 0
mei_hdcp 24576 0
sparse_keymap 16384 1 asus_wmi
snd 110592 20 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,snd_hda_codec_via,saa7134_alsa,snd_pcm
lpc_ich 28672 0
soundcore 16384 1 snd
crc32_pclmul 16384 0
mei_me 45056 2
ghash_clmulni_intel 16384 0
mei 122880 5 mei_wdt,mei_hdcp,mei_me
parport_pc 53248 0
i2c_i801 36864 0
aesni_intel 372736 0
parport 61440 2 parport_pc,ppdev
aes_x86_64 20480 1 aesni_intel
crypto_simd 16384 1 aesni_intel
cryptd 24576 2 crypto_simd,ghash_clmulni_intel
evdev 24576 12
mac_hid 16384 0
glue_helper 16384 1 aesni_intel
intel_cstate 16384 0
intel_uncore 147456 0
pcspkr 16384 0
wmi 36864 2 asus_wmi,wmi_bmof
intel_rapl_perf 16384 0
sg 40960 0
crypto_user 16384 0
btusb 65536 0
btrtl 24576 1 btusb
btbcm 16384 1 btusb
btintel 28672 1 btusb
bluetooth 675840 11 btrtl,btintel,btbcm,bnep,btusb
ecdh_generic 16384 1 bluetooth
rfkill 28672 7 asus_wmi,bluetooth,cfg80211
ecc 32768 1 ecdh_generic
ip_tables 36864 0
x_tables 49152 1 ip_tables
ext4 770048 3
crc32c_generic 16384 0
crc16 16384 2 bluetooth,ext4
mbcache 16384 1 ext4
jbd2 135168 1 ext4
uas 28672 0
hid_generic 16384 0
usb_storage 77824 1 uas
usbhid 65536 0
hid 143360 2 usbhid,hid_generic
sr_mod 28672 0
cdrom 73728 1 sr_mod
sd_mod 57344 6
ata_generic 16384 0
pata_acpi 16384 0
ata_piix 36864 4
libata 282624 3 ata_piix,pata_acpi,ata_generic
xhci_pci 20480 0
ehci_pci 20480 0
scsi_mod 249856 6 sd_mod,usb_storage,uas,libata,sg,sr_mod
xhci_hcd 278528 1 xhci_pci
crc32c_intel 24576 6
ehci_hcd 98304 1 ehci_pci
</code></pre>
| 0non-cybersec
| Stackexchange |
Haven't purchased greens in months.. Zone 6b here. Thought I'd share my [recent bounty.](http://imgur.com/a/vg1S7#0)
Since about mid-March, I've been smugly mocking the pricey boxes of prewashed greens at the grocery store as I walk past. Organic spinach? Arugula? Cilantro? Lettuce? Yeah, I got those. *For free.*
Nature gets all the credit, though, since all of these veggies were from plants I let go to seed last season, and the weather has been nice and cool for these guys to flourish. I've just watered and kept the weeds at bay.
And, I got my first radish! This was a big deal for me, you guys. I've never had success. It was so cute and perfect, that I almost felt bad for eating it. But it's deliciousness gave me no regrets.
Small victories. | 0non-cybersec
| Reddit |
Solve the inverse of $y = \dfrac{2x+1}{3-4x}$. <p>So I just got back from a Calculus test and I have some trouble figuring out one of the questions, it states:</p>
<p>"Calculate the inverse of the function $y=\dfrac{2x+1}{3-4x}$."</p>
<p>What first came into my mind was to eliminate the denominator somehow. But I quickly realized that it would be rather difficult science the numerator is also of degree one. I then got desperate and just tried to move the denominator and got this expression witch did not help me at all.
$$y(3-4x) = 2x+1$$
After several more equally stupid moves I gave up. Even now with the help of Wolfram Alpha I can not figure out how to solve it. Can anyone explain? </p>
| 0non-cybersec
| Stackexchange |
The Man With Horns... He Doesn't Stand. He Floats.. I opened my eyes and immediately regretted that I had. The routine had always been, leave school, get on the bus, take a nap, get home, and jerk the fuck off. A typical course of action for a multitude of teens I’m sure as they head home from school.
This all changed when Joshua moved into town a month ago.
The noise on the bus had become unbearable. My eyes forced open. Sleep was now an impossibility and without thinking too hard, I immediately knew the source.
I looked to my right and, after slapping him on the back of the head, David had Joshua’s hat in his hands.
“Confrontation engage!” Joshua said in his mechanical voice as he stood up onto his gargantuan legs. He made a flimsy attempt to retrieve his hat. Before he could grasp onto the object, it flung out of David’s hands and into Mathew’s grasp.
“Hey, you fucking retard! Over here.”
I winced from the insult and looked to the front of the bus with bleary eyes, and of course, the bus driver was doing nothing to intervene. His indifference was alarming, reprehensible to be honest. Like everyone else on this bus (myself included sadly), he was allowing the bullying to continue unabated. Butterflies rose in my stomach. I kept saying to myself, “this is the day, c’mon just fucking do it.” However, I just sat there and didn’t do a goddamn thing.
I had found a sweet spot in the social hierarchy of Andrew Jackson High School. Mathew, David, and their cronies were perched at the top. My poor friend Joshua was firmly smothered at the bottom. I had miraculously worked my way to somewhere on the periphery, neither target or player in the neverending jockeying of high school politics. By publicly throwing my allegiance to Joshua, I would upset the order of things. I had chosen, cowardly I will admit, to provide moral support after and not during frays such as these.
Mercifully, the bus reached our stop. Joshua cried out, “exit of vehicle engage!” leaving his hat behind without a care in the world.
As the yellow bus pulled out of sight, I began to comfort Joshua, going as far as to put my arm around him.
We continued to walk in silence. I regarded his enormous figure, really looked at him and sincerely asked, “why don’t you just fight back?”
Never once looking in my eyes, always looking over his shoulder, he said tonelessly, “conversation engage!” I cringed. Before he could answer, I interrupted him.
“Listen Joshua, it’s because you say weird shit like that that people pick on you. If you just…” I stopped talking. Joshua wasn’t hearing a word I was saying. He was staring at the space over his right shoulder. I grew frustrated. In that brief moment, I viewed him as complicit in his own abuse. “And that’s another thing. Dude, you’ve got to be like 17 years old. How the fuck do you still have an imaginary friend?”
This was the real source of Joshua’s bullying. For the past two weeks, he would spend the entire day talking to a man that wasn’t there, even interrupting class to hold conversations with him.
He was already a bruised and battered pariah before, and this only made things worse. However, he just seemed too oblivious and innocent to care. I mused that he must have some sort of undiagnosed mental disability. My anger subsided. My irritation with Joshua gave way to genuine pity. I stopped walking and looked at him with genuine sorrow in my heart. He stared over his shoulders, now regarding a street sign.
My tone deftly shifted to one of sympathy, now willing to meet Joshua halfway in his weirdness.
“Joshua, what’s so interesting about that sign?”
“It says no standing,” he said in his indelibly monotonous voice.
“So, yeah it means you can’t park your car here.”
“No, it’s for him,” pointing to the space next to him. “The man with horns. He doesn’t stand. He floats.”
Normally I would chalk that up to the usual odd nonsense that escapes Joshua’s lips, but something about that statement really got to me. It was said in such a creepy way and so sincerely that a chill overcame me in spite of the warm, spring air.
Wanting to change the subject, I asked him again, “Joshua, you’re a really big guy. Why don’t you stand up for yourself?” (Which begged the question in my mind, why the fuck don’t you do anything?).
Never once looking me in the eye, always staring next to him, he replied, “Don’t worry. No one helps me, but he came to me. He says I have potential. The plan. His plan.”
_____________________________________________________________________________
The conversation with Joshua had unnerved me greatly. One thought consumed me as I lay in bed. It was Joshua’s voice played over and over again in my head. I was rattled to my core.
“The man with horns. He doesn’t stand. He floats.”
“The plan. His plan.”
I knew I wasn’t going to get any sleep that night without assistance. So, I stole one of my mother’s Ambien and had taken it while praying that slumber would eradicate the fear bubbling up inside.
As I lay in bed waiting with open arms for sleep to find me, my phone continued to buzz on my nightstand. I finally picked it up hoping to keep my mind off of Joshua and his... “friend.” My heart sank as his name stared back at me from my phone. I immediately regretted giving him my number on our walk that afternoon. It was done with good intentions and legitimate care, but I should have figured that, with his lack of social graces, he would blow up my phone. I read the first text.
Texting engage!
I actually smiled. His idiosyncrasies tickling me as the Ambien finally began to take effect. However, what little joy I felt perished as I continued to read his texts.
He likes you, you know, potensheol ha.
Horns and glory. Horns. Hel. Eternal.
Him. Its always him. Forver.
He wants to see you. The plan you see. We’re steps. Just. His plan.
Say hi tonight. The plan. Tell him I said Hi.
End transmission.
Nothing in the world could prepare me for this. The Ambien completely overtook me as I fought to stay awake beyond terrified of what dreams may come.
_____________________________________________________________________________
I awoke with a start. Drawing my vision, the light of my alarm clock cut through the darkness.
2:37.
It took a moment for me to realize that this wasn’t the only source of light in my room.
A faint, green glow was emanating from my closet. I blinked twice. I was convinced that I was in some sort of intense, Ambien induced, lucid dream. I noticed that the room was no longer filled with silence but a faint whirring sound filled the still air. I made my way towards the closet door one step at a time.
Creak-Creak-Creak.
The sound of my footsteps on the hardwood floor of the bedroom rose above that ethereal noise. As I approached the light, it grew brighter. Eventually, the sound began to drown out my footsteps as well.
I reached for the knob of my closet door. As my arm extended, another high pitch tone entered the air, it resembled... laughter.
Drawing a deep breath and closing my eyes, I pulled the door ajar.
My eyes shot open. The light had disappeared.
I felt something behind me. With panic consuming me, I turned my head one millimeter at a time.
Two green eyes were floating over my right shoulder.
I backed away and fell onto my bed. I looked up and saw two incandescent green circles floating above the space to my right. I gasped in horror as they illuminated a pair of horns. The light grew brighter, revealing a sickening smile lined with fangs. Evil thoughts filled my brain and consumed me. I closed my eyes and prayed for relief...
_____________________________________________________________________________
I opened my eyes, and I was sitting on the bus.
The entire day had gone by in a haze.
“This fat fuck isn’t going to do shit!” David shouted as he grabbed a handful of Joshua’s ample bosom. Mathew gleefully grabbed his left breast and twisted it ferociously. I could only fathom the pain Joshua was in at the moment.
As fucked up as it is, I almost welcomed the familiarity of this abuse. He had scared me so bad the previous night that it was going to take some time for me to forgive him for the terrifying dream he had injected into my mind. I felt that my revenge would be turning a blind eye on that bus ride. Though this was a complete rationalization of my cowardice, I felt content in not doing anything at least for that day.
We got off the bus and began to walk. He finally broke the silence.
“Conversation engage,” he said with his characteristically flat affect. “He likes you you know. His plan.”
I shuddered. “You said that last night, and I’m going to be honest. You scared the fuck out of me. I am trying to be your friend, and that really fucked me up. Gave me crazy dreams. You need to knock that shit off.”
“He’s going to mark you, isn’t that right Mr. H.C.T.O?”
“This is the sort of shit I’m talking about...” I wanted to lay into him, but again I saw how truly pathetic this kid was. Pity filled me once more, and I backed off. No matter how bizarre this kid is, he still doesn’t deserve what’s happening to him. The constant barrage of violence was turning this strange kid even weirder. I felt guilty for my anger and ambivalence toward this clearly troubled person.
“It’s okay Joshua. Let’s just talk about something else.”
We ended up talking about video games. It was of little surprise that he was really into JRPGs (as was I but I kept this little nugget of information to myself). It turns out he had a copy of Persona 2: Eternal Punishment which I had been waiting to play with bated breath. He said I could come over and borrow it.
We entered his home, and I was immediately put off. His house had a strange, stifling energy. It looked derelict and empty. Darkness enshrouded his living room and kitchen. I remarked in my mind that his parents or any sign of a parental figure were nowhere to be seen. If they were present or involved in his life, they would maybe do something about the relentless bullying their son was subject to. My thoughts scattered as Joshua pointed to the second story and led the way. I ascended the stairs further into the darkness.
We entered his bedroom. It was drab, stark, and empty like the rest of the house. He reached for the lamp on the nightstand and turned it on.
I gasped. Four large letters had been crudely scratched into the wall.
Joshua saw me staring at them, looked over his right shoulder, and began to speak.
“I can tell him right? Mr. H.C.T.O. That’s his name. He scratched it there when he marked me. Plans Tomorrow. Potential.”
I looked at the wall, staring intently at Joshua’s large silhouette. Next to his shadow, I saw it. A pair of horns appeared on the wall floating over Joshua’s shoulder. Fear seized me.
I blinked, and they were gone. It didn’t matter. I left that house as fast as my feet could carry me and ran two doors down to the relative safety of my home.
As I entered my living room, I took a deep breath. I gave myself a pep talk. Listen, you need to calm down. Yes, he’s weird and the fucked up shit he’s said has gotten into your head, but he needs a friend now.
The fear began to dissipate. I texted Joshua apologizing for before. I told him I felt really sick and that’s why I left like I did. I texted him asking, we’re still friends, right?
Me, you, and Mr. H.C.T.O. are friends forver. See you tomorrow. Big plans. Tomorrow. Potensheol.
Though I was somewhat relieved, I still slept on my couch that night, terrified of what might be waiting for me in my bedroom and too timid to even check.
______________________________________________________________________________
This time on the bus sleep was beyond impossible. In fact, even pretending to be asleep wasn’t going to cut it. The bullying had reached a fever pitch. Mathew had Joshua in a choke hold while David pummeled his stomach. The stress of the last few days had gotten to me and without fully contemplating the ramifications, I shouted at the top of my lungs.
“Enough!!!”
Mathew and David looked at me with incredulous eyes. All of the ire they were directing at Joshua turned to me with a laser-like focus.
“What the fuck did you just say?” Mathew growled while glaring at me. David began to approach me. His hands were drawn to his sides in fists. He towered over me. All of the fear from the past few days was replaced with a new, more imminent terror.
“Did you just fucking tell us to stop?”
“Well… um…” I was a few blocks away from home. I was hoping that, if I could filibuster long enough, I would be able to leave the bus unscathed. Suddenly, a voice called out.
“Insult engage! Mr. H.C.T.O. wants to know, David, what does Mathew’s dick taste like?”
I couldn’t believe my fucking ears. Everyone on the bus gasped. Mathew and David turned to Joshua. They had an unparalleled look of rage on their faces. All of the fear I had felt for myself quickly transferred to Joshua.
The timing of Joshua’s insult couldn’t have been more perfect. The bus came to a stop. Joshua, got off the bus and ran. My heart sank as Mathew and David followed suit.
I called out to them, “he’s fucked up man. He doesn’t know what he’s saying.” They clearly didn’t give a fuck and continued their chase. As I ran after them, I marveled at how fast Joshua’s enormous feet could carry him.
Joshua entered his home. Mathew and David followed soon after. My heart was racing. What the fuck do I do? I had only moments to decide.
I ran home and grabbed the baseball bat. As I ran over to his house, I called the police. Holding the bat above my head, I entered Joshua’s home.
It was just as dark as the previous day. But the most unsettling detail of all that afternoon was the silence that greeted me. I expected to hear shouting, but silence filled the still air of the empty abode.
I surveyed the first floor and found nothing. As I began to ascend the stairs, the creaking of my footsteps almost gave me pause, but I was determined. With bat in hand, I was going to make up for my inaction, all of the bullying I had let occur without intervening.
I rounded the corner to Joshua’s room and could see a light. I closed my eyes and steeled myself for what was to come next.
Nothing in the world could prepare me for the horror I would see when they opened. I dropped the bat and fell to my knees.
Mathew lay on the floor. Stab wounds riddled his body. I looked next to him to see the form of David. He had been stabbed so many times in the neck his head lay a few inches from the rest of his body. I couldn’t catch my breath. I felt my vision began to fade. That’s when I saw Joshua’s hulking figure standing over the bodies. He was literally bathing in their blood. His eyes had taken on a green, ethereal glow. He began to speak.
“The plan. The plan.”
Before I passed out, I looked at the wall and noticed a strange detail. The letters embossed on it the previous day were no longer there.
______________________________________________________________________________
To say I was dreading this visit, would be a gross understatement, but I still felt horrible for Joshua, and I knew I would be the only person coming to see him. I entered the jail.
I was a wreck. So much regret encumbered me. I kept playing all of the scenarios in my mind. If I had stood up for him earlier, if someone else would have stepped in, it wouldn’t have come to this, Joshua facing life in prison at worst or committal to a psychiatric hospital at best. At first, there was a sliver of hope for self-defense, but that was dashed as soon as the sickening and brutal details of the murders came to light.
Looking at the glass through misty eyes, I could see Joshua enter the area. He sat down and slowly picked up the phone all while looking downward. I began to talk to him.
“Hey Joshua,” I said weakly.
He continued to look down.
“Joshua…”
“Conversation engage!” A tear streamed down my face as he said that.
“Look, Joshua...”
With a manic energy, he began to speak. “He’s done with me you see. After Bill, he’s free from hell. Anyone he wants. Done with me. But you’re next. He’ll mark you, you’ll see. You have… potential.” His head turned upward and instead of glancing over his shoulder as he always did, he was staring at the space to my right with an unwavering gaze.
”The plan. His plan.”
The second he said “plan” my mind went back to the grotesque scene in Joshua’s bedroom. I could see David’s dead eyes staring back at me. I could envision Joshua picking up handfuls of their blood and rubbing it on his body.
Worst of all, I could see the green, demonic glow of his eyes in that moment.
Panic filled me. I couldn’t bear to be there anymore. I swiftly left the visiting area of the jail. As I was leaving, a man approached me. He had a look of terror and concern written on his face. He attempted to speak to me, but I blew him off and ran towards my father’s car.
When I finally got home, I looked long and hard into my bathroom mirror. I splashed water on my face as my thoughts continued to race. My phone began to ring. I looked at it to see an unfamiliar number. I answered and let the rage that had been building in my gut spill forth from my mouth.
“What the fuck do you want!?!” I shouted.
“Listen, my name is Dr. Williams. We need to...” Before he could finish, I had already dropped my phone. A scratching noise filled the air. As I stared into my bathroom mirror, I saw the letter O appear on the wall, written by some unseen force.
______________________________________________________________________________________________
Originally posted to Thought Catalog at www.thoughtcatalog.com
[Cliff R. Barlow](https://www.facebook.com/CliffRBarlow)
| 0non-cybersec
| Reddit |
huell howser died at age 67. | 0non-cybersec
| Reddit |
[S7E1] Post-Premiere Discussion - S7E1 'Dragonstone'. #Post-Premiere Discussion Thread
Discuss your thoughts and reactions to the current episode you just watched. What exactly just happened in the episode? Please make sure to reserve your predictions for the next episode to the [Pre-Episode Discussion Thread](/r/gameofthrones/w/episode_discussion) which will be posted later this week on Friday. Don't forget to fill out our Post-Episode Survey! A link to the Post-Episode Survey for this week's episode will be stickied to the top of this thread as soon as it is made.
---
##This thread is scoped for [S7E1](http://i.imgur.com/E5QW4TD.jpg) SPOILERS
* Turn away now if you are not caught up watching or have not seen the episode! Open discussion of all aired TV events up to and including S7E1 is okay without tags.
* **[S7E2 spoilers must be tagged!](#s)** Or save your comments about the S7E2 trailer for the trailer thread when it is posted.
* **[Book spoilers must be tagged!](#b)** If it did not happen in the show, even if the show will probably never cover it, it must be labelled and tagged.
* **Production spoilers are not allowed!** Make your own post labelled [S7 Production] if you'd like to discuss plot details which have leaked out on social media or through media reports. [Everything] posts do not cover this type of spoiler.
* **Please read the [Posting Policy](/r/gameofthrones/w/posting_policy) before posting.**
---
##S7E1 - "Dragonstone"
* Directed By: Jeremy Podeswa
* Written By: David Benioff & D. B. Weiss
* Airs: July 16, 2017
Jon organizes the defense of the North. Cersei tries to even the odds. Daenerys comes home.
---
* [Posting Policy](/r/gameofthrones/w/posting_policy)
* [Spoiler Guide](/r/gameofthrones/w/spoiler_guide)
* [Frequently Asked Questions](/r/gameofthrones/w/faq)
* [Original Episode Discussions](/r/gameofthrones/w/episode_discussion)
* [Previous Rewatch Discussions](/r/gameofthrones/w/rewatch)
* [Our Discord](https://discord.gg/nJz3WmH)
* [Our Twitter](https://twitter.com/RedditThrones)
| 0non-cybersec
| Reddit |
Do you want to know the Secrets of a super hacker?. | 1cybersec
| Reddit |
disk space keeps filling up on EC2 instance with no apperent files/directories. <p>How come os shows 6.5G used but I see only 3.6G in files/directories?</p>
<p>Running as root on an Amazon Linux AMI (seems like Centos), lots of free memory available, no swapping going on, no apparent file descriptors issue.
The only thing I can think of is a log file that was deleted while applications append to it.</p>
<p>Disk space usage is slowly but continuously rising towards full capacity (~1k/min with very small decreases from time to time)</p>
<p>Any explanation?
Solution?</p>
<blockquote>
<p><strong>du --max-depth=1 -h /<br/></strong>
1.2G /usr<br/>
4.0K /cgroup<br/>
22M /lib64<br/>
11M /sbin<br/>
19M /etc<br/>
52K /dev<br/>
2.1G /var<br/>
4.0K /media<br/>
0 /sys<br/>
4.0K /selinux<br/>
du: cannot access <code>/proc/14024/task/14024/fd/4': No such file or directory du: cannot access<br/>
</code>/proc/14024/task/14024/fdinfo/4': No such file or directory du:<br/>
cannot access <code>/proc/14024/fd/4': No such file or directory du: cannot<br/>
access</code>/proc/14024/fdinfo/4': No such file or directory
0 /proc <br/>
18M /home<br/>
4.0K /logs<br/>
8.1M /bin<br/>
16K /lost+found<br/>
12M /tmp<br/>
4.0K /srv<br/>
35M /boot<br/>
79M /lib<br/>
56K /root<br/>
67M /opt<br/>
4.0K /local<br/>
4.0K /mnt<br/>
<strong>3.6G</strong> /<br/></p>
<p><strong>df -h</strong><br/></p>
<p>Filesystem Size Used Avail Use% Mounted on <br/>
/dev/xvda1 <strong>7.9G</strong> 6.5G 1.4G 84% / tmpfs 3.7G 0 3.7G 0% /dev/shm<br/></p>
<p>sysctl fs.file-nr fs.file-nr = 864 0 761182<br/></p>
</blockquote>
| 0non-cybersec
| Stackexchange |
sum cells of certain columns for each row. <p>I would like to calculate sums for certain columns and then apply this summation for every row. Unfortunately, I can only get to the first step. How do I now make it happen for each row? I know that R doesn't need loops; what are good approaches?</p>
<p>My matrix (zscore) looks like this:</p>
<pre><code> a b c t y
1 3 4 7 7 4
2 4 56 6 6 4
3 3 3 2 1 7
4 3 88 9 9 9
</code></pre>
<p>Now I would want to calculate the row sum for each row, based on some of the columns. For one row it could look like this:</p>
<pre><code>f1 <- sum(zscore[1,1:2], zscore[1,3], zscore[1,5])
</code></pre>
<p>How do I do that now for each row?</p>
| 0non-cybersec
| Stackexchange |
Looks like I win. | 0non-cybersec
| Reddit |
What's the craziest shit your party has done?. Story time, everyone! My party hasn't done too much, but we did kill a black dragon at level 3. To be fair, we did have an air elemental helping us. | 0non-cybersec
| Reddit |
Console logging using script command output unreadable. <p>I wanted to log my program's (the python program boots up a headless embedded device connected to a serial port) output to a text file <code>console_log.txt</code> using a shell script, for which, I wrote the following script:</p>
<pre><code>#!/bin/bash
current_time=$(date "+%Y.%m.%d-%H.%M.%S")
gnome-terminal -x bash -c "cd ~/Scripts;pwd;script -c \"python test.py $1\" ~/Output/console_log_$current_time.txt;exec $SHELL"
</code></pre>
<p>The above writes unreadable (non ASCII) characters to the file along the lines of:</p>
<pre><code>捓楲瑰猠慴瑲摥漠桔牵摳祡〠‶灁楲〲㜱〠㨳㔲㈺‸䵐䤠呓ഊ上漠慰慲敭整獲瀠潲楶敤祢琠敨甠敳›ㄠ敔瑳漠瑰潩湥整敲›〠獕湩敤慦汵⁴潣普杩牵瑡潩楦敬⸮⸮⨪⨪⨪⨪⨪桔潣普杩牵瑡潩楦敬琠慨❴潧湩潴戠獵摥椠›㰠潮敮ാ猊慴瑲湩慭湩猠牣灩൴⼊潨敭愯瑵浯瑡潩㑮愯瑵浯瑡潩⽮噄㥆弹畁潴慭楴湯栯浯⽥畡潴慭楴湯⼴畡潴慭楴湯䐯䙖㤹䅟瑵浯瑡潩⽮湉異⽴❛灳捥牴浵睟形档物慷❶洧污彥欸眮癡Ⱗ✠灳捥牴浵湟形楤捳㍟〶⸰慷❶猧数瑣畲彭扮损楨灲眮癡Ⱗ✠灳捥牴浵睟形楤捳㕟〸⸰慷❶琧獥慷❶洧污彥㘱慷❶昧汭扟灵慟瑴潟杲眮癡崧㠠栯浯⽥畡潴慭楴湯⼴畡潴慭楴湯䐯䙖㤹䅟瑵浯瑡潩⽮湉異⽴潣普杩琮瑸††††††††††唠䕓⁒†††倠䑉䄠䍃卅⁓佃䵍乁ൄ⼊敤⽶瑴啹䉓㨸††††畡潴慭楴湯‴㈠㘲㔷䘠⸮⸮氠杯湩楟楮൴⼊敤⽶瑴啹䉓㨹††††畡潴慭楴湯‴㈠㘲㔶䘠⸮⸮氠杯湩楟楮൴匊牥慩潐瑲楬瑳㨠†❛✹㠧崧敓楲污瀠牯獴㨠†❛搯癥琯祴单㥂Ⱗ✠搯癥琯祴单㡂崧桃灩敳⁴‱›ㄠ桃灩敳⁴′›ㄠ潂牡‱敓楲污倠牯⁴›⼠敤⽶瑴啹䉓ഹ䈊慯摲㈠匠牥慩潐瑲㨠†搯癥琯祴单㡂潂牡ㅤ䤠⁐›ㄠ㈷㈮⸸⸴㈳潂牡㉤䤠⁐›ㄠ㈷㈮⸸⸴㘳潂牡㍤䤠⁐›ㄠ㈷㈮⸸⸴㔲潂牡㑤䤠⁐›ㄠ㈷㈮⸸⸴㜲潂牡㕤䤠⁐›ㄠ㈷㈮⸸⸴㠵汯敲畳瑬搠汥猠捵散獳⸮慰獳潔‽❛牳敥慫瑮䁳獤杰挮浯崧灓楬⁴潶灩‽ര⨊⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪潓湵慃摲䌠湯捥楴湯⩳⨪⨪⨪⨪⨪⨪പ⨊⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪佂剁ㅄⴠ㸭戠弱畯彴潰瑲漽瑵档ⰱ戠弱湩灟牯㵴湩档റ䈊䅏䑒′ⴭ‾㉢潟瑵灟牯㵴畯捴㉨㉢楟彮潰瑲椽据㉨⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪⨪പഊ嬊⼧敤⽶瑴啹䉓✹⼧敤⽶瑴啹䉓✸⼧敤⽶瑴啹䉓✳⼧敤⽶瑴啹䉓✲⼧敤⽶瑴啹䉓✱⼧敤⽶瑴啹䉓✰⼧敤⽶瑴卹✰൝嬊⼧敤⽶瑴啹䉓✹⼧敤⽶瑴啹䉓✸⼧敤⽶瑴啹䉓✳⼧敤⽶瑴啹䉓✲⼧敤⽶瑴啹䉓✱⼧敤⽶瑴啹䉓✰⼧敤⽶瑴卹✰൝䈊慯摲†椠⁰†‽㜱⸲㠲㐮㈮㤰慇整慷⁹灩†㴠ㄠ㈷㈮⸸⸴㔲ഴ䌊浯瀠牯
</code></pre>
<p>Or <code>gedit</code> displays messages like:</p>
<pre><code>Could not open the file “/home/user4/con…g_2017.04.06-16.05.48.txt”.
Unexpected error: Invalid byte sequence in conversion input
</code></pre>
<p>when I try to open the file.</p>
<p>When I run some thing simpler like:</p>
<pre><code>script -c ifconfig ~/user4/Scripts/test.txt
</code></pre>
<p>it runs just fine, i.e, I get the expected output at the log file. How to avoid such unreadable characters?</p>
| 0non-cybersec
| Stackexchange |
Goodness of fit tests in SciPy. <p>I'm new to Python and coming from the R world. I'm trying to fit distributions to sample data using SciPy and having good success. I can make <code>distribution.fit(data)</code> return sane results. What I've been unable to do is create the goodness of fit statistics which I'm used to with the <code>fitdistrplus</code> package in R. Is there a common method for comparing "best fit" from a number of different distributions with SciPy? </p>
<p>I'm looking for something like the Kolmogorov-Smirnov test or Cramer-von Mises or
Anderson-darling tests</p>
| 0non-cybersec
| Stackexchange |
Is it possible to reuse HTML like a template on multiple pages?. <p>I have several pages on a website that use the same header for each page. I was wondering if there was some way to simply reference a file with the html for the header sort of like in this pseudo code:</p>
<pre><code><!-- Main Page -->
<body>
<html_import_element src = "myheadertemplate.html">
<body>
</code></pre>
<p>Then in a separate file:</p>
<pre><code><!-- my header template html -->
<div>
<h1>This is my header</h1>
<div id = "navbar">
<div class = "Tab">Home</div>
<div class = "Tab">Contact</div>
</div>
</div>
</code></pre>
<p>This way I could write the header html once and just import it in each of my pages where I need it by writing one simple tag. Is this possible? Can I do this with XML?</p>
| 0non-cybersec
| Stackexchange |
Run lightning-charge on c-lightning regtest. <p>I'm trying to run lighting-charge (<a href="https://github.com/ElementsProject/lightning-charge" rel="nofollow noreferrer">https://github.com/ElementsProject/lightning-charge</a>) on top of one of my 2 lightning (<a href="https://github.com/ElementsProject/lightning" rel="nofollow noreferrer">https://github.com/ElementsProject/lightning</a>) instances. I am running 2 nodes using the script here: <code>lightning/contrib/startup_regtest.sh</code>. This file will start a bitcoin instance as well as 2 lightning nodes (<code>/tmp/l1-regtest</code>, <code>/tmp/l2-regtest</code>)</p>
<p>I then tried to run lightning-charge with:</p>
<pre><code>$ NETWORK=regtest charged --api-token super_secret_1 --ln-path ~/.lightning --db-path ~/charge1.db --port 9112
</code></pre>
<p>Which gives me this error:</p>
<pre><code>Lightning client connection error { Error: connect ECONNREFUSED ~/.lightning
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1198:14)
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
address: '~/.lightning' }
events.js:183
throw er; // Unhandled 'error' event
^
Error: connect ECONNREFUSED ~/.lightning
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1198:14)
</code></pre>
<p>I've also tried running it with <code>ln-path</code> set to <code>/tmp/l1-regtest/</code></p>
<p>with <code>ps aux</code> I can see lightning is running with this command:</p>
<pre><code>~/git/lightning/lightningd/lightningd --lightning-dir=/tmp/l1-regtest
and
~/git/lightning/lightningd/lightningd --lightning-dir=/tmp/l2-regtest
</code></pre>
<p>Does anyone know how to get <code>lightning-charge</code> to connect to my regtest lightning node?</p>
<p>There are instructions on how to do this in docker in the readme file (<a href="https://github.com/ElementsProject/lightning-charge/blob/master/README.md" rel="nofollow noreferrer">https://github.com/ElementsProject/lightning-charge/blob/master/README.md</a>), but it doesn't seem to work outside of docker.</p>
| 0non-cybersec
| Stackexchange |
How the NSA tampers with US-made internet routers. [How the NSA tampers with US-made internet routers](http://www.theguardian.com/books/2014/may/12/glenn-greenwald-nsa-tampers-us-internet-routers-snowden)
>While American companies were being warned away from supposedly untrustworthy Chinese routers, foreign organisations would have been well advised to beware of American-made ones. A June 2010 report from the head of the NSA's Access and Target Development department is shockingly explicit. The NSA routinely receives – or intercepts – routers, servers and other computer network devices being exported from the US before they are delivered to the international customers.
>The agency then implants backdoor surveillance tools, repackages the devices with a factory seal and sends them on. The NSA thus gains access to entire networks and all their users. The document gleefully observes that some "SIGINT tradecraft … is very hands-on (literally!)".
>Eventually, the implanted device connects back to the NSA. The report continues: "In one recent case, after several months a beacon implanted through supply-chain interdiction called back to the NSA covert infrastructure. This call back provided us access to further exploit the device and survey the network."
>It is quite possible that Chinese firms are implanting surveillance mechanisms in their network devices. But the US is certainly doing the same.
>Warning the world about Chinese surveillance could have been one of the motives behind the US government's claims that Chinese devices cannot be trusted. But an equally important motive seems to have been preventing Chinese devices from supplanting American-made ones, which would have limited the NSA's own reach. In other words, Chinese routers and servers represent not only economic competition but also surveillance competition.
| 1cybersec
| Reddit |
My [m28] girlfriend [f27] farts A LOT during sex. She's awesome in every other way though. Help?!. M28/f27. We've only been together for 3 months, and get along great. She's the type of woman I could see marrying. But she farts during sex. A lot (sometimes 10+ times). She also thinks it's hilarious, so halfway through sex sometimes devolves into her giggling as I'm basically holding my nose and trying to pretend like I did not just feel another draft of air past my privates.
I contend that she should be able to hold it - she doesn't fart much the rest of the day, but she says it's unavoidable. I'm not really sure what to do.
Tl;dr: girlfriend farts a lot during sex and thinks it's funny,
but I have a tough time with it. | 0non-cybersec
| Reddit |
UK Court judge banned BBC from broadcasting riot documentaries and prevented the media from reporting his injunction.. | 0non-cybersec
| Reddit |
Um....that's my beer. Thanks.. | 0non-cybersec
| Reddit |
Since hairs have no muscles, where do they get the strength to stand straight up when you're cold?. (Hair on arms and legs) | 0non-cybersec
| Reddit |
An Impressive Trivia Dancer on Live with Kelly. | 0non-cybersec
| Reddit |
[SPS] Rogue Hunter - Upcoming short film set in New Detroit of 2064. | 0non-cybersec
| Reddit |
Got a new set of colored pencils and the inner Kandinsky came out of me. | 0non-cybersec
| Reddit |
stdfloat.h version of stdint.h. <p>What standard naming conventions and or math libraries do you use? I currently use</p>
<pre><code>#include <stdint.h>
typedef float float32_t;
typedef double float64_t;
/*! ISO C99: 7.18 Integer types 8, 16, 32, or 64 bits
intN_t = two’s complement signed integer type with width N, no padding bits.
uintN_t = an unsigned integer type with width N.
floatN_t = N bit IEE 754 float.
uintN_t intN_t floatN_t
bits unsigned-integer signed-integer IEE754 float
8
16 unsigned short short ??"half"
32 unsigned int float
64 unsigned long long double
128 ?? "Long double" "quad" ??*/
</code></pre>
<p>but as you can see I am yet to decide upon a math library.
<hr/>
Original Question:
<strong>Recommendation for a small math library with Straight forward naming convention.</strong></p>
<p>Does anyone know of any small C libraries with straightforward naming conventions? This is what im using right now:</p>
<pre><code>typedef unsigned short UInt16; typedef short Int16;
typedef unsigned UInt32; typedef int Int32; typedef float Float32;
typedef unsigned long UInt64; typedef long int Int64; typedef double Float64;
</code></pre>
<p>What do you use??</p>
| 0non-cybersec
| Stackexchange |
web server behind NAT cannot be accessed by the same network using NAT router IP or domain. <p>I have 1 <strong>host server</strong> as NAT server, it has public domain name <code>example.com</code> tied to its public IP address <code>PUB_IP_ADD</code>.</p>
<p>I have another <strong>web server</strong> behind NAT with IP address <code>192.168.1.100</code> and port forwarding rules is done on the <strong>host server</strong>:</p>
<blockquote>
<p>-A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.1.100:80</p>
</blockquote>
<p>I have some <strong>other servers</strong> behind NAT with fixed ip address range <code>192.168.1.101-110</code> and the <code>masquerade</code> rules are done for the whole <code>192.168.1.0/24</code> range:</p>
<blockquote>
<p>-A POSTROUTING -s 192.168.1.0/24 -o vmbr0 -j MASQUERADE</p>
</blockquote>
<p>the above rules can let my servers behind NAT access internet. (download and ping public ips).</p>
<p>My web page can be accessed from the internet by visiting <code>example.com</code> but cannot be accessed from inside the NAT network in those <code>192.168.1.0/24</code> by using the same domain name or <strong>host server</strong> ip address.</p>
<p>I wonder, why the web server behind the NAT firewall cannot be accessed by its peers by using NAT server domain name or IP?</p>
<p>Do I need to add <code>SNAT</code> rules specifically to the <strong>web server</strong> and remove the <code>masquerade</code> line?</p>
| 0non-cybersec
| Stackexchange |
Herman Cain Tells Supporters ‘It Ain’t Over Till It’s Over, and It Ain’t Over’. | 0non-cybersec
| Reddit |
When you have been tired of Sylvanas for years now and wanted some cool Lich King stuff in the upcoming expansion. | 0non-cybersec
| Reddit |
ITAP of Flowers in Kona. | 0non-cybersec
| Reddit |
Combination of smartphone's pattern lock.. <p><strong>Note:</strong> Please do not mark this question as duplicate of <a href="https://math.stackexchange.com/questions/37167/combination-of-smartphones-pattern-password">Combination of smartphones' pattern password</a> because no answer given there is correct and I have an extra question related to it. </p>
<p>This is a smartphone Pattern lock.</p>
<p><a href="https://i.stack.imgur.com/1DVoo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1DVoo.png" alt="enter image description here"></a></p>
<p>The rules are as follows:<br>
1. At least 4 nodes should be selected.<br>
2. The pattern should be continuous.<br>
3. Cycles are not allowed.<br>
4. Any node cannot be revisited. </p>
<p>So, if we choose only four nodes. The number of arrangements are $^9P_4$.<br>
If we choose five, the number of arrangements are $^9P_5$ and so on. </p>
<p>But the total number of possible combinations is not $^9P_4 + ^9P_5 + ^9P_6 + ... + ^9P_9$. </p>
<p>The problem is here, that, if we choose an arrangement in which while connecting two points we go over another point, we are counting it twice. For example, if we choose the four point in the corners and join them cyclically, it goes over three more points so it comes under $^9P_4$ and also under $^9P_5$, $^9P_6$ and $^9P_7$. </p>
<p>What shall I do to remove these extra configurations? Is there any other problem with my method?</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 cat likes to walk on her wheel while I’m on my exercise bike. The way she looks at me makes my heart melt 😻😭. | 0non-cybersec
| Reddit |
Solving a Recurrence Relationship. <p>Given recurrence relationship:</p>
<p>$g(1) = 5;\\
g(2n) = 4g(n);\\
g(2n+1) = 4g(n).$</p>
<p>I feel lost because of $g(2n)$ and $g(2n+1)$.</p>
<p>Based on my coursebook, there is the common standard form, which can be used in order to find the relation:</p>
<p>$g(n) = A(n)\alpha + B(n)\beta + C(n)\gamma$</p>
<p>$A(n),B(n)$ and $C(n)$ are functions, $\alpha, \beta, \gamma$ are constants.
I suppose this form is for the case when there is 3 constants? Thus in this case the form should be
$g(n) = A(n)\alpha$?</p>
<p>How does one use this knowledge in order to solve the relationship?</p>
<p>=====</p>
<p>$f(1)=α;\\
f(2n)=2f(n)+1;\\
f(2n+1)=2f(n)+β.$</p>
<p>This is the case when I do not have a number, but a constant - how does one solve the relationship?</p>
| 0non-cybersec
| Stackexchange |
Understanding Lang's Chapter 6 Theorem 9.1. <p>For the past week, I've been trying to dissect and make rigorous my understanding of Lang's theorem, which says that:</p>
<blockquote>
<p>Theorem 9.1 Let <span class="math-container">$k$</span> be a field and n an integer <span class="math-container">$\geq$</span> 2. Let <span class="math-container">$a \in k, a \neq 0.$</span> Assume that for all prime numbers <span class="math-container">$p$</span> such that <span class="math-container">$p \mid n$</span> we have that <span class="math-container">$a \notin k^p,$</span> and if <span class="math-container">$4 \mid n$</span> then <span class="math-container">$a \notin -4k^4.$</span> Then <span class="math-container">$X^n - a$</span> is irreducible in <span class="math-container">$k[x].$</span> </p>
</blockquote>
<p>What follows is a portion of Lang's proof. I cut the argument off where my understanding broke down.</p>
<blockquote>
<p>Our first assumption means that <span class="math-container">$a$</span> is not a <span class="math-container">$p$</span>-th power in <span class="math-container">$k.$</span> We shall reduce our theorem to the case when <span class="math-container">$n$</span> is a prime power, by induction.
Write <span class="math-container">$n = p^rm$</span> with <span class="math-container">$p$</span> prime to <span class="math-container">$m,$</span> and <span class="math-container">$p$</span> odd. Let </p>
<p><span class="math-container">$$x^m - a = \prod^m_{v = 1}(x - \alpha_v)$$</span></p>
<p>be the factorization of <span class="math-container">$x^m - a$</span> into linear factors, and say <span class="math-container">$\alpha
> = \alpha_1$</span>. Substituting <span class="math-container">$x^{p^r}$</span> for <span class="math-container">$x$</span> we get </p>
<p><span class="math-container">$$x^n - a = x^{p^rm} - a = \prod^m_{v = 1}(x^{p^r} - \alpha_v).$$</span></p>
</blockquote>
<p>So far, there is not much to comment on about Lang's set up. His preliminary work is quite straight forward. </p>
<blockquote>
<p>We may assume inductively that <span class="math-container">$x^m - a$</span> is irreducible in <span class="math-container">$k[x].$</span> We
contend that <span class="math-container">$\alpha$</span> is not a <span class="math-container">$p$</span>-th power in <span class="math-container">$k(\alpha).$</span> Otherwise,
<span class="math-container">$\alpha = \beta^p, \beta \in k(\alpha).$</span> Let <span class="math-container">$N$</span> be the norm from
<span class="math-container">$k(\alpha)$</span> to <span class="math-container">$k$</span> then </p>
<p><span class="math-container">$$-a = (-1)^mN(\alpha) = (-1)^mN(\beta^p) = (-1)^mN(\beta)^p.$$</span></p>
</blockquote>
<p>This is where Lang begins to lose me. I understand his field Norm argument, as it follows from substitution and the realization of the field Norm as the product of Galois conjugates. And here <span class="math-container">$-a$</span> coincides with this product, hence this equality follows. But I don't see why Lang begins to invoke induction here. If someone could explain how this helps us, I would be extremely grateful. </p>
| 0non-cybersec
| Stackexchange |
Roger Goodell is doing an AMA at 2pm EST today.. | 0non-cybersec
| Reddit |
I found this on Deviant art, thought Reddit might enjoy it.. | 0non-cybersec
| Reddit |
WOOP WOOP. | 0non-cybersec
| Reddit |
/r/teenagers, what is your HONEST opinion on bullying? And is it blown out of proportion?. | 0non-cybersec
| Reddit |
Ping fails: is a webserver configuration issue or not?. <p>When I ping a dedicated ip on my server I get the following:</p>
<pre><code>ping XXX.XXX.95.175
PING XXX.XXX.95.175 (109.72.95.175): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
</code></pre>
<p>If I ping the main ip on my server instead it works:</p>
<pre><code>ping XXX.XXX.95.174
PING XXX.XXX.95.174 (109.72.95.174): 56 data bytes
64 bytes from XXX.XXX.95.174: icmp_seq=0 ttl=57 time=15.813 ms
64 bytes from XXX.XXX.95.174: icmp_seq=1 ttl=57 time=15.183 ms
64 bytes from XXX.XXX.95.174: icmp_seq=2 ttl=57 time=36.285 ms
</code></pre>
<p>So I was now wondering: is it an issue in my webserver configuration file or should I contact my hosting provider ? </p>
<p>They already told me that it is my webserver configuration issue.. but I'm not sure about it.. could you give me some tip please ?</p>
<p><strong>Update</strong></p>
<p>Should I just add this ?</p>
<pre><code>iface eth0:1 inet static
address XXX.XXX.95.175
netmask 255.255.255.0
gateway XXX.XXX.95.174
</code></pre>
| 0non-cybersec
| Stackexchange |
Cute pitbull after bath time. | 0non-cybersec
| Reddit |
Why you should be wearing socks with sandals. | 0non-cybersec
| Reddit |
Three for the price of one. | 0non-cybersec
| Reddit |
How to selectively transition from safe mode to normal mode?. <p>This question is very closely related to <a href="https://askubuntu.com/q/16274/13003">What exactly is "Ubuntu Desktop Edition" safe mode?</a> (and I'm having exactly the same problem), as the comment says the answer given may be confusing safe mode from the boot menu and safe mode from GDM.</p>
<p>Assuming we choose the "Ubuntu Desktop Edition (safe mode)" from the login screen, firstly what does this not load in relation to not safe mode? and secondly is there a way of finding out which modules differ between them, and then selectively starting them to find out which one is causing the problem?</p>
<p>Effectively doing the transition from safe mode to normal mode step by step.</p>
<p>Thanks.</p>
| 0non-cybersec
| Stackexchange |
dont allow user to kill program started as another user using setuid bit. <p>i have a binary with below permissions.
<code>
-rwsr-xr-x. 1 root root
</code>
so when some user X tries to execute the binary, its runs as root. Moreover, the user is able to kill this process(running as root) from his id using
<code>
kill -9
</code>
Any way to prevent the user from being able to kill the process. </p>
| 0non-cybersec
| Stackexchange |
14.04 LTS Ubuntu wifi stops working and disconnects after few minutes from rebooting. <p>I installed ( ubuntu 14.4 ) 2 days ago (it's important to mention I'm still a beginner).</p>
<p>On the first day my home WiFi worked fine, but on the second day and until now my WiFi stopped working and if I reboot, it works for about 5 minutes and disconnects again .</p>
<p>Edit 2 : I've run the wireless script AGAIN when the WiFi is NOT working <a href="http://pastebin.ubuntu.com/9597828/" rel="nofollow">here</a> </p>
<p>and when working <a href="http://pastebin.ubuntu.com/9597302/" rel="nofollow">here</a> </p>
<p>When running a <code>tail -f /var/log/{messages,kernel,dmesg,syslog}</code> in one window and open an additional terminal and doing a <code>sudo rmmod rtl8723be&&sleep 5&&sudo modprobe rtl8723be</code> I get the <a href="http://pastebin.ubuntu.com/9554278" rel="nofollow">following output</a></p>
<p>Edit 2 : here's the tail again <a href="http://pastebin.ubuntu.com/9598000/" rel="nofollow">here</a></p>
<p>How should I proceed?</p>
| 0non-cybersec
| Stackexchange |
I want this doll.. | 0non-cybersec
| Reddit |
All the videos about the Flotilla massacre. . EDIT: add video: [http://vimeo.com/12429821](http://vimeo.com/12429821) (15 min)
EDIT: add video (american citizen killed) [http://www.youtube.com/watch?v=RlElXOJV4CA](http://www.youtube.com/watch?v=RlElXOJV4CA) (22 sec)
onboard: [http://www.youtube.com/watch?v=DSFwyWyVo74&feature=player_embedded](http://www.youtube.com/watch?v=DSFwyWyVo74&feature=player_embedded) 2:50 -
israeli side video: [http://www.youtube.com/watch?v=-7i9WSfnDNc](http://www.youtube.com/watch?v=-7i9WSfnDNc) 2:21 -
aerial: [http://www.youtube.com/watch?v=dLrX7fznVgI](http://www.youtube.com/watch?v=dLrX7fznVgI) 1:50
more: [http://www.livestream.com/insaniyardim/CUT](http://www.livestream.com/insaniyardim/share?utm_source=lsplayer&utm_medium=ui-share&utm_campaign=insaniyardim&utm_content=insaniyardim)
report: [http://www.youtube.com/watch?v=MB-Mk4bFz-U&feature=player_embedded](http://www.youtube.com/watch?v=MB-Mk4bFz-U&feature=player_embedded) 9:36 -
more (israeli side): [http://www.youtube.com/watch?v=XAMFnu8ZBwk&feature=player_embedded#!](http://www.youtube.com/watch?v=XAMFnu8ZBwk&feature=player_embedded#!) 1:38
YOUTUBE: [Gaza flotilla search](http://www.youtube.com/results?search_query=gaza+flotilla&aq=f)
Please post the videos you find and I'll add them here.
| 0non-cybersec
| Reddit |
H3H3 Vs. the WSJ. | 0non-cybersec
| Reddit |
How can I get Pandora to play a certain song?. <p>Are there any tricks to get Pandora to play a specific song you want to listen to?</p>
<p>I <a href="https://webapps.stackexchange.com/questions/5445/pandora-song-seed-vs-thumbs-up-whats-the-difference">have noticed</a> that songs that I use as seeds are usually not played on the same radio station. I don't mind that when you start a station it doesn't play the specific song you used as the seed, but I think that it's ridiculous how it <strong>goes out of it's way</strong> to specifically not play that song, ever, on that station.</p>
<p>Besides the obvious benefit of playing a song you like, there are also other reasons it's important for a song to play on a station, such as when you want to thumbs-up a specific song in order to <a href="https://webapps.stackexchange.com/questions/5448/how-can-i-narrow-the-focus-of-a-station-on-pandora">narrow a station's variety</a>.</p>
| 0non-cybersec
| Stackexchange |
Why a wired mouse is preferred......... | 0non-cybersec
| Reddit |
Distribution of $\bar{X}$ of n Bernoulli's. <p>I am trying to derive the distribution of <span class="math-container">$\bar{X}_n$</span> where <span class="math-container">$X_1, X_2,...,X_n$</span> are iid <span class="math-container">$\sim \mathrm{Bern}(p)$</span>. I used two approaches but I am debating myself and questioning which one would be correct (if any).</p>
<p>Method 1: Using MGF
I used the moment generating function and ended up with <span class="math-container">$\bar{X}_n \sim \mathrm{Bern}(p^n)$</span></p>
<p>Method 2:
I used the CLT and ended up with <span class="math-container">$\bar{X}_n \sim N(p, \sqrt{pq}/n$</span>) for n being large.</p>
<p>I am not sure which one is correct (if any). </p>
<p>Can someone tell me if I am doing this right or not?</p>
<p>Thank you,
I appreciate your help</p>
| 0non-cybersec
| Stackexchange |
To the r/fitness people doing starting strength: Post your work set weights, progress and general experience with the program!. 3 workouts into starting strength, here are my work set weights from my most recent lifts.
* Squat: 175x5x3 - planning on 10 lb increases
* Bench 185x5x3 - planning on 5 lb increases
* Deadlift 195x5 - 225 lbs next, after that maybe 15 lb increases
* press 85x5x3 - planning on 2.5 lb increases.
* power cleans (still learning)
I was surprised my press started off so weak, I started at 90 and dropped back to 85 after stalling the first workout. I just seem to have horrible endurance for the press... I just seem to run out of gas easily on this one, esp after squats. Resting more between work sets seems to help.
I've never squatted this frequently in my life, I'm hoping for some steady and consistent gains there.
Deads still feel a little easy, but I don't want to be too aggressive with my weight increases. I'd rather have moderate, sustainable increases than aggressive increases and early stalls.
Power cleans are a difficult movement for me. The racking position isn't as impossible as I thought it would be but I'm still working on the full body coordination to get this one right.
I know my bench is high relative to my other lifts, but my squat and dead numbers should overtake this soon. This is the only lift I consider myself already conditioned on.
| 0non-cybersec
| Reddit |
Whats the best way to implement and design walls in an isometric tile game?. <p>The game I am thinking about where this solution would be applied, is a game where tiles can be changed, sort of an editor. You are going to need to make graphics for 2 types of walls: west facing and east facing or north/west.</p>
<p>There seems to be 2 approaches to having walls in an isometric tile game:</p>
<ul>
<li>Draw them slightly outside the tile (The Sims 1, Theme Hospital, Jagged Alliance 2, Project Zomboid)</li>
<li>Make them 1x1(tile) large and have them be drawn on their own tile (Ultima 8, every rougelike)</li>
</ul>
<p>Example drawing</p>
<p><img src="https://i.stack.imgur.com/9YBqP.jpg" alt=""></p>
<p>The second method seems to be the easiest way to do it. Since the wall takes up the entire tile, you need not to worry about overlap into the floortile and having to design patterns around that. You do get another problem though if you want to make patterns in a different size than the grid. Like if you want to have rather slim walls. Your grid will then also need to be larger. On the plus side only 1 wall piece is needed.</p>
<p>The first aproach requires some code to detect the variation off wall to draw and might look a little odd unless the floor tiles are designed around it. It also requires at least 4 pieces.</p>
<p>Which method is the prefered way to go about this and why?</p>
| 0non-cybersec
| Stackexchange |
Frozen water in layers. | 0non-cybersec
| Reddit |
[Young] Westbrook knocks down another jumper putting OKC up 22 and runs by the Mavs bench saying, "Not tonight, not tonight.". | 0non-cybersec
| Reddit |
MEGA Esports vs. Lowkey Esports / 2019 World Championship Play-In - Group C / Post-Match Discussion. ###WORLDS 2019 PLAY-IN
[Official page](https://eu.lolesports.com/en/league/worlds) | [Leaguepedia](https://lol.gamepedia.com/2019_Season_World_Championship/Play-In) | [Liquipedia](https://liquipedia.net/leagueoflegends/World_Championship/2019/Play-In) | [Live Discussion](https://www.reddit.com/r/leagueoflegends/comments/dcnqtb/2019_world_championship_playin_group_stage_day_2/) | [Eventvods.com](https://eventvods.com/featured/lol?utm_source=reddit&utm_medium=subreddit&utm_campaign=post_match_threads) | [New to LoL](http://lol.gamepedia.com/New_To_League/Welcome)
---
###MEGA Esports 0-0 Lowkey Esports
**MG** | [Leaguepedia](https://lol.gamepedia.com/MEGA) | [Website](http://www.megaesports.gg) | [Twitter](https://twitter.com/MEGAEsportsSEA) | [Facebook](https://www.facebook.com/MEGALoLSEA) | [YouTube](https://www.youtube.com/c/megaesports)
**LK** | [Leaguepedia](https://lol.gamepedia.com/Lowkey_Esports.Vietnam)
---
###MATCH 1: MG vs. LK
[**Winner: tbd** in 29m](https://imgur.com/mo1wDpV)
Player of the Game: tbd
||Bans 1|Bans 2|[G](#mt-gold)|[K](#mt-kills)|[T](#mt-towers)|D/B|
|:--|:--:|:--:|:--:|:--:|:--:|:--:|
|**MG**|[gragas](#c-gragas) [morgana](#c-morgana) [qiyana](#c-qiyana)|[xayah](#c-xayah) [reksai](#c-reksai)|75.8k|21|8|[H](#mt-herald)^2 [O](#mt-ocean)^3 [O](#mt-ocean)^4 [C](#mt-cloud)^5 [B](#mt-barons)^6 |
|**LK**|[renekton](#c-renekton) [yuumi](#c-yuumi) [jayce](#c-jayce)|[olaf](#c-olaf) [elise](#c-elise)|73.8k|19|5|[O](#mt-ocean)^1 |
|**MG**|21-19-39|[vs](#mt-kills)|19-21-39|**LK**|
|--:|--:|:--:|:--|:--|
|Rockky [camille](#c-camille) ^3|6-2-7|TOP|2-4-6|^4 [gangplank](#c-gangplank) Hani |
|Lloyd [taliyah](#c-taliyah) ^3|3-4-5|JNG|4-5-11|^1 [akali](#c-akali) DNK|
|G4 [pantheon](#c-pantheon) ^1|5-7-10|MID|6-3-6|^3 [lee sin](#c-leesin) Artifact|
|DeuL [kaisa](#c-kaisa) ^2|6-3-6|BOT|6-5-3|^1 [syndra](#c-syndra) Celebrity|
|PoP [nautilus](#c-nautilus) ^2|1-3-11|SUP|1-4-13|^2 [thresh](#c-thresh) Venus|
---
[This thread was created by the Post-Match Team](https://postmatch.team). | 0non-cybersec
| Reddit |
Taking integrals of polar equations. <p>This is an example question that I am going through.
My question is, <strong>why are they using $\frac12$ instead of $\pi$ to integrate the area?</strong></p>
<p><img src="https://i.stack.imgur.com/HljP7.png" alt="Make a sketch of the region and its bounding curves. Find the area of the region."></p>
| 0non-cybersec
| Stackexchange |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.