text
stringlengths 3
1.74M
| label
class label 2
classes | source
stringclasses 3
values |
---|---|---|
iPad 2 Display Leaks in China. | 0non-cybersec
| Reddit |
What is the jasperrepots-fonts jar for and how to use it?. <p>i'm evaluating JasperReports for report generation. I have some problems with report portability between Windows and Linux. I found a (hacky) solution to make it work cross platform. However i wonder what is the <code>jasperreports-fonts</code> for:</p>
<pre><code><dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports-fonts</artifactId>
<version>5.6.1</version>
</dependency>
</code></pre>
<p>I see that it contains the DejaVu Sans font but i have no idea how to use this jar (i found nothing on the net) and if this would solve my cross platform soft in an elegant, simple way.</p>
<p><img src="https://i.stack.imgur.com/E45O1.png" alt="enter image description here"></p>
<p>Can you tell me more about this jar?</p>
| 0non-cybersec
| Stackexchange |
How to edit a box so that it's not selected when clicking inside it?. <p>How to edit a box so that it's not selected when clicking inside it?</p>
<p>(I can still select it by clicking its edge.)</p>
| 0non-cybersec
| Stackexchange |
Is there a way to control bass and treble under Windows 7?. <p>My volume control device for my speakers recently decided to stop working so now I am forced to control the volume through purely software means, but my sub-woofer is still a little too loud. </p>
<p>Is there anyway to control the bass and treble under Windows 7? I remember this being a feature under XP but I've looked all over the mixer options and I don't see anything.</p>
<p>Is Windows itself doesn't have this feature, can someone recommend a good third party application?</p>
| 0non-cybersec
| Stackexchange |
How can I purchase something from the US iTunes store if I live in Australia?. Is there a way to make an account that can buy items from the US iTunes store?
I want buy a few episodes of America's Game, but my iTunes account doesn't work. Is there a way around this? | 0non-cybersec
| Reddit |
Determine if Json results is object or array. <p>I am using .net web api to get json and return it to the front end for angular. The json can be either an object or an array. My code currently only works for the array not the object. I need to find a way to tryparse or determine if the contents are an object or array.</p>
<p>Here is my code </p>
<pre><code> public HttpResponseMessage Get(string id)
{
string singleFilePath = String.Format("{0}/../Data/phones/{1}.json", AssemblyDirectory, id);
List<Phone> phones = new List<Phone>();
Phone phone = new Phone();
JsonSerializer serailizer = new JsonSerializer();
using (StreamReader json = File.OpenText(singleFilePath))
{
using (JsonTextReader reader = new JsonTextReader(json))
{
//if array do this
phones = serailizer.Deserialize<List<Phone>>(reader);
//if object do this
phone = serailizer.Deserialize<Phone>(reader);
}
}
HttpResponseMessage response = Request.CreateResponse<List<Phone>>(HttpStatusCode.OK, phones);
return response;
}
</code></pre>
<p>The above may not be best way of doing this. Its just where I am now.</p>
| 0non-cybersec
| Stackexchange |
How to remove user register/login in Drupal. <p>My website don't need user login function. Only system administrator could post new contents. How to remove user register and login in Drupal?</p>
<p>Thanks!</p>
| 0non-cybersec
| Stackexchange |
Found this little kitty today in my front yard, my cat couldn't be more happy with it!. | 0non-cybersec
| Reddit |
Stochastic Calculus Self-Study Background required. <p>I am a CS graduate with working knowledge of calculus, probability and stats. I passed my CFA 2. I currently work 9-5 at a bulge bracket bank. </p>
<p>I plan to attend a good MFE program in the fall of next year. As part of my pre-MFE prep, I am devoting my evenings to study the math pre-requisites with gusto. </p>
<p>Currently, I am doing the following:</p>
<ul>
<li>Solved and worked through Differential and integral calculus by N.Piskunov</li>
<li>Completed chapters 1-3 & reading further, elements of real analysis, Bartle</li>
<li>Reading and solving Elements of Integration and Lebesgue measure</li>
</ul>
<p>Given that, I have time only until May '17, it would be extremely helpful, if someone could recommend just the precise set of topics to study from the below areas</p>
<ul>
<li>Real Analysis</li>
<li>Measure theory essentials</li>
<li>measure-theoretic probability & renewals, queues and martingales</li>
<li>ODEs and PDEs essentials</li>
</ul>
<p>before my classes start. While I am not a math major, the goal is at the end of the course, I want to be really good at my stuff. </p>
<p>I am enjoying the real analysis proofs and I think that's a good rigorous start.</p>
<p>Thanks,
Quasar.</p>
| 0non-cybersec
| Stackexchange |
TIL that breathing the air in Beijing has the same health risks as smoking 21 cigarettes a day.. | 0non-cybersec
| Reddit |
One of the best moments at Ultra (wait for it...). | 0non-cybersec
| Reddit |
The way Iowa's counties are set up. | 0non-cybersec
| Reddit |
SAO Abridged Episode 5 Out.. | 0non-cybersec
| Reddit |
Why is keto so poorly received at /r/loseit?. I actually get frustrated, reading lose it, seeing people with a new determination posting about it's time for a change etc.
They lay out their plan, to eat basically nothing, cut out fats and load up on fruits and veggies, eat 8 meals a day, do ridiculous amounts of cardio daily. Most of those threads have someone suggest keto, a few people will agree.
I feel like the OP's always just sit down, write all the conventional wisdom they've ever heard down on paper, and create an impossible-to-stick-to plan for themselves. Makes me frustrated, I know people succeed on that type of plan, but many more fail.
I know keto isn't for everyone, but most people who do try it in an informed fashion see the results, not just in weight loss but overall health.
anyways, random rant. | 0non-cybersec
| Reddit |
Ancient african snoop dogg statue I found in a thrift store. | 0non-cybersec
| Reddit |
Sketching sets of complex numbers, e.g. $z=i$. <blockquote>
<p>Sketch the following sets:</p>
<ol>
<li><span class="math-container">$\displaystyle M = \left\{z \in \mathbb{C}: \left\lvert\frac{z+3i-4}{z+6}\right\rvert \leq 1, z\neq -6\right\}$</span></li>
<li><span class="math-container">$\displaystyle N= \left\{z \in \mathbb{C}: z^3-i=0\right\}$</span></li>
</ol>
</blockquote>
<p>(1) I wrote for <span class="math-container">$z= x+iy$</span> and used that in the fracture. After that I multiplied the fracture with the complex conjugate to get the <span class="math-container">$i$</span> out of the denominator. But then my number got really long: <span class="math-container">$\frac{(x^2+2x-24+y^2+3y)-i((xy-4y)-(18+3x+6y+xy))}{(6+x)^2+y^2}$</span>. Although I could separate it into the real part and the imaginary part now. I don't think my way seems to be right.</p>
<p>Could you point me to the right direction.</p>
<p>(2) <span class="math-container">$z^3-i=0 \Leftrightarrow z^3 = i \Leftrightarrow(x+iy)^3=i \Rightarrow x=0 \land y=1$</span>. So that means <span class="math-container">$z=i.$</span> So that would mean that <span class="math-container">$Re(z) =0$</span> and <span class="math-container">$Im(z)=1$</span>. But wouldn't that mean that there would be only one point in set <span class="math-container">$N$</span>?</p>
<p>Another question from another exercise. I calculated the complex number and got as a result: <span class="math-container">$z=-1024-i1024$</span>. So the <span class="math-container">$Re(z)=-1024$</span>, but is <span class="math-container">$Im(z)= -1024$</span> or <span class="math-container">$Im(z)= 1024$</span>? I thought it should be <span class="math-container">$Im(z)= -1024$</span> since <span class="math-container">$z$</span> is defined as <span class="math-container">$z=x+iy$</span>. Is this correct?</p>
| 0non-cybersec
| Stackexchange |
is your child texting about ROME?. | 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 |
Rxjs, How to link up callback method to Observable?. <p>I need to link up a call-back method to the Observable chain.</p>
<pre><code>private testMethod(): Rx.Observable<any> {
const deferred = this.$q.defer();
let promise = deferred.promise;
this.$window.fileChooser.open((results: any) => {
deferred.resolve(results);
}, (error: any) => {
this.Logger.log(error);
});
return this.rx.Observable.fromPromise(promise)
.map((contentURI: string) => {
// need to link call-back method
this.$window.FilePath.resolveNativePath(contentURI, (absolutePath: any) => {
// need to pass absolutePath to next map method
return absolutePath;
});
})
.map((fileEntry: any) => {
let results = [];
results.push({
fileEntry,
mimeType: 'image/jpeg'
});
return results;
})
.catch(this.ExceptionService.observableCatcher('error'));
}
</code></pre>
<p>from the promise, I can get a contentURI, and I need to call the <strong>this.$window.FilePath.resolveNativePath</strong> method which is using the call-back . and it should return the absolute path to next map method.</p>
<p>How can I link up the call-back method between returning promise and parsing map method?</p>
<p><a href="https://i.stack.imgur.com/vBNF2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vBNF2.png" alt="enter image description here"></a></p>
| 0non-cybersec
| Stackexchange |
We have had her for one year, and she has changed our life. So she needed a party!. | 0non-cybersec
| Reddit |
Extensible \rightrightharpoons and \leftleftharpoons. <p>How to achieve extensible double-harpoons in the style of the <code>\xleftrightharpoons</code> family of arrows from <code>mathtools</code>, but with both harpoons pointing in the same direction?</p>
<p><img src="https://i.stack.imgur.com/j6xUz.png" alt="enter image description here"></p>
<p>Preferably without Tikz.</p>
| 0non-cybersec
| Stackexchange |
The service cannot find the resource identified by the resource URI and selectors. <p>When run <code>winrm set -?</code> command, I can see the following example how to disable a listener:</p>
<pre><code>C:\Users\Administrator>winrm set -?
Windows Remote Management Command Line Tool
winrm set RESOURCE_URI [-SWITCH:VALUE [-SWITCH:VALUE] ...]
[@{KEY="VALUE"[;KEY="VALUE"]}]
[-file:VALUE]
Modifies settings in RESOURCE_URI using specified switches
and input of changed values via key-value pairs or updated
object via an input file.
Example: Disable a listener on this machine:
winrm set winrm/config/Listener?Address=*+Transport=HTTPS @{Enabled="false"}
</code></pre>
<p>However, when I run exactly the same command in <code>cmd</code> as suggested above, I've got the error:</p>
<pre><code>C:\Users\Administrator>winrm set winrm/config/Listener?Address=*+Transport=HTTPS @{Enabled="false"}
WSManFault
Message
ProviderFault
WSManFault
Message = The WS-Management service cannot process the request. The service cannot find the resource identified by the resource URI and selectors.
Error number: -2144108544 0x80338000
The WS-Management service cannot process the request. The service cannot find the resource identified by the resource URI and selectors.
</code></pre>
<p>And in PS I've got different error:</p>
<pre><code>PS C:\Users\Administrator> winrm set winrm/config/Listener?Address=*+Transport=HTTPS @{Enabled="false"}
Error: Invalid use of command line. Type "winrm -?" for help.
</code></pre>
<p>The service is up and running (<code>test-wsman</code> in PS runs fine):</p>
<pre><code>C:\Users\Administrator>winrm e winrm/config/Listener
Listener
Address = *
Transport = HTTP
Port = 5985
Hostname
Enabled = true
URLPrefix = wsman
CertificateThumbprint
ListeningOn = 10.152.26.30, 127.0.0.1, ::1,fe80::5efe:10.152.26.30%14, fe80::f9c5:141f:ff25:6253%12
</code></pre>
<p>What am I missing? How can I run the above example successfully?</p>
| 0non-cybersec
| Stackexchange |
What arguments exist against ever using the keyword substitution feature in many version control systems?. <p>Are there any arguments out there against using the keyword substitution (i.e. replacing <code>$Revision$</code> with <code>$Revision: 5$</code>) feature in many version control systems? Are there any overall bad practices that using the feature encourages? Are the any pervasive and hard-to-solve problems that it causes when you do use it?</p>
<p>Here an argument against using it:</p>
<ul>
<li><a href="http://mercurial.selenic.com/wiki/KeywordPlan#Why_You_Don.27t_Need_It" rel="nofollow">Keyword Substition: Why You Don't Need It</a></li>
</ul>
<p>It's succinct, and I think the argument about the problems it causes for binary files is cogent, but I don't find it compelling.</p>
| 0non-cybersec
| Stackexchange |
This is literally 100% true. | 0non-cybersec
| Reddit |
Hyperbolic function equations. Where do they come from?. <p>My text (Stewart's Early transcendentals) is going into hyperbolic functions, but I'm a bit confused about some statements they are making. All I know about hyperbolic functions is that the distances between a point on the hyperbola and the two foci are constant. IT's the locus of all these points I think. This text I find confusing:</p>
<p><a href="https://i.stack.imgur.com/npHo4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/npHo4.png" alt="enter image description here" /></a></p>
<ol>
<li><p>On the circle... if the angle is <span class="math-container">$\frac{\pi}{6}$</span>, the area is <span class="math-container">$\frac{\pi}{6}$</span> too right? The area isn't double? Say the radius is 1, that means the area is <span class="math-container">$\pi \cdot r^2 = \pi$</span> and we divide the area the area by 6 because of the radian measure. But why does the text say the trig case t represents twice the area of the shaded sector?</p>
</li>
<li><p>What does <span class="math-container">$\cosh{t}$</span> represent?</p>
</li>
<li><p>Why does <span class="math-container">$\sinh{x}$</span> equal <span class="math-container">$\frac{e^x - e^{-x}}{2}$</span>?</p>
</li>
</ol>
| 0non-cybersec
| Stackexchange |
Fujifilm X-T200 review. | 0non-cybersec
| Reddit |
You hear about the agnostic, dyslexic insomniac?. He stays up all night, every night, wondering if there truly is a dog. | 0non-cybersec
| Reddit |
Expo build fail: Repeated error about transparency on icon in expo build despite no transparency. <p>I have been trying all afternoon to run expo build:ios with expo-cli for the first time so I can get my first expo app onto TestFlight but I'm repeatedly getting the error: "Your application icon can't have transparency if you wish to upload your app to Apple Store." </p>
<p>I have checked with get info and the icon file is showing no alpha channel. I've put the icon on a white background and merged the layers in photoshop which is supposed to remove transparency, I've even tried saving it as a jpeg so there isn't transparency but the result is the same. I've checked my app.json file and it's in line with the example given in a similar issue on the expo github channel. It's also here: <a href="https://github.com/callyb/expo-cli-build-error/blob/master/app.json" rel="nofollow noreferrer">https://github.com/callyb/expo-cli-build-error/blob/master/app.json</a>. </p>
<p>I am at a loss - the app works great on both my devices and simulators, published on expo and running in expo production mode and I just can't see where the error might be (I'm assuming it's probably not the icon...) Does anyone have any suggestions? Are there any tools I can use to check where the error may be? Many thanks for any help...</p>
| 0non-cybersec
| Stackexchange |
[No Spoilers] A hospice patient's final request was to watch the Battle of Winterfell. The 'Game of Thrones' cast did her one better. | 0non-cybersec
| Reddit |
This is what Northwestern Europe looked like over 8200 years ago. | 0non-cybersec
| Reddit |
A bunch of people have they're birthdays right about now, guess it's just a coincidence that it's been 9 months since Valentine's. | 0non-cybersec
| Reddit |
how to update records else insert records in postgresql. <p>How to perform update and insert in same query? i need to update the record, if it is not present then it has to perform insertion i tried this </p>
<pre><code>UPDATE bank SET Address= $2,"PANCard"= $3,"IFSC" = $4 WHERE user_id = $1;
INSERT INTO bank (user_id,bank_details,"PAN",bank_acc,"UAN",tax)
SELECT '$2','$3','$4','$5','$6'
WHERE NOT EXISTS (SELECT * FROM bank WHERE user_id=$1);
</code></pre>
<p>but am getting </p>
<pre><code>{
"name": "error",
"length": 123,
"severity": "ERROR",
"code": "42601",
"file": "postgres.c",
"line": "1274",
"routine": "exec_parse_message"
}
</code></pre>
<p>please help me here</p>
| 0non-cybersec
| Stackexchange |
[I ate] a 36" pepperoni pizza - baby for scale. | 0non-cybersec
| Reddit |
Balls.. | 0non-cybersec
| Reddit |
Redefinition of a pointer in global scope. <p>In <a href="https://stackoverflow.com/questions/21151653/why-is-setting-a-derefernce-pointer-equal-to-a-primitive-illegal">this question</a> I am thoroughly confused about this seemingly basic aspect of C. Consider these two lines of code:</p>
<pre><code>int *ptr;
*ptr = 2;
</code></pre>
<p>gcc will emit the following warnings:</p>
<pre><code>main.cpp:4:1: warning: data definition has no type or storage class [enabled by default]
*ptr = 2;
^
main.cpp:4:2: warning: type defaults to 'int' in declaration of 'ptr' [enabled by default]
*ptr = 2;
^
main.cpp:4:8: warning: initialization makes pointer from integer without a cast [enabled by default]
*ptr = 2;
^
</code></pre>
<p>What type is <code>ptr</code> being defaulted to, <code>int</code> or <code>int*</code> (as in, is <code>ptr</code> a pointer, or an <code>int</code>)? If so, does this mean that <code>ptr</code> is pointing to address 2, or is that unchanged? I would assume that it's changed because it crashes unless you give <code>ptr</code> a valid address. </p>
<pre><code>int i = 5;
int *ptr;
*ptr = &i;
int main(){
printf("%d", *ptr); // 5
}
</code></pre>
<p>I am aware of the possibility of undefined behavior and that you shouldn't ignore warnings, but I'm trying to see what actually happens here.</p>
<p>For context, see the comment chain under this <a href="https://stackoverflow.com/a/21151739/1508519">answer</a>.</p>
| 0non-cybersec
| Stackexchange |
Django template can't loop defaultdict. <pre><code>import collections
data = [
{'firstname': 'John', 'lastname': 'Smith'},
{'firstname': 'Samantha', 'lastname': 'Smith'},
{'firstname': 'shawn', 'lastname': 'Spencer'},
]
new_data = collections.defaultdict(list)
for d in data:
new_data[d['lastname']].append(d['firstname'])
print new_data
</code></pre>
<p>Here's the output:</p>
<pre><code>defaultdict(<type 'list'>, {'Smith': ['John', 'Samantha'], 'Spencer': ['shawn']})
</code></pre>
<p>and here's the template: </p>
<pre><code>{% for lastname, firstname in data.items %}
<h1> {{ lastname }} </h1>
<p> {{ firstname|join:", " }} </p>
{% endfor %}
</code></pre>
<p>But the loop in my template doesn't work. Nothing shows up. It doesn't even give me an error. How can i fix this? It's supposed to show the lastname along with the firstname, something like this: </p>
<pre><code><h1> Smith </h1>
<p> John, Samantha </p>
<h1> Spencer </h1>
<p> shawn </p>
</code></pre>
| 0non-cybersec
| Stackexchange |
Preferring forward edges to cross edges during graph DFS traversal. <p>It's well known that depth-first search order of a graph is (usually) not unique, and multiple orders are possible depending on the order in which successors are processed for each node. Let's consider rooted directed graphs in the following discussion.</p>
<p>Muchnick 1997 gives an example:
<a href="https://i.stack.imgur.com/nOw3J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nOw3J.png" alt="Two DFSes of a simple graph"></a>.</p>
<p>Intuitively, DFS with (more) forward edges is "better"/"more useful" than one with (more) cross edges. Is there a methodology/algorithm for ordering successor selection to construct such DFS spanning trees (like (b) in the example above)? (Of course, an algorithm better than generating all possible DFS trees in exponential time and then selecting "the best".)</p>
| 0non-cybersec
| Stackexchange |
Netanyahu Lashes Out at Criticism of Israel. | 0non-cybersec
| Reddit |
'Alarming': NSA spy agency triples collection of US phone records. | 0non-cybersec
| Reddit |
Got an unlimited budget for a build? Why not a 3.2Tb SSD?. | 0non-cybersec
| Reddit |
Pharrell -- Happy [Instrumental] My friends and I used violin, cello, guitar, and bass to reimagine “Happy” as a funky instrumental jam. | 0non-cybersec
| Reddit |
Kobe responding to Mavs trash talker. | 0non-cybersec
| Reddit |
In June, the reddit SF book club will be discussing 'Embassytown' by China Miéville. | 0non-cybersec
| Reddit |
Trying to regex for strings longer than 22 characters. <p>I have a very long array of data, and I need to quickly whizz through it and make sure that none of the <strong>names</strong> are longer than 22 characters. I understand that I could truncate it on the display side, but I would rather tackle this with a proper solution, of just removing them :)</p>
<p>This is my sample</p>
<pre><code>$profiles[257] = array('name'=>'FedupKissingFrogs', 'age'=>27, 'sex'=>'F', 'location'=>'XXXXXXXXXX');
$profiles[260] = array('name'=>'Lil_Greta_90', 'age'=>20, 'sex'=>'F', 'location'=>'XXXXXXXXXX');
$profiles[262] = array('name'=>'lOOkfOrme86', 'age'=>24, 'sex'=>'F', 'location'=>'XXXXXXXXXX');
$profiles[259] = array('name'=>'youvefoundME', 'age'=>21, 'sex'=>'F', 'location'=>'XXXXXXXXXX');
</code></pre>
<p>And here is the regex that I have come up with so far, which doesn't seem to work at all</p>
<pre><code>'[A-Za-z]{20,40}'
</code></pre>
<p>My plan is that I can use the regex to mark the lines and then I can delete them from within my IDE. There is no programming allowed ;)</p>
<p>-- Edit --</p>
<p>Thanks for all the replies! The idea behind this was a quick and automated way to just scan a flat PHP file containing an array to see if all the names where shorter than 22 characters, as a name longer than that will break the layout, and I've been asked to remove them. I wanted to just search in my IDE and remove the lines.</p>
<p>Matching the characters isn't important as such, any characters are allowable, even space, \ / ~ and * etc. I'm looking more to match length of the string but contained in the <code>=>'$name'</code> container.</p>
| 0non-cybersec
| Stackexchange |
Let's do it. | 0non-cybersec
| Reddit |
Securing a subnet. <p>I have a primary (Actiontec used for wired) and a secondary (Linksys wireless) router.</p>
<p>I want the Linksys wireless router to be as isolated as I can from my Actiontec LAN connections. </p>
<p>Currently I have the Linksys router set as a WAP and on a different subnet.</p>
<p>I can connect to it fine and connect to the internet. I'm just wondering..How secure is this? I basically want anyone connecting from the wireless to be limited to just connecting to the internet, not connecting and seeing any other computers on the network.</p>
<p><strong>More Info:</strong>
Actiontec MI424WR Router (Fios)
Linksys WRT54GL running DD-WRT</p>
<p>Currently Actiontec LAN running to Linksys WAN
Linksys static IP set to 192.168.5.1 instead of 192.168.1.1 putting it on different subnet.</p>
| 0non-cybersec
| Stackexchange |
[No Spoilers] Does anyone have any idea as to whether hbo will have an early premiere for season 5 like they have done in the past?. They did an event at barclays last year where they showed the first episode about two weeks early. do you think they'll do it for this season? | 0non-cybersec
| Reddit |
If the union of two subspaces is the vector space, then one of the subspaces is the vector space Proof. <p>So, I'm trying to prove the following result. </p>
<p>Let <span class="math-container">$V$</span> be a vector space over <span class="math-container">$F$</span>. Let <span class="math-container">$U_1$</span> and <span class="math-container">$U_2$</span> be subspaces of <span class="math-container">$V$</span>. Then, the following is true:</p>
<p><span class="math-container">$U_1 \cup U_2 = V \implies [(U_1 = V) \lor (U_2 = V)]$</span></p>
<hr>
<p>Proof Attempt:</p>
<p>Since <span class="math-container">$U_1 \cup U_2$</span> is a vector space, we have previously shown that <span class="math-container">$U_1 \subset U_2 \lor U_2 \subset U_1$</span>. Hence:</p>
<p><span class="math-container">$[U_1 \cup U_2 = U_1] \lor[ U_1 \cup U_2 = U_2] \implies (U_1 = V) \lor (U_2 = V)$</span>. </p>
<p>Where we have made use of the fact that <span class="math-container">$A \subset B \implies A \cup B = B$</span>. This proves the result. </p>
<p>Can someone check my proof above and see if it's correct? Also, how would I prove this without having proved the statement right at the beginning? Like, how might I prove this from first principles?</p>
| 0non-cybersec
| Stackexchange |
Apparently there's a Reddit group on Goodreads. We should advertise this more.. | 0non-cybersec
| Reddit |
LPT: If you give a bottle of wine, booze or liqueur as a gift to a party host at their home, write a note with your name on it.. Because they likely won't remember who it came from when they finally get around to drinking it.
Source: Not sure who to thank for this bottle of Grappa that I'm finally trying that's been in the wine rack for an unknown amount of time. | 0non-cybersec
| Reddit |
Streaming Replication failing from standby with connection issue. <p>I'm setting up streaming replication between a primary and standby server.</p>
<p>On the standby server, when I start up the instance I see that replication isn't taking place. Looking at the log, I see the following:</p>
<pre><code>2017-02-02 20:37:03 UTC [45618-1] LOG: database system was shut dow
n in recovery at 2017-02-02 20:36:50 UTC
2017-02-02 20:37:03 UTC [45618-2] LOG: entering standby mode
cp: cannot stat '/etc/replarchive/000000010000000000000005': No such file or directory
2017-02-02 20:37:03 UTC [45618-3] LOG: invalid record length at 0/5000098
2017-02-02 20:37:03 UTC [45623-1] FATAL: could not connect to the primary server: FATAL: no pg_hba.conf entry for replication connection from host "10.0.0.5", user "replication", SSL on
FATAL: no pg_hba.conf entry for replication connection from host "10.0.0.5", user "replication", SSL off
</code></pre>
<p>That's a pretty obvious error message, <strong>could not connect to the primary server: FATAL: no pg_hba.conf entry for replication connection from host "10.0.0.5", user "replication", SSL on</strong>.</p>
<p>But on the primary server, <code>pg_hba.conf</code> indeed has the following entry:</p>
<pre><code>host all replication 10.0.0.5/32 md5
</code></pre>
<p>I can't seem to wrap my head around why the standby server is failing a connection with that in place.</p>
<p>So I tried to connect from the standby server to the primary server via <code>psql</code>:</p>
<pre><code># this is on the standby server (10.0.0.5) connecting to the primary server (10.0.0.4)
psql myrepl replication -h10.0.0.4
</code></pre>
<p>Putting in my password when <code>psql</code> prompts me to, I successfully connect to the <code>myrepl</code> database on the primary server.</p>
<p>What am I missing here? Why is recovery on the standby not able to connect to the primary server when it appears obvious that the connection is indeed possible?</p>
<p>Thank you in advance!</p>
| 0non-cybersec
| Stackexchange |
Ninja cat casually defying gravity. | 0non-cybersec
| Reddit |
Match Thread: Juventus vs Torino (Derby Della Mole). [Juventus](http://juventus.com) vs [Torino](http://www.torinofc.it/)
[](//#info) [Juventus Stadium](http://en.wikipedia.org/wiki/Juventus_Stadium)
---------------------------------------------------
**Lineups/Match Info in Comments :)**
--------------------------
[](//#news-big) **Match Events:**
[](//#clock) **0'**: Kick off!
[](//#yellow) **19'**: Paolo De Ceglie (Juventus) is shown the yellow card for a bad foul.
[](//#yellow) **21'**: Migjen Basha (Torino) is shown the yellow card for a bad slide tackle.
**26'**: Gillet collects a poor cross from De Ceglie, but spills it when he collides with a Torino defender. Pogba pounces on the ball for a sure goal, but the referee calls a foul.
[](//#red) **36'**: Kamil Glik (Torino) is shown the red card for a horrendous foul.
[](//#sub) **40'**: Valerio di Cesara (Torino) for Riccardo Meggiorini
**41':** Penalty drawn by Paul Pogba. Pirlo does his best Ramos impression.....
[](//#clock) **45': HALF TIME**
[](//#sub) **45'**: Nicklas Bendtner (Juventus) for Emanuele Giaccherini | 0non-cybersec
| Reddit |
Dude flips on me over 1 cent. (Mobile warning)
So I was working the drive thru at three letter pharmacy and this guy comes through and it’s a normal encounter. He total came to like $44.01 and he gave me a $50. So I’m pulling out the $5.99 and the dude flips
CB: “YOURE REALLY GIVING ME 99 CENTS? JUST GIVE ME THE FUCKING DOLLAR”
Me: “I’m sorry but I’m not gonna like steal from the company”
CB: “THERES NO WAY YOU DONT HAVE A FUCKING PENNY IN THERE SOMEWHERE! JUST GIVE ME THE FUCKING DOLLAR”
Me: “Uh no”
CB: “I COULD PROLLY FIND A PENNY ON THE FUCKING GROUND”
The dude then proceeds to look on the ground outside the car for a penny, and spots one
CB: “THAT MAKE YOU FEEL BETTER? IF I GET THE DAMN PENNY OFF THE GROUND”
Me: *laughing* “yeah if you pick that penny up off the ground I’ll give you the dollar”
so the dude pulled his car around so that he could open the door and got out and really grabbed the penny 😂😭 never seen someone so mad over change lmao
Edit: I get where everyone’s coming from, but not my job and I was never told to “round up”. Most people I would just give the dollar too, but it’s the fact the dude was a dickhead. I just read what the computer tells me to hand them in change, if he didn’t want the 99 cents he should’ve gave me a penny too 🤷🏼♂️
Edit 2: foh if you’re telling me I’m exaggerating this dude for some clout, this happened prolly almost verbatim. My hands were in the cash register pulling out change when the dude snapped. There was no “can I please have a dollar sir” nothing along those lines. I remember being mind blown the dude was snapping out of no where | 0non-cybersec
| Reddit |
Saddle Brown Case after 3 months. Yes I know, the posts are getting old but I like seeing them. Not sure how I got the lines on the back but I love the look of it!. | 0non-cybersec
| Reddit |
An Interesting Look At the Horror Genre by Chris Stuckman. | 0non-cybersec
| Reddit |
Duck Duck GOOSE. | 0non-cybersec
| Reddit |
More sleep, less bad behaviour - New research finds adequate sleep may minimise the impact of many childhood behaviour problems. | 0non-cybersec
| Reddit |
Observations meaning - OpenAI Gym. <p>I want to know the specification of the observation of <code>CartPole-v0</code> in OpenAI Gym(<a href="https://gym.openai.com/" rel="noreferrer">https://gym.openai.com/</a>). </p>
<p>For example, in the following code outputs <code>observation</code>. One observation is like <code>[-0.061586 -0.75893141 0.05793238 1.15547541]</code> I want to know what the numbers mean. And I want any way to know the specification of other <code>Environments</code> such as <code>MountainCar-v0</code>, <code>MsPacman-v0</code> and so on.</p>
<p>I tried to read <a href="https://github.com/openai/gym" rel="noreferrer">https://github.com/openai/gym</a>, but I don't know that. Would you tell me the way to know the specifications?</p>
<pre><code>import gym
env = gym.make('CartPole-v0')
for i_episode in range(20):
observation = env.reset()
for t in range(100):
env.render()
print(observation)
action = env.action_space.sample()
observation, reward, done, info = env.step(action)
if done:
print("Episode finished after {} timesteps".format(t+1))
break
</code></pre>
<p>(from <a href="https://gym.openai.com/docs" rel="noreferrer">https://gym.openai.com/docs</a>)</p>
<p>The output is the following</p>
<pre><code>[-0.061586 -0.75893141 0.05793238 1.15547541]
[-0.07676463 -0.95475889 0.08104189 1.46574644]
[-0.0958598 -1.15077434 0.11035682 1.78260485]
[-0.11887529 -0.95705275 0.14600892 1.5261692 ]
[-0.13801635 -0.7639636 0.1765323 1.28239155]
[-0.15329562 -0.57147373 0.20218013 1.04977545]
Episode finished after 14 timesteps
[-0.02786724 0.00361763 -0.03938967 -0.01611184]
[-0.02779488 -0.19091794 -0.03971191 0.26388759]
[-0.03161324 0.00474768 -0.03443415 -0.04105167]
</code></pre>
| 0non-cybersec
| Stackexchange |
How to use spot instance with amazon elastic beanstalk?. <p>I have one infra that use amazon elastic beanstalk to deploy my application.
I need to scale my app adding some spot instances that EB do not support.</p>
<p>So I create a second autoscaling from a launch configuration with spot instances.
The autoscaling use the same load balancer created by beanstalk.</p>
<p>To up instances with the last version of my app, I copy the user data from the original launch configuration (created with beanstalk) to the launch configuration with spot instances (created by me).</p>
<p>This work fine, but:</p>
<ol>
<li><p>how to update spot instances that have come up from the second autoscaling when the beanstalk update instances managed by him with a new version of the app?</p>
</li>
<li><p>is there another way so easy as, and elegant, to use spot instances and enjoy the benefits of beanstalk?</p>
</li>
</ol>
<p><strong>UPDATE</strong></p>
<p>Elastic Beanstalk add support to spot instance since 2019... see:
<a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/elasticbeanstalk/latest/relnotes/release-2019-11-25-spot.html</a></p>
| 0non-cybersec
| Stackexchange |
Number of unique paths in a complete graph with n verticies. <p>Sorry if this question has been answered before, but I am having difficulty finding it in the suggested list of questions on graph theory.</p>
<p>Consider a complete graph with $n$ vertices and $\frac{n(n-1)}{2}$ edges. Is there an equation which describes the number of unique paths through such a graph from any one vertex to another, that is the number of unique sets of vertices where the start point is connected to the end point without re-intersecting the start? </p>
<p>For example, I guess for a complete graph with three vertices there would be just two ways to get from point A to point B without re-intersecting the starting point.</p>
| 0non-cybersec
| Stackexchange |
Thoughtful architecture. | 0non-cybersec
| Reddit |
After 12 years we finally get a good look at cinematic-quality Trolls (Sorry Gnomes). | 0non-cybersec
| Reddit |
Water repellent based on nanotechnology. This looks incredible. . | 0non-cybersec
| Reddit |
YSK whether you're tone deaf or not.. | 0non-cybersec
| Reddit |
C++ displaying the wrong object. <p>
I am a beginner in C++ and I am trying to create 2 classes that stores Movie for each Day. <br>For example, there are 2 movies on saturday. One of the movie is Batman and the other is Spiderman. So the object <code>Day saturday</code> should store 2 different movies. However, the problem is when I tried to display the object stored in saturday with the function <code>showAllMovies()</code> within the class <code>Day</code>, it showed the last movie only. Any idea what I have done wrong?
<br></p>
<p>EDIT: I can only use these libraries since my assignment won't allow me to use other libraries.</p>
<pre><code><iostream>, <iomanip>, <fstream>, <cmath>
</code></pre>
<pre><code>#include <iostream>
using namespace std;
class Movie {
private:
char* name;
public:
void setName(char* n) {
name = n;
}
char* getName() {
return name;
}
};
class Day {
private:
int movieCount = 0;
Movie movie[20];
public:
void addMovie(Movie p) {
movie[movieCount] = p;
movieCount++;
}
void showAllMovies() {
for (int i = 0;i < movieCount;i++) {
cout << "Index: " << i << ", Name: " << movie[i].getName() << endl;
}
}
};
int main()
{
Day saturday;
int numOfMovies = 0;
cout << "Input the number of Movies: " << endl;
cin >> numOfMovies;
cout << "Input the name of Movie: " << endl;
for (int i = 0;i < numOfMovies;i++) {
char movieName[10];
//Get input
cin >> movieName;
Movie m;
m.setName(movieName);
saturday.addMovie(m);
}
//Show all the name of movies
cout << "All movies on saturday: " << endl;
saturday.showAllMovies();
return 0;
}
</code></pre>
<p><b>
Input:</b>
2
Batman
Spiderman</p>
<p><b>Output:</b><br>
<a href="https://i.stack.imgur.com/NrVM3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NrVM3.png" alt="enter image description here"></a>
</p>
<p>I am expecting to get something like<br></p>
<pre><code>All movies on saturday:
Index: 0, Name: Batman
Index: 1, Name: Spiderman
</code></pre>
<p>
<b>Thanks to everyone helping me out. The Solution is to change</b></p>
<pre><code>char movieName[10];
</code></pre>
<p>to</p>
<pre><code>char *movieName = new char[10];
</code></pre>
| 0non-cybersec
| Stackexchange |
The girl with the color contacts. First, a little disclaimer: I’m mostly a lurker on reddit, never really posting anything. However, after reading a few of the stories in this subreddit, and some recent incidents that brought back some memories… I felt compelled to share a few of mine. I am not American, so accept my apologies for any mistakes in this draft. Also,(and I know that this is assumed) these are very real events that happened to me or people close to me, so I’ve have changed a few details here and there to protect my privacy (as much at is possible to do so these days).
I’m a musician. These days, I mostly play jazz guitar, but I started out as a classical pianist. When I was around 15 years old, still studying at the conservatory, I met a very odd-looking girl who (in retrospect) literally, changed my life.
The conservatory ran an after-school program from 3PM to 7PM, which I attended. My mother usually worked late, and would pick me up at some point between 7and 8 PM every day. This left me with some idle time to roam the halls and rooms and night. The school was so loud during the day, that I welcomed the silence and really enjoyed those hours when it was just me, and a few teachers before closing time. The building was an ancient, 19th century French-style building, four stories high. The old wooden floors creaked so loudly that we always joked one day the pianos would fall through and kill someone. Spoiler alert: that never happened.
Piano was my first class of the day, every day. When I arrived, at around 2:30, the doors to the classroom were closed. The teacher would open them at 3PM. One day, there was music coming from inside when I arrived. I remember thinking it was weird because it was an old show tune, not Debussy or whatever. I tried to open the door, but it was locked. At 3, as always, my teacher opened the door and out walked the funniest looking girl I have ever met. She was a little older than me, and had her hair dyed purple (think Barney), cut Cleopatra-style and was wearing purple contacts (!). As she walked out, she winked at me. I asked my teacher who was the girl playing jazz and if I could get jazz lessons on-the-side too. He looked at me sternly and said: “You’ll never make a living playing Jazz”, and that was the end of THAT conversation. Every day from there on, I would arrive to a different tune. The music was so hauntingly beautiful, it stayed with me the rest of the day. Eventually I got myself a “Real book” and would look for each song I had heard the day before and learn it by myself, at home. They never sounded as good as what I heard outside the classroom door, but it was a start and I was ecstatic. I didn’t see the girl walk out again, though. I asked my teacher why I sometimes didn’t see other students walk out and he showed me a side door, which linked the piano room to a Cello room next door and that was the end of THAT conversation.
One night, it was almost 8PM and I was roaming around the halls as I usually did, when I heard someone singing in the choral room. I remember like it was yesterday, it was “When Sunny gets Blue”. I quickly walked down to the basement and saw the girl, sitting at the piano, just murdering the song with her awesome. It was the same girl who had walked out of the classroom but she had green hair now, with green contacts. “Hey” I said, “I love your style”. She smiled but just kept on playing. I stayed until she finished her song. Then I said “You know, Luca told me I would never make a living playing Jazz… but I listen to you and… I don’t know”. Then, she spoke, and I never forgot her words: “YOU should do whatever the f*ck YOU want”. Eventually, I did. I quit piano and went obsessively into Jazz Guitar.
I kept on with my classical studies, learning as much as I could of Jazz on my own (in the early internet era there were no YouTube tutorials, so… it wasn’t much). I didn’t see the girl again until much later… at least a year or so. My last class of the day was sol-fa, in the fourth floor, and my mom had let me know in advance that she would be a little late so I walked out into the classroom balcony to take some air. She was standing right there! I was very surprised because the balcony was INSIDE the classroom. There was no other way to get in but through the classroom, but I assumed she had been there the whole time and let the thought go. She looked weirder than ever… blonde, almost white hair… and hazel, almost yellow eyes. At the time, I was obsessed with a boy from school and since I had received such good advice the last time, I decided to ask for her thoughts on the matter. She heard my story, very attentively, and then told me a story of her own: about an older man who she had loved, but had broken her heart. I felt so much empathy. I felt like I had all the good luck she didn’t have. The boy I was talking about is now my husband, and I’ll be damned if that conversation (in retrospect) wasn’t a turning point for my decision marry him.
Jump to 10 years later. I’m walking the halls at a music school in Chicago, where I was studying for a Masters in Jazz. I remember distinctly because that was the day I had to decide whether I would stay in the US, or go back to my country. I was on my way to an ensemble class and had to go through a long hall with piano rehearsal rooms on either side. I suddenly heard a familiar voice and a familiar tune: “When Sunny Gets Blue”. I started looking for the room that was the source of the music but they were all empty. I decided to forget about it and just head to my rehearsal when next to me, walking in the opposite direction passed a very young girl, maybe 16 years old. I couldn’t believe my eyes. I turned around and… she was walking backwards and smiling… as if, she had expected me to turn around. I could swear it was her. I was 25 then, but she… she hadn’t aged a DAY. She had pink hair and pink contacts, and as my mouth went agape, she winked at me. Logic tells me that it was probably just some random flirty teenager who just happened to sport that particular look. However, that encounter brought back so many memories… that I decided to come back to my country.
That takes us to today. I told Jean-Pierre, my husband, that I wanted to pick the piano back up. He had an old, vertical Steinway at his mother’s house just collecting dust, so as a Christmas gift for me, he had it delivered to our house. Last night before I went to sleep I heard music coming from the living room. It was “When Sunny Gets Blue”. I was about to get up and tell Jean-Pierre to stop playing but then I saw him lying next to me. I woke him up, thinking there was an intruder and we both walked out to the living room but there was nobody there. I haven’t slept since. I’ve been thinking about this, a lot. About that song and about that girl. I have a friend who now works at the conservatory, and… I just needed to know. So I called him this morning and told him the same story I am now telling you. He verified, and… there was never a student like that in the school. | 0non-cybersec
| Reddit |
Listing Users using RDP. <p>Windows Server 2008 R2</p>
<p>I'm trying to use PowerShell to get me a list of users who have logged into Remote Desktop Services (formerly known as Terminal Services) during the past day. With little understanding and much copy and pasting, I have this little script:</p>
<pre><code>$a = (Get-Date).AddDays(-1)
Get-EventLog -LogName Security -after $a | Where-Object {($_.EventID -eq '4624') -and $_.EntryType -eq 'SuccessAudit') -and ($_.Message | Select-String "Logon Type:\t\t\t10")}
</code></pre>
<p>The default output tells me things have happened and when they happened which is a good start. What I'd <em>really</em> like is to also display the User. Darned if I can figure out how to get the User and/or how to display it.</p>
<p>And that's my question: How can I add the username associated with that Event ID 4624 / Logon Type 10 event? Ideally I'd just like to show the login time and user name.</p>
| 0non-cybersec
| Stackexchange |
Thought on really long flights with under-twos?. We are thinking about taking our little boy on holiday this year while his flight is still free. He'll be 1 in March. One option would be to visit relatives in Australia, or we could go to the USA as we haven't been since our wedding.
We're in the uk, so it's 24 hours to Australia. Has anyone done this? Any thoughts/tips/horror stories? Would a stopover be essential?
Thanks!
edit: Thanks so much for all the advice everyone, we have lots to think about. We've never considered flying business class before, we'll look into it! | 0non-cybersec
| Reddit |
Flow: For the Love of Water [Full]. | 0non-cybersec
| Reddit |
[US] Buffy the Vampire Slayer (1997) 20 years ago today, a slayer was called, chosen to fight the vampires, demons, and the forces of darkness, but all Buffy wants is to be a normal girl, with a normal life. Scheduled to leave on April 1st, so watch it while you can.. | 0non-cybersec
| Reddit |
Image of Homomorphism of Lie groups. <p>This is exercise from Lee: Introduction to smooth manifolds.</p>
<p>Suppose $f \colon G \to H$ is homomorphism of Lie groups (real, finite-dimensional).</p>
<p><strong>Q: Is image $Im(f) \subseteq H$ a Lie subgroup of H?</strong></p>
<p>That is, is there topology and smooth structure on $Im(f)$ such that inclusion $Im(f) \hookrightarrow H$ is immersion, and such that induced operation $Im(f) \times Im(f) \hookrightarrow H \times H \to Im(f) \subseteq H$ is smooth.</p>
<p>The author of <a href="http://www.math.uchicago.edu/~womp/2007/lie2007.pdf" rel="noreferrer">these notes</a> says (last paragraph on the first page) that the answer is no, provides counterexample (dense line on torus), but the proof is ommited. Is it correct?</p>
<p>I need positive proof of that, to understand the following characterisation: Lie group admits faithfull finite-dimensional representation if and only if it is (isomorphic to) Lie subgroup of $GL(n,\mathbb R)$.</p>
<p>One more thing. It is easy to see that $Ker(f)$ is Lie subgroup of $G$ using nontrivial <a href="http://en.wikipedia.org/wiki/Cartan%27s_theorem" rel="noreferrer">Closed subgroup theorem</a>. Is there more direct proof?</p>
<p>Any help is very appreciated.</p>
| 0non-cybersec
| Stackexchange |
Pururambo - (Doc) White guy treks through parts of New Guinea that have never witnessed a white person. | 0non-cybersec
| Reddit |
[USA] Head-on accident this morning during my commute.. | 0non-cybersec
| Reddit |
I drove 3 hours into the California desert, stayed up until 3 am in the cold to get this picture of the Great Orion Nebula. | 0non-cybersec
| Reddit |
Too Much Chicken!. Long story short, I bought a bag of chicken legs/thighs and my plan was to freeze and use one at a time. I had to thaw the whole bag and now subsequently have to cook the whole bag. I already made a bunch of chicken pot pies, any other ideas on how to cook it and have it freeze to reheat well? I don't think I can eat it all this week. :-/ | 0non-cybersec
| Reddit |
How can the actor model be applied to allow pure functional languages to have side-effects?. <p>I just read <a href="http://gbracha.blogspot.com/2011/01/maybe-monads-might-not-matter.html" rel="nofollow">this blog post</a> which argues that monads might be too obscure or difficult to understand as the default "interface to the impure world" in purely functional programming languages; instead, it suggests that the actor model would be more comprehensible when it comes to pedagogy. That may be true -- I do think that actors are easier to understand than monads -- but the post leaves a lot to be desired. In particular, the author offers no <em>examples</em> of what this sort of actor-based purely-functional language would look like, and he doesn't seem to have followed up on the blog post since it was written a few years ago. </p>
<p>So my question is: in what way can actors be leveraged to capture side-effects in a purely functional way? How would source code in that hypothetical language look? What advantages/disadvantages would that approach offer in comparison to monads (outside of the cosmetic differences)? </p>
| 0non-cybersec
| Stackexchange |
Is there a good dual monitor arm solution for iMac 27" i7s?. <p>I currently have an iMac 27" and am considering purchasing another to run in <a href="https://superuser.com/questions/128962/can-i-use-a-27-imac-as-a-additional-monitor-for-another-27-imac">target display mode</a>. </p>
<p>My desk space is a little limited. Is there a dual monitor arm solution that can support the weight of two iMac 27" units (<a href="http://www.apple.com/imac/specs.html" rel="nofollow noreferrer">30.5 pounds (13.8 kg)</a>) as well as their width (<a href="http://www.apple.com/imac/specs.html" rel="nofollow noreferrer">25.6 inches (65.0 cm)</a>) in a side-by-side landscape configuration?</p>
<p>I looked at the <a href="http://www.ergotron.com/Products/tabid/65/PRDID/354/language/en-US/default.aspx" rel="nofollow noreferrer">Ergotron LX Dual Side by Side</a> but the iMacs appear to exceed the width and weight limit this device is rated for.</p>
<p>I'm open to alternate solutions to arms, such as a multi-unit desk stand/mount, but a wall mount is not possible for me at this time.</p>
<p>Thanks!</p>
<p><strong>UPDATE:</strong></p>
<p>There isn't a suitable dual monitor solution that I could find. I ended up purchasing two Innovative iLift 7517-1500's</p>
| 0non-cybersec
| Stackexchange |
Teenager on the run responds to police on FB, asks them to use better picture of her. | 0non-cybersec
| Reddit |
You aren't broke! You're a woman!. So this guy (45) at work has a huge crush on me (38). He's a cool guy to talk to but I'm not interested. He's always telling me how beautiful I am. Our lockers are right across from each other. I go eat at my locker on days when I just want to chill by myself at lunch. Now my awesome quiet space is RUINED. One day he says "Now I got a beautiful woman to look at while I'm over here!"
YUCK! I'm not here to be your eye candy buddy.
So yesterday I saw him at the locker when I was leaving and we were talking about the mandatory overtime. I was saying that I wasn't mad because I need the money because I'm broke. So this dude says "You're not broke." I look at him like WTF? He says "You're not broke. You're a woman. Women can't be broke." I'm standing there thinking what sort of nonsense is this. He says that women can't be broke because they can get a good man to make sure they're ok. He goes on about how I need a man who'll make sure I'm alright so I don't have to work overtime. I told him that I don't want to have to depend on a man. He kept talking about how I a woman needs to be taken care of by a good man. I was going to say something but I didn't have the strength. Then he insists on walking me to my car.
This kind of crap makes my skin crawl. There's nothing wrong with a man supporting his GF or wife but every woman doesn't want to be kept. This has been bothering me all day. I just needed to vent. | 0non-cybersec
| Reddit |
Comparing uniform priors. <p>The background of the problem is this: </p>
<p>Assume that we have a parameter vector $\Theta$ which satisfies $\Theta^\prime\Theta=1$. If we let this vector have the uniform prior, the density of the prior is
$$
\pi(\Theta)=\frac{\Gamma(q/2)}{(2\pi)^{q/2}}
$$
where $q$ is the dimension of $\Theta$. Now, we have a set of possible models in the set $\mathcal{M}=\{2, \dots, k\}$, where each (integer) $i\in\mathcal{M}$ corresponds to the dimension of $\Theta_i$.</p>
<p>What I am supposed to answer is how this prior behaves when comparing dimensions $q+1$ to $q$. A hint I got was to look at what happens to the ratio of a priori probabilities when $q$ increases from for instance 2 to 10 (actually, he said when $k$ increases, but I assume he means $q$). Doing this yields:
$$
\frac{\pi(\Theta_{10})}{\pi(\Theta_{2})}=\frac{\frac{\Gamma(5)}{(2\pi)^5}}{\frac{1}{2\pi}}=\frac{\Gamma(5)}{(2\pi)^4}
$$</p>
<p>but what on earth does this tell me? </p>
<p>Also, I think I found something interesting <a href="http://www.cs.berkeley.edu/~jordan/courses/260-spring10/lectures/lecture6.pdf" rel="nofollow">here on page 3.</a> More specifically, this:</p>
<blockquote>
<p>This becomes more problematic in higher dimensions: the uniform prior in large dimension does not integrate anymore. [...] it tells that most of the probability mass lies at $+\infty$.</p>
</blockquote>
<p>This sounds very interesting, but is not expanded on as far as I can tell. How do I show this? I'm guessing that is what I need to show (even though my vector of uniform distributions is restricted to length 1). Furthermore, the next sentence is very interesting too as I in another exercise am to do the same thing but with standard normal priors;</p>
<blockquote>
<p>If instead one considers a high-dimensional Gaussian distribution $X\sim N (0,1)$, most of the mass is concentrated in a (high dimensional) unit sphere centered at the origin.</p>
</blockquote>
<p>So, can anyone shed some light on this issue? I'm a bit lost, and would appreciate help!</p>
| 0non-cybersec
| Stackexchange |
How can we factorise a general second degree expression?. <p>The expression:</p>
<p>$$13x^2 - 18xy +37y^2 + 2x +14y -2 = 0$$</p>
<p>What I tried was making factors like $(x-a)(y-b)+ $ other terms. </p>
<p>$$\left(x-\dfrac{7}{9}\right)\left(y-\dfrac{1}{9}\right)+\dfrac{2}{81}-\dfrac{13x^2}{18}-\dfrac{37y^2}{18}=0$$</p>
<p>Actually, I <strong>do not want</strong> to completely factorise the expression, but only make it into groups of factors so that I can easily <strong>identify the conic</strong> that it represents.</p>
<p>The method that we were taught was by calculating $\Delta$, given by:</p>
<p>$$\Delta = abc +2fgh-af^2-bg^2-ch^2$$</p>
<p>and cases on when it represents which conic. <strong>But</strong> the problem asks for <strong>elements</strong> of conic too, like focus, directrix etc. These can be identified only when we have it in proper factorised form, which I am unable to do.</p>
<p>Please suggest ways of factorisation as a general rule.</p>
| 0non-cybersec
| Stackexchange |
Chocolate Fondue with Ice Cream, Strawberries, Wafers, and Marshmallows [749 x 739]. | 0non-cybersec
| Reddit |
Dazed and confused, Photo Manipulation [1334x750]. | 0non-cybersec
| Reddit |
How to open a .aes256 file. <p>So I downloaded something from the internet that I barely know what it is the most info I have is from the name(2016-11-07_WL-Insurance_US.aes256). I don't know how to open this file and would like some help. Any software recommendations?</p>
| 0non-cybersec
| Stackexchange |
do ye like my creation i call him rickty. | 0non-cybersec
| Reddit |
Russian colonel Zhirinovsky threatens “total annihilation” of Baltics & Poland. | 0non-cybersec
| Reddit |
<super> + <down> <down> to minimize?. <p><kbd>super</kbd> <kbd>down</kbd> will un-maximize. Is there a way that I could press down a second time and have it minimzie?</p>
| 0non-cybersec
| Stackexchange |
Petition calls to change Bengals' name to 'Cincinnati Harambes'. | 0non-cybersec
| Reddit |
Concerning undetermined coefficients method if $f(x)=\sin(2x)\sin(x)$. <p>for the non homogeneous higher order ODE
$$y''-3y'+2y=\sin(2x)\sin(x) $$
if we want to solve using undetermined coefficients , can we assume that the particular solution has the form
$$y_p(x)=(A\sin(2x)+B\cos(2x))(C\sin(x)+D\cos(x))$$ ?
if no then why we can not?</p>
| 0non-cybersec
| Stackexchange |
french coffee press. | 1cybersec
| Reddit |
Python requests hangs when script launched through crontab. <p>I've got a Python script which downloads data in json format through HTTP. If I run the script through command-line using the requests module, the HTTP connection is successful and data is downloaded without any issues. But when I try to launch the script as a crontab job, the HTTP connection throws a timeout after a while. Could anyone please tell me what is going on here? I am currently downloading data via a bash script first and then running the Python script from within that bash. But this is nonsense! Thank you so much!</p>
<p>Using: 3.6.1 |Anaconda custom (64-bit)| (default, May 11 2017, 13:09:58) \n[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]</p>
<p>P.S.: I haven't found any posts regarding this issue. If there is already an answer for this on some other post, then please accept my apologies.</p>
<p>This is an excerpt from my code. It times out when running requests.get(url):</p>
<pre><code>try:
response = requests.get(url)
messages = response.json()["Messages"]
except requests.exceptions.Timeout:
logging.critical("TIMEOUT received when connecting to HTTP server.")
except requests.exceptions.ConnectionError:
logging.critical("CONNECTION ERROR received when connecting to HTTP server.")
</code></pre>
| 0non-cybersec
| Stackexchange |
How to Fly to Europe for $260 Round Trip!!. | 0non-cybersec
| Reddit |
North Carolina pastor confronted by man with rifle. | 0non-cybersec
| Reddit |
How to install the latest version of Groovy?. <p>I have already installed Groovy in my Ubuntu 10.10 desktop version. Now the language have been released its latest version of Groovy 1.8.
When I try to install using the same command that have been used to install the Groovy previous version, such as :</p>
<pre><code>sudo apt-get install groovy
</code></pre>
<p>I'm getting error like,</p>
<pre><code>0 upgraded, 0 newly installed, 0 to remove and 135 not upgraded.
</code></pre>
<p>So how could I can install, i'm a novice to Ubuntu, so kindly help me.</p>
| 0non-cybersec
| Stackexchange |
How the working class, middle class, and rich spend their income percentage wise. It's more similar than you would imagine. . | 0non-cybersec
| Reddit |
Custom html tags on page render skip HTML parsing for some reason. <p>I don't know, why it's happening, but looks like custom html tags cannot parse it's content properly on page load if there's really a lot of such elements. </p>
<pre><code>document.registerElement('x-tag',
{
prototype: Object.create(HTMLElement.prototype, {
attachedCallback: { value: function() {
console.log(this.innerHTML, this.childNodes); // wrong innerHTML and childNodes once in n-occurrences
}
}})
}
);
</code></pre>
<p>Here's <a href="http://codepen.io/align_the_a/pen/jMgdbM" rel="nofollow noreferrer">an example</a></p>
<p>My hypothesis is that there's some kind of stack, and sometimes this stack just overflows :) </p>
<p>Do you have any ideas on how to fix it?
(I'm already looking under the hood of react fiber.. to get the scheduling from there). </p>
| 0non-cybersec
| Stackexchange |
Django ConnectionAbortedError + TypeError + AttributeError. <p>I am using Python 3.6.0 + django 1.11 + windows 7 64 bit</p>
<p>my website is running fine but I am keep getting this errors.</p>
<blockquote>
<p>ConnectionAbortedError: [WinError 10053] An established connection was
aborted by the software in your host machine</p>
<p>TypeError: 'NoneType' object is not subscriptable</p>
<p>AttributeError: 'NoneType' object has no attribute 'split'</p>
</blockquote>
<p>Why i am getting this ..? and how to fix these errors ?</p>
<pre><code>Traceback (most recent call last):
File "C:\Python36\lib\wsgiref\handlers.py", line 138, in run
self.finish_response()
File "C:\Python36\lib\wsgiref\handlers.py", line 180, in finish_response
self.write(data)
File "C:\Python36\lib\wsgiref\handlers.py", line 274, in write
self.send_headers()
File "C:\Python36\lib\wsgiref\handlers.py", line 332, in send_headers
self.send_preamble()
File "C:\Python36\lib\wsgiref\handlers.py", line 255, in send_preamble
('Date: %s\r\n' % format_date_time(time.time())).encode('iso-8859-1')
File "C:\Python36\lib\wsgiref\handlers.py", line 453, in _write
result = self.stdout.write(data)
File "C:\Python36\lib\socketserver.py", line 775, in write
self._sock.sendall(b)
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine
[18/Sep/2017 12:25:10] "GET /api/dashboard/workorder_list/6/?format=json&_=1505708684218 HTTP/1.1" 500 59
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 32251)
Traceback (most recent call last):
File "C:\Python36\lib\wsgiref\handlers.py", line 138, in run
self.finish_response()
File "C:\Python36\lib\wsgiref\handlers.py", line 180, in finish_response
self.write(data)
File "C:\Python36\lib\wsgiref\handlers.py", line 274, in write
self.send_headers()
File "C:\Python36\lib\wsgiref\handlers.py", line 332, in send_headers
self.send_preamble()
File "C:\Python36\lib\wsgiref\handlers.py", line 255, in send_preamble
('Date: %s\r\n' % format_date_time(time.time())).encode('iso-8859-1')
File "C:\Python36\lib\wsgiref\handlers.py", line 453, in _write
result = self.stdout.write(data)
File "C:\Python36\lib\socketserver.py", line 775, in write
self._sock.sendall(b)
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python36\lib\wsgiref\handlers.py", line 141, in run
self.handle_error()
File "C:\Python36\lib\site-packages\django\core\servers\basehttp.py", line 88, in handle_error
super(ServerHandler, self).handle_error()
File "C:\Python36\lib\wsgiref\handlers.py", line 368, in handle_error
self.finish_response()
File "C:\Python36\lib\wsgiref\handlers.py", line 180, in finish_response
self.write(data)
File "C:\Python36\lib\wsgiref\handlers.py", line 274, in write
self.send_headers()
File "C:\Python36\lib\wsgiref\handlers.py", line 331, in send_headers
if not self.origin_server or self.client_is_modern():
File "C:\Python36\lib\wsgiref\handlers.py", line 344, in client_is_modern
return self.environ['SERVER_PROTOCOL'].upper() != 'HTTP/0.9'
TypeError: 'NoneType' object is not subscriptable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python36\lib\socketserver.py", line 639, in process_request_thread
self.finish_request(request, client_address)
File "C:\Python36\lib\socketserver.py", line 361, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\Python36\lib\socketserver.py", line 696, in __init__
self.handle()
File "C:\Python36\lib\site-packages\django\core\servers\basehttp.py", line 155, in handle
handler.run(self.server.get_app())
File "C:\Python36\lib\wsgiref\handlers.py", line 144, in run
self.close()
File "C:\Python36\lib\wsgiref\simple_server.py", line 35, in close
self.status.split(' ',1)[0], self.bytes_sent
AttributeError: 'NoneType' object has no attribute 'split'
----------------------------------------
</code></pre>
| 0non-cybersec
| Stackexchange |
The Backwater Gospel is a really creepy animation I would recommend you see for yourself.. | 0non-cybersec
| Reddit |
How to control output from crontab?. <p>I am trying to run a test case via automation testing (sahi) , so I am running it repeatedly after 1 hour (via crontab).<br>
What I want is that <strong>whenever my test case fails i should receive the email otherwise not.</strong> Right now I am receiving mail whether it passes or fails.<br>
In short, can I send mail to a person depending upon the output I get in terminal.</p>
<p>I am using Ubuntu 10.10.</p>
| 0non-cybersec
| Stackexchange |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.