Using Select Layer By Attribute in for loop with ArcPy?

I'm trying to iterate through a feature class and select each feature one by one by using the OBJECTID field. When I use a single value, the SelectLayerByAttribute works, but how do I compare the OBJEECTID to a variable that increases in count through the loop. The program is then suppose to create a layer for each feature in the feature class. This is what I have so far:  import arcpy import os arcpy.env.workspace = "C:\Users\Daimon Nurse\Desktop\DFMPROJECT\DFMPROJECT.gdb" arcpy.env.overwriteOutput=True inlayer = "C:\Users\Daimon Nurse\Desktop\DFMPROJECT\DFMPROJECT.gdb\ZonesPolyline"   with arcpy.da.SearchCursor(inlayer, ("OID@", "SHAPE@AREA")) as cursor:     i = 1     for row in cursor:         print("Feature {0} has an area of {1}".format(row[0], row[1]))         outlayer = "ZonePolygon"         arcpy.MakeFeatureLayer_management (inlayer, outlayer)         arcpy.SelectLayerByAttribute_management (outlayer, "NEW_SELECTION", """           "OBJECTID" = 1 """)         output = r'C:\Users\Daimon Nurse\Desktop\Grounds Project\DFMGROUNDS.gdb'         outfile = os.path.join (output, i)         arcpy.CopyFeatures_management(outlayer, outfile)         print i         i = i + 1


Is there a word for someone who somewhat delights in their illnesses/medications?

For example, a couple of years ago I talked to this woman who had lupus, and she would often tell stories of the all the gnarly surgeries and medications she had to take to control her disease.  I rather got the impression at the time she enjoyed the attention it brought her; not necessarily in a totally overbearing way, but more subtle.  Similarly, just today at the barber's, I overheard another woman talking to a hairdresser about some disease she had, which required her to take "experimental vaccines" and "all sorts of red and blue pills"; she informed the guy that although she looked outwardly normal, she was felt terrible, and was sick all the time from the medication.   She gave an "I'm chugging through it" half-smile as she talked.  Note that this isn't Munchausen's, which is the first word to come many people's minds — neither of them ever gave me the impression they weren't truly sick.  It's more they had an enthusiasm for being ill and sharing that news that most people don't have. Is there a good word for this kind of person?


How do ciphers change plaintext into numeric digits for computing?

For example, in RSA, we use this for encryption: $ciphertext = (m^e \mod n)$  and for decryption.  If our message is "hello world", then what number do we have to put as $m$ in the RSA formula?


What is a good way to respond or comment to a boomerang answer?

What is a good way to respond to a boomerang answer, an answer that basically responds with "You don't want to do that, do this other thing"? Maybe I do want to use my cat as a mop for my kitchen floor (Stack Overflow Podcast). I asked a question, a person answered a bit of it, and then they  summarized it with "You only need to trust the service doing the access". The user put a bit of good work into the answer that I think is useful. But I would like to point out to them that it is not an answer to my question, without losing their work.


is the following way correct for determines the complexity of Fibonacci function?

i would like to know if the following explanation is already correct in order to determine the complexity of Fibonacci function ?


Is it safe to replace a 4400mAh laptop battery with a 8800mAh battery?

I have an Acer Aspire 5536G. My battery is having problems so I am thinking of replacing it. I have searched online through many sites and I found some good deals. However, currently my laptop has a 4400mAh lithium ion battery so I was thinking of replacing it with 8800mAh 12-cell battery that lasts more hours than 4400mAh without power plug.


Java use String.valueOf(char[]) but shows garbled

char[] string = new char[16]; for(int i = 15; i >= 0; i--,input>>=1){     string[i] = (char)(input&1+48);//ascii '0'=48 } return String.valueOf(string);   use this way, will get garbled output as follow:  Input:  0    Output:   (will show binary square)


How to call functions from parent class in C++?

TL;DR I have a class in which some function names conflict with the parent class's function. How to call functions from the parent class in C++? My problem I'm trying to make a class with stream functionality. So, I inherited my class from std::basic_iostream . But my class has many functions which conflict with the base class. So, I defined a dedicated class for stream and a function within the main class which will return the stream object. I implemented the constructor of the main class such way so it will create stream objects on object creation. My code was like this: class mystream : public std::basic_iostream<char> {     ... };  class myclass {     protected:         mystream* stream;     public:         myclass() {             stream = new mystream(args);         }         mystream& io() {             return (*stream);         } };  What I'm trying to do now It works great when I access the stream with io member, but I want to use << and >> operator without calling io member and any member function of mystream with io member. Now I have to access stream like this: myclass object; object.io() << "Some output"; object.io().flush();  But I want to access << and >> operators directly from object and any member of mystream by io function, like this: myclass object; object << "Some output"; object.io().flush();  What I tried I tried to add this to my class, but it misbehaves and can't handle IO manipulators like std::endl : template <typename type> std::ostream& operator << (type data) {     return ((*stream) << data); } template <typename type> std::istream& operator >> (type &data) {     return ((*stream) >> data); }


In Python, changing the order of float addition changes the output value. How?


gzip: stdin: not in gzip format when trying to extract kernel tarball

I am new to Ubuntu. I am trying to install the latest kernel (4.6), so I can get a few functions on my Surface Pro to work.  I ran these commands:  wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.6.tar.xz tar zxvf linux-4.6.tar.xz cd linux-4.6   But this is what I get.  $ wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.6.tar.xz HTTP request sent, awaiting response... 200 OK Length: 89461728 (85M) [application/x-xz] Saving to: ‘linux-4.6.tar.xz’  linux-4.6.tar.xz    100%[===================>]  85.32M  1.99MB/s    in 46s       2016-05-27 11:52:02 (1.84 MB/s) - ‘linux-4.6.tar.xz’ saved [89461728/89461728]  $ tar zxvf linux-4.6.tar.xz gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now  $ cd linux-4.6 bash: cd: linux-4.6: No such file or directory   I don't know how to get past this error with tar. What should I do?


I have a problem with my website footer. As supposed to be, it's rendered after the page's content, but when the page's content is less than the browser's height is annoying to see it on the middle of the page.  I'm correcting this behavior manually setting the footer to position:absolute; bottom:0, but doing so, breaks the footer when the content is greater than the browsers height. There is any way to automate this?  The content is just a div, with no aditional style and normally, the footer is position:relative; bottom:0. The website could be seen here:   Thanks.


I ran into this error earlier today and requested that the extra logs be purged from the server. It was done but it still claims that there isn't any room. Is there a way to notify the server that it has more room than it thinks?


In a job interview, I want to ask the interviewer about work hours. We are talking in the present. In this case which sentence is correct, and why?        I was wondering, what are the work hours?   I am wondering, what are the work hours?


What does the phrase " happen to be " mean?

What does the phrase "happen to be" mean in the sentence:  Camera just happen to be recording this.


How to show that $x^2\equiv 2 \pmod {11}$ has no solution.

I am not familiar with the topic. I can work out for the problem when the problem has a solution. But here I don't know how to it. Using the table I can see there is no solution. But I want to know how to do mathematically.


I'm working on various asp.net pages .  For inline  functions I do see 2 different formats are used:  Example 1:
<%Response.Write(now())%>
   I also see another one with #:  Example 2:  <Asp:TextBox id="Textbox5" width="40" Text='<%# DataBinder.Eval(Container.DataItem, "Name") %>' runat="server" />   I want to know what is the exact different , <%# vs <%


When is a continuous function differentiable?

I have been doing a lot of problems regarding calculus. An utmost basic question I stumble upon is "when is a continuous function differentiable?" (irrespective of whether its in an open or closed set).


How can I save my chat log or chat history in Diablo 3?

I would like to save my chat logs, or my chat history, for archival purposes. Most chat clients that I use already have a logging function of some kind.  Does the Diablo 3 game client save the chat session anywhere on the drive?


Format the DateTime into a string using DateTime.ToShortDate()

What is the proper way to use the DateTime.TryParse() method to convert the string to a DateTime object, and then use the DateTime.ToShortDateString() to reformat the data into the the string?Output:5/26/2016 12:00:00 AMDesired: 5/26/2016 To get current date and time:  DateTime CurrentDateTime = DateTime.Now;  To Convert today's DateTime to short date:  string CurrentDate=CurrentDateTime.ToShortDateString(); To Convert today's DateTime to short time: string CurrentTime= CurrentDateTime.ToShortTimeString()  Resources:


Inconsistent 4-Dot Ellipsis When Using the Amsmath and Ellipsis Packages Together

I have been working on a document that called for both the Amsmath and Ellipsis packages. When I omit one of these packages, the 4-dot ellipsis is produced exactly as I want: \documentclass{article} \usepackage{ellipsis} %\usepackage{amsmath}  \begin{document} \Large Word\ldots. \end{document}  Giving  However, when I run the code using both packages together, I get  Notice the shortened space between the third and fourth dots. Does anyone know what is causing this and how I may correct it? Thank you.


Suppose $H \le G$ and $g^2\in H$ for all $g\in G$. Show $H$ is a normal subgroup of $G$

Let $G$ be a group and $H$ a subgroup of $G$. Suppose $g^2\in H$ for all $g\in G$. Show $H$ is a normal subgroup of $G$. I tried lots of methods, but failed. Any suggestion? Thanks.


I'm having trouble to add a dictionary in a list of dictionary. Here is my problem description: >> my_list = [{}]*4 >> my_list [{}, {}, {}, {}] >> my_list[0] {} >> key=(0,0,0,0) >> my_list[0][key]=[] >> my_list[0]      {(0, 0, 0, 0): []}  So far so good, but if I print my_list, this is not what I expected: >> my_list [{(0, 0, 0, 0): []}, {(0, 0, 0, 0): []}, {(0, 0, 0, 0): []}, {(0, 0, 0, 0): []}]  What I expected is: [{(0, 0, 0, 0): []}, {}, {}, {}] What is going on? I only add one entry into the first element of my_list. I don't expect my_list[1:3] have the same thing. Please help!! Many thanks, Richard


I have the following table.   create table test (    id smallint unsigned AUTO_INCREMENT,    age tinyint not null,    primary key(id),    check (age<20) );   The problem is that the CHECK constraint does not work on the age column. For example, when I insert 222 for the age field MySQL accepts it.


Using apt to remove many packages by mask

I'm new in linux. Trying to remove libreoffice from by xubuntu 20.04. Libreoffice was installed with xubuntu. I execute many variants: sudo apt remove 'libreoffice\*' sudo apt remove 'libreoffice*' sudo apt remove 'libreoffice.*'  In all cases I got error: E: Unable to locate package libreoffice.*  <result depends on input>  What I tried: but next solution shows how use apt-get instead of apt.  My questions are:  how to specify mask for apt remove command? how to remove correctly libreoffice using apt? what if I use apt-get for this case?


How to include table of contents into a table of contents

I would like to know how to include table of contents into a table of contents....  I have an example of how to spoof it into the toc - using \phantomsection - but it seems like when i have a long document the link goes a bit wrong - ie. it links to a couple of pages before.....  \phantomsection \addcontentsline{toc}{chapter}{Contents} \tableofcontents     Example:  \documentclass[12pt, a4paper, twoside]{book} \usepackage[english]{babel} \usepackage{amsfonts,dsfont} \usepackage[final]{pdfpages} \usepackage{hyperref}   %---------------------------------------------------------------------------------- \begin{document} \pagenumbering{roman}  %----------------------------------------------------------------------------------  %---------------------------------------------------------------------------------- \thispagestyle{empty} \begin{titlepage} {\Large \begin{center} {\bf XXXXXXXXXXXXXXX} \end{center} } \end{titlepage} %----------------------------------------------------------------------------------  \phantomsection \addcontentsline{toc}{chapter}{Contents} \tableofcontents   \phantomsection \addcontentsline{toc}{chapter}{List of Figures} \listoffigures  \phantomsection \addcontentsline{toc}{chapter}{List of Tables} \listoftables  %----------------------------------------------------------------------------------  \newpage \setcounter{page}{1} \pagenumbering{arabic}  \chapter{XXXXX} \label{chXXXXX}  \section{Introduction}\label{chXXXXX_Intro} BLAH BLAH BLAH.   %----------------------------------------------------------------------------------  %-------------------- \setboolean{@twoside}{false} \end{document}


How much xp/prestige do you gain at a gym by training?

I have tested this a little bit and I'm not quite sure I understand the exact numbers or what impacts them.  I took a gym, put in a 25cp Magikarp, and trained against it.  521cp Vaporeon: 10xp and 100 prestige  10cp Magnemite: 100xp and 1000 prestige  I didn't record other numbers, but I know I would only get around 800ish prestige with pokemon around the 25cp-35cp range.  Purpose to this (feel no need to answer these): What if there were 2+ low cp defenders? Would I gain 100xp per defeat as long as my cp is equal to or lower than theirs? Could I gain more xp if the defender was 500cp and I won with a 200cp? Is this a strat to take down more prestige at an opposing gym (low cp, type advantage)?  For all I know, getting less than 100xp per defeat is based on HP difference, attack power difference, or even how many attacks it took to win.  Does anyone know the math for how much xp you gain or prestige you gain when training, and how much they lose at opposing gyms?  Thanks!


How do I monitor system parameters like memory, CPU and disks on windows systems via SNMP?

I want to monitor system parameters like CPU load, CPU Idle time on windows system via SNMP. Does HOST-RESOURCES-MIB can handle this?


I tried to do systemctl start apache2, then it shows no error. But when I check its status, it’s still inactive. How to resolve this? The output of the status follows:      apache2.service - LSB: Apache2 web server    Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)   Drop-In: /lib/systemd/system/apache2.service.d            └─apache2-systemd.conf    Active: inactive (dead) since Tue 2020-02-11 12:56:44 +04; 3s ago      Docs: man:systemd-sysv-generator(8)   Process: 3372 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)   Process: 3356 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)  Feb 11 12:56:44 hadoop-HP-Pro3500-Series apache2[3356]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 Feb 11 12:56:44 hadoop-HP-Pro3500-Series apache2[3356]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80 Feb 11 12:56:44 hadoop-HP-Pro3500-Series apache2[3356]: no listening sockets available, shutting down Feb 11 12:56:44 hadoop-HP-Pro3500-Series apache2[3356]: AH00015: Unable to open logs Feb 11 12:56:44 hadoop-HP-Pro3500-Series apache2[3356]: Action 'start' failed. Feb 11 12:56:44 hadoop-HP-Pro3500-Series apache2[3356]: The Apache error log may have more information. Feb 11 12:56:44 hadoop-HP-Pro3500-Series apache2[3356]:  * Feb 11 12:56:44 hadoop-HP-Pro3500-Series apache2[3372]:  * Stopping Apache httpd web server apache2 Feb 11 12:56:44 hadoop-HP-Pro3500-Series apache2[3372]:  * Feb 11 12:56:44 hadoop-HP-Pro3500-Series systemd[1]: Started LSB: Apache2 web server.


