Want to add the Skype and LinkedIn Icon on the left side of Friggeri Resume?

\documentclass[]{myfriggeri-cv} % Add 'print' as an option into the square bracket to remove colors from this template for printing \usepackage{unicode-math} \usepackage{fontawesome}  \definecolor{light-gray}{gray}{0.55} \definecolor{skype}{HTML}{12A5F4} \definecolor{html5}{HTML}{e34c26} \definecolor{php}{HTML}{6c7eb7} \definecolor{db}{HTML}{FF9900} \definecolor{linkedin}{HTML}{1683BB} %\addbibresource{bibliography.bib} % Specify the bibliography file to include publications  \begin{document} \newfontfamily{\FA}{FontAwesome} \header{First Name}{Last Name}{Name of Profession} % Your name and current job title/field  %---------------------------------------------------------------------------------------- %   SIDEBAR SECTION %----------------------------------------------------------------------------------------  \begin{aside} % In the aside, each new line forces a line break \section{personal info} \emph{D.O.B} \emph{Nationality} Pakistani \emph{Marital status} \section{{\FA \faHome}} ~ \section{\faPhone} %+0 (000) 111 1112 ~ \section{\faEnvelope} {abcd@outlook.com} %\href{http://www.smith.com}{http://www.smith.com} %\href{http://facebook.com/johnsmith}{fb://jsmith} \section{languages} \emph{proficient} English \emph{mother tongue}  Urdu \section{computer literacy} {\color{red} $\varheartsuit$} MS-Office \end{aside}  %---------------------------------------------------------------------------------------- %   Objective SECTION %---------------------------------------------------------------------------------------- \section{objective}  %---------------------------------------------------------------------------------------- %   WORK EXPERIENCE SECTION %----------------------------------------------------------------------------------------  \section{experience}  \begin{entrylist} %------------------------------------------------ \entry {2013 - Now} {Name od Employer} {City, Country} {\emph{Job Responsibility} \\ \begin{itemize} \item \item \item \end{itemize}} \end{entrylist} %------------------------------------------------ %---------------------------------------------------------------------------------------- %   EDUCATION SECTION %----------------------------------------------------------------------------------------  \section{education}  \begin{entrylist} %------------------------------------------------ \entry {2011} {Masters {\normalfont in Business Administration}} {Name of University, City} {Specialization in Supply Chain Management} %------------------------------------------------ \entry {2008} {Bachelors {\normalfont in Business Administration}} {Name of University, City} {Specialization in Management}  %------------------------------------------------ \end{entrylist}  %---------------------------------------------------------------------------------------- %   AWARDS SECTION %----------------------------------------------------------------------------------------  \section{additional skills} \section{references}  %   %----------------------------------------------------------------------------------------  %  COMMUNICATION SKILLS SECTION  %----------------------------------------------------------------------------------------   \section{communication skills}  %%---------------------------------------------------------------------------------------- %%  INTERESTS SECTION %%---------------------------------------------------------------------------------------- % \section{interests}    % %\textbf{professional:} data analysis, company profiling, risk analysis, economics, web design, web app creation, software design, marketing \textbf{personal:} piano, chess, cooking, dancing, running % %%---------------------------------------------------------------------------------------- %%  PUBLICATIONS SECTION %%----------------------------------------------------------------------------------------  %%----------------------------------------------------------------------------------------  \end{document}


Windows Server 2016 licensing in a remote desktop scenario

I want to use a Windows Server 2016 instance as a Hyper-V host. This server should provide several Windows 10 VMs to users which connect via RDP onto the machines. Is this only possible with a RDS role configured on the server? And do I need a CAL for each connecting user (or respectively device) to be correctly licensed? Thank your for your answer.


Loading the question failed for the deleted question in my feed

When I opened my feed, and clicked on some question with comment that I've made - it displayed "Loading the question failed". I've clicked retry a couple of times, but it didn't help.  Also I've tried to to close application from settings, and try again, but it still reproduces.  Here is that question - .  Seems it's already deleted, but it still shows in Android App Feed.  I suppose as the question is deleted by the author, it shouldn't be displayed in my Feed.  And also when I click to reply icon for it. once it crashed app. I've send a report in Android.  App Version: 1.0.1  Android Version: 4.4.2


I am having the same problem I reported in April 2019.  I am getting a message "Ubuntu has detected a system problem" when I boot up.  The pop-up window asks me to report the problem.  I have clicked the button to report the problem, but nothing has happened for over a week.    I don't even know If I really have a problem.  Can someone on your end help resolve this issue ?


automatically reboot windows 7 if it cannot ping an ip address

I found the above link which helped with my question but the above solution does not work in my situation.  is there a way to restart a pc if i am not able to ping an ip address and i recieve a message "destination host unreachable?"   when i run the batch file  ping 192.168.1.1 IF ERRORLEVEL 1 SHUTDOWN -R -T 00   everything works correctly if there is no internet activity. but when i disconnect my network and run the batch file i receive a message of "reply from x.x.x.x: desnation host unreachable. and the batch file does not work.  is there a way to make the batchfile command work with i recieve a message of "destination host unreachable"?


If $f$ is continuous and $f(\frac{x+y}{2})\leq \frac{f(x)+f(y)}2$ for all $x , y \in (a,b)$, prove that $f$ is convex.

I know a proof which starts with proving the convexity for "dyadic rational" numbers. I would like to know if someone has some other ideas.


consider the group $G=\mathbb Q/\mathbb Z$. For $n>0$, is there a cyclic subgroup of order n

consider the group $G=\mathbb Q/\mathbb Z$. Let $n$ be a positive integer. Then is there a cyclic subgroup of order $n$?   not necessarily.   yes, a unique one.  yes, but not necessarily a unique one.  never


Given two non-zero integers, print "YES" if exactly one of them is positive and print "NO" otherwise (Python)

First time asking a question on stackoverflow. I am stuck trying to solve this. This is my code:   a = int(input())  b = int(input())   Given two non-zero integers, print "YES" if exactly one of them is positive and print "NO" otherwise.  if (a > 0) or (b > 0):     print('YES')  else:     print('NO')


$f(x,y) := \begin{cases} \frac{xy}{x^2+y^2}, &\mbox{if } (x,y) \neq (0,0)\\ 0, & \mbox{if } (x,y)=(0,0) \end{cases}$ not differentiable in $(0,0)^T$

$f(x,y) := \begin{cases} \frac{xy}{x^2+y^2}, &\mbox{if } (x,y) \neq (0,0)\\  0, & \mbox{if } (x,y)=(0,0) \end{cases}$  I need to show that all partial derivatives in $(0,0)^T$ exist which I already did, but how can I show that $f$ is not differentiable in $(0,0)^T$?


Possible Duplicate:          How do I make a bootable USB with Windows 8? I would like to install it on my device with a broken DVD device. Has anyone faced this situation?


How can the momentum-position Uncertainty Principle not violate conservation of energy?

As far as I understand, the primary reason why an electron doesn't fall into a nucleus is that, when it gets close, it has a sufficiently high probability of having a lot of momentum to get back to its original position. This high probability, in my understanding, arises because the electron is confined to only a small amount of space around the nucleus, and hence, by Heisenberg's Uncertainty Principle,the uncertainty in its momentum is high, which in turn increases the probability of the momentum being large.  In such cases, where the electron "bounces off" or "phases through" the nucleus, the momentum would always have a non-zero magnitude, and hence the kinetic energy would always be non-zero. This way, energy would be gained with each new "bounce". Additionally, the electrons would be constantly accelerating, radiating away light of all frequencies.  Is my premise incorrect, or is it the implication? And in what way is it incorrect?


I was given the following hint and I can solve the problem by using the following equation. But I'm curious about how one can get the equation. Can someone give me some wikipedia links about it or hints to manipulate the equation?$$\frac{1}{1+x^4}=\frac{x-\sqrt{2}}{2\sqrt{2}(-x^2+\sqrt{2}x-1)}+\frac{x+\sqrt{2}}{2\sqrt{2}(x^2+\sqrt{2}x+1)}$$  BTW, are there any easier method to solve this integral? As seen on the answer, it seems not very possible. ;)


Assuming a miraculous arrangement of a string of black holes for slingshot purpose, and a solid ball slinging by these black holes one after the other, gaining speed with each slingshot, is it possible in theory, that the ball reaches/exceeds the speed of light at some point? If not, then assuming the string of black holes extends for ever, at what point will the ball stop accelerating and why? I got couple of answers that basically limit the speed to c. If that is the case, then it is obvious that the acceleration has to be less and less with each sling. What is the reason for that reduction in acceleration? Is it because ball itself will turn into a black hole and it will start imparting as much energy to other black holes as it gains from them? Or because, there is some other relativistic mechanism involved here? Like, it will start emitting GWs to protect c. The question was closed sighting another question. That is not the right question for this purpose. Because the other question is about light. Light can gain energy without gaining speed, just by gaining frequency. So, it does not need to gain speed.


If $F$ is a field, then $F[x]$ is a principal ideal domain proof question

If $F$ is a field, then $F[x]$ is a principal ideal domain   By a previous theorem, we know that $F[x]$ is an integral domain. Now, let $I$ be an ideal in $F[x]$. If $I = \{0\}$, then $I = \langle 0 \rangle$. If $I \neq \{0\}$, then among all the elements of $I$, let $g(x)$ be one of minimum degree. We will show that $I = \langle g(x) \rangle$. Since $g(x) \in I$, we have $\langle g(x) \rangle \subseteq I$. Now let $f(x) \in I$. Then, by the division algorithm, we may write $f(x) = g(x)q(x) + r(x)$, where $r(x) =0$ or deg $r(x) \lt$ deg $g(x)$. Since $r(x) = f(x) - g(x)q(x) \in I$, the minimality of deg $g(x)$ implies that the latter condition cannot hold. So, $r(x) = 0$ and, therefore, $f(x) \in \langle g(x) \rangle$. This shows that $ I \subseteq g(x)$.  My question is: What is a polynomial of minimum degree in this context?  And how does this minimality imply that deg $r(x) \lt$ deg $g(x)$ cannot hold?


Cardinality of the set of finite sets in the power set of natural numbers

It is known that $|2^\Bbb{N}|=|\Bbb{R}|$ and that $2^\Bbb{N}$ contains all the subsets of $\Bbb{N}$, just an idea of a question I had and that I would like suggestions on how to tackle.   My question is this, Let $\Bbb{X}$ be the set of all finite subsets of $\Bbb{N}$, that is if $a\in\Bbb{X}$ then we have that $|a|<\infty$ and $a\subset\Bbb{N}$, now what is the cardinality of $\Bbb{X}$? I feel it should probably be same as $\Bbb{N}$ but not sure how to tackle.


How to download iCloud library (Backup folder, e.g WhatsApp) to Desktop (Mac)

How can I download folders from ~/Library/Mobile Documents/ ?  I see that I have 10 gigabyte of files saved in the cloud as WhatsApp backup. I want to download that to my desktop. I know it is located in e.g. /Library/Mobile Documents/42T9237FN3~net~whatsapp~WhatsApp/Accounts/<98798799897>/backup  But I can only see meta files of type .icloud there on desktop. I need to fetch the whole folder and all backup files to my desktop for further investigation. Any idea?


Laguerre polynomials recurrence relation

Laguerre polynomials has the recurrence relation $$(n+1) L_{n+1} (x)=(2n+1-x) L_n (x)-nL_{n-1} (x)$$  In proving this, I differentiate the generating function of laguerre polynomials $$g(x,t)=\frac{e^{-\frac{xt}{1-t}}}{(1-t)}=\sum_{n=0}^\infty L_n (x)t^n $$  The process goes like this: \begin{align} \frac{\partial g}{\partial t} &=\frac{(1-t) D_t \left(e^{-\frac{xt}{1-t}}\right)-e^{-\frac{xt}{1-t}} D_t \left(1-t\right) }{(1-t)^2}\\ &=e^{-\frac{xt}{1-t}} \frac{1-t-x}{(1-t)^3} \end{align} $$(1-t)^2  \frac{\partial g}{\partial t}=(1-t-x)g  \tag 1$$  solving the right-hand side of eq. (1), we have: \begin{align} (1-t-x)g &=(1-t-x) \sum_{n=0}^\infty L_n (x)t^n\\ &=L_0 (x)-xL_0 (x)+\sum_{n=1}^\infty(L_n (x)-L_{n-1} (x)-xL_n (x) )  t^n \end{align}  also, Solving the left-hand side of eq. (1), we have: $$ \begin{align} (1-t)^2 \sum_{n=0}^\infty nL_n (x) t^{n-1}&=(1-2t+t^2)\sum_{n=0}^\infty nL_n (x) t^{n-1}\\ &=\sum_{n=0}^\infty nL_n (x)(t^{n-1}-2t^n+t^{n+1})\\ &=L_1 (x)+\sum_{n=1}^\infty t^n [(n+1) L_{n+1}(x)-2nL_n (x)+(n-1)L_{n-1} (x) ].  \end{align} $$         My question is: How did the derivative of the generating function with respect to $t$ in the left hand side equal to $\sum_{n=0}^\infty nL_n (x) t^{n-1}$ that is, $$ \frac{\partial g}{\partial t}=\sum_{n=0}^\infty nL_n (x) t^{n-1} $$ Thanks! :)


