Need a proofreading why all the units are satisfied $a^2-2b^2 =\pm1$ for $\mathbf{Z}[\sqrt{2}]$

All the units are satisfied Pell's equation $a^2-2b^2=\pm1$  for $\mathbf{Z}[\sqrt{2}]$, $a,b\in\mathbf{Z}$.  Here is my proof:  Let $a+b\sqrt{2}$ be a unit $\in\mathbf{Z}[\sqrt{2}]$. This implies $$(a+b\sqrt{2})(c+d\sqrt{2})=1, c+d\sqrt{2}\in\mathbf{Z}\sqrt{2}$$ $$\implies \mathrm{norm}((a+b\sqrt{2})(c+d\sqrt{2}))=1$$ $$\implies \mathrm{norm}(a+b\sqrt{2})\cdot \mathrm{norm}(c+d\sqrt{2})=1$$ $$\implies (a+b\sqrt{2})(a-b\sqrt{2})(c+d\sqrt{2})(c-d\sqrt{2})=1$$ $$\implies (a^2-2b^2)(c^2-2d^2)=1$$ $$\implies \left[ a^2-2b^2=1\text{ and } {c}^2-2{d}^2=1\right]\text{ or } \left[ a^2-2{b}^2=-1\text{ and }{c}^2-2{d}^2=-1\right]$$ $$\implies {a}^2-2{b}^2=\pm1$$


I'm currently designing some code on QT that is built across multiple source. I want to create an array in one source and be able to access it in another source.  Currently in my Header I have class   Array_Class : public QString { public:     static QString Data_Array [2]; };   I don't think I need a constructor as I'm going to "populate" the array before I read it.  currently in my source.cpp I have  Array_Class::Data_Array[0]= "foo"; Array_Class::Data_Array[1]= "bar";   however this gives me the error message undefined reference to "Array_Class::Data_Array". What am I missing? thanks