Offer to do something for money on Stack Overflow

I stumbled across an answer on Stack Overflow that said something like:     Hey, you could do that by using XXXXXXX, but if you get really stuck,   I could do that for you in exchange of a small fee.   Is it ok for answerers to try and charge money in exchange for more help? Or is this unacceptable behavior?


So for example I'm trying to not match 'test'. I've tried [^t][^e][^s][^t]. It won't match it, but it also won't match if at least one of the characters match the notes in the same position.   Any idea how to get around this?  Just a note, this is POSIX version of regex, there are no look-aheads or look-behinds.  Also, to clarify, the word I want is between certain characters, i.e. for the string "sdkfjdlskj <dsfdjslj@example.com>" I am looking for everything between '<>'. The email part is easy, but not matching a certain word is quite boggling.


"the police conspiracy" vs. "the police's conspiracy"

I am firmly convinced he is innocent and his accusation is the result of the police conspiracy.     I am firmly convinced he is innocent and his accusation is the result of the police's conspiracy.    Which sentence do you think is a better choice?


Convergence of a sequence of random variables

Suppose $P(X=1)=P(X=-1)=1/2$ and define   $$X_n=\begin{cases} X\ \text{with probability}\ 1-\frac{1}{n} \\ e^n\ \text{with probability}\ \frac{1}{n} \end{cases}$$  I then need to prove or disprove that $X_n$ converges to $X$ in probability, distribution and quadratic mean.  For the convergence in probability I noted that $P \left( |X_n-X|>\epsilon \right)=P\left( X_n>X+\epsilon \right)+P\left( X_n<X-\epsilon \right)=\frac{1}{n}+0 \to 0$  Assuming then that I got that right, $X_n$ also converges in distribution to $X$ as convergence in probability implies convergence in distribution.  I do not know how to handle the convergence in quadratic mean though. Could I please get some help there? If I can prove convergence in QM, the other implications follow, which makes me think that it won't be the case ;).  Thank you.


How to sort Google Scholar search results by number of citations?

There appears to be no way to sort Google Scholar search results by any field. If somebody has figured out a way to do so, please share.


Source path too long popup while deleting folders in Windows

How to delete files that says "source path too long" I could not able to delete a folder completely from my computer because one of the files in the folder is giving out error "Source Path too long for delete".  Operating system : Windows 7


Prove that if G — (V, E) is an arbitrary bipartite graph, then $|E| \leq |V|^2/4$ using induction

let $n=\mid V\mid$  base case: let $n=0$. Thus lemma becomes vacuously true since both bipartitions will contain the empty set thus not a bipartite graph.  Inductive step:  let $k\in\mathbb{N}$, assume $P(k)$ show P(k+1): $\forall G=(V,E), k+1 = \mid V \mid\Rightarrow \mid E\mid\leq\frac{(\mid k+1\mid)^{2}}{4}$, where G is bipartite  I'm having trouble the inductive step, here's my intuition of how I think I should approach. create a subproof to show max possible edges in bipartite graph is when both bipartitions of V has the same size. Then we can assume if a bipartite graph is complete then proposition is satisfied for case 1. I think for Case two, prove for when # of edges are less than the max?


Non - convergence of loss function in Neural Networks with a step activation function

In the below lecture by Professor Patrick H. Winston on Neural Networks:  The professor discusses the problem non - convergence (watch from the 22nd minute) of loss function (using gradient descent) when a step activation function is used. Can some one explain to me mathematically and intuitively why there is problem of convergence using a step activation function in Neural Networks. Also, please explain why the step function is widely used in Neural Network applications despite it failing to converge.


Possible Duplicate:          I was thinking on the following line of thoughts: $1 =  \sqrt{1} = \sqrt{-1 \cdot -1} = \sqrt{-1} \cdot \sqrt{-1} = i^2 = -1$  Of course this is not true, but I was wondering which step in this 'line of thoughts' is forbidden to make?   Thanks for the explanation.


How to suppress vertical space between theorem heads and enumitem environments?

