Update from 14.04 to 16.04 failed with GPG error

apt-get update after upgrade - I get following message  W: GPG error: http://archive.canonical.com/ubuntu xenial InRelease: At least one invalid signature was encountered. W: The repository 'http://archive.canonical.com/ubuntu xenial InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://ua.archive.ubuntu.com/ubuntu xenial InRelease: At least one invalid signature was encountered. W: The repository 'http://ua.archive.ubuntu.com/ubuntu xenial InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://ua.archive.ubuntu.com/ubuntu xenial-security InRelease: At least one invalid signature was encountered. W: The repository 'http://ua.archive.ubuntu.com/ubuntu xenial-security InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://ua.archive.ubuntu.com/ubuntu xenial-updates InRelease: At least one invalid signature was encountered. W: The repository 'http://ua.archive.ubuntu.com/ubuntu xenial-updates InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://ua.archive.ubuntu.com/ubuntu xenial-proposed InRelease: At least one invalid signature was encountered. W: The repository 'http://ua.archive.ubuntu.com/ubuntu xenial-proposed InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://ua.archive.ubuntu.com/ubuntu xenial-backports InRelease: At least one invalid signature was encountered. W: The repository 'http://ua.archive.ubuntu.com/ubuntu xenial-backports InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details.   Tried   sudo apt-get clean sudo mv /var/lib/apt/lists /tmp sudo mkdir -p /var/lib/apt/lists/partial sudo apt-get clean sudo apt-get update   It did not help.  My current source.list:   ###### Ubuntu Main Repos deb http://ua.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse   ###### Ubuntu Update Repos deb http://ua.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse  deb http://ua.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse  deb http://ua.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse  deb http://ua.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse   ###### Ubuntu Partner Repo deb http://archive.canonical.com/ubuntu xenial partner


How do I display a literal curly brace character when using the String.Format method?  Example:  sb.AppendLine(String.Format("public {0} {1} { get; private set; }",  prop.Type, prop.Name));   I would like the output to look like this:  public Int32 MyProperty { get; private set; }


What is happening in the second Ant Man post credits scene?