How can I create the 'recipe' or R/ or Rx symbol?

In medicine, the sign 'R/' or 'Rx' is often used to denote prescription or treatment.  I use it a lot when taking notes in class and I'd like to use it in my LaTeX documents, too. The problem is that it's hard to find out how to write this in LaTeX, because searches like 'latex medicine' or 'latex prescription' will be overflooded by pages about latex allergies.  How can I write this sign in LaTeX?


How do you add a description to you enum values in C# to use with a dropdown list in ASP.NET MVC?

If I would like to use my enums for dropdown lists in my ASP.NET MVC view so that I can have either the enum value or enum name as the select list item value and a more descriptive text as the select list item text how would I do that?


What is the original last name of a man who adopts his legal spouse's last name?

If a male marries (same sex or opposite sex doesn't matter for this question) and takes the last name of his spouse, is his previous last name still known as his "maiden" name?


I'd like to know how to center de text in the first column for this table:  \begin{figure} \newcolumntype{a}{>{\columncolor{gray!30}} c} \centering \begin{tabular}[!htb]{|a|c|c|c|  } \hline \rowcolor{gray!50}  F/B & 0 [T] & 1 [T] & 4 [T] \\ \toprule 0.03$\left[{\frac{kV}{cm}}\right]$ &\includegraphics[width=38mm]{Graficos/Tablas/Rt_10_F_3000_B_0.pdf}&\includegraphics[width=38mm]{Graficos/Tablas/Rt_10_F_3000_B_2.pdf} & \includegraphics[width=38mm]{Graficos/Tablas/Rt_10_F_3000_B_4.pdf}\\ \hline \addlinespace[1pt] ... \end{tabular} \end{figure}   The result is this:


Where does matter go after reaching singularity in uncharged black holes?

I am a layman in physics and just read about black holes on the internet. I read that matter encounters geodesic incompleteness in the singularity in an uncharged black hole.  I heard an analogy of geodesic incompleteness as a straight line on a paper reach a hole on the paper, so it cannot continue. But in this analogy, isn't the straight line possible to continue into 3D (continue down the paper)? So, if matter reaches the singularity, is it possible too (to reach another dimension)?   I also heard that the matter is annihilated when reaching the singularity, does it mean it disappear from this world, and violates conservation of energy?


What's the source of "shipped" in a romantic sense?

While Urban Directory is by no means a reliable source, I see the word  used in the sense they describe:      the strong desire for 2 or more fictional characters to be in a romantic relationship.   For example,       i always shipped tom hiddleston and emma watson    Or check       Everyone says they ship Judy and Nick because of their amazing chemistry.   This is obviously slang and new slang at that but where does it come from?


Apex Test Class for very simple apex trigger

I have just created my first very simple apex trigger and it works. However it fails to deploy because it covers 0% code and I have discovered that i need a test class.  The trigger should insert the account of the respective contact. I need it to update a lot of older records. I tried also with process builder, but that fails in data loader so apex was my only choice. I have created a formula field with the account ID to make it work.  Any idea how my test class should look like? My code is:  trigger insAccAftale  on Aftaler__c (before insert, before update){  for (Aftaler__c a: Trigger.new) {     if(a.Account__c == null){         a.Account__c = a.AccountID__c;             } } }   Any help would be very much appreciated.  Thanks


I am trying to append an element to a div panel with out it duplicating by 2. It works fine if I append to the body, but If I append to a div it adds 2 more.  $("#click").click(function () {     $("#panel1").append(txt_box='

');     $("#button_pro").append(txt_box);     id++;  });   var id=1,txt_box;     $('#button_pro').on('click','.add',function(){         $(this).remove();         txt_box='

';         $("#button_pro").append(txt_box);         id++;     });      $('#button_pro').on('click','.remove',function(){         var parent=$(this).parent().prev().attr("id");         var parent_im=$(this).parent().attr("id");         $("#"+parent_im).slideUp('medium',function(){             $("#"+parent_im).remove();          });     });   }); </script>


When is it appropriate to split functionality into separate apps?

I'm a designer and my company has a single app that serves two different types of user.   One group is the general public, who uses the app to navigate big events (e.g. annual user group meeting sessions, exhibitors, connect with other attendees).  The second group is staff. They primarily access the profiles created by general users. They can add details, e.g. notes about conversations with them.  We have been asked to provide more 'staff' functionality. The app is getting quite large. I remember hearing that an app shouldn't be too "deep" (I think at an NNG course probably 2 yrs ago)... I think we can avoid a drill-down nightmare, but am worried about how large the footprint is getting.  Is there a rule of thumb for when to create a separate app, vs. wedging a lot of functionality into one? And/or can someone point me to a resource?


I am attaching a motor to an ATmega32 chip. I want to build an H-bridge but before doing that, I want to control the motor using the chip. I bought few NPN Transistors from RadioShack. I have 5V running though the breadboard. I attached Vcc to the Collector, Base to the Pin, and Emitter to the motor. And other wire of motor is hooked up to Ground. Unfortunately, the power coming out of the transistor is too low, the motor is barely moving (As opposed to when I hook up my motor straight to 5V). What is wrong? Do I need a different transistor or is my setup wrong? If it is the transistor, can you please recommend the right one, I am not too good at those.


for Loop stop with when previewing render progress

I have been attempting to create a simple add-on to assist non-3D colleagues.  Part of the plugin uses markers as filename during the render sequence.  Below is the code that I use to render and save the image.  bpy.ops.render.render('INVOKE_DEFAULT', write_still=True)   But 'INVOKE_DEFAULT' stops the for loop. If I remove the code I don't get to see the render progress.  Is there a solution to view the render progress and save the images?  Here is the section of the code I use render and save the images with the marker names.  def execute(self, context):     # get the scene     scn = bpy.context.scene      # get the output path     output_path = scn.render.filepath      # iterate through markers and render     for k, m in scn.timeline_markers.items():           frame = m.frame         marker_name = m.name         scn.frame_set(frame)         scn.render.filepath = os.path.join(output_path, marker_name + "." + scn.render.image_settings.file_format)         bpy.ops.render.render(write_still=True)      #reset the output path     scn.render.filepath = output_path      return {'FINISHED'}


Every individual has two parents, four grand-parents and so on. This would yield an astronomical number of ancestors even after a small number of generations, e.g. 235 ∼ 34 billions. The solution to this paradox is called  which takes into account that some of the ancestors in the binary  are identical, i.e. one and the same subject. This leads to a decrease of the number of ancestors of a given generation.     Are there any empirical statistics about the average number of ancestors of   generation -1, -2, -3, etc. in a given population.   The average number of parents is exactly 2, the average number of grand-parents is slightly less than 4, and so on.  Which mathematical model might yield sensible numbers? Does anyone know a reference?


I have Elementary OS and windows 8.1 installed but want to remove Elementary OS and install Ubuntu. How can I do that?

I have Elementary OS installed along with windows 8.1. I want to uninstall Elementary OS and install Ubuntu. How can I do that? I searched Google for any relevant article or link but couldn't help myself. Please guide me through the whole procedure.


I saw a ghost figure appear in fallout shelter?

I was just playing fallout shelter, taking care of my vault. When i was switching one of dwellers from the fitness room to the lounge. After the dweller entered the lounge a strange melody started playing, and when it finished a man in a long coat appeared in the corner. After like 5 sec he disapeared again. I managed to take a screenshot of him. But after that i looked it up on the internet but i found nothing. But who is this and what does he proclaim/mean???


To evaluate $\int_{0}^\pi \frac {\sin^2 x}{a^2-2ab \cos x + b^2}\mathrm dx$?

How do we evaluate $\displaystyle\int_{0}^\pi \dfrac {\sin^2 x}{a^2-2ab \cos x + b^2}\mathrm dx$ ? I tried substitution and some other methods , but its not working ; please help .


MySQL refuses to install (configure?) 16.04

I tried to install pterodactyl.io. There were a few issues, so I wanted to revert back to my previous mysql setup.   I uninstalled everything, including mysql but now I cannot seem to re-install mysql.   Setting up mysql-server-5.7 (5.7.17-0ubuntu0.16.04.1)      Renaming  removed key_buffer and myisam-recover options (if present)   Job for  mysql.service failed because the control process exited with error  code. See "systemctl status mysql.service" and "journalctl -xe" for  details.      invoke-rc.d: initscript mysql, action "start" failed. ●  mysql.service - MySQL Community Server    Loaded: loaded  (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)    Active: activating (auto-restart) (Result: exit-code) since Mon  2017-03-13 14:46:15 CET; 5ms ago   Process: 16341  ExecStartPost=/usr/share/mysql/mysql-systemd-start post (code=exited,  status=0/SUCCESS)   Process: 16340 ExecStart=/usr/sbin/mysqld  (code=exited, status=1/FAILURE)   Process: 16336  ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited,  status=0/SUCCESS)  Main PID: 16340 (code=exited, status=1/FAILURE)   Mar 13 14:46:15 ns3023991.ip-149-202-64.eu systemd[1]: Failed to start  MySQL ... Mar 13 14:46:15 ns3023991.ip-149-202-64.eu systemd[1]:  mysql.service: Unit en... Mar 13 14:46:15 ns3023991.ip-149-202-64.eu  systemd[1]: mysql.service: Failed ... Hint: Some lines were  ellipsized, use -l to show in full. dpkg: error processing package  mysql-server-5.7 (--configure):  subprocess installed  post-installation script returned error exit status 1 No apport report  written because the error message indicates it's a follow-up error  from a previous failure.  dpkg: dependency problems prevent configuration of mysql-server:  mysql-server depends on  mysql-server-5.7; however:   Package mysql-server-5.7 is not  configured yet.   dpkg: error processing package mysql-server (--configure):  dependency  problems - leaving unconfigured Errors were encountered while   processing:  mysql-server-5.7  mysql-server E: Sub-process  /usr/bin/dpkg returned an error code (1)


I have a mac that is running a dual boot with OSX and Ubuntu. I am using rEFIT. I just updated my OSX to the new OSX Mavericks, but when i restarted my computer and tried to enter Ubuntu from rEFIT I just got an error message saying error: unknown filesystem.  How can I solve this? Where is the problem, is it GRUB or rEFIT?


I am writing a small paper for my school using LaTeX.  In LaTex, the default figure numbering is done per-chapter ( 1.1, 1.2, 1.3, 2.1, 2.2, etc)  However, my school's guidelines specify that figure numbering should be done progressively. (1, 2, 3, 4, 5, etc)  I'm sure that there is a simple way to do this in LaTeX, but I have not been able to find any documentation about this yet.


this question is simple, I was looking for a good derivation to  $$\int \vec g.d\vec A=-4\pi GM $$ but was unable to find a good enough one online. Hence may I know its derivation?


When I play games that require high graphics I get white flickering

Alright my computer when i play games will flicker white across the screen and some games will even crash immediately after getting in the game, I only have the problem with games that require high graphics, I notice the white flicker in games like Minecraft but its barely noticeable so its not a problem, the white flickering started randomly while I was playing.  I've switched out every part of my pc except for the motherboard and Processor. I've redownloaded windows 3 times with different CD's, I've downloaded all the drivers and tried old and new ones with many parts that I could download drivers on.  My computer specs; Asus M4a88t-m motherboard Antec BP550 Plus 550W G.SKILL Ripjaws Series 8GB (2 x 4GB) 240-Pin DDR3 SDRAM DDR3 1600 (PC3 12800) RAM Nividia 550ti 1gb 192bit video card Anthon 2 3.2ghz x3 CPU am3


I read about the Diffie-Hellman Algorithm in cryptography in which we choose a natural number $g\in\{0,\ldots p-1\}$ for a prime number $p$. Then two other natural numbers $a$ and $b$ are chosen. In the first step the numbers $$A=g^a\bmod p\\ B=g^b\bmod p$$ are computed. Notice that this is not a congruence, but instead the modulus of the division. (I will denote congruences with the usual '$\equiv'$)  Then  $$ K_{1}:=B^{a}\bmod p\stackrel{(*)}{=}(g^{b}\bmod p)^{a} \bmod p=(g^{b})^{a}\bmod p=g^{ba}\bmod p$$ and $${\displaystyle K_{2}:=A^{b}\bmod p=(g^{a}\bmod p)^{b}\bmod p=(g^{a})^{b}\bmod p=g^{ab}\bmod p}$$ and therefore $K_1=K_2$. We will not discuss the cryptographical meaning of this, just take it as equations as they stand. In $(*)$ it is used that for a prime $p$ we have elementary multiplication e.g. ${\displaystyle \left((3{\bmod {5}})\cdot (3{\bmod {5}})\right){\bmod {5}}=9{\bmod {5}}}$  As I know this does not hold for non prime integers.  Now here is the thing that confused me: When I use congruence notation we have  $$A\equiv g^a\ \pmod p\\B\equiv g^b\pmod p$$  It follows by elemtary properties of the congruence relation that $$A^b\equiv g^{ab}\pmod p$$  and likewise for $B^a$. We then get $K_1\equiv K_2$. This is not equivalent to the statement before where we got equality, but it does not rely on that the modulus has to be prime.  Now in cryptographical terms I don't think this would be of concern since I can choose the smallest modulus or make it unique in a similar way.   Is what I wrote mathematically correct? Is "the price to pay for equality" that we have to consider a prime modulus? Why does the Diffie-Hellman algorithm rely on choosing a prime number as modulus?


Swing - Get to the next "page" when pressing a button

So im writing a GUI for a simple boardgame. I want to have a menu with several buttons, two of them are for example "Start game" or "Options" etc... If i click "Start game" i want to get to the next page/scene. Whats the best way of doing so? I want everything to happen in one JFrame.   I thought about removing all components with getContentPane().remove(); and then adding the new components i want to have. But i would also like to be able to get back to the menu again when pressing the "back" button for example. And removing and adding everything again all the time seems a bit of too much work for that simple task.  Is it possible to get somehow redirected to a new "scene" when pressing a button or something like that? I´m sure there has to be a better way than the one i listed above.


We tend to identify systems more often by using the step response. Why? Especially when the impulse response is directly related to the transfer function?


Volume of spherical shell with $dr$ thickness

Let's consider two spheres in the $(x,y,z)$ 3D-space, both centered in the origin: the inner with radius $r$ and the outer with radius $r + dr$.   To compute the volume of the spherical shell between their two surfaces, one should simply proceed as follows:  $$dV = \frac{4}{3} \pi (r + dr)^3 - \frac{4}{3} \pi r^3 = \frac{4}{3} \pi (r^3 + 3 r^2 dr + 3 r dr^2 + dr^3 - r^3)$$  $$dV = \frac{4}{3} \pi (3 r^2 dr + 3 r dr^2 + dr^3)$$  but usually the last two terms between the brackets are neglected. I know $dr$ is infinitesimal, but can infinitesimals (raised to $n$-th power, $n>1$) be neglected and still obtain an exact result? How can this be justified?


Here are the facts:   Made a clean install of Drupal 6.20 Installed and enabled  module   From this point on I can't access any admin/* page however I can access to both node/* and user/*...  PHP log:  No entries   Apache error log:  No entries   Apache access log:   127.0.0.1 - - [10/Mar/2011:16:22:16 +0000] "GET /drupal_testes/ HTTP/1.0" 200 5771 127.0.0.1 - - [10/Mar/2011:16:22:14 +0000] "GET /drupal_testes/admin HTTP/1.1" 200 -   DB table watchdog:  Nothing serious...    And that's all, for a single access to /drupal_testes/admin... Disabling admin_menu (at the system table) does work. Also, as a side note, when I go to admin/build/modules and try to enable Admin Menu again the page will take forever to load and end in a WSOD. After that if I go to drupal_testes/node the admin_menu is active and working, except for the admin/* pages.     I'm aware of  but none of the reasons seems to apply this case.. Any idea why can this be happening?      Edit #4     Exactly the same behaviour when installing      Edit #5   Installing CCK, which in theory is much heavier than Token or Admin Menu, presents no problems. Flushing the cache_* tables changes nothing. Increasing php.ini memory_limit didn't make any difference...     Although the problem is solved by disabling the offending modules, the goal is to have them active and working properly...


try{         String[] mobileSuit;         File packageFile = openDialogFile("Select", "Choose folder that contain overall mobile suit folder", JFileChooser.DIRECTORIES_ONLY);         mobileSuit = packageFile.list();         DefaultListModel<String> listModel = new DefaultListModel<>();         for(String el : mobileSuit){             listModel.addElement(el);         }         this.packagePath = packageFile.getPath();         JList_mobileSuit.setModel(listModel);         JList_mobileSuit.setSelectedIndex(0);     }catch(java.lang.NullPointerException e){      }   When i uncomment " JList mobileSuit.setModel(listModel) " line,netbeans's output that report "TestUI.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. " .I'm still confused as to what I am doing wrong.Please help me


Are there by chance any synonyms for "synonym"?

I was discussing with some friends about synonyms when we found, that ironically nobody of us knew any synonyms to the word "synonym" itself. Are there any?


How to properly format the derivative of a vector?

When writing the derivative of a vector-valued function, I naively wrote:  \vec{r}'(t)   But when typeset, the prime collides slightly with the vector arrow.  What are the best practices here?


Why does the light travel slower in denser medium?

says that "in general, the refractive index of a glass increases with its density." And the refraction index of water vapor is less than ice, and even less than liquid water. Is there any simple explanation to that?


Why isn't unboxing applied in this java code?

public class P {   String m(int i) {     return "P.m(int)";   }    String m(Object o) {     return "P.m(Object)";   } }  public class Test {   public static void main(String[] args) {     P p = new P();     System.out.println(p.m(Integer.valueOf(42)));   } }   I can't understand why this program prints "P.m(Object)" instead of "P.m(int)".


Is there a keyboard shortcut to open and close these areas?

I accidentally closed the panel that has a red circle (I dont know the name of it lol). I had to close everything and load the project again and untick the 'load UI' to restore that panel again. Is there a shortcut to open/close it similar to properties and toolbar panel?      I tried the answers from the duplicate but I'm talking about specifically the panel on the right side with the red circle on it. I'm just wondering if it has a shortcut button like the toolbar T and properties N panel.


I know that when files are deleted they aren't really completely erased. The drive just says hey this space is free and you can overwrite it. With programs like Boot and Nuke and Eraser .etc. you can write over those sections with random bytes.  How does this process differ with SSDs? Does trimming the drive with disk optimizer remove the files completely?


Can you explain the following lines in the netstat output?  Active UNIX domain sockets (w/o servers) Proto RefCnt Flags       Type       State         I-Node   Path  unix  2      [ ]         STREAM     CONNECTED     37133819 /tmp/.lxterminal-socket:0-xralf unix  2      [ ]         STREAM     CONNECTED     37109191 /tmp/.lxterminal-socket:0-xralf


I wonder if it is possible to search in just my favorited questions?  If not, can it be considered as a feature request?


With Ubuntu 16.04 laptop doesn't suspend when lid is closed

I have a Dell 7737 laptop, and with Ubuntu 16.04 it no longer suspends when the laptop lid is closed. With 14.04 closing the lid put the laptop to suspend as expected. However, I reloaded the system with Ubuntu 16.04 and now closing the laptop does nothing. The laptop continues to run as if nothing happened.  When I manually select "Suspend" from the menu it works as expected. (Though it does prompt me to double login on resume. No, not encryption login followed by OS login. This is a double OS login.)  NOTE: Altering the System Settings|Power doesn't seem to affect anything.  Any ideas on what changed from 14.04 to 16.04 in this area?


Statistics in properties different from statistics in attribute table (Arc)

I have generic signed integer raster downloaded from the ORNL DAAC.     It is a single band raster. I looked at the statistics in the properties of the raster i.e min, max, mean and std dev. I then calculated the statistics of the value column in the attribute table (by right clicking on the value header and choosing statistics). Why do both differ?  I have tried this with other rasters as well and do not know the reason.


Should danger approach either its nest or the crocodile nest, the bird would emit warning cries.   A. What is the grammatical name for this expression? B. What is its function?


What is the definitive way to determine which user created a tag on a SE site, along with exact date and time of creation?


How to disappear text or figures by printing?

As you know, the option ocgcolorlinks of the hyperref package disables colors of all links presented in a PDF file by printing it from Adobe Reader (and by compiling with e.g. pdflatex); as a result, they are printed in a default color.  My questions are:   Is it possible to disable not the color, but entire text (of the link), i.e. that it would be completely disappeared on the printed paper? Is it possible to do the same with an arbitrary text (i.e. not with the text of the link) or with an arbitrary figure?


how to get blender cars,furnitures,trees etc free?

how to get blender cars,furnitures,trees etc free ? if you know any sites or links , then please answer me , am already try blender market , but i think thats must need money then am post this question


What's this IPA symbol under the t: [t̬]?

This is the IPA for "better": /ˈbet̬.ɚ/ What's the little arrow mark under the "t"? Is it emphasis? Or something else?


how do I reset Windows 10 to "factory settings"

I have a workstation provided by my (about to become former) employer. Windows 10 was purchased and installed by myself on this machine. I know I can remove the Windows license with the slmgr command but is it possible to reset the OS install to "factory" somehow at the same time? As in, a blank Windows 10 install with no users and no app data just waiting for someone to log in and activate it? My plan right now is to boot into Ubuntu and just wipe the partition, but I would rather leave the machine installed and all setup. Thanks!


installation of linux in older windows based laptop

Is it beneficial to install linux in the 7 years old windows based laptop.....I have been using hp g62 for so long but due to the heating issue I have to repair it and costing a lot for me every year. someone told me that it will run smooth on the linux. so please reply asap because I m going to purchase the new pc.


Is it important to have semantically correct HTML with regards to SEO?

SEO seems to be a subject surrounded by both myths and varying opinions. Nevertheless, I would like to know if you have an opinion on how important it is to have semantically correct XHTML, that is, well-formed and valid XHTML, with regards to SEO.


I am working on a design where I need to amplify a small ac signal (a few μv, 1 Mhz) with a gain of 30 to 40, while introducing as little noise as possible. The input is driven by another op amp, so a high input impedance is not a requirement.  Currently I am using an op amp configured as non inverting amplifier. Even if the high input impedance is not required, the physical separation between input and output kind of makes me feel comfortable.  However when searching online I see a lot of examples where inverting amplifier configurations are used in similar situations, which made me wonder whether it might be advantageous to switch to an inverting design.  After some research I still could not find any particular reason why I might use an inverting amplifier in this scenario. Neither do I need an amplification of less than 1, nor a summing amplifier, as mentioned in answers to similar questions (, ).  So is there any particular reason why I would use an inverting amplifier if I am just amplifying a voltage with a gain of more than 1 (maybe considering noise, stability or other issues)?  EDIT: Just to clarify, I am talking about following op amp configurations:  Non inverting amplifier (left) and inverting amplifier (right):


Getting just white light instead of actual colors by exporting emission based models

I created the following model by following an online tutorial in order to add it in a game:  Here is the shader graph that I used to create the same:  But when I tried to export in .glb format and view it in a glb viewer, I found out that it was just showing a sphere which was emitting white light, and no other colors/textures were visible.  But I want to export (into .glb) the exact figure that is visible in blender. I am new to blender, and might be making some silly mistake. I searched about this issue online, but I am unable to find the solution to it. I might be using the wrong terminology for the same.


Filtering search by views gives results with more views than given

Steps to reproduce   Search using views:..2 criterion, e.g.    Observed   Most of the results have more views - e.g. twenty-ish . Although some filtering does seem to happen.   Context  The filtering intention seems to be properly understood by the user interface, as you get "search options views<= 2" on the right-hand dide.


Evaluate expression inside bash for loop

If I do this, I get the result as expected.  for i in {125..129}; do echo $i; done 125 126 127 128 129   But when I do this? I get something weired.  for i in {$((1+(25-1)*500))..$((25*500))}; do echo $i; done  {12001..12500}   I wish to pass a variable inside the loop variables like $((1+($j-1)*500))


If $K$ is a field, prove the polynomial ring $K[x]$ has infinitely many maximal ideals.

I know $(x)$ is a maximal ideal, but I don't know how to construct more maximal ideals.


Server currently under DDOS, not sure what to do

My web server is currently under a DDOS attack I believe, the messages log is full of these kind of messages:  May 13 15:51:19  kernel: nf_conntrack: table full, dropping packet.   May 13 15:51:19  last message repeated 9 times   May 13 15:51:24  kernel: __ratelimit: 78 callbacks suppressed   May 13 15:51:24  kernel: nf_conntrack: table full, dropping packet.   May 13 15:52:06  kernel: possible SYN flooding on port 80. Sending cookies.     and a netstat has a huge amount of the following:  tcp        0      0 my.host.com:http     bb176da0.virtua.com.br:4998 SYN_RECV   tcp        0      0 my.host.com:http     187.0.43.109:2694           SYN_RECV   tcp        0      0 my.host.com:http     109.229.4.145:1722          SYN_RECV   tcp        0      0 my.host.com:http     189-84-163-244.sodobr:63267 SYN_RECV   tcp        0      0 my.host.com:http     bd66839d.virtua.com.br:3469 SYN_RECV   tcp        0      0 my.host.com:http     69.101.56.190.dsl.int:52552 SYN_RECV   tcp        0      0 my.host.com:http     pc-62-230-47-190.cm.vt:2262 SYN_RECV   tcp        0      0 my.host.com:http     189-84-163-244.sodobr:63418 SYN_RECV   tcp        0      0 my.host.com:http     pc-62-230-47-190.cm.vt:1741 SYN_RECV   tcp        0      0 my.host.com:http     zaq3d739320.zaq.ne.jp:2141  SYN_RECV   tcp        0      0 my.host.com:http     netacc-gpn-4-80-73.po:52676 SYN_RECV     tcpdump shows:  7:11:08.564510 IP 187-4-1xx-4.xxx.ipd.brasiltelecom.net.br.54821 > my.host.com.http: S 999692166:999692166(0) win 65535 <mss 1452,nop,nop,sackOK>   17:11:08.566347 IP 114-44-171-67.dynamic.hinet.net.1129 > my.host.com.http: S 605369055:605369055(0) win 65535 <mss 1440,nop,nop,sackOK>   17:11:08.570210 IP 200-101-13-130.pvoce300.ipd.brasiltelecom.net.br.5590 > my.host.com.http: S 2813379182:2813379182(0) win 16384 <mss 1460,nop,nop,sackOK>   17:11:08.571290 IP dsl-189-143-30-99-dyn.prod-infinitum.com.mx.1615 > my.host.com.http: S 281542700:281542700(0) win 65535 <mss 1452,nop,nop,sackOK>   17:11:08.583847 IP dsl-189-143-30-99-dyn.prod-infinitum.com.mx.1617 > my.host.com.http: S 499413892:499413892(0) win 65535 <mss 1452,nop,nop,sackOK>   17:11:08.588680 IP 170.51.229.112.2569 > my.host.com.http: S 2195084898:2195084898(0) win 65535 <mss 1460,nop,nop,sackOK>   17:11:08.588773 IP gw2-1.211.ru.3180 > my.host.com.http: F 2315901786:2315901786(0) ack 2620913033 win 64240   17:11:08.590656 IP 200-101-13-130.pvoce300.ipd.brasiltelecom.net.br.5614 > my.host.com.http: S 2813715032:2813715032(0) win 16384 <mss 1460,nop,nop,sackOK>   17:11:08.591212 IP 203.82.82.54.15848 > my.host.com.http: S 4070423507:4070423507(0) win 16384 <mss 1400,nop,nop,sackOK>   17:11:08.591254 IP 203.82.82.54.2545 > my.host.com.http: S 1790910784:1790910784(0) win 16384 <mss 1400,nop,nop,sackOK>   17:11:08.591289 IP 203.82.82.54.28306 > my.host.com.http: S 578615626:578615626(0) win 16384 <mss 1400,nop,nop,sackOK>   17:11:08.591591 IP gw2-1.211.ru.3191 > my.host.com.http: F 2316435991:2316435991(0) ack 2634205972 win 64240   17:11:08.591790 IP 200-101-13-130.pvoce300.ipd.brasiltelecom.net.br.5593 > my.host.com.http: S 2813659017:2813659017(0) win 16384 <mss 1460,nop,nop,sackOK>   17:11:08.593691 IP gw2-1.211.ru.3203 > my.host.com.http: F 2316834420:2316834420(0) ack 2629074987 win 64240     I'm not sure what I can do to limit/mitigate this, currently no webpages are being served, any help gratefully appreciated.


Is there a way to reliably check that systemd supports --user?

I'm trying to set up some user services using Ansible and systemd.  On Ubuntu and RHEL 7 I'm getting  # systemctl --user status Failed to get D-Bus connection: Connection refused   For Ubuntu I clarified the error, it's because of this:       run systemctl within a given service manager scope, either as the default system scope (system), the current user's scope (user), or the scope of all users (global).   For systemd to work with 'user', the executing user must have its own instance of dbus started (systemd requirement). The user dbus process is normally started during normal login, but not during the run of Ansible tasks. Otherwise you will probably get a 'Failed to connect to bus: no such file or directory' error.   Basically DBus needs to be started before systemd --user can work. I'm not sure how to do that either, but I can work around it in other ways, I think.  However, the main blocker right now is: how do I check, generically, for the availability of the functionality?  I tried systemctl show and there's no explicit "user" feature. Is the flag the "+PAM" from the Features line? I know that systemd uses PAM at least partially to implement it, I don't know if it's needed for other features.  How can I check that "my" systemd supports --user in a reliable manner? Is there a file I could check? A command? Something else? DBus voodoo?


Book: Crash landed Colony ship, when night falls something makes colonists feral

I read part of this when I was 12 or 13ish about the 1997 time frame and it was not new. I'm pretty sure it was pollen that caused the feral behavior (behavior returned to normal afterwards). Orgies were involved. If i remember correctly hard cover had a lunar eclipse on it.


How can I prove that:  $\dim(M_1\vec{\oplus}M_2\vec{\oplus}\ldots\vec{\oplus}M_n) = \dim(M_1) + \dim(M_2) + \ldots + \dim(M_m)$  Where $M_i\lt L,\forall i\in\{1,\ldots,n\}$, and $\vec{\oplus}$ is the direct sum.


C# For looping multythread parameters causes error only without breakpoint

I am trying to split the work of working over a list of integers, by multithreading. The following loop is not multithreaded, however if i run my code it calls an out of index.   //dummy values int t = 2; int[] list = new int[t] {1,2} int[] sd = new int[t+1] {1,2,3}    for (int i = 0; i < t; i++)         {             list[i] = new Thread(() => func(sd[i], sd[i+1]));             list[i].Start();         }   When i check the out of index error i see that i has gone up to 2, which shouldnt happen. When i place a breakpoint and go through step by step, my program terminates just fine.   Even when changing the i to an unused character, or when splitting the new Thread and Start into seperate forloops, the same happens.


Yesterday i try to install some package and i get error about runit . So i search on Internet and a fix was to   sudo dpkg --force runit   i did it but as i tried today   sudo apt-get update   i got this errror  E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.    But then i tried configuring runit package and here is the error i get  start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused dpkg: error processing package runit (--configure):  subprocess installed post-installation script returned error exit status 1 Processing triggers for man-db (2.7.0.2-5) ... Processing triggers for fontconfig (2.11.1-0ubuntu6) ... Errors were encountered while processing:  runit   Please help me how to fix this


I recently had a user on a particular StackExchange site direct me to a Meta answer in a case that was not specifically addressed elsewhere in the site guidelines.   It turned out that the answer linked was from the same person directing me to it.  The answer had 4 votes and was the only answer to the question relating to the issue I raised. This particular user stated that his answer represented "the consensus on Meta".    This occurred on the Christianity SE and the Meta was the Christianity Meta.  The answer that contained the comment with a link was deleted by a moderator and I haven't been able to locate the Meta question and answer since.  But it related to what sort of answers would be and would not be acceptable for questions asking about the "Biblical basis" for something.  I disagree with the singleton Meta answer and am trying to determine to what extent that particular answer is or is not binding on Christianity SE users.  But I am also keenly interested in the general case as well.   My questions:   Can Meta answers be considered binding on users? If so, what constitutes a binding vs. a non-binding answer?   For example, is only the most highly voted answer considered binding?  Would a solo answer with just one vote be considered binding? 2 votes? 4 votes?   Does it make any difference if the Meta answer is accepted?


Proving that $\forall n\in \mathbb N, 2^n |(2n)!$

I'm having some trouble proving the following statement:  $$\forall n\in \mathbb N, \ \ 2^n |(2n)!$$  The first thing that came to mind was mathematical induction but this is my first time using it with this kind of the question (with divisibility instead of an equality/inequality) and I'm not quite sure how to proceed. How can I prove this? Should I use the properties of the divisibility of two numbers and manipulate $2^n |(2n)!$ until I get $2^{n+1} |(2(n+1))!$ or should I use the fact that $\exists k \in \mathbb Z: (2n)! = k2^n $ and try to conclude that $\exists l\in \mathbb Z:\ (2(n+1)) = l 2^{n+1}!$ ?


how many ways can one partition ten students into two teams of size five?

Is that the same as the ways can one select a team of five students out of ten students which is ten choose two or I misunderstand this point


This question led to a new package:      I'm using hyperref to have footnote marks link to the footnote proper and I'd like to have some sort of "backreferences" from the footnote proper back to where they're called (à la Wikipedia). For example:  This[1] is the text[2] that serves[3] as an example[1] to the footnote[2] backrefence thing[4]. ------- [1] The first footnote. [a, d] [2] The second footnote. [b, e] [3] The third footnote. [c] [4] The fourth footnote. [f]   Where a, b, c, d, e and f are links to the first, second, third, fourth, fifth and sixth places where footnotemarks are respectively.  I hope I managed to communicate what I'd like, I'm not that good at it :P  A MWE follows.  \documentclass{book} \usepackage{hyperref} \begin{document}   This\footnote{The first footnote. [a, d]} is the text\footnote{The second footnote. [b, e]}   that serves\footnote{The third footnote. [c]} as an example\footnotemark[1] to   the footnote\footnotemark[2] backrefence thing\footnote{The fourth footnote. [f]}. \end{document}


Deriving the canonical link for a binomial distribution

I define an exponential dispersion family as any distribution whose PMF/PDF is  $$f(y \mid \boldsymbol\theta) = \exp\left\{\phi[y\theta - b(\theta)] + c(y, \phi) \right\}\text{, } y \in \Omega$$ where $\Omega$ is in the support of a random variable $Y$ in the family.  Suppose $Y_1, \dots, Y_m$ are independent and binomially distributed ($n$ trials, success probability $p_i$). I've already shown that the Binomial distribution satisfies the above, with $$\begin{align} \phi &= 1 \\ \theta_i &= \log\left(\dfrac{p_i}{1-p_i} \right) \\ b(\theta_i) &= n\log\left(\dfrac{1}{1-p_i}\right) \\ c(\phi, y_i) &= \log\binom{n}{y_i}\text{.} \end{align}$$ After some work, I showed that, as a function of $\theta_i$,  $$b(\theta_i) = n\log(e^{\theta_i} + 1)$$ (this is consistent with what I found at ) and I understand that  $$\mu_i = b^{\prime}(\theta_i) = n \cdot \dfrac{e^{\theta_i}}{e^{\theta_i}+1}\text{.}$$  I also understand that what we need to do is solve for $\theta_i$ in the above, and the canonical link function would be $g(\mu_i) = \theta_i$ according to above. But one thing bothers me: when I run the above through , I obtain $$g(\mu_i) = \theta_i = \log\left( \dfrac{\mu_i}{n-\mu_i}\right)\text{.}$$ Every source I've seen says that the $n$ above should be a $1$ for the binomial canonical link function. Did I do something wrong?


If the name on my boarding pass lists Debbie and my Drivers License lists Debra, will this be a problem?


Travelling from SA to UK and USA on dual passports

We are a family of 4 living in South Africa each with a South African and a British passport. We plan to travel to the UK on holiday and then onto the USA, then back to the UK, and then back to South Africa.  Which passports do you suggest we use entering and exiting each country and are visas necessary to have in our South African passports?  Many thanks.


Can Cycles renders be done from the command line?

It seems that Cycles is mainly built in the form of Python scripts (as far as I can tell). Is it still possible to use Cycles to render a .blend file from the command line?


Convert string to Brushes/Brush color name in C#

I have a configuration file where a developer can specify a text color by passing in a string:   <text value="Hello, World" color="Red"/>   Rather than have a gigantic switch statement look for all of the possible colors, it'd be nice to just use the properties in the class System.Drawing.Brushes instead so internally I can say something like:   Brush color = Brushes.Black;   // Default   // later on...  this.color = (Brush)Enum.Parse(typeof(Brush), prasedValue("color"));   Except that the values in Brush/Brushes aren't enums.  So Enum.Parse gives me no joy.  Suggestions?


How to capture video from webcam(in java)?

I want to develop an application in java to capture video from webcam and store it onto a particular location.Can anyone provide me the working code?  What type(usb,ip etc..) of webcam is the best in order to develop the application.  Please help me. how to proceed?


I have code to center a div on an HTML page. My problem is that margin: 0 auto only centers the div horizontal, but I want it fully centered, so also vertically.    body{   background-position: center;   background: #0a056f;   background: -moz-linear-gradient(45deg, #0a056f 0%, #054fb5 100%);   background: -webkit-linear-gradient(45deg, #0a056f 0%,#054fb5 100%);   background: linear-gradient(45deg, #0a056f 0%,#054fb5 100%);   filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0a056f', endColorstr='#054fb5', GradientType=1); }  .login_register_recover_box{   background-color: #fff;   background-position: center;   -moz-box-shadow:    0px 0px 50px 5px #091079;   -webkit-box-shadow: 0px 0px 50px 5px #091079;   box-shadow:         0px 0px 50px 5px #091079;   width: 75%;   margin: 0 auto;   border-radius: 10px; }    <link rel="stylesheet" type="text/css" href="assets/custom/reset.css">   <link rel="stylesheet" type="text/css" href="assets/custom/custom1.css">
&nbsp;fdfdss
      Thank you!


Setting Windows PowerShell environment variables

I have found out that setting the PATH environment variable affects only the old command prompt. PowerShell seems to have different environment settings. How do I change the environment variables for PowerShell (v1)?  Note:  I want to make my changes permanent, so I don't have to set it every time I run PowerShell. Does PowerShell have a profile file? Something like Bash profile on Unix?


What are the advantages/disadvantages of creating tag synonyms?

What are the advantages and disadvantages of creating tag synonyms?  For example, when I was viewing the tag information, I came across with a synonym for a tag. The difference was just making it singular form.   Example:    tag selectors synonym selector   So are there any advantages and/or disadvantages to the community for a tag synonym?


Sub-determinants of an orthogonal matrix

Let $A$ be a matrix in the special orthogonal group, $A \in \mathrm{SO}_n$.  This means that $A$ is real, $n \times n$, $A^t A = I$ and $\det(A)=1$, that is, the column vectors of $A$ make a positively-oriented orthonormal basis for $\mathbb R^n$. Decompose $A$ as a block matrix $$A = \begin{pmatrix} B & C \\ D & E\end{pmatrix}$$ where $B$ is $k \times k$ and $E$ is $(n-k)\times (n-k)$. I'm looking for a basic linear-algebra argument that $\det(B) = \det(E)$, ideally something that could be presented in a 2nd or 3rd year undergraduate course.  So I do not want people to invoke anything like tensor products or differential forms.


Opening PDF generated by Python AddIn using Report (*.rlf) file automatcally?

As a test I have:   Authored a test.mxd with one layer called Localities in a single data frame called Layers Authored a test.rlf using View | Reports > Create Report of ArcGIS 10.2.2 for Desktop Created a Python AddIn which creates the expected PDF file from the Report (*.rlf).   This is the code which all works to create the PDF report from the Localities features within the current extent:  import arcpy  import pythonaddins  class ReportForExtent(object):     def __init__(self):         self.enabled = True         self.checked = False      def onClick(self):         mxd = arcpy.mapping.MapDocument("CURRENT")         df = arcpy.mapping.ListDataFrames(mxd,"Layers")[0]         lyr = arcpy.mapping.ListLayers(mxd,"Localities",df)[0]         arcpy.mapping.ExportReport(lyr,r"C:\temp\test.rlf",r"C:\temp\test.pdf","EXTENT",extent=df.extent)         del mxd   Is there a way to have the Python AddIn not just create the PDF file but also open it in Adobe Acrobat Reader?


Pass the information of one form to another

I have create a simple user registration form in C#.net (windows application) which have DateTimePicker control, TextBox control and a ComboBox control. Now i want that all the entered information can be view from a second form say ProfilePage of the user. How can i achieve this as i am new to this technology. Thanks in advance


I'm trying to make a bootable USB from a Windows 10 iso. I have tried to use woeusb to do that, like the internet tutorials say, but even with the apt updated woeusb can't be located, nor does the version on the snap store works. So then I've mounted the iso and copied it's files into the USB. That also didn't work, even manually selecting "boot from USB" the computer would just go straight to the linux install. I think that means that didn't work, even though I have used this same usb stick earlier today to install linux. What can be done? EDIT: makeusb progress bar keeps going back once it is nearly done. Note that the rate is negative in the screenshot.


Why is my body the path of least resistance during a shock?

I must say that electricity is hard to grasp conceptually. Just when it makes sense, you think hard about it and it all becomes confusing.  When someone says electricity takes the path of least resistance, it never made much sense. Consider you have a light bulb and one of the wires connecting to it is bare and the bulb is on. If I touch the bare wire, I will get a shock and it will travel through my body to the ground. I can understand this if I cut the bare wire and connected myself in series with the bulb. There is no where for the electricity to go. But when I touch the wire, I am in parallel with the bulb. The bare wire has less resistance so shouldn't the electricity bypass my body and go straight to the ground terminal? There's less resistance to get there as opposed to going through my body which is very resistant.  What is so special about ground (the floor) that electricity goes to it. How can it possibly complete the circuit?


Upvoting the "possible duplicate" comment counts as flag as duplicate?

If someone already flagged a question as duplicate and there is already the auto-generated "possible duplicate" comment visible, like for example:      possible duplicate of How to compare Strings in Java   Is upvoting this duplicate-comment considered as a flag-as-duplicate or should I also flag the question?  For the case the upvote of the dupl-comment is not considered as a flag-as-duplicate: Maybe it should? It would be more convenient than clicking through the flagging menus. Also I think an upvote of the dupl-comment is a pretty clear expression already that the user agrees that it is a duplicate.  see also the related question here:


Do developers have to implement upvoted feature request? How long should I wait before developers implement feature request?


Does LED brightness change with voltage?

When I was young and learning about electricity, a fabulous tool for understanding voltage/current/resistance was an incandescent lightbulb (in my case it was a small 3V bulb). When you doubled the voltage by putting two batteries in series, it glowed 4x as bright, but heated up more and was more prone to burning out. When you put two lightbulbs in series, they glowed 1/4 as bright. When you put them in parallel, they glowed normally, but drained the battery twice as fast. Etc.  This day and age however incandescent bulbs are on the way out, and LEDs are replacing them for a good reason (like not burning out every few months or so). But LEDs are different and follow different rules, which I don't understand myself very well.  I was wondering - can LEDs be used in the same way? I know that for a LED to be usable in a similar way as a classical lightbulb, you need to put it in series with a resistor, otherwise it draws too much current and burns out. I think you can even buy LEDs with built-in resistors. But would they work in the same fashion? Would changes in voltage be accompanied with corresponding changes in brightness?


In classical mechanics we talk about Lagrangian, but when we talk about fields (in example- electromagnetic fields), we consider the Lagrangian density instead of "just" the Lagrangian. I didn't understand why? In addition I didn't understand the differences between the relativistic Lagrangian formalism and classical Lagrangian formalism when we are considering fields.


Sequence of tenses while describing scientific finding

Currently, I am writing a statement of purpose for the graduate program, and I want to describe my research experience. In particular, I want to write the following sentence:     I determined that the electromagnetic force is the main type of interaction between the droplets.   At the same time, I was recently corrected that the proper way would be to write     I determined that the electromagnetic force was the main type of interaction between the droplets.   as dictated by the "sequence of tenses" rule.  However, for me, it does not sound right. This phrasing creates a feeling that "the electromagnetic force was the main type of interaction between the droplets" somewhere in the distant past, and now it is not.  I read somewhere on the web that "sequence of tenses" may be violated in some occasions (for instance, while describing widely known scientific facts, e.g. "Newton discovered that the planets attract each other"). Would it be okay to violate "sequence of tenses", when describing my own scientific finding?  The other example that I am interested in is whether I should use     I understood how interesting it is to study physics.   or      I understood how interesting it was to study physics.


Alternative verb for "to rest" to suggest an uncomfortable fit?

I'm looking for an alternative to a specific meaning of the verb "to rest". After a (very) quick search, the definition which I found the best was:  Be placed or supported so as to stay in a specified position.  I'm looking for an alternative to the word that implies that the position of the object (how it is resting and where it is resting) is uncomfortable. It's not the easiest to explain, so I'll give you the piece.  The landline rests in the crook of her neck, and she speaks fast... The landline ____ in the crook of her neck, and she speaks fast...  To set the scene, this is essentially a description of the narrator's mother, who is forced to hold the phone uncomfortably as her hands are occupied. Although I found lie (as in, "The landline lies in the crook of her neck...", and this may seem more "negative", it doesn't sound right to me. EDIT 1: A word which is better is wedged:  The landline is wedged into the crook of her neck, and she speaks fast...  Alternatives and answers are still greatly appreciated. EDIT 2: I'm also looking for something that isn't too much out of touch. EDIT 3: Just to clarify, the landline is the phone itself, not the cord or anything. I didn't realise that it would cause any confusion.


Select a record with most recent date and time in Oracle

I have a question regarding a SQl query in Oracle where IO need to select rthe row with the most recent date and time where date and time are inserted into two separate columns.  Table TransactionRecords   CustomerID    TransactionDate   TransactionTime -------------------------------------------------------   0206016         17-APR-17         15:29:34   0213570         17-APR-17         15:29:32   0211384         17-APR-17         13:29:34   0487674         16-APR-17         14:29:30   0487759         15-APR-17         13:29:32   0487213         12-APR-17         13:29:32   0191022         11-APR-17         15:29:33   1141158         29-OCT-16         01:25:51   I am expecting my query to rerturn the most recent transaction which should be :     CustomerID    TransactionDate   TransactionTime   ---------------------------------------------------     0206016        17-APR-17            15:29:34   When I am running the following query :   select * from TransactionRecords tst  where tst.TransactionDate  in (select max(TransactionDate) from   TransactionRecords)   I am getting all the transactions that happened on the most recent date. Can someone please give me any suggestions?


How do I get the square root of a complex number?

If I'm given a complex number (say $9 + 4i$), how do I calculate its square root?


Is the increasing union of $\sigma$-algebras a $\sigma$-algebra?

I did a scan of Math.SE and couldn't find this, so I will post:   I am working on Bass's Analysis exercise 2.3 in page 15 (on book)   The problem states, given:  $$ A_1 \subset A_2 \subset A_3 ... $$  where each finite $A_i$ is a $\sigma$ -algebra, prove that $\bigcup_{\forall i} A_i $ is a $\sigma$-algbra or find a counter example.  Now I was able to show that: $\bigcup_{\forall i} A_i $ is a set algebra by considering that any finite collection of set $u_1 ... u_m \in \bigcup_{\forall i} A_i$ must belong to $A_{u_1} ,... A_{u_m}$ respectively and therefore there is a finite indexed $A_k$  that contains $A_{u_1} ,... A_{u_m}$ and therefore all the countable unions and intersections of $u_1 ... u_m \in \bigcup_{\forall i}$ must be contained in $A_k$ (and similarly the complements of the sets).   Now this argument dies if you consider a countably infinite sequence of sets $u_1, u_2 , u_3...$ since you can no longer talk about the "largest, finite-index m such that $A_m$ contains $u_1, u_2 ... $  "  Which is causing me start to doubt that $\bigcup_{\forall i} A_i $  is even a $\sigma$ algebra in the first place. Does anyone know how to find a counterexample? Or how to modify the proof to circumvent this obstacle.


Why doesnt bounty come back to the owner when it expires?

I had a bounty on one of my own , which I then answered. It was the only answer and it received up votes from other users. It would be nice that if you put a bounty on a question and it doesn't get answered by anyone else that the bounty gets returned to you, after all you are spending those points to attract good answers, if you don't get any then surely it should come back to you? maybe I'm just seeing it wrong.


Convert the hexa string into hex string byte array in Java

I am having a hard time trying to convert a String containing the hex string representation to its corresponding hex string byte array.  I tried this code   public static byte[] hexStringToByteArray(String s) {     int len = s.length();     byte[] data = new byte[len / 2];     for (int i = 0; i < len; i += 2) {         data[i / 2] = (byte) (((Character.digit(s.charAt(i), 16) << 4) + Character.digit(s                 .charAt(i + 1), 16)) & 0xFF);     }     return data; }   It's not the exact value what i am looking for above code conveting "FF" --> -1.  Expecting is "FF" --> byte[] { FF }.  Ex : "01FF0A2357F01A" result should be like this byte[] { 01 FF 0A 12 57 F0 1A }.


Why does Gödel's Second Incompleteness Theorem undermine Hilbert's program?

Recall that Gödel's First Incompleteness Theorem (denote GIT1) states, roughly, any axiomatic system $S$ stronger than Peano Arithmetic (PA) cannot be "covered" by finitely many axioms. GIT2 states, roughly, that furthermore such $S$ cannot prove, within itself, its own consistency (denote $\mathrm{cons}\; S$). And it is often said that GIT1, together with GIT2, invalidates Hilbert's program (HP).  It's rather obvious to me that GIT1 declares HP to be problematic, if not impossible. But what GIT2 says of HP, is less obvious. Indeed, even if $\mathrm{cons}\; S$ were a theorem within S, that is  $$\models_S \mathrm{cons}\; S$$  and suppose we do not know GIT2. Then, it is possible that $S$ is inconsistent, and a contradiction formula is a theorem in $S$, which in turn entails $\mathrm{cons}\; S$. Thus, it seems, whether $\mathrm{cons}\; S$ is a theorem or not, is not very important. If so, GIT2 does not really tell us much by saying that $\mathrm{cons}\; S$ is not a theorem in $S$.  So how was GIT2 a bad news to Hilbert's view?


I have the following data returned from  a query:  +-------------------------------------+ | **SUM**                 **Account** | +-------------------------------------+ | A & E FEE           182396          | | CM FEE              108569          | | CONTRACT VALUE      2256044         | | OVERHEAD            197397          | +-------------------------------------+      I need to select into object Properties AeFee, CmFee, ContractValue, and Overhead which would essentially make the properties the column headings so I need the data to look like:  +--------+--------+---------------+----------+ | AeFee  | CmFee  | ContractValue | Overhead | +--------+--------+---------------+----------+ | 182396 | 108569 |       2256044 |   197397 | +--------+--------+---------------+----------+         I tried using a subselect to select something like this (pseudo code)  Select(s => new {    AeFee = Sum if [Account] == "A & E FEE" }   This link show exactly what I'm trying to do with a SQL pivot. Converts rows into columns.   Any ideas?


Get read write access to windows partitions on internal hard drive

I'm using Ubuntu 16.10 from an external hard drive and want to read and write to windows partitions on internal hard drive. How can I set the required permissions?  I have tried setting permissions using properties in Nautilus file manager but that doesn't help.


Regular expression for phone number with special characters

I  need a regular expression for phone numbers. The phone numbers may contain special characters like +, ., /, -, space, (, ), [, ].  Some Examples:  (+91) 9864081806 (+91)9864081806 (+91)(98640)81806 +91.98640.81806 [+91]09864081806 +91.986.408.1806 +91-986-408-1806 Maximum numbers = 15   The special characters can exists anywhere in the code. An opening bracket should have a closing one.  I have created this pattern but it does not work:  preg_match('/^[\[\(\0-9\s.\_\-\+\/\)\]]{3,15}$/', $phone_no)


Access Google Spreadsheet revision history through API

Is there any way I could access Google Spreadsheet revision history through the API?  The reason for that is I have a lot of sheets and simply relying on build-in revision history does not suffice to point me to the sheet where changes were made. I need to check all the sheets to figure out what change was made - highly inefficient approach.  The output I would expect is:  Changes made at 01 Jan 2010 by SomeUser  Sheet name: Sheet1 Updates: [{ address: C1, oldValue: OldValue, newValue: NewValue }, { address: B2, oldValue: OldValue, newValue: NewValue },  ... ]


K-means - comparing solutions with SSwithin elbow-method: minimum "too early", or non-monotonic curve

I am running a k-means clustering process in R and I'm comparing cluster partitions of different number of clusters: k = from 1 to 17.  Using the elbow-method, I have a minimum (of within-cluster SS) at k=5, but this value looks like an "outlier" to me, it is lower than subsequent values. Is there any explanation for this nonmonotonic behaviour?  My code in R is   kmeans.wss.k <- function(test, i){   km <- kmeans(test, i, iter.max=20)   return (km$tot.withinss) }  for(i in 1:17){ print(i) print(kmeans.wss.k(test,i)) }  # the data set includes some hundred thousand rows, so I can't post it


In movies, mostly around military personnel, female officers are sometimes addressed as "Sir" (Sometimes also followed by a "Um, ma'am, sorry..."). What would be the correct usage here if not using military rank? Are both" sir" and "ma'am/madam" correct?


Show that $\sqrt{4+2\sqrt{3}}-\sqrt{3}$ is rational using the rational zeros theorem

What I've done so far:   Let $$r = \sqrt{4+2\sqrt{3}}-\sqrt{3}.$$  Thus, $$r^2 = 2\sqrt{3}-2\sqrt{3}\sqrt{4+2\sqrt{3}}+7$$  and $$r^4=52\sqrt{3}-28\sqrt{3}\sqrt{4+2\sqrt{3}}-24\sqrt{4+2\sqrt{3}}+109.$$  I did this because in a similar example in class, we related $r^2$ and $r^4$ to find a polynomial such that $mr^4+nr^2 = 0$ for some integers $m,n$. However, I cannot find such relation here. Am I doing this right or is there another approach to these type of problems.


How to add a Bloom effect to this scene?

I want the windows to have a bloom effect around them, like this:     I've looked around online, and people have said using the following node setup created the effect, but it doesn't work for me.


I reinstalled Ubuntu, and I can't see my windows 8.1 anymore, where is my Windows files?

Previously I unsuccessfully installed Ubuntu at the end of installation it told me that could install bootloader. So I loaded windows from my USB drive and decided to reinstall Ubuntu with out any options (In brackets it said that it will delete Ubuntu and install new one) I thought that would help with bootloader problem. The installation ended successfully without errors. However now Ubuntu works as my default operating system and I don't see my windows files anywhere?? Is there anyway to bring back windows or recover my files?? Were they deleted??  Please help, I have very important information on that hard drive without backup.


It's the number theory problem from Thailand Mathematical Olympiad. That require one to prove that $n!+1$ is composite for infinitely many odd $n$. It's true if $n$ is even from Wilson's theorem directly that $p \text { } \Big|\Big((p-1)!+1\Big)$ but for odd $n$ I have no idea about it. I've tried for prime $p$ of the form $4k+3$ and we'll have that $\left(\dfrac{p-1}{2}\right)!\equiv\pm 1\pmod p$ and maybe there is infinitely many cases that $\left(\dfrac{p-1}{2}\right)!\equiv -1\pmod p$, but I don't know how to prove it and I don't think this is a good way to tackle this problem. I, actually, saw someone's proof before but I didn't pay attention at much and didn't jot down the idea. All in my memory is that he used Bertrand postulate and something in the double factorial like $(n!+1)!+1$. Any help would be really appreciate and thank you in advance.


assign variable from file with string literal newline

This question may sound like a duplicate, but I think it's different than the pages that I've found. I'm trying to assign the contents of a text file to a bash variable, but I want the "\n" character to be included as a string rather than actually seeing it on a new line. For example, the contents of the file look something like this:  Here is the content of the text file There are multiple lines blah blah blah  I want the variable "text_file" below to be assigned the contents of the file so when I use it in my script it looks like so:  Here is the content of the text file\nThere are multiple lines\nblah blah blah  I'm using this variable in the following script, and I'm getting this error, which I believe is a result of the newline characters in "hello.txt" file that I'm assigning to the variable.  Error parsing parameter '--message': Invalid JSON: Invalid control character u'\n' at:  subject="Test Email Sent Via AWS" message="here is the message to the user...\n\n" text_file=`cat hello.txt` full_message="$message$text_file"  cat <<EOF > generated_message.json {     "Subject": {        "Data": "$subject",        "Charset": "UTF-8"    },    "Body": {        "Text": {            "Data": "$full_message",            "Charset": "UTF-8"        }     } } EOF aws ses send-email --profile sendmail --from blah@email.com --destination file://destination.json --message file://generated_message.json  I think I'm missing something basic, but I can't figure it out. Thanks in advance for the help.


I don't know why, it seems to me that Java's IF is different than a BASH's IF or C++'s IF. I might be wrong, at least I hope. This code below is one of the many version of IF I tried, I can not find the error at this moment.      String identification = "qwerty1";     String name = identification.substring(0,identification.length()-1); // querty     String version = identification.substring(identification.length()-1,identification.length()); // 1      Database db = new Database();     if (version != "1"){         System.out.println("\nCheck version");         System.out.println(version+"\n");     db.SelectVersion(name, version);     if (db.isSelectVersion()) {         System.out.println("\nUpdating version");         //Database.UpdateVersion(name, version);     } }     else {         db.Select(identification);         if (db.isSelect()) {             System.out.println("\nThere is something");             //Database.Update(identification, quantity1, quantity2);         } else {             System.out.println("\nThere is nothing");             //Database.Insert(identification, quantity1, quantity2);         }     }     db.Match(name, version);     if (db.isMatch()) {         System.out.println("\nQuantities match\n");     } else {         System.out.println("\nQuantities do not match\n");     }


What is the logic behind a 50% of X% 401(k) contribution match?

In the situation where an employer is contributing a match to a 401(k), apparently a common formula is to match 50% of employee contributions up to a percentage of their salary. I have also seen this phrased as "50 cents for every dollar".  If the amount is 50% match up to 6% of salary, this equates to "you put in 6% and we'll put in 3%".  Why would they choose to do this, instead of simply offering a match up to 3%?   The match is not more or less either way. It instead forces the employee to put in more money, which has no benefit to the employer. I don't see any advantage to the employer to do it this way, there is only disadvantage to the employee.  What is the logic behind offering a ratio match instead of a 1:1 match?


Let $f$ and $g$ be functions such that $f\colon A\to B$ and $g\colon B\to C$. Prove or disprove the following a) If $g\circ f$ is injective, then $g$ is injective  Here's my proof that this is true. Let $A = \{4,5\}$, $B = \{3,9\}$, $C = \{1,2\}$ $f(4) = 3$; $f(5) = 9$ $g\circ f(4) = 1$ and $g\circ f(5) = 2$ Since no 2 elements map to the same element in the range $g\circ f$ and $g$ are both injective.  b) If $f$ and $g$ are surjective, then $g\circ f$ is surjective.  Here's my proof that this is true. Let $A = \{1,2\}$, $B = \{4\}$, $C = \{5\}$, $f(1) = 4$; $f(2) = 4$ $g\circ f(1) = 5$ and $g\circ f(2) = 5$. Since no elements are left unmapped then $g\circ f$ and $f$ and $g$ are surjective Are these proofs valid? **Edit: Ok so I revised my proof for a. I will disprove it using a counterexample. Let A = {4}, B = {3,9}, C={1}. g∘f(4) = 1 and g(3) = 1 and g(9) = 1 g∘f is injective but g is not injective because 3 and 9 both map to 1. Is that a valid disproof? Now I'm just having some trouble disproving or proving b. If anyone could lend some tips. Also this is not homework. Just reviewing for an exam.


Deriving equations of motion using integration

Please refer to my school textbook pg48 (of the book, and not the pdf counter) here:   My doubt is in this context: (right side column)  $a = dv/dt = v dv/dx$  then integrating $v$ with respect to $dv$, and $a$ with respect to $dx$.  Now, when we integrate $a$, either we say it is a constant, and give $a\times(x-x_o)$ as a result of the integration, or we say it is not constant, and is a function of time, in which case, it can not be integrated like this. But the book integrates it like this, and then it is written:     The advantage of this method is that it can be used for motion with non-uniform acceleration also.   Can you please explain how it can be used with non uniform acceleration while it has been assumed while integrating that $a$ is constant? And moreover, does this line seem to apply to only this derivation, or does it apply to other two before it as well?


How can I change the desktop icons on Ubuntu 20.04?

20.04 seems to have lost the ability to change desktop icons by right clicking them and changing the icon in the Properties window. You can still see the new icon in the files, but it does not update on the desktop. Does any one know a workaround?


I have two .apk files that are supposed to be different versions of the same app. What is the best way to check if they where both signed with the same key?  I want to make sure no mistakes were done and the newer version would be treated as an update of the same app.


Are non-familiar animal companions available?

There is a spell that can summon familiars, and a beastmaster ranger gets a companion, but is it possible to get an animal companion that is not a familiar without being a ranger or multiclass ranger? Without the animal being a horse, and it being able to attack?  I'm playing either a L4 Drow (Champion) Fighter or a L1 Tiefling (Draconic Bloodline) Sorcerer.


How to write this boolean expression using only NOR gates?

I'm having some trouble understanding how I can convert a boolean expression to a NOR-gate only expression.   What I'm working with looks like \$T = A B' C + A' B C' + A B\$. How would I go into implementing it with NOR gates?


As / The way / In the way - all possible and the same meaning here, right?

A customer asked for the posters to be laminated on the front side and he also asked for the posters to be ready by today. But,  I didn't to it as he'd asked us to do. I didn't to it in the way that he'd asked us to do. I didn't to it the way that he'd asked us to do.  PS. here, ask and request are interchangeable without changing any meaning? And which one would you prefer to use between he'd and he had


Is there a tutorial on how to install ubuntu on Acer Nitro an515-53, Im very new to all this

I'm trying to install Ubuntu on Acer Nitro an515-53 but I have no clue how. I'm very new to all this, does anyone have a tutorial?


When should I use specially and when especially?


I just randomly looked at the , and there it lists two yearling badges, both awarded with about five minutes time difference on Aug 16. Actually, this user is here for 2 years and five months, and also hit his 200-rep mark long ago.  What is going on here?


Regular Expression: match and count "A" and stop after found "B" by counted times

Look this example:  function(abc, innerFunction(1, 2), innerFunction(3, 4, 5))         │                  │    │               │       ││         │                  └────┘               └───────┘│         └────────────────────────────────────────────────┘         ↑                                                ↑         Open                                         Close   I need to match entire (outter) function(). For that I need count how much ( has and stop after found the same number of ). It normally needs a hardcoded script to possibility it (a parser), but because Regular Expression (in my case, PCRE) is very flexible, maybe it could be possible in anyway.  This is my current solution that matches only outter functions:      Due to my real objective, it is almost certain that I will do it via hardcode. But I decided post it because it could be useful to another devs, and it could be used in another contexts on my app too.    Edit 1: this question is duplicated, but we can learn here the following: (?R) is a special feature of PCRE that will recurse entire Regular Expression in this point. So if we have /ab(?R)?/ it will be similar to /abababab.../ infinitely.  In case you need just recurse a specific match group, then you could use \g<n> (where n is the match group number) or \g<group> (where group is the match group name). So if we have /(ab)\g<1>+c/ it will be limitar to /abababab...c/.  The (?R) could solve my problem here. But it will only grab entire match, so I still need process that to get each of parameters, for instance.  (?<function>\w+) \(            # Matches function name     (?<parameters>             # Simple param type.         (?<data>               # Simple data type: inner function or word (keep order!).            (?R) |              # Or recursive this Regexp to match inner functions.            \w+                 # Matches a simple word.         )          (                      # Match additional parameters:             \s*,\s*            # Match comma, but skip spaces.             \g<parameters>     # Recurse additional parameters.         )*                     # Zero or more additional parameters.     )?                         # Parameters are optional \)   It will solve my problem by grouping function name and parameters as you can see here , capturing inner functions as parameter that I could work in another moment. It still can be improved, but for now, it is a acceptable solution for this case.


If every subgroup of $G$ is $G^k$ for some k, then $G$ is a cyclic group.

If every subgroup of $G$ is of the form $G^k = \{h^k: h \in G\}$ for some k, show that $G$ is a cyclic group.  This is what I have tried. Let $k$ be the least positive integer such that $<g> = G^k$ for some $g$. Then $g = g_1^k$ and $<g_1 >= G^{k_1}$ with $ k_1 = nk+ r, 0 \le r <k$. Therefore for every $a \in G, a^{k_1} = a^{nk}a^{r}$ with $a^{k_1} \in G^{k_1}$ and $a^{nk} \in G^k = <g> \subset <g_1> = G^{k_1}$ so $a^{r} \in G^{k_1}$ then $G^r \subset G^{k_1}$. Since $G^{k_1}$ is a cyclic group then so is $G^r$. By the maximum of $k$, $r =0$ so $g_1=g_2^{k_1}=g_2^{nk} \in G^k = <g>$. Consequently $g = g_1^k = g^{lk}$. If $o(g) = \infty$ then $lk =1$ and $k =1$ and we’ve done. Otherwise for all $b \in G, b^{ko(g)} =e$. And take $g’$ with maximal order. I have almost done except for the commutativity of $G$.


Determine unknown projection coordinates

I have some data in ArcGIS, but unfortunately there isn't projection coordinate, like the picture below:     This place is in America and its longitude and latitude is about -75.2° and 40.1°. Can anyone guess its "projection coordinate"?  As suggested by @JGH, the projection coordinate is "Pennsylvania State Plane South (3702)"!It matches perfectly!  Besides this shapefile above (Place 1), there is another file (Place 2, the same place), but they are not overlapped. I was wondering the projection of this shapefile.


Why do we use density scale when constructing histograms with unequal class widths?

When constructing a histogram with equal class widths, we mark the class boundaries on the horizontal axis and draw above each interval a rectangle whose height corresponds to the relative frequency of that class. However, when dealing with classes of unequal width, my book says we should calculate the height of each rectangle using the formula $$\text{rectangle height}=\frac{\text{relative frequency of the class}}{\text{class width}}$$ My question is, why do we do that? Why not just stick with the relative frequency to determine the height of each rectangle? Thanks.


Let $\alpha, \beta \in \mathbb{C}$,  such that $\alpha + \beta$, and $\alpha\beta$ are algebraic. Show that $\alpha$ and $\beta$ are algebraic.   attempt: Suppose $\alpha, \beta \in \mathbb{C}$ such that $\alpha + \beta$, and $\alpha\beta$ are algebraic.  Let $\alpha + \beta$, $\alpha\beta$ are algebraic be algebraic over $F$. And let $\alpha, \beta \in K$, where $K$ is an extension of $F$.  then $\alpha + \beta $ and $\alpha\beta$ lie in the extension $K = F(\alpha,\beta)$, which is finite over $F$.  so $[F(\alpha, \beta) : F] = [F(\alpha, \beta): F(\alpha + \beta, \alpha\beta)][F(\alpha + \beta, \alpha\beta) : F] \leq 2[F(\alpha + \beta, \alpha \beta) : F] $, since $\alpha + \beta$ and $\alpha \beta$ are roots .   So $[F(\alpha + \beta) : F]$ is finite and in the extension $F(\alpha,\beta)/F$ the elements must be algebraic over $F$, then $\alpha , \beta$ are algebraic.  Can someone please verify this? Or help me give a better approach. Thank you!


Let $f : [1,\infty) \to \mathbb R$ be uniformly continuous. Show that there exists a number $C > 0$ such that $$|f(x)|\le  Cx$$ for all $x \ge 1$.


Newly formatted (NTFS) external hard drive already has 'Used space'. What determines the used space's amount? Is it correlated to the HD's capacity?

I just bought a new external hard drive (). In a PC with Windows 7, I formatted it by Right-clicking the drive > Format (Quick Format - NTFS) before using it and, and then checked out its Properties.     I noticed that it already has 118 MiB of its disk space already used, despite being newly formatted and no files transferred to it.   Questions: Is the disk space occupied by the disk overhead, metadata, etc. correlated to the total disk space capacity of an NTFS-formatted hard drive? If yes, how is it computed? (How much disk space will be 'used' by default on a brand new, newly formatted hard drive, given its disk space capacity and if it is formatted to use NTFS?)  Screenshot of the 1 TB drive's Properties after being formatted:   Related SU question:


How can I delete a line from a file when the line contains a specific string?

I have a file which is comma separated. I have to find specific text and then delete complete line.  e.g.  123,aaa,bbb,888,8881 124,bbb,ccc,999,8881 125,ccc,ddd,888,8883   I have to delete the line containing 888.


Plotting multiple figures with matplotlib on Atom IDE

I can successfully plot using python and matplotlib on the Atom IDE. However, if I plot two or more figures, only a single figure window appears with the first plot and to see the other figures I must close the initial window in which case the next figure will generate and display. I cannot see all the figures simultaneously I have to close the figure tab one by one to see the different figures. Example code:  import matplotlib.pyplot as plt import numpy as np  t = np.arange(0.0, 2.0, 0.01) s = 1 + np.sin(2 * np.pi * t) plt.figure() plt.plot(t, s)  plt.xlabel('time (s)') plt.ylabel('voltage (mV)') plt.title('About as simple as it gets, folks') plt.grid(True) plt.show()  plt.figure() plt.plot(t, s)  plt.xlabel('time (s)') plt.ylabel('voltage (mV)') plt.title('About as simple as it gets, folks') plt.grid(True) plt.show()   Any help or suggestions would be greatly appreciated, thanks in advance


From my the information I have read on Internet, it seems like Brazil covers a good part of the alphabet when it comes to power outlet types.   What type of power outlets should I expect in hotels in Sao Paulo and Rio de Janeiro?


How do I make a bootable usb drive for ubuntu?

How do I make a bootable usb drive from the .iso file?  Using windows 7 on a lenovo x140e.


I'm using a custom class file.  My main file looks like this:  \documentclass[12pt,a4paper]{thesis} \begin{document} \frontmatter     \pagenumbering{alph}      \pagenumbering{roman}     \clearpage      \cleardoublepage     \tableofcontents     \clearpage     \listoffigures     \clearpage     \listoftables   \mainmatter        \part{test}       \input{test} \end{document}   If I put this in my test.tex it does work:  \chapter{test} \label{chapter:test} test    When it becomes more text (lets say 40x the word "test") I get the error stated in my question title.  To test it I brought my class file down to this:  \ProvidesClass{thesis} \NeedsTeXFormat{LaTeX2e}  % Based on the memoir class \DeclareOption*{\PassOptionsToClass{\CurrentOption}{memoir}} \ProcessOptions \LoadClass{memoir}   I'm totally confused what is causing my error now.  This is the complete error:  ! pdfTeX error (font expansion): auto expansion is only possible with scalable  fonts. \AtBegShi@Output ...ipout \box \AtBeginShipoutBox                                                    \fi \fi


You can tap through the X meant to close the achievements view

If I click to open achievements from a question when I click the X to close the achievements view I end up on the answers tab of the question, I assume because the X is over the tab and it's tapping through.    It appears if I hit the X it's ok, but if I tap anywhere else in the top row (where the X is) then I can switch to the question or answer tab.


How can I open multiple URLs in Sheets using one cell?

I have been frequently using concatenate to combine cells and strings to render URLs in cells. The purpose of these URLs is to open specific pages to review the information on those pages.  I am looking to create a comma separated (or other) list in one cell where I can open all of the links in separate tabs (especially if it can be in a new window).  Is there a way of using something like target="_blank to make Sheets open those links? Would it only be possible using the script editor somehow?


Why was Harry never targeted en route to Privet Drive?

Voldemort mentions several times during the books (in particular at the ‘rebirthing party’ in the graveyard at the end of Goblet of Fire) that he has spent quite a lot of his time over the years plotting ways to get at Harry.  It is of course clear that Voldemort cannot get to or harm Harry while he is at 4, Privet Drive, because he is under the protection of ‘old magic’ there. It also makes sense that getting to him while he is at Hogwarts under Dumbledore’s protection would be rather more of a risk than Voldemort is willing to run.  The dénouement of Goblet of Fire describes Voldemort’s plan as hinging upon Harry being in a specific place at a specific time (at the Triwizard Cup), so that Voldemort could get him on his own, away from the protection of Dumbledore and old magic.  But there is one time when Voldemort (and everyone else) knows, basically, that Harry will be alone (apart from the Dursleys, and who cares about them?) and unprotected, in a specific place, at a specific time: when the Hogwarts Express has taken him back to London and the Dursleys are driving him back home to Surrey.1  We know from Deathly Hallows that the charm hiding Harry while at Privet Drive extends only to the boundaries of the house/property, so while the Dursleys and Harry are driving along the M3 (or whatever way they take home), he’s quite exposed.  Why not target him there?     1 There are other times when he’s unprotected, of course, but they’re less predictable and harder to plan for.


Why does the following Query in SQL return true?? I expected it to be false as it cannot be converted into an int or numeric value  select ISNUMERIC(',')  return 1???  select ISNUMERIC('0,1,2')  select ISNUMERIC(',,,')   also returns 1  What could I do for strict numeric checking in SQL?


Significance of intercept (as portrayed via an R formula)

I'm new to statistics in general (but a very seasoned developer). I'm trying to grasp why it seems like there's a lot of consideration given to intercepts, at least where it comes to models.  For example, the formulas below were taken from :  Fuel ~ 0 + Weight + Displacement      # formula with no intercept term Fuel ~ -1 + Weight + Displacement     # formula with no intercept term   Whether you omit the intercept terms or set them to 0, -1, etc.., it's just a superficial adjustment, right? In the end, does the intercept have no more importance than to just represent a vertical translation of the model?


I was looking up info for a  and found the exact same question OP had, but in French on .  The OP of the post I was trying to answer did not post this question elsewhere, nor in French.  Looking around there, it looks like the Movies SE questions are being (automatically?) translated in to French and someone's posting over there.   also has a French "clone"   Is this a "bot site"? I assume there's no affiliation, but they're grabbing questions so I'm just curious what's going on. Is it just bots doing that, and I guess ad revenue is the goal?    Edit: In fact, here's a post with a screenshot !


Limit Laws for a Partial Sum of an Infinite Series

I came across a question in my High School Calculus textbook:     Find $\lim_{n \to \infty} a_n$ where   $a_n = \frac{1}{n^2} + \frac{2}{n^2} + \frac{3}{n^2} + ... + \frac{n}{n^2}$   My approach was to simply distribute the limit to each term in the partial sum. I believed this would be legitimate according to the limit laws. Once I evaluated the individual limits, the limit of the partial sum came out to equal $0$:  $$\begin{aligned} \lim_{n \to \infty} a_n &= \lim_{n \to \infty}(\frac{1}{n^2} + \frac{2}{n^2} + \frac{3}{n^2} + ... + \frac{n}{n^2}) \\ &= \lim_{n \to \infty}(\frac{1}{n^2}) + \lim_{n \to \infty}(\frac{2}{n^2}) + \lim_{n \to \infty}(\frac{3}{n^2}) + ... + \lim_{n \to \infty}(\frac{n}{n^2}) \\ &= 0+0+0+...+0 \\ &=0 \end{aligned}$$  However, the textbook first combined the fractions and simplified it, only to find that the limit of the partial sum equals $1/2$:  $$\begin{aligned} a_n &= \frac{1+2+3+...+n}{n^2} \\ &= \frac{\frac{n(n+1)}{2}}{n^2} \\ &= \frac{1}{2}(\frac{n+1}{n}) \\ &= \frac{1}{2}(1+\frac{1}{n}) \end{aligned}$$  $$\therefore \lim_{n \to \infty}a_n = \frac{1}{2}$$  Both solutions seemed to be legitimate. However, after pondering on the question for a bit, I starting to think that maybe the limit laws don't apply to partial sums... As $n\rightarrow\infty$, the number of terms also approaches infinity, so then distributing the limit an "infinite" number of times might be wrong, considering how weird infinity is. But I'm not so convinced about that.  Is there some sort of restriction on how the limit can be distributed? Is there something I'm missing that completely invalidates my approach to the problem?