Custom one-key keyboard shortcuts in Outlook 2010 or 2013?

I'm a gmail junkie, and one of my favorite features is the keyboard shortcut "a" inside an email to archive the message. I can't remember if that was the default or if I set it to such a quick little keypress, but by now it's totally ingrained in my memory.   I'm setting up Outlook 2010 (or 2013) for work, and set up a similar "quick step" to archive, mark as read, and mark as complete any email.  It would be great, except for keyboard shortcuts they only give the option for "CTRL + SHIFT + 1" and other number key options. With a keyboard shortcut that convoluted, I'm not going to remember it and might as well just reach for my mouse.  Is there any way to set custom keyboard shortcuts for Outlook 2010? I want one-key shortcuts, not 3-keys-at-once!


Unassociate an app from a file extension?

As part of a beta test for my company's app, I've sent a link to an APK for the users to download. However, when a user has the  app installed, instead of being prompted on whether they want to install the APK, they are instead redirected to the Winzip app (which of course has no options to install the APK). Is there any way to tell the Android OS that I don't want it to launch the Winzip app if I download an APK file, or is the only solution to uninstall the app?


Should I 'seed' questions, particularly on beta sites, when I don't necessarily have that question myself?

I've come across this a few times: an opportunity to help 'seed' an SE site (particularly a beta site) by asking a question that seems to be a good question, but isn't asked yet on the site.  It might be something I thought of and briefly wondered about, but apart from that isn't a "real problem or question I have encountered".  Given that SE sites are about building a repository of great content, should I ask still ask my question?  Or, given I could be wasting someone's time responding when the answer isn't actually going to help me, should I refrain?  I ask particularly about beta sites because I know it's important to build great content during the beta phase, but I am also interested in the applicability of this to graduated sites too (and no, this isn't a seed question itself - I've encountered this conundrum several times!)


I have a dilemma? I work with a slope terrain. Slope field is done by a percentage of 10%. My question is, in which direction is oriented this pixel, or any pixels? It is important to know to what direction, if you're designing roads. On image below I represented Slope image, and zoomed 10% slope pixel.     This is result from comments below. This is image made with Qgis2threejs. I still not sure that real slope of each pixel oriented to arrows, like those yellow pixels on top left corner, I mean diagonally. Sorry maybe my answer could be confused.


Two old gamblers alternate at rolling a fair 6-sided die until the first 6 comes up. Compute the probability of the first player winning.  Let X be the number of trials the first one can one. Then P(X=1)=$\frac {1}{6}$  P(X=3)= $(\frac {5}{6})^2$* $\frac {1}{6}$  P(X=2n+1)=$(\frac {5}{6})^{2n}$* $\frac {1}{6}$  I am not sure how to conclude from this.


The standard text looks really ugly in GE, you lose ALL the format settings of your text and end up with a very low quality pixelated render text that doesn't support even a material for coloring, not even the fonts looks the same. So the solution is to "bake" your text transforming it in a mesh polygon object. whith the command (alt + c - Mesh from Text) But that way you lose the ability to update your text in game, for example using a "string text property"   I found that option in the text settings called "Object Font" witch allows you to pick objects and use them as characters. You just need to name your objects whith a common name. (eg.family-a , family-b and so on) and I got it to work right, I thought that this was the solution for my texts in game. So I started the process of making each character, and half way I come to test just to discover that it helped in nothing. it doesn't work in GE. I got only the ugly text from before and no signs of the polygon characters.  Some one in there knows how to get the "Object Font" to work in GE, or know other efficient methods for putting 3D text that you can update in game?


Clarrification on quadratic running time