I've got a HashMap that I need sorting by value and I'm trying to keep it concise, so I'm using Java 8. However various methods aren't working and I'm unsure why. I've tried this:  followLikeCount.values()   .stream()   .sorted(Map.Entry.comparingByValue())   .collect(Collectors.toList());   Which throws this compile time exception:  Main.java:65: error: no suitable method found for sorted(Comparator<Entry<Object,V#1>>)   .sorted(Map.Entry.comparingByValue())   I can't see why there is a mismatch from observation. I've also tried using the comparator:  Comparator<Map.Entry<Integer, Integer>> byValue =           Map.Entry.<Integer, Integer>comparingByValue();   Which yields a similar error. Please could you advise why the comparators aren't valid?


I wonder if there is something like a standalone Version of Visual Studios "Immediate Window"? Sometimes I just want to test some simple stuff, like "DateTime.Parse("blah")" to see if that works. But everytime i have to create a new console application, put in my code and test it.  The Immediate Window sadly only works when I am debugging something. Could PowerShell do that? Just open a CLI similar to what cmd.exe does, allowing me to execute some C# code?


Is it possible to place windows with keyboard shortcuts in Gnome-Shell?

With Compiz in Unity, I could press Ctrl+Alt+6 to place a window on the right-half of the screen, Ctrl+Alt+4 to place it on the left half, Ctrl+Alt+7 to place it in the top left quarter of the screen, and so on. Is there something similar in Gnome-Shell?


Why my 20.04.1 offers me Pop!_OS 20.10 upgrade?

One day I logged into my system and it started offering me "Pop!_OS 20.10 is available." popup. The system is "Ubuntu 20.04.1 LTS" and was upgraded from 18.04 TLS release via standard Ubuntu upgrade. Why am I getting this Pop distro upgrade? Is something wrong? I know that Pop distro is not Ubuntu and never have been. And I also can't find any information about this strange upgrade. Is this some kind of a virus or what?


Why is empty set subset of every other set? I have read a lot of articles on this topic but I didn't got answer. Most of them goes like this that for set A to be subset of B there must be no element in A which is not in B, since A is empty set it has no element at all so, A Is subset of B. But I can use this reasoing to prove it wrong also. As for A to be subset of B , A must have element which are also in B since A is empty set there are no element so intuitvely A cannot be subset of B. I am confused.


Remove adjacent lines that match pattern

Input: file with sorted lines  Output: file with 'unique' lines that match adjacent lines if we are to remove all digits  Example  Input  abbylove2007 abbylove2008 abbylove2012 AbbyLove2014 abby1994lover abby2007lover abbylovesaal2018 abbylovesbsb2003   Output  abbylove2007 abby1994lover   Here abbylove2007 and abby1994lover are left since there are more than one adjacent line that matches abbylove\d+ and abby\d+lover


I need to prove this $$\sum_{k=0}^n \binom{n+k}{k}=\binom{2n+1}{n}$$ Using induction and basically only the Pascal's identity and the symmetry property for binomial coefficients. Now, I noticed that $\sum_{k=0}^n \binom{r+k}{k}=\binom{r+n+1}{n}$ has a relatively simple proof by induction and it basically holds for any $r$. Could I apply that property for $r=n$ and call it a day? I also tried to solve the problem by using a similar argument, the induction step however states that $$\sum_{k=0}^{n+1} \binom{n+1+k}{k}=\sum_{k=0}^{n} \binom{n+1+k}{k}+\binom{2n+2}{n+1}$$ then $$\sum_{k=0}^{n+1} \binom{n+1+k}{k}=\sum_{k=0}^{n} \binom{n+k}{k}+\sum_{k=0}^{n} \binom{n+k}{k-1}+\binom{2n+2}{n+1}$$ Using the induction hypothesis $$\sum_{k=0}^{n+1} \binom{n+1+k}{k}= \binom{2n+1}{n}+\sum_{k=0}^{n} \binom{n+k}{k-1}+\binom{2n+2}{n+1}$$ And that's where I got stuck. Is this a dead end?


Unit Test Loop gets executed more than once

For some reason the loop inside a method, that gets executed in a unit test, gets executed more than once. And because of that I get ConcurrentModificationException. To make it short, method loops through objects, executes other method on each object, with Runnable parameter. This works just fine when application is deployed, but during unit testing, loop gets executed more than once and I get an error.  Code example:  @RunWith(JukitoRunner.class) public class MyTest {      @Inject     MainService mainService;      @Test     public void testMain(){         mainService.setData(mainService.getSelectedData());     } }  public class MainService {      List<Data> data = new ArrayList<Data>();      List<Field> fields = new ArrayList<Field>();      public MainService(){         /* this.fields is filled here*/         data.add(/*data obj*/);         data.add(/*data obj*/);         data.add(/*data obj*/);     }      public List<Data> getSelectedData(){         /* alghoritm to filter data */         return data; /*returns List with 1 and 2nd data objects from this.data*/     }     private void deleteEl(Field field, Runnable callback){         fields.remove(field);         for (ListIterator<Data> i = data.listIterator(); i.hasNext();) {             Data data = i.next();             if(data.something()) i.remove();         }          if (callback != null) {             callback.run();         }     }      public void setData(List<Data> selected){         for(Field field : fields){// checked with debug, this gets executed more than once, why?! It should run only once. ConcurrentModificationException gets thrown here.             if(field instanceof Object){                 deleteEl(field, new Runnable(){                     @Override                     public void run(){                         create(selected); //won't post create() code, since even commenting this, does not help. Error persists                     }                 })             }         }     }  }


Where should I start with Star Trek? (TV series only, not the movies)

I haven't seen any of the stuff in the Star Trek franchise, except for one of the movies, and now I want to remedy the situation. I am not interested in the movies, just the TV series. However, since the show has many seasons, I am not interested in watching the show start to finish. So, where (i.e what series/season) should I start with? Do I really need to see the series in real-world chronological order?   Note: I am somewhat familiar with Star Trek, that is I know the basic premise - ships in space, with war between different space-faring sentient species.


How can I type special symbols on my Android device like ☺ or ♥ as a regular character?

How can I make special symbols on my Samsung Galaxy SII, like ☺ or ♥?


Trivial question but I am confused with the notation  If $p_{n-1}$ is a polynomial of degree $n-1$, is it   $\in$ the differentiability class  C^n$?   Obviously if $p_n$ is a polynomial of degree $n$, then it is in $C^n$   as it is continuous as well as having its first $n$ derivatives continuous.


What if my question is not answered nether commented and I do not have enough reputation to start a bounty?

Suppose I asked some question, that got enough (28-30) views to get an answer or at least a comment. But neither a comment nor any answer is posted.  So I should start a bounty so that it gets people's attention but the thing is I do not have enough reputations to start a bounty.  So what should I do in that case? Should I keep editing my question to bump it or what?


The answer to the equation $\log_3x+\log_2x+\log_4x=1$

The answer to the equation :  $$\log_3x+\log_2x+\log_4x=1$$    my try :  $$\log_3x+\log_2x+\log_4x=1\\ \log_2x+\log_2\sqrt{x}+\log_{3}x=1\\\log_2x\sqrt{x}=\log_{3}{\dfrac{3}{x}}$$  now ?


exercise: let $A$ be an integral domain in which all prime ideals are maximal (but may not be Dedekind in general).  let $P_1,  P_2$ be 2 distinct prime ideals.  prove: for any positive integer $m, n$,  $P_1^m+P_2^n=A$.   so the hint is to prove this first for arbitrary $m$ when $n=1$.  I finished this step by observing that if $P_1^m$ is contained in $P_2$,  then since they re prime ideals $P_1 \subset P_2$.  this contradicts the fact that they re distinguish and maximal.  so this was done.   but next how to use induction for $m$? I need some hint, thanks!


this is a simple add on just to select a loop so i can make the mean crease value 1  I do this alot and the constant moving mouse right is starting to hurt my had for models then will be subdivided.  I just want to press on a edge, (use the assigned shortcut key to active the add on) it will then select the loop and set the value of mean crease to 1.  This only works with the scripting editor, I can't get the add on to work after saving as test.py any help please.  I get the following errors :  addon_utils.disable: edge crease not disabled Modules Installed (edge crease) from 'C:\\Users\\RTJ\\Documents\\edge crease.py' into 'C:\\Users\\RTJ\\AppData\\Roaming\\Blender Foundation\\Blender\\2.80\\scripts\\addons' Traceback (most recent call last):   File "C:\Program Files\Blender Foundation\Blender\2.80\scripts\modules\addon_utils.py", line 351, in enable     mod = __import__(module_name)   File "C:\Users\RTJ\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\edge crease.py", line 35, in <module>     class EdgeCrease(bpy.types.Operator):   File "C:\Users\RTJ\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\edge crease.py", line 42, in EdgeCrease     bpy.ops.mesh.loop_multi_select(ring=False)   File "C:\Program Files\Blender Foundation\Blender\2.80\scripts\modules\bpy\ops.py", line 195, in __call__     BPyOpsSubModOp._view_layer_update(context)   File "C:\Program Files\Blender Foundation\Blender\2.80\scripts\modules\bpy\ops.py", line 157, in _view_layer_update     view_layer = context.view_layer AttributeError: '_RestrictContext' object has no attribute 'view_layer' "   the script:  bl_info = {     "name": "Edge Crease  ",     "author": "RTJ3DCosplay",     "version": (1, 0),     "blender": (2, 80, 0),     "location": "",     "description": "delete in context",     "warning": "experimental, not stable, at your own risk",     "wiki_url": "https://your web or web of the maintainer",     "category": "category where the addon is located" }  import bpy         import bmesh import mathutils import collections import math  from bpy_extras import view3d_utils from bpy.types import (         Operator,         Menu,         Panel,         PropertyGroup,         AddonPreferences,         ) from bpy.props import (         BoolProperty,         EnumProperty,         FloatProperty,         IntProperty,         PointerProperty,         StringProperty,         )  class EdgeCrease(bpy.types.Operator):     """Edge Crease"""     bl_idname = "object.edge_crease"     bl_label = "Edge Crease"     bl_options = {'REGISTER', 'UNDO'}   # this is all i'm trying to do,  # i select on edge then active this to loop select and set value to 1  # id be happy just to set to 1 each time      bpy.ops.mesh.loop_multi_select(ring=False)      bpy.ops.transform.edge_crease(value=1)    def register():     bpy.utils.register_class(EdgeCrease)    def unregister():     bpy.utils.unregister_class(EdgeCrease)   if __name__ == "__main__":     register()


Why is the Vector menu missing upon installation of QGIS 3.0?   Others mentioned that some of the tools were missing from the menu when they installed a previous version, but in my case the entire Vector menu is missing including all of the geoprocessing tools I need.


Proving cinvergence by showing that sequence is monotone and bounded

$a(1)=1, a(n+1)=\sqrt{2+a(n)}$ for all n greater than or equal to $1$  I can prove that it is a strictly increasing function and can find the limit as $2$ if i take $a(n+1)=a(n$) for large $n$ but this needs to be proved. But how to prove?


How do I unzip a .tar.gz file in the terminal?  I'm not able to do so in GUI, because I want to extract it to a /usr directory, and will need the sudo command.


Reduce spacing between items in LOF and LOT

I'm using LOF and LOT for my thesis(book class). Both commands create extra spacing for items from different chapters:  How can I reduce or eliminate that spacing? This is my code(MWE): \documentclass[12pt,oneside,a4paper]{book}  \usepackage{tocbasic} \DeclareTOCStyleEntry[   entrynumberformat=\entrynumberwithprefix{\figurename},   dynnumwidth,   indent=0pt,   numsep=0.5em,   beforeskip = 1pt, ]{tocline}{figure} \newcommand\entrynumberwithprefix[2]{#1\enspace#2:\hfill}  \DeclareTOCStyleEntry[   entrynumberformat=\entrynumberwithprefix{\tablename},   dynnumwidth,   indent = 0pt,   numsep = 0.5em ]{tocline}{table}  \begin{document}  \bgroup \renewcommand{\listfigurename}{\textbf{ÍNDICE DE FIGURAS}} \def\bm{} \listoffigures \egroup  \renewcommand{\listtablename}{\textbf{ÍNDICE DE TABLAS}} \listoftables  %%% \chapter{CHAPTER 1} % \begin{figure}  \caption{Caption of Figure 1} \end{figure}  %%% \chapter{CHAPTER 2} \begin{figure}   \caption{Caption of Figure 2}  \end{figure} % \begin{figure}   \caption{Caption of Figure 3} \end{figure}  \end{document}  Thank you for your help!


if $a,b,c$ are positive real numbers,Prove:$$a^3+b^3+c^3\geq a^2b+b^2c+c^2a$$   Things I have done so far: I know the fact that $$a^3+b^3+c^3\geq\frac{1}{2}[ab(a+b)+bc(b+c)+ca(c+a)]$$  However i tried to reach the problem inequality,but I was not succesful.  Source of problem: school exam.


"Hidden Profiles" still shown in Network Profile Top Posts list

I just noticed that although the hidden profiles are hidden in the "Accounts" tab on the Network profile, top questions from hidden profiles are still shown under the "Top" tab (and other tabs). This cannot possibly be by design, right?


How can I show whether two modules $ A=\mathbb Z^3/ \langle (2,1,0), (0,-1,0)\rangle$ and $B=\mathbb Z^3/ \langle (1,0,0), (0,1,0)\rangle$ are isomorphic to each other and if they are also free?


How to migrate user settings and data to new machine?

I'm new to Ubuntu and recently started using it on my PC. I'm going to replace that PC with a new machine. I want to transfer my data and settings to the nettop. What aspects should I consider?  Obviously I want to move my data over. What things am I missing if I only copy the entire home folder?  This is a home pc (not corporate) so user rights and other security issues are not a concern, except that the files should be accessible on the new machine!  Please take into account that the new machine is a nettop that doesn't have an optical drive and doesn't allow me to hook the old SATA disk into it, so any data transfer must be handled via home network (I can have both the old and the new machine turned on and connected to the home LAN) and I have an USB thumbdrive with limited capacity (2GB). This sounds like it might limit the general applicability, but it would in fact make it more general.


Python API to create folder & appended with increment number if the folder already exists

Is there any Python API available which supports creating a folder appended with increment number or unique character if the folder already exists?  e.g., In my directory BAR folder already exists. If I try to create a folder "BAR" it should create BAR1.


How can I get my homepage to be displayed in my SERP instead of inner pages?

I have a website with couple of pages.  In the home page I have fair amount of content with required amount of keyword density. Other pages are fine and having enough amount of content whereas contact page is just a simple page with no content except a contact form.  When I search for my domain name in Google Search, on the third page I'm ranked 26, 27, 28, and the pages are:  mydomain/contact mydomain/someservice mydomain/someservice2   Whereas I am more interested to find my domain name alone in a Google search instead of inner pages; moreover I don't want to see that weird contact page appearing instead of my homepage.  If I use <link rel="canonical" href="http://homepage.com/" /> for all the rest pages will that help me?


Could not install Java 8 on my ubuntu server 18.04 :  sudo add-apt-repository ppa:webupd8team/java sudo apt update sudo apt install oracle-java8-installer  Reading package lists... Done Building dependency tree        Reading state information... Done Package oracle-java8-installer is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'oracle-java8-installer' has no installation candidate   How to install Java ?


S→∃x.Q(x) ⊢ ∃x.(S→Q(x)): How to prove the validity of this sequent in predicate logic?

How to prove the validity of this sequent in predicate logic? Partial proof:


Select Input Texture file name as parameter/node

I am trying to create a material node group for triplanar mapping, but I am not sure how I can parameterize the image texture name.   I have 3 image texture nodes, which all use the same file with the same settings, the only difference is the vector input.  Is there a way I can make it so that I only have to select the texture name once, possibly as a input for a group?


What is the sum of integers from $1$ to $789999$ ? asks the professor

How to resolve it? How to find that sum?


Jailbroken iPad stuck on black screen - home button is non functional

I just used taig to jailbreak an 8.3 pad.  All went well for a while and I was investigating and enjoying the freedom.  An app then crashed and now I have a black screen with what appears to be no way of restarting.  I should mention that my home button is not functional.    I could wait for the battery to run out but I'd rather not :)  I've tried the hold power for x seconds, tried it with the home but that doesn't do anything, there doesn't seem to be an option within iTunes and I'd rather not restore.  Is there an option for sending a reset signal without restore / home button?  thanks for any help.


I recently tried to move my Drupal site to a new server using this page: . But now the style doesn't seem be loaded and more importantly I get this error on every page in the site (even on the frontpage):  Warning: file_put_contents(temporary://filef76T9k): failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call failed in file_unmanaged_save_data() (line 1900 of /Library/Server/Web/Data/Sites/Default/drupal/includes/file.inc). The file could not be created.  Any ideas what this could be about?


How do I get the path of the Python script I am running in?

Duplicate:        How do I get the path of a the Python script I am running in? I was doing dirname(sys.argv[0]), however on Mac I only get the filename - not the full path as I do on Windows.  No matter where my application is launched from, I want to open files that are relative to my script file(s).


Throwing eggs from flooors, general case

The following problem and its solution is well-known: you have two eggs and you have to measure which is the first floor of a building (that has in this example 36 floors) from which if an egg is dropped it breaks. Find an algorithm the worst case scenario of which involves the smallest number of tries. The solution: throw an egg from the 8th floor, if it breaks throw the second one from the 1st, 2nd... until it breaks. If the first egg didn't break, throw it from the (8+7=) 15th floor, and proceed in similar fashion till the (8+7+6+5+...+1=) 36th floor. From this it is easy to see the general solution for two eggs but what is the case (minimum number of throws required) if we have $n$ eggs?


genus of intersection complete for $f=x_0x_3-x_2x_1$ $g=x_0^2+x_1^2+x_2^2+x_3^2$

This question is from Rick Miranda's book:  $C$ is the curve in $\mathbb{P}^3$ defined by $f=x_0x_3-x_2x_1=0$ and  $g=x_0^2+x_1^2+x_2^2+x_3^2=0$  The question asks to prove that it is a complete intersection and also asks to found the topologic genus. My doubt is:  This point $P=[x_0=1,x_1=i,x_2=i,x_3=-1]$ satisfies both equations, and the jacobian in this point:   $$\left(\begin{array}{rrrr}-1&-i&-i&1\\2&2i&2i&-2\end{array}\right)$$ shows that $rank\neq 2$ in that point. So, does this means that the curve is not a complete intersection? Anyway, even with this points where the curve is singular, does it has genus 1?  This has already reviewed on several previous posts, but I still have this doubt, I will appreciate if anyone could help me solve it.


Interpreting Odds Ratios For Logistic Regression

I just developed a logistic regression model predicting customer churn (i.e how likely is a customer to leave us in the future?)  To understand the impact of my independent variables I calculated Odds ratio using the following function.   exp(trainingmodel$coefficients)  Where trainingmodel is the name of my model.  And I get the following results:  AIRTIME  9.789127e-01  Site.Report.By.Vehicle1 1.241823e+00   Both AIRTIME and Site Report are a feature of product we offer. In my dataset, AIRTIME is a continuous variable whereas Site.Report.By.Vehicle1 is a categorical variable with just two levels, ie. someone using the Site Report or not?  Can someone please help me to understand how to interpret the above number for AIRTIME and Site Report?


Horizontal spacing issue in \listoftheorems using amsthm + thmtools

I am using the command \listoftheorems with packages amsthm and thmtools. The problem is that the theorem's head and its optional title overlap. How can I make this space bigger to avoid overlapping?    Thank you all. I include an example below (maybe not minimal). I've tried \makeatletter\thmt@listnumwidth{4.3em}\makeatother but I get errors. Same thing with \renewcommand{\l@theorem}{\@tocline{0}{3pt plus2pt}{0pt}{3.5em}{}}. Any other clues? Should I try working with ntheorem instead?  %% LyX 2.0.0 created this file.  For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[12pt,a4paper,english,titlepage, fleqn,numbers=noenddot]{scrbook} \usepackage[osf]{mathpazo} \usepackage{helvet} \usepackage{courier} \renewcommand{\familydefault}{\rmdefault} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \pagestyle{headings} \setcounter{tocdepth}{3} \setlength{\parskip}{\medskipamount} \setlength{\parindent}{0pt} \usepackage{babel} \usepackage{setspace} \onehalfspacing \usepackage[unicode=true,  bookmarks=true,bookmarksnumbered=true,bookmarksopen=true,bookmarksopenlevel=4,  breaklinks=false,pdfborder={0 0 0},backref=false,colorlinks=false]  {hyperref} \hypersetup{pdftitle={},    pdfkeywords={music cognition, categorization, embodiment}}  \makeatletter  \pdfpageheight\paperheight \pdfpagewidth\paperwidth  \usepackage{amsthm} \usepackage{thmtools}  \declaretheorem[style=remark, name={}]{Example} \renewcommand{\theExample}{\bf{Def. \thechapter.\arabic{Example}}}  \makeatletter \def\th@remark{% \thm@headpunct{:}   \thm@notefont{\bfseries\itshape}} \makeatother  \makeatletter \def\thmhead@plain#1#2#3{%   \thmname{#1}\thmnumber{\@ifnotempty{#1}{ }\@upn{#2}}%   \thmnote{ {\the\thm@notefont#3}}} \let\thmhead\thmhead@plain \def\swappedhead#1#2#3{%   \thmnumber{#2}%   \thmname{\@ifnotempty{#2}{~}#1}%   \thmnote{ {\the\thm@notefont#3}}} \makeatother  \newcounter{genero} \setcounter{genero}{1}  \AtBeginDocument{   \def\labelitemi{\normalfont\bfseries{--}}   \def\labelitemii{\(\star\)}   \def\labelitemiii{\(\cdot\)} }  \makeatother  \begin{document} \listoftheorems  \begin{Example}[Género musical \thegenero]\stepcounter{genero}  first example.  \end{Example}  \begin{Example}[Género musical \thegenero]\stepcounter{genero}  second example.  \end{Example}  \begin{Example}[Género musical \thegenero]\stepcounter{genero}  third example.  \end{Example} \end{document}


undefined reference error in c++ during compiling

I'm new with template in C++ and I'm puzzled on how I could run my program. The code I'm supposed to do is use a template to "create a static stack of any data type." This is the first time I'm working with templates and I only have a very basic knowledge about it. Hoping to get inputs! I'm using codio and the code is broken into three files: Main.cpp, Data.h, and Implementation.cpp. The error is this: /tmp/cckg9fEh.o: In function `main': Main.cpp:(.text+0x24): undefined reference to `IntStack<char>::IntStack(int)' Main.cpp:(.text+0x48): undefined reference to `IntStack<char>::push(char)' Main.cpp:(.text+0x6c): undefined reference to `IntStack<char>::push(char)' Main.cpp:(.text+0x90): undefined reference to `IntStack<char>::push(char)' Main.cpp:(.text+0xb4): undefined reference to `IntStack<char>::push(char)' Main.cpp:(.text+0xd8): undefined reference to `IntStack<char>::push(char)' Main.cpp:(.text+0xfe): undefined reference to `IntStack<char>::pop(char&)' Main.cpp:(.text+0x13b): undefined reference to `IntStack<char>::pop(char&)' Main.cpp:(.text+0x178): undefined reference to `IntStack<char>::pop(char&)' Main.cpp:(.text+0x1b5): undefined reference to `IntStack<char>::pop(char&)' Main.cpp:(.text+0x1f2): undefined reference to `IntStack<char>::pop(char&)' collect2: error: ld returned 1 exit status Stack_Project/test.sh: 6: Stack_Project/test.sh: ./Main.h: not found codio@smile-queen:~/workspace$   My code is as follows: Data.h #ifndef INTSTACK_H #define INTSTACK_H #include <iostream> #pragma once  template <class T> class IntStack {   private:     T *stackArray;     int stackSize;     int top;    public:     IntStack(int size);     void push(T let);     void pop(T &let);     bool isFull();     bool isEmpty(); };  #endif  Implementation.cpp #include <iostream> #include "Data.h" using namespace std;  template <class T> IntStack<T>::IntStack(int size) {    stackArray = new T[size];     stackSize = size;     top = -1; }   template <class T> void IntStack<T>::push(T let) {    if (isFull())    {        cout << "The stack is full.\n";    }    else    {        top++;        stackArray[top] = let;    } }  template <class T> void IntStack<T>::pop(T &let) {    if (isEmpty())    {        cout << "The stack is empty.\n";    }    else    {        let = stackArray[top];        top--;    } }  template <class T> bool IntStack<T>::isFull() {    bool status;     if (top == stackSize - 1)        status = true;    else        status = false;    return status; }  template <class T> bool IntStack<T>::isEmpty() {    bool status;     if (top == -1)        status = true;    else         status = false;    return status; }  Main.cpp #include <iostream> #include "Data.h" using namespace std;  int main() {     IntStack<char> stack(5);     char reclaim;      cout << "Pushing M\n";     stack.push('M');     cout << "Pushing C\n";     stack.push('C');     cout << "Pushing P\n";     stack.push('P');     cout << "Pushing U\n";     stack.push('U');       cout << "Pushing D \n";     stack.push('D');      cout << "Popping...\n";     stack.pop(reclaim);     cout << reclaim << endl;     stack.pop(reclaim);     cout << reclaim << endl;     stack.pop(reclaim);     cout << reclaim << endl;     stack.pop(reclaim);     cout << reclaim << endl;     stack.pop(reclaim);     cout << reclaim << endl; }  Thanks for the help!


Is there a way to block access to or wipe my Google data for a lost/stolen phone

If my phone was ever lost or stolen, my only real concern is data and apps associated with my Google account, such as my Gmail, the ability to purchase apps from the Market, and maybe Picasa albums.    Is there a way to block access to these Google associated programs if I change my password or do something else with my account?    I would also be interested in any solution that remotely wipes my Google data.  I know remote wiping questions have been asked before, but I feel that my question is a little more broad, in the sense of overall protection of data in which wiping is a possible answer.  FYI, I'm running a Gingerbread-based ROM on my Samsung Galaxy S (AT&T Captivate).


Problem with horizontal scrolling on TStringGrid

I have problem with wide grids of type TStringGrid. If user scrolls grid to the right and selects row then grid automatically scrolls left so first column can be seen, but not the column user is interested in. How to prevent such scrolling?  I use TurboDelphi (Delphi 2006).  My grid has standard options with changes:   goColSizing=True  goRowSelect=True


Open and closed set in n by n matrices space.

This problem seems to be easy yet I have no idea to deal with.  If $\mathbb{M} ^n$ is the set of all real square matrices of order n, identified here with $\mathbb{R} ^{n^2}$ equipped with its usual Euclidean norm which induce an usual topology on the space $\mathbb{M}^n$. Show that:   The set of all invertible real matrices of order n is open in $\mathbb{M} ^n$ with respect to the Euclidean norm topology; The set $\mathbb{S} ^n$ which consists of all real symmetric matrices of order n is closed in $\mathbb{M} ^n$ with respect to the Euclidean norm topology.   For question #1, by the hint which is given by @Brent Kerby, that $det:\mathbb{M}^n \rightarrow \mathbb{R}$ is continuous.


What are the default Polkit privileges on Arch Linux for shutdown, halt, etc., and why are they so?

On Arch Linux, with systemd, the following commands are all symlinks to systemctl:  /usr/bin/telinit /usr/bin/poweroff /usr/bin/runlevel /usr/bin/reboot /usr/bin/halt /usr/bin/shutdown   I find their behaviour with respect to authorization confusing:  $ shutdown Must be root. $ halt Must be root. $ telinit 3 # Asks for Polkit authorization   Neither poweroff nor reboot asks for authorization. poweroff doesn't actually turn off my system, the laptop remains on with text on the screen stating it is powering off - indefinitely.  I haven't tinkered with Polkit rules, so I wonder why their behaviour is so.   All commands were tried with my non-root admin user, who's a member of wheel. /etc/polkit-1/rules.d only seems to contain a default ruleset:  # tail /etc/polkit-1/rules.d/* // DO NOT EDIT THIS FILE, it will be overwritten on update // // Default rules for polkit // // See the polkit(8) man page for more information // about configuring polkit.  polkit.addAdminRule(function(action, subject) {     return ["unix-group:wheel"]; });    On closer inspection, /usr/share/polkit-1/actions/org.freedesktop.login1.policy has sections for poweroff, reboot, suspend and hibernate, with allow_active set to yes. But there are no sections for shutdown. If this is the cause, why is it so?


Does the slope of a regression between observed and predicted values always equal the $R^2$ of the original model?

As the title to my question says, I am confused as to when the $R^2$ of a model fit does not equal the slope of the regression between observed and predicted values.   I am trying to present model prediction statistics in a similar way to those presented in the summary figures of the Globcolor validation report () - (e.g. figure from page 53 of the .pdf):    Here we see that they present the plot of observed versus predicted Chlorophyll concentrations, as well as statistics relating to its regression (e.g. the dashed line: $R^2$, $RMS$, $\alpha$ - intercept, and $\beta$ - slope).   My issue is that in my comparisons, I always get exactly the same value for the overall model fit $R^2$ and $\beta$-slope of the observed versus predicted regression.  Basic question: When (if ever) can these be different?  I have included a basic example of my problem in the following R script:  set.seed(1) n <- 100 x <- runif(n) e <- rnorm(n) a <- 3 b <- 5 y <- a + x*b + e  #fit model fit <- lm( y ~ x )  #plot regression plot(x,y) abline(fit)  #plot predicted versus observed png("plot.png", units="in", width=5, height=5, res=400) par(mar=c(5,5,1,1)) pred <- predict(fit) plot(y, pred, xlim=range(c(y,pred)), ylim=range(c(y,pred)), xlab="observed", ylab="predicted") abline(0,1, lwd=2, col=8)  #add regression fit2 <- lm(pred ~ y) lgd <- c(     paste("R^2 =", round(summary(fit2)$r.squared,3)),     paste("Offset =", round(coef(fit2)[1],3)),     paste("Slope =", round(coef(fit2)[2],3)) ) legend("topleft", legend=lgd) abline(fit2, lwd=2) legend("bottomright", legend=c("predicted ~ observed", "1:1"), col=c(1,8), lty=1, lwd=2)  dev.off()  cor(pred, y)^2 # also the same


I am writing a test class for the simple Apex class with SOQL query but I am getting following error while Run test.      System.QueryException: List has no rows for assignment to SObject   My Apex class is as below      public class OlympicReward_ProgressBar {      @AuraEnabled     public static Olympic_Rewards__c getOlympicReward_ProgressBar(){          Olympic_Rewards__c olr = [SELECT Id, Name, Reward_Bar__c,Agency_stat_code__c,Contest_period_production__c,Current_Reward_Level__c,Agency__c                                   from Olympic_Rewards__c                                   WHERE Agency__c IN                                   (SELECT AccountId From User Where Id = :UserInfo.getUserId()) LIMIT 1];         return olr;     } }   Test Class   @isTest private class TestOlympicReward_ProgressBar {     static testmethod void GetOlympicReward_ProgressBar(){          // Setup Integration User to run test         User integrationUser = TestDataUtils.findIntegrationUser();          System.runAs(integrationUser){              List<Account> agencyList = TestDataUtils.createAgencyDataForAgencyPlans(1);             system.debug('@@@ AgencyList Size: ' + agencyList.size());// Debug statement returns Size as 1               if(!agencyList.isEmpty()) {                 insert agencyList;             }              Account agency = agencyList.get(0);              System.debug('@@@ Agency Name' + agency.name); // Not Displaying in Debug log.             agency.Region__c = 'Illinois Regional Office';             agency.Marketing_Territory__c = 'IL Territory 1';             update agency;              System.debug('@@@ Agency Name' + agency.name); // Not Displaying in Debug log.              Olympic_Rewards__c olr = new Olympic_Rewards__c();             olr.Name = 'Test Olympic Reward';             olr.Agency__c = agency.Id;             Test.startTest();             insert olr;              Olympic_Rewards__c getOlpr = OlympicReward_ProgressBar.getOlympicReward_ProgressBar();             Test.stopTest();         }     }  }


If you look the at  there is a graph of the Euler phi function up to 1000:   Out of the plot you can see various trend lines that appear to be linear.  Q1) Are these lines actually lines? (ie do all the points that appear to be on one line actually all solutions to some linear eqn?)  Q2) Given that they're lines and not just something that looks a bit like lines can they be described? and what points are on them?   Q3) Are the points that don't appear to be on lines actually just the first points on lines that would only be 'visible' if we zoomed out and evaluated the Euler phi up to (say) 10000 or whatever number is large enough.


The remainders of the terms of a recursive sequence

Let $a_n$ be the sequence defined by $a_1 = 3, \ a_{n+1} = 3^{a_n}$. Let $b_n$ be the remainder when $a_n$ is divided by $100$. What is $b_{2004}$?


How to fetch date(d,m,y) from phpmyadmin in php?

I want to fetch date format from (y,m,d) to (d,m,y).In my database I already insert data like date and images so many around 400 images.I dun want to insert again.  The following  is to fetch from database.  <?                                           $sql = "SELECT * FROM  ShowFillter GROUP BY Image_Date order by Image_Date desc";                             $objQuery = mysql_query($sql) or die ("Error Query [".$sql."]");                             while($objResult1 = mysql_fetch_array($objQuery))                             {                         ?>                         <li class="filter" data-filter="<?=$objResult1['Image_Date'];?>">                                                              <?=$objResult1['Image_Date'];?>
                          <?                              }                             ?>   The following is i tried it out to fetch from database.But It only show (Year ,Month,day) format.  <?                                           $sql = "SELECT * FROM  ShowFillter GROUP BY DATE_FORMAT(Image_Date, '%d/%m/%Y') order by DATE_FORMAT(Image_Date, '%d/%m/%Y') desc";                             $objQuery = mysql_query($sql) or die ("Error Query [".$sql."]");                             while($objResult1 = mysql_fetch_array($objQuery))                             {                         ?>                         <li class="filter" data-filter="<?=$objResult1['Image_Date'];?>">                                                              <?=$objResult1['Image_Date'];?>
                          <?                              }                             ?>   Here is the result   Is it possible to fetch (day,month,year) format? If its possible ,guide me please.  Thanks :)


How to find/grep what is between string1 and string2?

I am trying to extract a value from a long string that may change over time. So for example the string could look something like this  ....../filename-1.9.0.3.tar.gz"<....   And what I want to extract is the value between filename- and .tar.gz, essentially the file version (1.9.0.3 in this case). The reason I need to do it this way is because I may later run the command and the value will be 1.9.0.6 or 2.0.0.2 or something entirely different.  How can I do this? I'm currently only using grep, but I wouldn't mind using other utilities such as sed or awk or cut or whatever. To be perfectly clear, I need to extract only the file version part of the string, since it is very long (on both sides) everything else needs to be cut out somehow.


Discrepancy in using adjective or adverb with “taste”

One asks “how does x taste,” implying that they’d like an adverb describing the way it tastes. But one answers with an adjective, “it tastes good” instead of “it tastes well,” which would imply that x is tasting something else. What’s the reason for this discrepancy?


What would happen to the human body if we went almost at the speed of light?

If we were to travel almost at $299\,792\,458~m/s$, or the speed of light, what would happen to the human body? Would the human body stay the same or would there be consequences that would harm the person? Would our body shut down? I've been looking for an answer but could not find one.


ConTeXt: What is the equivalent of process_input_buffer callback?

How can be LuaTeX callbacks used in ConTeXt? (with LuaTeX backend) My main concern is the usage of process_input_buffer callback available in LuaTeX and LuaLaTeX. I am using it to altering the compiled source to reflect typografic rules customary in my country (maybe customary in general), to avoid one-letter prefixes ending the line. Next MWEs should illustrate that: One-letter prefix on the end of line (should be avoided): \documentclass{article}  \usepackage{xcolor}  \begin{document} Filling text filling text filling text filling text filling text filling text \textcolor{red}{filling V text} \end{document}  And correct version: \documentclass{article}  \usepackage{xcolor} \usepackage{luacode}  \begin{luacode} function pevnaMezera(s)   s = string.gsub(s, " V ", " V~")   return s end \end{luacode}  \AtBeginDocument{%   \directlua{luatexbase.add_to_callback(   "process_input_buffer", pevnaMezera , "pevnaMezera" )} }  \begin{document} Filling text filling text filling text filling text filling text filling text \textcolor{red}{filling V text} \end{document}  I am aware of this question: ; Howerver, presented answer seems focused only on callback pre_linebreak_filter, which is in ConTeXt defined as finalizer. I wasnt able to find anything about finalizers in general in any ConTeXt documentation or on ConTeXt Garden. NOTE: In actual projects I am using lua regexes in function for process_input_buffer callback, for brevity and readability I made simplier definition in MWE illustrating the problem. EDIT3: MWE changed according to comment of @Noone: \startluacode userdata = userdata or {}  function userdata.pevnaMezera(s)   s = string.gsub(s, " V ", " V~")   return s end  process_input_buffer = userdata.pevnaMezera \stopluacode  \starttext Filling text filling text filling text filling text filling text filling text filling text fil V text \stoptext  Is not adding non-breakable space. Is it correct from syntactical point of view?? I tryed to move the "assignment" to luacode block, but it did not work either.


command sort -h does not return a reasonable result

I tried to sort files using sort -h  algorithms@algorithms:~$ ls -lh /boot | sort -h drwxr-xr-x 5 root root 4.0K Dec 28 16:19 grub -rw------- 1 root root 4.2M Dec  5 13:10 System.map-4.18.0-13-generic -rw------- 1 root root 4.2M Nov 14 21:30 System.map-4.18.0-12-generic -rw------- 1 root root 8.2M Dec  5 13:11 vmlinuz-4.18.0-13-generic -rw------- 1 root root 8.2M Nov 14 21:50 vmlinuz-4.18.0-12-generic -rw-r--r-- 1 root root 1.5M Nov 14 21:30 abi-4.18.0-12-generic -rw-r--r-- 1 root root 179K Jan 28  2016 memtest86+.bin -rw-r--r-- 1 root root   17 Nov 14 21:30 retpoline-4.18.0-12-generic -rw-r--r-- 1 root root 181K Jan 28  2016 memtest86+.elf -rw-r--r-- 1 root root 181K Jan 28  2016 memtest86+_multiboot.bin -rw-r--r-- 1 root root 212K Dec  5 13:10 config-4.18.0-13-generic -rw-r--r-- 1 root root 212K Nov 14 21:30 config-4.18.0-12-generic -rw-r--r-- 1 root root  38M Dec 18 15:47 initrd.img-4.18.0-12-generic -rw-r--r-- 1 root root  38M Dec 28 16:25 initrd.img-4.18.0-13-generic   However, it does not sort reasonably.  Reference to the manual:     -h, --human-numeric-sort           compare human readable numbers (e.g., 2K 1G)   What's the problem with my usage?


how to get the original entity on hook_entity_presave?

i actually need it for the content_moderation_state entity   function hook_entity_presave(Drupal\Core\Entity\EntityInterface $entity) { if ($entity->getEntityTypeId() !== 'content_moderation_state' ) {     return; }     $moderation_state = $entity->get('moderation_state')->getString();   //code to get the original entity moderation state


Is there any material that does not return/reflect light?

I am looking for a material that is total dark, something that even when you illuminate it with flash light you will not get any light back. it exists? or is it possible to make one such material?


Prove that $x^2 + y^2 = z^n$ has a solution in $\mathbb{N}$, where $n$ belongs to $\mathbb{N}$, the set of all natural numbers.   My Attempt: Without loss of generality we can assign $z$ a perfect square value.  For $n=1 , x^2 + y^2 = z = k^2$ clearly has many solutions in natural number( since x,z,k are Pythagorean triplets).  Let the expression have a solution for $n = m$. Let it be $( x_1, y_1, z_1 = k_1^2 )$. Therefore, $   x_1^2 + y_1^2 = z_1^m = k_1^{2m} $    For $n = m+1$, \begin{align*}   x^2 + y^2 &= z^{m+1}\\ \Rightarrow x^2 + y^2 &= z^mz \end{align*} clearly $(k_1.x_1, k_1.y_1, k_1.z_1 = k_1^2 )$ is a sol. of the equation, i.e., $(k_1.x_1)^2 + (k_1.y_1)^2 =  z_1^m k_1^2$ $=>(k_1.x_1)^2 + (k_1.y_1)^2 =  z1^2$ Thus, it is proved by induction.   Can You please tell me if my method is right. Is it justifiable to take z a perfect square?    Also, can you provide a non-induction proof? ( but before you do please tell me if my method is correct or not)


How to formally prove the following inequality -   $$\int_t^{\infty} e^{-x^2/2}\,dx > e^{-t^2/2}\left(\frac{1}{t} - \frac{1}{t^3}\right)$$


Are JavaScript strings immutable? Do I need a "string builder" in JavaScript?

Does javascript use immutable or mutable strings? Do I need a "string builder"?


In place works for int[] but not for int in java

The value of int a remains same after calling function (testInPlaceInteger(a)) but for int[] arr changes after calling the function (squareArrayInPlace). Why is int a value not changing? Following is my code:  public class Test {   public static void main(String[] args) {     int a = 5;     int[] arr = new int[] {3, 4};      Test test = new Test();      test.testInPlaceInteger(a);     test.squareArrayInPlace(arr);      System.out.println(a);      for (int i : arr) {       System.out.println(i);     }   }    public void testInPlaceInteger(int num) {     num *= num;   }    public void squareArrayInPlace(int[] intArray) {     for (int i = 0; i < intArray.length; i++) {       intArray[i] *= intArray[i];     }   } }   Output:  5 9 16


Which real-life battles did Captain America fight in?

Over the years, due to various retcons, Captain America seems to fought in practically every single battle in World War II. Is there a list of the real-life World War II battles Steve Rogers of the 616 comic universe fought in?


Someone just edited a link in one of my answers to point to a 'better reference'.    I've no problem with links being changed in general, but this smells like part of a concerted attempt to redirect traffic.   Is this kind of activity acceptable on SO?


Who created the veil in the death chamber, and why?

Was the veil created by someone or was it always there in HP? What is its purpose? If one can't communicate with the dead through the veil, then what/how do unspeakables learn from the the veil? (except investigating how does it flutter,I suppose,,,,)


The original question says : Prove that $19\mid(2^{(2^{(6n+2)})}+3)$ $\forall$ $n \in N_0.$

I simplified the problem as writing it first as $2^{2^{6n+2}}+3\equiv 0(mod 19)$ finally ending till $2^{2^{6n+2}}\equiv 2^4(mod 19)$.I cannot figure out how to deal with the exponents with the same base on both sides of the congruence.


I'm new to EE so my theory isn't that strong. I want to trigger a  5v relay with my Arduino using a PN2222 transistor and a flyback diode. I plan on using the schematic below:         – Schematic created using   Now my question is: If I'm powering the Arduino via USB, will the current draw be too much for the Arduino's Vcc pin, thus requiring external power? I believe I'm reading that the relay will draw ~90mA and the Vcc pin from the Arduino can handle up to 200mA total. However, the transistor drives how much current is actually drawn, correct? Which is a function of the digtal pin voltage, R1 and the Hfe rating of the transistor? So if you were to mess that up, the current flowing to the relay would be incorrect and would not trigger it?   Thanks!


Why isn't my website in Google search results?

It's been sometime and Google has yet to index my site. How can I get Google to index my website?


difference bitween saveOrUpdate and merge using hibernate

What's the difference between  and  using hibernate and sessionFactory?


Is there a privacy setting on Facebook that will stop the posting that is made on your friend's wall when you make a new friend?  I do not want this to appear on my friend's wall when I make a new friend


I'm considering travelling with my sister (both British citizens) from the UK to China later this year. Mostly likely we would fly into a big city (Beijing/Shangai) and travel around somewhat from there by plane or rail, flying back to the UK from the same location.  From what I can tell from the Chinese embassy website, we would need , which seems to be relatively easy to apply for (just need hotel reservation and flight tickets).  However, I'm wondering if therefore the hotel reservation needs to be valid for the whole journey before we apply for the visa. Does the whole itinerary therefore need to be confirmed/planned?  In addition, I understood that in the past there were restrictions on foreigners travelling around China. Is this true, or do we mostly have freedom to travel where we want within China? (using our passports as ID, of course, if needed).


Non-existence of a bijective analytic function between annulus and punctured disk

Suppose $A=\{z\in \mathbb{C}: 0<|z|<1\}$ and $B=\{z\in \mathbb{C}: 2<|z|<3\}$.   Show that there is no one -to-one analytic function from A to B. Any hints? Thanks!


A random sample, $X_1, X_2,... X_n$ is drawn from a Pareto population with pdf $$f(x|\theta)=\frac{\theta}{x^2}I_{[\theta,\infty)}(x)$$ I've been trying to figure out the distribution of  $$T=\log\Big[\frac{\prod_{i=1}^n X_i}{X_{(1)}^n}\Big]$$ where $X_{(1)}$ is the first order statistic, or $X_{(1)}=\min_i X_i$. The problem is boiled down to finding the distribution of $W_i=\log\Big(\frac{X_i}{X_{(1)}}\Big)=\log(X_i)-\log(X_{(1)})=Y_i-Z$ for $i=2,...n$, since $T=\sum_{i=2}^nW_i$ I made some transformation and ended up with the pdf of $Y_i$ and $Z$ are given by $$f_Z(z)=\frac{n\theta^n}{e^{zn}}$$ $$f_Y(y)=\theta e^{-y}$$ $Y_i$ and $Z$ are independent so the next thing is to find the distribution of $Y_i-Z$ by taking the integral of the product of those 2 pdf and the result should yield to $Y_i-Z$ following exponential(1). However, from what I've derived, I can't get the exponential(1) and I don't know where I went wrong in any calculations or reasoning, can you please help me have a look? Many thanks.


In the circuitikz package a specific element called sinusoidal voltage source is available (it is presented in the , page 18, first image).  The code (or part of it) is in the tex/pgfcircbipoles.tex inside the package. I tried to use it in a new document with tikz, but it doesn't work.  Is it possible to create and use this shape in tikz (that is: inside a \begin{tikzpicture}...\end{tikzpicture} block)? How?


Flying from KL, Malaysia to Lucknow, India with layover in Singapore

I am an Indian passport holder travelling from KL, Malaysia to Lucknow, India via Singapore.  I have a multiple entry Singaporean visa and eNTRI from Thailand. My first flight (Jetstar) (KUL - SIN) arrives at 12:50. The outbound flight from Singapore to Lucknow is on the same day but from a different airline (Scoot). I have no check-in luggage and my outbound flight from (SIN - LKO) is at 16:00.  Will I have sufficient time to change the flights? Do I need to go through the immigration twice(for both inbound and outbound flights) in Singapore?   This is not a duplicate since I am asking about the Singapore airport in general and not only about the minimum connecting time. My question is about staying at the airside and taking the outbound flight(different PNR) without going through immigration.


I have graphics card Radeon HD 7730, I have intel  i5 processor running Ubuntu 14.04 LTS.  Output of fglrxinfo follows:  display: :0  screen: 0 OpenGL vendor string: Intel Open Source Technology Center OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile  OpenGL version string: 3.0 Mesa 11.0.2   Output of lshw -c video gives me:   *-display                       description: VGA compatible controller        product: 3rd Gen Core processor Graphics Controller        vendor: Intel Corporation        physical id: 2        bus info: pci@0000:00:02.0        version: 09        width: 64 bits        clock: 33MHz        capabilities: vga_controller bus_master cap_list rom        configuration: driver=i915 latency=0        resources: irq:29 memory:c1000000-c13fffff memory:b0000000-bfffffff ioport:4000(size=64) WARNING: output may be incomplete or inaccurate, you should run this program as super-user.   This  has an answer lspci -nnk | grep -i vga -A3 | grep 'in use' for its output it gives:  Kernel driver in use: i915 Kernel driver in use: radeon   In my additional driver tab I see 3 drivers:   Using X.ord Xserver -AMD? ATI dispaly driver wrapper from xserver-xorg-video-ati (open source, tested) Using Video driver from AMD graphics accelerators from fglrx-updates (proprietary) Using Video driver for AMD graphics accelerators from flgerx (proprietary)   The 3rd one is selected.  The response of lspci -k | grep -EA2 'VGA|Display' is   00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)     Subsystem: Dell Device 0572     Kernel driver in use: i915 -- 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Chelsea LP [Radeon HD 7730M] (rev ff)     Kernel driver in use: radeon 07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 07)     Questions:   I want to understand if my AMD card is served as graphics driver or i915? If not how can I make it happen?


My previous related  has been drastically downvoted. But now I see that at least on Stack Overflow some forbidden tags are shown in a single line (old BR), others one per separate line.         Looks like the global forbidden tags like “a, on, the” are processed different from site-specific tags like “data” and “programming”.  I think there should be a consistent solution. I suggest that each tag on separate line could be a better choice. E.g.:        The 'data' tag is not allowed.   The 'programming' tag is not allowed.   The 'a' tag is not allowed.   The 'the' tag is not allowed.   The 'on' tag is not allowed.      Suggested duplicate post is not a duplicate of the current one. The old post displays all forbidden tags in a single line. Current - contains new site-specific forbidden tags, which are displayed one per line. Both issues are very similar, but they are about different situations.


Problems enabling Bitlocker on Surface Pro with Windows 8.1

Using a brand new Surface Pro (first generation) out of the box, installed current updates, then 8.1, and any further recommended updates after 8.1 was installed.   I've installed a two other things that don't seem connected to the issue: the Cisco Anywhere VPN client and Visual Studio 2013.  I'd like to enable Bitlocker, but during the verification step, the following error is displayed, with no options to continue:     This PC deosn't support entering a BitLocker recovery password during startup. Ask your   administrator to configure Windows Recovery Environment so that you can use BitLocker.   The "administrator" in this case is me, and I don't:   ... understand why this has happened ... know how to fix the issue, as if it's really necessary to make this change, what would I do?


Prime Ideals in finite direct product of commutative Rings

Let $A_1, \dots , A_n$ be commutative unitary Rings and $A = \prod_{i=1}^{n} A_i$. Then every prime Ideal $\frak{p}$ $\subset A$ is of the form $\pi_i^{-1}(\frak{p}_i)$ where $\pi_i: A \to A_i$ are the canonical projections and $\frak{p_i}$ $\subset A_i$ is prime. I know that every Ideal in $A$ is a direct product of Ideals in the $A_i$, so we have $\frak{p}$ $= \frak{a}_i \times \dots \times \frak{a}_n$ for some Ideals $\frak{a}_i$ $\subset A_i$. They are also prime since $\frak{p}$ is prime. Now, since the $\pi_i$ are surjective $\pi_i(\frak{p})$ $\subset A_i$ is prime as well. Then we have $\pi_i^{-1}(\pi_i(\frak{p})) \supset \frak{p}$. Now I don't know how to finish the proof. Hints and/or improvements are greatly appreciated!


Verb forms in "Feelin' Myself" (will.i.am song)

I have been somewhat fascinated by this song recently, for various reasons, including the peculiar lyrics. I am especially wondering about the usage of infinitive-like verb forms in several lines, such as:  I be everywhere, everybody know me Cause we be in the club Look up in the mirror, the mirror look at me The mirror be like 'baby [...]'  I recognized some of them as similar to "X be like Y" expressions, which I found to be classified as a combination of "habitual be" and "quotative like". But there are other verbs being used in an apparently similar way, and I'm wondering if they're habitual verb aspects, subjunctive mood (my first guess), artistic license, contractions, other forms of slang/vernacular or just bad grammar.  Edit: In case it wasn't painfully obvious from the above paragraph, I have already researched "X be like Y" and that is not what my question is about. Specifically (and repeating myself again), there are other verbs being used, which are not covered by the "habitual be" and "quotative like" explanations. Also, "AAVE" is not a suitable answer to either question (it's probably true but much too vague - I'm asking about the verb forms).


Prevent Leaflet from requesting non-existing custom tiles

I have created custom tiles using TileMill. extracted tiles as png images and adding them on base layer. using following code  var venu_map = new L.tileLayer('static/b18/{z}/{x}/{y}.png', {                maxZoom:22,               attribution: '&copy; OpenStreetMap contributors'               }).addTo(map);   It works fine. But for every zoomlevel change leaflet makes a number of(around 20 -30) requests to non existing tiles resulting in "NetworkError: 404 NOT FOUND. Complete error msg is "NetworkError: 404 NOT FOUND - http://127.0.0.1:8000/static/b18/16/47372/30375.png". The particular image does not exist. Even after setting maxbounds this error show up. Any solutions?


How do I create multiple Minecraft installations?

I would like to play different mods. I want to play Attack Of B team on one Minecraft, another on a different mod, and a vanilla Minecraft. I don't know if I have to have separate Minecraft files, but I want to do that. Also, I don't know computer stuff very well so try to explain it as well as you can.


Can a Monk use their Shadow Step ability while grappling?

Specifically, I'm wondering if a Way of Shadow Monk can use Shadow Step, while being the controlling creature in a grapple, in order to move the target of the grapple. Secondly, is the 60' range of Shadow Step affected by the halved speed caused by grappling? In other words, can a Monk (1) run in, (2) grapple a creature, and (3) teleport away while bringing the creature with them. It seems like it to me, but I'm somewhat unsure. These are some points I've considered:   Grappled The condition ends if an effect removes the grappled creature from the grappler ...  (PHB 290)   Shadow Step [..] as a bonus action, you can teleport up to 60 feet to an unoccupied space that you can see...  (PHB 80)   Moving a grappled creature: When you move, you can drag or carry the grappled creature with you, but your speed is halved, unless the creature is 2 or more sizes smaller than you.  (PHB 195)


how is this transformer working with DC?

As I was going through the SMPS circuits online I came across this circuit:    I searched and learned that the transformer steps down or step up only AC power supplies and then converted to DC using rectifiers and to boost or to decrease them we use buck booster circuits.  I also found that :  As in DC(voltage being always constant), the change in flux is zero so no mutual induction,thus transformers can't work with a DC supply. Moreover, if DC or a similar rating of AC(Voltage & Current) is fed into the terminals of a Transformer there is a high possibility that it would burn the primary coil.  When a dc supply is provided to the transformer primary no self-induced emf will be generated (no back emf). Therefore heavy current will flow in the transformer primary winding which may result in burning down the transformer primary winding.  I also found the above things on Quora:        The transformer used in this circuit is an SMPS transformer that works on high frequencies. So how this works. I am not able understand it.


Is this sentence from Andrew Carnegie ambiguous?

This is 's defense of competition:     It is best for the race, because it insures the survival of the fittest in every department.   What is the function of the prepositional phrase "in every department" here?   It modifies "the fittest". (the fittest in every department) It modifies the verb "insures". (to insure X in every department)


When rendering my mesh, I noticed that not all the textures for the body are the same as they are in the 3D view. In my body mesh, there are two textures- one for the head, and one for the rest of the body. The head texture shows up fine during rendering, but the body texture appears to have its UVs somehow warped.        As you can see from the body texture on render, the body texture IS being used to texture the body since the blue on the arm is present (not found in the face). However, it would appear that the UVs are different on render than in the 3D view. Any ideas?


How do I get the Skype status icon back? (on panel/tray)

I installed Skype 4.0 following . However my little Skype icon in the unity status bar (in the top right corner with clock, volume, etc.) is gone. How do I get it back?


RTL8821AE wifi loses internet connection after some time

I installed Ubuntu as my main OS recently. It's very nice. Nevertheless I have some problems.  When I turned the computer on, the wifi connection worked perfectly. But after a few minutes, problems appeared. I was still connected to the wifi but with no Internet connection. And after a while, the connection with my router was lost.  I had been rebooting my laptop several times, but with the same results.   lspci -knn | grep Net -A3 03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821AE 802.11ac PCIe Wireless Network Adapter [10ec:8821]     Subsystem: XAVi Technologies Corp. RTL8821AE 802.11ac PCIe Wireless Network Adapter [1b9a:2482]     Kernel driver in use: rtl8821ae     Kernel modules: rtl8821ae   It's an Asus FX555UA.


I've set out to build a server and I might have ordered the wrong RAM.  The motherboard I'm using is an . In the specifications, it states that I can have 256GB of RDIMM or 64GB of UDIMM. The RAM I bought is consumer, . The memory format for the RAM is just "DIMM".  The question I have is what type of DIMM is my RAM? RDIMM or UDIMM? Or is it neither, meaning it won't be supported at all?


How to make a Mac OS X .app with a shell script?

I tried following a few tutorials, but I get this:   How can I fix this? I added in a info.plist (I just copied and pasted another app's file, and changed around a few things.)  Also, I used chmod +x myApp to make the script executable.  P.S. I am using El Capitan


NullPointerException while initialising int array member of a class

I can barely understand the Exception in my code.  package botclean;  import java.util.Scanner; import java.lang.Math;  public class BotClean {      private static int nodeX[], nodeY[];     private static char[][] matrix;     private static int dirt[], botX, botY;     private static int number_of_dirt=0;     private static int number_of_paths=0;     private static Path firstpath;     private static Path paths[];     private static int path_counter = 0;       public static void main(String ab[])     {     String s;     matrix = new char[5][5];     Scanner sc = new Scanner(System.in);     botX = sc.nextInt();     botY = sc.nextInt();       s = sc.nextLine();     for(int i=0; i<5; i++)     {     s = sc.nextLine();     for(int j=0; j<5; j++)     {         matrix[i][j] = s.charAt(j);     }     }      searchDirt();       make_Paths(firstpath);       final_Path();     }      private static void searchDirt()     {          firstpath = new Path();         firstpath.dirtX = new int[25];         firstpath.dirtY = new int[25];          for(int i=0; i<5; i++)         {         for(int j=0; j<5; j++)         {         if(matrix[i][j]=='d')             {             firstpath.dirtX[number_of_dirt] = i;             firstpath.dirtY[number_of_dirt] = j;             ++number_of_dirt;             }         }     }       number_of_paths = 1;      for(int i=2; i<number_of_dirt; i++)     number_of_paths *= i;      System.out.println("number_of_paths = " + number_of_paths);     System.out.println("number_of_dirt = " + number_of_dirt);       paths = new Path[number_of_paths];      for(int i=0; i<number_of_paths; i++)     {          paths[i].dirtX = new int[number_of_dirt];         paths[i].dirtY = new int[number_of_dirt];      }      }      private static void make_Paths(Path pth)     {     int counter=0;      for(int i=1; i<=number_of_dirt; i++)     {     for(int j=1; j<=number_of_dirt; j++)     {     if(i==j)     counter = (i/j)-1;      else if(i<j)     counter = (i/j)+(j-1);      else     counter = (j/i)+j;       paths[i-1].dirtX[counter] = pth.dirtX[j-1];     paths[i-1].dirtY[counter] = pth.dirtY[j-1];     }      } }  private static void final_Path() {     int steps1=0,steps2=0;      for(int i=0; i<number_of_dirt; i++)     {         firstpath.dirtX[i] = paths[0].dirtX[i];         firstpath.dirtY[i] = paths[0].dirtY[i];     }      for(int i=1; i<number_of_paths; i++)     {     for(int j=0; j<number_of_dirt; j++)         {          steps1 += Math.abs(botX-firstpath.dirtX[j]);         steps1 += Math.abs(botY-firstpath.dirtY[j]);          steps2 += Math.abs(botX-paths[i].dirtX[j]);         steps2 += Math.abs(botY-paths[i].dirtY[j]);          }     if(steps1>steps2)         {          for(int j=0; j<number_of_dirt; j++)             {             firstpath.dirtX[j] = paths[i].dirtX[j];             firstpath.dirtY[j] = paths[i].dirtY[j];             }         }      steps1=0; steps2=0;     } }    private static class Path{     int dirtX[];     int dirtY[]; }  }   If you copy-paste the code, you will encounter NullPointerException at line:93. The statement - >     paths[i].dirtX = new int[number_of_dirt];


I am puzzled as to why this package is not in the system. I've installed xorg and I'm trying to use xterm, but it's not found and the shell suggests that I install it through apt-get, but when I try it says  Package 'xterm' has no installation candidate   I have tried to find information online but to no avail. I'm on Ubuntu 18.04.1 LTS.


gmail email relay work around or alternatives

I was wondering what other organizations using gmail have done for email relaying with Salesforce.  My organization will not be removing the gmail authentication so I was wondering if there is a work around, or if other organizations are using another service to be able to send emails from Salesforce without the "via" link.    I'm looking into AWS Simple email Service (SES) and send grid to send our one-off transactional emails.  I would like to hear what others have done to get around this issue.    Thanks!


Attribution alignment and order should be consistent with the website

The new attribution style on posts looks great, and brings some consistency with the website which is good. This is how it looks on an iPhone (in landscape, to emphasise the alignment; in portrait both boxes take up the whole screen width):        This is how it looks on the website:        Notice the switched order? That's confusing. Since the app version is aligned left it does make more sense in the order that it is, but since the website version is right aligned and the idea here is obviously consistency with the website could we switch the alignment and order to match?


Update (Jan 8, 2019) This is now 8 years old, but still getting occasional upvotes/attention, so I thought it's worth giving a summary of the current state.  Despite originally being , over the last decade some changes have made the privacy implications much clearer.  You now click "share" instead of "link", and the pop-up is very explicit that the link includes your user ID. There is a  asking that this user ID be anonymized or hashed, to allow users to earn publicity badges (the intention behind having the user ID present in the URL, as per ) while eliminating the privacy issue. Original Post It seems to me there is something of a privacy leak when permalinking to a question.  For what I would assume is the purposes of tracking which user is responsible for bringing traffic back to an SE site (for badges, etc.), the user ID of the user obtaining the permanent link . I wouldn't argue that this shouldn't be the case, but I find no warning or mention of this when I do these actions.  I'm sure I'm not the only one that doesn't desire anonymity on SO but would like at least pseudonymity on some places I might share a SO link, such as on a random blog.  As a user, I would not expect sharing a permanent link to leak my identity.   Unless you are familiar with Stack Exchange links or your own userID, it's certainly not obvious by looking at the link that it includes your personal info.  It'd be nice to have fair warning that using that feature will do so, and perhaps provide/describe the workaround: to simply remove the user-id segment from the URL.  Other features would be a preference that formats future permanent links to exclude the user id. Example (from this question)  Permalink:  Link to my user page:


Do I need a Canadian transit visa for Connecting flight through Canada ?

Travelling from Mexico to Delhi and there is half in Canada for two hours so do I need a transit visa for Canada?


How can I count different types in a column in sql?


How to run a LaunchAgent that runs a script which causes failures because of System Integrity Protection

After upgrading to Mojave, my rsync based backup script run via a launch agent in ~/Library/LaunchAgents, could no longer read some directories in ~/Library.


redirecting output of running background job in bash

in bash I have some jobs running, in background. They are always producing random irrelevant error messages that pollute the terminal. I am not always so prompt to start them with the 2>&1 > /dev/null redirect. How can I redirect the output when they are already running?


In a scientific article, should I write "3m", "3 m", "3 meters", or "3 [meters]"?


I am thinking about visiting Cork for 5 days In September . I need a visa , and I'm worried about not meeting the sufficient funds requirement . I'm a university student and I'll be funding the trip by a money reward I won , It's not much , but it's enough for The activities I selected , tickets , accommodation . I also have a bank account,but I heard that I must have a bank account with at least 3000 euros,is showing the documents of paying enough?  Thanks for reading


Does anybody know how I can read all the files in a specific folder and use the filenames in my LaTeX document?  I want to automatically create a seating chart with the fotos in a folder.


Holomorphic function $f: \Bbb C \rightarrow \Bbb C$ such that $|f(z)|\leq C|\negthinspace\cos(z)|$ for all $z \in \Bbb C$

The Question:  Let $f:\Bbb C \rightarrow \Bbb C$ be a holomorphic function (i.e. an entire function) such that  $|f(z)|≤C|\negthinspace\cos(z)|$ for all $z \in \Bbb C$, where $C \in \Bbb R$ is a constant.  What can you say about $f$?    My Thoughts:  I know that if $|f(z)|≤C|z^n|$ then $f$ must be a polynomial of degree $≤n$ (as I have proven in a previous part of the question), but I don't see how it generalizes to $|\cos(z)|$.  Also, this seems somehow related to Liouville's Theorem.  Certainly, functions of the form $f(z)=C' \cos (z)$ would work, provided $|C'|≤C$, and I can't seem to come up with any other function.  Any hints?


Bug in screen capture with Shutter on Ubuntu 17.10

Is it normal that on 17.10 Shutter doesn't work properly? When I try to get a screenshot, all I get is this stuff:   Is there a way to fix it? Are there working alternatives to Shutter for 17.10?


When degree of splitting field equals n factorial

Given that the degree of splitting field of a polynomial $f(x)$ over $\mathbb{Q}[x]$ is equal to $n!$ where   $n$ is the degree of $f$, $n>2$. If $\alpha$ is a root of $f$ in the splitting field, then we have to show that  $\mathbb{Q}(\alpha^4)=\mathbb{Q}(\alpha)$.  My attempt: $\mathbb{Q}(\alpha^4)\subseteq\mathbb{Q}(\alpha)$ is obvious.Also, $[\mathbb{Q}(\alpha):\mathbb{Q}(\alpha^4)]=4$ as $x^4-\alpha^4$ is the minimal polynomial of $\alpha$ over $\mathbb{Q}(\alpha^4)$. So, $n$ must be a multiple of $4$, by Tower Law.  I have come to a dead end it seems Please guide me.


How do I restore a dump file from mysqldump?

I was given a MySQL database file that I need to restore as a database on my Windows Server 2008 machine.  I tried using MySQL Administrator, but I got the following error:     The selected file was generated by   mysqldump and cannot be restored by   this application.   How do I get this working?


How do I clear the DNS cache in Windows 10 version 1709?

Probably the easiest way to clear the cache would be to restart the DNS Client service, but the option is grayed out even if I load the Services window as SYSTEM through PsExec. If I use something such as, say, IPCONFIG  /FLUSHDNS, it says it works but actually it doesn't help at all. Is there a way to force Windows to clear the DNS cache for real?? [I swear, how in the heck is the restriction of the DNS service useful in any way??]


What is the best freeware app for Windows to mount EXT4 partitions (from a GPT 4TB Disk) as RW, safely without corrupting the EXT4 partition?

My Computer is set up as Dualboot Windows and Ubuntu. I have 1 OS drive, and 1 hard drive with a /backup partition (which has all my family photos and data) and it is ext4. Also note... it is EXT4, and it is GPT, and it is 4TB size.  Anyway, Windows can not mount the /backup ext4 partition. What software/freeware do you reccomend for Windows? Preferrably looking for someone with experiance using it for a long time and not have problems with EXT4 partition which is a 4TB, GPT Disk.


Biggest differences of Thrift vs Protocol Buffers?

What are the biggest pros and cons of  vs ?


What Causes DatabaseTransactionOutOfOrderException and how do I fix this?

I am working on plugin to Drupal Commerce, and I started getting this error:   DatabaseTransactionOutOfOrderException: in DatabaseConnection->rollback() (line 1058 of /Library/WebServer/Documents/includes/database/database.inc).   Can anyone shed some light on what this error means? If I install a fresh drupal and reinstall my plugin, is that likely to clear things up?   Any advice?   Thanks!


Reinstalling bcmwl-kernel-source doesn't fix Broadcom wireless adapter 14e4:4365 rev01

I tried reinstalling bcmwl-kernel-source but my Broadcom wireless adapter 14e4:4365 rev01 is still not working


Strictly Upper Triangular $n\times n$ Matrices form a Nilpotent Lie Algebra over $\mathbb{C}$ for $n\geq 2$

I have been attempting this problem for a while, it is an assignment problem so I don't want somebody to just post the answer, I'm just looking for hints.  Let $\mathfrak{u}(n,\mathbb{C})$ be the Lie algebra of strictly upper triangular $n\times n$ matrices over $\mathbb{C}$.  I am trying to show that $\mathfrak{u}(n,\mathbb{C})$ is a nilpotent Lie algebra for $n\geq 2$.  This is what I have looked at so far.  I have done some explicit calculations (I shall omit the bulk of them and just summarise below) for $n=2,3,4$ and have come up with some ideas.  Let $L=\mathfrak{u}(n, \mathbb{C})$.  If $n=2$,  $L^1 = [L, L] = <0>_{\mathbb{C}}$  So $L$ is nilpotent.  If $n=3$,  $L^1 = [L, L] = <e_{13}>_{\mathbb{C}}$  $L^2 = [L, L^1] = <0>_{\mathbb{C}} = \left\{ 0 \right\}$  So, $L$ is nilpotent.  If $n=3$  $L^1 = [L,L] = <e_{13},e_{14},e_{24}>_\mathbb{C}$  $L^2 = [L,L^1] = <e_{14}>_{\mathbb{C}}$  $L^3 = [L, L^2] = <0>_{\mathbb{C}} = \left\{ 0 \right\}$  So, $L$ is nilpotent.  So my hypothesis so far is that for an arbitrary $m\in\mathbb{N}$, $L^{m-1}=\{0\}$  My instinct is to do this by induction. My base case, $n=2$ has already been shown. Now I assume that $\mathfrak{u}(n,\mathbb{C})$ is nilpotent for $n=k$ ($k\in\mathbb{N}$) and consider the case for n=k+1.  However, I have no idea how to link these two cases together. I have read in Introduction to Lie Algebras and Representation Theory - J.E. Humphreys that $L^k$ should be spanned by basis vectors $e_{ij}$ where $j-i=k+1$ - however in my calculations for $L^1$, I obtain an $e_{14}$ which does not satisfy 4-1=2.  Am I missing something completely obvious? Or have I made a mistake somewhere? (I have checked my calculations numerous times, but cannot find any errors!)  Thanks,  Andy.


Does a new Xbox One require an internet connection for first time setup?

For the launch of the Halo Master Chief Collection, I have ordered a new Xbox One.    I won't be home until late evening, and so I'd like to be able to start playing the single player campaign as soon as possible (At this point I don't care about saving progress, I just want to have a look).   Will I be able to unpack my Xbox One, put the disc in and be ready to play without connecting to Xbox Live for updates? Or will I be required to connect to the internet, sign in to my existing xbox live account, download dashboard updates, game updates etc. before I am able to play?


We often say "PIN Number", this is part of everyday conversation. But why?  PIN stands for Personal Identification Number, so what we're actually saying is Personal Identification Number Number.  Is there a reason for this?


How do I copy vertex groups from one object to another?

So, I decided that a previous project contained exactly what I needed to expedite a new project, so I appended the appropriate objects form the previous project to the new one. This was great, because I didn't have to define new materials, &c.   Regrettably, though, I found out that when it came to vertex groups, where it would have been as helpful to be able to copy vertex groups from one object to another as it was to copy materials, I couldn't figure out how to do so.   Am I looking for a feature which does not yet exist?  NOTE: I did not expect the vertex groups to have assignments in the target objects, but it would have been handy not to have had to retype 25 names.


How is load average related to CPU utilization?

I am facing a load average of > 3 since past 2 days. The CPU utilization is never above 40 % in all cases. Here are some screenshots of Server Density monitoring tool that I use.    The process snapshot at the highest peak, @ 0:00 is as follows:   And the process snapshot at the peak created at 12:00 is:   My question is, even though CPU utilization is not 100 %, why am I facing a high average?  PS: All snapshots are sorted by descending CPU utilization.


So I am new to the DX12 world. I am currently trying to tweek the nbody_gravity DX12 sample, but appending or calling another Compute Shader which is to add 2 buffers to produce an output in a different buffer.   I have written this code in "ComputeShader.hlsl" however when i tried to invoke it using the following, i get an error sayin "file not found" When i printed the debug error it says the following: D3D12GetDebugInterface: This method requires the D3D12 SDK Layers for Windows 10, but they are not present on the system.   I am invoking my shader after the default invocation to the nBodyGravity.hlsl is done:  ComPtr<ID3DBlob> computeShader; ComPtr<ID3DBlob> computeShader_m;  #if defined(_DEBUG)         // Enable better shader debugging with the graphics debugging tools.         UINT compileFlags = D3DCOMPILE_DEBUG | D3DCOMPILE_SKIP_OPTIMIZATION; #else         UINT compileFlags = 0; #endif           ThrowIfFailed(D3DCompileFromFile(GetAssetFullPath(L"NBodyGravityCS.hlsl").c_str(), nullptr, nullptr, "CSMain", "cs_5_0", compileFlags, 0, &computeShader, nullptr));  //extra call for my shader ComPtr<ID3DBlob> error_ptr;         ThrowIfFailed(D3DCompileFromFile(GetAssetFullPath(L"ComputeShader.hlsl").c_str(), nullptr, nullptr, "main", "cs_5_0", compileFlags, 0, &computeShader_m, &error_ptr));  if (error_ptr) {     OutputDebugStringA((char *)error_ptr->GetBufferPointer()); }   Is there somthing amiss?


Why I don’t see colors in object mode on my donut? If I take for example render mode or shading mode, I see them. Moreover if I turn new file blender on and paint cube, I see colors in object mode normally. What’s the matter?


How create Makeself self executable archive file in LINUX? What is the steps to create Makeself self executable file in any Operating System?

I want to create a self-executable archive using Makeself. I referred to  but didn't understand anything from it. What are the steps for making a Makeself self-executable archive?  If I run this executable on any operating system then it should be work and do my required task.


Suppose we have $\mu = 19.1$ and $\sigma = 1.7$.  I need to find $a \in \mathbb{R}$ such that: $P(|X-19.1|\leq a) = 0.98$ Now in the correction it is given that:  $$P(|X-19.1|\leq a) = 0.98 \iff P(\frac{-a}{1.7} \leq \frac{X - 19.1}{1.7} \leq \frac{a}{1.7})=0.98 \iff P(\frac{X-19.1}{1.7} \leq \frac{a}{1.7})=0.99$$  Can someone explain to me why is the last equality correct?


Proof of the Reverse Triangle Inequality

Here there is my proof (quite short and easy) of a rather straightforward result. The text of this question comes from a previous question of mine, where I ended up working on a wrong inequality. Here things are fixed. Still, I would like to know:  if it is sound, because absolute value always creates me some problem, and if there is a shorter (neater) way to get the result (maybe without using contradiction).    Proposition: $|d(x,y)-d(y,z)| \leq d(x,z)$. Proof: We proceed by cases.  Case 1: $d(x,y)-d(y,z) \geq 0$. Assume by contradiction that $d(x,y)-d(y,z) > d(x,z)$. Hence, $d(x,y)> d(y,z) + d(x,z)$, contradicting the triangle inequality.  Case 2: $d(x,y)-d(y,z) < 0$. Assume by contradiction that $ - d(x,y) + d(y,z) > d(x,z)$. Hence, $d(x,y) < d(y,z) - d(x,z)$. By applying the triangle inequality, we have that $d(y,x) \geq d(y,z) + d(x,z)$, which is by symmetry equivalent to  $d(x,y) \geq d(y,z) + d(x,z)$, obtaining the desired contradiction. $\square$     As always, any feedback is welcome. Thank you for your time.


Finding the class of an instance of a class for a dynamic_cast

I would like to know if it is possible to do something like the "instanceof" of Java in C++. Indeed I searched a lot but I have not found anything for finding the class of an instance of a class.  To sum up, I would like to use something like this:  bool instanceOf(Gui guiA, Gui guiB) {     Gui *castedGuiPtr = dynamic_cast<classOf(guiA)*>(guiB);     return castedGuiPtr != 0; }


Error when starting VirtualBox on Ubuntu

I am using Ubuntu, and I am trying to install virtualbox. But I get this error. If anyone knows how to solve this, please, tell me.  Error: WARNING: The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel (2.6.32-042stab092.2) or it failed to load. Please recompile the kernel module and install it by     sudo /etc/init.d/vboxdrv setup  You will not be able to start VMs until this problem is fixed.   *Edit: After ThomasW's answer this showed up:  ERROR ON LOG: Error log file: Uninstalling modules from DKMS Attempting to install using DKMS Failed to install using DKMS, attempting to install without Makefile:183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop


I set an background image but i can't actually see it all

I'm new in blender. I want to know if anyone has the same problem and can tell me how to fix it, if it's possible. (I'm using fedora as OS)


Problem with persistent routes and VPN connection in Windows 7

My home PC has a VPN connection to my office. The office network is firewalled, with a secure zone on 192.168.0.* and a DMZ on 10.0.0.*   From outside, www.mycompany.com routes to a public IP - say 1.2.3.4. Our firewall NATs that to 10.0.0.4. From within the office LAN, we use DNS records on our domain controllers to resolve www.mycompany.com straight to 10.0.0.4, because we can't route to the public interface of our own firewall.  When I connect the VPN from home, I get a 192.168.0.* IP assigned via DHCP, but because I'm not using the VPN as my default gateway, I can't route to 10.0.0.* addresses unless I manually add a route.  I've created a persistent route to pass traffic for the 10.0.0.* subnet via the default gateway on the secure firewall zone:  route add -p 10.0.0.0 mask 255.255.255.0 192.168.0.1   Here's the problem. When I reboot, the route still appears in the routing table - fine. If I then connect the VPN, the route appears, but doesn't work - I can't route to anything on the 10.0.0.0 subnet. BUT, if I remove and then re-add the route AFTER the VPN is connected, it works fine.  I have no idea why this is the case. The before/after configuration is IDENTICAL - same IP, same route table - but if I create route then connect, it fails; if I connect the VPN and then create the route, it succeeds.  Looking for any tips as to how I can either stabilize the configuration, or automatically create the route when the VPN connects?


Looks like a bug in Stack Overflow reputation update

I am using Stack Overflow from past couple of years but from few month I noticed a issue like when someone give +1 in my question I got 9 points and my score increase by +9 points. Let us suppose right-now I have 101 points and someone give +1 to my question its increase by +9 point while it should increase by +5 and when I will refresh the page it subtract 4 points. Is this bug in point calculation or only I am getting this issue. Same issue when I got point to edit question or accept answer.


The origin of spin is some what a puzzle to me, everything spin from galaxies to planets to weather to electrons.  Where has all the angular momentum come from? Why is it so natural?  I was also thinking do photons spin? we always think of the wave as a standard 2d sin wave but could this rotate in 3d? What implications would this have?   And what about spacetime how does all the spinning effect?  This has always been avoided in all lectures and classes I ever went to.


Search for all occurrences of a string in a mysql database

I'm trying to figure out how to locate all occurrences of a url in a database. I want to search all tables and all fields. But I have no idea where to start or if it's even possible.


how many 2x2 matrices are invertible in mod p

I am trying to solve this problem for homework but unable to get anything. The question is to find the number of invertible 2x2 matrices in mod p? Each entry can be from the set {0,1,2....(p-1)} where p is prime.


Because of mildew we waste breads. How can I save breads from mildew?


"The Immigration Reform and Control Act" (IRCA) for EU applicants

I'm a European Union citizen living in EU and applying for an assistant professorship position in US. The application form asks the question      For purposes of compliance with The Immigration Reform and Control Act, are you legally eligible for employment in the United States?   I know too little about U.S. immigration laws, and the text of the mentioned act looks complete gibberish to me. Could anyone say what the standard answer to this question would be and why?  Remark: this question is formally different from the one stated in a  (first, here the context is a particular legislation act with its own terminology, second, there the question contains "presently", and, third, there no answer refers to IRCA explicitly). In law matters, this difference may be important.


Make apt-get (or aptitude) run with -y but not prompt for replacement of configuration files?

When running apt-get -y install <packages ...> on Ubuntu 10.04 I would like apt-get (or aptitude if that makes it easier) to not prompt me when installing additional dependencies (behavior of -y as I understand it) and but not prompt me about overwriting configuration files, instead assume to keep the existing ones always (which is usually the default). Unfortunately --trivial-only seems to be the inverse of -y and not affect the prompt that is shown, according to the man page.  In particular packages auch as samba, nullmailer, localepurge and lighttpd have forced me to interact with the terminal, even though the whole procedure was scripted and meant to be non-interactive.


GUI Card compatibility in Linux Before Install

I have Asus R542U-A laptop and its GUI Card model is GeForce MX150 DDR5. my current OS is Windows 10 , i wanna install Ubuntu . the question is How to check my GUI card is Compatible to Ubuntu?


I am in Israel after 90 days without a visa, can I get in trouble for this?

Without judgement, please, I need help. I am in Israel at the moment and have been here for longer than 90 days, surpassing my allowed 90 day allowance. Am I going to get in trouble when I go to get my visa? I am a student and I have been here almost four months now... I am afraid to go get my visa because I'm overdue. Will they kick me out? Will I be okay? I don't know how much they enforce the 90 day rule.


After , I was wondering if the following generalization holds true:     Claim: If $\lim \limits_{x\to a}g(x)=b$, then $\lim \limits_{x\to a}f(g(x))=\lim \limits_{y\to b}f(y)$.   I've seen some people use this change of variables before when evaluating difficult limits, but I haven't seen this presented as a theorem in a textbook. Is this claim true? If not, is the claim salvageable with additional hypotheses? For example, must $f$ be continuous for the claim to hold?


Should I say "She is in the park" or "She is at the park"?

I am really confused.  Which preposition is correct?     She is in/at the park.   They are in/at the park.   I am in/at the park.   Should I use in or at in these sentences?


the question is simple - how to copy all the attributes of the curve data to another curve object by python? I need to make it look the same - same cutom bevel, same extrude, same offset... same attributes. Is there any simple python solution?


Converting SRTM to UTM makes pixels non-square

I have a SRTM originally set to EPSG 4326. I need to convert it to UTM (EPSG 31983), in order to generate viewsheds.   The original version (EPSG 4326) has square pixels (0.000833333 x 0.000833333) but, when I convert to UTM, the pixel size becomes 91.9372 x -91.8611.  This means that, upon conversion, pixels are becoming rectangular. This makes it impossible to use viewshed in the processing toolbox.   Has anyone encountered this issue? What may be causing it? Any suggestions on how to solve it?


I came across this piece of code from the  (the C++ Guideline Support Library):  #if defined(__clang__) || defined(__GNUC__) #define GSL_LIKELY(x) __builtin_expect(!!(x), 1) #define GSL_UNLIKELY(x) __builtin_expect(!!(x), 0) #else #define GSL_LIKELY(x) (!!(x)) #define GSL_UNLIKELY(x) (!!(x)) #endif   I read about the __builtin_expect ( and ), but it is still unclear to me what is the purpose of the double boolean negation operator in (!!(x)). Why is it used?  The file in question is .


When is logistic regression solved in closed form?

Take $x \in \{0,1\}^d$ and $y \in \{0,1\}$ and suppose we model the task of predicting y given x using logistic regression. When can logistic regression coefficients be written in closed form?  One example is when we use a saturated model.  That is, define $P(y|x) \propto \exp(\sum_i w_i f_i(x_i))$, where $i$ indexes sets in the power-set of $\{x_1,\ldots,x_d\}$, and $f_i$ returns 1 if all variables in the $i$'th set are 1, and 0 otherwise. Then you can express each $w_i$ in this logistic regression model as a logarithm of a rational function of statistics of the data.   Are there other interesting examples when closed form exists?


Can you overload controller methods in ASP.NET MVC?

I'm curious to see if you can overload controller methods in ASP.NET MVC.  Whenever I try, I get the error below.  The two methods accept different arguments.  Is this something that cannot be done?     The current request for action 'MyMethod' on controller type 'MyController' is ambiguous between the following action methods:


About the Galois group of the polynomial $f(x)=x^4+ax^2+b$ over $\mathbb Q$

I am trying to prove:     Let $K$ be the splitting field of $f(x)=x^4+ax^2+b$, whose roots are denoted by $\pm\alpha,\ \pm\beta$. Prove that $Gal(K/\mathbb Q)\cong V_4$ if and only if $\alpha\beta\in\mathbb Q$.   My question is: if we let $$\sigma:\alpha\mapsto-\alpha,\ \beta\mapsto\beta$$ $$\tau:\alpha\mapsto\alpha,\ \beta\mapsto-\beta$$ Then if both are well-defined automorphisms of $K$, the group $$\{1,\sigma,\tau,\sigma\tau\}$$ is isomorphic to $V_4$. However, $\sigma,\tau$ do not fix $\alpha\beta$, which means that this group must not be $Gal(K/\mathbb Q)$ (otherwise $\alpha\beta\notin\mathbb Q$, contradictory to what I am trying to prove) What is the reason?  p.s. I am aware that there questions asking about the same proposition. But they don't mention the problem that I am having here.


Minecraft Bedrock Edition addons and NBT data

How can I make my custom blocks "have" NBT data, such as damage values, or full blown custom NBT tags?  My specific case is adding a "luck" component to my custom block, which can be anywhere between -100 and 100, and depending on that value, when placed and broken in the world, would do something different, for example, if the value is positive, it would drop a diamond, when it's negative it would summon primed tnt, and if it's zero it would create a dirt hut. I think I can work those out, but I first need my block to be able to store data. Thank you for your time.


How to reload Javascript/Jquery after adding new content

I have a table inside a form, where I can add more rows. when I change a value inside a cell, it should run a ajax function. this is working fine on the first row (loaded on page load), but when I add more rows, the function will not affect on the others.  what can I do to to use $("form :input").change('input', urenForm); also on the new rows?  This is not the original script but the main part is in it to show my problem (original is too much to post)    $(document).ready(function() {   var counter = 0;    $("#addrow").on("click", function() {     var newRow = $("
");     var cols = "";      cols += '<input type="text" class="form-control" name="name' + counter + '"/>	';     cols += '<input type="text" class="form-control" name="mail' + counter + '"/>	';     cols += '<input type="text" class="form-control" name="phone' + counter + '"/>	';      cols += '<input type="button" class="ibtnDel btn btn-md btn-danger "  value="Delete">	';     newRow.append(cols);     $("table.order-list").append(newRow);     counter++;   });      $("table.order-list").on("click", ".ibtnDel", function(event) {     $(this).closest("tr").remove();     counter -= 1   });   });  (function($) {   function urenForm() {     event.preventDefault();      var target = event.target,       parent = null;      for (; target && target !== document; target = target.parentNode) {       if (target.matches('tr')) parent = target;     }      var childnodes = parent.querySelectorAll('input, select'),       data = new FormData();      for (var i = 0; i < childnodes.length; i++) {       var child = childnodes[i];       data.append(child.name, child.value);     }      $.ajax({       url: 'ajax.php',       dataType: 'json',       type: 'post',       data: data,       processData: false,       contentType: false,       success: function(data, textStatus) {         alert('Changed');       }     });   };   $("form :input").change('input', urenForm); })(jQuery);
   <form>

           Name	           Gmail	           Phone

           <input type="text" name="name" class="form-control" />	           <input type="mail" name="mail" class="form-control" />	           <input type="text" name="phone" class="form-control" />

           <input type="button" class="btn btn-lg btn-block " id="addrow" value="Add Row" />

   </form>


I was wondering how i can make my own custom google search.  Can i do something like this :  <form action="http://www.google.com/search=q?+text input" method="get"> <input type="search"> <input type="submit"> </form>


What do I need to look at to see whether I'm on Windows or Unix, etc?


How can I use pathauto to generate URLs for deeply nested vocabularies?

I am generating breadcrumbs from URL arguments as described .  I have a vocabulary that looks like this:  Arts-> Performing-> Dancing-> Ballet  I want my url to look like this: arts/performing/dancing/ballet  Using the pathauto module, I can do this for taxonomy terms:  [term:parent]/[term:name]   Which, on the Ballet page, gives me the following; not what I want:  dancing/ballet    If I use parents instead of parent,  ([term:parents]/[term:name]); this is close but not quite:  arts-performing-dancing/ballet   How can I get from arts-performing-dancing to arts/performing/dancing?


How to prove the following convergence proposition

Suppose that $\sum\limits_{n=1}^{\infty}a_n$converges.Prove that if $b_n$ monotone increasing to infinity and $\sum\limits_{n=1}^{\infty}a_nb_n$converges,then $b_n\sum\limits_{k=n}^{\infty}a_k\to0(n\to\infty)$.I made the following attempts. Let $R_n=\sum\limits_{k=n}^{\infty}a_k$,so $\lim\limits_{n\to\infty}R_n=0$.then we know that $\{\frac{1}{b_n}\}$ monotonic decreasing and $\frac{1}{b_n}\to0(n\to\infty)$.So we have $$\sum\limits_{k=n}^{\infty}\dfrac{a_k}{b_k}=\sum\limits_{k=n}^{\infty}\dfrac{1}{b_k}(R_k-R_{k+1})\implies\left|\sum\limits_{k=n}^{\infty}\dfrac{a_k}{b_k}\right|\leqslant\sum\limits_{k=n}^{\infty}\dfrac{1}{b_k}|R_k-R_{k+1}|\leqslant\dfrac{1}{b_n}\sum\limits_{k=n}^{\infty}|R_k-R_{k+1}|\leqslant\dfrac{1}{b_n}R_n.$$ So we can get it $b_n\sum\limits_{k=n}^{\infty}\dfrac{a_k}{b_k}\to0(n\to\infty)$.I'd like to know how to proceed. Thank you.


Built-in microphone stops working when headphones are plugged in

I have a Lenovo T470 laptop with a combined microphone/headphone jack. It is running Windows 7 with Realtek HD Audio 6.0.1.8142.  Whenever I plug headphones into to my laptop's audio jack, my laptop's internal microphone will stop detecting any sound. If I unplug my headphones, or if I use headphones that don't come with a microphone, the internal mic will start working again.  If I open Sound → Recording, it only lists a single sound device. This makes me think the headphones are overriding my default mic, rather than treating it as a separate device.    I have tried reconfiguring my mic as "Desktop Microphone" in Control Panel → Sound → Recording → Configure → Set up microphone, but it had no effect. Additionally, I could not find any way to disable the microphone in Realtek HD Audio Manager.  Why can't I use my laptop's internal microphone when headphones are connected?