At the end of Ant Man, we are treated to two excellent post credits scenes that are setting up the future of the Marvel Cinematic Universe.  One of these scenes shows us that ;      Steve Rogers (Captain America) and Sam Wilson (The Falcon) have found Bucky Barnes (The Winter Soldier) who they have been searching for since the end of Captain America: The Winter Soldier. They begin to talk in hushed tones about what to do next, one of them mentioning that they "can't go to Stark. If only this had happened a week ago" (I didn't catch all the dialogue exactly, so this may be incorrect).   Obviously, this is set up for the upcoming Captain America: Civil War movie, but;      Why can't they go to Stark, and what happened a week ago? Where are they, and how did they find Bucky?   In general, the things seen in the Marvel Cinematic Universe (with the exception of Agent Carter and Captain America: The First Avenger) happen in real time, so I would expect this question (or at least parts of this question) to be answerable based on what we have seen so far.


How to get items created in month of Feb using REST query irrespective of year

I want to create such a query using REST that returns me items created in the month of February. To do so I searched for the functions we can implement to the REST query and I have found month() function available with the reference:       I built the query siteCollection/_api/web/lists/getbytitle('Pages')/items?$select=Created&$filter=month(Created) eq '02'  But it gives me an error The query is not valid   I did not find any example of using the month() function while building the REST query.   Can anyone please help me to do so?


Changing DEM resolution when creating a slope raster?

I want to create a slope map using a LiDAR DEM. I think that I should use the slope tool; but I need a slope map with a 2m resolution and I'm not sure how to do that.   How can I have a slope map with a 2m resolution using a DEM with 1m resolution. See DEM's characteristics in picture below.


I'm thinking about the Borsuk-Ulam theorem for $n = 1$. How can I show that every continuous map $f : S^{1} \to \mathbb{R}$ has some $x \in S^{1}$ such that $f(x) = f(-x)$?   My first idea was: I consider the new function $g = f(x) - f(-x)$. Let's now calculate the zero of $g$, i.e. $f(x) = f(-x)$. This equation is true when $f$ is the absolute value function. Is this the right approach?  Thanks in advance


Cardinal of a group $G$ such that for all $x\in G$ we have $x^2=e$

Let $G$ be a group such that for all $x\in G$ we have $x^2=e$. Show that if $G$ is finite then the order of $G$ is $2^n$.  Here is the solution I have seen in a book.      If G is finite, it can be considered as a vector space over the field $\Bbb{Z}/2\Bbb{Z}$, and then necessarily is finite dimensional, which gives $G$ as a vector space isomorphic to $(\Bbb{Z}/2\Bbb{Z})^n$.   I don't understand why $G$ can be considered as a vector space over the field $\Bbb{Z}/2\Bbb{Z}$. Can, someone, explain this? Please.


What are the Limits of the line of sight requirement in spells?

As wizard, would it be possible to use your familiar's line of sight as your own for spells such as Mirage Arcane which has a range of sight? Would You be able to use a telescope or spyglass to use that spell?


I'm using tomcat6 on an ubuntu server. I have a problem with Java. It looks like it doesn't take the timezone information from the operating system. I used tzselect command to update my timezone and I've also added that line to my .profile file:  TZ='Europe/Istanbul'; export TZ   However, while date command gives this output:  Tue Jul 22 17:20:31 EEST 2014   My tomcat logs are printed with this date:  10:20:30,006 INFO  [StatsServiceImpl    ] - runSaveStatsTask::FINISHED::DATE::7/22/14 10:20 AM   Where can I configure timezone settings which are used by jvm?


OpenLayers 3 - display layer WFS in EPSG:4326

I have to display a layer from a WFS service () using OpenLayers 3.x API (..there's a reason). The WFS service is exposed in .  In similar cases I have always used the following code successfully:  var sourceWFS = new ol.source.Vector({     loader: function (extent) {         $.ajax('http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Bacini_idrografici.map', {             type: 'GET',             data: {                 service: 'WFS',                 version: '1.1.0',                 request: 'GetFeature',                 typename: 'ID.ACQUEFISICHE.BACINIIDROGRAFICI.PRINCIPALI',                 srsname: 'EPSG:4326',                 bbox: extent.join(',') + ',EPSG:4326'             }         }).done(loadFeatures)         .fail(function () {         alert("error loading vector layer");         });     },     strategy: ol.loadingstrategy.bbox, });  function loadFeatures(response) { var formatWFS = new ol.format.WFS();   sourceWFS.addFeatures(formatWFS.readFeatures(response)); }  var vectorLayerWFS = new ol.layer.Vector({   source: sourceWFS, });   But now, this layer WFS isn't displayed on the map and I do not understand why?  What's wrong?


The sum of the elements in a field of at least three elements is 0

This statement seems so simple yet I don't quite know how to start with this proof in a substantial way.  Can anybody help me here?


Ubuntu 14.04 LTS swap partition on ACER Aspire 5720

I have an ACER Inspire 5720 laptop PC (32bits) and will install Ubuntu14.04 LTS on it.  The hard drive has a 160 GB capacity with 2 GB Ram memory. I should like to know how much space I have to reserve for swap and system to keep my PC quick and with enough memory to install a  lot of programs.


How can I "undelete" files on my 1.5 tb external drive?

I accidentally erased my 1.5 tb external hd and need to recover/restore or undo this mistake to save 1.3 tb worth of music mp3's, mp4's, pictures, and programs etc. I am getting a message saying that the disc needs to be formated! What should I do?


I installed Ubuntu server on my conputer. I want to study zotero server code. I have to install Zotero open source server code on Ubuntu server. What command should I use?


Whats the single proper word for spelling mistakes are done for style?  Spider = Spyder  Crack = krack  Creation = kreation  Cat = kat  Inglorious  basterds  = Inglourious Basterds


Can a non-Force trained human wield a lightsaber proficiently?

If someone was incredibly well trained with a regular sword, but had no connection to the Force, would that person be able to wield a lightsaber?  Are there any examples of this or something similar to this in any canon?  I don't know if a Jedi's / Sith's connection to the Force enables them to use a lightsaber, or just increases their abilities with a lightsaber.  I guess  is the obvious example of a non-Force user being pretty badass with a lightsaber, but I'm looking for a regular human here.


Is it possible to travel to multiple Schengen states with a single Schengen visa?

I have a valid multiple-entry Schengen visa issued by the Spanish Consulate in Mumbai, India. I will be travelling to Spain on the 26th of March and then to the UK on 31st of March. Would I be able to travel to France when I leave the UK?


Icon about comment edits is shown, even though this comment has no edits

For example, in  question.        But if you click on this icon, the message about no edits is shown.        P.S. this comment was created by moving an answer into a comments by moderator.


Does compression of matter increase gravity?

Black holes are thought to originate when a star burns out and collapses to a smaller physical size. This compresses it's matter, but would that increase it's gravity? And would it be enough to capture light? If that star's light could have been observed prior to it's collapse, how could it's burning out and collapse enable it to become a black hole and capture light?


Problem: I wanted to make it a dual boot system, however I am unable to get the machine to boot from either the disc or a bootable USB drive. I have disabled the safe boot mode, but still to no avail. I recently purchased a Dell Inspiron 15 this is the configuration:  Operating System:Windows 10 Home (x64) Version 1909 (build 18363.900)  Install Language: English (United States)  System Locale: English (United States)  Installed: 6/18/2020 12:39:21  Servicing Branch: Current Branch (CB)  Boot Mode: UEFI with Secure Boot disabled  System Model: Dell Inc. Inspiron 3593  System Service Tag: xxxxxxx (support for this PC)  Chassis Serial Number: xxxxxx  Enclosure Type: Notebook  Processor:  1.20 gigahertz Intel Core i3-1005G1  primary memory cache: 160 kilobyte  secondary memory cache:1024 kilobyte  tertiary memory cache:4096 kilobyte  64-bit ready  Multi-core (2 total)  Hyper-threaded (4 total)    Main Circuit Board b  Board: Dell Inc. 0TGVJN A00 Serial Number: /384VT33/CNCMC0005C0388/ Bus Clock: 100 megahertz UEFI: Dell Inc. 1.5.0 12/17/2019   Drives  1046.40 Gigabytes Usable Hard Drive Capacity 994.02 Gigabytes Hard Drive Free Space    PC SN520 NVMe WDC 128GB [Hard drive] (128.03 GB) -- drive 1, s/n   20097B451509, SMART Status: Healthy ST1000LM035-1RK172 [Hard drive] (1000.20 GB) -- drive 0, s/n ZDEJNJS5, rev 1002, SMART Status: Healthy Memory Modules c,d 7960 Megabytes Usable Installed Memory  Slot 'DIMM A' has 8192 MB (serial number 43634603) Slot 'DIMM B' is Empty Local Drive Volumes  c: (NTFS on drive 1) * 46.33 GB 5.11 GB free  d: (NTFS on drive 0) 1000.07 GB 988.91 GB free


I am building a new Windows Server 2008 R2 install to host my Joomla! 1.6 website. What are best practices of hosting a WAMP production server? What should I do for partition? A drive for logs, a drive for the OS and a drive for data? What would be the most ideal and secure setup?


I found the sentence "She accepted the award with a becoming humility" as an example of the use of the word "becoming" in Merriam Webster Advanced Learner's English Dictionary. Is the use of the indefinite article in that sentence correct? I thought that humility can be used only as an uncountable noun.


Prove Transformation is one-to-one iff it carries linearly independent subsets of $V$ onto Lin. Ind. subsets of $W$.

A textbook example asks you to prove that for the linear transformation $T\colon V \to W$ that it is one-to one if and only if $T$ carries linearly independent subsets of $V$ onto linearly independent subsets of $W$.   The answer key gives the following solution:     Suppose $T$ is one-to-one.   Then let $S$ be a linearly independent subset of $V$, and let $S' = \{T(s)\mid s \in S\}$. (Notice that we’re not assuming that $S$ is finite.) Suppose there are some   elements of $S’$ $T(s_1), T(s_2), \ldots , T(s_n)$ and scalars $a_1, \ldots, a_n$ such that $a_1T(s_1)+ \cdots + a_nT(s_n) = 0$. Then by the linearity of $T$,      $a_1T(s_1) + . . . + a_nT(s_n) = 0$      $T(a_1s_1) + . . . + T(a_ns_n) = 0$      $T(a_1s_1 + . . . + a_ns_n) = 0$      But $T$ is one-to-one, so $a_1s_1 + \cdots + a_ns_n = 0$, and thus $a_1 = \cdots = a_n = 0$   because $S$ is linearly independent. Thus $S’$ is linearly independent.   I don't understand this solution. Why does $(a_1s_1+...a_ns_n)$ need to equal 0 just because $T(\text{stuff}) = 0$?  A one-to-one function doesn't mean that $T(1) = 1$ and $T(2) = 2$ etc... It simply means all numbers in the codomain must appear in the range.


Mapping array to sequential numbers via dictionary

I have an array:  classes = ["banana","mango","apple"]   I am trying to print this array in a specific format where in each element has to be numbered in a particular sequence.  The desired output is as follows:  classes = [{"banana" : 1, "mango" : 2, "apple" : 3}]   I tried using a for loop as follows:  classes = ["banana","mango","apple"] counter = 0 dat = [] for x in classes:     counter=counter+1     d = x,":", counter     dat.append(d) print(dat)   While this prints   [('banana', ':', 1), ('mango', ':', 2), ('apple', ':', 3)]   this is far from what I require.  Can someone help?


Allocate memory for a linked list struct with or without casting?

after figuring out, how the linked lists stuff works in C I was just wondering how to correctly allocate a new node.  So lets say my linkedlist is defined with the following struct:  typdef struct NewNode {   int data;   struct node *next; } Node;   Now I'm going to create a new temporary node for whatever reason:  node *temp = (node*) malloc(sizeof(node);   Do I need the cast (node*) or can I as I've seen in couple tutorials leave this without the casting. If not can you tell me what possible errors could occur as my implementation without the casting is completly working.  node *temp = malloc(sizeof(node);


Why does this code crash at "temp[2]='X'?

int main(void) { char *temp = "ABCDE"; temp[2] = 'X'; printf("%s", temp); return 0; }   In gdb I could see that temp[2] = 'X' is causing the crash. But why? Could some answer please?


Group theory proof of existence of a solution to $x^2\equiv -1\pmod p$ iff $p\equiv 1 \pmod 4$

I've read through the elementary proof of why there exists a solution $x$ to $x^2\equiv -1\pmod p$ iff $p\equiv 1 \pmod 4$ for $p$ an odd prime. Is there a group theory generalization for this fact as well?


Permission to start a series of advanced regex articles

There are many problems with what I perceive to be countless dupes of low quality questions in the [regex] tag. Rather than complaining about it, I've decided to take matters into my own hands. I'm thinking that I should start a series of [regex] articles. I do fear retaliation from the community, accusation of rep-whoring, etc, so I decided that perhaps I should start with more advanced techniques that is rarely (if ever) covered before. If I get good feedback (by votes and comments), then I may eventually start to cover some of the basics, stuff that has already been covered no doubt dozens if not hundreds of times before (at that point it may become somewhat of a rep-whoring, since it's essentially dupes of many dupes, but I hope in putting together well-written articles with generic but carefully-chosen examples, we can link them from the tag info for good learning resources). I'd like feedback from the community before I start to embark on this effort.  Why advanced first? The advanced articles will most probably be original, i.e. not dupes, but at the same time may not be as useful to the general public as the basic articles. The problem with the basic articles, of course, is that they've already been covered at various corners of the [regex] tag, but rarely (as far as I know) in a way that is comprehensive, self-containing, and aimed at being educational (instead of just writing an answer for the sake of getting votes/acceptances). My reasoning for starting with advanced first is, like mentioned, to avoid accusation of rep-whoring. Once I've earned the community's trust, I'd then gradually move on to the basics.  The Go Ahead OK, guys, I've decided to do this. I'm a bit busy right now so I'm not sure when I'll start, but probably within a week or so. Thanks for the feedback.  List of articles I've started it.       This is not part of the articles, but someone asked a very good inquisitive question, and my solution uses nested reference, so it's very much in line with the current series:    I'll appreciate all feedbacks and comments.  Unresolved questions  Should we create a tag for this series and/or others? What should it be? Is it a ?


Here is my example scenario:  I have a WIN 7 Pro computer with 3 different accounts; John Jack James  This computer sits on a desk on it's own and users RDP on to the machine.  James is already RDP'd on to the machine on his own profile John wants to RDP on to the machine and login with his profile  John wants to use mspaint and draw something James is already RDP'd on and is using excel.  Is it possible for John to RDP on to the same machine and do whatever tasks he needs whilst James is currently on the machine too.  I'm aware this will involve some dll hacking however is the above possible?  Thanks in advanced.  Can what I am asking be achieved using the machine to run 3 virtual machines, then RDP on to the individual Virtual Machines?  Thanks


Why is forecasting of ARMA models performed by Kalman filter

What are the advantages of expressing an ARMA model as a state-space-model and do forecasting using a Kalman filter?  This methodology is for example used in the SARIMAX implementation of python-statsmodels:


Getting P value with mixed effect with lme4 package

I have problem with getting p value from my mixed model, library(lme4)  DWR<-lmer(DWRm2~Growth.stage+Se.application+Growth.stage:Se.application+(1|Block),data=Sub1) summary(DWR)   before I used this model and I got p value with summary my model but now I can't get it, I have just t value


((JavascriptExecutor)driver).executeScript("scroll(0,1000)"); Not working on Selenium Webdriver 3

No matter how many javscript executor lines I use or how many times I change the scrolling positions to different numbers, Selenium WebDriver 3 always takes me to the same place on the list that is doing parallax scrolling.   It scrolls to row 70 of the list but I want to go to row 65. I tried various ways, but it does not work. This same code was working with selenium webdriver 2 before. The element is hidden until you scroll to it through the list so I can't use scroll into view.   Can someone please advise how I can scroll to the element so I can click on it? Thanks.  ((JavascriptExecutor)driver).executeScript("scroll(0,1000)"); ((JavascriptExecutor)driver).executeScript("scroll(1000,2000)"); ((JavascriptExecutor)driver).executeScript("scroll(2000,1500)");   I also tried this and it didn't work either.  javascript.executeScript("window.scrollBy(0,600)", "");


Add an additional form of "I agree" besides starring or pinning (since pinning is restricted to a smaller subset to begin with) or something that we can use to not clog up the right hand star bar.  This is because sometimes you want to say "I agree" but you don't want to star it because ... let's face it, that's not star-worthy, and you don't want to clutter the stream with fifty thousand "like totes for sure, hella right!" because then it becomes one big back-patting party and you lose all semblance of conversation.  So I would propose a fourth "flag" for chat, that allows us to say "I {agree with|like|am of the same opinion as} this comment" and that it would only be useful in the live-chat (and maybe but not really in the transcript) and that it have no other useful semantics (no badges, no list of's [unless the list is of comments you've upthumbed]).


File input 'accept' attribute - is it useful?

Implementing a file upload under html is fairly simple, but I just noticed that there is an 'accept' attribute that can be added to the <input type="file" ...> tag.  Is this attribute useful as a way of limiting file uploads to images, etc? What is the best way to use it?  Alternatively, is there a way to limit file types, preferably in the file dialog, for an html file input tag?


Making an angle of 10 degree and its multiple using compass?

We all know very well how to make an angle of 15 and 45 degree and its multiple using compass. Can anybody tell me how to make an angle of 10 degree and its multiple using compass?


How can I find geodesic in Poincare half-plane model?

In Poincare half-plane model, $M = \{(x,y) \in \mathbb R^2 \mid y > 0\}$ and $ds = \frac{1}{y^2}(dx^2 + dy^2)$. In wiki (), it says that geodesic (straight line) "looks" like semicircles. Can anyone please show me an explicit derivation how to find a geodesic? I have been looking for examples, but could find none.


Short story about apples and oranges, character's grandfather teaches him algebra rather than computer algorithms and estimation

I am looking for an old short story I read at least 30 years ago. It was about apples and oranges (the ubiquitous story problem). The main character has a grandfather that teaches him algebra rather than the current education paradigm of computer algorithms and estimation.


I get ! Undefined control sequence. l.11 \forall n,m \gt  I don't understand why:  \documentclass[preview, border=1pt, convert={outext=.png}]{standalone} \usepackage{amsfonts} \usepackage{mathtools} \usepackage{amsmath,esint} \usepackage{amssymb} \usepackage{siunitx} \usepackage{braket} \usepackage[utf8]{inputenc} \begin{document} \begin{equation*} \forall n,m \gt n_{\varepsilon} \quad \Longrightarrow  \quad ||\mathbf{x}_n - \mathbf{x}_m|| \lt \varepsilon \end{equation*} \end{document}


Upgrade Kubuntu/Ubuntu using ISO (Without fresh install)

Is it still possible to upgrade Kubuntu /Ubuntu without wiping the root partition?   I mean something like this:  instead of do-release-upgrade.  This method will be handy in case of unstable internet.  (My current running systems are Kubuntu 17.10 and Ubuntu 16.04 LTS, and I want to upgrade to 18.04 as soon as it's released)


I think the following sentence is correct both ways with that and without that     The smell of cooking told them (that) there was a meal in the offing.


Help understanding solution to growth of partition function

I'm currently a Combinatorics student trying to parse through this solution. I do not understand the proof currently. Any help understanding it is greatly appreciated.    Question Let the number of partitions be given by the function $p(n)$, i.e. the number of ways of writing the integer $n$ as a sum of positive integers. Prove that that if $g$ is any polynomial function in $n$, then there exists an integer $N$ such that $g(n)<p(n)$ for all $n>N$. Do not use the asymptotic Hardy-Ramanujan formula.    Provided Proof.    Enough to show $n^a<p(n)$ for fixed positive integer $a$. (This is just saying that we want to show $p(n)$ grows faster than any degree polynomial of $n$, right?) We have that $(i_1,i_2,\ldots,i_{a+1},1^{n-i_1-\cdots -i_{a+1}})$ is a partition of $n$ as long as $i_{a+1}\leq i_a\leq \cdots i_1 \leq \lfloor\frac{n}{a+1}\rfloor$. (I really don't understand this step. What is this partition? Of the coefficients or terms of polynomial $p(n)$? And how do we know this is $\leq \lfloor\frac{n}{a+1}\rfloor$?) The number of partitions $n$ of this form is multiset binomial coefficient $$\left(\dbinom{\lfloor \frac{n}{a+1}\rfloor}{a+1}\right)=\frac{\lfloor\frac{n}{a+1}\rfloor(\lfloor\frac{n}{a+1}\rfloor+1)\cdots(\lfloor\frac{n}{a+1}\rfloor+a-1)}{(a+1)!}$$ (I'm assuming that if I can understand (2.) then I can understand this line) This means $p(n)>\left(\binom{\lfloor \frac{n}{a+1}\rfloor}{a+1}\right)$ for all $n>0$. Since $a$ is constant, the given fraction grows with order $n^{a+1}$, which means $p(n)>n^a$ for $n$ sufficiently large. (Why does it grow with order $n^{a+1}$?)   Thanks all again in advance!


Why we don't need to cover all possibilities in calculating expected value

We choose 10 cards at random from a standard deck of 52 cards. Find EV of the number of aces.  If we pick a card and then replace it back EV is 10*1/13.   Why the EV is also 10*1/13 when we get an ace and don't put it back , why don't we need to cover all possibilities here?  EV : Expected Value


How to prove that $ 2<(1+\frac{1}{n})^{n}$ for every integer $n>1$. I was thinking by induction, it works for $n=2$ but then I couldn't move forward.


I know how to scale my software, but how to prevent downtime because of network outages?

We are running rather large LAMP sites which scale well software wise. We use redundant load balancers in front of a bunch  of webservers using MySQL via a proxy in master-slave-slave-slave.   We are using a very large US  provider. They are not very cheap but not the most expensive either.   Last week there was a very large DDOS on their network and our cluster was affected; we lost network for a bit resulting in downtime.   What is the standard procedure to use 2 providers (for instance, one in EU and one in US)? I know how to do the software replication etc wise.   I'm wondering about the way data is sent to the EU network when the US one is down; is DNS the only choice for that? And if yes, how to set that up? Because switching DNS when the server is down seems too slow except when TTL = 0, which means we would be using DNS as a failover system. I understand (from Serverfault for instance), that this is not the preferred method of working.   So what is the preferred method of solving this with near 100% uptime (our cluster has that already, but the network doesn't). Dropping like 1000 requests would be fine, but more is bad and should never happen.


Formatting float to round to two decimals in a print function

I have the following code:  print ("Cost: %f per %s" % (mrate[choice], munit[choice]))   Output:  Cost: 25.770000 per 10gm tube   How can I get it to round to two decimals while printing, so that I get 25.77 in the output?


$Z = x+ iy$ Find real and imaginary part of $\sqrt{x+iy}$ I don't know how to even begin with this , I am really confused


How to use file links in included PHP file

index.php:  <?php require_once("include/header.php") ?>   header.php:  <?php require_once("../../include/config.php") ?>   I have php files and I need to access them using the included file so I need to use something like  <?php require_once("../../include/config.php") ?> that will work with relative paths to this header.php, not to the file which includes my header.


Strange behavior of left arrow key in Excel 2010

When I press the left arrow to return to column A - it will not stop at column A but will continue to wrap around to the end (column XEP or something huge like that). How do I make it stop when it gets to A?  Thank you I understand the home key. Let me restate my question. For example I am at cell number BH21 and for what I'm working on I need to use the left scroll button to move quickly along the row until I reach A column. My problem is that moving that quickly the left arrow button doesn't stop when it reaches A column but just keeps going and wraps around to the very end column XEP21 or whatever the end is. I was already using the spreadsheet with no problem then after modifying a few things this occurred.


Aren't the Mortarboard, Epic or Legendary badges useless on a Meta site?

The site I am most active is TeX.SX and its Meta site. As such, I can only assume that most of the rules there hold for general Meta sites as well, as there is no reputation gain (apart from Meta.SX of course)  Well, in this sense, the Mortarboard, Epic and Legendary badges with their respective requirements of 200 rep once a day, >= 200 rep on 50 days and >= 200 rep gain on 150 days are useless on a regular Meta site.  Perhaps I have some misinterpretations, so please bear with my question ;-)


My workplace has presented me with the opportunity this month to attend a "grammar" webinar that is suppose to help me enhance my grammar skills. I thought they were good already...  I don't have time to attend so will probably miss it, but I feel I should attend because of what was in the email for registration we received.  It gives a list of sentences and asks what's wrong with them, and that if they look correct you should attend!  Could someone explain what is fundamentally wrong with the following sentences?        The firm is proud to have served our clients for fifty years.   Martin and Deborah's reports were both submitted on time.   If you don't feel well, go and lay down.   This is a very unique situation.   I felt badly when my friend lost her job.      They look fine to me and that worries me. The only reason I can think of to attempt corrections is because the email suggests that they are wrong!  My corrections:  For example, in the first sentence are they using "served" in the wrong tense so they're saying they don't serve clients anymore?  In the second sentence is the apostrophe 's' suggesting that Deborah owns both the reports like a possessive (I think that's what it's called)?  I've always followed a rule (I know...) that if I could switch the sentence parts where the comma is and it sounds normal then the comma is OK like in the third sentence. "Go lay down if you don't feel well" sounds normal to me.  Does the badly in sentence five need to be replaced with "bad" because of the trailing -ly?


Today I was studying a correctness proof of an algorithm, and in one of the proof steps and did not understand what was written.  Be $p$ and $n \in N$ ($N$ is the set of naturals numbers), where $p$ is a prime. The property bellow is the property I couldn't understand.  $argmax_{i \in N} (p^i : p^i | n!) = \sum_{j = 1}^{\infty} \lfloor \frac{n}{p^j} \rfloor$   That is, $i$ (the greatest exponent of $p$ such that $p^i | n!$) is equals to $\sum_{j = 1}^{\infty} \lfloor \frac{n}{p^j} \rfloor$.  If someone is interested in consulting the , and the .  Thank you.


Is classification by a semidirect product complete?

For example, let's say we have to classify groups of a certain order. Can all the groups of that order be expressed as some semi-direct products?


I'm using Ubuntu Maverick (Gnome), a month ago I updated like usual whenever Update Manager informed me of new updates. The thing that happened is that a program called kdewallet  got installed on my machine, and every time I try to do something that requires password like svn, it pops up and starts getting really annoying. How can I get rid of it? It's not even in the Synaptic Package Manager.


Bluetooth indicator disappears on turning off bluetooth

Everytime I turn off my bluetooth, the indicator icon in the system tray disappears, as opposed to just greying out as expected. Next time I need to go to the settings select bluetooth to turn it on, which makes the indicator to reappear.  Is there anyway I can make the indicator icon not disappear but stay greyed out when not in use?


Looking for suggestions for an wide angle lens for Nikon FX

I recently upgraded to full frame by getting a Nikon D600. I would like to know what would be an ideal wide angle Lens for this FX camera of mine.  Nikon wide angle lenses are very expensive, so I have been looking into third party lens makers like Rokinon, Samyanag, and Bower.  I have listed the lenses I have looked at.  I was wondering whether someone could suggest me something in regards to this   Budget: I plan to spend less than $500


Support align attribute for HTML img tag

The ability to make text flow around images would be a nice touch!


Trying to inject javascript to every page

Hie.  I'm working on a JS library that makes changes to dom elements and I would like to be able to show people it's effect in my site.  I'm trying to setup some sort of proxy similar to a transparent proxy that I can call him with the url I want to test and it will inject the JS to the site I'm in.   The idea is opening an iframe to the proxy server with a query parameter of the url we want to test. then the server would pull the data, inject a js file to the page and will return the data.  As this should run in the client's browser, I can't make them update the proxy setting.  I thought about using Privoxy or similar proxy servers but couldn't find the right config/feature that will allow me to see the updated data in my browser as a regular client would.   I've also used node.js redirect but several sites blocked that access - not sure if it was port forwarding or anything else.  How can I create a dynamic proxy server that I can send the url to and get the site with the injected javascript?  Thanks in advance, Shahar


Where to get started with landscape photography? What cameras and lenses to start with?

I am a frequent of backpacking and hiking ventures, and find myself browsing landscape photography romantically on a regular basis. I figure i might as well give landscape photography a shot, but I am unsure of where to start.   I am at a loss as to what camera and lense(s) I should purchase first. I'd like to start with the most practical and conservative choices first, as with anything else, it might not be my thing and i dont want to spend $1000 outright.  I mention landscape photography specifically. I am sure that there are certain lenses and cameras that are meant to capture wider scopes(such as landscapes), as well as capturing different lighting (from light coming between the trees and the lighting of twilight in the evening) Any suggestions from those of you with experience in the field?  Much thanks.


ubuntu 14.04 installed on 128Gb ssd zfs pool ("zfshome") across 3x3TB disks, containing audio/video/tv etc.  I originally built this as a nas4free NAS serving my windows boxes around the house.I'm now tryin to turn it into a media server,and being always on,wanted the stabilty of ubuntu,(now that it's more user friendly, in terms of normal users...) Tt seems to me that putting /home/user on the zpool made sense,(being a newby I do frequent reinstalls), but after a week  I cannot find clear instructions how to achieve it, and after so many attempts am thoroughly confused.  Any help appreciated, Ian


What is the portable (POSIX) way to achieve process substitution?

Some shells, like bash, support  which is a way to present process output as a file, like this: $ diff <(sort file1) <(sort file2)  However, this construct isn't  and, therefore, not portable. How can process substitution be achieved in a -friendly manner (i.e. one which works in /bin/sh) ? note: the question isn't asking how to diff two sorted files - that is only a contrived example to demonstrate !


How to vertically center align a cell in a table?

In the table above, I want to center align the third row (/word) and the fifth and sixth row so everything looks neat and clean.  \begin{table}[h] \begin{tabular}{|c|l|} \hline  \textbf{man keys} & \multicolumn{1}{c|}{\textbf{What it does?}} \\ \hline Space & bla bla bla . \\ \hline Ctrl+F &  bla bla bla  \\ \hline Ctrl+B & bla bla bla  \\ \hline /word & bla bla bla \\ \hline q & bla bla bla  \\  \hline n & bla bla bla \\ \hline N & bla bla bla \\ \hline \end{tabular} \caption{\label{tab:table-name} Doing some stuff} \end{table}   I tried using multicolumn{1}{m} but it didn't work.  I also don't want to dramatically change the latex script. Is there something I can include in my table to vertically center align cells on demand?


Difference between process group and job?

What's the difference between a process group and a job? If I type pr * | lpr then is it both a process group as well a job?  What exactly is the difference between a process group ID and a job ID?  Edit: I know it appears similar to , but it is slightly different. Also, I didn't understand this concept from this thread.


How to solve inequality $1-\frac{1}{x}\geq 0$ correctly?

When I try to solve this inequality I get the wrong results: $$1-\frac{1}{x}\geq 0$$ Assuming $x\neq 0$ It's really embarrassing that I can't see what I'm doing wrong. So please help me, telling me where the maths goes wrong :D  $$1-\frac{1}{x}\geq 0 \Leftrightarrow 1\geq\frac{1}{x} \Leftrightarrow x\geq1$$ But this is wrong, since I can easily see $1-\frac{1}{x}\geq 0$ when x<0. So what am I doing wong?


Stupid question but I need to understand:  If $ \cos = \dfrac{\text{adjacent}}{\text{hypotenuse}} $  What is arcosine? $ \text{adjacent} \cdot \text{hypotenuse}$? Is this the same for arcsine and arctangent?


Markdown inconsistency between preview and post when using blank lines

This happened in  on , where we have all sorts of uncommon programming languages to put in a code block. OP's code is copied here at the markdown level:   bbcccbc-cc-b--b-- c b     c  - L`.{6} . $0X  Y`X`\LAPACK .L L  The above uses raw <pre><code> to preserve the blank-only line (by ending with &#32;) between the line with single b and the one with single c (check it by dragging on it). But it is wrong because the code should start with a single empty line, not two; removing a line there will break the entire code block. On the other hand, using the fenced or indented block does not have any way to preserve the blank-only line (it is stripped now, but it should be preserved in order to be a valid code) works as expected with the blank-only lines, but is not shown as such in the preview section. Using fenced block:  bbcccbc-cc-b--b-- c b     c  - L`.{6} . $0X  Y`X`\LAPACK .L L  Using indented block: bbcccbc-cc-b--b-- c b     c  - L`.{6} . $0X  Y`X`\LAPACK .L L  Edit: I just found that the three blanks are preserved on the main post. I saw the bug described above in the preview section, and wrongly assumed that it will be the same when actually posted. It is very likely a bug in the preview renderer.


Accidently formated my external 1TB hard drive!

Is there any way to recover the data off of my 1TB hard drive once it has been erased? From my mac I just selected that external drive and clicked on erase and both the partions are gone now :(  PS: I havn't copied anything on it.


Story ID - Humans of various epochs are transported to a world

I woke up the other morning with this story on my mind.  I've tried some googling, but my efforts are coming up with nothing useful.  My memory of the specifics of the material is pretty pathetic, apologies.  What it was: A novella, novel, or series of novels  When I read it/When it was written: I read it between 2000 and 2010; it would have been written no more than 10 years earlier.  The Plot(ish): A group of modern or near future men and women are transported instantaneously to a strange planet by means I can't remember.  It may have been your typical "glowing ball of mysterious light", but I'm not certain.  All future activities occur either on that world or on a shifting series of closely related worlds.    Upon arrival they find wilderness and eventually, while evading Earth-like jungle terrors, they stumble on an encampment of Victorian era Brits.  The Victorians are very much "Dr. Livingston, I presume." types, and we find that they were zapped out of 1800's England in much the same way.  The Victorians (if I recall correctly) keep a Neanderthal or Australopithecene as "servants" and are doing their best to preserve their version of civilization against the barbaric surroundings they've been forced into.  They clearly arrived well before the main characters, but if I recall correctly, they did not arrive 200+ years before, more like 20.  Eventually we meet some slavers who may have been pirates before being taken.  I think that they enslave one of the main characters for a period of time before he is rescued.  There may be some weird religious imagery at this point in the story as well.  The most bizarre bit of the book involves the eventual encounter of the main characters with an extremely advanced race of hominids who have evolved from a completely different ancestor, perhaps Gigantopithecus.  They are huge, gorilla-like people who are peaceful and have technology that is way beyond our lineage.  At one point in the story the humans, perhaps with the help of the Gigantopithecuses, look through what is essentially a catalogue of possible Earths.  They see dozens of different planets, each of which has a slightly different timeline, before moving on to some with wildly different histories, like an Earth that has become completely engulfed in ice, from which the Neanderthals come.  This might have been the explanation for all of the people from various time periods arriving at nearly the same time on the story's Earth.  The next bit is spoilered to avoid giving away the ending:      The main characters and the Gigantopithecus and Neanderthal who have teamed up with them figure out how to manipulate a forcefield protected computer/crystal/teleporter thing of mysterious origin in order to send them home (or perhaps just stop more people from being zapped to this place.)  The Gigantopithecus makes a deal with the main characters, they achieve their goal.  The humans had, at one point, promised the Neanderthal that they would help get it home.  The Gigantopithecus understands that to be an unbreakable contract (it cannot lie) and so the price of its help winds up being transportation of the Neanderthal, along with an unwilling human companion (a woman who has been unpleasant throughout the story, if I remember right) back to the ice world from which the Neanderthal had come.


How to account for different degrees of familial relatedness (eg, twins) in a linear mixed model? Is heteroscedasticity a problem?

(Let me preface this by stating that I am somewhat of an R newb and also a LMM newb.)  I have a very, very simple research question. I have a continuous outcome variable ("HAPPY"). I have two factors that divide my sample into 4 cells (Factor1, Factor2), and I want to assess whether there are any main effects or an interactions. A simple 2 x 2 ANOVA should do the trick.  There are two issues:   The individuals in my sample are family members. Every single individual has a fraternal twin or an identical twin in the dataset. I know that this throws off all the independence assumptions, so I was instructed to use linear mixed models and include the family identification variable (which identifies an individual as being part of a twin pair) ("Family") in my dataset as a random effect.  Right now, this is my R syntax:    model <- lme(HAPPY ~ Factor1*Factor2, random= ~1|Family, data=mydata,              method="REML", na.action=na.omit) summary(model) anova(model,type="marginal")   So right now, there is only one random effect. But -- theoretically, we'd expect that identical twins and fraternal twins would differ in their degree of relatedness (the variable is called "twintype"). Should this be reflected in my model, and if so...how? Conceptually, I'm struggling with how it would be specified. And practically, I'm also struggling -- putting the above syntax together was actually quite the accomplishment for me! Heteroscedasticity. What is the best way to assess if heteroscedasticity is affecting my model? Is it something I need to be concerned about and check for?  Right now I'm just eyeballing--plot(fitted(model), resid(model))--and looking for cone shapes.  And if heteroscedasticity is an issue, what can I do to fix it? From what I've gathered from the google machine, I can enter a weighting command that will account for the inconstant variance. Could I modify my syntax above to read --    model <- lme(HAPPY ~ Factor1*Factor2, random= ~1|Family, data=mydata,               method="REML", na.action=na.omit, weights=varPower())


Setting "Disable tiled raster layer exports" option to export to PDF using PyQGIS

I need to use the setting Disable tiled raster layer exports from the GUI in my Python code, but I can't seem to find it.  exporter = QgsLayoutExporter(layout)     exporter.exportToPdf(path, QgsLayoutExporter.PdfExportSettings())   How can I do this?


#include <stdio.h>  int main() {     int x = 1;      if (++x > 2,5)         printf("%d", ++x);     else         printf("%d", x++); }   I don't understand why the output is 3. ++x == 2 and 2 > 2,5 is false. But the compiler says the if statement evaluates to true.  What is the reason?


My laptop is dual booted with Ubuntu 14 and Windows 10. When I booted up my System there was beep sound at the BIOS screen, taking to the service person said that the hard disk (Seagate 500GB) is dead. The recovery and the service charge was extremely expensive. So I had to look for an alternate way.  I used  to make a bootable windows on my USB Pen drive and saw that I can see my Hard disk but it shows empty (500GB free). I was relieved slightly by assuring that it was not a Hardware issue.  My question is how to :   Restore the OS and partitions as it was before. Recover files and folder structure from both the OS partition.. If it is a problem with MBR, how to repair/fix it? I have also purchased  so I could use some tools to use my hard drive as slave and recover data.    Please suggest me a way or a tool which would help me get the data back.  Thanks.


How to run the dialog command with proccess?

NOTE: Please look at my code, it's a Bash script.  I want to display both dialogs on the screen at the same time,  one dialog displays this:  tail –f from - /var/log/proccess1.log   and the second dialog display this:  tail –f from the file - /var/log/proccess2.log   but the sad fact is that I can display only one dialog and not both dialogs (because when I run the first dialog, the second dialog will activate only if the first dialog is killed).  So I create a process on the second dialog ( ….. ) &, in order to display both dialogs. But …. the second dialog creates a process number but does not create the second dialog's GUI, (seems that when we create dialog with process, the process does not send the dialog to standard output).  So how do I run the second dialog with a process but send the dialog GUI to the screen, or is there some other solution in order to display both dialogs on screen?  My code       #!/bin/bash       # this dialog will locate the tail box on the top of the screen      dialog --begin 15 10  --tailbox   /var/log/proccess1.log  13 125         # this dialog will locate the tail box down in the screen      ( dialog --begin 37 10  --tailbox   /var/log/proccess2.log    13 125 ) &


Possible to import Office365 users into local active directory domain?

My company has an office365 setup for all employees. We also have just implemented a domain controller locally which we want to use to authenticate a few things here in the office. The problem is that we want to have a way to use single sign on/password synchronization. The Azure dirsync tool syncs from the local domain controller up to office365, but not the other way around. Is it possible to get this done?


Is it possible for Google to Index a site with login?

I have a real estate site that we require the user to login after viewing 3 properties.  Is it possible for Google to index these property listings while still keeping that functionality in place?  What is the best way to handle this on the up and up with Google?  Thanks!


How is Ctrl + / working as undo in Bash 5.0.3 on Debian 10.0?

I have a Debian 10.0 system. It has GNU bash, version 5.0.3(1)-release (x86_64-pc-linux-gnu). In Bash prompt, I type foo bar baz  Then I type alt + backspace two times. The words baz and bar get deleted and only foo remains. Then I type ctrl + / two times to undo the deletions. The words baz and bar reappear. How is ctrl + / working as the undo command? I don't see it defined anywhere? $ echo / | grep -E "/|undo"  # just testing my regex / $ bind -p | grep -E '/|undo' "\e/": complete-filename "\C-x/": possible-filename-completions "/": self-insert "\C-x\C-u": undo "\C-_": undo


Having trouble with apt-get upgrade and removing KDE Plasma

I am running Ubuntu 15.10 with Gnome DE.  I installed KDE plasma to try it out but sudo apt-get upgrade started giving me errors so I ppa-purged the kde ppa and removed kubuntu desktop with the terminal in Gnome.  Now when I run sudo apt-get upgrade , I get the following error:    The following packages have unmet dependencies:     kde-telepathy-minimal : Depends: kde-config-telepathy-accounts      (>= 15.04.0) but it is not installed.   sudo apt-get install -f does not resolve the issue. I tried sudo apt-get remove kde-telepathy-minimal to remove the package which gives me this error:    The following packages have unmet dependencies: kde-telepathy : Depends: kde-telepathy-minimal   Attempting to remove 'kde-telepathy' gives me the original error.  I am stuck. Please help me and thank you Ubuntu community!


How to force close a program when TasK Manager and desktop is hidden by a non responding program

I would like to know if there is a way to force close a non-responding program when Task Manager is hidden by that program; I mean the program is covering whole desktop.  So is there a key sequence or something?  This happened to me few times when I used ALT+TAB on games.  I'm using a Windows 10 machine.


I have recently installed a new hard drive to my Ubuntu 10.0.4 box. I used System -> Administration -> Disk Utils to format the disk (ext4 file type) - but did not create a partition (is this advisable?).  I have manually mounted the drive as /mydata.  I want to have the machine automatically mount the device on startup/reboot. How may I do this?  [[Update]]  This is the output from running sudo fdisk -l on my system:  Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000858bf     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *           1       59334   476595200   83  Linux /dev/sda2           59334       60802    11789313    5  Extended /dev/sda5           59334       60802    11789312   82  Linux swap / Solaris  Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000  Disk /dev/sdb doesn't contain a valid partition table  Disk /dev/sdc: 16.0 GB, 16026435072 bytes 254 heads, 63 sectors/track, 1956 cylinders Units = cylinders of 16002 * 512 = 8193024 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000     Device Boot      Start         End      Blocks   Id  System /dev/sdc1               1        1955    15641929    c  W95 FAT32 (LBA)


Is there a way to view the source code of a function, class, or module from the python interpreter? (in addition to using help to view the docs and dir to view the attributes/methods)


I start to use Ubuntu 14, and i have a problem with my wifi. Actually I'm connectibg via Wifi in my laptop, but when i start Ubuntu ( its installed by VMware ), i have internet but its showing like I'm using Ethernet not Wifi.


Template function to match with a std::map type

There are four maps in my program:  std::map< int, SigGen* > id_to_siggen_map; std::map< int, std::vector< double > > id_to_ticks_map; std::map< int, std::vector< double > > id_to_samples_map; std::map< int, QListWidgetItem* > id_to_item_map;   and I want to write a template function that, given an id, can delete from any of the above maps an entry corresponding to that id, i.e.  int id = 4; //could be any other id number delete_from_map(id, id_to_siggen_map); //deletes entry corresponding to id 4 from id_to_siggen_map delete_from_map(id, id_to_ticks_map); //deletes corresponding entry from id_to_siggen_map delete_from_map(id, id_to_samples_map); delete_from_map(id, id_to_item_map);    What I have so far:  template <typename T> void delete_from_map(int id, std::map< int, T > mymap){   for (auto it = mymap.begin(); it != mymap.end(); it++){      if(it->first == id){         mymap.erase(it);         break;      }   } }   However, attempts to compile give me undefined reference error for each of the four maps. The error looks like the following:  error: undefined reference to `void DVis::delete_from_map<QListWidgetItem*>(int, std::map<int, QListWidgetItem*, std::less<int>, std::allocator<std::pair<int const, QListWidgetItem*> > >)'   What am I doing wrong here?


Will an underpowered mirror host cause: The query processor could not start the necessary thread resources for parallel query execution

We recently moved our 2016 sql server mirror into Azure, but it's on an underpowered machine.  Our main database server has 16 physical cores with hyper threading and 2 numa nodes.  We have set the maxdop to 16 for this machine. Edit: I had previously set it to 8 and saw the same issues. The mirror host has a much weaker cpu, so we had to set the maxdop to 4. When we are running an intense query on the principle database, we sometimes get an error: Unexpected job failure.: System.Data.SqlClient.SqlException (0x80131904): The query processor could not start the necessary thread resources for parallel query execution.  I am wondering if could be due to the underpowered mirror server running out of resources while it is trying to commit all the transactions that are being fed across to it from the principal server. I'm not a DBA, and we currently do not have one on staff (so I guess I am the DBA), so a lot of these settings and errors are foreign to me. Edit2:  This question is different from the one suggested because I originally followed the directions and scripts in that post to set my MAXDOP to appropriate values.


I don’t like you going there.   I don’t like you to go there.      Like can take both -ing and a to-infinitive as complement. But can the expression that the matrix subject and the subject of to-infinitive are different, as (2), be used?  says “We'd like you to come and visit us” is possible. But I’m not sure if (2) is possible.    added samples after consulting Angela Downing's English Grammar, BNC, and COCA:     And her mother did not like her to be out for too long. (Angela Downing, English Grammar, from BNC)   He did not like her to leave his side for more than a day. (T S Eliot. Ackroyd, Peter. London, from BNC)    Christina did not like them to receive such a bad impression of Crystal Springs. (BNC)    she did not like you to call them geraniums! (BNC)    However, schools did not like students to feel at home in arts and science. (BNC)    Mrs Mantini did not like Rachaela to sit and read in the shop. (BNC)    Dear mamma did not like me to use them. (COCA)    David McCutcheon talked with therapists about the one thing he did not like women to do. (COCA)    We did not like them to run free, leaving us at the mercy of their floods. (COCA)    Dad did not like kids to touch his desk. (COCA)    The woman did not like him to speak of dying, death, burial. (COCA)


In Gnome Classic in 14.04, I am running a program (it opens a chm file, but I forgot the name of the program and the window doesn't show the name of the porgram) in a window. It becomes non responsive, and even right clicking it and choosing close don't close it.   How can I find out its pid, and kill it from gnome terminal? Thanks.


How can I remove the space after enumerated item and the next line in text ? I use following:  \begin{enumerate}     \setlength{\itemsep}{0pt}     \item bi-axial etc. etc.      \item uni-axial etc. etc.     \item uni-axial etc. etc.     \item uni-axial etc.  \end{enumerate} %


Is there a way to view historical flight loads for American Airlines or other airlines?

I work for an airline and I'm able to view flight loads through a company travel portal.   What I'm looking for is historical data for American Airlines on a specific flights that flew last year. Even more public information like if the flight was sold out would be helpful.   Does anyone know of a database that keeps track of past flight information in anyway?


Disable sleep on laptop lid close in tty1

I'm using Ubuntu Desktop 15.10 on a laptop and it runs an Apache server with SSH as well. When using a GUI, I have the power options set to not sleep at all even when the laptop lid is closed, but recently I stopped the X-System and am now using TTY1 instead to save resources. However, in TTY1, if I close the laptop lid, the computer goes to sleep and prevents the SSH and Apache server from working. Any way to prevent this easily? The realistic answer I bet is to use Ubuntu Server instead (unless I'm mistaken and Ubuntu Server will also sleep on lid close) but I don't exactly want to switch yet unless there's an easy way to switch to it like you can switch from ubuntu-desktop to lubuntu-desktop? Any advice is welcome to prevent the computer from sleeping


How can I prove that m, n in $m^2 = 6n^2$ are not integers?

Having $n, m \neq 0 $ and $m^2 = 6n^2 $  How do I prove that $ n,m \notin \Bbb Z$  using somewhat formal methods?


window batch) manipulating 'for /f "usebackq" %%f in (`find "str" path`)' sentence

I symplified the problem here: @echo off set res=  echo 'na': for /f "usebackq" %%f in (`find "na" things.txt`) do set res=%%f  echo %res%  pause>nul  and that things.txt file in the code is like: banana apple napoleaon nellson naples paris  As you expect, the result is just naples  because 'naples' contains 'na' and is located below in the text than other words contain 'na.' But what I want is printing other words like 'banana' and 'napoleaon' above the 'naples.' Specifically, I want to put them into the variable res through the for /f "usebackq" %%f in ('find "str" path') command. How can I do that?...


I've run a simple python command and it derives the following result. Can anyone tell me why?  a=[[0.12,0.35],[0.66,0.79]] b=[[10*i,10*j] for i,j in a]   and I got the following result:  b=[[1.2, 3.5], [6.6000000000000005, 7.9]]


how to show $*$ gives a binary operation

Set $S$ be the set of all real number except -1. Define $*$ on $S$ by  $$a*b=a+b+ab$$  a) Show that $*$ gives a binary operation on $S$.  Answer from my lecturer was;  Suppose that $a*b=a+b+ab=-1$. Then we obtain that $a=-1$ or $b=-1$. Therefore, $S$ is closed under *.  I not really clear how $a$ or $b$ be -1 since it is not belong to $S$ and how it be close? I need an explanation. Thanks in advanced.