How can I suppress vertical space between a theorem head and an enumitem environment? I would like the output to look like version 3 below, but I hope there is an automatical solution without ~ and \vspace.  \documentclass{article} \usepackage{amsthm} \usepackage{enumitem} \newtheoremstyle{mythmstyle}% {0.5em}% space above {0.5em}% space below {}% body font {}% indent amount {\sffamily\bfseries}% head font {}% punctuation after head {\newline}% space after head {\thmname{#1}\ \thmnumber{#2}\ \thmnote{(#3)}}% head spec \theoremstyle{mythmstyle} \newtheorem{Theorem}{Theorem} \begin{document}  %% version 1: vertical spacing correct \begin{Theorem} Dummy text \begin{enumerate}[label=(\arabic*),leftmargin=*,align=left] \item Item 1: More dummy text \item Item 2: More dummy text \end{enumerate} \end{Theorem}  %% version 2: vertical spacing too large \begin{Theorem} ~ \begin{enumerate}[label=(\arabic*),leftmargin=*,align=left] \item Item 1: More dummy text \item Item 2: More dummy text \end{enumerate} \end{Theorem}  %% version 3: desirable output, but ugly solution via \vspace \begin{Theorem} ~\vspace{-1.4em} \begin{enumerate}[label=(\arabic*),leftmargin=*,align=left] \item Item 1: More dummy text \item Item 2: More dummy text \end{enumerate} \end{Theorem}  %% version 4: does it work with enumitem alone? (no, topsep seems to be ignored) \begin{Theorem} ~ \begin{enumerate}[label=(\arabic*),leftmargin=*,align=left, topsep=-1.4em] \item Item 1: More dummy text \item Item 2: More dummy text \end{enumerate} \end{Theorem} \end{document}


Disable autohide behavior for Global Menu in 14.04

So far, I'm actually pleased with Unity in 14.04. My only issue is the AppMenu.   And no, I'm not talking about the Unity launcher. I'm talking about the top panel's global menu.  Is there a way to remove the autohide function?  And I don't want to see any comments related to CCSM- The option doesn't exist in 14.04.  Thoughts?


How can i recover deleted data from sqlite?

I want recover deleted record and dropped data from SQLite db file,  I check my db file with text editor and i saw dropped data is still there..  I'm using SQLite3.dll (in c#) but i can`t find something property for open db with dropped data or ...  Is there any library for helping me? or something simple code for recovering data from sqlite db file?  Edit 1:  i try to find a data recovery library or program for sqlite.. after many searchs i found   SQLiteConnection.Open();  SQLiteDump sqSqlDump = new SQLiteDump();  sqSqlDump.Connection = SQLiteConnection1;  sqSqlDump.IncludeDrop = true;                          //<<-- check here sqSqlDump.Backup();  StreamWriter stream = new StreamWriter("d:\\dump.dmp");  stream.WriteLine(sqSqlDump.DumpText);  stream.Close();    that i can use IncludeDrop property for backing data to me but this library is not free and i cant use it.. i like to find free library or program...


how to get data from previous page to next page ,get id using PDO by $_GET METHOD

here my code called data.php             <?php  sql = db->query('SELECT* FROM tb_karyawan order by kar_id desc'); while($data = $sql->fetch(PDO::FETCH_ASSOC)){ } ?>      nilai.php?hal=tambah&kd=   and my nilai.php  <?php $sql = $db->query('SELECT * FROM tb_karyawan WHERE kar_id=$_GET["kar_id"]) .'); $data = $sql->fetch(PDO::FETCH_ASSOC); ?>   how to get kar_id from previous page to next page by $_GET METHOD using PDO  i am new for PDO  THANKS


I copied all of the files like in  tutorial, but I have no luck launching PS. I also tried running the installer with WINE, but needed AIR and it wouldn't connect to the adobe servers.  Also, I (think I) removed all of the libraries I installed with winetricks (except for the VC++ ones) and deleted the files I copied from my Windows machine. This is all perfectly safe, right?


How did the phrase "I could not care less" manage to lose the word "not" when employed in America

I have listened to Americans say the phrase "I could care less" and it clearly appears to be derived from the original phrase "I could not care less". The original phrase has a logical underpinning, in as much as it states that the level of care being directed to something is so small that you literally could not care less. The American version appears to be an artifact from repetition of an uncorrected error. An error that is so illogical regarding its statement and application that at some point some astute American man/woman of letters must've commented on it and so, reveal the period that its odd and illogical acceptance in to American vernacular came about.


How frequency is modulated in FM transmitter circuit

I am new to looking at FM transmitter and have a few questions regarding the FM Transmitter circuit below.  Please break down your answers as simple as possible as I am not as well versed in circuits at this point. Thank you all in advance for your help and guidance.  1.I understand that the base current effects the collector current but I don't understand how the frequency from the Tank circuit changes based on the signal going to the base of the transistor.  Please break down in simple terms how the frequency from the tank circuit at the collector is changed to a higher or lower frequency based on the signal going to the base of the transistor. Are the 2 signals combined somehow, sorry I really don't understand how this happens.  2.My understanding is that the capacitor across the transistor C2 is for signal feedback. Is this correct? Why is signal feedback needed?  Does this feedback signal need to be in phase with the tank circuit? If so, how do you know that simply placing a capacitor across the transistor will achieve an in phase feedback signal?  3.Does C1 and C3 effect the frequency of the signal going to the antenna? If so, please breakdown how they effect the frequency going to the antenna. Also, does C1 and C3 serve another purpose in this circuit? Please explain what will happen in the circuit if they were not there.  4.Please explain what is the purpose of R2 and R1. Please explain what will happen in the circuit if they were not there.


Travelling from Denmark to UK and back with id card

I hold Lithuania citizenship and currently live in Denmark. Is it possible to travel to UK from Denmark and back using only the identity card?  According to      You can enter the UK with either a valid passport or a national identity card issued by a EEA country. It must be valid for the whole of your stay.   I am fully aware that this question was asked a number of times, for example . However, since "Brexit" situation might have changed. Moreover, recently while travelling from Copenhagen airport to Dublin I was asked to prove validity of my identity card using additional document (e.g. driving license).


How temperature can be less than nothing or less than absolute zero?And how atoms interact in this level?


If there was a black hole on earth, what would it look like?

If an answer does exist, I'd love to hear it. I'm trying to incorporate a doomed earth story in something I'm writing, and the end of the world I'm going for is a black hole.  Let's say the black hole was created in the Philippines (I chose it because it's on the equator). Here's  for reference.  If I was standing 90 degrees of that, in Kenya, or if I was standing 180 degrees of that, in Mexico; what would I see in those two separate instances? What if I was standing in Japan above it, or in Australia below it?  Let's also say I was riding a boat towards the source of the black hole. Unlike most imagined scenarios where I am orbiting the black hole and slowly falling into it, this time I'm no longer orbiting it - I'm getting sucked into it instead. I'm imagining that the black hole will "half" be inside Earth and "half" will be in the atmosphere. But as it pulls me in, what will it look like to me (if I was massless, so no tidal forces)? It's probably not going to be a black hemisphere sticking out of the ground. Light will be lensed around it in some way so as to appear like a hole in the air.  Also, if the black hole was very small, it probably won't have a strong gravitational pull, and assuming it doesn't disappear, you'd be able to look at it (or at least, its effect on the light in its surroundings). Of course, as you approach it, it would still have an event horizon, so spacetime would still be warped if you're near enough and the surroundings will still experience tidal forces.  As the black hole gains mass, it will get larger, and so its event horizon will increase. If I was standing in Kenya and the event horizon "washes over me," (as in a water wave) what will I see?  I've so far imagined that, at least when seen from outer space, there will be a hole on the ground and light will be lensed around it. When you are on the ground, though, it becomes a bit harder to imagine.  I do hope someone can lend me a hand!  Edit: Someone had previously answered this question, but I'm not sure why it's been deleted. It was pointed out to me, though, that a black hole cannot stay in place. So an additional question for me is, does that mean it is impossible to be standing still, and the event horizon "washes over you"?  Edit2: Here's a guiding thought experiment that could answer the question. Imagine that you are in outer space directly above the black hole, looking at the black hole that is on the earth's surface. Can you imagine what it would look like? It would simply be a hole with the surrounding light gravitationally lensed around it (possibly lensing the entire earth if it's big enough - but let's say it's not).  Now imagine that you are on the direct opposite of where you were above - you're right behind the black hole this time, looking directly at the black hole but unable to see it because the earth is blocking your view.  Now try to imagine, from the second image, rotate the earth into the first image. I find it a bit hard to do. Just as the black hole is appearing as you rotate the earth, how would the light be lensed?


I need a 4*4 grid to fill with selected colors. Basically, I am in search of a \newcommand, like this:  \newcommand{\mygrid}{11/blue, 32/brown} %coordinates/color is passed   which will produce the following grid:  .  Similar questions were asked before:        I tried to start from answers from all the questions, but got lost midway. Any help will be appreciated.  EDIT This is the last workable version I was trying (from ):  \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc}  \pgfmathdeclarerandomlist{MyRandomColors}{%     {red}%     {red!25}%     {magenta}%     {magenta!25}%     {olive}%     {olive!25}%     {brown}%     {brown!10}%     {violet}%     {violet!25}%     {gray}%     {purple}%     {yellow}%     {orange}%     {orange!25}%     {cyan}%     {green}%     }%  \newcommand*{\GridSize}{4}  \newcommand*{\ColorCells}{%     \foreach \y in {1,...,\GridSize} {         \foreach \x in {1,...,\GridSize} {             \pgfmathrandomitem{\RandomColor}{MyRandomColors}              \node [fill=\RandomColor, fill opacity=0.4, draw=none, thick, minimum size=1cm]                  at (\x-.5,\y-.5)                 {\x\y};         }%     }% }%  %%%%%   %\listfiles \begin{document} \begin{tikzpicture}[scale=1]      \begin{scope}[thick,]         \ColorCells         \draw (0, 0) grid (\GridSize, \GridSize);         \coordinate (input);     \end{scope}   \end{tikzpicture} \end{document}   EDIT 2 Here's another (based on ) [argument 2 supports placing of grids to a preferred location]:  \documentclass{standalone} \usepackage{tikz,amsmath} \usetikzlibrary{positioning,backgrounds,shadings,calc,patterns, decorations.pathreplacing, fit, arrows} \newcommand{\vrect}[3]{  %   \foreach \mark/\colorname [count=\k] in {#3}{ %       \ifnum\mark=34 \def\mycolorname{\colorname}\fi %   }      \foreach \x in {1,...,4}{         \foreach \y in {1,...,4} {             \foreach \px\py in {#2}{             \node[draw=gray, fill=red!30,thick, minimum size=1cm,  anchor=mid,             ] (z#1\x\y\px\py) at ($(\y,-\x)+(\px,\py)$) {#1\x\y\px\py}; %         }     }     } }   \begin{document}     \begin{tikzpicture}[scale=1]     \vrect{0}{6/6}{12/red,11/green}     \end{tikzpicture}  \end{document}


Animation Splash Screen (GIF) does not work in WPF

I create an animation GIF image and added to my project as Splash screen.  When I run my application the splash screen appeared BUT the animation does not work !  Any suggestion?


How can I get more of this macro photo in focus?

I want to make a full focus on the body, for example: I need to have a clear focus on the each balls in the photo. I used just single point focus.    In this picture I used:   shutter speed: 8 aperture: F/4 ISO: 200 2 flashes, one in the right and one on the top of project camera: nikon d300s lens : 105mm micro 2.8   Thanks


Prove $ \frac {x+y}{x^2+y^2} + \frac {y+z}{y^2+z^2} + \frac {z+x}{z^2+x^2} \leq \frac 1x + \frac 1y + \frac 1z . $

Prove that if $x,y,z$ are positive real numbers then the following inequality holds $$ \frac {x+y}{x^2+y^2} + \frac {y+z}{y^2+z^2} + \frac {z+x}{z^2+x^2} \leq \frac 1x + \frac 1y + \frac 1z . $$  I tried to put all of them under a common denominator, but that didn't work. I don't know how to find something greater than the LHS and less than the RHS to prove the inequality.


How to resize design 4500*5400 px in Illustrator CS6?

I need to resize my shirt design 4500x5400 but I can't. When I set the size 4500*5400 px in Illustrator and save as png it show beyond my size. I'm really worried please anyone is here to help me how to exact resize and will show  4500*5400 png after save the image?


If you are ontop of a giant heavy object that is falling from the sky, is it possible to jump and roll at the perfect time to survive?

I don't know if gravity or the speed of the drop would prevent us from jumping, but would something like this be possible?  If it's not possible on the ground, is it possible in the ocean?  I'm sorry in advance if I used the wrong tag. I had a hard time figuring out which tag out of the physics tag to choose. If someone can kindly correct me, that would be awesome.


Suppose $X$ is a metric space . If $X$ happens to be separable ,then countably many open subsets are enough to form a base.  How to prove this one?  Any suggestion will be appreciated.


Whats the deal with posting images? I've just spent a long time composing a nice post with images and stuff, only to be told I can't post images unless my rep is 10, but my rep is 10 (on Stack Overflow)! Maybe you mean rep > 10 not rep >= 10?


How to make a burn effect like this photo

How to make a burn effect in photoshop ? Is this effect created using a plugin in photoshop ?? or with any other software ?? please see the picture.


Resizing an Image without losing any quality

How can I resize an image, with the image quality unaffected?


