Wielding two weapons without "Two-Weapon Fighting" or "Dual Wielder"?

We have a Barbarian on our team that very much likes to switch up his weapons; he goes from a Dwarven Hammer, to a pair of Hand-Axes, to occasionally just going bare-fisted. No issues there, he's fairly adept with all 3.  However, I have only just recently picked up on the way that he rolls his attacks for the two Hand-Axes: He rolls the first attack, adds his modifiers etc. Then he rolls the second attack, this time without modifiers, which is all well and good. But I'm not sure if this action uses his bonus action or not, or is considered a separate action (though, being a level 4 Barbarian, he only has one action per turn), or is merely part of the same action.  If we have a look at the Two-Weapon Fighting feature from the Fighter's fighting styles:     Two-Weapon Fighting   When you engage in two-weapon fighting, you can add your ability modifier to the damage of the second attack. (PHB5e p.72)   Similarly, the Dual Wielder feat also uses the Two-Weapon Fighting feat:     Dual Wielder   You master fighting with two weapons, gaining the following benefits:      ...         You can use two-weapon fighting even when the one-handed melee weapons you are wielding aren’t light. (PHB5e p.164, emphasis mine)      So; yes, this gives a bonus to the second weapon attack, but having asked a  to clarify which action this secondary weapon attack belongs to, it was determined that this uses your bonus action;     [...] the second attack requires a bonus action   So after that long winded explanation, here is the question: Without any additional feats, can you wield and use two weapons at once, and if so, how many actions does it require to make a full attack with both weapons in a turn?


I am trying to validate emails (UTF8) using the following regular expression  Regex.IsMatch(emailAddress,                                  @"^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$", RegexOptions.CultureInvariant);  It returns false for "äpfel@domain.com".  Any suggestions on how to improve it.


I inadvertently deleted a directory containing several source code files.  I want them back.  I'm on a Linux Ubuntu machine.  The filesystem is NTSF. I tried using TestDisk, but there are millions of deleted files in this partition.  TestDisk presents a curses interface which allows you to page through the deleted files.  But I can't search for the file I want.  I gave up after 15 minutes.  Is there another tool that allows me to undelete files without having to page through millions of file names? I also looked at ddrescue, but that requires you to save the enture partition.  In my case that's 2 TB.  I don't have another 2TB of free space.


In windows, the last.fm plugin for foobar can scrobble music from internet radio. Is there any equivalent software in Ubuntu that support it? I have tried rhythmbox but it cannot do it.  I'm not asking about how to install last.fm plugin because I can use the scrobbling plugin in rhythmbox for any audio files in my computer (It scrobbles just fine). But it failed to scrobble when I try to listen to the internet radio. Hope that explanation clears enough.  Thanks!


Express $x^4 + y^4 + x^2 + y^2$ as sum of squares of three polynomials in $x,y$

I don't know any identity that'd help me simplify it. I know of Brahmagupta's identity and tried using but no good. Any hints?  Edit: So far I've tried various things,  $(x^2+1/2)^2 + (y^2 +1/2)^2 -1/2$ This doesn't get me anywhere. I tried solving in x as a quadratic so as to get an insight or something but that didn't help too. I even tried writing general polynomials of degree too and then getting the solution by comparing coefficients, but that wasn't elegant and was too computational.


Apparent moderator script vandalizes post

This edit  was apparently done by a moderator user named  and appears to be robot vandalism.     I can T written ints 1 documentcomplete handler am   What is it?  comment says "this is easy to do on linux"


I live in Thailand and use a dual SIM smartphone currently containing only one SIM card which is my local prepaid Thailand SIM card.  I already visited Vietnam twice; each time for a few days; In both cases I bought a prepaid SIM card inside an airport; Both SIM cards I bought were of Mobifone and aimed for tourists (for "one month") usage.  Both aforementioned SIM cards contained similar specification:     1) Web package         4GB web bandwidth   4MB web download speed         2) Telephony package         Unlimited incoming local phone calls   Unlimited incoming global phone calls   Unlimited outgoing local phone calls   Some possibility for outgoing global phone calls         3) SMS package         Unlimited incoming local SMSs   Unlimited incoming global SMSs   Unlimited outgoing local SMSs   Some possibility for outgoing global SMSs      By unlimited incoming global SMSs I could keep getting SMSs From Thailand based on my Thai phone number → from both my Thai cellular operator and Thai bank company (often based on their applications) and thus both top up my Thai prepaid SIM card and control my Thai bank account overseas.  My questions  I need a SIM card for six months or one year with a similar specification but with; Unlimited internet bandwidth for fair/plausible use (non commercial use).  I believe such SIM card will only be sold outside a Vietnam airport.  Where to buy a similar Vietnam SIM card aimed for locals/expats (not for tourists) in HCMC?


How to increase media image scale limit?

I'd like to insert a large infographics image into a post. The problem is that WordPress scales the image and applies a limit of 393px in my case. When I try to manually increase it, a red exclamation mark shows up, and won't use the value given by me:  How to remove that limit?


I'd like to install OpenWRT on an Asus WL-520GU router I have a couple of Asus WL-520GU modems and Raspberry Pi (model B) boards floating around and I'd like to put some of them to use in some capacity around my  network. I want to install OpenWRT and would prefer to use one of the Asus boxes. Actually, one already has an old release from 2008 on it—but I'd like to upgrade it to the latest as at the writing of this, 15.05. But I'm not quite understanding the compatibility of these devices in relation to the "Current Release Support" you see on various pages. From the  search page for the device page for the , it appears the latest support version is 10.03.1 Also in relation to the Raspberry Pi (model B), ( and  pages), it would appear the latest supported version is 14.07. My question is: What is exactly meant by Current Release on the  page? Confusion: What I'm confused about: will Chaos Calmer run on these devices? My thinking:  YES. It's really a matter of building/compiling the package (unsure of exact terminology) for the device you're using. Maybe, (or it probably will), it's just that no-one has compiled it for these yet or that maybe someone has tried and were unsuccessful, gave up and moved on, and so with a little extra work/research it possibly could work No. That chipset, memory, other some other feature of the board is no longer supported and it will cause too many headaches to move on.  Just some of the notes I've made about it:  WiFi/radio issues—not working in kernel 2.6, but worked in  2.4, what about 3+? —USB and wireless, doesn't seem insurmountable —various stuff including the page stops at Attitue Adjustment and Barrier Breaker. There's no mention of Chaos Calmer at all The one that has something installed is Kamakazi (unsure what version, but release 12857, so it's a bit old) I'm aware I can get and use 10.03.1 from the  if that is as far as I can go I am aware of another question (which is from 2011), although he's using the Asus WL-520GU as well, it's about an  because of the 2.6 kernel problem, which AFAIK remains unanswered for later distros  Finally I'm not scared to get in there and give it a go (I really don't have much idea as to what I'm doing with building/compiling these sorts of things, but I'm adventurous) :) but I don't want to waste my time either if it's a definite 'no go'.


Can I rent a camper in the US/Canada with a European B license?

We are considering a holiday in North America with a camper. I have a European driver's license (B) which allows me to drive personal cars up to 3500 kg, although I can imagine that an average camper easily weighs more.  Does my license qualify me to drive a camper? If not, can I take an American/Canadian driver's test which would allow me to drive a camper?


When I'm given $\sin(x)$, what goes inside of the $x$?

I don't know if I'm just randomly blanking or if I never really knew and have just been going with the flow, but I'm not sure what x represents.  In early high school they were degrees, eg. $\sin(30)$ which equaled $0.5$. Later on we learned about radians and $\pi$, and how $\sin {\pi \over 3}$ was equal to $\sqrt 3 \over 2$.  Now I'm in Uni and I'm discovering that I maybe don't know trigonometry as well as I should.  For example, when doing the squeeze theorem, and I'm asked to find the limit of $\sin(n) \over n$, what is the $n$? Is it in radians? degrees? It's for graphing so what should I visualize? $n$ as just a $x$ value to try and find any $y$??


Setting priority of wireless networks in KDE Network Manager

Is there a way to determine the priority of wireless networks?  The KDE networkmanager applet works fine, but it often connects to the WRONG wireless network by default when multiple networks are available.  (For example: at work we have a network A that allows printing, but which is not available throughout the building; and a network B that works everywhere, but that does not allow printing. Obviously I want to connect to B only if A is not available, but the networkmanager just seems to prefer B.)


More than half of the screen is black with tiny code on Acer aspire one

I just replaced Windows XP with Ubuntu on my Acer aspire one laptop using the usb installation method and now more than half of the screen is black with unreadable writing or code. I'm new to Ubuntu, hopefully it's an easy fix. Can anyone help?


Code don´t accept take my already defined variable in Python

I am trying for a while now to solve this problem but I didn´t found a solution yet. In my Code the already as global defined Variable XorO will give me an error "UnboundLocalError: local variable 'XorO' referenced before assignment"  I have searched on many different sites, like the paython wiki and much more  global z z = 0 global s s = 0 global w w = 0 global D D = [0, 0, ""] global XorO XorO = 0  def All():     if XorO % 2 == 0:         w = "X"     else:         w = "O"      z = input("Zeile? " )     s = input("Spalte? ")     z = int(z)     s = int(s)     Unzulaessig()     SchonDa()     Setzen(z, s, w)     Ausgeben()     Win()      XorO += 1   I expect the output to be a X or a O but I´m only getting errors


I have a Macbook Pro from late 2011. it shuts down when the battery percentage is anywhere from 20-45%. Everything that I've been reading online says that the battery is dying and needs to be replaced, but I replaced the battery less than six months ago, and to my knowledge, they're supposed to last upwards of 4 years.


I am submitting a publication to IEEE.  In the course of the process, they've asked for a cover letter.  Is this request typical of journals and other publications?  What is expected to be on such a letter?


IEEE Template. \cline error in table. Extra alignment tab has been changed to \cr

I had this table working with an IEEETemplate but now when I try to build it with an IET Template I get the error that you can see on the title .. could anybody help me?  Thank very much for your time.  \documentclass{cta-author}   \usepackage{graphicx} \usepackage{multirow} \usepackage{booktabs}  \begin{document}  \begin{table}[h!]     \centering   \renewcommand{\arraystretch}{1.2}   \begin{tabular}[b]{|p{1cm}|l|c|c|c|c|}     \hline     \multirow{2}{0.3cm}{\textbf{j}}& \multicolumn{2}{c|}{\textbf{k}}  & \multicolumn{2}{c|}{\textbf{l}}\\     \cline{2-5}     & \textbf{f} & \textbf{g} & \textbf{h} & \textbf{i}  \\ \hline        a  & b  & c & d & e \\ \hline     \end{tabular}     \caption{Example} \end{table}  \end{document}


Logging violations of rules in limits.conf

I'm trying to log the details of the programs that where failed due to the limit cap defined in the limits.conf. My initial plan was to do it using the audit system. The idea was to track the system calls related to limits in the limits.conf that where failed.   However the problem with this approach is that, it's not possible to track the violations of CPU time, since that violation doesn't involve failure of system calls. In the case of CPU time, one thing happens is that the program which violated the CPU time will be delivered a SIGXCPU.   So my questions are:   How should I go about logging the programs that violated CPU time?  Also is there any limits.conf specific logs available?


rule of thumb for 'however' in the middle of the sentence?

What is the rule of thumb for using 'however' in the middle of the sentence? For example:         Some people disagree with this theory, however, as it's never been proven right.


How to reduce memory usage on a Unix webserver

I'm currently using a Joyent Accelerator to host my webapps, and it's working fine, however I need to reduce costs so I'm downgrading my current plan and that imposes some new memory limits (256M rss, 512M swap). I wasn't too far over them yesterday, but after restarting Apache several times today, I'm now 411M rss, 721M swap (prstat -Z -s cpu).  Searching in Server Fault only gives me lots of ways and specific tools to monitor the server, but no advice on how to reduce/optimize it's memory usage. I've also seen , but I don't think it's good for this particular (or may I say generic?) situation.  The server is running Solaris on a shared CPU, and I'm using a Apache + MySQL + PHP stack.  I'm interested in knowing the steps one can take to troubleshot this and solve the issues. However, I'm also running out of time to lower my memory foot print and downgrade the plan before the current ends, so anything that can make magic and save the day is welcome as well :)