On a shared computer, I have a QGIS project which links up to a PostGIS database that contains my data. If a user wants to access layers from the db, they have to enter the db credentials, so that's OK.   However, I have previously logged on and imported layers from my db into QGIS, and manipulated them in QGIS (styling options based on meta-data, etc.)... Anybody who opens my QGIS project can view these layers in QGIS, and can therefore see the data I wish to be protected in my db.  Is there a way to password protect my QGIS project?


0xc000000f BCD error in windows 10... Nothings working

Its been a long night... I bought a new computer with no os. I was going to copy my copy of windows 10 pro to a 250gb ssd. While copying the power went out. This usually is just a minor annoyance but for some reason it must have went off at the exact wrong time and the hdd head just swiped something wrong... It started off with a windows that just said something along the lines of,  Windows had a error:  error code: 0xc000000f Try to use a boot medium/recovery disk to fix it...   So i had a usb recovery tool and i thought it was just a simple bcd error. I ran CHKDSK and it ran successfully rebooted into my os. I was so happy something finally worked. I rebooted for other reasons in the os, and then i got a different error. This time from my UEFI/BIOS saying   "insert a boot medium with a Operating System"   At this moment i knew something was wrong so i made a windows 10 recovery disk and booted into recovery mode, then proceeded to follow these tutorials or at least some like them       These tutorials fall through all at the same place... When I run bootrec /rebuildbcd it can't find any windows operating systems.  I basically just asking for somebody to put me in the right direction. Thanks to everybody in advance!    EDIT: (after executing suggested bcdboot command)  Links to Pictures of errors:  Windows error display    GParted display of disk