What is the mistake in calculating such a commutator?

$B$ is an Hermitian operator in Hilbert space, and $|b\rangle$ is the eigenstate of $B$. We can have $[A, B] = 1$ where A is arbitary operator. Then we can calculate as below:  \begin{align} &\phantom{=}\langle b | [A,B] | b \rangle \notag\\ &= \langle b | b \rangle\notag\\ & = \langle b | AB | b \rangle - \langle b | BA | b \rangle \\ &= b \langle b | A | b \rangle - \langle b | A^\dagger B^\dagger | b \rangle ^* \notag\\ &= b \langle b | A | b \rangle - \langle b | A^\dagger B | b \rangle ^* \\ &= b \langle b | A | b \rangle - b^* \langle b | A^\dagger | b \rangle ^* \notag\\ &= b [ \langle b | A | b \rangle - \langle b | A | b \rangle ] \notag\\ &= 0. \end{align}  So it is shown that $1 = \langle b | [A,B] | b \rangle = 0$ which is clearly not right. But where does the problem in the process lie?


Proving that an additive function $f$ is continuous if it is continuous at a single point

Suppose that $f$ is continuous at $x_0$ and $f$ satisfies $f(x)+f(y)=f(x+y)$. Then how can we prove that $f$ is continuous at $x$ for all $x$? I seems to have problem doing anything with it. Thanks in advance.


I updated minecraft to 1.8 and the launcher to 1.5.3 and now I can't install my mods


Nice neighborhoods of each "piece" in a manifold connected sum

This is problem 4.19 in Lee's Topological Manifolds.  I have been working on this problem for a couple days now, and just a need a hint in the right direction.  If $M$ and $N$ are two $n$-manifolds, and $B_1\subset M$ and $B_2\subset N$ are two open, regular coordinate balls (definition below), the connected sum $M\#N$ is the quotient of the disjoint union $(M-B_1)\displaystyle\sqcup (N-B_2)$ by the relation that identifies points on the spherical boundaries of each component via some homeomorphism $h$.  Now I want to show that there are two open sets $U,V\subset M\#N$, such that:   $U\cong M-\{p\}$ and $V\cong N-\{q\}$, for some points $p\in M$ and $q\in N$ $U\cap V\cong S^{n-1}\times\mathbb{R}$ $U\cup V=M\#N$   Here's my intuition: take a larger coordinate ball $D$ in $N$, containing $B_2$, which works because $B_2$ is regular. $(M-B_1)\sqcup (D-B_2)$ is a saturated open set, so its image in $M\#N$ is open. This is what I want to be $U$.   Now I've managed to define a homeomorphism $g$ from $D-B_2$ to $\overline{\mathbb{B}}_1(0)-\{0\}$ (the punctured closed unit ball). If I can then map that punctured unit ball to $\overline{B}_1-\{p\}$, I can try and show the map $f:\ (M-B_1)\sqcup(D-B_2)\rightarrow M-\{p\}$  $$ f(x)=\begin{cases} x& x\in M-B_1\\ g(x)& x\in D-B_2\\ \end{cases} $$  is a quotient map, and then use the uniqueness of quotients to show $U$ is homeomorphic to $M-\{p\}$.  However, this is too hard for me to do, because I need to somehow incorporate $h$ in the mix, so that the identifications of $f$ match those of $h$.  Can someone provide a hint here? I feel like this is a lot of work for one problem, and I understand intuitively what to do here, but getting all the details right is proving to be too much.  I'm also open to hints about part 2. as well (3. is easy).  Definition: A coordinate ball $B\subset M$ is called regular if it has a neighborhood $B'\supset B$, such that there is a homeomorphism $k: B'\rightarrow \mathbb{B}_s(0)$ (this is the open ball of radius $s$ around $0$). Under this homeomorphism, $B$ goes to $\mathbb{B}_r(0)$ for some $0<r<s$, and $\overline{B}$ goes to $\overline{\mathbb{B}}_r(0)$.


I had an extra laptop in my cupboard for a few months now and yesterday my friend told me that I could store my films on the laptop and set up a media server on ubuntu using the laptop instead of going through the trouble of transferring media files from my other laptop (runs windows) to my phone. How can I setup a media server so i can easily play and watch them on my mobile.


MySQL 8 packages not found after adding repository

I added the official MySQL repository just as instructed , it works just fine in Ubuntu 18.04 , and the mysql-server version 8 is available, but for some reason in 18.10 it doesn't work, I can't seem to find MySQL version 8 packages, please help.


explorer lands on "deserted" planet, accidentally infects and kills local life forms

I think he's a human astronaut.  His boots have germs he is not aware of, which prove fatal to the aliens.  It might be by Arthur C. Clarke.


Changing themes to 'Adwaita-dark' does not change the AppMenu color?

When installing 'gnome-tweaks' and changing the theme to 'Adwaita-dark' some colors remain from the original 'Ambiance' theme:    Is there a way to change this?


Apply a clustering algorithm on categorical data with features of multiple values

Let us I have a people data like gender, age, marital status, education, employment, hobbies.  I want to make clusters of those people, having some similarity/common among them (for example they have common hobby, education, age etc.).  Here there is a sample of my dataset:    I should use an algorithm which works with categorical data like K-Prototypes but I am not sure how to specifically handle the hobbies, because that feature may have many values from 1 to N.


Order of commands executed and redirection

For a bash script I'm making, I need to delete all but the newest 2 files in a directory.  I decided to use ls -tUr > somefile.txt and then just tail the newest 2, move them somewhere else, rm *, and move them back.  For some reason, somefile.txt actually shows up (among the rest of the files) inside somefile.txt which screws up using the tail command.  So my question is, logically ls would return the current folder/files and then be redirected into somefile.txt, but clearly this isn't happening since somefile.txt must exist before ls runs; why is this?


How long does it take for the google disavow to remove links?

For almost few years, My website used to rank for a certain keywords. In last 2 months, My keyword is going away from first page.   When I analysed the Google web master, came to know about too many bad back links from around 350 domains. (IMO) Those domains are specifically created to build a backlink to my website.   Now, I have uploaded a txt file in google disavow. How long will it take to process by Google ?


How to open terminal in Mac using keyboard shortcut?

Keyboard shortcut to open terminal in mac OSX ?


E-mail from Stack Exchange with incorrect plural

I received an e-mail from Stack Exchange with the title:     1 new items in your Stack Exchange inbox   This is incorrect. The correct writing is: "1 new item".  It would be nice to correct this.  Then, the text of the e-mail starts with :      The following items were added to your Stack Exchange global inbox    There is a plural here too, but here we may accept it (generic sentence, before a list).


Correct vector input to map texture light in Cycles

What is the correct vector input for a texture connected to a Cycles lamp so that I can make a projector-like textured light?  I am trying to make an projector-like effect with a textured light in Cycles, currently trying it out with a Spot type of lamp, but I am open to any solution involving other lamp types if they work correctly.  The problem is that whatever vector input I use, the texture is always projected downwards, towards the global $-Z$ axis in scene world space, no matter where I point my spot light. I would like to have the texture always project "forward" towards the the direction the spot light is pointing, in the local $-Z$ axis.    The plan would then be to use this spot at several places in my scene, pointing at different directions, and as it currently stands I would have to have a different node setup for each spot instance, manually compensating for each unique rotation in the scene, which would quickly become unpractical.  I have searched around the internet and I am currently using a solution similar to the one on this .  Is there any better method, perhaps involving some funky Vector Math, or is this not currently supported?


If I do: const o1 = {}; const o2 = {};  is it guaranteed that o1===o2 is false?


I tried to install Ubuntu 14.04 on Windows 10 having created partitions for swap area and root. But when I am installing ubuntu it keeps saying "failed to install grub-efi-amd64-signed" into target. I have tried several times but it keeps saying the same thing and installation fails. Please help me as how to proceed further.


Discovering transformations and interactions

I am teaching myself regression using Regression Modeling Strategies by Harell and the author goes at quite the length to showcase the importance of modeling interactions and transformations of the initial variables. I can't help but wonder how to approach this in a more structured/automated way when dealing with a lot of potential variables.  Can we use recursive partitioning, for example, to somehow to do the work for us and then use the output as variables, shrink the estimates with LASSO to deal with colinearity and do a final step where we use some sort of filtering for feature importance.  In my mind this will leave us with a well specified model which can be manually inspected and improved if need be, but is this reasonable? Are there other ways to approach this? Are there some resources that deal with problems like this?


I am looking to design and create a new large-scale application from the ground up and use type safety with structs where appropriate. The application does have a large number of calls between classes.  Currently I am looking to implement structs to represent Id's and different types of numbers (e.g. prices and quantities), but when would be taking it too far?  Thanks,  Update: Thanks for the link to when to use structs, but that does not answer when you should enforce type safety.


Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'xx/vscode stable InRelease' doesn't support architecture 'i386'

Getting this error message for VS Code while executing sudo apt-get update && sudo apt-get upgrade: Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease                    Hit:2 http://in.archive.ubuntu.com/ubuntu bionic InRelease                      Get:3 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]    Hit:4 http://archive.canonical.com/ubuntu bionic InRelease                      Hit:5 http://ppa.launchpad.net/teejee2008/ppa/ubuntu bionic InRelease           Hit:6 https://deb.nodesource.com/node_12.x bionic InRelease                     Hit:7 http://packages.microsoft.com/repos/vscode stable InRelease               Get:8 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]     Hit:9 http://dl.google.com/linux/chrome/deb stable Release                      Get:10 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Get:12 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [915 kB] Get:13 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [38.7 kB] Hit:14 https://download.sublimetext.com apt/stable/ InRelease                   Get:15 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [42.1 kB] Get:16 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2,464 B] Get:17 http://in.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [669 kB] Get:18 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [301 kB]                                                  Get:19 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [273 kB]                                              Get:20 http://in.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,468 B]                                           Get:21 http://in.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [7,968 B]                                           Fetched 2,504 kB in 20s (123 kB/s)                                                                                Reading package lists... Done N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://packages.microsoft.com/repos/vscode stable InRelease' doesn't support architecture 'i386' Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


Can I purchase a certificate for my domain that can sign other certificates for subdomains?

I have written a small program to run on a Windows computer that serves SSL/TLS web pages through port 443 to visiting web browsers. I want it to be easy for non-technical people to install and run this program. I have made it easy for them to create a self-signed certificate or a certificate signing request in the program, but I think they are going to struggle getting the CSR signed and connected to a domain name which points at their server. I want to reduce the technical difficulty of this process to a minimum.  Can I purchase an SSL certificate which can sign certificates for subdomains of my domain name? Something like customer1.mydomain.com, customer2.mydomain.com etc and then I could point my DNS subdomains at their servers and sign their certificates for them and automate the entire process. Or maybe this would be very expensive?  If not, apart from hosting all their web applications on my own server with a *.mydomain.com certificate, what is the simplest solution I can give them for setting up the SSL certificates and domain names?