Don't allow the target of a duplicate question to be deleted

On Programmers we have the following question:    Which had been closed as a duplicate of this (now deleted) question:    The first question was closed on May 6 '13 at 15:24, while the duplicate target was deleted on May 27 '13 at 14:57 (by a single moderator vote as it happens, but that's not the point).  By allowing the deletion we are creating broken links for the vast majority of users who can't see deleted posts.  At the very least there should be a warning presented when people try to vote to delete and a message to check the links on the right. It could be that these other questions need to be deleted as well but they should be deleted first before the target is deleted.


"Unresolved external symbol" when using templates with CPP

I wanted to create a generic array that could contain any type of data. The class looks like this GenericArray.h:  #pragma once #include "LinkedList.h"  template<class T> class GenericArray { public:     GenericArray();     void push(T to_push);  private:     LinkedList<T>* _first; };   And the implementation looks like this GenericArray.cpp:  #include "GenericArray.h"  template<class T> GenericArray<T>::GenericArray() { this->_first = NULL; }  template<class T> void GenericArray<T>::push(T to_push) {     LinkedList<T>* new_node = new LinkedList<T>(to_push);     new_node->_next = NULL;     if (this->_first == NULL)     {         this->_first = new_node;         return ;     }     else     {         LinkedList<T>* last_nude = this->_first;         while (current->_next != NULL)         {             current = current->_next;         }         last_nude->_next = new_node;     } }   But yet, when Im trying to build a file,  I get this ERROR:     Severity  Code    Description Project File    Line    Suppression State   Error LNK2019 unresolved external symbol "public: __thiscall   GenericArray::GenericArray(void)"   (??0?$GenericArray@H@@QAE@XZ) referenced in function   _main Homework5   c:\Users\SSS\documents\visual studio 2017\Projects\Homework5\Homework5\main.obj 1   And:     Severity  Code    Description Project File    Line    Suppression State   Error LNK2019 unresolved external symbol "public: void __thiscall   GenericArray::push(int)" (?push@?$GenericArray@H@@QAEXH@Z)   referenced in function _main  Homework5   c:\Users\VVV\documents\visual   studio 2017\Projects\Homework5\Homework5\main.obj 1   Obviously I did somthing wrong when using bad with templates. But I followed my code in order to find the problen, and I couldnt find anything suspicious.   If you can enlighten me, I will me gratful. Thanks.


Is it ok by code to enclose a residentail breaker box in a finished basement as long as there is an access door and what are the requirements?

I am finishing a basement and want to enclose the 200a service box and wiring with a framed cabinet of some sort.  Is there any requirements for clearances and what you can enclose it with?  I am in PA. Thx!


How to enable alt+right click to resize window

Been looking around and can't see to find any information on how to enable alt+right click for window resize?  edit  My mistake  Running Unity 12.04, I am logged in under failsafe graphics mode as i can't get my 590GX Nvidida card to boot up without being in safe, but thats another problem.  Currently, my alt+click works and i can drag windows around.   But i can't currently, alt+right-click to resize.


declined flag gave a bad reason for declining

the question is this     there are 4 answers that say the same thing. I flagged one of them as Duplicate ( knowing that I shouldn't irritate people by flagging all on the question )  I happened to flag one that was posted at the exact same time as another (duplicate) answer.  but there are 2 other duplicate answers that were posted after, one 1 minute later and another 3 years later.    I thought I was following protocol in not flagging all the duplicates. but only flagging one answer out of the 4 duplicates (probably only 3, there are 2 good answers on this question)    not really concerned with the two that are exactly the same.  This  is the one I am more worried about  I flagged because there are 3 answers that say the same thing. someone should delete 2 of them, that is why I flagged.  if they were both better answers I wouldn't have said anything and flagged the newest one


A way to store potentially infinite 2D map data?

I have a 2D platformer that currently can handle chunks with 100 by 100 tiles, with the chunk coordinates are stored as longs, so this is the only limit of maps (maxlong*maxlong). All entity positions etc etc are chunk relevant and so there is no limit there.  The problem I'm having is how to store and access these chunks without having thousands of files. Any ideas for a preferably quick & low HD cost archive format that doesn't need to open everything at once?


I'm totally stuck with the following question, I even don't know how to start:  For each natural number $n$ we consider a space $X_n$ that is obtained by removing $n$ distinct points from $\mathbb{R}^2$. We consider the 1-point compactification $X_n^+$ and we denote by $\infty_n\in X_n^+$ the point at infinity (so that $X_n^+=X_n\cup \{\infty_n\}$). Show that   $X_n^+$ can be embedded in $\mathbb{R}^3$. I do not have to write down explicit formulas for the embedding, but I have to explain my reasoning using pictures and mention what result(s) I use in order to reach my final conclusion If $X_n$ and $X_m$ are homeomorphic, then $n=m$.    Both questions I find very hard to answer. I really hope someone can help me!


How to install Windows 8 Pro after installing ubuntu 14.04

I have installed ubuntu 14.04 in my Lenovo G505s Laptop and now I also want to install Windows 8 Pro. I have already done an ntfs partition through gParted Partion Editor in ubuntu. This is the same partition where I want to install my Windows 8 Pro. I want to do a dual boot.   Please Help.


I have a question about raid cache cheap, I know there is a battery back for raid cache to prevent any data lose, But what happen if the raid cache itself fail? I mean the cheap and IC, if we lose the raid cache, what happen to our data on the cache memory? Does the battery help us in such case? because the raid cache can't send any data I use HP servers right now, But I am worry about such things And if we lose the data, will we lose all data on the disk ? or it can be recoverable? Thank you


CSS3 selector to find the 2nd div of the same class

I need a CSS selector that can find the 2nd div of 2 that has the same class. I've looked at nth-child() but it's not what I want since I can't see a way to further clarify what class I want. These 2 divs will be siblings in the document if that helps.  My HTML looks something like this:
...

...

...

...
   And I want the 2nd div.bar (or the last div.bar would work too).


Consider a cylindrical universe. Because it is closed (at least in one direction) and non-expanding, I can figure out the distance, say, from the Earth to the same over the full circle of the universe. Now consider I am flying in a relativistic spaceship near the Earth. In this case, if I measure the distance from the ship to the same ship over the full circle in the direction of the flight, this distance would seem to me Lorentz contracted and therefore shorter than the one for the Earth. This way the preferred frame may be chosen as the one with the longest distance over the full circle. This logic is apparently endorsed by some, but does it not violate relativity? For example, if the space is circled only along one dimension, then the curvature is zero and Special Relativity should apply. Should it not?


How I can identify which process is making UDP traffic on Linux?

My machine is continously making udp dns traffic request. what i need to know is the PID of the process generating this traffic.  The normal way in TCP connection is to use netstat/lsof and get the process associated at the pid.  Is UDP the connection is stateles, so, when i call netastat/lsof I can see it only if the UDP socket is opened and it's sending traffic.  I have tried with lsof -i UDP and with nestat -anpue, but I can't find wich process is doing that request because i need to call lsof/netstat exactly when the udp traffic is sended, if i call lsof/netstat before/after the udp datagram is sended is impossible to view the opened UDP socket.  Call netstat/lsof exactly when 3/4 udp packet is sended is IMPOSSIBLE.  How I can identify the infamous process? I have already inspected the traffic to try to identify the sended PID from the content of the packet, but is not possible to identify it from the contect of the traffic.  Anyone can help me ?  I'm root on this machine FEDORA 12 Linux noise.company.lan 2.6.32.16-141.fc12.x86_64 #1 SMP Wed Jul 7 04:49:59 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux


Should I get an Intuos pro medium or large, when used to A4 paper?

I am used to a A4 paper of course. I have already saved up for the medium sized Intuos, but the large (if you do the match) is cheaper for its size.  I don't know which to buy, should I save up even more money for the large because of the math and more work space, or will it feel a little too big if I am used to A4, hard to move around and so on? I don't know, my income also isn't that big BTW.  What version should I get?


continuous functions on $\mathbb R$ such that $g(x+y)=g(x)g(y)$

Let $g$ be a function on $\mathbb R$ to $\mathbb R$ which is not identically zero and which satisfies the equation $g(x+y)=g(x)g(y)$ for $x$,$y$ in $\mathbb R$.   $g(0)=1$. If $a=g(1)$,then $a>0$ and $g(r)>a^r$ for all $r$ in $\mathbb Q$.   Show that the function is strictly increasing if $g(1)$ is greater than $1$, constant if $g(1)$ is equal to $1$ or strictly decreasing if $g(1)$ is between zero and one, when $g$ is continuous.


Why does it make sense to talk about the Galois group of this polynomial?

This question is in reference to an  I received from a previous .  The answer talks about a cubic polynomial $p(x)$ over a (possibly non-perfect) field $F$ which factors over a splitting field as $p(x) = (x-\alpha)^2(x-\beta)$, where $\alpha$ and $\beta$ are not neccesarily distinct, and we are trying to determine if $\alpha$ and $\beta$ have to be in $F$.  My main hangup is the answer talks about the Galois group of $p(x)$, but Dummit only defines the Galois group of a separable polynomial, and only makes an extension of the definition to inseparable polynomials in the case of polynomials over perfect fields. So what is meant by the Galois group of an inseparable polynomial over a non-perfect field? Is it just the automorphism group of the splitting field $K$ of $p(x)$ over $F$, even if $K/F$ is not Galois?


When using title case, should "hands-on" be capitalized like this: "Hands-On"? Or like this: "Hands-on"?


Mathjax/LaTex code for placing tilde beneath a variable

I know that \tilde{x} will produce  but how do I make it that \tilde will be below  ?


My laptop specs are: intel 5th gen i3 8gb ram intel hd5500 . . I am using windows 10 original version , and I don't want to remove it. but i also want ubuntu running in my laptop. please guide me.


Get next / previous element using JavaScript?

How do I get the next element in HTML using JavaScript?  Suppose I have three <div>s and I get a reference to one in JavaScript code, I want to get which is the next <div> and which is the previous.


Regarding whether to add a preposition in infinitive phrase served as attributive

The two sentences I encountered when I read grammar book are as follows:   I had no place to live in. A good place to eat is the Sichuan restaurant around the corner.   Regarding the 1st sentence, the grammar book says the infinitive phrase to live in serves as attributive to modify place. The sentence can be changed into: I had no place in which I can live. And there must be a preposition in to form the phrase to live in the place.  Thus, if the rule of the grammar book is right, there should be a preposition at right after eat and the sentence will be A good place to eat at is the Sichuan restaurant around the corner for the 2nd one, which makes up the phrase A good place at which we can eat.  So, what do I want to know now is which one is right or both of them are correct?


Does anyone know the sum of all triangle numbers? I.e  1+3+6+10+15+21...  I've tried everything, but it might help you if I tell you one useful discovery I've made:   I know that the sum of alternating triangle numbers, 1-3+6-10... Is equal to 1/8 and that to change 1+3+6... Into 1-3+6... You would subtract 6+20+42+70... which is every other triangular number (not the hexagonals) multiplied by two.   1/8 plus this value is 1+3+6+10+...  A final note: I tried to split the triangle numbers into hexagonals and that series and then I got the squares of the odd numbers. Using dirichlet lambda functions This gave me 0 but I don't think this could be right. A number of other sums gave me -1/24 and 3/8 but I have no idea


Is there any word or phrase for when someone in fact says the truth while intends to lie?

Deliberate lie: to tell others something one correctly or incorrectly believes to be false.  Honest Lie: to tell others something one incorrectly believes to be true.  Is there any word/phrase particularly for when one tells others something one incorrectly believes to be false, that is, when one intends to lie but what one tells is, unbeknownst to her, in fact true?


What does term "nerf" mean? in Hearthstone

I keep hearing the term nerf over the internet, specially in Hearthstone discussions.   For example: "Six Hearthstone Cards That Need a Good Nerf". & "Why Blizzard won't nerf Dr. Boom?"  What does it mean in terms of hearthstone? cite an example. Could you explain it in jargon-free way. Sorry for my bad English.  Edit: According to classic definition on , it says: In video gaming, a nerf is a change to a game that makes something less effective or desirable. The word can be used as a verb to describe that change. Which I get it.


Why does this happen when the for in loop is used in Javascript?

So I am trying to implement an object as a set in javascript, where there are no duplicate elements or specific order of elements in the collection. Here is my implementation with the regular for loop:  var Set = function(elements) {     for(i=0;i<elements.length;i++) {         this[elements[i]] = true;     } };   And this works as intended:     y = new Set([4, 5, 6, 3, 2]) => { '2': true, '3': true, '4': true, '5': true, '6': true }   However, if I used the for in loop, something really strange happens:  var Set = function(elements) {     for(var elem in elements) {         this[elem] = true;     } };     t = new Set([9, 8, 7]) => { '0': true, '1': true, '2': true }   Why does the for in loop cause the elements 0, 1, and 2 to be in my set, and not the numbers I had in my array originally?


Show the automorphism $\phi={}^t(A^{-1})$ is not inner for $|F|>3$

I have a question that asks to show the automorphism $\phi= {}^t(A^{-1})$ is not inner for $|F|>3$ (The trace of the inverse of $A$).  For $\phi$ is be inner, it would have to be the case that there exists some $B\in GL_n(F)$ such that  \begin{equation}\phi_B(A)=BAB^{-1}= {}^t(A^{-1})\quad\quad  \forall A\in GL_n(F)\end{equation}  The key to this problem lies in the fact that our field $F$ has more than 3 elements. I tried to use the above equation to show a contradiction, but I ended up with pages upon pages of calculations without anything becoming obvious to me about where the contradiction was, so then I thought perhaps I'm approaching this the wrong way. Can anyone offer a hint?


Would having a romantic relationship matching feature be worthwhile?

I'm not personally interested in such a feature, but I just want to put forth the idea of an optional, possibly monetize-able,  romantic relationship matching feature for SE users. Is this a bad idea? If so, why not?


How often is $1+\prod_{k=1}^n p_k$ not prime?

How often is $1+\prod_{k=1}^n p_k$ is not prime?,wkere $p_k$ is k'th prime consider that $2\times3\times5\times7\times11\times13+1=59\times509 = 30031$ is this one off or, are there infinitely many composites of the form $1+\prod_{k=1}^n p_k$?


What does term per term multiplication of power series look like?

Suppose we have two rational functions $f$ and $g$ on the complex plane, such that $f(0)=g(0)=1$. In a neighbourhood of $0$, we can write the following. \begin{align} f(t) = \sum_{n=0}^{\infty} N_n^f t^n \\ g(t) = \sum_{n=0}^{\infty} N_n^g t^n \end{align} Now my question is, what does the following function look like? \begin{align} h(t) := \sum_{n=0}^{\infty} N_n^f N_n^g t^n \end{align} Evidently, we have $h(0)=1$ and \begin{align} m! \left. \frac{d^m h}{dt^m} \right|_{t=0} = \left. \frac{d^m f}{dt^m} \right|_{t=0} \cdot \left. \frac{d^m g}{dt^m} \right|_{t=0} \end{align} However, I would like to have a formula that gives $h$ in terms of $f$ and $g$ explicitly, without having to refer to either the derivatives of $h$, or a series expansion.


Monty Hall where host doesn't know where the 'gold' is

I have been given this version of the 'Monty Hall' Problem and am having some issues:  On this version of the show, you are, as usual, shown 3 face down cards, one of which is the Q♥ and the other two of which are black spot cards. Your objective is to select the Q♥, which wins $1,000.  As usual, you have to select a face-down card, and then the host turns over one of the other two cards. The twist this time is that the host himself does not know where the Q♥ is, and so may reveal the winning card. In this case you would win immediately!  The answer is that it doesn't matter you switch or not, but I am having trouble understanding why. If anybody could help me out using the law of total probability, that would be great. I understand 'regular' iterations of the Monty Hall but not this specific version where the host doesn't know where the card is.


If a step-grandfather is the step-father of your father, what would the father of your step-father be? What about the step-father of your step-father?


A separable locally compact metric space is compact iff all of its homeomorphic metric spaces are bounded

The title is a claim my classmate made during our summer vacation :D  He showed me a TeX file describing a proof of his claim, and it contains a fairly short but elegant proof. He says that the motivation was to see if the converse of the statement '$(X, d)$ is compact $\Rightarrow$ All metrics homeomorphic to $X$ is bounded.  I was surprised by his work, and wanted to know if it's already discovered and/or published.  So the question is,    Is the claim my classmate made is already discovered? If it is, any references?  How about more general one? like, can we remove/reduce the condition of the claim more weaker?  Are there any underlying theorems or theories in it? If it is not yet discovered, where should I recommend him to publish his work? (LOL) I think it is worth sharing the proof.


"There are several reasons proposed for the collapse of the bridge."

There are several reasons proposed for the collapse of the bridge.   Is this present simple tense or the present perfect tense? I thought it might be the latter since there is a retrospective aspect to the sentence. However, I am quite unsure.


SQL Selecting dates with maximum sale for each department

I am troubled with writing a tricky query.  I have the following table:    For each department I want to print date with largest profit;  I tried coming up with such a query myself:  Select DISTINCT(Name), Date_sale, MAX(A) as B FROM (SELECT   Departments.Name, SALES.Date_sale, SUM(GOODS.Price * SALES.Quantity)   AS A FROM DEPARTMENTS, GOODS, SALES  WHERE DEPARTMENTS.Dept_id = GOODS.Dept_id AND GOODS.Good_id =   SALES.Good_id GROUP BY DEPARTMENTs.Name, SALES.Date_sale)   GROUP BY Name, Date_sale;   But the problem it that departments are printed several times because I groupped by both name and date.     How should I fix it?


Can a Thai citizen with US green card visit Canada?

Can my Thai wife with US permanent green card visit Canada with me?  Taking an Alaskan cruise.


I'm still very new to Ubuntu, and I have it running on two computers. On the first computer, I was able to install and run steam no problem. I'm running Ubuntu 16.04 on both of them. Steam is installed on the other one, steam will install in the Ubuntu Software program, but when I try to run it, the icon will flash on the sidebar for about 15 seconds, then disappear. Steam will still appear in the system monitor. I have been killing the process before I try to restart steam with other methods.  I tried uninstalling and reinstalling and restarting my computer.   I tried running this code from  to see if that would fix it (it didn't.)  rm ~/.steam/steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6   I was able to get it to launch using this   LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1 /usr/$LIB/libgpg-error.so' steam   from .   and also this   LD_PRELOAD='/usr/$LIB/libstdc++.so.6' DISPLAY=:0 steam   from   It runs, but when I restart it I have to use the same code again, it will not launch from the icon in the menu.   I followed the directions from  to try to change the desktop to automatically do the command line but it did not work. I changed the line to   bash -c "LD_PRELOAD='/usr/$LIB/libstdc++.so.6' DISPLAY=:0 steam"    and that seemed to work for the icon in the computer menu.  I think there should be a better way to do this, and if there is, I would dearly like to know. Is there a better way to do this? Is this a reasonable and acceptable solution, will this harm my computer in any way? I am also new to this site, this is only my second question I've ever asked, so if this question is in some way inappropriate, please be nice and let me know.  When I type steam in the terminal, I get the following:   Running Steam on ubuntu 16.04 64-bit STEAM_RUNTIME is enabled automatically /bin/bash: /home/banannakat/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libtinfo.so.5: no version information available (required by /bin/bash)  grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc awk: /home/banannakat/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libtinfo.so.5: no version information available (required by /lib/x86_64-linux-gnu/libreadline.so.6) grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc Installing breakpad exception handler for appid(steam)/version(1476379980) libGL error: unable to load driver: r600_dri.so libGL error: driver pointer missing libGL error: failed to load driver: r600 libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast


I am using Ubuntu 12.04. It seems that it take lot of time for apt-get update. I can see that it spend lot of time for checking language translations file. How to disable translations checking while apt-get update?  I want only English. How to safely remove other language translations?


I have looked at literally almost every post about this issue but none of them fixed my problem. If you can help me I would not be able to thank you enough! you can download it here


finding a method to prove that $19^{20}\equiv 1 \mod 181$

How can we prove that $19^{20}\equiv 1 \mod  181$?


How can I see Time-To-Live (TTL) for a DNS record?

I would like to see the Time-To-Live (TTL) value for a CNAME record.  I have access to  (on Apple Mac OS X), which gives me an answer like this:  % dig host.example.gov <*SNIP*> ;; ANSWER SECTION: host.example.gov.       43200   IN  CNAME   host1.example.gov. host1.example.gov.      43200   IN  A       192.168.16.10   Is the value '43200' the TTL for this DNS record?


In the terminal I used "top" to check the processes and how much of the CPU was being used as I thought max was 100%, so I restored 292,000 photos with recoverjpeg on my sda1 HDD, I opened the folder and the Nautalis is  fluctuating between 130% and 170% , should I close the program and am I at risk of my gpu locking up ?


Using a picture which had been modified beyond recognition. Is that copyright infringement?

Say I take  this pic:    and turn it into this (plus adding title and name of author):    And then use it as a cover for a book at Amazon.  Is that copyright infringement?


tune2fs complaining about "unsupported read-only feature(s)" on fresh ext4 filesystem

I did a fresh install of Ubuntu 16.04. /dev/md1 contains an ext4 filesystem that is mounted at /:  /dev/md1 on / type ext4 (rw,relatime,data=ordered)   Now I want to set the automatic filesystem check interval to one month, but I'm getting a strange error that I find no useful information about:  > tune2fs -i 1m /dev/md1 tune2fs 1.42.13 (17-May-2015) tune2fs: Filesystem has unsupported read-only feature(s) while trying to open /dev/md1 Couldn't find valid filesystem superblock.   Rebooting didn't help. On another machine running Ubuntu 12.04, the same command works like a charm.  Does anyone have an idea what's wrong?  The command tune2fs -l /dev/md1 works fine, by the way. Here is its output:  tune2fs 1.42.13 (17-May-2015) Filesystem volume name:   <none> Last mounted on:          / Filesystem UUID:          38366a40-bbe1-476b-acfe-d271be6335eb Filesystem magic number:  0xEF53 Filesystem revision #:    1 (dynamic) Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery extent 64bit flex_bg sparse_super large_file huge_file dir_nlink extra_isize metadata_csum Filesystem flags:         signed_directory_hash Default mount options:    user_xattr acl Filesystem state:         clean Errors behavior:          Continue Filesystem OS type:       Linux Inode count:              8380416 Block count:              33521664 Reserved block count:     1676083 Free blocks:              32419430 Free inodes:              8312762 First block:              0 Block size:               4096 Fragment size:            4096 Group descriptor size:    64 Reserved GDT blocks:      1024 Blocks per group:         32768 Fragments per group:      32768 Inodes per group:         8192 Inode blocks per group:   512 Flex block group size:    16 Filesystem created:       Thu May 31 10:01:27 2018 Last mount time:          Thu May 31 10:49:41 2018 Last write time:          Thu May 31 10:15:14 2018 Mount count:              7 Maximum mount count:      -1 Last checked:             Thu May 31 10:01:27 2018 Check interval:           0 (<none>) Lifetime writes:          5782 MB Reserved blocks uid:      0 (user root) Reserved blocks gid:      0 (group root) First inode:              11 Inode size:               256 Required extra isize:     32 Desired extra isize:      32 Journal inode:            8 First orphan inode:       4325378 Default directory hash:   half_md4 Directory Hash Seed:      9d55d989-2c2b-4ad8-a29e-53c8798ec68e Journal backup:           inode blocks Checksum:                 0x3d9f8d23


How do I save and use camera images in python code in BGE?

Say I'm in BGE and I'm running an artificial intelligent human that will see the room its in. In my code, I need the images from the 2 cameras in its eye sockets. How do I get camera images in my python (or external C++) code, to then be able to use in ex. in a Convolution Neural Network algorithm?


Can you recommend any ready for use PHP scripts that replace certain strings with their html equivalents?


Let $p$ be a prime number and $G$ a non abelian group or order $p^3$. Prove that $Z(G) = [G,G]$.   I have already figured out that $|Z(G)| = p$, and that $G'=[G,G] \lhd G$.  Also, $|G'| = p$ or $p²$.  I suppose I'd have to prove that $G' \subset Z(G)$, but I've been trying and I have no idea how. Any hints? Thanks!


Absolutely every question I ever ask on Programmers ends up being a bad question and put on hold for off topic

Absolutely every question I ever ask on programmers.stackexchange.com ends up being a bad question and put on hold due to being off topic.  Where can I ask my questions without having to constantly defend from negative comments and votes, the question being put on hold, etc?   Not every programming question has a definitive answer, and those whose answers can be a bit more ambiguous or open for interpretation are also very important. Especially when if you are like me, you don't know anybody in real life or on the internet, that could help you. I could search around for forums, but there is not as much activity there as it is here, for me to get timely feedback.  I have no one to ask. And now, apparently, nowhere to ask for help too.        And there are at least 3 or 4 more questions that I had to delete before my reputation would have hit rock bottom.  Where do I ask these questions?


What is so soft about soft symmetry breaking?

Explicit symmetry breaking terms are classified as "hard" and "soft". If the the explicit breaking is induced by a term whose dimension is less than four it is called "soft" breaking. Does soft breaking has anything to do with low breaking scale? I tried to follow  but couldn't follow the "low energy" interpretation. Moreover, I think the answer is particularly addressed for soft SUSY breaking.  In short, why "soft"?


It gives me an error it should not since I give it a value?

My main activity:  public class DiaryActivity extends AppCompatActivity {  private ArrayList<String> allURL = new ArrayList<>(); public void setList(ArrayList<String> list) {         this.allURL = list;     }      private void fireYourAsyncTask() {         new shitson(this).execute();     }  @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_diary);         fireYourAsyncTask(); }   My other .java:  public class shitson extends AsyncTask<Void, Void, ArrayList<String>> {  ArrayList<String> tmp; private DiaryActivity activity;  public shitson(DiaryActivity diaryActivity) { }  protected ArrayList<String> doInBackground(Void... arg0) {     tmp = new ArrayList<>();     HttpHandler sh = new HttpHandler();     String url2 = "https://................";     String jsonStr = sh.makeServiceCall(url2);      if (jsonStr != null) {         try {              JSONArray urlOfURLs = new JSONArray(jsonStr);             for (int i = 0; i < urlOfURLs.length(); i++) {                 JSONObject JSONURL = urlOfURLs.getJSONObject(i);                 String url = JSONURL.getString("url");                 tmp.add(url);             }         } catch (JSONException e) {             e.printStackTrace();         }     }      writeout();     return null; }  @Override protected void onPostExecute(ArrayList<String> strings) {     super.onPostExecute(strings);     activity.setList(tmp); }  public void writeout() {         for (String i : tmp) {             Log.e("-0-0-0-0-0-0-0-", i);         }     } }   What I want to have the list I made in shitson.java in my DiaryActivity. In the shitson.java the writeout() function writes the right informations in Logcat but at activity.setList(tmp); I get error messages like these:   java.lang.NullPointerException: Attempt to invoke virtual method 'void com.example.petkovics.mango.DiaryActivity.setList(java.util.ArrayList)' on a null object reference     at com.example.petkovics.mango.shitson.onPostExecute(shitson.java:57) at com.example.petkovics.mango.shitson.onPostExecute(shitson.java:20)   What is non-sense since the writeout() function after I filled up the "tmp" ArrayList, it tells me every single data it has to do. But still in onPostExecute it gets crazy...


How to make this code work without repeating the numbers?

I need to print numbers from 1 to 50 in random order without repeating  it .  static void Main(string[] args) {      ArrayList r = new ArrayList();       Random ran = new Random();            for (int i = 0; i < 50; i++)      {         r.Add(ran.Next(1,51));       }       for (int i = 0; i < 50; i++)         Console.WriteLine(r[i]);      Console.ReadKey(); }


Sparsity in Lasso and advantage over ridge (Statistical Learning)

I'm learning about the Statistical learning and in the section comparing Lasso and Ridge Regression it shows that the main difference between these two problems is the way the constraint/penalty is formulated.   In Lasso, the penalty is $\ell_1$ norm: $\lambda \sum |\beta_j|$, while in regression, the penalty is $\ell_2$: $\lambda \sum \beta_j^2$.   Geometrically, this means that the lasso will have a constraint in the form of a diamond (in 2 dimensions), and in higher dimensions it will have vertices and edges. For ridge regression, in 2D, it is a circle, and hypersphere in higher dimensions.   My question is: The author claims that you get SPARSITY in the lasso. I do not understand why, even with the geometric picture above. And what is the clear advantage of Lasso over ridge regression?   Your insights would be very valuable. I appreciate if your answer would contain some mathematics, but more importantly, intuition. Thanks


Showing that an ideal is not a free $R-$module.

Here is the question I want to answer: Let $R = \mathbb Z[\sqrt{-5}]$ Show that $I = (2, 1 + \sqrt{-5})$ is not a free $R-$module. Hint: It helps to view $R$ as $\mathbb Z[x]/(x^2 + 5).$ My questions are:: 1- How can I use the hint? I have found here  how to show that it is not free as it says in the answer in that link the following: It is generated by two elements so if it were free, it would be free of rank $1$ or $2$. If it were free of rank $1$, it would be generated by a single element: you can then try to prove that no element of $R$ divides both $2$ and $1+\sqrt{-5}$. If it were free of rank $2$, then $2$ and $1+\sqrt{-5}$ would have to be free generators (can you see why ?). You can then try to prove that this is not the case, that is, that $2$ and $1+\sqrt{-5}$ are not linearly independent. 2- for showing this "If it were free of rank $1$, it would be generated by a single element: you can then try to prove that no element of $R$ divides both $2$ and $1+\sqrt{-5}$.", should I use the norm function? Could someone push me in the right direction to answer those questions please?


If I want to put two images beside each other, what should I do? I have inserted a figure. But, rather than having the next figure on a new line, I want it to be beside the already inserted figure. How can I do that?


Centering different font-sized special text in a header

I am trying to vertically center a smaller "@" symbol sandwiched between larger text, but "vertical-align: middle;" is barely bringing it up to the baseline with the other text.  As this screengrab shows, with the vertical-align property, the @ sign is still sitting on the baseline of the text. I suppose this is due to the extra space that is included above the @ character? Code snippet attached below roughly approximates my issue.   html{   font-size: 20px; }  h1 {   font-size: 3.5rem;   font-weight: 600;   line-height: 1;   color: orange;   letter-spacing: -.1rem; }  h1 .alt {   color: black;   font-weight: 400;   white-space: nowrap; }  h1 span.mini {   font-size: 2rem;   vertical-align: middle; }
   Hello @ Py


Can I buy a Nikon camera body that already has autofocus, then purchase any non-autofocus Nikon lens and be able autofocus simply from the body itself?


You goes with are. Does the presence of each change this?  How satisfied are each of you with the time you've spent in your respective  universities. How satisfied is each of you with the time you've spent in your respective  universities


SMTP server does not respond to `SmtpClient` connection attempt. How do I fix this?

I tried to write code for sending an email with .NET. This is what I have so far:  MailMessage mail = new MailMessage("mymailaddress@yahoo.com", address); mail.Subject = subject; mail.Body = body; client.Host = "smtp.gmail.com";  client.Port = 587; client.Send(e);   The problem is I get the following exception:      Unhandled Exception: System.Net.Mail.SmtpException: Failure sending mail.           System.Net.WebException: Unable to connect to the remote server.                 System.Net.Sockets.SocketException: A connection attempt failed because the connected party       did not properly respond after a period of time, or established connection failed because connected host has failed to respond 173.194.66.109:587


Unable to create folder/file on root in spite of free space

Since some time I am unable to create file/folder on root. I always log in as root and was able to work properly. My experience is as follows: # pwd /root  # mkdir xcxcx mkdir: cannot create directory `xcxcx': No space left on device  # df -h Filesystem      Size  Used Avail Use% Mounted on /dev/sda1        41G  4.1G   35G  11% / /dev/sda3        91G   36G   51G  42% /home /dev/sda2        99G  3.4G   91G   4% /usr  I see ample space on my system; so why am I not able to create folder/files? Update: df -i  reports Filesystem   Inodes    IUsed    IFree IUse% Mounted on /dev/sda1   2681728  2681728        0  100% / /dev/sda3   6037504   111043  5926461    2% /home /dev/sda2   6553600   146034  6407566    3% /usr  Have I run out of inodes? If so, then how do I correct it?


Spurious space above align environment at top of page/minipage

It seems that the align environment adds additional vertical space if it starts at the top of a page or minipage.  Below are two pages, and two minipages (on Page 1), where the first page/minipage has text followed by an align* environment, and the second page/minipage starts with an align* environment, and note that the equations are still aligned.  Attempted Solution: The closest related question I found was:    I attempted to use the  at the above by adding \setlength\abovedisplayskip{0pt} (after the preamble as per ).  Although, this did move the equations up vertically, they were still vertically aligned:  And since the problem occurs at top of a page as well, I don't think this is related to  Question:  How can I adjust the align environment to automagically not have additional space at the top of a page or minipage? Is there a reason for this behavior, and perhaps should not be changed?  Code: \documentclass{article} \usepackage[showframe,paperwidth=3.5in,paperheight=2.2in,margin=0.5in]{geometry} \usepackage{amsmath}  \begin{document}%\setlength\abovedisplayskip{0pt} Top of Page 1 \begin{align*}% Text above at top of page  e &= m c^2 \end{align*}  \hrule \begin{minipage}[t]{0.45\linewidth}     Top of minipage 1     \begin{align*}% Text above this minipage      e &= m c^2     \end{align*} \end{minipage} \begin{minipage}[t]{0.45\linewidth}     \begin{align*}% No text above in this minipage      e &= m c^2     \end{align*} \end{minipage}  \newpage \begin{align*}% No text above at top of page  e &= m c^2 \end{align*} \end{document}


How to get different ranks on Pokemon-Oras?

I have 30 flags on Pokemon-Oras. How am I supposed to upgrade my rank?


I'm not sure of the word following should be followed by a plural or singular noun.  Which among these two sentences is grammatically correct?  "Determine the values of q, r, and s so that each of the following equations will be algebraic identities in x."  or  "Determine the values of q, r, and s so that each of the following equation will be algebraic identity in x."


How can I display "recent folders" in the sidebar of "Save as" dialogue?

I was using 14.04 and upgraded to 16.04 yesterday.   In 14.04 I had recent folders on top of the sidebar of the Save as dialogue when I saved something from the net (Firefox if that helps). But that feature disappeared in 16.04 and I really want to have it back.   Here is a picture of what I'm trying to explain:  (the save as dialogue in 16.04 without the recent folders on top)


Merge 2 DataTables and store in a new one

If I have 2 DataTables (dtOne and dtTwo) and I want to merge them and put them in another DataTable (dtAll).  How can I do this in C#?  I tried the Merge statement on the datatable, but this returns void.  Does Merge preserve the data?  For example, if I do:   dtOne.Merge(dtTwo);   Does dtOne change or does dtTwo change and if either one changes, do the changes preserve?  I know I can't do this because Merge returns void, but I want to be able to store the Merger of both dtOne and dtTwo in dtAll:  //Will Not work, How do I do this dtAll = dtOne.Merge(dtTwo);


Retagging to include tags for possible solutions

This morning, I got in a brief back and forth  regarding the usage of tags and whether a retagging was appropriate.  Is adding tags for possible solutions or technologies the correct course of action regardless of the OP's desires, or should tags be limited the ONLY the technologies that the OP would like.  The original question has only the  tag, but along the way a user with retag privileges decided that this question was a RegEx question and added .  Since the OP did not make any reference to RegEx, I felt it was an improper retagging as you are possibly limiting the scope of the question to RegEx answers and rolled back.  However, the retagger disagrees saying that he was expanding the scope of the question to include RegEx.  While I see the point that there is some value to broadcasting it out to the followers of the RegEx tag, I still don't agree as using that logic, we should retag any solution that could possibly solved with LINQ as  and since XPATH can solve may of the same issues as LINQ-2-XML, they should include  whether or not the OP wanted it.  It just opens the possibility of too many irrelevant tags just because a specific technology might solve a problem.  Am I correct in my interpretation, or do I need re-educated on tag usage?


Prove that if $p$ is prime, then:  $F_p = (\frac{5}{p})$ mod $p$.  I tried finding residues $(\frac{5}{p}) $ in the sequence, but I haven't found anything. I have no idea how to utilize the sequence. Maybe there is a connection with Binet's Formula?


I'm using Blender 2.66,  I find that the knife tool (K) doesn't work the way it used to.     Dragging across an obscured edge, even if selected, doesn't cut it. There seems to be no way to activate the option to do a midpoint cut or multiple cuts.


android studio null pointer exception on findViewById-int

The error, which I am getting:     Caused by: java.lang.NullPointerException: Attempt to invoke virtual   method 'android.view.View com.github.irshulx.Editor.findViewById(int)'   on a null object reference           at com.example.verma.inspire.PostActivity.onCreate(PostActivity.java:45)           at android.app.Activity.performCreate(Activity.java:6975)           at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213)*   the file PostActivity.java:  import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.Toolbar; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup;  import com.github.irshulx.models.EditorTextStyle; import com.github.irshulx.Editor;  public class PostActivity extends AppCompatActivity {      private Toolbar mToolbar;     private Editor editor;      @Override     protected void onCreate(Bundle savedInstanceState) {          super.onCreate(savedInstanceState);         setContentView(R.layout.activity_post);          mToolbar = (Toolbar) findViewById(R.id.update_post_page_toolbar);         setSupportActionBar(mToolbar);         getSupportActionBar().setDisplayShowHomeEnabled(true);         getSupportActionBar().setTitle("Update Post");          editor = (Editor) editor.findViewById(R.id.editor); //error here         setUpEditor();     }      ... }   and the XML layout:  <?xml version="1.0" encoding="utf-8"?> <RelativeLayout     xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     xmlns:app="http://schemas.android.com/apk/res-auto"     android:layout_width="match_parent"     android:layout_height="match_parent"     tools:context=".PostActivity">      <include         android:id="@+id/update_post_page_toolbar"         layout="@layout/app_bar_layout" />      <com.github.irshulx.Editor         android:layout_width="match_parent"         android:id="@+id/editor"         app:render_type="Editor"         app:placeholder="Start writing here..."         android:paddingTop="10dp"         android:paddingLeft="10dp"         android:paddingRight="10dp"         android:layout_height="wrap_content"         android:paddingBottom="100dp" />  </RelativeLayout>


My system has been update from 16.04 to 18.04 online when popup message display to upgrade OS 18.04. Now How to make bootable DVD/USB ? In startup disk creator application not showing source image (System upgrade). Thanks


Is there any Stack Exchange site for career advice?

I have a question, I posted that on one site, but they consider it more of a career advice question. I am unable to find if there any site of this type?


The reason for Previous shutdown cause: -128

My MacBook Pro 11,2 (Retina 2014) shuts down suddenly from time to time. When I run macbook again, I inspect the log file I see the following message:      Previous shutdown cause: -128   Sometime, when I close a laptop, fans begin to hard work. It happens with/without power adapter. I launched Diagnostic and I got 'NO ISSUE'.   When I run macbook in SafeBoot, all work correctly, but very slowly.  I tried:   Reset SMC, PRAM. ERASE Disk and install macOS from scratch.   Also, I tried to remove battery and use the power adapter only. In this case it work correctly, but sometime I get another error (It happens rarely).   Macbook pro 11,2 Retina 2014 (15 Display) Intel Core i7 2,2 GHz RAM 16 GB SSD 256 GB


Idioms for a 'obvious' or 'needs no explanation'

I need to find an idiom for the following situation.  I am talking to the HR department about a particular policy. I did not know about the policy beforehand and HR had never explained it to me. For HR people, all the policies are obvious, I presume.  I want to say to HR:     HR people discuss HR policies with employees on a daily basis and so for them the relevant facts are very obvious or need no explanation but for me they are completely new   I want to replace obvious or needs no explanation with an idiom or phrase.


Abbreviate first names with multiple letters with biblatex: {\relax Ch}arles not working

There are quite a few posts on this site that deal with the problem of abbreviating names in the bibliography to two letters, for instance Charles to Ch. The suggested solutions include using the , either manual or  using source maps, or by defining a new commands such as .  However, when I try to implement the first solution myself I do not get the desired results. Also the option with the new command does not work and keeps giving me nesting errors for some reason.   MWE  \documentclass{article} \usepackage{filecontents}  \begin{filecontents}{\jobname.bib}   @book{Book1,   author = {Doe, {\relax Ph}ilippe},   title  = {An Important Book},   publisher = {Publisher},   date = {2012}, } \end{filecontents} \usepackage[style=verbose,giveninits=true, backend=biber]{biblatex} \addbibresource{\jobname.bib} \begin{document}  \nocite{*}  \printbibliography \end{document}


Get the job scripts out of a MSDB Backup

Long Story Short... my Database server died a month ago. I restored everything but the MSDB as the tape backup failed. I reconstructed some jobs but some essential ones are missing. I finally found the MSDB backup in an old partition, but here's the gist... it isn't a .BAK file but the actual database and log. I already created a new Database in my instance and attached the MSDB (with different name obviously, MSDBJobs) but I have no idea whatsoever on how can I extract the jobs from this database. I don't want to replace the current ones as some are new and essential as well. Thanks for any help provided :)


If quantum of radation concept is used to define particle nature of radiation, then why it has a frequency?(E=hv)


We all know that besides what vegetarians don't eat (meat and fish), vegans also don't eat eggs. But do vegans eat honey, and, if not, then what do they consume in place of honey when they have a throat problem? And what if they happen to be also diabetic?


Neural network references (textbooks, online courses) for beginners

I want to learn Neural Networks.  I am a Computational Linguist. I know statistical machine learning approaches and can code in Python.   I am looking to start with its concepts, and know one or two popular models which may be useful from a Computational Linguistics perspective.  I browsed the web for reference and found a few books and materials.   Ripley, Brian D. (1996) Pattern Recognition and Neural Networks, Cambridge Bishop, C.M. (1995) Neural Networks for Pattern Recognition, Oxford: Oxford University Press. some links, like ,  (University of Toronto Psychology Department),  (University of Wisconsin Computer Science) and  (Facebook Research).   Coursera courses are generally nice, if anyone knows anything relevant from them. I prefer materials with lucid language and ample examples.


Is there a way to remove a custom Object from every occurrence?

I'm trying to remove every GameObject which meet certain criteria (health<0), completely from every occurrence, so every ArrayList it might be in, and such.   I have a main ArrayList containing every GameObject that may get removed, and I'm trying to iterate through that ArrayList with a For-Each, checking each element for the criteria, and removing it.   This however results in ConcurrentModificationException, which I know the reason to, but do not know how to work around it. Any help would be much appreciated!


Why is fundamental group insufficient to classify manifolds?

I have heard that some issues in group theory prevent classifying all manifolds upto homotopy using the fundamental group invariant. Does anyone know what are those issues?  Thanks, K.


Package dependency tree broken : unmet dependencies

I have just broken my dependency tree after doing :  sudo apt-get update sudo apt-get upgrade   Now when I try installing anything, I get the following error  Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies:  ffmpeg : Depends: libavdevice57 (>= 7:3.4.4) but it is not going to be installed           Depends: libsdl2-2.0-0 (>= 2.0.8) but it is not going to be installed  libglx-mesa0 : Depends: libglapi-mesa (= 18.0.5-0ubuntu0~18.04.1) but 18.2.2-0ubuntu1~18.04.1 is to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).   When I try   sudo apt --fix-broken install   I get the following error  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following additional packages will be installed:   libglx-mesa0 The following packages will be upgraded:   libglx-mesa0 1 upgraded, 0 newly installed, 0 to remove and 13 not upgraded. 37 not fully installed or removed. Need to get 0 B/134 kB of archives. After this operation, 9 216 B of additional disk space will be used. Do you want to continue? [Y/n] Y (Reading database ... 238586 files and directories currently installed.) Preparing to unpack .../libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb ... Unpacking libglx-mesa0:amd64 (18.2.2-0ubuntu1~18.04.1) over (18.0.5-0ubuntu0~18.04.1) ... dpkg: error processing archive /var/cache/apt/archives/libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb (--unpack):  trying to overwrite '/usr/lib/x86_64-linux-gnu/libGLX_indirect.so.0', which is also in package nvidia-396 396.44-0ubuntu1 Errors were encountered while processing:  /var/cache/apt/archives/libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   I tried to install libglx-mesa0 through  sudo apt-get install libglx-mesa0   But I get the following error  Reading package lists... Done Building dependency tree        Reading state information... Done The following packages will be upgraded:   libglx-mesa0 1 upgraded, 0 newly installed, 0 to remove and 13 not upgraded. 37 not fully installed or removed. Need to get 134 kB of archives. After this operation, 9 216 B of additional disk space will be used. Get:1 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libglx-mesa0 amd64 18.2.2-0ubuntu1~18.04.1 [134 kB] Fetched 134 kB in 0s (895 kB/s)        (Reading database ... 238586 files and directories currently installed.) Preparing to unpack .../libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb ... Unpacking libglx-mesa0:amd64 (18.2.2-0ubuntu1~18.04.1) over (18.0.5-0ubuntu0~18.04.1) ... dpkg: error processing archive /var/cache/apt/archives/libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb (--unpack):  trying to overwrite '/usr/lib/x86_64-linux-gnu/libGLX_indirect.so.0', which is also in package nvidia-396 396.44-0ubuntu1 Errors were encountered while processing:  /var/cache/apt/archives/libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   Can you help me to repair it, please ?


How to find the exact number of players on a server?

As players join and leave, I need something(s) giving a redstone signal for every number of players from 1-10, then if there is more than 10. So I can have one thing happen at 1 player, something different happen at 2, 3, 4 ...  I have tried using a comparator output from "/testfor @a", but I couldn't get it to do things like having the command blocks for players=1 and players=2 to turn off if players=3. Everything else I've tried had the same problems, and everything I've found online is for testing for a min/max amount of players.


Can't get sharp focus on Canon 7D at 250mm f/32

I'm an accomplished photographer (at least I thought I was) until I shot and re-shot a scene and it keeps turning out soft.  Settings: Canon 7D... 250 mm...f29...manual focus...1/40 exposure  I used a tripod, and locked up the mirror to avoid camera shake.


Looking for an old TV show where a group of 4 characters (boy, girl, blue guy, robot?) travel to different dimensions

I remember watching a live-action TV show around the late 90's or early 00's. It centered around four main characters: a boy, a girl, a blue guy who might have been furry and a robot (I think). They would travel through different dimensions (I specifically remember the word dimensions being used). I think the premise was that the boy was looking for his dad(?).  I think I watched this show on the family channel so it may have aired on Disney in the US. I also distinctly remember there being a line of McDonald's toys based on the show where you could mix and match the parts from the different characters (possibly an ability that the boy had).


Which dependency injection lifetime should be preferred?

For a REST api, that has no dependencies between requests and is using ASP.NET Core DI.  I have heard conflicting arguments when choosing the most appropriate:   Prefer transient and then scoped and avoid singleton due to memory and multi-threading issues and also because singletons should not be injected with other lifetimes due to captive dependencies Prefer singletons to save time instantiating objects and prevent opening multiple connections   I understand they work differently but is there a 'go-to' lifetime? Should it start with 'transient' and move to others as required?  Are there any investigations proving the instantiation time saved by singleton is actually relevant?


Einstein theorized that gravity is a phenomena manifested by the curvature of spacetime, in effect it IS the curvature of spacetime.  If this is so, why do we need a graviton to convey the force of gravity? If I have mis-understood Einstein then I would appreciate a little help in grasping the relationship between warped space and gravity.


Can Innate Spellcasters cast spells from scrolls?

Kinda a follow-up from . Actually, a more specific case, just to be sure.  About Spell Scrolls:     If the spell is on your class’s spell list, you can read the scroll and cast its spell without providing any material Components. Otherwise, the scroll is unintelligible.   From what I understand from the rulings and seems to be accepted by , creatures can only cast spells from spell scrolls if they have a Spellcasting ability linked to a class. Innate Spellcasters don't, so they can't. Is that right?  In particular, does it change if the Spell Scroll is specific to a Spell that the Creature knows? For example, can a Mind Flayer (the normal one, not the Arcanist Variant) cast Dominate Monster from a spell scroll? (Mind Flayers can otherwise innately cast the spell)  I can see it being house-ruled as a Yes, similar to  (depending on their domain), since the spells they learn from the domain are included on their "class' spell list", but from RAW I understand it as a No. Is my reading correct?


Using correlation to eliminate predictors?

I have 1 dependent variable and 33 independent variables (continuous, categorical & dichotomous). Correlation analyses (2-tailed) show that the DV is only correlated to 7 of the IVs although most of the correlations are very weak, e.g. about 0.1 or less than 0.1.  Is it correct to put only IVs that are correlated with the DV into the regression model?  P.S. What's the use of the correlation matrix (1-tailed) produced with the regression analysis?


How can I find a one-way car rental from Alaska to Seattle (through Canada)?

I'm having a difficulty in finding one way car rentals from Alaska, which I can return in Seattle.  Do all the main rental agencies restrict such one-way rentals, as they involve crossing through Canada, before entering the lower 48 states?


Why does my cellular iPad not have the cellular capabilities?

I’ve recently purchased an iPad Air advertised as ‘Wifi Only’ but it has the sim card tray & antenna. I’ve got the exact same model A1475 in a different storage capacity variant side-by-side with it, the model numbers match. Both are indeed Wifi + Cellular models.  Using Apple's site  and entering the serial number to check the service and support coverage of the devices, both are shown to be 'iPad Air WiFi, Cellular'  The serial numbers on the back of the devices match the serial number in ‘Settings->General->About’ for each device respectively.  The one lacking cellular capability also lacks the following fields in the ‘About’ section: Network, Carrier, Cellular Data Number, IMEI, ICCID, MEID, Modem Firmware. It does not have ‘Cellular Data’ or ‘Carrier’ in the first category of settings either as the older iPad does either, usually 'Airplane Mode, Wi-Fi, Bluetooth, Cellular Data, Carrier'.  I've tried 2 different sim cards, both which work in my phone and other cellular iPad but there's absolutely no indication that it's been inserted or lack thereof.  Other suggestion around the web and on the Apple forums indicate to restore the iPad, users have reported only WiFi firmware is compatible and resetting network settings (I've reset the entire device), all to no avail for other users either.  Browsing other forums I’ve learnt that:   The software setting up the antenna may have failed during a software update therefore no longer has the cellular capability. (iPhones are not prone to this however) The board within the device or certain components could have been removed in order to remove an iCloud lock that existed on the device.   I picked up both second-hand for dirt-cheap prices and the newer iPad was originally advertised as ‘WiFi only’ anyway so there’s no issue with that, I would just like to find a way to resolve the issue is possible. I’d be grateful for any suggestions.  Edit 01/06/2017 I opened up the iPad and found that a cable from the sim card tray to the motherboard where the screen ICs are connected was unplugged. When turning the iPad on, it attempts to look for a signal (shows the 5 empty circles) but then changes to the text 'iPad' but without the pop-up that reads 'No sim card inserted'. I may have damaged the cable when inserting it, it was a mission to get in, that's probably why the last person who repaired it didn't put it into place.


This Apple ID has been disabled for security reasons -- more info?

I recently got a "This Apple ID has been disabled for security reasons" message on all my apple devices. I've have since performed the obligatory password reset process and everything seems to be in working order again.  I'm very curious as to why my account was "disabled for security reasons" and was wondering if there was a way to suss this out. I'd really like to know if any of my email addresses or passwords have been compromised.  According to searches, it seems like one reason this can happen is a lot of failed login attempts. I haven't manually logged in for ages, though. Is there a way to see login attempts to ones account?  It doesn't look like there are any suspect devices that have logged in to my account, or any suspect items in my purchase history (viewed through ). I don't think my account was actually breached, but more information would be very welcome.


I have a symlink with these permissions:  lrwxrwxrwx 1 myuser myuser       38 Aug 18 00:36 npm -> ../lib/node_modules/npm/bin/npm-cli.js*   The symlink is located in a .tar.gz archive. Now when I unpack the tar.gz archive using maven the symlink is no longer valid. I'm therefore trying to reconstruct the symlink. First I create the symlink using ln but how do I set the same permissions as the original symlink?


How did Fred and George fly out of Hogwarts?

When Fred and George leave in Harry Potter and the Order of the Phoenix, they summon their brooms and fly away out of Hogwarts.  How was this possible with all the protective enchantments protecting the castle, preventing flying and apparition? Do the enchantments only keep people from flying in?


How to use `find -exec` to execute command in directory of found file (not current directory)?

Let's say I'm in a directory which has some subdirectories, dir1, dir2, and dir3.  Each of these directories have a file foo and I would like to execute the same command on each foo in each of the directories and have that command executed from inside that directory.  If I were to do it "by hand", it would look something like this:  cd dir1 (execute on foo) cd ../dir2 (execute on foo) cd ../dir3 (execute on foo)   It is imperative that the command be executed from each of the directories.  foo is a batch scheduling script (for HTCondor, if you care to know) and must be executed from each subdirectory so that the output of the runs started by the scheduling scripts will end up in each subdirectory.  The question "", as far as I can tell, does not answer my question. The first answer to that question is more of a workaround which will not work in my case, and the second answer does not have enough of an explanation for me to know how to use it.


Is There a Threading module in Python Equivalent in PHP

Is there a Threading module in Python equivalent in PHP? My code in Python would look something like   from Treading import thread  def somefunction():     print("function")  t = Thread(target = somefunction)         t.start()   Is there a way to convert code like this to PHP, if so, how? Thanks.


How to create a colorbox with only one rounded corner

is there any posibility of creating a coloured text box with only one rounded corner? (Maybe using tikz)    Thank You


I know $m$ ,$n$ are two positive integer numbers such that $m\mid n$. If $p$ is a prime number, I want to show $p^m-1\mid p^n-1$.


Condition on function $f:\mathbb{R}\rightarrow \mathbb{R}$ so that $(a,b)\mapsto | f(a) - f(b)|$ generates a metric on $\mathbb{R}$

Can we impose such condition on function $f:\mathbb{R}\rightarrow \mathbb{R}$ so that  $(a,b)\mapsto | f(a) - f(b)|$ generates a metric on $\mathbb{R}$?  This question came into my mind when I was working on problem $(a,b)\mapsto | e^{a} - e^{b}|$ is a metric on $\mathbb{R}$. I guess this can be done by taking injective function $f$. But I am not sure whether this will work or not. Certainly, this will help everyone in dealing with such kind of problems. I need help with this.  Thank you very much.


Captcha is impossible to solve, worse than anytime before

After pasting the answer from clipboard, I was welcomed with captcha to prove I'm a human. It wasn't as easy as I thought:     Not correct words? Are you kidding?  It seems people have some problems with captcha in the past, like here:   However, now captchas are much much worse. Those old ones were a children play compared to that! And in place of old bug we have a new one, much worse!  I have refreshed the image like mad about 30 times, about 10 times I've tried to guess before succeeding. Each time I've got similar gibberish!  Please fix that. Choose other provider if needed, because that below even doesn't look like any English words.


How does Voxel Cone Tracing solve the rendering equation?

so I am not new to interactive graphics programming, but I wanted to try out advanced techniques. Currently I am struggling to understand how the author of the 2011 paper "Interactive Indirect Illumination Using Voxel Cone Tracing" (Crassin et al) manages to solve the rendering equation. Specifically in section 6 he claims that the hemisphere can be partitioned into a sum of integrals. I know about the Riemann sum, but this doesn't look like it. So my question: How does cone tracing as explained in the paper solve the rendering equation?


bibtex not finding .bib file in Windows 10 using WinEdt

In the code below using the FAU Thesis template found , my Bibliography is not getting generated.  I have the chapters.bib file in folder named "References". CODE \documentclass[phd, 12pt, print]{fauthesis}  \usepackage{lipsum}   %====================================================================================== %   BIBLIOGRAPHY %====================================================================================== \usepackage[backref=false,             defernumbers=true,             style = ieee,             %sorting=none,             sortcites=true,             backend=biber]{biblatex} \renewbibmacro{in:}{} \addbibresource{../References/chapters.bib}% BibTeX \defbibheading{bibempty}{}  %%% Bibliography Formatting % % This modifies the default LaTeX thebibliography environment to: %   appear in the table of contents, and %   list individual items single-spaced. % \renewenvironment{thebibliography}[1]{%     \chapter*{\bibname\@mkboth{\bibname}{\bibname}}%     \addcontentsline{toc}{chapter}{\protect\numberline{}\bibname}%     \begin{singlespace}     \list{\@biblabel{\@arabic\c@enumiv}}%         {\settowidth\labelwidth{\@biblabel{#1}}%             \leftmargin\labelwidth\advance\leftmargin\labelsep             \@openbib@code             \usecounter{enumiv}\let\p@enumiv\@empty             \renewcommand\theenumiv{\@arabic\c@enumiv}}%         \sloppy  \clubpenalty4000  \@clubpenalty\clubpenalty  \widowpenalty4000%         \sfcode`\.\@m}     {\def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%         \endlist\end{singlespace}}  \begin{document} \chapter{Test} \lipsum[1-3]\cite{Richardson}  %\phantomsection \begin{singlespace} \setlength\bibitemsep{10pt}   % length between two different entries \printbibliography \end{singlespace} \addcontentsline{toc}{chapter}{\protect\numberline{}\bibname}  \end{document}   I keep getting the errors: This is BibTeX, Version 0.99d (MiKTeX 21.1) The top-level auxiliary file: biblo.aux I found no \citation commands---while reading file biblo.aux I found no \bibdata command---while reading file biblo.aux I found no \bibstyle command---while reading file biblo.aux (There were 3 error messages)  This used to work up to early last year, now I cannot get my bibliography to compile properly.  Can you assist me in getting my bibliography to be generated?  Thanks!


How to uninstall manually installed Nvidia drivers?

How do I uninstall manually installed Nvidia drivers 310.14  and revert to Noveau.  I have Ubuntu 12.10.


How does Finn sit in the gunner seat with gravity affecting him

I'm thinking that if Finn is sitting in the Millenium Falcon and then runs to the lower turret, then as he sits in the chair for the lower turret, he is literally facing down.  This means gravity from Jakku is pulling him forward.  He certainly doesn't seem like he's being affected by Jakku's Gravity.  So how is this possible?


ajax jquery in mvc - method return True which is not boolean type

In MVC5 I have ajax method in jquery that checking if file exists:   $.ajax({             type: "POST",             url: '@Url.Action("CheckIfnExists", "Home")',             data: { idfile: 100 },             success: function(data)              {                 console.log('result: ' + data);                 if(data == 'True')   Method in controller looks like:  [HttpPost] public bool CheckIfnExists(decimal idfile, {    return true; }   How to change in jquery 'if' statement to:  if(data)   from string 'True' to boolean true


I am unable to view any screen in my ubuntu, Also, when i do apt-get update.  I get below errors :-   Failed to download repository information. Check your internet connection   Details  W:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release Unable to find expected entry 'restricted/source/Sources' 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.   How can i solve the issue.


What happened at the end of Fantastic Beasts with Queenie and Jacob?

At the end of Fantastic Beasts and Where to Find Them,      Newt send up the  with the short-term memory eraser.   After they do that,      Jacob Kowalski goes out into the rain to forget what happened.   But then      Queenie goes out and conjures up an umbrella, in addition to the fact that he was under cover for most of the time.   Then Jacob goes and wanders off, bumping into Newt along the way.  But when     Queenie goes into his new bakery, he appears to recognize her.   This is in addition to that     His confections are magical-beasts shaped.   This would imply that he still remembers things.  So, the question is:  Did Jacob not lose all of his memories? If he did, what happened at the end with Queenie?


Assign dynamic variables in __init__ python

I am trying to assign variables dynamically to a class: Example: class P:     def __init__(self, field):        for key, value in self.func(field):            self.key = value  field = {'a' : 1, 'b' : 2}  obj = P(field) print(obj.a) print(obj.b)  Here I want to assign attributes dynamically to a object, basically keys of field dict as attribute. but I think it will assign 'key' as attribute to that object. How can we do this?


why is the standard error so high for my probit model


can I install mint along with ubuntu on my 32GB pendrive?

I have installed ubuntu on my pen drive and now I can boot from my pendrive. Now I want the same to be done for MINT. So can I install MINT on the same pendrive along with UBUNTU? Pendrive size 32GB.


How to install latest Code::Blocks from tar.xz?

How to install latest Code::Blocks using codeblocks_17.12-1_amd64_stable.tar.xz?  Software center has an old version and I am not able to configure. How to install? Why is there no documentation for installing?


Is it wise to re-apply for a Marriage Visitor Visa for the UK after being refused for one given our circumstances?

I am a British citizen and my partner is Chinese. We plan on getting married in the UK in April 2018. However, my partner's marriage visitor visa has been denied with the letter included in this post.  We have every intention for my partner to return to China after we are married in order to apply for the spouse visa due to him not being allowed to apply while in the UK.  Is it wise to try to reapply for the marriage visitor visa after being refused if we try to provide evidence to prove the points they have made in the refusal letter? If so, what is the best proof we can provide for these points?  Or, is there a better way of going about this. Is there another way of us getting married and then being together?  Any help is greatly appreciated, we have tried our best to understand and explore all options but we are no experts. Thank you in advance.


Can we travel to India via Frankfurt (transit) with an expired Canadian visa? We do not have any other country's visa.  I am an Indian Citizen and my Canadian visa expired last Nov 2018. Now returning back to India from Canada.  Please assist!


I saw on the internet the following Proof of Euclid's lemma, which states that if a prime number divides the product of two numbers, then it must divide at least one of the two numbers.     Since $p \mid bc$, there exists an integer $n$ such that $bc = np$.    Now, assume $p\nmid b$. I.e. there are integers $k, i$ with $0< i < p$, such that $b = kp + i$      And therefore, $$np = bc = c(kp +i ) = kpc + ci \implies ci = p(n - kc)$$    So, $p$ is a factor of $ci$ and since $0 < i < k$ , $p$ must be a factor of $c$.   I am particularly confused by the last statement:      ... since $0 < i < k$, $p$ must be a factor of $c$   This does not make sense to me... $i$ needs not be less than $k$.  This proof was selected as the best answer   I would be grateful if someone could explain me what is going on at the end of the proof or if it is wrong.  UPDATE: I need a proof that does not use the gcd algorithm.


Why does IEnumerator inherit from IDisposable while the non-generic IEnumerator does not?

I noticed that the generic IEnumerator<T> inherits from IDisposable, but the non-generic interface IEnumerator does not. Why is it designed in this way?  Usually, we use foreach statement to go through a IEnumerator<T> instance. The generated code of foreach actually has try-finally block that invokes Dispose() in finally.


Why can't they just delete the account instead of suspending a user network-wide for more than a century?

On  a user is mentioned who is "suspended" till 2292, which means the suspension period expires on the 23rd century (2201-2300).    mentions another user who is suspended until 2118, which is the 22nd century (2101-2200).      Why can't they just delete the account instead of doing like this?


It is my understanding that  are those that are internal to a particular interaction. They do not fulfill the requirements of a freely-travelling particle (ie a plane wave) and as such do not have the usual rest mass of "real" particles. In other words, they are "off mass shell". Many sources mention that virtual particles should not be treated as particles at all, and instead describe them as strictly mathematical constructs to calculate the integrals represented by Feynman diagrams.  My confusion with this description is, what really makes something internal to an interaction? For any given "external" line in a Feynman diagram, why couldn't we simply expand the diagram to include further interactions of the outgoing particle, such that it becomes "internal" to our new diagram, and therefore a virtual particle? Unless we're talking about a universe of only a couple of particles that really do interact once and never again, I don't see a fundamental distinction between these two types of particles. People talk about how only non-virtual particles are measurable, but isn't any measurement just another long series of interactions, of which our "measured" particle is some internal part?  To give an extreme example, take a photon emitted from the sun by some process, which travels all the way to Earth before interacting with some other particle on the surface. Couldn't I construct a Feynman diagram of this interaction, where the photon is just an internal line exchanged between two other particles, making it "virtual"?  Have I made a fundamental misunderstanding of virtual particles here, or are all particles in QFT, real and virtual, simply excitations of the field that asymptotically approximate on-shell particles the further away the two interaction nodes are?    Edit: There seems to be some lack of consensus on this question. Some answers to similar questions are saying that the notion of being "on-shell" is simply an asymptotic approximation for very long-lived particles, and that fully on-shell states are unphysical as they correspond to a completely non-interacting particle. In other words, the difference between "real" and "virtual" particles is not a discrete distinction:      Other answers seem to say that virtual particles are fundamentally different to real particles. They only make sense within the context of a Feynman diagram, and a Feynman diagram is strictly a useful tool for perturbative calculations. A single Feynman diagram does not make physical sense on its own, and does not represent the actual, physical world lines of particles:   (see "Can one distinguish real and virtual photons?")


How to build a dict which all values are independent instances of [] in Python?


Does white whole wheat flour need to be refrigerated?

I know that regular whole wheat flour needs to be refrigerated, but does white whole wheat flour also need refrigeration? I hate to use up the space in the refrigerator if I don't have to.  I have 5 lb. (2.3 kg), and it would probably take me a month or so to use it all.


OOP Java: Better to extend a class or create a new instance of the subclass?

I'm having trouble with the concepts of object oriented programming.  Is it better to extend a class or create a new object within a class? Under which circumstances would you extend a subclass versus creating a new instance of that subclass within the calling class? The example is in Java but I imagine the concepts will work in other OOP languages.  I appreciate your insights  class Mini { // I want to use the members of this class in another class     int myInt;      public Mini(int myInt){         this.myInt = myInt;     }      public int myMethod(){         return this.myInt;     } }  // should I create a new instance of Mini here? class Maxi {     Mini myMini = new Mini(5);      public Maxi(){         int miniInt = myMini.myMethod();         System.out.print(miniInt );     } }  // or should I have Maxi extend Mini? class Maxi extends Mini {     public Maxi(int myInt){         System.out.print(this.myInt);     } }


Motion Tracking objects that go out of frame and re-enter later

I am motion tracking a video in which the camera turns away from one scene and then shortly returns to it. However, the segments that went off-screen lose their track and do not continue tracking once the camera returns. I am wondering if there is a manual way to tell a segment where and when to continue looking for it's tracking target. Is this possible to do?


Prove a bijection between $\mathbb{N}^2$ and $\mathbb{N}$.

Prove that the function $$f(m,n)=\frac{1}{2}\left(m^2+2 m n+n^2+m+3 n\right)$$ is a bijection between $\mathbb{N}^2$ and $\mathbb{N}$.  The problem arose in a series problem. I have to show that for each couple $(m,n)$ we get a different natural number and that all natural numbers are got applying $f$. Below an example of what happens for $m,n$ from $0$ to $6$ $$ \begin{array}{ccccccc}  0 & 2 & 5 & 9 & 14 & 20 & 27 &\ldots\\  1 & 4 & 8 & 13 & 19 & 26 & 34 &\ldots\\  3 & 7 & 12 & 18 & 25 & 33 & 42 &\ldots\\  6 & 11 & 17 & 24 & 32 & 41 & 51 &\ldots\\  10 & 16 & 23 & 31 & 40 & 50 & 61 &\ldots\\  15 & 22 & 30 & 39 & 49 & 60 & 72 &\ldots\\  21 & 29 & 38 & 48 & 59 & 71 & 84 &\ldots\\ \ldots\\ \end{array} $$


Why is the pattern buffer in Star Trek not routinely used to revive people?

Seeing as Commander Riker was restored using the transporter pattern buffer, when assumed dead, why is this not always used when someone dies? I guess for dramatic purposes it wouldn't be very interesting if no one ever was under the threat of dying, but is there any explanation in the series itself?


adjust max possible volume in pulseaudio

Somtimes some sound/movie/music on my Ubuntu_12.04 system is at a very low volume by itself. Henceforth I increase the volume of the sound output. I can use the following setting (see screenshot)   It seems therefore that pulseaudio is able to increase the volume beyond the maximum that appears possible by merely using the "increase-volume" buttons of the machine.  My questions is how I can adjust Pulseaudio to allow a greater range or a higher max volume increasing???  Especially with some audio material that is at a very low volume to start with it would be nice to be able to swiftly increase the output volume (powerup) to a higher setting than maybe necessary to other -already quite loud- material.


Hitting back in the browser does not remember my saved edits or comments

This appears to be a bug in StackOverflow and on other StackExchange sites. I only so far tested with Firefox:   Edit a question or answer, or add a comment, save it Go to another page in the same tab Hit back in your browser You will now see the status from before your edit.   The same is true for up-/downvotes, comment votes, comments by others, edits or new answers by others (even the "there is a new answer" will re-appear).  And it can be observed in the top-left under Recent inbox messages and Recent achievements. If they had a notification and in the following page you clicked that away, after clicking back they are back again.  (It gets even weirder if you go further back in history, i.e. if you edit/comment a post, see a new message, go to another post, go further the previous post and so forth a few times: then hitting the back-button a few times you will literally see all earlier versions of your post)  I assume the browser takes the page from the local cache and the AJAX-updated parts are not in that cache. But it is often confusing behavior. Not sure it is trivial to resolve though.  Edit: the  and this behavior appears to have either gotten worse or was silently fixed for a while and now has returned. So I propose to keep it open for a while.


Prove by induction that $\forall n \in\mathbb N$, $3\mid4^{n}-1$.  1) For $n = 1$ the statement is obviously true.  2) Now what about $n+1$? I was thinking of writing $4^{n}-1$ as $2^{2n}-1$ and then $4^{n+1}-1 = 2^{2n+2}-1$ but that got me nowhere.


How did I get unbanned? (I did not get any upvotes)

I used to be banned on Stack Overflow. Since then, I had tried to edit question so that the ban can be lifted, but when I learned that , I abandoned my hope and as sure as eggs is eggs that I will be banned for the rest of my life.  However, as Alexander Pope said: , today I click on the Ask Question button on Stack Overflow and extremely surprise that I can ask. I don't think that this is a mistake (if it is, please don't ban me again) but a reasonable reason.  Is it because recently I have some well received contributions on other sites? It seems that . Then why do I get unbanned?


Table: vertical alignment with variable height

I have the following code  \usepackage{tabularx} \begin{document}  \begin{table}[t] \begin{center} \renewcommand{\arraystretch}{1.3} \begin{tabularx}{\textwidth}{crX} \hline \textbf{Chapter} & & \textbf{Reference} \\ \hline \\ \vspace{-11mm} \\ 1 & \small{a} & \small{text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text} \\ \\ \vspace{-12mm} \\ \hline \\ \vspace{-12mm} \\ 2 & \small{b} & \small{text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text} \\ \\ \vspace{-12mm} \\ \hline \\ \vspace{-12mm} \\ 3 & \small{c} & \small{text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text} \\ \\ \vspace{-12mm} \\ \hline \\ \vspace{-12mm} \\ \end{tabularx} \end{center} \end{table}  \end{document}   which produces this    Now, in the first column, I'd like to have "1" aligned at the top, "2" aligned at the center, and "3" aligned at the bottom. How can I obtain this? Thanks in advance.