Looking for a book: Magic after the end of technology, with horrifying remnants of technology like large monsters

I read a book as a kid about a world some 1000 years from now (I think), in which there is all sorts of magic. I think the book follows a kid who travels between towns with a mentor discovering the magic. At some point in their journey they pass through a decrepit city with ancient monsters in it that were created by technology; they fight a massive monster that I remember being described as having too many arms and being furry and as tall as the buildings. Other identifying things about this story are that at some point later in the book they go into the land of the angels/sirens/something like that, and have to go through without opening their eyes or something, to get to their destination.  I think of this monster scene often in my aesthetic thinking about how to design worlds, and I really want to find it again and see what it was I remembered and liked so much about it.


How do you turn any quadratic into squared form

For example, $x^2 + 5x + 7$ is $(x + 2.5)^2 + 0.75$ but how would you figure that out?  It's useful for proving any quadratic is greater than 0 but it's not always easy to find so. Thanks!  edit: Sorry I'm dumb I didn't see the + 0.75, this is just the vertex form.


Turn off autocomplete event name internal to Apple's Calendar app on Mac OS?

This is not about system autocomplete, it's about an autocomplete internal to Calendar (autocompletion of the name of the event when you create one) - and is there any way to turn it off.  I have many hundreds of events in ical as I've been using it for about the past five years.     Problem is whenever I create a new event, then start typing in the event name field, as I work out what I want to call the event (or reminder), a giant list of similar past events that I've entered pops up and is annoyingly distracting. I'm simply not interested in those past events anymore and I don't want to know about them. I use ical as a reminders system for tasks, i.e. as a todo list as well as calendar. I find that better than using a separate task app in addition.  I'd love to find a way to turn these suggestions off, without having to delete all past events from my calendar history (which it looks like I might have to resort to).  Haven't found a way to do this but would be very grateful if someone knows how.