Android FirebaseDatabase recyclerview null exception for a single variable(userid)

I want to show user Profile image for each post. I wrote a code for this but i am getting an error.    //Here is error---  FATAL EXCEPTION: main Process: com.example.serhat.blog, PID: 5614                                                                           java.lang.NullPointerException: Can't pass null for argument 'pathString' in child()  at com.google.firebase.database.DatabaseReference.child(Unknown Source) at com.example.serhat.blog.MainActivity$2.populateViewHolder(MainActivity.java:95) at com.example.serhat.blog.MainActivity$2.populateViewHolder(MainActivity.java:80)     //Here is my code  //Profile image//                 mDatabaseUsers.child(model.getUserid()).child("image").addListenerForSingleValueEvent(new ValueEventListener() {                     @Override                     public void onDataChange(DataSnapshot dataSnapshot) {                         String image = dataSnapshot.getValue(String.class);                         viewHolder.setProfileImage(MainActivity.this,image);                     }                      @Override                     public void onCancelled(DatabaseError databaseError) {                      }                 });  //Here is blog class       private String title,description,image,uid,username,senddate;       public Blog()      {      }      public Blog(String title, String description, String image, String uid, String username,String senddate,String profileimageUri) {         this.title = title;         this.description = description;         this.image = image;         this.uid = uid;         this.username = username;         this.senddate=senddate;     }     public String getUserid() {         return uid;     }     public void setUserid(String uid) {         this.uid = uid;     }   Solved. Thanks for your answers. The problem is my database stracture in firebase i changed 'uid' to 'userid' and problem solved.  The problem is method names and the domain name in the database are not the same.


Test Class for the Apex Class with try Catch block fails

I am trying to write a test class for the Apex Class with try - catch block and this is my first time coding test classes. The Apex Class is like below which has trycatch   public class updateCaseRecord {          @AuraEnabled     public static void updateCheck(String caseId){         String msg = '';         try         {         List<Case> records = [select id,Status from Case WHERE Id = :caseId];         for (Case record : records)         {             record.Status = 'Closed';         }         update records;          }         catch(DmlException e)              {                for (Integer i = 0; i < e.getNumDml(); i++) {                     msg =+ e.getDmlMessage(i) +  '\n' ;                     System.debug('getDmlFieldNames=' + e.getDmlFieldNames(i));                    System.debug('getDmlMessage=' + e.getDmlMessage(i));                   }                 throw new AuraHandledException(msg);             }             catch(Exception e)             {             throw new AuraHandledException(e.getMessage());             }             finally { }           }}   And I wrote my test class like   @IsTest public class updateCaseRecordTest { @IsTest static void testIsUpdateCheck() {      ID parentRecType = '012U0000000PqA9IAK';     ID csRecType     = '012U0000000QGv4IAG';       Account pa = new Account(Name='Test Parent Account', recordTypeId=parentRecType);     insert pa;      Account testAccount = new Account(Name='test', Industry='Biotech',Territory__c='EUR',BillingCity='Test',BillingCountry='Germany',ParentId=pa.id);     insert testAccount;       Contact c = new Contact(LastName='Test',LeadSource='Customer Service',AccountId=testAccount.Id);     insert c;      Case newCase1 = new Case();     newCase1.Subject = 'testStatusClosed';     newCase1.Status = 'New';     newCase1.Category__c = 'Inquiry';     newCase1.Sub_Category__c = 'Other';     newCase1.AccountId = testAccount.Id;     newCase1.ContactId = c.id;     newCase1.recordTypeId=csRecType;     insert newCase1;       Test.startTest(); try     {     updateCaseRecord.updateCheck(newCase1.Id);     List<Case> lCases = [SELECT Id,Status,OwnerId FROM Case WHERE Id =: newCase1.Id];     System.assertEquals('Closed', lCases[0].Status);      System.assertEquals(UserInfo.getUserId(), lCases[0].OwnerId);     }      catch(DMLException e) {         System.assertEquals(e.getMessage(), e.getMessage());     }      Test.stopTest();    }}   I thought I captured the try catch but when I run the test class it has only 57% code coverage and shows like below    Following one of the answers here


I shot someone with a stun gun and now he's dead. Could I still be considered a pacifist?

I was going for a pacifist playthrough, and so I used the tranquilizer rifle and stun gun almost exclusively.  During the Cloak & Daggers side-mission, I was aiming to incapacitate Double-T, with the first obstacle being the henchman sitting on the couch outside his apartment door. I took out my stun-gun and made short work of him, but as I was dragging him away from where he collapsed I noticed that he appeared to be dead:    This is the first time I've had someone die after shooting him with the stun gun. Just to try it out, I reloaded and shot him with the tranquilizer rifle, only to have him die again (maybe he has a severe allergy to being unconscious).  So, is this just some sort of weird glitch, or does this actually count as a kill, thus disqualifying me for the pacifist achievement?


Alternative Render engines can I use instead of Cycles for AMD Radeon GPUs?

I am using Blender with the AMD 12 with Radeon R7. Blender renders using OpenCL but I would not call the performance fast.  I have only recently moved to this AMD 12 ideapad which I purchase on the understand that it was strong on graphics and it was my intention to use this laptop to work up scaled plans.  I have started to use blender to create the plans/models which is working well with the exception of the rendering process.  I understand that there are other rendering engines other than cycles that may work better with the AMD R7.  The trouble is that whilst various posts allude to this none so far have stated where they can be downloaded nor how to incorporate the render engine into blender.  If anyone has any ideas on this I would be very grateful if they would share.  Many Thanks.  I note that this has been marked as a duplicate. I am sure that it is I imagine that it is a common question. However the title of the question that this question is flagged as being a duplicate for is not something that I would have searched for as a newbie to blender. Hence this edit.


Let $\sum_{n=1}^{\infty}{a_n}$ be a series such that for each $n$, $a_n>0$ and $(a_n)$ is decreasing. Suppose that $\sum_{n=1}^{\infty}{a_{2n}}$ converges. Prove that $\sum_{n=1}^{\infty}{a_n}$ also converges. I try to prove by using definition but I got nowhere . Can anyone guide me ?


pacman: difference between sync, local, package and files databases

man pactree says:     -s, --sync      Read package data from sync databases instead of local database.   What is the difference between the two, and when would I prefer to use one over the other?  man pacman also mentions:   package database files database   How do these fit into the picture?


How can I create multiple lines of equations in flashcards?