I have code like this:  for (int i = 0; i <= n; i++) {     for (int j = 0; j <= i; j++)     {         f(); // constant operation     } }   The number of times f would execute appear to be:  n+n+(n-1)+(n-2)+(n-3)+...+2+1+0 = (n*n)-n = n^2-n  If we drop the low-order term (-n), The big O would be O(n^2).  Is this all correct?


Why do we say "0.5 days" but "1 day" when both refer to a singular day?

Unless I'm just using bad grammar I guess, it feels more natural when talking to someone to say "zero point five days" when referring to 0.5 days; conversely, it sounds more natural to say "one day" when referring to 1 day.  A similar question might be relevant: Why do we say "half a day" when describing the value, but "zero point five days" when being numerically specific?


i have a HP gamer laptop 15 () with Ubuntu 18.04.  I hardly get 3 hours of battery (the usual are 2 to 2.5 hours) and that is with, Bluetooth off, keyboard back light off and working with the internet browser and some documents.  Installed TLP with its default settings and i didn't noticed any change.  The laptop has:   i5-9300 16 gb ram 256 gb ssd nvidia gtx 1050 3 cells 52,5 WH battery   I know that being a gaming laptop i cant expect a great battery life but i think 2 to 2.5 hours is too short for battery time, even more doing light stuff.  Is there any way to improve the battery life or this is the more i'll get of it??


Minimal sufficient statistics for Cauchy distribution

I'm trying to find the minimal sufficient statistics for a Cauchy distributed random sample $X_1,...,X_n$, here \begin{equation} f(x|\theta) = \frac{1}{\pi[1+(x-\theta)^2]} \end{equation} I begin by guessing that the order statistics are the minimal sufficient statistics (first of all, they are sufficient). Then I try to prove that \begin{equation} \frac{f(X|\theta)}{f(Y|\theta)} = \prod_{i=1}^n\frac{1+(y_i-\theta)^2}{1+(x_i-\theta)^2}=C \end{equation} Where $C$ is a constant of $\theta$, I want to prove that the above equation holds iff $T(X)=T(Y)$, where $T(X)$ is the order statistics of $X$.  I am really stuck and don't know how to show why that if it holds then $T(X)=T(Y)$, can anyone help me on this proof? Thanks in advance!  p.s., a similar thread  discusses the problem but offers no proof for the minimal sufficiency.


What is the actual meaning of power which is less than 1?

$3^4 = 3 \cdot 3 \cdot 3 \cdot 3$  $3^2 = 3 \cdot 3$  $3^1 = 3$  But my problem is for below 1:  Example:  $3^{0.7} = \ ?$  Can you please explain it to clear my doubt?


Minimum specs needed to run 1080p HD movies?

I was wondering how low you could go with hardware that would still be able to smoothly run HD movies.  My current plan is around $215 CAD w/o a hard drive: Intel Pentium 4 @ 3.2 GHz - 1GB DDR/SDRAM - 512MB X1600 Pro AGP - 350W PSU - ECS P4VXASD2+ - Bluray/DVD-RW drive.  As for the hard drive, could I just get a 7200RPM IDE HDD? Also, I'm planning on installing XP Pro SP3, unless Ubuntu somehow has an advantage.  I'm not wanting this to be a media center only computer... just want it to be a normal computer with just enough oomph to play HD movies.  Thanks in advance.  EDIT1: Forgot to mention that the Bluray/DVD-RW drive is SATA, but I was planning on getting an SATA-IDE adapter or a PCI card with SATA.  EDIT2: Oh yes... if I get a PCI card with SATA, would you then recommend I use an SATA hard drive as well? That would leave all the IDE ports on the motherboard unused... is that a good idea?


Calculate row value based on previous and actual row values

Hi everyone and thanks for your help. I have the following situation: a table called statements that contains fields id(int), stmnt_date(date), debit(double), credit(double) and balance(double)   I want to calculate the balance following these rules:   The first row balance (chronologically) = debit - credit and for the rest of the rows  current row balance = chronologically previous row balance + current row debit - current row credit  As you can see on the picture above the rows are not arranged by date and that's why I used the word chronologically twice to emphasize on the importance of the stmnt_date value.  Thank you very much for your help.


Do I need to dispose() inside a unit test?

I'm using c# in visual studio 2017.  When performing my unit tests, do i need to call the dispose() method to dispose the connection with the database? Or are opened connections automatically closed?  Thanks in advance


ERROR: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference

I have one activity one tab with fragment . But it keeps giving me the error "java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference". Send data to fragment: final DescriptionDetailFragment ddf = new DescriptionDetailFragment();  Bundle bundleddf =new Bundle();         bundleddf.putString("description", massageModel.getDescription());         ddf.setArguments(bundleddf);  Called activity: desc = v.findViewById(R.id.description);          Bundle b1 =getArguments();          String description = b1.getString("description");          desc.setText(description);  Can someone help me out why this is happening?


table too wide and doesn't fit within textwidth

\begin{table}[htbp]         \centering         \small         \begin{tabular}{|c|c|c|c|c|c|c|c|c|}             \hline                 Wavelength & Model & Package & Emmitter type & Manufacturer & Power (mW) & Iop (mA) & Ith (mA) & Vop (V)\\             \hline                 405 & DL-7386-101HG & TO-56 & single & sanyo & 50-70 & 70 & 35 & 4.8\\             \hline                 450 & PL 450 & TO-38 & single & osram & 50-90 & 120 & 30 & 5.5\\             \hline                 638 & ML520G54 & TO-56 & single & mitsubishi & 90-100 & 150 & 50 & 2.7\\             \hline                 655 &  DL-5147-242 & TO-56 & single & sanyo & 30-50 & 80 & 40 & 3.8\\             \hline         \end{tabular}         \caption{Laser specifications}         \label{tab:Laser_Specs}     \end{table}   The above is my code for creating a table and when compiled it gets beyond textwidth. How can I solve this issue without altering the font size ?


make textedit the default app for new file types

Often I download files with funny extensions, like .wnd, .npy, .dat, etc. Is there some way I can make the default app for all files like these, as in files that the system does not already recognize, to be TextEdit?  Edit  Is there some way to at least let the "open with" prompt include TextEdit?


Calculating a spherical polygon centroid

I'd like a general way to calculate centroids for polygons on a sphere.  So far, the best online reference appears to be:      by Jeff Jenness.   The method described there suggests decomposing the polygon into multiple spherical triangles, and computing the average of spherical triangle centroids, weighted by the spherical triangle area.  I know that there are several ways to define a spherical polygon centroid, but I'm looking for something analogous to the following definitions for points and polylines:   Points: arithmetic mean of the Cartesian vectors representing the points. Polylines: weighted mean of Cartesian vectors representing midpoints of each line segment, weighted by the (spherical) length of each segment.   It seems a reasonable continuation to have polygon centroids defined as the weighted mean of the triangular decomposition, weighted by area.  My question is whether the method in the above reference will work regardless of the triangle decomposition used. In particular, it mentions decomposing into triangles relative to an arbitrary point, even external to the polygon, such that some triangles will have negative areas that contribute a negative weight.  Related:


Which word or words can be used in order to denote the person standing just before the last person in a row? Is the word second last correct in this matter?


How to solve this in an efficient way (without calculators)

Solve for $x$, if   $$(x+4)(x+7)(x+8)(x+11)+20=0.$$   Is there an easier way to solve this than trying to multiply all the values together? I've tried multiplying all of them together, and I get an equation of the fourth degree which I find very hard to factorise. I'm hoping there is an easier way to solve this question. Any help is appreciated.Thanks :).  The equation I get after multiplying is $$x^4+30x^3+325x^2+1500x+2484=0,$$ and its roots are  $$-6, \quad -9, \quad \frac{-15\pm\sqrt{41}}2 .$$


A very interesting question: intersection point of $x^y=y^x$

I've been investigating the Cartesian graph of $x^y=y^x$. Obviously, part of the graph is comprised of the line $y=x$ but there is also a curve that is symmetrical about the line $y=x$. (We can prove this symmetry by noting that the function $x^y=y^x$ is self-inverse; all self-inverse functions are symmetrical about the line $y=x$.) An image of the graph is shown below:  I decided to find the intersection point and arrived at an intriguing result: the intersection point between the two curves is at $(e,e)$. The following is my method: If the gradient of the line $y=x$ is $1$, the gradient of the curve at the intersection point must be $-1$ as it's a normal to the line (as it's symmetrical about the line). This means that at that point $\frac{dy}{dx}=-1$. Now to find $\frac{dy}{dx}$. We have $x^y=y^x$. I then used a very powerful tehnique for differentiating these sorts of functions. We know that eg $$x^y=e^{\ln{x^y}}=e^{y\ln{x}}$$ and $$\frac{d}{dx}e^{f(x)}=f'(x)e^{f(x)}$$ Applying it to our function $x^y=y^x$ and using implicit differentiation and the product rule gives us: $$(\frac{dy}{dx}\times \ln x +\frac{y}{x})x^y=(\ln y +\frac{dy}{dx}\times \frac{x}{y})y^x$$ So $$\frac{dy}{dx}x^y\ln x +yx^{y-1}=\frac{dy}{dx}xy^{x-1}+y^x \ln y$$ Extensively rearranging gives: $$\frac{dy}{dx}=\frac{y^x \ln y -yx^{y-1}}{x^y \ln x -xy^{x-1}}$$ Let $\frac{dy}{dx}=-1$: $$y^x \ln y -yx^{y-1}=xy^{x-1}-x^y\ln x$$ But we know $x=y$ since we are at the intersection point with the line $y=x$: $$x^x \ln x -x^x=x^x-x^x\ln x$$ So $2x^x \ln x -2x^x=0$ $$2x^x(\ln x -1)=0$$ This means either $2x^x=0$ or $\ln x -1=0$ but we know $x^x$ is always greater than $0$ so $\ln x =1$, leaving us with: $$x=y=e$$ So I have my answer, but is there any other method of getting it? I have heard there is. Any help will be very welcome. Thanks in advance


My Microphone started acting up badly this morning has a loud buzz, it has got to be software it was working fine last night installed updates and shutdown last night and boom here we are, oh and i have a Microphone jack microphone and a internal mic, both are acting up... Please help  PLEASE help i need to use skype.  Dafull97


Proving that $a_{n} \rightarrow L$ given that $a_{n}+ 2a_{n+1} \rightarrow 3L$ .

Let $(a_{n})_{n=1}^{\infty}$ be a bounded sequence, and suppose that the sequence $(a_{n}+ 2a_{n+1})_{n=1}^{\infty}$ converges to $3L \in R$. How can I prove that $(a_{n})_{n=1}^{\infty}$ converges to $L$ ?  How can I go about proving this? I tried using the definition of a limit for the 2 sequences, and tried iterating the inequalities, but I did not seem to be getting anywhere. Could someone provide a proof for this problem, I am really trying my best to understand a proof for this problem.    Also, is there any way to prove the above without, assuming that $(a_{n})_{n=1}^{\infty}$ is bounded.   Really would appreciate your help on this problem. Thank You!


How to maintain focus after click in JavaScript?

I add text to a textarea with the code  document.getElementById("b").addEventListener("click",  function(e) {   e.preventDefault();   var text='test',txtarea;   // Problem   var t = document.getElementsByTagName('textarea');     for(var i =0 ;i<t.length;i++){     if(t[i]==document.activeElement) {txtarea=t[i]}     }   var scrollPos = txtarea.scrollTop;   var strPos = 0;   strPos = txtarea.selectionStart;   var front = (txtarea.value).substring(0, strPos);   var back = (txtarea.value).substring(strPos, txtarea.value.length);   txtarea.value = front + text + back;   strPos = strPos + text.length;     txtarea.selectionStart = strPos;     txtarea.selectionEnd = strPos;     txtarea.focus();   txtarea.scrollTop = scrollPos; } );     I want to find the focused textarea (one in which writing currently) in the page.  I created a loop to check which textarea is focused, but it does not work probably because when I click the focus shifts from the textarea to a element.


Is there any method to convert date from "dd Mon yyyy" to "yyyy-mm-ddTHH:MM:SSZ" format in python? For Example: Convert "17 Jan 2020" to "2020-01-17T00:00:00.000Z" format. I have tried datetime.strftime() but I am not able to handle the input date format.


I got a new keyboard with function keys, but I have to hold the FN key to use the F1|F12 keys normally and not to change the volume, brightness, etc. How do I change this?


I have a schengen visa validity from 13\6\2018 until 27\6\2018 and the duration of stay is 15 days , if i enter to schengen area at 20\6\2018 can i stay 15 days count start from enter means leaving on 10\7\2018 ?


Virtualbox kernel driver on 14.04 not installed

I tried this method,   As soon as I entered this line, sudo /etc/init.d/vboxdrv setup, I get this error on the terminal, sudo: /etc/init.d/vboxdrv: command not found.  How do I fix this.


Why is it that when I set one element (arr[i][j]) in a 2d bool array to True, all the j's set to True as well?

I initialized a 2d array and set all the elements to False. Then in my code I want to switch certain elements to True if conditions are met. However, arr[i][j] = True sets ALL j elements in arr to True. Why is that, and what is the correct syntax?  arr = [[False]*3]*4 print(arr) arr[1][2] = True print(arr)   This gives  [[False, False, False], [False, False, False], [False, False, False], [False, False, False]]  which is what we expected, and then  [[False, False, True], [False, False, True], [False, False, True], [False, False, True]]  where all the arr[i][2]'s are set to True, instead of just arr[1][2]


About relation between continuity and sequentially continuity

Its is known every continuous function between topological spaces is sequentially continuous. Also sequentially continuity implies continuity if the domain space is first countable. I am interested in example of the function between topological spaces (where domain space is not first countable, as I say) that is sequentially continuous but not continuous.


Textbook for mathematical Lagrangian mechanics

I'm looking for a textbook or online notes or a review article etc on a rigerous formulation of Lagrangian mechanics. I'm well aware of the book by Arnold but I would like something to accompany it. Perhaps something a bit more recent. There are a few things I would like it to have.    At least as much differential geometry as Arnold. Even better would be a dedicated section on DG at the start to cover everything needed to read the book.  It must use local coordinate systems and not try to do everything in a coordinate free way.    The book Foundations of Mechanics by Abraham and Marsden doesn't use local coordinates (and focuses on Hamiltonian mechanics more so than Lagrangian). The book by Spivak is nice too and but there's something about it that doesn't quite suit me.


So this is an argument I'm actually having, silly as it may seem. Can atheism be said to be a property of an individual? His argument is that it the lack of a property is not a property at all. This seems to make little sense to me. The notorious odorlessness and colorlessness of carbon monoxide certainly seem like properties of sorts and from what I've seen on SEP "atheism" certainly seems to meet many of the criteria mentioned, such as that it can be predicated on individuals. What is your stance on this issue?


Is there a EASY way to use a variable in a PostgreSQL query?

Using: PostgreSQL10 & pgAdmin4 So this query is simple: SELECT * FROM [schema_name].[table_name]     WHERE [schema_name].[table_name].[field_name] = 'search_value';  In Transact-SQL you can create a variable for "search_value": DECLARE @find varchar(30) = 'search_value';  SELECT * FROM [schema_name].[table_name]     WHERE [schema_name].[table_name].[field_name] = @find;  And even re-use the variable: SET @find = 'new_search_value';  I have now tried everything to mimic this in PostgreSQL, but I can't get it working. Any suggestions???


No facility exists in Update Manager to upgrade to a new version, why?

I am trying to upgrade to a new Ubuntu version but the update manager does not recognize an update. Why not?


how to importrange with strikethrough and bold

I have data in Sheet1 that I wish to import into Sheet2 with ImportRange. However, when the cell in Sheet1 is marked with a "strikeout" I want it to also import as a strike-out cell in Sheet2. Is this possible?


How to prove $a^{1729}\:=_{1729}\:\:a$? I know it's a Carmichael number, but how can we show it directly without knowing it's a Carmichael number?

I already proved it if $1729$ divides $a$, or if it doesn't divide $a$ but it's Greatest Common Divisor is not equal to $1$ (we get that the left side is equal to $0$ and the right side is equal to $0$ thus in these cases $a^{1729}\:=_{1729}\:\:a$ is a true statement). But I can't find a proof for $1729$ does not divide $a$ and it's Greatest Common Divisor is equal to $1$.


How does the price for flight tickets between France and New Zealand evolve during the year?

Planning a trip to New Zealand, I'm looking to mitigate my travel date against flight cost.   What is the evolution of prices for round-trip flights between France and New-Zealand during the year?


Do Newton's and Einstein's theory of Gravity differ very much when calculating satellites orbits. If they don't, in what areas do they actually differ?


Countable or uncountable; family of disjoint triangles?

If we say that $\mathcal{S}$ is a family of disjoint triangles on a plane, is $\mathcal{S}$ a countable or an uncountable set?  I believe that it is an uncountable set since $\mathbb{R}$ is uncountable and our triangles' corner coordinates are $\in \mathbb{R}$, but I cannot prove this formally, any tip would help.


I try to plot this matrix (image) with this code but the shape of my equation has problem(second image) How I could correct it?       \documentclass[12pt]{article}     \usepackage{amsmath}     \usepackage{nicematrix}     \usepackage{amscd}     \usepackage{tikz}     \usetikzlibrary{arrows.meta, matrix, quotes, positioning}     \begin{document}             \begin{equation}\label{key}                 \left[ \left. \left( t_{A}\vert E_{\lambda_{i}}(A)\right)\right| X^{i}, X^{i} \right] =                 \begin{tikzpicture}[LA/.style = {Straight Barb-Straight Barb,                         shorten <=1pt, shorten >=1pt,                         draw=blue}                     ]                     \matrix (m) [matrix of math nodes,                     left  delimiter={[},                     right delimiter={]}                     ]                     {                         \lambda_{i}&&0&\\                         &\lambda_{i} &&\\                         0 && \ddots &\\                         &&& \lambda_{i}\\                     };                     %\draw (m-1-3.north east) -- (m-5-3.south east);                     %\draw (m-4-1.north west) -- (m-4-5.north east);                     %                     \draw[LA] (m-3-1.south west |- m.south) to [" $d_{i}$ " '] (m-4-4.south east |- m.south);                     %\draw[LA] (m-5-4.south west |- m.south) to ["2" '] (m-5-5.south east |- m.south);                     %                     \coordinate[right=5mm of m.east] (e);                     \draw[LA] (m-1-3.north east -| e) to [" $d_{i}$ "] (m-4-4.south east -| e);                     %\draw[LA] (m-4-5.north east -| e) to ["2"] (m-5-5.south east -| e);                 \end{tikzpicture}             \end{equation}     \end{document}   .


How do convert/parse/extract data from a PGN into a spreadsheet/google sheet/excel file?

So suppose I go to like  or  there's gonna be a bunch of stuff like say [UTCDate "2018.01.03"] [WhiteElo "2706"] [BlackElo "2940"]  How do I get this data into a spreadsheet like column 1 is all the dates, column 2 is the corresponding white elo, column 3 black elo, col4 white username and col5 black username?  Update 2: Fixed now. see the 'json' vs the 'preformed'. WOW. Update 1: It appears Mike Steelson has an answer , where the code is given as =arrayformula( regexextract(split( substitute(substitute(substitute(getDataJSON(A1;"/games";"/pgn");"[";"");"]";"");"""";"") ;char(10));"\s.*") )  with an example given here  It appears there's a problem when it gets to the case of chess960 only. Consider for example : Replacing 'gmwso' with the player's username will yield a weird output. i imagine the output will be messier for mixed chess960 and chess.


How can a network-wide suspension be not entirely network-wide?

Today I noticed  is suspended network-wide according to the text on the profile page:        No other SE sites are visible in this profile page, only MSE.        Just out of curiosity I went to the Wayback Machine and found the . That snapshot of the profile page already contains two sites in the community list (MSE and SO), hence visiting the current version of SO profile I expected to see the profile page of suspended network-wide user. But the . How is this possible?


Do Stormtroopers or Imperial officers receive vacation?

In some of the episodes of  it seems like some of the Imperial officers and perhaps their underlings can't wait to get a promotion.  At first thought, I assumed that means more responsibilities but also more pay and vacation.  However, while I'm not a  expert, I have absorbed a lot of the Star Wars media over the years and I can't recall ever seeing an Imperial officer or Stormtrooper going on vacation.  The Rebels presumably fight because they want freedom from tyranny for the Star Wars galaxy and whatnot.  But it seems like the desire to serve the Empire must come from its wealth, but perhaps the soldiers are too busy fighting to take a vacation.  Are there any Canon references to vacation of Stormtroopers or Imperial officers?  Any Legends references?


Why isn't my static ArrayList correctly random for each object instance?

public class Clan {     private String clanName;     static ArrayList<Citizen> list;     private int clanSize;    public Clan(String clanName, int clanSize) {      this.clanName = clanName;      this.clanSize = clanSize;      Clan.list = new ArrayList<Citizen>(clanSize);     //list.add(new Archer());    for (int i = 0; i < clanSize; i++) {        Clan.list.add(Citizen.randomCitizen());    }  }     public static Citizen randomCitizen() {     Random randomReturn = new Random();      Citizen [] list = new Citizen[3];      list[0]=new Archer();     list[1]= new Barbarian();     list[2]= new Civilian();      return list[randomReturn.nextInt(list.length)];   }  This is meant to randomly fill the clan with random citizens whenever its called. The error I am having is if I create a new clan(toronto, 5) and another new clan(montreal, 6). They both have the same pattern of citizens. Its meant to be random for each call


Can Resharper be set to warn if IDisposable not handled correctly?

Is there a setting in Resharper 4 (or even Visual Studio itself...) that forces a warning if I forget to wrap code in a using block, or ommit the proper Dispose call in a finally block?


Proving $v(s,p)=2^{p-1}(2s-1)$ is a bijection of natural numbers and $f(s)=2s-1$ is a bijection between natural numbers and odd numbers.

How do I prove this function is bijective? $$ v(s,p)=2^{p-1}(2s-1). $$ The domain is natural numbers and the codomain is also the natural numbers.  And this one: $$ f(s)=2s-1. $$ The domain is the natural numbers, and the codomain is the odd numbers in the natural numbers.  With this one I would do this to show it's injective: $$ \begin{align} v(s)&=v(s_1)\\ \implies 2s-1&=2s_1-1\\ \implies (2s_1)/2&=(2s_2)/2\\ \implies s=s_1 \end{align} $$ So it's injective since if $v(s)=v(s_1)$ then $s=s_1$.  And to show it's surjective $f(s)=y$: $$ \begin{align} y&=2s-1\\ \implies s&=(y+1)/2 \end{align} $$ Then the function must be surjective since every $y$ is the same as the codomain for $f$.  Am I correct?


How to Measure Power Consumption on Extremely Low Power Devices?

This might be old news in a half a decade or two but by today's means, I am referring to electronic prototypes and designs which would draw in a μA (uA) and even nA range of current.  Some recent MCUs, such as SAMD21 that I am using atm are armed with internal clocks such as ,always on, Ultra Low Power Internal 32kHz RC Oscillators which would draw only 125nA, and the whole microcontroller is capable of consuming only 6.2μA on STANDBY mode with a live RTC.   In these type of quiescent current and power consumption levels the smallest limitations in the internal machinery of bench measurement devices such as multimeters and oscilloscopes could add a fair bit of error to the overall measurement or even measure a flat out wrong value in situations like a different relay kicking in when changing the resolution from 6 to 8 decimal places accuracy on your multimeter.   What is the most precise method of measuring the overall quiescent current/power consumption for such applications?     Update:  As I mentioned in one of the replies, measuring low currents is hard but very possible, however, making conclusions on the integrated amount of current consumption to come up with numbers for the realistic over all power consumption is more what I had in mind.  I have bumped into some solutions such as , however the wide range in this application note is only limited to the max of 200uA and in my case, my max current can rise to milliamps when my radio is transmitting and could drop to as low as 3uA when the whole system goes to sleep.


How best to remove directional motion-blur from photos (on Linux)?

I took some photos of the moon last night.  I wanted good color without a lot of noise, so used ISO 100 and a long exposure (10 seconds with a 400mm lens).  I have a good tripod and head and used a 2 second shutter delay so that I wasn't touching the camera.  This has worked great for me for terrestrial shots in the past, but the earth turns enough in 10 seconds to give the shot a very directional blur.  Oops!  I'm familiar with Sharpen, Unsharp Mask, and similar filters.  I'm specifically wondering how to sharpen only in one direction.  Like a sharpen filter where I specify an angle and a length.  I know the earth makes an arc, not a line, but a line would be close enough to fix this.  Also, I run Ubuntu 18.04 Linux.  I normally use Darktable and Gimp, but can try other things or an online service.  It does not have to be free.  I just can't use Windows-only or Mac-only software.


Let $A$ be a set and $A'=\{x: x \text{ is the accumulation point of A}\}$, which is called the derived set of $A$ and $\overline{A}$ closure of a set  I'm trying to prove that for a subset $A$ of a topological space $X$  $\overline{A'}=A'$  First $A'\subseteq \overline{A'}$  Using $B\subseteq \overline{B}$ for any subset in $X$, I prove it  But the $\subseteq$ part  How I can prove $\overline{A'}\subseteq A'$?  Any sugestion


It's been awhile since I've played Pokemon X but just to make sure, I battled my rival again in Kiloude city and then went to Anistar city to see if the professor was at the sundial -- which he was not. I guess I must have upgraded my Mega Ring before I took a break, but I can't find any of the stones. at around 8:20 I went searching for the Mawileite on the second floor of the Shabboneau castle but it was not there. I'm thinking of deleting my data and starting over because this is really bothering me.


I need to loop through Accounts and then on all of the Contacts for those Accounts. I need to find what is the address with the most occurrences in Contacts for each Account and update the Account with that address. I can loop through Accounts and Contacts just fine but getting the address and finding the one that most Contacts have is getting tricky. This is my code so far:  public static void completeaddresses(){     List<Account> acctList = new List<Account>();     acctList = [SELECT Id, BillingState, BillingPostalCode, BillingCity,BillingStreet, BillingCountry, BillingAddress, (SELECT Id, contact.MailingAddress, contact.MailingStreet, contact.MailingCity, contact.MailingState, contact.MailingPostalCode, contact.MailingCountry FROM account.contacts WHERE contact.MailingStreet!='' OR contact.MailingCity!='' OR contact.MailingPostalCode!='' OR contact.MailingCountry!='' OR contact.MailingState!='') FROM Account WHERE BillingState ='' AND BillingPostalCode ='' AND BillingCity = '' AND BillingStreet = ''];      Map<Address, Integer> addresses = new Map<Address, Integer>();     List<Address> addressList = new List<Address>();      for (Account acct:acctList) {         for (Contact cont:acct.contacts) {             if (!addresses.containsKey(cont.MailingAddress)) {                 addresses.put(cont.MailingAddress,0);             }             Integer currentCount = addresses.get(cont.MailingAddress) + 1;             addresses.put(cont.MailingAddress, currentCount);         }         addressList.addAll(addresses.keySet());         addressList.sort();     } }   The issue is, it sorts by key not by value, if I could sort by value, then I can update the account and I'd be done. I'd appreciate if someone can let me know if I can sort by value and how. Thanks.


Can I use FieldSets to check for changes to a list of fields within an apex method?

I have a scenario where in before update context I want to check a list of fields for changes. Normally I would simply compare the values between newMap and oldMap as such:  for(Record r : Trigger.new) {     if(Trigger.oldMap.get(r.Id).thisField__c != Trigger.newMap.get(r.Id).thisField__c) //The field value has been edited in this update     {perform business logic} }   It seems to me like this could be a great place to use FieldSets, so that I can easily add or remove fields that I want to check for edits in this loop, but all I can find is FieldSetMember.getFieldPath() which returns a string - that is great for use in a SOQL query, but what about here where I want to directly reference those fields in my apex code?  Is there any way to do this? I had imagined it looking something like this, but I've put ??? where I am at a loss for how to reference the field in question on the record within newMap or oldMap.  List<FieldSetMember> fieldsToCheck = Schema.SObjectType.Object.fieldSets.Fields_To_Check.getFields();  for(Record r : Trigger.new) {     for(FieldSetMember fsm : fieldsToCheck)     {         if(Trigger.oldMap.get(r.Id).??? != Trigger.newMap.get(r.Id).???) //The field value has been edited in this update         {perform business logic}     } }


How do I calculate areas of an area shapefile in square meters (m²) or in acres (ha)? I didn't find that functionality in the Vector Tools.


How do I make the Messages that are sent to me stop going to my Mac?

Ok, so at my school, everybody was supplied with a Macbook Pro. I set up the Messages app and it was all great until the county decided to block it. Now, instead of receiving text messages on my phone they go to my Mac. I have no idea how to fix this because I can't open the Messages app. Please help?!


How to Draw/plot or identify in GoogleMaps with below PointData


Italic text not recoloured correctly on mobile

On the mobile site, italic-formatted words in answers downvoted enough to receive the "greyed out" CSS are properly italicized but the font colour remains unchanged. See  on  for an example. The italicized text is formatted with standard *text* markdown. See screenshot below.  The same issue happens within hyperlinks. The target text is italicized, but black instead of blue. I encountered this within a positively scored answer. The sentence long hyperlink was also bolded, with a single italicized word in the middle. The italicized word was bold, italic and an active link, but not the correct colour. Sorry, no screenshot of this one.  Bold, blockquote, hyperlink, and header formattings (where italics are not present) are rendered correctly.  I'm using the stock browser on a Galaxy S3 running android 4.3 and CyanogenMod 10.2.1. I was not logged in to Skeptics.


How must I deal with anti-virus software on Windows 7

I know this question is looking like an easy question or not a question at all but it's not really easy question. I'm not related to security and anti-viruses and just don't trust every provided anti-virus.  So first question is a real question - Is it OK (safe) to not use anti-virus at all. I know how to use firewall, usually I use only trusted connections and surfing trusted sites. My chances to get virus is really low. Even I've got a bit outdated PC and don't want to pay the performance for it. I can do monthly scans without having one installed - is it OK to be safe ?  If not can you recommend a good free antivirus solution?


what is procedure to become a cricket umpire in state level?

I want to know what's the procedure to become a state level Cricket Umpire?   please explain starting from the grass root Steps.


Encryption scheme that allows compare ciphertexts based on the clear text

I would like to compare ciphertext based on the order assumed on the message space.  So, do you know if there exists some encryption scheme with the follow property:  Let $c_0 = E(m_0)$ and $c_1 = E(m_1)$ for all $m_0$ and $m_1$ in the message space. So,  $$c_0 \leq_C c_1 \Leftrightarrow m_0 \leq m_1$$  Note that I used $\leq_C$ instead of $\leq$, because the partial order relation on the ciphertext space may be different from the partial order of the message space.  For example, if I have $c_0$ and $c_1$ such that $c_0 = E(-3)$ and $c_1 = E(103)$, I would like to know that $c_0 \leq_C c_1$ without knowing the clear texts $-3$ and $103$.  If something is unclear, just let me know.  Thank you.


Able to transport the rendered opengl frame to byte array with python script?

I'd like to render a frame with OPENGL and I want to save to a byte array variable without file save/load. What can I do?


Why sudo passwd username keeps asking for the current password

I am in a bizarre situation, that I can't reset user's password on my machine (Ubuntu 16.04) using eighter sudo passwd username or passwd username from the root account.  root@adam-minipc:~ # passwd mikolaj Current password:  New password:  New password (again):  passwd: Authentication token manipulation error passwd: password unchanged   In the /etc/shadow the relevant entry reads:  mikolaj:!:18063:0:99999:7:::   Why is that? What cause it and how to reset the password already? Have I been pwned?    Unlocking the account does not help either:  root@adam-minipc:~ # passwd -u mikolaj passwd: unlocking the password would result in a passwordless account. You should set a password with usermod -p to unlock the password of this account.   usermod -p <encrypted password> mikolaj requires encrypted password, and it simply pastes it to the /etc/shadow file. I don't know how to get the encrypted password, even if I knew, it must be a way to simply reset a password if you are root. It is the first time I see this behavior of passwd and frankly I am really at lost.    The question is different from , because it has nothing to do with the read-only file system, nor I complain about the error in the first place. I want to know, why sudo passwd <username> suddenly started asking for a current password. On all my other systems it doesn't.


Electric field inside a conductor under influence of non uniform electric field

Suppose a conductor is placed in a non uniform external electric field. Why does  the field inside the conductor remain zero?


What levels of graduate schools can various combinations of GPAs and GREs get you into

Assume that the candidate is a graduate of a good state school, e.g. North Carolina or Ohio State. Then I want to explore this candidate's probable viability in getting into "second tier" graduate schools, say 15-30th in a given field using the following academic combinations. The best combination would be something like a 3.9 GPA and a graduate exam (GRE or LSAT) score of 175 or better (out of 180). Assuming research and activities were competitive (and are held constant between candidates), would these candidates be able to do better than second tier (say top 15)? A second best combination might be something like a 3.5 GPA and a 175 exam score or a 3.9 GPA and a 165 exam score. How would this candidate "stack up" for a second tier grad school? Are the two sets equivalent or is one combination decidedly more competitive than the other? Third best would be something like 3.5 GPA and a 165 exam score. Would "second tier" grad school be a reach for such a person? If you changed "good state school" to "HYPSM" and kept exam scores and GPA constant, would that change matters? Explanation: Unlike the other question, this one is not about getting students in from the "bottom." This question is about how the TOP three (or so) categories sort themselves out.


I'm returning to programming after many (about 15) years absence. I have chosen Python as it appears to be similar to BASIC although 'improved' with functions and Object Orientation among others.  My problem is that, having worked through programming lessons which included an editor, I loaded onto my Windows 8.1 PC a copy of Python 3.4 but the editors don't seem simple to use. I have tried several editors and the one I liked best was JetBrain's Pycharm however that is not as simple as Microsoft's Visual Basic.  I appreciate that that was a commercial environment with which I was well familiar but does anybody know of a simple editor that can be linked to Python 3.4, uses line numbers and can run in Windows 8.1?  Thanks


I want to print list of numbers from 1 to 100 and I use a for loop like the following:  number=100 for num in {1..$number} do   echo $num done   When I execute the command it only prints {1..100} and not the list of number from 1 to 100.


How to change the title of table of contents?

I want to make a presentation where at the beginning of each section the table of contents is displayed. I am doing the presentation in dutch, so I want the title of those frames to be 'Overzicht'. I'm using the following code:  \documentclass{beamer} \usepackage[utf8]{inputenc}  \AtBeginSection[] {   \begin{frame}     \frametitle{Overzicht}     \tableofcontents[currentsection]   \end{frame} }  \usetheme[kul]{kuleuven2} \setbeamertemplate{footline}[body]  \title{De leegheid van de soritesparadox} \author{Lukas Rollier } \date{26 Maart 2020}  \begin{document}  \maketitle  \section{Soritesparadox}  \section{Taaldarwinisme}  \end{document}   But the title on those frames remains 'outline'.


is learning rate schedule a hyperparameter?

I believe term ‘learning rate schedule’ is a certain solution for tuning the learning rate. But at the same time, every parameter evaluating the parameter itself can be called a hyperparameter. So can the learning rate schedule be called a hyperparameter?


Get rid of the file explorer grey bar line

I have just received my Asus ROG G750 with Windows 8.1. On the file explorer I get a grey bar that seems resizable but that doesn't move and I don't know what it is.  Here is a screenshot of the file explorer with the grey bar:     here is a screenshot of how file explorer looks on other systems:   I don't know why I have it and honestly I'd really like to get rid of it.


Upgrade of Ubuntu components without Internet connection

We want to update following items on Ubuntu. But our server is not connected to Internet due to security reason. What alternatives do we have?   Python & python 3 NodeJS PHP Python Computer vision (openCV) MongoDB Nginx Loopback Tensorflow Theano Java Zebra crossing Highlighter component dependencies Barcode reader dependencies NodeJS packages Python packages


Hard drive died, how do I get the OS X on new hard drive?

I have a huge problem. My hard disk seems to be dead. I did a lot of things but I guess it's really gone. The thing is that I don't have CDs o DVDs of the OS X Lion (it's a macbook pro A1278 bought in 2012) and no backup in time machine. I lost all my files so I'm already grieving.   The thing is, if I buy a new HDD, how do I get the OS X there?


$G$ is finite, $A \leq G$ and all double cosets $AxA$ have the same cardinality, show that $A \triangleleft G$

If $G$ is a finite group and $A$ is a subgroup of $G$ such that all double cosets $AxA$ have the same number of elements, show that $gAg^{-1}=A$ for all $g \in G$.  Here is my attempt, I guess it's correct but please verify it. I looked for this problem on the internet but I found it nowhere, so I thought it might be a good idea to have an answer for it on MSE:  We know that for $x,y \in G$ we have $|AxA|=|AyA|$ by hypothesis of the problem.   In particular for any $g \in G$ we have $|AgA|=|AeA|=|AA|=|A|$. In other words, all double cosets $AgA$ have the same number of elements as $A$ for any $g \in G$.  Now, we use the following counting formula:  $$|AxB|=\frac{|A||B|}{|A \cap xBx^{-1}|}$$  with $A=B$ and $ \forall g \in G:|AgA|=|A|$  we obtain:  $$ |A| = \frac{|A||A|}{|A \cap gAg^{-1}|} \implies |A \cap gAg^{-1}|=|A| $$  But $A \cap gAg^{-1} \subseteq A$ and since $G$ is finite and $|A \cap gAg^{-1}|=|A|$ it forces $A \cap gAg^{-1} = A$.  That implies $A \subseteq gAg^{-1}$ for any $g \in G$, which is the same as $g^{-1}Ag \subseteq A$ for any $g \in G$ and this proves the normality of $A$ in $G$. Q.E.D.


I don't yet have my I Am Your Father hat

I posted to  4 hours ago, and did not receive the badge on that site.   Are there any hidden requirements for the badge (post a positively-scored answer?) that I need to fulfill?


I am calculating with percentage and I just divide a number by 10 and multiply by 100. Before the operation I cast to float.   So:  System.out.println((float)5/10*100); System.out.println((float)6/10*100); System.out.println((float)7/10*100);   And I got these:  50.0 60.000004 70.0   The question is why and how did the 60 get 4 millionths?


(a) Prove $(k,n+k)=1$ iff $(k,n)=1$. (b) Is it true that $(k,n+k)=d$ iff $(k,n)=d$? (all variables are integers, (a,b) means gcd(a,b))  For (a), I can only get so far.  $(k,n+k)=1\ \Rightarrow\ kq_1+(n+k)q_2=k(q_1+q_2)+nq_2=1$.  Note that we don't yet have that theorem (from a different class) that says something like if $d=(a,b)$, then $d$ is the smallest (or is it biggest) number which can be made by $ak_1+bk_2$, (which I'm not quite sure how it would help, anyway). So I'm stuck.


How to format a disk/sdcard as FAT32 in windows 10

In windows 10, when you want to format a partition specifically as FAT32 (for example an SDcard that is going to be used in your phone) when you right-click the disk and choose format, only NTFS and exFAT are shown as possible format options.  Is there another way, preferably without installing an additional tool or booting into a different mode to format as FAT32?


Why is mathematical induction a valid proof technique?

Context: I'm studying for my discrete mathematics exam and I keep running into this question that I've failed to solve. The question is as follows.    Problem: The main form for normal induction over natural numbers $n$ takes the following form:   $P(1)$ is true, and for every $n, P(n-1)\to P(n).\qquad\qquad\qquad\text{[Sometimes written as $P(n)\to P(n+1)$]}$   If both 1 and 2 are true, then $P(n)$ is true for every $n$.  The question is to prove the correctness of the form above.    My work: My idea was to make a boolean statement and if it's a tautology in a true false table. That means the statement is always correct.  I've tried many times but I've failed.  Here is the original question in Hebrew:  n טענה כלשהי לגבי מםפר טבעי  $P(n)$ תהי   אם מתקימיים שני התנאים הבאים:  1- הטענה $P(0)$ נכונה  2- לכל n>0, $P(n)$ נכונות הטענה $P(n-1)$ גוררת את נכונות הטענה   אז $P(n)$ נכונה לכל מספר טבעי n  הוכיחו את נכונות משפט זה


How do i fix not being able to destroy blocks

So I log into my minecraft as normal. then I get into a single player world so I can get lag out of the way to get into a normal multiplayer server. so I get mst of the lag out then I go in f5 to check my skin and punch in air. my player doesn't punch. I check the mouse settings. there normal. then im like its just for sp. I got to a server same thing. so please if you know if its my client or is it mouse settings because I cant play my game if I cant destroy blocks.


How to write an f-string on multiple lines without introducing unintended whitespace?

Consider the following code snippet:  name1 = "Nadya" name2 = "Jim"  def print_string():     string = f"{name1}\n\ {name2}"     print(string)  print_string()   which produces  Nadya Jim   This works, but the 'break' in indentation on the second line of the string definition looks ugly. I've found that if I indent the {name2} line, this indentation shows up in the final string.  I'm trying to find a way to continue the f-string on a new line and indent it without the indentation showing up in the final string. Following something similar I've seen for ordinary strings, I've tried  name1 = "Nadya" name2 = "Jim"  def print_string():     string = f"{name1}\n"              f"{name2}"     print(string)  print_string()   but this leads to an IndentationError: unexpected indent. Is what I am trying possible in another way?


Throughout my thesis, I have accent several mathematical symbols with "hats" and "checks". My advisor noted that the standard \hat{}, \check{} accents were difficult to read due to their size, so I made my own in Tikz. However, now LaTeX takes several (around three) minutes to compile the entire document. Below is the code used to define these symbols. I do use the accents package. Is there a more efficient way to define custom accents for mathematical symbols? I imagine Tikz is running every time the compiler comes across my command which is what's slowing it down, but I'm not sure how to avoid this. I am using TexMaker with the latest MikTex distribution for Windows. % Some symbols   \newcommand{\myhat}{% \mathbin{\begin{tikzpicture}[line width = 0.15pt, smooth] \draw[smooth, fill] (0,0.1ex) -- ({0.5ex - 0.3pt},0.45ex) -- ({0.5ex + 0.3pt},0.45ex) -- (1ex, 0.1ex) -- (0.5ex ,0.4ex) -- (0,0.1ex); \draw[white](0,0ex) -- (0, 0.1); \end{tikzpicture}  }}  \newcommand \what [1]{ \accentset{\myhat}{#1} }  \newcommand{\mycheck}{% \mathbin{\begin{tikzpicture}[line width = 0.15pt, smooth] \draw[smooth, fill, rotate = 180] (0,0.1ex) -- ({0.5ex - 0.3pt},0.45ex) -- ({0.5ex + 0.3pt},0.45ex) -- (1ex, 0.1ex) -- (0.5ex ,0.4ex) -- (0,0.1ex); \draw[white](0,-0.5ex) -- (0, 0); \end{tikzpicture} }}  \newcommand \wcheck [1]{ \accentset{\mycheck}{#1} }


High rep users suggesting edits to authors

I came upon a question where I wanted to make an edit, but I wasn't sure if it would change the original meaning of the question - as I did not know enough about the subject material to be sure.   I could wait for another user to come around and make the edit, but perhaps they wouldn't notice the problem that I wanted to edit. I could also suggest the edit in the comments, but it is such a minor nitpick of grammar that I seemed like a waste of a comment.   Of course, I can't just let a minor grammatical mistake go unnoticed.   So my suggestion is to allow an editor to mark an edit to instead be suggested to the author for approval, if the author believes it does not sufficiently alter the meaning of the question. It would pop up under their usual notification area to approve or reject a suggested edit.   This is different than the 5k/mod suggested edits version in that it would be from a user who could have edited the question, but still seeks the approval of the original poster.


Stack Exchange blog is showing me the mobile site and won't let me exit on Chrome 21. Could someone take a look? Thanks. Edit I noticed it was with the special query string, that I can't exit it.


How to generate unlimited string from keyboard

i need help for generating of unlimited strings from keyboard, but this don't work..  Scanner input = new Scanner(System.in);     ArrayList<String> al = new ArrayList<String>();       String check=null;       while(true){           check = input.nextLine();           if(check == "stop") break;           al.add(check);        }       System.out.println(al); }   }


Let $p$ be prime and $a$ be a natural not divisible by $p$. Then, $\exists$ integers $x,y$ such that $ax\equiv y \pmod{p}$ with $0<|x|,|y|<\sqrt{p}$

I have proven that a function $f(x,y)=ax-y\pmod{p}$ is not injective. I think that is supposed to help.


char s[]="man";  int i;   for(i=0;s[i];i++)  printf("%c%c%c",i[s],*(i+s),*(s+i));   The code might look simple but as a beginner I wasn't able to understand how i[s] gives the output. And how *(i+s) was giving output as n?


Are there other formalisms apart from Newtonian, Lagrangian and Hamiltonian?

Or will there be?   In Newtonian formalism, we appoint a potential, then write newton's eq. which is equivolent to a initial value problem.  In Lagrangian formalism, we appoint a Lagrangian, then write Lagrangian eq.  In Hamiltonian formalism, we appoint a Hamiltonian, then write Hamilton-Jacobi eq.  Are other reasonable mechanisms that can generate dynamical systems?


Would it be possible to have a w3c community? - w3c.stackoverflow.com

I was just at a W3C meeting last night and realized that a Stack Exchange community might just be the type of community that this standards body needs.    How do the other community sites (English Language and Usage, Drupal, Wordpress) get started?


What can a designer do if a client claims that the work delivered is unacceptable and refuses to pay?

I recently had an experience with a client that was a bit messy, and now they don't want to pay for the work I did.   They needed some presentation decks, one of which needed to be editable (text to go on top of graphics) in PowerPoint. I told them that I do not work in PowerPoint as a graphic designer, what I can do is create images that can serve as a background template onto which text boxes on PowerPoint can be created.   From there, my time was highly mismanaged. The person kept directing me to figure out different ways of working around what I proposed and seemed resistant to it. All the research I did, and later confirmed with graphic designers- told me that this was the way to go from Adobe to PowerPoint. I initially did not want to invoice for this time, but they directed me to look into things after I told them I didn't work in PowerPoint.   They fired after I spent days on end working and researching to appease the woman and see if I could find other ways around around her reticence about working with the approach I outlined about.  They then sent me an email that my work was incomplete and unusable and would not pay me (p.s. they fired me before they even reviewed all of it, and what was reviewed was never stated to be incomplete or un-useable). I explained to them that my time was 1) mismanaged and redirected to research and this delayed design time and 2) that I did everything I was directed to and they fired me before any revisions or edits could be made. If they needed something to be created in PowerPoint from the start, they should have told me.   So I was hoping to get advice- it is my understanding that designers don't work in PowerPoint and that I worked around this in the way that it seems everyone I talked to would. Can they do this? We agreed to freelancing per hour, not per project, I did not have a contract unfortunately.


A friend's visa has expired in Thailand. How does he get back to the UK?

A friend in Thailand with no visa has been told he has to leave before the end of the month or he will be put in jail. How do I get him home back to the UK?


Eigenvalues of a nilpotent matrix can only be $0$

Prove that the eigenvalues for a square Nilpotent matrix A can only be $0$.   Definition of nilpotent      A $^n$=$0$   n is a positive whole integer


Can I ping any user I want to take a look at my question?

Assume there's a user with the name Bob on Stack Overlow who might be able to solve my question. If he hasn't seen my question yet, can I ping him to come and take a look?  So when I post     @bob please have a look at it.   will Bob get my notification in his inbox?


Preload images for links that change the background image

I am trying to re create a page that behaves like this page:    I am successfully using jquery to get the background images to change when hovering over my links with this code:  <script> // Since we're using these multiple times, assign them to variables var $link = jQuery('#block-yui_3_17_2_2_1468449172411_5050'); var $image = jQuery('#collection-5786be4ed482e9c3a905d937'); // Get the original background image var originalBackground = $image.css("background-image",       "url(https://static1.squarespace.com/static/57771b9e15d5dbc2f8fc084d/57771c55e3df28c63c9e687f/57771ca7440243196bc6801b/1467423990309/Gator.jpg?format=1500w)"); // jQuery hover supports TWO functions: first is "mouseover", second is "mouseout" $link.hover( // On mouseover, replace image function() {      $image.css("background-image",  "url(https://static1.squarespace.com/static/57771b9e15d5dbc2f8fc084d/57771c55e3df2 8c63c9e687f/57771d441b631b48a1362df6/1467424076131/patagoniawater.jpg?format=750w)");  }, // On mouseout, put original image back function() {     $image.css("background-image",  "url(https://static1.squarespace.com/static/57771b9e15d5dbc2f8fc084d/57771c55e3df28c63c9e687f/57771ca7440243196bc6801b/1467423990309/Gator.jpg?format=1500w)", originalBackground); } ); </script>      HOWEVER, The first time I hover over a link, there is a split second where the background goes to the default background color which is set at transparent.  Once I have hovered over the link once, the background images change back and forth with no background color in between so I'm guessing if I loaded the images, I would not see the background color ever.    Any help would be greatly appreciated!


A better notation to denote arcs for an American high school textbook

For years, I've been using a hobbled together command to get the arc notation as used in the textbooks adopted by high schools in my area.  I'm not really all that pleased with the result:  it's just barely tolerable.  I figured someone in the community here might have a better solution to what I've been getting by with for several years.  \documentclass{article} \usepackage{amsmath,amssymb} %% my poor man's solution to arc notation \newcommand{\tarc}{\mbox{\large$\frown$}} \newcommand{\arc}[1]{\stackrel{\tarc}{#1}} %% \pagestyle{empty} \begin{document}  \begin{align*}     \arc{AC} \\     \arc{BAD}\\     \arc{ICK} \end{align*}   \end{document}


I have Windows and Ubuntu 12.04 running. I wanted to upgrade to 15.04, but the upgrade manager doesn't give that option. I tried  but, it gives me a 404 error. How do i upgrade without affecting the existing partitions on my system adversely.  ANSWER: 12.04 isn't an EOL release. Thanks Arronicle and frkaiem for pointing it out


I understand that once we add __slots__  we are restricting the attributes that can be used in a class, although the primary purpose is to save memory of the created instance (by not storing it in the __dict__ )    But i don't fully understand how  __slots__ behave when inherited.  class Vector(object):      __slots__ = ('name','age')     def __init__(self):         self.name = None         self.age = None   class VectorSub(Vector):     def __init__(self):         self.name = None         self.age = None         self.c = None  a = Vector()  #   b = VectorSub() print dir(a) # __slots__ defined and no __dict__ defined here, understandable  print dir(b)  # Both __dict__ and __slot__ defined. #So __slots__ is inherited for sure.   print a.__dict__ #AttributeError: has no attribute '__dict__, understandable print b.__dict__ #{'c': None} ... How? print b.name # Works, but why?  'name' not in b,__dict__   This is when i am confused. First off, if __slots__ is inherited, there shouldn't even be a __dict__ in "b" since the instance attributes cannot be stored in a dict - by the definition of slots.  Also why is that name and age  are not stored in b.__dict__ ?


Which novel involves vampires, burning satellites, space travel, and body modification?

About a decade ago, I encountered a novel or a novella that I cannot locate.   The setting was Earth, about one century into the future.  I remember vampires and a mesh of satellites around the Earth that were burning up in the atmosphere.  This motivated a mission to deep space to find the intelligence responsible for the satellites.  Most of the novel focused on the crew of the mission — I recall that they were not "standard" humans.  They had modifications to their minds and bodies, possibly for the mission.  At the time, I had gone on a binge, reading many short stories, novellas, and novels in quick succession.  I fear that I might be combining several stories into one, especially the vampires and the deep-space first-contact mission, and so I am fully prepared for an answer of the form, "No such story exists."  Any assistance would be greatly appreciated.


How to Retrieve the Wi-Fi Password of a Connected Network on a Mac

I need to find the password for a Wi-Fi network that I am already connected to. I'm using a MacBook Pro that's running OS X Lion. Any guidance is appreciated.


I would like to make a camera like in most First Person Shooters - similar to GTA. This would mean that the view angle depends on the position of the mouse and the character walks forward, along the view vector.  How can this be achieved in BGE?


Ok so I just took 45 minutes to find and kill the enderdragon! BUT! I have the new Xbox 360 disk for minecraft and I hit the egg... AND IT BROKE DX What do I do to collect it?


Evaluating indefinite integrals of the form $\int \frac{x^2 \,dx}{a x^5 + b}$

Evaluate the indefinite integral   $$\int \frac{x^2 \,dx}{a x^5 + b},$$   for real parameters $a, b \neq 0$.   No apparent substitutions simplify the expression (if the exponent of $x$ were an integral multiple of $3$, this would suggest the substitution $u = x^3$, $du = 3 x^2 \,dx$, but the exponent is not). Applying integration by parts with $u = a x^5 + b$, $dv = x^2 dx$ is straightforward, but it produces an integrand with a much larger degree in the denominator and so appears only to make the situation worse. Applying integration by parts instead with $dw = \frac{x^k dx}{a x^5 + b}$ results in integrating $\frac{x^k dx}{a x^5 + b}$, which except when $k \equiv 4 \pmod 5$ (which doesn't appear immediately fruitful), doesn't appear much easier than the given integral.


I managed to ruin the password so I want to completely reinstall Ubuntu 20.04. I have 'ubuntu-20.04.1-desktop-amd64.iso' on a USB stick but when I try to boot from it I'm told the boot file/s can't be found. I can't use 'sudo' because of the password problem and I've tried several ways to restore privileges to no avail. Will I need to format the drive in order to reinstall Ubuntu? Alan


Cross out the selected text using macro script in TexStudio

I have a Tex file that I need to edit while somehow keeping the original words and sentences highlighted. To do this, I am going to cross out the part of the original text that I replace with my own words. The command \st{TEXT} in the package soul seems to do the job. I'm looking for a way to define a macro in TeXstudio such that by selecting the text, the cross out command encapsulate the text, i.e. \st{THE_SELECTED_TEXT}. I am not familiar with macro programming in TeXstudio.


Is the set of all pairs of natural numbers countable?

Say that $\Bbb N \times \Bbb N$ is the set of all pairs $(n_1, n_2)$ of natural numbers. Is it countable? My hypothesis is yes it is countable because sets are countable. But I am unable to come up with a proof. Is my hypothesis correct? How is it countable?


My computer may have been compromised, what should I do?

A few weeks ago, my machine (lets call it "main") was logged into wirelessly from an unauthorized host, probably using ssh.  I did not detect the intrusion until a few days ago, and my machine is completely shut down.  I found the login using this line from last:  myusername    pts/1        ipad             Tue Oct 15 22:23 - 22:25  (00:02)   Needless to say, not only does no one in my family own an iPad, but almost none of my friends do, either.  This makes me suspect that whoever was behind this changed the hostname of their machine.  Additionally, I discovered this line in the last output on another machine of mine ("secondary"):  myusername    pts/2        :0               Tue Oct 15 22:23 - 22:23  (00:00)   This line coincides with the timestamp from main, which has password-less ssh access (through keys) to secondary.  Is it possible that whoever broke in to main has also rooted secondary?  How can I prevent this from happening again?  Are there logs that I can look through to determine exactly how main was accessed (I am the only user on the system and have a very strong password)?  Is it at all possible that this is just a weird bug that occurred?  Should I, and where should I start looking for rootkits and/or keyloggers?  In short, what should I do?


Power Set of $X$ is a Ring with Symmetric Difference, and Intersection

I'm studying for an abstract algebra exam and one of the review questions was this:     Let $X$ be a set, and $\mathcal P(X)$ be the power set of $X$. Consider the operations $\Delta$ = symmetric difference (a.k.a. "XOR"), and $\bigcap$ = intersection.   a) Does $\Delta$ and $\bigcap$ make $P(X)$ into a ring?   b) If so, is it a ring with unity?   c) Is the ring commutative?   d) Is it a field?   For parts a) and b), I think it does form a ring with unity, but I'm not quite sure how to get started on proving it.   For part c), it is a commutative ring since $\mathcal P(X)$ is closed under symmetric difference and intersection, right?  Not even sure how to get started on d).  I'd really like to understand this question fully, so any kind of input would be tremendously helpful. Thank you!


Imagine that I'm writing the Jordan form of a matrix and I know that the eigenvalue needs to appear 4 times in the diagonal (algebraic multiplicity is 4) and we need 2 Jordan blocks (geometric multiplicity is 2). Now how do I know the size of the blocks? It could be a 1x1 and 3x3 block ou two 2x2 blocks, right?


Not sure if this has been brought up yet, I didn't see a post on it. In the first screenshot below, you can see that some of the code gets cut off.  When I try to scroll horizontally to see what is cut off, it switches to the Answer section. The second screenshot is of me trying to slowly swipe in the code block to the left.


Is there a way to display the number of messages for any label in the Gmail label list?

The Gmail sidebar displays the list of our labels (or some of them, according to settings). Next to every label name there is a number showing how many unread messages we have for that label.  Is there a way to display also the total number of messages for each label?  Example:  [to answer] (0/36) [to do] (0/55) [waiting answer] (0/7) cooking (2/48) family (6/352) friends (1/1828) website (2/412) work (12/12801)


delete all files in a directory with multiple extensions

I have files that fall into two extension categories (.out and .error). Is there a single command that can delete them all at once?   I tried rm -f *.out || *.error but it did not work. Thanks   (i saw the linked post too but am not sure how to deal with multiple extensions still)  Edit: non recursive case


I'm trying to solve hard combinatorics that involve complicated factorials with large values.  In a simple case such as $8Pr = 336$, find the value of $r$, it is easy to say it equals to this: $$\frac{8!}{(8-r)!} = 336.$$  Then $(8-r)! = 336$ and by inspection, clearly $8-r = 5$ and $r = 3$.  Now this is all and good and I know an inverse function to a factorial doesn't exist as there is for functions like sin, cos and tan etc. but how would you possibly solve an equation that involves very large values compared to the above problem without the tedious guess and checking for right values.  Edit: For e.g. if you wanted to calculate a problem like this (it's simple I know but a good starting out problem) Let's say 10 colored marbles are placed in a row, what is the minimum number of colors needed to guarantee at least $10000$ different patterns? WITHOUT GUESS AND CHECKING  Any method or explanation is appreciated!


WDS, but with a wired backbone between the APs?

Can two wireless APs be used to connect to the same L2 network? How? I have a small home network (10-20 devices), both ethernet and 802.11ac. The current situation is:  DHCP server is standalone 192.168.189.1/24, it is also a NAT router. WiFi AP 192.168.189.2/24 ethernet and wifi are bridged in the WiFi AP. So it's all the same L3 network.  Works well. I would like to extend this with a second WiFi AP, 192.168.189.3/24, and keep the same ESSID. 802.11r would be nice. Things I've tried/considered  Bridge the second AP to the ethernet network. WiFi no longer works reliably. I think it's because the mac (of the client) now "belongs" to both APs, and L2 does not know where to send the packets -- to AP1 or AP2? I may be wrong about the reasons, but it does not indeed work reliably. Use WDS. It is too complex, since my APs are connected over the wire; I don't need a wireless repeater.  What would be a simple/typical way to "add" a second AP? Ideally, I would like to retain the current L3 configuration (the same /24, working broadcast, no routing inside, etc). I am on OpenWRT, devices Turris Omnia (AP 1) and Turris Mox (AP 2). The answer may not be OpenWRT-specific, I think I may adjust it if I understand how it would work.


Singular and plural ambiguity of the noun "trio"

According to , a trio is defined as "any group of three persons or things".  trio noun, plural trios. any group of three persons or things.  Trio is a singular noun that refers to a group of people. Is this singular word ambiguous with its plural meaning? This is the sentence that sparked this question:  Without idle chitchat to distract them, the trio was reminded of their missing friend.  The fragment uses the word "them" to refer to the three people. However, should "was" be "were", or is it fine as it is? Since trio means a group of things, yet the word itself is not automatically plural, I find it disconcerting to switch from plural to singular pronouns.


Application to create 3D figures for papers

I would like to know of a good and easy-to-use application to create simple but visually appealing vector figures such as spheres, planes, lines.  It should permit transparencies for example, and 3D coordinate representation to be able to show concepts in the 3D space, such as tangency or crossing.  Thanks!


Using bash, how can I make the pc speaker beep?  Something like echo 'beepsound' > /dev/pcspkr would be nice.


Word for a moment in time defined with beginning and end

What would be a word for a moment in time defined with beginning and end?    This is for a database system where people have predefined time spans that are defined with a beginning and an end point in time (like 2014-04-11 22:15 UTC until 2014-05-22 18:22 UTC). I don't find a decent term for that. The best I could come up so far is "time frame".


(java.lang.StackOverflowError) how do i solve it?

i'm writing a program based on the Quadratic Equation everything looks good to me and there are not syntax or logical errors from what i see and also Eclipse isn't detecting any errors before running.  this is the output from the code: Exception in thread "main" java.lang.StackOverflowError     at QuadraticEquation.getDiscriminant(QuadraticEquation.java:33)     note it continues like this for about 50 lines or so  public class QuadraticEquation {     private double a;     private double b;     private double c;     public QuadraticEquation() {       double a = 0;     double b = 0;     double c = 0;     }      public QuadraticEquation(double newA, double newB, double newC) {         a = newA;         b = newB;         c = newC;     }      public double discriminant1 = Math.pow(b, 2) - 4 * a * c;     public double discriminant2 = Math.pow(b, 2) - 4 * a * c;      public double getA() {     return getA();     }     public double getB() {     return getB();     }        public double getC() {     return getC();     }      public double getDiscriminant() {     double discriminant = (b * 2) - (4 * a * c);         return getDiscriminant();     }      public double getRoot1() {         double r1 = (-1*b) + Math.sqrt(discriminant1) / (2*a);         return getRoot1();      }     public double getRoot2() {         double r2 = (-1*b) - Math.sqrt(discriminant2) / (2*a);         return getRoot2();     }         public void setA(double newA1) {         a = newA1;     }     public void setB(double newB1) {         b = newB1;     }     public void setC(double newC1) {         c = newC1;     } }   import java.util.Scanner;  public class TestEquation {      public static void main(String[] args) {     Scanner input = new Scanner(System.in);     QuadraticEquation Quadratic = new QuadraticEquation();            System.out.println("Please enter the values of the following variables: ");          System.out.println("a: ");         Quadratic.setA(input.nextDouble());          System.out.println("b: ");         Quadratic.setB(input.nextDouble());          System.out.println("c: ");         Quadratic.setC(input.nextDouble());          if (Quadratic.getDiscriminant() < 0) {              System.out.println("The equation has the following roots:");              System.out.println("The first one is " + Quadratic.getRoot1());              System.out.println("The second one is " + Quadratic.getRoot2());           }         else if (Quadratic.getDiscriminant() == 0) {              System.out.println("The equation has one root:");              System.out.println(Quadratic.getRoot1());          }          else {          System.out.println("The equation has the no real roots");          return;          }     }  }


Let $f(x)\in R[x]$ be a zero divisor. How to prove that there is an element $0\neq a\in R$ such that $af(x) = 0$?    If $R$ has no nilpotent elements, it is easy. What about the general case? Can anyone help me? Thanks.


How to determine the components of a velocity vector undergoing a central force

I am busy working on a 3D $n$-body galaxy simulator and I am having some difficulty wrapping my head around determining the initial velocity components of each particle to ensure a circular orbit around a central mass.  I know that the magnitude of the velocity to ensure a circular orbit is calculated from: $$ v = \sqrt{\frac{GM}{r}} $$  How then can I determine what the individual velocity components in 3D will be for the particle?


We are applying for a tourist visa to the UK and I wanted to know if it's ok to mail both our (husband and mine) documents, along with our bio metrics information together to Visa Application Centre? Since, we are applying together for a tourist visa. Thanks so much!


Saturation current in photoelectric effect

While studying photoelectric in my school, my teacher drew a graph of current versus the potential difference across the two electrodes:    I am not able to understand why do we get saturation current. I know that at saturation current all the electrons emitted from the metal surface are able to reach the other electrode. My question is suppose we increase the potential difference between the two electrodes further. I think that one of the following two things should happen:   current may increase as now the electrons in the wire will be under greater potential difference thereby reducing the time in which the electrons complete one round to reach the same point again and hence increasing current. ($V=IR$) current may not be continuous (steady current might not be achieved) as the time taken by the photoelectrons to reach the positive electrode may be more than the time taken by the electrons inside the wire to go from end of the wire nearer to the positive electrode to the  other end.   So in no case should we get a graph as shown in the link.  It may be that I have not understood the photoelectric effect completely. If that is the case please tell me where am i wrong?


What to do when windows D partition has been deleted?

I have made a big mistake - I accidently deleted the D partition and formatted it to NTFS.   Is there a way to recover my data? Is this partition needed by the OS?  Can I live without it?


Regex: decimal positive numbers accepted, but not starting with point

I'm quite new with regular expression, i'm using it in angularjs. I need to check an input field, and I need to accept only positive decimal values with no more than 3 digits after the point:  3 3.5 3.567 0.236   and reject values like  0 0. . .6 .635 3.6589   I tried this regexp:  var result = /([1-9]\d*)\.(\d{1,3})/.test(value) || /[1-9]\d*(?=\s|$)/.test(value);   and more or less it works, but still   it accepts values with more than 3 digits after the point, like 45.9876 it accepts .356 values (a number starting with . )   what I'm missing?


Closing terminal which are not running commands without a prompt

Yesterday I installed Ubuntu 16.10 (Unity) alongside Windows 10 which was already installed.   I found myself using a terminal a lot, but there is something which kinda bugs me: even if no command is running, if I'm logged in as root (I mean after typing sudo su and then my password) when I want to close the terminal it will prompt me with this    How can I close it without that message popping up? I want it to pop up only if the terminal is executing some command.


Why does an interferometer with mirrors even work?

My understanding is being thwarted by something basic I am missing. One starts with a light beam that is split into two perpendicular paths. There are two light paths that travel some distance.  The light bounces off each respective mirror and returns back to the beam splitter/recombiner. If the phase of the light has been shifted in one arm, we should see negative interference when they recombine.I can imagine how one might get phase shifting for example if one mirror was moving relative to the beam splitter. We would have doppler shifting of the frequency coming off the moving mirror. So for an interferometer to work properly, the distance between the beam splitter and each mirror has to stay fixed.   But can this kind of interferometer be used to analyze a process occurring in one of the paths of light? Consider a big diamond sitting in front of one of the mirrors. When light enters a denser medium (like from air to glass) the speed and wavelength of the light wave decrease while the frequency stays the same. But the exact opposite change happens after the light leaves the diamond after having bounced off the mirror. So the interferometer should not be able to detect whether there is anything in the light path. Similarly, any change in spacetime geometry in one of the light paths should not be detectable. (if one light path for example was collinear with the gravitational field of a nearby black hole). Even though space is compressed in one direction, the actual distance is not changed because any 'ruler' you use to measure distance is also likewise compressed.   So how can LIGO measure a gravitational wave?


What software can I use to make a mirror image of Ubuntu?

I used to use Easeus Todo for Windows, or Norton Ghost. What options do I have for linux?


How to make camera rotate around object and take pictures from different angles?

Please give me a script example of how to make camera rotate around object and take pictures from different angles


Can I make files deleted on the NAS automatically go to the recycle bin?

So when I use my desktop and delete \NAS\Files\Directory, that I can still recover the files from the NAS' recycle bin.  The NAS is just a normal Windows share on a Windows 7 computer. I don't like the idea that removing a file is permanent.  Currently when I delete a file on the Windows share over the network, it will not be moved to the recycle bin, but removed permanently. This seems normal behavior.


When I am changing (on my debian box) to the root user with su, apparently the PATH is not correctly set. Some vital directories like usr/local/sbin are missing.  In /etc/profile I have the following lines (apparently standard default stuff not written by me):  if [ "`id -u`" -eq 0]; then     PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin/:/usr/bin:/sbin:/bin" else     PATH="/usr/local/bin:/usr/bin:/bin" fi export PATH   In /etc/login.defs I have (also default stuff):  ENV_SUPATH PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin   Why is my PATH not correctly set when I do su?


What is the main difference between command latex, tex, pdflatex, pdftex ... and all the other commands?

I am new to TeX world, and I use pdfLatex very often.  But sometimes pdfLatex do not work. So I begin to wonder what the difference between all these tex commands.   Please give me some guiding information about all these command to make me stay away from confusion.   I will appreciate every comment or answer.  Thanks.


Is my HDD failing as SMART parameter (Reallocated Sector count) is very high(390K)

I have a 2 year old 500GB HGST 5400rpm laptop HDD. I started tracking its SMART parameters a while ago, and number of Reallocated sectors(in decimal) has  increased from 65k in Nov,2015 to 393264 in May,2016.Refer to the link below to view the history of the this parameter.    My HDD is working fine but I am really worried that it may one day unexpectedly fail due to increasing number of Reallocated sectors.Should I be worried?


File is re-creating automatically on change

I have a weird problem on server after the attack. In the web folder I have the index.php with malicious content. When I try to delete, rename it or change its content it is re-created somehow.  I checked crontab and ps but I haven't found anything suspicious.  Also it is very interesting that if I change the owner of the file to root it is still re-creating without any problem.   Server system name and version: Debian GNU/Linux 8 (jessie)


check given date is between two dates in List

I have LinkedList of generic Date  LinkedList<Date> dateList = new LinkedList<Date>();`         try         {         a= sdf.parse("21/03/2000");         b= sdf.parse("21/03/2006");         c= sdf.parse("18/09/2008");         }catch(ParseException pe)         {             System.out.println("not a date formate");         }         dateList.add(a);         dateList.add(b);         dateList.add(c);   if a user enters a date i.e 12/05/2002, so the user should get a prompt that the entered date is between 21/03/2000 and 21/03/2006 and also it should give the answer that "the given date is coming after 21/03/2000".  I tried sorting. but didn't work. new to Date class.


Use Taylor's theorem to prove that $\displaystyle\lim_{n \to \infty} n \ln\left(1+\frac{1}{n}\right)=1$  I don't understand how to apply Taylor's theorem to a limit, especially one with a product of two functions...


I'm trying to create a one-liner which should remove excess files from dir to save it from consuming too much space.  ls -r --sort=time | head -${{ls | wc -l} - n} | xargs rm -f   n should stand for number of files I want to keep in directory.  I'm doing something wrong here and can't figure out what. Can someone help please?


Algorithmic complexity O(n*log(n))- Do we need to divide by 2?

In many definitions of O(n log(n)), I typically see as a requirement that the subproblem must be a division of the original problem size by two. However, in particular, I have seen that O(log(n)) need only be a problem of reducing size.   Do we necessarily need to divide the problem into halves to get a problem of nlog(n)?  Or could it be merely a reductive problem? Like so:  for (i = 0; i < A.length(); i++) {     for (j = i; j < A.length(); j++)     {         //do something     } }   Would something like this also be categorized as n(log(n))? Or is it closer to O(n^2)?


Asus laptop suddenly stuck at UBUNTU loading screen

My asus laptop suddenly stuck at UBUNTU loading screen, it keeps on loading for ever. It flashes after 1 or 2 seconds with black screen and with some writing.  It has AMD graphics card.  So all the other solutions that I tried didn't work as they were for NVidia.  Seeking help


When I render using my r9 390 graphics card, weird lines are appearing over the render. This problem has just started happening recently, as a few days ago I was rendering the same scene without the lines appearing. I don't believe I've changed any settings in Blender and the below scene is from a new file, so render settings should be default.   Rendering using my CPU is fine:   The only thing I can think that has changed is I recently updated my card to the latest drivers. Playing games with it is still fine and the card is quite new so I wouldn't think it's a problem with the card itself.


Finding all entire functions such that for all $|z| \geq 1$ we have $|f(z)| \leq \frac{1}{|z|}$

I am studying for my complex analysis exam and this question popped up few years ago on the "mini quiz":  Find all $f \in H(\mathbb{C})$ such that for all $|z| \geq 1$ we have $|f(z)| \leq \frac{1}{|z|}$.  The hint was to use some theorem about entire functions. Could anyone give me a hand? I have no idea how to tackle this and this seems like one or two liner.


Which is the correct way to start a letter ? - 1) Hi, Joe, or 2) Hi Joe,

The question is whether we require a comma after 'Hi' or not.


How to configure Remmina for VNC desktop sharing?

I'm trying to connect two PCs for desktop sharing, I was able to set up ssh shell and file sharing but I failed to connect to VNC server.  There are additional packages that I need to install on my machines?  And how should I fill this dialog:


How do I stop web pages/scripts from intercepting some (or all) of my keystrokes or hotkeys (e.g. Ctrl+Z)?

Many websites (including this one) seem to think it's acceptable to assign their own custom functionality to system hotkey combinations.  For example, this text box I'm typing in right now has custom "undo" functionality which overrides the system default Ctrl+Z with its own (crappy) implementation.   How do I prevent JavaScript from intercepting some or all of my keys so I can regain control of my browser?


How to upgrade my HTC desire 816 with lollipop

How can I upgrade my HTC desire 816 to lollipop


Bluetooth from the command line in 12.04?

I've been trying to pair up my bluetooth keyboard with my computer after reinstalling from a standard ubuntu 12.04 to a minimal install.  In the minimal install I have no gui, so I've been trying to use the various command line tools available, but I can't figure out how the pairing is supposed to go. Pairing when I had a gui worked flawlessly.  I've asked for help here:   No one has replied but a lot of details of my situation is available there.  How is one supposed to pair bluetooth devices from the command line?


Can't Find the Ubuntu Software Center After upgrade to Ubuntu 18.04

I upgraded my Linux Ubuntu to Ubuntu 18.04 and Software Center seems to be missing. I tried to install from Command line.  But I endup with the following Error.  > user@user-HP-ProBook-450-G2:~$ sudo apt-get install software-center > [sudo] password for user:  Reading package lists... Done Building > dependency tree        Reading state information... Done Package > software-center is not available, but is referred to by another > package. This may mean that the package is missing, has been > obsoleted, or is only available from another source >  > E: Package 'software-center' has no installation candidate > user@user-HP-ProBook-450-G2:~$ ^C user@user-HP-ProBook-450-G2:~$


I can't click the buttons which I've charged in a innerHTML call

I hope not repeat the topic, I don't find a post about it... I'm developing a webapp for FirefoxOS. I have a issue where I want to show more items when I click a button, and a item from those new items (another link) would be able to be click too and do what we want (call console in the example).  I have two  tags in HTML:   One // if you click in this "one" link, you will see some text in console.log.  Two // if you click in this "two" link, you will charge on UI some new text and buttons.

    Then, in JS file I have:  $('one').click(function(){   console.log("one"); });  function showItemsFromDB(element){    document.getElementById('show_text').innerHTML +=      "
"+       "
"+       "Number: "+ element.key+       "
Frecuency: " + element.value.frecuency +       "
"+       "ONE"+     "
"; }  $('two').click(function() {   showItemsFromDB(element); });   If I click in the first link , I could see in console.log the text "one". OK!!  When I click the second one , in the UI I can see the new items (text about the key number and frecuency and a link). If I click in this new link (which is a copy of ), it doesn't do anything...why??  Thanks in advance


Difference between “was seated” and “was sitting”

What is the difference between below sentences.     He was seated in front of me.     and        He was sitting in front of me.


Which should I use on my DB? - Clustered Index or Non Clustered Index or Both

I just need advice on how I am going to optimize my database.  | Date | Time | Area | Block | Data1 | Data2 | Data3 | DataN |  I have that format of tables on my database. Each tables has 30-days of records with hundred thousands of records each data. Uploading of data to database is every morning. The data of yesterday will be uploaded.  The most common queries to run is grouped by Date or Date and Area or Date and Area and Block. Now, in order to make queries faster, I found out using indexes. I used indexes before. But that was when I am using a primary key. In this table, I didn't use primary key because it is totally unnecessary.  Now, I am really confused on how I am going to optimize this. Based on  on Column Considerations part, clustered index is not a good choice on Columns that undergo frequent changes. I am really confused.  Please help me if I need to use clustered index here or just non clustered or both.


Republish / Change Publish Date Of An Article - Any SEO Help/Harm?

My sites has some old tutorials, which I am planning to update according to the latest version and change the publish date so that visitors can see it as a fresh tutorial.  I am just concerned whether it will do any harm to the tutorial SEO or otherwise have any benefit or not. Any suggestions/feedback is appreciated.


OSS Server Monitoring Software -- Which is right for me?

I'm trying to plot the course for my organization and am currently looking at (not exclusively so, but so far research leads to these):  Zenoss  Nagios  OpenNMS  Our requirements is that this must be freely licensed, support SNMP/WMI monitoring, as well as alternative monitoring for situations where firewalls block SNMP/WMI (eg: webservice, TCP, agent)  At a minimum we're looking for graphical network map with uptime statistics, traffic stats, service availability, and hardware monitoring.  We have a custom agent that collects very detailed/granular hardware information on our supported systems , and will be making efforts to tie this into whatever NMS we choose. That sort of piqued my interest on OpenNMS as we might be able to directly forward our data to our NMS system without a lot of fidgeting.  Can someone help elaborate what I can do with Zenoss vs nagios? Any product will be likely used as the "free' version.  I suppose VMWare/Virtualization support for monitoring VMs is something that should be considered as well.  Trying to digest a lot of information and any help/guidance is appreciated!


Random images appearing in my home directory... Where are they coming from?

Here's an odd problem I've had for a while. Every so often, I find that I have several jpeg images sitting in my home directory that I didn't put there. I'm fairly sure this isn't a security breach but rather, there's something writing these files in there that I've forgotten about.  Here's what I'm looking at today:  oli@bert:~$ ls -l *.jpg -rw------- 1 oli oli  8061 2010-11-19 18:30 An-alien-from-Mars-Attack-002.jpg -rw------- 1 oli oli 24362 2010-11-19 18:30 An-alien-from-Mars-Attack-006.jpg -rw------- 1 oli oli  8147 2010-11-05 18:08 Avatar-Film---2009-002.jpg -rw------- 1 oli oli 35602 2010-11-05 18:08 Avatar-Film---2009-006.jpg -rw------- 1 oli oli  6058 2010-12-03 18:42 Britney-Spears-victim-of--002.jpg -rw------- 1 oli oli 28330 2010-12-03 18:42 Britney-Spears-victim-of--006.jpg -rw------- 1 oli oli  8135 2010-11-12 19:19 charlie-brooker-twitter-p-002.jpg -rw------- 1 oli oli 22115 2010-11-12 19:19 charlie-brooker-twitter-p-006.jpg -rw------- 1 oli oli  8059 2010-10-29 18:47 Leonardo-DiCaprio-002.jpg -rw------- 1 oli oli 29988 2010-10-29 18:47 Leonardo-DiCaprio-006.jpg -rw------- 1 oli oli  8064 2010-10-22 16:41 Spot-the-difference-.-.-.-002.jpg -rw------- 1 oli oli 29188 2010-10-22 16:41 Spot-the-difference-.-.-.-006.jpg   They all seem like they're TV or film related... But I honestly don't have a clue what could be writing them. They don't bother me enough to go on a full-scale witch hunt but if anybody knows of something that writes images in the home directory like this, please let me know.


Ctrl + Shift + m works in the folders, but not on the Desktop to create shortcuts

I'd like to create a desktop shortcut of a folder by using Ctrl+Shift+M; the problem is that this key-combination works in the folders, but not on the desktop. How can I fix it?


Android phone lost, what data can I get onto new phone?

Sorry about the clumsy question.  My Android HTC Magic was lost/stolen last night. I had an unlock swipe code, power-on SIM code and have called the phone company and had it blocked, so not too concerned about the phone itself being used by someone else.  What I am thinking about is when I get a new phone, what data/info can I get back easily as I can't just copy it from the old phone now? Obviously GMail/Contacts/Calendar are all stored on the web, any purchased apps are linked to my Market login, and I'm not concerned about photos, music etc that were on the SD card.  What I'm more concerned about are my preferences, settings, SMS texts, list of installed apps, prefs, data from those apps, etc. Are those all gone?  Addendum: I was thinking of rooting the phone, so did take a standard Nandroid backup a week ago that I have a copy of on my PC, if I get an identical model of phone and restore that, will my data come back? Also what happens if I try to restore that onto a different model of phone (I'm assuming bad things would happen)?


What is the default root password for a Toshiba Chromebook 1?

I powerwashed my device, so that it would be 'brand new,' but now I don't have sudo access. I am using a Toshiba Chromebook 1, which is a linux device. What is the default root password?


Can I drive my own car with mexican plates in Canada? For how long?

I am a dual Canadian and EU citizen living in central america. I bought a new car in Mexico, have mexican tags and insurance that has coverage for Mexico, Usa and Canada up to 100k USD (is this enough?). I am planning to drive up to Canada for a short visit, one month or maybe two. The confusion starts here.   I have a EU drivers license, haven´t been to Canada for 20 years. I know that my EU drivers license is valid in Canada (at least Ontario province) for a maximum of 2 months. Is this correct? Then the next question is if I can legally drive the mexican car as a canadian citizen with canadian passport but without a canadian drivers license a mexican plated car for a short period of time in Canada without facing any problems at the border or then inland? In the US it is quite clear with a valid insurance for the US. I appreciate any information also for the same questions regarding USA, but specifically Canada. Thanks.


Can I chat with a friend on Xbox 360 when I'm on Xbox One?

If I am playing a game on Xbox One, can I chat with a friend that is on Xbox 360?


Why do I have (master|MERGING) on the command line and how do I get rid of it?

For some reason whenever I go to my command line this is what I see next to my cwd:    I few days back I got an error message that said I had a merge conflict. I didn't know what this meant so I stopped trying to commit. Now whenever I go onto the git terminal I see (master|MERGING). And whenever I try to commit (even when it's not on the same remote) I get a lengthy error:    It says to fix the error but I'm not sure how to go about that. What exactly do I need to do?


Creating a new user with SSH access on ec2

I'm trying to add a new user to an EC2 instance and giving that user SSH access. (RHEL 6.5)  I do this by copying the content of .ssh from the default ec2-user's home dir to the new user's home dir. I change the ownership of the dir and the content so that the new user is the owner.  However when I try to SSH into the machine with the new user, I get "access denied"  ssh -i my.pem new-user@<ip>   while  ssh -i my.pem ec2-user@<ip>   still works  (I have set a password for the new user, and there is no white/black list in the ssh config file)  Am I failing to see the consepts of ssh and keypairs here or is this a ec2 related thing?


$f_{n+1}(x):= \int_a ^x f_n(t)dt$, $\sum_{m=1} ^{\infty} f_m(x)$ is uniformly convergent

Let $f_1 : [a,b] \rightarrow \mathbb{R}$ be an integrable function.  Let's define a sequence $(f_n)$,  $ \ \ f_n : [a,b] \rightarrow \mathbb{R}$ as $f_{n+1}(x):= \int_a ^x f_n(t)dt$.'  Prove that  $\sum_{m=1} ^{\infty} f_m(x)$ is uniformly convergent on $[a,b]$.  Could you help me with that?  Thank you.


How to check if an integer is a perfect square

How could I write an if-then statement that checks if an inputted integer is a perfect square or not (i.e. if I took the square root, it would be an integer as well: 4, 9, 16, 25, 36, etc.) in DrJava? Thank you!