How to make a color appear the same on different backgrounds?

Background on color perception:  Due to the nature of the human eye and visual processing by the brain, there's an optical illusion that the same color will look different depending on the background.   It is known as the , illustrated below — center rectangles are identical:   Source:   An illustration  makes the effect of the background's color even more obvious:     Source:   (Note how the two upper-most colors in the second image appear the same, but are actually completely different.)    What about web design?  My question pertains to web design, specifically in this case, the color of link text on different backgrounds.  For a given color of text, how can one find the complementary color to make it appear the same on a certain background?    Let's take a look at an example for this question:  Consider my example below, with yellow text #FFF000 on the following backgrounds:    white #FFFFFF, black #000000, and grey #555555.          As expected, doesn't look the same at all. ()  How can we make it look the same on all three? Clearly, the text on the white background needs to be a darker yellow, and the one on the grey needs hue/tone adjustments. (The surrounding text will also affect it — but that's likely harder to account for.)  Can this perfect color somehow be calculated, based on the Hex, RGB or another system? That's where the crux of this question lies, as it would be much more efficient than manually approximating.


(pyqgis) Is there a way to disable the progress bar in the processing tool

When using processing tool in pyqgis and run, it always creates a progress bar. Is there a way to disable it?  processing.runalg('qgis:fixeddistancebuffer', _layer, distance_tolerance, 10, False, None)   I want to disable it because I get this error when I run my script in travis:     wrapped C/C++ object of type QProgressBar has been deleted See log for   more details       RuntimeError: wrapped C/C++ object of type QProgressBar has been   deleted


For example, when watching revision 2 in  in the side-by-side mode, word "answer" marked as deleted on the left hand side and as added again on the right hand side:        If we switch to the side-by-side markdown mode no "answer" word is highlighted at all (correctly):


Given the following sentence:     You should always use prefixes with your table names   Is the word table properly labeled as a noun or an adjective, as it is functioning as an adjective but the base word is a noun?  Context:  I am prefixing the words in some phrases with abbreviations. Some of the words are giving me trouble in classification. (The message is supposed to be an implicit proof of why adding prefixes to table names in a database is terrible. But I'd like to get it right.)  Here's the full set of sentences for your amusement. However, please restrict your comments to the stated question, for the most part.        com-Don't ver-Listen prep-To adj-Those adj-Other nou-People.    pro-You aux-Should adv-Always ver-Use nou-Prefixes prep-With pro-Your adj-Table nou-Names.    pro-I aux-Have adv-Even ver-Started ver-Using pro-Them prep-In adj-Normal nou-Writing.   com-See adv-How adj-Effective pr-It ver-Is?    nou-People aux-Can ver-Understand pro-Your nou-Writing adv-Better!      This question is part of 3 related questions:    This question    It originally came from


Is it possible to use different CUDA-capable graphic cards to render simultaneously?

I know that you can't mix different spec cards for SLI gaming, but I suspect that when it comes to 3D rendering, the renderer will simply divide the work up automatically.    Choosing the optimum tile size is important for efficient usage of the core's in our processors, I suspect that the tiles will simply be distributed to the difference in power of graphic cards.  So the key to getting it to work efficiently (I suspect) is finding a tile size which allows the renderer to effortlessly divide the work to graphics cards with different cuda core sizes.  In my e specific case, I have a GTX 970 and a TITAN X; can I use them both for rendering?


What are PATH and other environment variables, and how can I set or use them?

Questions about    setting environment variables the PATH   are very common here, and in most cases the answers are very similar to each other. In the future it would be nice to have a good Q/A for this.  So the question is: What are environment variables, like the executable PATH, and how can I change and use them on major operating systems?  A good answer would include a simple explanation of what environment variables and especially PATH mean to the OS, as well as simple guidelines on how to set and read them accordingly.


Oracle request (how to import data excel to oracle)

What are the best and/or easiest methods for importing data from Excel (.xls) into an Oracle database?  Please, kindly clarify with any code examples you can.


is this correct; using lighted rather than lit?

Please help me clarify if this usage of the word "lighted" is correct in the following statement. "I have lighted the candle"


Is it safe to delete the file Caches, in the Library of the Mac OS X Hard Drive?  It's a pretty big file, 3.56 GB, Caches reminds me of logs i don't need or browser cookies.   Is it safe to delete the folder "Caches"?


Can't connect to SSH server using WAN IP address

I have an SSH server behind a NAT router. Machines on the same (NAT'd) network as the SSH server can only connect to the SSH server using the LAN IP, not the WAN IP. Why?  My network looks like this:  (the Internet, via Comcast)       |       | (cable line)   comcast modem. ← External IP of a.b.c.d,       |            internal IP of 10.1.10.1 on 10.1.10.0/24       |       |    box running sshd  (10.1.10.201)   I run an SSH service behind a Comcast router performing NAT. Using the IP address obtained above, I can run ssh me@«that IP» from anywhere on the Internet, and I receive my SSH service. If I run that same command from within the 10.1.10.0/24 network just inside the router, the connection will time out.  The Comcast router is set up to do port forwarding to the SSH machine on the standard port.   The comcast router answers pings, both on the internal and external IPs. The box running sshd answers pings   The device is a piece of junk SMC Networks SMCD3G.  Performing a wireshark on the sshd machine, while attempting to ssh 10.1.10.201 gives normal looking traffic. Attempting an ssh a.b.c.d gives the following:  Source       Destination  Info 10.1.10.11   10.1.10.201  39946 > ssh [SYN] Seq=0 Win=14600 Len=0 MSS=1460 10.1.10.201  10.1.10.11   ssh > 39946 [SYN, ACK] Seq=0 Ack=1 Win=5792 Len=0 10.1.10.11   10.1.10.201  39946 > ssh [RST] Seq=1 Win=0 Len=0  10.1.10.11     10.1.10.201  39946 > ssh [SYN] Seq=0 Win=14600 Len=0 MSS=1460 10.1.10.201  10.1.10.11   [TCP Previous segment lost] ssh > 39946 [SYN, ACK] Seq=46941561 10.1.10.11   10.1.10.201  39946 > ssh [RST] Seq=1 Win=0 Len=0  (the last three lines repeat)   The packets seem to be getting there, but the connecting machine is sending a RST. Why?  From the client's side (the machine running SSH) a later attempt looked like:  Source       Destination  Info 10.1.10.11   a.b.c.d      40212 > ssh [SYN] Seq=0 Win=14600 Len=0 MSS=1460 10.1.10.201  10.1.10.11   ssh > 40212 [SYN, ACK] Seq=0 Ack=1 Win=5792 Len=0 MSS=1460 10.1.10.11   10.1.10.201  40212 > ssh [RST] Seq=1 Win=0 Len=0  10.1.10.11   a.b.c.d      [TCP Retransmission] 40212 > ssh [SYN] Seq=0 Win=14600 Len=0 MSS=1460 10.1.10.201  10.1.10.11   [TCP Previous segment not captured] ssh > 40212 [SYN, ACK] Seq=15635206 10.1.10.11   10.1.10.201  40212 > ssh [RST] Seq=1 Win=0 Len = 0  (the last three lines repeat)   The only thing that stands out is that I'm continually getting "Previous segment not captured" (it wasn't? Seems to be right there), and that the sequence numbers from the client are really deterministic. (Aren't they supposed to start at a random point, and increment from there?)


Understanding the R implementation of negative binomial distribution

I'd like to create a reference sheet of common distributions for my statistical theory class, but I'm having some issues understanding R's implementation of the negative binomial distribution in the stats package. Here's the code I've been using to visualize the distribution.  ggplot(data.frame(x=c(0:30)), aes(x)) + stat_function(geom="point", n=16, fun=dnbinom,                 # Arguments to pass to dnbinom()               args = c(p = 0.2, size = 2))   By my understanding of the NBD, p = 0.2 should be the probability of success (or failure, depending on your framing), and size = 2 should be the number of successes we are looking to observe. However, the output of the plot is .  I'm having trouble understanding how it's possible to have any probability mass at 0, before we've run any trials at all. I've read the documentation for dnbinom(), but I'm still not sure why this is the result, and the docs don't offer details on the exact equation that was implemented, or a sufficiently basic example that would show how the function works. Any advice/input would be much appreciated. Thanks!


How many mockups do you typically do for a responsive bootstrap design?

I am scoping a responsive project and thinking it will need views spanning from mobile to desktop. I am just wanting to confirm if it is necessary/helpful to do mockups for all 4 sizes (Extra small devices (phones, up to 480px), Small devices (tablets, 768px and up), Medium devices (desktops, 992px and up), and Large devices (large desktops, 1200px and up)?


Hiding JSON element if date value is older than 30 days

I'm rendering local JSON to the browser and each item contains a modified date in ISO 8601 time (such as "2019-03-19T18:50:39Z"). The plan is to make it so that if the Created date is older than 30 days then it will be hidden from the div.  Should I convert the time into a more readable format (such as 03/19/2019)? Would it be easier to work with?  New JSON data could be added at any point, which is why I need to have my code be dynamic. It's part of the reason why I'm struggling with this one.  JS snippet:  import testjson from './test.json';  export default class {     constructor() {      }      loadNewCourses() {         let newCrs = testjson.d.results             .sort(function(a, b) { // sorts by newest                 return (a.Created < b.Created) ? 1 : ((b.Created  { // no duplicates                 return (idx === self.map(el => el.Category).indexOf(el.Category))             })             .map(x => {                 return {                     "Category": x.Category,                     "Title": x.Title,                     "Description": x.Description,                     "Created": x.Created                 }             })    $.each(newCrs, function(idx, val) { // ---- does this look right?         let current = new Date();         let expiry = new Date(val.Created)          if (current.getTime() > expiry.getTime()) {             $('.categoryName').hide();         } else if (current.getTime() < expiry.getTime()) {             $('.categoryName').show();         }     })          let curIndex = 0;         $.each(newCrs, function(idx, val) {             curIndex++; // this line must be here             let targetDiv = $("div.new-training-div > div[col='" + curIndex + "']");              let modalTrigger = $('
', {                 'class': 'categoryName',                 'data-category': val.Category,                 'data-target': '#modal-id',                 'data-toggle': 'modal',                 'text': val.Category             });              modalTrigger.prepend("&blacktriangleright;");              targetDiv.append(modalTrigger);              if(curIndex == 4) {                 curIndex = 0;             }          })      } // ------------------ loadNewCourses  }   JSON snippet:  },         "FileSystemObjectType": 0,         "Id": 80,         "Title": "Rome",         "Category": "WorldCapitals",         "Description": "A capital city (or simply capital) is the municipality exercising primary status in a country, state, province, or other administrative region, usually as its seat of government.",         "TopTrainingCourse": false,         "VideoLink": "https:\/\/www.google.com",         "ID": 80,         "Modified": "2019-03-19T18:50:39Z",         "Created": "2019-03-19T18:50:39Z"        } ...etc


Coupon collector problem with partial collection of a specific set of coupons

I am very new in probability and combinatorics and have a naive question around a variation on the coupon collector problem with partial collection.   Lets assume we have a box with 45 coupons labeled 1-45. Now in this case I would like to adjust the CCP such that I can calculate the expected value (amount of draws necessary) to collect 10 specific items. For example item 1-10. How do I adjust my model such that I can calculate the amount of draws necessary to collect each item n times.   I assume that I have to adjust CCP2 in following post () to include the probability that I catch one item is 10/45.   All tips and tricks are welcome!  Thanks for your help


No Drupal Site Found when clearing cache

I installed drush using composer following the instructions here:   When trying to run drush cc all I get this error:     No Drupal site found, only 'drush' cache was cleared.[warning] 'all'   cache was cleared. [success]   I added this line:  export PATH="/Applications/MAMP/bin/php/php5.6.2/bin:$PATH"   to my .bash_profile and restarted bash and MAMP. Still no luck. Any ideas?   This is my drush status:   Drupal version         :  7.36                                                               Site URI               :  http://default                                                     Database driver        :  mysql                                                              Database hostname      :  localhost                                                          Database port          :                                                                     Database username      :  root                                                               Database name          :  srod                                                     PHP executable         :  /usr/bin/php                                                       PHP configuration      :                                                                     PHP OS                 :  Darwin                                                             Drush script           :  /Users/srod/.composer/vendor/drush/drush/drush.php   Drush version          :  7.0-dev                                                            Drush temp directory   :  /tmp                                                               Drush configuration    :                                                                     Drush alias files      :                                                                     Drupal root            :  /Applications/MAMP/htdocs/srodsite                             Site path              :  sites/default      I'm running it from Drupal project folder.


How to write this type of L in equation latex

How I can use this style of L in math mode?


Is Apparation limited at all by distance?  It seems to me that in the books no one Apparates further than length (or width) of the United Kingdom. Are there any instances where they travel further than that? If you knew the place could you Apparate to the other side of the planet, or to the moon?


What is the behaviour of \fontsize if baselineskip is below a certain value?

during my optimization process I found something spurious I cannot explain to myself and which I would like to understand. So with \fontsize you set the fontsize and the baselineskip. However the behaviour of the second paramater is a bit unclear to me, because if you reduce it too much, at a certain point the baselineskip gets bigger again. Let me show you my example: \documentclass[landscape]{article} \usepackage[margin=1cm]{geometry} \usepackage{lipsum,multicol}  \begin{document} \begin{multicols}{4}     \fontsize{10}{11}\selectfont     \lipsum[1]     \columnbreak          \fontsize{10}{10}\selectfont     \lipsum[1]     \columnbreak          \fontsize{10}{9}\selectfont     \lipsum[1]     \columnbreak          \fontsize{10}{8}\selectfont     \lipsum[1]     \columnbreak \end{multicols} \end{document}  If you compile this, your result will be looking like this:  Now from the first to the third column it seems logic, that the baselineskip is reduced and hence less space is needed vertically to typeset. But with the third column, even though the baselineskip is reduced even further, it needs more vertical space overall. It is strange however, that for example from line 11 to 12 (starting with tus and lum), the spacing seems to be narrower than in column 3, while in a lot of line the spacing is bigger. Changing the baselineskip to lower values down to 0 does not modify the vertical alignment further. What is the purpose of this behaviour and is it intended? I cannot see a benefit of this and I am a bit confused.


How to stop reordering of the same kind multiple preview windows in task switching?

When using task switching in the default graphical mode of Ubuntu 12.04, if they are multiple windows of the same kind, eg. multiple Terminal windows, you can see them all together and select which one you want.    My problem is that the order of these windows is constantly changed. It follows the "last used" order. I want them in a fix order always; how can I do it?


At the end of Return of the Jedi, how do the Ewoks      beat   the Stormtroopers? The Stormtroopers are genetically enginered killers. Plus they have head to toe body armour, laser weapons and Imperial Walkers.   The Ewoks are armed with bows and arrows and sticks and stones.


When I try to compile my paper I get the following error:  ! LaTeX Error: Filemathtools.sty' not found.`  Other packages are successfully found and automatically installed, but mathtools.sty is not. I just reinstalled windows 8.1 and Miktex 2.9 with TeXWorks Version 0.4.5. The paper compiles properly on my other machines.  I have found mathtools.sty online, but adding it manually only results in another style file not being found. What is going on - why is Miktex failing to automagically find mathtools.sty and other style files?  EDIT The problem is that the package manager has somehow "desynchronized" (even though it's a fresh install). To fix it, run Miktex Package Manager as administrator---there should be a version "Package Manager" and a version "Package Manager (Admin)" - run the latter. Go to Repository-->Synchronize. When that completes, close the package manager and your TexWorks should automatically find the needed style files again. If the synchronize fails, then you may not have run the (Admin) version of Package Manager.


How to reformat a laptop when file device inserted has hide and make shortcut?

What is the best solution for me to reformat a Acer Aspire E14 with Windows 8.1 operating system that only have C Drive and every time I inserted USB flash drive file has been compressed and put into a shortcuts. And when I put and use my external hard-drive nothing happen. I never used my DVD/CD ROM because it not working or it's lens has been damage. I try to make a full scan on my laptop using 360 Total Security also nothing happen.   In addition, I try to put my USB flash drive every time my laptop still on its start up and even restarting fast and open configure bot menu but still it open on Windows 8.1 start screen and nothing happen or still the same.


Can't log in after resume from sleep mode

I can't log in to my Ubuntu computer after it enters sleep mode. If I hard reboot I can log in.  What could be the problem, and how can I fix it?


Interpreting dummy variable odd ratio, 0.366 is more or less likely?

I am running a glm logistical regression in R thus: glm(outcome ~ sex + other_factors, data = data, family = 'binomial') Sex is entered as "Male" or "Female". and I get an Odds ratio of 0.366 for "sexMale". Does that mean that the male, or the female, is more likely to experience the outcome?


has updated the firefox version two weeks ago. Now when I do apt-get install firefox-esr the 68 version is installed.   How can I install the previous version, which was 52 (if I'm not mistaken)? apt-get install firefox-esr-52 does not seem to do the trick.


Regular expression to capture everything inside the first and last bracket

I am making a parser that parses .cs files. After the .cs file is uploaded on the website i have to parse everything that is inside the namespace of the .cs file. I want to acccomplish this with regular expressions but i have no idea how to do this since i am new to regular expressions.   How would i write a expression that outputs everything inside the first and last bracket of the .cs file? For example, this is a simple .cs file:  namespace Application { <----------------------------------     class Members     {        int testInt = 10;        string testString = 'test';         public void testMethod()        {        }     } } <----------------------------------   I want to get all the code between the arrows in my code example.  I have heard and read some stuff about groups but i dont really understand it yet. I would appreciate if someone could help me.


I am working on a logistic regression model. The ratio of 1s to 0s in the train dataset is 7:2 (14,000 1s and 4,000 0s)  The model performance is:  Accuracy - 83%  True Positive rate - 84%  True Negative rate - 74%  Area under the curve (ROC plot) is 0.78  Couple of questions:   Do I have to treat the class imbalance in this case? I have read somewhere that the proportion of 0s to 1s does not matter, the number does. Is the number of rare events in this case (4,000) good enough? Is AUC of 0.78 acceptable? I have added all possible variables and adding more variables to the model is not an option.


I'm new to Ubuntu (12.04.3). I'm trying to install handbrake and I've tried about 6 different ways non seem to work, so I'm now asking for help. Step 1 sudo add-apt-repository  ppa:stebbins/handbrake-releases  $ sudo add-apt-repository  ppa:stebbins/handbrake-releases Traceback (most recent call last):   File "/usr/bin/add-apt-repository", line 128, in <module>     ppa_info = get_ppa_info_from_lp(user, ppa_name)   File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 84, in get_ppa_info_from_lp     curl.perform() pycurl.error: (35, 'gnutls_handshake() failed: A TLS packet with unexpected length was received.')   I get and error what does the error mean and how do I fix it?    In file /etc/apt/sources.list I have this  ##ppa:stebbins/handbrake-releases deb http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu quantal main deb-src http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu quantal main     If I ignore the error and continue. Step 2 sudo apt-get update I get.  W: Failed to fetch http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu/dists/oneiric/Release  Unable to find expected entry 'deb-src/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)  E: Some index files failed to download. They have been ignored, or old ones used instead.     Again if I ignore the message  and continue. Step 3 sudo apt-get install handbrake I get.  Package handbrake is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  W: Duplicate sources.list entry http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu/ oneiric/main i386 Packages (/var/lib/apt/lists/ppa.launchpad.net_stebbins_handbrake-releases_ubuntu_dists_oneiric_main_binary-i386_Packages) W: You may want to run apt-get update to correct these problems E: Package 'handbrake' has no installation candidate     If I use sudo apt-get install handbrake-gtk I get this.  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies.  handbrake-gtk : Depends: libgstreamer-plugins-base1.0-0 (>= 1.0.0) but it is not installable                  Depends: libgstreamer1.0-0 (>= 1.0.0) but it is not installable                  Depends: gstreamer1.0-libav but it is not installable                  Depends: gstreamer1.0-plugins-base but it is not installable                  Depends: gstreamer1.0-plugins-good but it is not installable                  Depends: gstreamer1.0-plugins-bad but it is not installable                  Depends: gstreamer1.0-plugins-ugly but it is not installable                  Depends: gstreamer1.0-pulseaudio but it is not installable E: Unable to correct problems, you have held broken packages.   *Sigh nothing works :(


In the last week+ I've edited a lot of posts (through seeing many issues) and earned reasonable rep for it (despite accepted edits in the suggested queue). But, for some reason, I no-longer earn rep for editing... I noticed this in the last 24 hours and I'd like to know why?  I've had both the time and inclination to edit posts - Because I feel I'm contributing, earning rep and also because I believe it's valuable to others (if a post is clearer, even by a marginal amount, then people are more likely to readily understand, comment and answer!).   My edits have included many corrections including, but not limited to:   Correcting or enabling code display (through poor markdown) Improving formatting Grammar and associated issues Plural usage and punctuation Etc.   And in various combinations.  ... But never removing or correcting the manner in which the OP communicates. Sometimes, I find myself wanting to just apply the <code> tag to missed opportunities, but I can't (yet).  Sure, there are probably instances of edits where I've done little to improve a post; but sometimes a 'little' counts, but I'm confused as to why I'm no-longer receiving rep for my efforts...  Is there some sort of imposed/modded limit/flag for users editing too many posts or with too many rejected edits?


Is it possible for a sequence of rational numbers to have a non rational limit?

I'm solving an exercise, and at some point I have to prove that any inteval $(a,b)$, with $a,b \in \mathbb R$, is  the union of intervals $[\alpha,\beta)$, with $\alpha \in \mathbb R$ and $\beta \in \mathbb Q$. The values of $\alpha$ are easy to find: $$(a,b) = \bigcup _{n = k}^{\infty} [a + \frac{1}{n},\text{____})$$ For a value of $k$ sufficiently large such that $a + 1/k \in (a,b)$. But the problem is that I don't know what to put in the place of $\text{_____}$, because we have to put a sequence of rational numbers, but the limit of the sequence has to be the real number $b$. Is it even possible for a sequence of rational numbers to have a limit that is not rational? Because a sequence of real numbers never has a limit that is complex for example, so if $(a_n)_n \in \mathbb Q$ it makes scene that $\lim_n a_n \in \mathbb Q$, but I can be wrong. Is this possible? If so what should be the sequence in _____?


I have ordered a HP chrome book 14 with the tegra k1 processor. Am I able to run Ubuntu Linux on this processor? I had a look at other threads and could not find the answer I was looking for. I know it runs on the Intel haswell processors but I'm unsure of the architechure of the tegra chip. Any help appreciated!


Can I export a polygon shapefile to a Garmin device?

I want to export the boundaries of a parcel to my GarminMap 60CSx. I downloaded a parcel map from the county, and I want to use it to walk the perimeter.  Does the .gpx format support polygons? Or is there some other way?  I'm on Mac, using QGIS 1.7.4.


Append to the name of each file in directory

How to append “.backup” to the name of each file in your current directory?


Is Object.GetHashCode() unique to a reference or a value?

The MSDN documentation on  describes 3 contradicting rules for how the method should work.     If two objects of the same type represent the same value, the hash function must return the same constant value for either object. For the best performance, a hash function must generate a random distribution for all input. The hash function must return exactly the same value regardless of any changes that are made to the object.   Rules 1 & 3 are contradictory to me.  Does Object.GetHashCode() return a unique number based on the value of an object, or the reference to the object. If I override the method I can choose what to use, but I'd like to know what is used internally if anyone knows.


Integral over the unit ball in $\mathbb{R}^n$

Let $f(x)=|x|^r$ on $B_1(0)$ real valued function.Where $B_1(0)$ is the unit ball in $\mathbb{R}^n$. I am trying to show that if $r>1-n$ f has a weak derivative.   ATTEMPT: I know from the definition of the weak derivative that I need to check whether there is a function $g:B_1(0)\rightarrow \mathbb{R}$ such that $$\int_{B_1(0)}f\phi'dx=-\int_{B_1(0)}g\phi dx,$$ for all test functions $\phi\in C_{c}^{\infty}(B_1(0))$. But since $x\in \mathbb{R}^n$, I dont know how to proceed. Please help.


Cisco ASA/PIX Can't Access Internal Resources Behind NAT

My servers are natted 1:1 as follows, i.i.i.i maps to x.x.x.x where i is an internal IP, and x is the external IP.  From an i.i.i.i machine, I cannot access x.x.x.x resources...  What special configuration might be necessary to allow looping out, then back in on these firewalls?  Thanks.


is a wonderful freeware Windows swiss-army-knife for image viewing & editing.  For me, the key features are fast viewing, simple editing (crop, contrast, brigthness, rotation, resampling), file operations (delete, copy to folder) and extended image information access (exif data) combined in the same interface. Versatile batch jobs are a very nice bonus.  But unfortunately IrfanView is for Windows only, and isn't . What would be the nearest equivalent for linux?


Is it grammatically correct to use "did" like this?     On June 18th, I did experience my first earthquake in Japan.   I'm an ALT in Japan and on our exam for our students they had to write the statement above but without “did" but the teachers are wondering if it’s ok because they think it puts emphasis on experience. But, I dont think it is right and I cannot explain why. Any help would be appreciated.


Interpretation of pearson residuals (logistic regression)

I have no idea how to interpret this type of residual plot. The model is a logistic. Is there something wrong with the mean-variance relationship?


Evaluating Riemann Sum of $\frac{1}{x^2}$

how would you evaluate the Riemann Sum of $\int_a^b \frac{1}{x^2} dx$? By the usual method, I arrived at a $x_i^*$ term of $\frac{1}{(a+i)^2}$, but am unsure of how to proceed thereafter. The sample solution provided a hint that $x_i^* = \sqrt{x_{i-1}\ x_i}\in [x_{i-1}, x_{i}]$, and I cannot tell where $\sqrt{x_{i-1}\ x_i}$ came from. Can anyone provide some advice? Thank you very much!


Traveling only with German Blue Card wıthout Passport

I am a Turkish citizen and am a holder of the EU Blue Card in Germany. I gave my passport to the UK Embassy in Germany for my visa application, so my passport is not with me for a few weeks, but I need to go to Italy. My question is that can I travel with my Blue card but without my passport inside of Europe?


Is there an OS X 'tail' tool that can monitor remote log files?

I am looking for a visual tail tool that can monitor several local or remote log files.  Optional features that interest me: color highlight based on log error level, coloring for special words, filtering of messages and/or notifications on new activity.


Create a Short cut to a URL on the start menu windows 8

how do I create a tile on my windows 8 start menu that will open a browser and go to a specific URL..   any ideas?


Marginalize Gaussian Random Variable completing the square

I have $$P(x | \lambda_1, \lambda_2) = \mathcal{N}(\mu + L_1 \lambda_1 + L_2 \lambda_2, \Sigma)$$  and a Gaussian prior for $$P(\lambda_1) = P(\lambda_2) = \mathcal{N}(0, I)$$.  My task is to compute $$p(x | \lambda_1)$$ and I know the answer should be $$p(x | \lambda_1) = \mathcal{N}(\mu + L_1 \lambda_1, L_2 \Sigma L_2^T)$$.  I present below the steps I took and where I got stuck:  $\begin{align*} p(x | \lambda_1) &= \int p(x | \lambda_1, \lambda_2) p(\lambda_2) d\lambda_2 \\ &= \int const \cdot exp\big[(\hat{x} - L_2 \lambda_2)^T \Sigma^{-1} (\hat{x} - L_2 \lambda_2) + \lambda_2^T \lambda_2\big] d\lambda_2 \end{align*}$  Where $\hat{x} = x - \mu - L_1 \lambda_1$. I process the exponent and get the following: $\begin{align*} & (\hat{x} - L_2 \lambda_2)^T \Sigma^{-1} (\hat{x} - L_2 \lambda_2) + \lambda_2^T \lambda_2 \\ =& \hat{x}^T \Sigma^{-1} \hat{x} - 2 \hat{x}^T \Sigma^{-1} L_2 \lambda_2 + \lambda_2^T (L_2^T \Sigma^{-1} L_2 + I) \lambda_2 \end{align*}$  but I do not know how to proceed further. I have the notes for the solution for the exercise, but I do not understand it.  Below they also have $\lambda_1^T \lambda_1$ because the wrote $p(x | \lambda_1) = p(x | \lambda_1, \lambda_2) p(\lambda_1) p(\lambda_2)$ and then integrated $\lambda_2$ out, but I thought that's not necessary.    Help would be greatly appreciated.  Thank you!


Why non-template classes should be separated in header and source files?

Can someone please help me to understand, why for non-template classes, it is recommended to separate code in header and source file? Is that only code styling or does this approach avoid possible errors (e.g., linker errors)?  I'm wondering since in case of template classes, we are not even allowed to do the separation.   Many thanks in advance!