I have flashcards that work perfectly, but on a few of my flashcards I want to be able to give 2 equations on separate lines. Normally I know how to do this....such as using gather or align but when I try to use this, I'm getting errors that I don't understand. Below is my attempt, thanks for the help! (the flashcard package is something I downloaded, but I don't think it should matter)  \documentclass[avery5371,grid]{flashcards}  \usepackage[latin1]{inputenc} \usepackage{amsfonts} \usepackage{amsmath}  \cardfrontstyle[\large\slshape]{headings} \cardbackstyle{empty}  \begin{document}  \begin{flashcard}[]{Lorentz transformation for motion along x (for t' and x')} \vspace*{\stretch{1}} \begin{displaymath} \begin{align} t' = \gamma \left(t - \frac{vx}{c^2} \\ x' = .... \end{align} \end{displaymath} \vspace*{\stretch{1}} \end{flashcard}  \end{document}   Of course this gives the error "! Package amsmath Error: Erroneous nesting of equation structures; (amsmath) trying to recover with `aligned'."


For $A \subset X$ prove that $ f(\overline{A}) \subset \overline{f(A)}$

Let $(X,d_X)$ and  $(Y,d_Y)$ be two metric spaces and let $f: X \to Y $ be a continuous function. For $A \subset X$ prove that  $$ f(\overline{A}) \subset \overline{f(A)}$$   Definition: A mapping $f:X \mapsto Y$ is said to be continuous at the point $x$ of $X$ provided that for every $\epsilon > 0$ there is a $\delta >0$ such that  $$y \in X, d_X(x,y) < \delta \implies d_Y(f(x),f(y)) < \epsilon$$  The mapping f is said to be continuous if it is continuous at every $x$ of $X$ .  $\overline{A}$ := closure of $A$  I think I need to show that for every $x \in f(\overline{A})$, $x$ is also element of $\overline{f(A)}$  But I couldn't figure out how to derive it from the definition and connect it with closure


LMR16030 voltage regulator pin configuration

I just bought a HSOIC-8 LMR16030 and have tried to plugged it in my circuit but didn't manage to make it work. I'm thinking this might be due to me misunderstanding the pin configuration. What are the pin numbers in this picture?    Updated: Zoomed image (2x original dimensions on each side)


SQL Selecting "Window" Around Particular Row

It's quite possible a question like this has been asked before, but I can't think of the terms to search for.  I'm working on a photo gallery application, and want to display 9 thumbnails showing the context of the current photo being shown (in a 3x3 grid with the current photo in the centre, unless the current photo is in the first 4 photos being shown, in which case if e.g. if the current photo is the 2nd I want to select photos 1 through 9). For example, given an album containing the list of photos with ids:  1, 5, 9, 12, 13, 18, 19, 20, 21, 22, 23, 25, 26  If the current photo is 19, I want to also view:  9, 12, 13, 18, 19, 20, 21, 22, 23  If the current photo is 5, I want to also view:  1, 5, 9, 12, 13, 18, 19, 20, 21  I've been thinking of something along the lines of:  SELECT * FROM photos WHERE ABS(id - currentphoto) < 5 ORDER BY id ASC  LIMIT 25   but this doesn't work in the case where the ids are non-sequential (as in the example above), or for the case where there are insufficient photos before the currentphoto.  Any thoughts?  Thanks,  Dom  p.s. Please leave a comment if anything is unclear, and I'll clarify the question. If anyone can think of a more useful title to help other people find this question in future, then please comment too.


Showing $\left(1+\frac{1}{n}\right)^n$ is an increasing sequence by comparing the binomial expansions term by term

So I know that showing $\left(1+\frac{1}{n}\right)^n$ is an increasing sequence has probably appeared on this site about 100 times, but my professor said he thinks the induction step is most easily seen if you expand this out and compare the summation term by term. I tried this and I did not what see why the inequality was obvious. Can somebody help me out here? Thanks!


Why can't I change my Nikon D3200 aperture in Live View?

I removed the lens to show to the shutter release. While putting the lens back on I didn't place it correctly on the first attempt. Also, when I removed the lens, the camera was on and possibly in live view.   Now, the aperture doesn't change while in Live View mode. (Yes, I'm holding down the -/+ button. Also while it is on manual.) I can only change the aperture while in viewfinder mode.  Did I mess something up? Or is it in the settings somewhere?


How does Android measure connectivity state?

I know Android has some sort of connectivity measurement, because when there's connectivity the wifi or phone network icons will turn either green or blue, depending on the Android version.  In my opinion, this measurement isn't perfect, because although it will indicate accurately the absence of connectivity (e.g., lost wifi connectivity), it is not so accurate when the phone is connected to the Internet: at work, my Defy running Cyanogen 9 (Android 4.0.4) has icons that are always gray, no matter what, even when the connection is obviously up (see image below).  I wonder how, exactly, Android measures the connectivity status. Is it by performing a ping or other sort of probing of a server? By listening to a port? By testing if some protocol is enabled? Or what?  to a closely related question doesn't seem to answer it.


Let a, b and c be such that $ a+b+c = 0 $ and  $ l^2 = \frac{a^2}{2a^2+bc} + \frac{b^2}{2b^2+ac} + \frac{c^2}{2c^2+ba} $  The what is the value of l   My approach : I could just put in the adequate values of a,b and c and check what comes out to be the value of $l$.   However I am looking for a more general approach to solve the following problem , I thought of using Lagrangian to solve , but that process looks to be too lengthy.   Any insight on what approach to follow would be welcome.


Understanding “the mean minimizes the mean squared error”

I am trying to understand the sentence  the mean minimizes the mean squared error.   from wikipedia .  From a previous post  I can see a formal proof which according to the authors prove that the mean minimaze. But my objection on that prove is that is you substitute m with median all the reasoning still stands.  Therefore, I restricted myself to one dimension and built the following example :   MSE = 1/n[SUM(Y_hat_i - Y_i)**2]   Given the following distribution Y = [5,3,2,7,4], minimizing MSE I intended as in the following: I should find a function Y_hat such that when it is applied to the MSE formula (more specifically to each element of the Y distribution), we are sure that we obtain the minimum value. For simplicity, I could consider the Y_hat as any measure or function for the central tendency, including, mean, median, mode, etc.  Lets suppose, Y_hat = mean (=4.2 for our distribution), therefore, I did all the calculations such as:  1/5 [(4.2-5)**2 + (4.2-3)**2+ (4.2-2)**2 + (4.2-7)**2  + (4.2-4)**2 ] = 2.96   Let's suppose, Y_hat = median (=4 for our distribution), therefore, I did all the calculations such as:  1/5 [(4-5)**2 + (4-3)**2+ (4-2)**2 + (4-7)**2  + (4-4)**2 ] = 2.8   If I did all the calculation correctly, the result shows that for this case, the median is minimizing better than the mean.  I am sure, I am doing something wrong and missing important aspects of the overall reasoning.  Please, could you provide any clarification on the above topic? I would really appreciate it.  Many Thanks in advance, Best Regards, Carlo


How to combine a list to not equal pairs in a new list, Python 3.x

I need to make a function that take a list and combine the values to pairs in a new list, I should only display pairs that is not equal.  pairCombinationsNotEqual([1, 2, 3])   It should result in a new list with not equal pairs like:  [(1, 2), (1, 3), (2, 1), (2, 3), (3, 1), (3, 2)]


I have an Array like so:  object = [{id: '#obj1'}, {id: '#obj2'}, {id: '#obj3'}, {id: '#obj4'},            {id: '#obj5'}                 ];   and somewhere in my code I want to add elements to this array if a condition is true.   if (condition) {     // add {id: '#obj6'}, {id: '#obj7'} to the object Array }   Hope this isn't too difficult.   Thanks.


I comment on answer why NAA and flagged but my flag is declined

Regarding , I flag NAA and comment on that post.        How your answer is different from above answer   The post is deleted, but my flag is declined. Why?


What is behavior of "cout" if passing comma(,) after end of double quotes?

#include<iostream> using namespace std;  class base { private:     int id = 6; public:     friend void display(); };  void display() {     base b;     cout<<"Display id" <<b.id<<endl;     cout<<"Display id", b.id; }  int main() {     display();   }   Output:   Display id6 Display id   Can someone explain that why cout<<"Display id", b.id;  is not throwing error? and if comma (,) is acceptable then what will be the behavior of variables written after comma (,).  Thanks in advance.


Is there some reason I can't change catcodes inside a command?

I have a very simple question. When I do this:  \catcode`\@=0 \catcode`\\=11 @mycommand{a} @catcode`@\=0 \catcode`\@=11   It works perfectly and calls \mycommand correctly. However, when I try to define \mycommand with similar trickery:  \newcommand\mycommand[1]{   \catcode`\@=0   \catcode`\\=11   @textbf{Hello #1}   @catcode`@\=0   \catcode`\@=11 }   compilation stalls and gives me the * prompt. If I give it Ctrl+D, it terminates without producing any output. Indeed, it seems that changing the catcodes inside a command has no effect whatsoever, because the following works perfectly (whereas, from my understanding, it shouldn't):  \newcommand\mycommand[1]{   \catcode`\@=0   \catcode`\\=11   \textbf{Hello #1} }   Can anybody please explain to me what's happening?


How much rep would Jon Skeet have if there was no rep limit?

Just curious about this, but how much rep would he currently have if there was no daily rep cap of 200?


"who my opponent was" or "whom my opponent was"?

The sentence in question is "I had known (who/whom) my opponent was".  Would you use who or whom in this context, and why?  Thanks.


There exists a vector space without a basis

Can someone please give me the proof that if you don't assume the axiom of choice, you can prove that there exists a vector space without a basis. I have the book, The Axiom of Choice by T.J.Jech, but don't really understand his proof. So any help in understanding it will be great,  Thanks.


I left some potatoes cut in half, oiled, cooked to a high temp and left in a toaster oven overnight. Is this safe to eat? If not, what is the mechanism by which the potatoes go bad? Can bacteria get into a sealed oven?  Note to the quick close voters: This is specifically about cooked food left in an oven, not the same as the linked question


The following sentence is copied from the Cambridge Dictionary.     Our goods sell so well in this country that we have no need to export.   There are two questions of this sentence.   The first part of this sentence has noun phrase but it has one words which is not noun or adjective. Is it allowable to use adjective and adverb in the noun phrase. The second part of this sentence that we have no need to export looks to me a present simple tense but the rule says that it should be written as we do not have need to export. Needs some comments on it.   Regards;


Reference exposure settings for some common situations

I will be thankful if someone may provide me with a reference exposure settings for different situations like landscape and group on a sunny day, jungle, hilly areas, portrait at night indoor in faint light etc. Beginners then may start with that reference and build upon that over experience. I just purchased a NiKon D3500 with 18-55 mm and 70-300 mm lenses.


Problem with \label and \ref in TexMaker

I've got a problem using \label and \ref in Texmaker 3.1 (MiKTeX 2.9). When I put label somewhere, i got a frame with label name in it. How can I hide it?  \begin{figure}[h] \includegraphics[width=0.75\textwidth]{img/2}\caption{SomeCaption} \label{fig:4eb1} \end{figure} $\frac{w}{w_1}-1=4$ $4\leqslant n\leqslant3$, using (pic. \ref{fig:4eb1}),blah-blah.   PS: Sorry for my awesome English. :)


Is generic "thank you" email a waste of time in academia?

A very busy professor just responded my email. He answered my questions, and in the end, he explicitly said something like "Please let me know if you have any questions" or "Please respond if you have further questions".  So, I am trying to think as if I am in his shoe. Is he not expecting me to reply to this email, if I do not have any further questions?   Is it impolite if I do not respond to this email and let it go? Or, is it considered impolite if I spam his "already-too-full" mailbox with a generic "Dear XXX, Thanks for XXXXX, Regards, XXXX" ?


Please explain why objects can be seen more clearly when looked through a small hole. Is this because of the diffraction of light? Thanks in advance 😊.


Prove that $\sum\limits_{k=0}^m\binom{m}k\binom{n}{r+k}=\binom{m+n}{m+r}$ using combinatoric arguments.

Prove that $$\sum\limits_{k=0}^m\binom{m}k\binom{n}{r+k}=\binom{m+n}{m+r}$$ using combinatoric arguments.   I prefer you to answer using an analogy to a combinatoric problem or else I'll have trouble understanding.  I tried:  Let $m$ represent a group of boys and $n$ represent a group of girls. We want to form a committee with the condition that there must be $r$ more girls than boys on the committee. There's two ways of doing this. (I'm having trouble with the right-hand side.)  The left-hand side is one way of doing this. So we split the problem to different cases. One such case is where there are no boys on the committee, and so, there's $\binom{m}0\binom{n}{r+0}$ ways of forming a committee. Next, we can have 1 boy on the committee. There's $\binom{m}1\binom{n}{r+1}$ ways to do this. We repeat this process until we have $\binom{m}k\binom{n}{r+k}$ ways of forming a committee. Summing up the cases will result in the right-hand side. However, as stated before, I don't really know how to explain the right-hand side. Maybe I used the wrong analogy?


Does sparkflint familiar emit fire damage or arcane damage

This is the explanation  Sparkflint     Summon a fiery Familiar that grants you 10% increased damage.


How can I see if Windows 7 is using TRIM for my SSD drive?

I recently upgraded the firmware on my SSD to support TRIM and upgraded to Windows 7.  How can I tell whether Windows is recognizing the drive as SSD and using TRIM correctly?


Python, changing the index of a list inside a list

I am trying to create a program for the game Connect Four where the board can be anysize.  The user is prompted for the number of rows and numbers of columns which through some code creates a 2d list of 0 open spot.  So for a 3 column by 4 row board  blankBoard = [[0,0,0],[0,0,0],[0,0,0],[0,0,0]]   I am trying to create a function that inputs, the list, and column to drop the play piece into, represented by an X... so for example if you chose column 3, the updated board list will appear as such  blankBoard = [[0,0,0],[0,0,0],[0,0,X],[0,0,0]]   My function is suppose to take the input for the column, and find the index inside that column list which is the last one which is blank.  My problem is maining deleting and replacing that specific index with out changing all the lists.  def move(blankBoard, column):     newBoard = blankBoard[:]     col = column - 1  # The first column in connect four is 1, not 0     index = -1     i = 0     while i < len(newBoard[col]):         if newBoard[col][i] == 0:             index = index + 1         i = i + 1     newBoard[col][index] = "X"   # This line of code I think is bad     print(newBoard)     return ""   with the following output...  newBoard = [[0,0,X],[0,0,X],[0,0,X],[0,0,X]]   but as I said I only want the X to be in the sublist denoted by "col" Why is it looping through all the columns (sublists) in the list if the code line to change the specifc index of the sublist is not in the while loop?


Translate the frontend part of the site only

I am working at a project that needs a biilingual translation (content + interface). I've installed the following modules:  Locale + Content translation (core modules) Internationalization Module (i18n) Variable Module (required by Internationalization) – it deals with meta tags Admin Menu   I can't find a way to:  To provide interface translation for front-end only. Admin should be in English   Note: I assume this can be done by deactivating the language block on admin side) but how can this be done without duplicating the theme (the same theme for admin but with the block language disable).  How can this tasks could be accomplished?


My server 2012 is very slow due to Expl0er.exe file?

I have Windows Server 2012. I faced some slow issue due to Expl0er.exe file and its located in      C:\Program Data\Expl0er.exe   I don't know about the file. its take more CPU usage up to more then 70% CPU, and its take less ram memory. please help anyone let us know its virus or any other file or explain about the file. Thank you


Is it illegal to do magic outside of Hogwarts?

It’s quite clear from the Harry Potter series that doing magic underage is illegal. Two infractions and your wand is broken and you’re kicked out of Hogwarts. The Ministry keeps tabs on underage wizards and witches with the Trace. Harry thought he was bound to be expelled after making his uncle’s sister float in “The Prisoner of Azkaban.”  Yet on the other her hand, we know from “The Deathly Hallows,” before Voldemort took over the Ministry, it was not obligatory for young wizards or witches to enroll in Hogwarts. They could in stead choose to learn all their magic at home with their parents.   A contradiction arises: can a young wizard/witch do magic at home, outside of school? Is it only illegal for enrolled students? If so, why? One could suggest the Trace is only put on the students once they enroll but isn’t it true that the Ministry keeps track of underage Muggle-born witches/wizards with the Trace?


Relationship between Binomial and Beta distributions

I'm more of a programmer than a statistician, so I hope this question isn't too naive.  It happens in sampling program executions at random times. If I take N=10 random-time samples of the program's state, I could see function Foo being executed on, for example, I=3 of those samples. I'm interested in what that tells me about the actual fraction of time F that Foo is in execution.  I understand that I is binomially distributed with mean F*N. I also know that, given I and N, F follows a beta distribution. In fact I've verified by program the relationship between those two distributions, which is  cdfBeta(I, N-I+1, F) + cdfBinomial(N, F, I-1) = 1   The problem is I don't have an intuitive feel for the relationship. I can't "picture" why it works.  EDIT: All the answers were challenging, especially @whuber's, which I still need to grok, but bringing in order statistics was very helpful. Nevertheless I've realized I should have asked a more basic question: Given I and N, what is the distribution for F? Everyone has pointed out that it's Beta, which I knew. I finally figured out from Wikipedia () that it appears to be Beta(I+1, N-I+1). After exploring it with a program, it appears to be the right answer. So, I would like to know if I'm wrong. And, I'm still confused about the relationship between the two cdfs shown above, why they sum to 1, and if they even have anything to do with what I really wanted to know.


Find the infinite sum of the series $\sum_{n=1}^\infty \frac{1}{n^2 +1}$

This is a homework question whereby I am supposed to evaluate:  $$\sum_{n=1}^\infty \frac{1}{n^2 +1}$$  Wolfram Alpha outputs the answer as   $$\frac{1}{2}(\pi \coth(\pi) - 1)$$  But I have no idea how to get there. Tried partial fractions (by splitting into imaginary components), tried comparing with the Basel problem (turns out there's little similarities), nothing worked.


Summation of combination of binomial coefficient

Is there any way to find:  $$\sum_{i=0}^n {\binom{n}{i}i^k}$$  I know that we can find it for small k by using binomial theorem by differentiating both sides and then multiplying both sides by x and repeating till the form presents itself and then putting x =1, but is there a way for any general power( k here) of i?


Understanding the translation of a graph (horizontally)

I have been having trouble understanding the translation of a graph. I understand the 'rule in the sense that the '$+$' shifts to the left and the '$-$' to the right when dealing with something like e.g. $f(x + 2) = f(x)$.  In the book I am using it has written that if $g(x) = f(x-c)$, where $c > 0$ then the value of $g$ at $x$ is the same as the value of $f$ at $x-c$.  So ...if $c = 2$ and my function for $g$ was $g(x) = x^2$ and I put in $x=3$ I'd get $9$. For $f(x-c)$ I don't quite understand this part. Am I wanting to put in the same $x$ (i.e. $x = 3$) which would give me $f(3-1) = f(1) = g(3) = 9$. When I do this it seems to work against how I thought it would go. To me this implies that in $g(x)$ when I input $3$ for $x$ I'd get a $y$ value of $9$. Then when I input $x=3$ in the function for '$f$' I'd end up with $f(1)$ provides me with $9$. It seems $g(1)$ is going back $2$ spaces to the left when compared to $f(3)$ in order to get the answer $9$ (based on $3-1 =2 $, from within the functions respective brackets)  Clearly I misunderstand something here.....


I am trying to read into a file, make it into an array and print it.  I'm not sure what I'm doing wrong with this code. I've been trying to get a solution but all the solutions I can find are more advanced than what we should be using...I wrote a previous program using the same method but as a Double array. I can't seem to make it work for a String?  I keep getting [Ljava.lang.String;@3d4eac6 when I run it.  I just want it to print boysNames. boyNames.txt is just a list of 200 names in a text file.  Someone please help me, or let me know if this is possible?  this is my code so far  public static void main(String[] args) throws FileNotFoundException {        String[] boyNames = loadArray("boyNames.txt");     System.out.println(boyNames); }  public static String[] loadArray(String filename) throws FileNotFoundException{     //create new array     Scanner inputFile = new Scanner(new File (filename));     int count = 0;     //read from input file (open file)     while (inputFile.hasNextLine()) {         inputFile.nextLine();         count++;     }     //close the file     inputFile.close();      String[] array = new String[count];     //reopen the file for input     inputFile = new Scanner(new File (filename));     for (int i = 0; i < count; i++){         array[i] = inputFile.nextLine();                 }     //close the file again     inputFile.close();     return array; }   `


Autocovariance function at lag k for the process $x_t=A\cos(wt)+B\sin(wt)$

Let {$x_t$} be the process given by  $x_t$=$A\cos(wt)+B\sin(wt)$ where   $A$ and $B$ are uncorrelated random variables with mean $0$ and   variance $1$ and $w$ is a fixed frequency in the interval $[0, \pi]$.   Find its autocovariance function at lag $k$, where $k=0,1,2,...$   I did:  $$\gamma{(k)}=E(x_tx_{t-k})=E[(A\cos(wt)+B\sin(wt))(A\cos(w(t-k))+B\sin(w(t-k)))]$$  Is there a way to make this easier to compute?


Traveling without paying lodging fees in America

I want to travel around the East Coast without paying for lodging.  I'd be willing to sleep in my car or even pitch a tent somewhere. Is this a problem?  Legal?  I really want to get to the beach this season but I’m afraid that lodging will be out of my price range.  Specifically Maryland, Delaware, maybe New Jersey or Virginia.


~/.bash_profile not executed upon login, but ~/.profile is

I'm running Ubuntu, with Gnome3 as my desktop manager. While debugging some initialization issues (the usual confusion over bash_profile, bashrc, etc.), I found that given the following files,  # ~/.bash_profile export X=x  # ~/.profile export Y=y   if I reboot, log in, and start a shell, it seems like ~/.bash_profile was never sourced:  $ echo ${X-var_not_set} var_not_set $ echo ${Y-var_not_set} y   I'm using Gnome terminal, running non-login shells (the default), so it makes sense that ~/.bash_profile would not be sourced when I start a shell in the terminal emulator, but I thought ~/.bash_profile would have been sourced when I originally logged in at the graphical login screen.  I'm unclear whether that login screen is the domain of the OS (Ubuntu), the graphical shell (Gnome), or something else (display manager?), and thus, what initialization files are run.  The Bash manual says that ~/.bash_profile will be used instead of ~/.profile if it's present, but the above behavior seems to contradict that.     When bash is invoked as an interactive login shell, or as  a  non-interactive  shell with  the  --login  option,  it  ...  looks  for ~/.bash_profile,  ~/.bash_login,  and  ~/.profile, in that order, and reads and executes commands from the first one that exists  and  is  readable.   My best guess is that the graphical login has nothing to do with Bash (is this related to dash shell?), and as such, it executes ~/.profile. Is that the case, or is there more to this that I'm misunderstanding?


I am looking into updating a Drupal 4 site. The Node Export module does not seem to have a release suitable for Drupal 4. Can anyone recommend an alternative module or procedure?  The site is running Drupal 4.6.3.


What are the advantages and disadvantages of being in human form?

In Dark Souls, what are the advantages and disadvantages of being in human form?  In Demon's Souls, being in human form gives you a clear HP advantage, but attacks have lower power and you can be invaded (if playing online).  In Dark Souls, however, the advantages and disadvantages are less clear. What are they?


Non-orientable 3-manifold has infinite fundamental group

I'm doing past papers for a first course in algebraic topology.  The question is:     Let $M$ be a 3-dimensional, closed, connected, non-orientable manifold. Show that $M$ has infinite fundamental group.   Is there any way of answering this question without simply quoting a classification theorem for 3-manifolds with finite fundamental group?


"look forward to meet you", or "to meeting you"?

Which one is correct?      I look forward to meet you during the coming festival.   or     I look forward to meeting you during the coming festival.   Please help me with explanation.


Why Stepwise regression lead to overfitting?

I run a rolling backward stepwise factor selection within each regression window with a Matrix of regressors X(137x481) and a vector Y(1x137). As you can see, the number of regressors is way higher than the number of datapoints  Looking at the rolling R^2 I noticed that is Always extremely high. This lead me to the conclusion that the model is overfitting the data.   The reason is probably related to the high number of covariates and the multicollinearity problems that comes with.  Why the stepwise regression has this problem when there are many data? Reducing the number of covariates, I noticed an improvements. How can I effectively avoid this problem while maintainig a rolling selection criteria based on statistical significance? Doing a before will make any sense?  Thank for your help


I want to be sure if the object I get is a List of Strings. Here's my code:  Object obj = plugin.getConfig().get("groups"); if(obj instanceof List<?>){ // Is the Object a List ?     List<?> list = (List<?>) obj;     if(list.get(0) instanceof String){ // Does the List contain Strings ?         List<String> groupList = (List<String>) list;     } }   But Eclipse says that the last cast on line 5 isn't safe:     Type safety: Unchecked cast from List<capture#3-of ?> to List<String>    How can I fix that? I've also tried  List<String> groupList = (List<String>) obj;   ...but I still get the same error (basically).


for some reason my accountsd is taking so much memory. even though I have a 16 mb macbook pro.. If I kill that process it keeps on opening back up again.. ideas?


What's the best way to have two columns/divs have matched height no mater what the content length is in either div?

Here's a jsfiddle example of doing it with css, They'll match at any length. But I need it to at minimum be the full height of the viewport/body. In this example, it cuts short when there's only a little content:    I'm not sure what else is possible in css. I'm thinking some sort of javascript div height matching is needed. Really, any solution would work for me, even if it's complicated.  Thanks,  Here's the code from the fiddle:

Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler
Filler

Filler
Filler
Filler
Filler
Filler
Filler


List the files containing a particular word in their text

I would like to list the files recursively and uniquely that contain the given word.   Example: Checking for word 'check', I normal do is a grep  $ grep check * -R   But as there are many occurrence of this word, I get a lot of output. So I just need to list the filenames that contain the given search word. I guess some trick with find and xargs would suffice here, but not sure.  Any ideas?


Using WMS I do a GetCapabilities request on a GeoServer instance. This works in FireFox, but not in Chrome, Safari, and Internet Explorer.  The point is that in the web.xml from the server I did add:  "Access-Control-Allow-Origin: *"   So the XML output does not have anything which will put the Access-Control-Allow-Origin header in.  And the case is that in any other request this not an issue, especially when I use jsonp in the jquery AJAX call.  However I didn't find any way to get the Capabilities in a JSON object.  In other words I am stuck with XML and this doesn't seem to work.   Is there a way to do the request on jsonp? If not how do I set-up the server so that the GetCapabilities XML does use the Access-Control-Allow-Origin?


For my bachelor thesis I would like to create the following arrows, or more precise orientated subgraphs, so far I was not able to create them. Can anyone help?


How do you determine whether your product requires CE marking?

I haven't been able to come across definitive information regarding the procedure to find out whether an electronics product (PCB) requires CE marking or not.  Since it is difficult to ask hypothetical questions, let me ask by using specific examples. Let's take  as a first example. Would this product require CE marking to be sold in Europe? (Maybe a similar question: would this product require any FCC approval/marking to be sold in the USA?)  Let's look at a . This is an A/D board. Would this product require any regulatory approvals/markings?  It would be a great help if someone with CE/FCC experience could give answers, explaining the reasoning behind those answers.


Is there a finite number of colors in the visible spectrum?

Does quantum theory and Planck's length of $1.6\times10^{-35}\ \mathrm{m}$ mean that the electromagnetic spectrum is not continuous as every photon can only carry a discrete amount of energy? If so, wouldn't that mean that a light spectrum with an upper and lower limit such as the visible light to us humans has a finite number of colors? I know that photons get their wavelengths from the particles they are emitted from, but couldn't we say for example that the spectrum of visible light between $380$ and $750\ \mathrm{nm}$ is $370\ \mathrm{nm}$ long and divide by the minimal length of causality that would be Planck's length there no more than roughly $2.3\times 10^{28}$ possible wavelengths and therefore colors in the visible spectrum?


At what point does arena become better value than boosters?

Imagine I have 300 gold in Hearthstone. I have two choices on how to spend it:   2 Arena entries 3 boosters   If we ignore the time spent in the arena (both from a time spent and fun perspective) and focus only on the rewards, how many wins do I need to be able to get before arena becomes more profitable than buying boosters?


Unsure how resistors are connected? (Series/Parallel)

I am currently attempting this practice question in my tutorial and while I am able to reduce the circuit below to     I do not know whether the 6/6/6/6 pane is connected in series or parallel, it should not be parallal else R(Total) = 3+3+3 and Vo will be 2/3 * 12 = 4  The answer im expecting is 4/3V so my current attempt is wrong. I also doubt it is a Wye-Delta transformation. Can anyone explain how the resistors are connected and why? Much thanks in advance.


It says it is called as “notation of Carl Friedrich Gauss”.However，I cant find any more detail of this notation.Can any one please tell me its formal name and its property.


If $\sum_{n=1}^\infty a_n$ converges, prove that $\lim_{n\to \infty} (1/n) \sum_{k=1}^n ka_k = 0$.

the series $a_n$ is any arbitrary converging series.  My thought process was that the $1/n$ will definitely go to zero as n approaches infinity; however, the series $k*a_k$ seems to approach infinity at the same rate. This confuses me because if both the numerator and denominator approach infinity, I think that the overall equation will equal 1, not zero.  I also considered that the sum is geometric, but I do not believe that is the case, because both $a_k$ and $k$ are variables that are not constant. I was thinking that I could argue if the series $a_k$ converges to a point, eventually the terms of the sequence will be so close to each other that it resembles a constant multiplier, but that argument is not very strong.  Any tips, hints, or leads at the solution are appreciated!


Proof of the following statement : $41^a - 14^a$ is a multiple of $27$ for $a \in \Bbb N$

Can anyone give me a simple proof of this statement . I know how to prove it using principle of mathematical induction so please prove it in some other way.


Numbers 249..250..251 are missing from Pokedex

In Pokémon Go, via the Pokedex, 249..250..251 numbers do not even register in my Pokedex however in my daughters they do.  Why is that?  My game is up to date.


How can I successfully ask a question in Stack Exchange?

It's weird; I have asked a few questions on this website, but when I login, they're all gone. What's wrong? What should I do to post successfully? Any guidance?


Display image from Webform submission using views

I have created webform with title, description and upload file fields. And I have created views to display submission data in a grid view.   For images, it just giving me the image name with URL to image but it is not displaying as an image. I tried everything, but didn't find any solution. Please give me solution for displaying images in views.


shows that a tag named  was created in the last 2 days. Clicking on  takes one to a page showing "0 Questions tagged  "; it treats them as two separate tags, despite the + being encoded as %2b in the URL.


I'm using Unity 2017 and am writing a game wherein you shoot a ball, and when said ball hit something (a cube for example), I want it to remain in that position that it hit.  I tried this but it didn't work:  ball.transform.localPosition = gameObject.transform.localPosition;   Something like this picture :


I have a server application written in c++, which is sending data to socket (and client is reading it). I need to restrict "upload speed" to that socket. Is there any easy way to do this? I have a number which respresents number of kB/s and that should be the upload speed.  I am using:  #include <sys/types.h> #include <sys/socket.h>  ssize_t send(int sockfd, const void *buf, size_t len, int flags);


Are the words everybody and everyone interchangeable?


How to install Ubuntu 20.04 on usb with persistant data

I have a 32 gb usb and i am using windows as my daily driver. in my home there are 2laptops and 0 desptops one of them died which is my daily driver and i use linux on it and the windows one is my dads so i cant do dual boot as it got only 500 gig storage so i want to install ubuntu 20.04 on my usb to daily driver it . I am a linux user and fan but i am just learning about it .  Note Please dont tell the rufus or other program for persistant boot because it wont work very god with me i tried that.  If i can install ubuntu on usb just like hardisk install so please tell me i got to know that ubntu's community is very good so please tell me this is my first question


For a particle in an infinite well potential given by:  I am able to successful derive the normalized wavefunction as: $$u_n(x) =\sqrt{2/a}\sin(\frac{n\pi x}{a})$$ where this normalization has the appropriate dimensionality for a one-dimensional wavefunction, but that the sign (or more generally the phase) of the normalization constant is purely conventional, and $-\sqrt{2/a}$ or $\exp(iθ) \sqrt{2/a}$ would serve just as well. The most general solutions will be linear combination of these energy eigenstates with their associated time-dependence:  The expectation value of momentum in an infinite well stationary state is given by:  •Since the eigenfunctions vanish at the boundaries. •Thus, the average value of the momentum vanishes in each eigenstate In the book i am reading for it says this:  The energy eigenstates in this (or any) bound state system can be chosen to be purely real functions (or real with multiplicative complex phases that are independent of position).  As the calculation in above illustrates, this implies that the expectation value $⟨p ̂ > ⟩$, which we know must be real, can be written as a purely real integral time i.  I don't understand this  'can be written as a purely real integral time i.'   The extract from the textbook:  Equation


How does one calculate $\int_0^1 \frac {\arcsin(x)}{x}dx$?

How can I evaluate the following? $$\int_0^1 \frac {\arcsin(x)}{x}dx.$$   Could not find a primitive, so I went for some other methods like arranging it as a double integral or introducing a parameter, but it was in vain...


Let $A$ and $B$ be two $2\times2$ square matrices such that $AB=I$ Then prove that $BA=I$.  I tried to do it by defining $A$ and $B$ manually by listing the elements but calculations become tedious. Is there a short way to obtain this result?  One is only allowed to use concept of product of matrices and elementry transformations.


Null pointer exception with "setDisplayHomeAsUpEnabled(boolean)"

Hi I'm getting nullPointerException in my application with this line.  this.getSupportActionBar().setDisplayHomeAsUpEnabled(true);  this.getSupportActionBar().setBackgroundDrawable(new ColorDrawable(Color.GRAY));   I'm extending AppCompatActivity with my activity class.  My Logcat says as:   Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.app.ActionBar.setDisplayHomeAsUpEnabled(boolean)' on a null object reference   Can you please help me clearing this issue???


Question:  Prove that $\tan^{-1}(\frac{1}{2} \tan2A)+\tan^{-1}(\cot A)+\tan^{-1}(\cot^{3} A)=0$  MyProblem  We can just use the formula of $\tan^{-1} A +\tan^{-1} B$ but I think it would be a waste of time. Is there any other shorter and simpler method to solve it.


Are Overwatch loot boxes populated when awarded, or when opened?

Are the contents of a loot box determined at the time it is awarded or when it is opened?  For example, if you collect multiple loot boxes before a special event but opened them during the special event, would they have the potential of spawning rewards from that event?


Error: Can't open display: localhost:0.0 but :0.0 works

I can't seem to find what config is missing. It use to work this way there might be something change in cygwin. I had similar setup which was always working. I have make sure that firewall on windows is turn off.   [raza@mytest]$  export DISPLAY=:0.0  [raza@mytest]$  xhost +  access control disabled, clients can connect from any host  [raza@mytest]$  export DISPLAY=localhost:0.0  [raza@mytest]$  xhost +  xhost:  unable to open display "localhost:0.0"   [raza@mytest]$   xauth list  mytest/unix:0  MIT-MAGIC-COOKIE-1  7ab7e0be4cf96102784fb9c3bb9f0d3b  mytest:0  MIT-MAGIC-COOKIE-1  7ab7e0be4cf96102784fb9c3bb9f0d3b  mytest:0  MIT-MAGIC-COOKIE-1  7ab7e0be4cf96102784fb9c3bb9f0d3b   [raza@mytest]$   telnet localhost 6000  Trying 127.0.0.1...  telnet: Unable to connect to remote host: Connection refused


java + log4j : How to fix "No appenders could be found for logger (org.apache.http.client.protocol.RequestAddCookies)"

Working with selenium + maven project in eclipse. I am facing below warnings:  log4j:WARN No appenders could be found for logger(org.apache.http.client.protocol.RequestAddCookies). log4j:WARN Please initialize the log4j system properly.  I have tried  Adding log4j.properties Corrected jdk version updated pom.xml file with accurate dependancy Ensure that those files are physically available and link in build with correct + valid path cleaned project in eclipse updated all maven dependancies  Anyone has experience and face, please guide/suggest how those can be fixed?