I am very new to ubuntu/linux. I have recently switched my laptop to Ubuntu 13.04 after I had an issue with Vista.   I have downloaded one of my favorite old games, Panzer General. I downloaded the zip file extracted it gotten the .exe file and am able to get it to run by right-clicking and using Open With...WINE windows program loader. However, if I go into properties(to make it the default), WINE does not appear in the list of applications to 'Open With' and the add button is un-clickable.   Any help would be great, thanks!

I have already read the question about  but this is not what I want, I want to be able to click on the file in Dash or in Nautilus and be able to open it with the specified app.  For example I have this case right now:  When I click on an EXE file it does not get executed by Wine, instead I get the following:    If I try to look for Wine in the Open With context menu option it is there. I am fine executing it from there the first time, but then the following times Wine does not appears selected in the main Context menu:    I then went to Properties to the Open With Tab to look for Wine. It was not in the Default apps nor was it in the Recommended ones when I clicked and search on Show other applications    This is not limited to EXE extensions. It also has happened with MKV files, MP4 files, JPG, PNG, MP3 and even SVG and CSS. So instead of trying to find a way of solving it for one, I want a way that can be done to any type of extension that can:   Make the app the default of that extension Appear on the context menu in Nautilus when I right click on the file Appears on the "Open With" tab on the Property window of the file Correctly executes the specified app when I click on the file with Dash   This might sound like it should be common sense for an app to execute the file but it does not always work like that. So for the cases where it actually does not work, how to fix it. A reset of the extension?, An update of the files that can open said extension?, an addition of the app via a command line or GUI tool?


Not that stars that you get at the end of the races. But you can get up to 6 stars (I believe) and they show up in the upper left portion of the screen. What do those do?

In the top left corner of the post-race menu, there is a prompt to press + to add (or remove) one star out of six. What do these stars do?


How do I pronounce R² as seen in chemistry formulas or maths? I can pronounce it as "R-square" but what other word is there for "square"?

How do you say the mathematical function in English:     x^y (or xy)   For example, how do you say      2^16  (or 216)   I know ^ means 'power' or 'exponentiate', but that is the name of the operation, not how you pronounce its use.  If y = 2, it is 'x squared', y=3 then 'x cubed'. What if y is some other arbitrary number?


Im a beginner at programming and im currently learning C# in school. I've got a task to make an array containing every number between 1-20 in order of size. Then randomize the order in which the numbers appear in the array. I've tried different methods, but i can't seem to get it to work. This is what im working with at the moment:          int random = 0;         Random rNG = new Random();         int[] twenty = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 };         int[] check = new int[20];         for (int i = 0; i < 20; i++)         {             random = rNG.Next(1, 21);             foreach (int check2 in check)             {                 if (random != check2)                 {                     check[i] = random;                     twenty[i] = random;                     break;                 }             }         }          foreach (int write in twenty)         {             Console.Write(write + ", ");         }   Coding in Visual Studio 2015 in a console project.  Thanks in advance for the help/suggestions!

What is the best way to randomize an array of strings with .NET? My array contains about 500 strings and I'd like to create a new Array with the same strings but in a random order.  Please include a C# example in your answer.


I am currently trying to automatically wake up my PC early in the morning after I put it to sleep at night. I have created a task via Windows task scheduler (enabling it to wake up the PC) but it's not working at all and I have to wake up the PC manually and it's not even showing up as a wake timer.    In the above album are my task settings and current power plan's wake timers settings. Is there anything else I should check?

I'm got a custom built PC running 64 bit Windows 7 Ultimate. So far everything works great except for one thing: it will not wake up from sleep mode for a wake timer or scheduled task.  Sleep mode itself works great. If it's sleeping, it wakes successfully when I press the power button, mash the keyboard, wiggle the mouse, or send a WOL packet. The only problem is wake timers. I even tried the program  but it looks like that uses wake timers, so it doesn't do anything for me either.  And yes, wake timers are enabled:    Any ideas on how to fix the problem, or troubleshoot it? I'd imagine that there would be a log somewhere telling me exactly why the wake timers are having trouble, but if there is I haven't found it.


I need to suggest a tool to build a map together, ie. let multiple users add POIs and routes on a map.  I know about OSM-based  but are there other online tools I should know about?

I am looking at collecting spatial information from a range of stakeholders to identify opportunities within a landscape.  However, the data that we are collecting are not presently mapped and so we wish to use an interactive method to get this information onto a map.  Which online websites/methods would people recommend for circulating to a non-technical audience to try and get them to map what they know?    Where the emphasis is on ease of use by the stakeholder.


I have some initial conversations related to the scope of the research area with my potential supervisor. I took a course with him as well. He knows me well too. I asked him to supervise me in my first e-mail. He did not tell me his opinion though. However, I am not sure he will take me or not as thesis student. How can I ask him politely to know about his consent to supervise me? I appreciate your help!

When needing to ask a professor about something important and potentially delicate, what is an appropriate way to phrase the question or write the email?  Examples include:   Requesting a recommendation letter Asking for exceptions to policy (e.g., ignoring a course prerequisite, rescheduling an exam) Asking if you can do research with them, join a group, get into a program Scheduling a meeting, exam, or defense Letting them know about a change of plans Letting them know about a life event affecting your work or studies (e.g., wedding, funeral, sickness, vacation)


Can I say Mr. Smith is a teacher that I really like. OR Mr. Smith is a teacher whom I really like.

That is the lady [which / that / who / whom / (none of these)] I told you about.  I failed this test question when I used none of the options, saying: "That is the lady I told you about". Some constructive criticism would be most welcome.


I have already seen the questioned in the stack overflow that might relate to my problem but let me emphasize that none of them could resolve my issue.  issue is: when I wanted to integrate OWASP WebGoat application with oracle XE 11g , I receive the above mentioned error.  connection URL in web.xml is:  jdbc:oracle:thin:@//localhost:1521/XE/${USER} ================================================================= listener.ora:  SID_LIST_LISTENER =   (SID_LIST =     (SID_DESC =       (SID_NAME = PLSExtProc)       (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)       (PROGRAM = extproc)     )     (SID_DESC =       (SID_NAME = CLRExtProc)       (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)       (PROGRAM = extproc)     )   )  LISTENER =    (DESCRIPTION_LIST =     (DESCRIPTION =       (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))       (ADDRESS = (PROTOCOL = TCP)(HOST = Amir-PC)(PORT = 1521))     )   )  DEFAULT_SERVICE_LISTENER = (XE) ============================================================= tnsnames.ora:  XE =   (DESCRIPTION =     (ADDRESS = (PROTOCOL = TCP)(HOST = Amir-PC)(PORT = 1521))     (CONNECT_DATA =       (SERVER = DEDICATED)       (SERVICE_NAME = XE)     )   )  EXTPROC_CONNECTION_DATA =   (DESCRIPTION =     (ADDRESS_LIST =       (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))     )     (CONNECT_DATA =       (SID = PLSExtProc)       (PRESENTATION = RO)     )   )  ORACLR_CONNECTION_DATA =    (DESCRIPTION =      (ADDRESS_LIST =        (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))      )      (CONNECT_DATA =        (SID = CLRExtProc)        (PRESENTATION = RO)      )    )  =================================================================== java version:  java version "1.7.0_55" Java(TM) SE Runtime Environment (build 1.7.0_55-b13) Java HotSpot(TM) Client VM (build 24.55-b03, mixed mode, sharing) =================================================================== output of the lsnrctl services:  LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 09-MAY-2014 16:34 :07  Copyright (c) 1991, 2010, Oracle.  All rights reserved.  Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))) Services Summary... Service "CLRExtProc" has 1 instance(s).   Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...     Handler(s):       "DEDICATED" established:0 refused:0          LOCAL SERVER Service "PLSExtProc" has 1 instance(s).   Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...     Handler(s):       "DEDICATED" established:0 refused:0          LOCAL SERVER Service "XEXDB" has 1 instance(s).   Instance "xe", status READY, has 1 handler(s) for this service...     Handler(s):       "D000" established:0 refused:0 current:0 max:1022 state:ready          DISPATCHER           (ADDRESS=(PROTOCOL=tcp)(HOST=Amir-PC)(PORT=2403)) Service "xe" has 1 instance(s).   Instance "xe", status READY, has 1 handler(s) for this service...     Handler(s):       "DEDICATED" established:0 refused:0 state:ready          LOCAL SERVER The command completed successfully ===================================================================== output of the tnsping xe :  TNS Ping Utility for 32-bit Windows: Version 11.2.0.2.0 - Production on 09-MAY-2 014 16:35:19  Copyright (c) 1997, 2010, Oracle.  All rights reserved.  Used parameter files: C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.ora  Used TNSNAMES adapter to resolve the alias Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = Amir-PC) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE))) OK (0 msec) could some one please help me resolve this issue? I have been struggling more than 3 days and not found any useful answer yet.

I have already seen the questioned in the stack overflow that might relate to my problem but let me emphasize that none of them could resolve my issue.  issue is: when I wanted to integrate OWASP WebGoat application with oracle XE 11g , I receive the above mentioned error.  connection URL in web.xml is:   jdbc:oracle:thin:@//localhost:1521/XE/${USER}   ================================================================= listener.ora:  SID_LIST_LISTENER =   (SID_LIST =     (SID_DESC =       (SID_NAME = PLSExtProc)       (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)       (PROGRAM = extproc)     )     (SID_DESC =       (SID_NAME = CLRExtProc)       (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)       (PROGRAM = extproc)     )   )  LISTENER =    (DESCRIPTION_LIST =     (DESCRIPTION =       (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))       (ADDRESS = (PROTOCOL = TCP)(HOST = Amir-PC)(PORT = 1521))     )   )  DEFAULT_SERVICE_LISTENER = (XE)   ============================================================= tnsnames.ora:  XE =   (DESCRIPTION =     (ADDRESS = (PROTOCOL = TCP)(HOST = Amir-PC)(PORT = 1521))     (CONNECT_DATA =       (SERVER = DEDICATED)       (SERVICE_NAME = XE)     )   )    EXTPROC_CONNECTION_DATA =   (DESCRIPTION =     (ADDRESS_LIST =       (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))     )     (CONNECT_DATA =       (SID = PLSExtProc)       (PRESENTATION = RO)     )   )  ORACLR_CONNECTION_DATA =    (DESCRIPTION =      (ADDRESS_LIST =        (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))      )      (CONNECT_DATA =        (SID = CLRExtProc)        (PRESENTATION = RO)      )    )    =================================================================== java version:  java version "1.7.0_55" Java(TM) SE Runtime Environment (build 1.7.0_55-b13) Java HotSpot(TM) Client VM (build 24.55-b03, mixed mode, sharing)   =================================================================== output of the lsnrctl services:  LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 09-MAY-2014 16:34 :07  Copyright (c) 1991, 2010, Oracle.  All rights reserved.  Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))) Services Summary... Service "CLRExtProc" has 1 instance(s).   Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...     Handler(s):       "DEDICATED" established:0 refused:0          LOCAL SERVER Service "PLSExtProc" has 1 instance(s).   Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...     Handler(s):       "DEDICATED" established:0 refused:0          LOCAL SERVER Service "XEXDB" has 1 instance(s).   Instance "xe", status READY, has 1 handler(s) for this service...     Handler(s):       "D000" established:0 refused:0 current:0 max:1022 state:ready          DISPATCHER <machine: AMIR-PC, pid: 5740>          (ADDRESS=(PROTOCOL=tcp)(HOST=Amir-PC)(PORT=2403)) Service "xe" has 1 instance(s).   Instance "xe", status READY, has 1 handler(s) for this service...     Handler(s):       "DEDICATED" established:0 refused:0 state:ready          LOCAL SERVER The command completed successfully   ===================================================================== output of the tnsping xe :  TNS Ping Utility for 32-bit Windows: Version 11.2.0.2.0 - Production on 09-MAY-2 014 16:35:19  Copyright (c) 1997, 2010, Oracle.  All rights reserved.  Used parameter files: C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.ora   Used TNSNAMES adapter to resolve the alias Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = Amir-PC) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE))) OK (0 msec)   could some one please help me resolve this issue? I have been struggling more than 3 days and not found any useful answer yet.


Here is my graph with a part of code:  \tikzstyle{bag} = [text width=2em, text centered] \tikzstyle{end} = [] \begin{tikzpicture}[sloped] \node (a) at ( 0,0) [bag] {$\ln r_0$}; \node (b1) at ( 3,1.5) [bag] {$\ln r_{10} + \sigma_1\sqrt{\Delta t_1}$};     But I want label setting above the node like    Furthermore, how to control the size of  words and don't change the line?

I want to plot this graph, but I don't know how to code the words in the nodes.     Here is my code:  \documentclass{article} \usepackage{amsmath} \usepackage{titletoc} \usepackage{tikz} \usetikzlibrary{trees,positioning,fit}  \begin{document}{\allowdisplaybreaks[4]}  \tikzstyle{bag} = [text width=2em, text centered] \tikzstyle{end} = []  \begin{center} \begin{tikzpicture}[sloped] \node (a) at ( 0,0) [bag] {$\ln r_0$}; \node (b1) at ( 3,1.5) [bag] {$\ln r_{10} + \sigma_1\sqrt{\Delta t_1}$}; \node (b2) at ( 3,-1.5) [bag] {$\ln r_{10}$}; \node (c1) at ( 6,3) [bag] {$\ln r_{20} + 2\sigma_2\sqrt{\Delta t_2}$}; \node (c2) at ( 6,1.5) [bag] {$\textrm{Mean} = \ln r_{20} + \dfrac{3}{2}\sigma_2\sqrt{\Delta t_2}$\\$\textrm{Mean Change} = \mu_{11}\Delta t_2 = \ln\dfrac{r_{20}}{r_{10}} + \dfrac{3}{2}\sigma_2\sqrt{\Delta t_2} - \sigma_1\sqrt{\Delta t_1}$}; \node (c3) at ( 6,0) [bag] {$\ln r_{20} + \sigma_2\sqrt{\Delta t_2}$}; \node (c4) at ( 6,-1.5) [bag] {$\textrm{Mean} = \ln r_{20} + \dfrac{3}{2}\sigma_2\sqrt{\Delta t_2}$\\$\textrm{Mean Change} = \mu_{11}\Delta t_2 = \ln\dfrac{r_{20}}{r_{10}} + \dfrac{3}{2}\sigma_2\sqrt{\Delta t_2} - \sigma_1\sqrt{\Delta t_1}$}; \node (c5) at ( 6,-3) [bag] {$\ln r_{20}$}; \draw [->] (a) to node [below] {} (b1); \draw [->] (a) to node [above] {} (b2); \draw [->] (b1) to node [below] {} (c1); \draw [->] (b1) to node [below] {} (c2); \draw [->] (b1) to node [below] {} (c3); \draw [->] (b2) to node [below] {} (c3); \draw [->] (b2) to node [below] {} (c4); \draw [->] (b2) to node [below] {} (c5); \end{tikzpicture} \end{center}  \end{document}       Update code use  \draw [->] (a) to node [below] {} (b1.south east); \draw [->] (a) to node [above] {} (b2.north east); \draw [->] (b1.south east) to node [below] {} (c1.west); \draw [->] (b1.south east) to node [below] {} (c2.west); \draw [->] (b1.south east) to node [below] {} (c3.west); \draw [->] (b2.north east) to node [below] {} (c3.west); \draw [->] (b2.north east) to node [below] {} (c4.west); \draw [->] (b2.north east) to node [below] {} (c5.west);


I have the following question:     With the usual inner products that come in mind, $C[0,1]$ is not a Hilbert space. But is it true that every inner product fails to turn $C[0,1]$ into a Hilbert space? If so, then I   would be curious, how to prove this.   Thank you very much for the help!  Yes, I would be interested in the case that the inner product on $C[0,1]$ gives an equivalent topology as the sup norm on $C[0,1]$, but I forgot to clarify this, when typing the question.

Let $\mathrm{C}[0,1]$ be the space of continuous functions $[0,1]\rightarrow \mathbb{R}$ endowed with the norm $||x||_{\infty}=\mathrm{max}_{t\in [0,1]}|x(t)|$. It is easy to verify that this norm is not induced by any inner product (really the parallelogram law fails for $x(t)=t$ and $y(t)=1$). Well, how to understand that this norm is not equivalent to anyone induced by an inner product? So, the norms induced by inner products should have some special properties...


I've tried the following code but this is giving me a output that i'm unable to predict. Please help me in scanning this code. l=[['d','e','f'],['a','b','c'],2,3,4,5] l[:2][1:2]  Output: [['a', 'b', 'c']]

I need a good explanation (references are a plus) on Python's slice notation.   To me, this notation needs a bit of picking up.   It looks extremely powerful, but I haven't quite got my head around it.


I tweet useful Stack Overflow questions so I can find them again easily. Is there a common hashtag for Stack Overflow like #stackoverflow or #so?

I wanted to tweet something on the lines of "Stack Overflow is awesome". When I do this kind of stuff, I usually use a username (for example: ) or a hashtag ()  I found , but it seems it is from someone unrelated with Stack Overflow.  Is there a Twitter account I can reference, or should I use a hash-tag? Should I just point to the site?  Thanks!  (Notice: I've seen lots of questions regarding Twitter and Stack Overflow, but those are mostly about integration/login with Twitter for the users accounts; I'm just asking for a single account for Stack Overflow; probably for announcements and PR, which is different)


I need to process a file like below in the bash script:  input.txt:  host1 53 host1 123 host2 0 host1 222 host3 1 host1 85 host1 25 host1 13 host3 8 host2 90   I need to get in the results only one line for each host based on maximum value in column 2:  output.txt:  host1 222 host2 90 host3 8   Any ideas?

I have some very large tables and I need to extract specific rows. I am illustrating the task using a simple example. Say, I have weighed a number of apples, bananas and oranges. I need to extract the weight of the smallest apple, banana and orange  Original table:  Apple 3 Banana 8 Orange 2 Apple 7 Banana 9 Orange 13 Apple 9 Banana 1 Orange 11   Desired output:  Apple 3 Banana 1 Orange 2


In the Dragonball series, Goku's power increases as he fights with his enemies. He becomes Super Saiyan, then Super Saiyan level 1 to Super Saiyan level 100. Is the power of Goku unlimited?  And was Gohan superior to Goku in the context of power?

After seeing the Dragonball series in cartoons and in movies, I'm confused about the actual power of Goku.    Everytime he fights, he proves himself more powerful than previously.  What about his son Gohan?  Is he even more powerful than Goku? What is the Goku's power level?


So I have already attempted the solutions that were posted here, and I still get the same issue even after reinstalling QGIS:   I keep getting the following error message:  libpng warning: Application was compiled with png.h from libpng-1.6.36 libpng warning: Application  is  running with png.c from libpng-1.2.56 libpng error: Incompatible libpng version in application and library   And then when I try to open anything with QGIS, it crashes and then I get this message in the terminal:  libpng warning: Application jmp_buf size changed QGIS died on signal 11Could not attach to process.  If your uid matches the uid of the target process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf ptrace: Opération non permise. No thread selected No stack. gdb returned 256 Abandon (core dumped)   I have tried to rebuild GDAL, which I have installed from source, with updated libpng headers, but that didn't fix my issues. I also installed QGIS from the following apt repository:  Atteint :8 https://qgis.org/ubuntu disco InRelease      And with my installed QGIS, I tried the following command, and I got nothing back:  ldd `which qgis` | grep png   I am at a loss as to what to do, short of completely reininstalling Ubuntu.  Has anyone else encountered this issue and found a way to fix it?  EDIT: This is not a duplicate question because there are additional error messages that came with this particular issue, and the fixes that addressed the previous so-called "duplicate" question, as I stated before, did not work. If they worked, and if there weren't also new error messages that make this situation different, then I wouldn't be asking it.

I'm using ubuntu 18.04 and if I download QGIS 2.18 and I try to run it, I get this:  libpng warning: Application jmp_buf size changed Segmentation fault (core dumped)   If I try with QGIS 3.2, the error is:   libpng warning: Application was compiled with png.h from libpng-1.6.34 libpng warning: Application  is  running with png.c from libpng-1.2.56 libpng error: Incompatible libpng version in application and library   So it's clear that the problem is with libpng.   I purged libpng-dev and reinstall again but nothing changed.   I tried to purge libpng16-16 but I get:  sudo apt purge libpng16-16 Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  libgdk-pixbuf2.0-0 : Depends: libpng16-16 (>= 1.6.2-1) but it is not going to be installed                       Recommends: libgdk-pixbuf2.0-bin  libgtk-3-0 : Depends: libcairo-gobject2 (>= 1.10.0) but it is not going to be installed               Depends: libcairo2 (>= 1.14.0) but it is not going to be installed               Depends: libfontconfig1 (>= 2.12) but it is not going to be installed               Depends: libpango-1.0-0 (>= 1.40.5) but it is not going to be installed               Depends: libpangocairo-1.0-0 (>= 1.40.5) but it is not going to be installed               Depends: libpangoft2-1.0-0 (>= 1.40.5) but it is not going to be installed               Depends: adwaita-icon-theme               Recommends: libgtk-3-bin E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.   and then:  ~$ sudo apt install libgdk-pixbuf2.0-bin libgtk-3-bin Reading package lists... Done Building dependency tree        Reading state information... Done libgdk-pixbuf2.0-bin is already the newest version (2.36.11-2). libgtk-3-bin is already the newest version (3.22.30-1ubuntu1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ~$ sudo apt install libgtk-3-0 libgdk-pixbuf2.0-0 Reading package lists... Done Building dependency tree        Reading state information... Done libgdk-pixbuf2.0-0 is already the newest version (2.36.11-2). libgtk-3-0 is already the newest version (3.22.30-1ubuntu1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   At this point I'm afraid of breaking something if I continue trying things, so I come here for advice before.  I deleted and reinstalled ubuntu. I installed first thing qgis and it was working. Afterwards I compiled gdal, from source to have it from python as stand alone. It might be this, but I had done this previously without any problems.


Using permutation or otherwise, prove that$ \frac{(n^2)!}{(n!)^n}$an integer, where n is a positive integer.    Putting n=1,2,3.... I can prove that above quantity is an integer but this is not correct as it needs to be proved in a methodological way.

Using permutation or otherwise, prove that $\displaystyle \frac{(n^2)!}{(n!)^n}$ is an integer,where $n$ is a positive integer.  I have no idea how to prove this..!!I am not able to even start this Can u give some hints or the solution.!cheers.!!


Two images with same resolution (nb of pixels width and height) but with a ration of 2:1 in DPI one will display two times bigger than the other ?

I created a PNG file (763px by 600px at 72DPI) from a free image. I opened the image in GIMP and changed the DPI to 300 and saved it. After including it in a LaTeX file with  \includegraphics[scale=1.0]{file.png}   and running pdflatex, the image looked good on the page. I wanted it a little bit larger, so I changed the DPI in GIMP to 600 and saved the file. After recompiling the source, the image is now much smaller on the output PDF. What have I done wrong?


How can I export files from Ubuntu WSL to windows or any other directory so that I can use/edit that file in windows

I have installed Ubuntu subsystem on Windows 10 (after enabling feature in settings), but where is the Ubuntu file system root directory located in the drive?


In the manga/anime, it appears as if teleportation is very rare. The few we know that gets a little bit explained are, for example, Minato (4th Hokage) and Obito (Tobi).  Despite of this, a lot of characters (mainly in the anime) "disappear" with a flashy exit when they wish. Orochimaru does this a couple of times, including others. Often with a phrase such as "I don't have time to play around with you any more" and then poof, gone!  Is there some explanation to this? Do they use a clone and then run off while the clone says goodbye to the opponent? If that is the case, when do they create the clone?

Some users of the jutsu are Kakashi, Gai, Genma, Kabuto, etc. It can often be seen when Anbu members are dismissed.


Hello How I can use colours/background colours in texts.  I tried
coloured text
  But it does nothing.

I just asked this question: .  The first answer I got totally missed the point of the question (that answer is now deleted).    I think my question would have been clearer if I could have changed the color of a (non-code) word to red, so I could show an example of what I wanted.  Is there a way to do this?


I have a basic question on the notation used in "Mathematical Logic":  Ebbinghaus writes rules of a calculus as $$\frac{\zeta_1,...,\zeta_n}{\zeta}$$ and by that he means that if the strings $\zeta_1,...,\zeta_n$ belong to some subset $Z \subset A_S^*$ then $\zeta$ also belongs to $Z$. Now on page $23$, in exercise $4.6$, Ebbinghaus writes $$\frac{}{\text{ }x\text{  }x\text{ }}$$ or $$\frac{y\text{   }t_i}{y\text{   }ft_1...t_n}$$. What does he mean by that? ($x \text{ }x$ is clearly not a string)

What is the meaning of the white space in the following notation (or what is meant by the rules themselves)?  $$\frac{ }{x\ \ \ x}$$  or  $$\frac{y\ \ \ t_i}{y\ \ \ ft_1...t_n}$$  Where the white space occurs between the variables in rule 1 and the variable and terms in rule two.  I'm self studying from Mathematical Logic by Ebbinghaus, Flum, and Thomas. This particular notation appears on page 23, in Exercise 4.6.  Further background. In a preface comment to Exercise 4.6, the book says: "A means of defining the preceding notions by calculi is indicated in the following exercise". The calculi is what I gave above, and the preceding notions are given below, where the function var "associates with each S-term the set of variables occuring in it":  $$\operatorname{var}(x) :={x}$$ $$\operatorname{var}(c) := \emptyset$$ $$\operatorname{var}(ft_1 \ldots t_n):= \operatorname{var}(t_1)\cup \cdots \cup \operatorname{var}(t_n)$$


So i'm working in python with SpeechRecognition :  It works perfectly with this code:   import pyaudio import speech_recognition as sr r = sr.Recognizer(language = "es-ES", key = "AIzaSyBOti4mM-6x9WDnZIjIeyEU21OpBXqWBgw") with sr.Microphone() as source:     audio = r.listen(source) print r.recognize(audio)   But when I try to turn it into a function:  def stt():     r = sr.Recognizer(language = "es-ES", key = "AIzaSyBOti4mM-6x9WDnZIjIeyEU21OpBXqWBgw")     with sr.Microphone() as source:         audio = r.listen(source)     return r.recognize(audio)   I get this error: File "./prueba_2.py", line 22     with sr.Microphone() as source:                                   ^ IndentationError: unindent does not match any outer indentation level  How could i fix it?

When I compile the Python code below, I get      IndentationError: unindent does not match any outer indentation level     import sys  def Factorial(n): # Return factorial     result = 1     for i in range (1,n):         result = result * i     print "factorial is ",result     return result   Why?


I have just started learning Lie Groups and Algebra. Considering a flat 2-d plane if we want to translate a point from $(x,y)$ to $(x+a,y+b)$ then can we write it as :  $$   \left( \begin{array}{ccc} x+a  \\ y+b  \end{array} \right) =   \left( \begin{array}{ccc} x  \\ y  \end{array} \right) +    \left( \begin{array}{ccc} a  \\ b  \end{array} \right)$$  Now the set of all translations  $ T =   \left( \begin{array}{ccc} a  \\ b  \end{array} \right) $ form a two paramater lie group (I presume) with addition of column as the composition rule.  If that is so, how do I go about finding the generators of this transformation.  PS:  In my course I have been taught that the generators are found by calculating the taylor expansion of the group element about the Identity of the group. For instance, $SO(2)$ group  $$ M =   \left( \begin{array}{cc} cos \:\phi & -sin \:\phi \\ sin \:\phi &  cos \:\phi \end{array} \right) $$ I obtain the generator by taking  $$ \frac{\partial M}{\partial \phi}\Bigg|_{\phi=0} =   \left( \begin{array}{cc} 0  & -1 \\ 1 &  0 \end{array} \right) $$  Now if I exponentiate this, I can obtain back the group element. My question how do I do this for Translation group.

I have just started learning Lie Groups and Algebra. Considering a flat 2-d plane if we want to translate a point from $(x,y)$ to $(x+a,y+b)$ then can we write it as :  $$   \left( \begin{array}{ccc} x+a  \\ y+a  \end{array} \right) =   \left( \begin{array}{ccc} x  \\ y  \end{array} \right) +    \left( \begin{array}{ccc} a  \\ b  \end{array} \right)$$  Now the set of all translations  $ T =   \left( \begin{array}{ccc} a  \\ b  \end{array} \right) $ form a two parameter lie group (I presume) with addition of column as the composition rule.  If that is so, how do I go about finding the generators of this transformation. I know the generators of translation are linear momenta in the corresponding directions. But I am not able to see this here.  PS:  In my course I have been taught that the generators are found by calculating the Taylor expansion of the group element about the Identity of the group. For instance, $\operatorname{SO}(2)$ group  $$ M =   \left( \begin{array}{cc} \cos \:\phi & -\sin \:\phi \\ \sin \:\phi &  \cos \:\phi \end{array} \right) $$ I obtain the generator by taking  $$ \frac{\partial M}{\partial \phi}\Bigg|_{\phi=0} =   \left( \begin{array}{cc} 0  & -1 \\ 1 &  0 \end{array} \right) $$  Now if I exponentiate this, I can obtain back the group element. My question how do I do this for Translation group.   EDIT :This edit is to summarise and get a view of the answers obtained.  Firstly, the vector representation of the translation group (for 2D) would in general have the form :  $$ \begin{pmatrix} 1 & 0 & a_x\\ 0 & 1 & a_y \\ 0 & 0 & 1 \end{pmatrix}\ $$ with generators (elements of Lie algebra)  $$  T_x =\begin{pmatrix} 0 & 0 & i\\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{pmatrix}\ , \;\;  T_y = \begin{pmatrix} 0 & 0 & 0\\ 0 & 0 & i \\ 0 & 0 & 0 \end{pmatrix}\  $$  Secondly, the scalar-field representation of the same is given by the differential operators $$ exp^{ i(a_x\frac{\partial}{\partial x}+ a_y\frac{\partial}{\partial y} )} $$ with generators  $$ T_x^s = i\frac{\partial}{\partial x},\;\;T_y^s = i\frac{\partial}{\partial y} $$  The Lie algebra is two-dimensional and abelian : $ [T_x,T_y] = 0$


I have specified that the  function x(1 - x)^{1/5} should be plotted on the domain [-1.5,2.5]. It is only plotted on the domain [1,2.5].  \documentclass[10pt]{amsart} \usepackage{tikz} \usetikzlibrary{calc,angles,positioning,intersections,quotes,decorations.markings} \usepackage{tkz-euclide} \usetkzobj{all} \usepackage{pgfplots} \pgfplotsset{compat=1.11}   \begin{document}  \noindent \hspace*{\fill} \begin{tikzpicture} \begin{axis}[width=6in,axis equal image,unit vector ratio={2 1},clip=false,     axis lines=middle,     xmin=-1.5,xmax=2.5,     domain=-1.5:2.5, samples=201,     xlabel=$x$,ylabel=$y$,     ymin=-1,ymax=3,     restrict y to domain=-1:3,     %enlargelimits={abs=1cm},     axis line style={latex-latex},     ticklabel style={font=\tiny,fill=white},     xtick={\empty},ytick={\empty},     extra x ticks={0.83333, 1, 1.6666},     extra x tick labels={$\frac{5}{6}$, $1$, $\frac{5}{3}$},     extra y ticks={-2},     extra y tick labels={$ma+b$},     yticklabel style={anchor=west},     yticklabel shift=-4pt,     ticklabel style={font=\tiny,fill=white},     xtick={0.83333, 1, 1.6666},ytick={\empty},     xlabel style={at={(ticklabel* cs:1)},anchor=north west},     ylabel style={at={(ticklabel* cs:1)},anchor=south west} ] \addplot[samples=501,domain=-1.5:2,blue] {x*(x - 1)^(0.2)}; \draw [fill] (0.83333,-0.8034) circle [radius=1.5pt]; \draw [fill] (1,0) circle [radius=1.5pt]; \draw [fill] (1.6666,1.53685) circle [radius=1.5pt]; \end{axis} \end{tikzpicture} \hspace{\fill} \vskip0.2in  \end{document}

I tried to export my Geogebra graphs into tikz-code. In General it works fine, but plot x^1/3 doesn't work:  \documentclass[10pt]{article} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \pagestyle{empty} \begin{document} \definecolor{ccqqqq}{rgb}{0.8,0,0} \definecolor{qqttcc}{rgb}{0,0.2,0.8} \definecolor{cqcqcq}{rgb}{0.75,0.75,0.75} \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm] \draw [color=cqcqcq,dash pattern=on 1pt off 1pt, xstep=1.0cm,ystep=1.0cm] (-4,-4) grid (4,4); \draw[->,color=black] (-4,0) -- (4,0); \foreach \x in {-4,-3,-2,-1,1,2,3} \draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$}; \draw[->,color=black] (0,-4) -- (0,4); \foreach \y in {-4,-3,-2,-1,1,2,3} \draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize $\y$}; \draw[color=black] (0pt,-10pt) node[right] {\footnotesize $0$}; \clip(-4,-4) rectangle (4,4); \draw[color=qqttcc, smooth,samples=100,domain=-4.0:4.0] plot(\x,{(\x)*(\x)*(\x)}); \draw[color=ccqqqq, smooth,samples=100,domain=-4.0:4.0] plot(\x,{((\x))^(1/(3))}); \draw [color=qqttcc](2.06,4.18) node[anchor=north west] {$f(x)=x^3$}; \draw [color=ccqqqq](2.06,1.18) node[anchor=north west] {$f(x)=\sqrt[3]{x}$}; \begin{scriptsize} \draw[color=qqttcc] (-1.74,-7.16) node {$f$}; \end{scriptsize} \end{tikzpicture} \end{document}      Error line 21: !Missing number, treated as zero.   So plot has problems with the negative x I suppose, but I don't know. Any help would be great! I googled it for nearly 1 hour - but no real answers.  As suggestet it rotated and mirrored the graph - works great!:  \documentclass[10pt]{article} \usepackage[utf8]{inputenc} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \pagestyle{empty} \begin{document} \definecolor{ccqqqq}{rgb}{0.8,0,0} \definecolor{qqttcc}{rgb}{0,0.2,0.8} \definecolor{cqcqcq}{rgb}{0.75,0.75,0.75} \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm] \draw [color=cqcqcq,dash pattern=on 1pt off 1pt, xstep=1.0cm,ystep=1.0cm] (-4,-4) grid (4,4); \draw[->,color=black] (-4,0) -- (4,0); \foreach \x in {-4,-3,-2,-1,1,2,3} \draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize \x}; \draw[->,color=black] (0,-4) -- (0,4); \foreach \y in {-4,-3,-2,-1,1,2,3} \draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize \y}; \draw[color=black] (0pt,-10pt) node[right] {\footnotesize 0}; \clip(-4,-4) rectangle (4,4); \draw[color=qqttcc, smooth,samples=100,domain=-4.0:4.0] plot(\x,{(\x)*(\x)*(\x)}); \begin{scope}[yscale=-1,xscale=1] \draw[rotate=90, color=ccqqqq, smooth,samples=100,domain=-4.0:4.0] plot(\x,{(\x)*(\x)*(\x)}); \end{scope} \draw [color=qqttcc](2.06,4.00) node[anchor=north west] {$f(x)=x^3$}; \draw [color=ccqqqq](2.06,1.00) node[anchor=north west] {$f(x)=\sqrt[3]{x}$}; \begin{scriptsize} \draw[color=qqttcc] (-1.74,-7.16) node {f}; \end{scriptsize} \end{tikzpicture} \end{document}


I've tried the following:  if ((type == typeof(ICollection<T>)))  if (type.GetInterfaces().Contains(System.Collections.Generic.ICollection<T>))   Neither of these seem to catch anything at all, even things that I know are ICollections.  If I try to look for IEnumerable, then it catches too many things, including strings.  There was another answer on SO that said to use this:  if(Obj is ICollection) {     //Derived from ICollection }   That doesn't even compile for me.  I have to specify that it's generic.  When I look at the object type in the debugger, this is what I see:  {Name = "ICollection`1" FullName = "System.Collections.Generic.ICollection`1[[object1, object1Namespace, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"}   I don't know how to look for that type.  What I want is any type that is specifically an ICollection of any type.  Edit1:  Here's the definition of the type I'm trying to identify:  public virtual ICollection<object1> objects { get; set; }

Assume the following type definitions:  public interface IFoo<T> : IBar<T> {} public class Foo<T> : IFoo<T> {}   How do I find out whether the type Foo implements the generic interface IBar<T> when only the mangled type is available?


In Python, suppose I have a function f that I want to pass around with some secondary arguments (assume for simplicity that it's just the first argument that remains variable).  What are the differences between doing it these two ways (if any)?  # Assume secondary_args and secondary_kwargs have been defined  import functools  g1 = functools.partial(f, *secondary_args, **secondary_kwargs) g2 = lambda x: f(x, *secondary_args, **secondary_kwargs)   In the , for example, there is this quote:     partial objects defined in classes behave like static methods and do not transform into bound methods during instance attribute look-up.   Will the lambda-method suffer from this if used to make a class method from arguments supplied to the class (either in the constructor or through a function later on)?

Could someone explain? I understand the basic concepts behind them but I often see them used interchangeably and I get confused.   And now that we're here, how do they differ from a regular function?


Consider one individual present at time $t = 0$. It is given to us that the waiting time for any one individual to give birth is exponentially distributed with parameter $m$. Initially only $1$ individual is present, hence the waiting time till the first birth is exponentially distributed with parameter $m$. After the first birth, there are now $2$ individuals present. We need to find the waiting time till the birth of the next (third) individual. My textbook's solution says that the time distribution will be exponential yet again, but this time with a parameter $2m$ and my professor agrees with that. However, when I tried to prove it myself, I initially thought it (waiting time for third individual to be born) would be the sum of two exponential variables (which is gamma/Erling distributed), but then I realized it would be the minimum of the two individual waiting times. How do I prove that this is an exponential distribution itself with parameter $2m$ mathematically?

How can I prove that the minimum of two exponential random variables is another exponential random variable, i.e. Z = min(X,Y)


I have the data in the following format; (1,NULL,NULL,'Chief p','xxxx@email.com','new',4,'1ef7,0,2),(1,NULL,NULL,'Chief Pollster','xxxx@email.com','new',4,'1ef7,0,2),(1,NULL,NULL,'Chief Pollster','xxxx@email.com','new',4,'1ef7,0,2),(1,NULL,NULL,'Chief Pollster','xxxx@email.com','new',4,'1ef7,0,2),  I am trying to achieve the following: (1,NULL,NULL,'Chief p','xxxx@email.com','new',4,'1ef7,0,2), (1,NULL,NULL,'Chief Pollster','xxcxx@email.com','new',4,'1ef7,0,2), (1,NULL,NULL,'Chief Pollster','xxxxx@email.com','new',4,'1ef7,0,2), (1,NULL,NULL,'Chief Pollster','xxsxx@email.com','new',4,'1ef7,0,2),  So I tried the following regex find ),\s* and replace it with ),\n But it says  The regex contains mismatched '(' and ')'  What am I doing wrong?

I am tired of always trying to guess, if I should escape special characters like '()[]{}|' etc. when using many implementations of regexps.  It is different with, for example, Python, sed, grep, awk, Perl, rename, Apache, find and so on. Is there any rule set which tells when I should, and when I should not, escape special characters? Does it depend on the regexp type, like PCRE, POSIX or extended regexps?


I'm trying to make a generic class that receives, as paramater, a vector of generic types. That's is my goal.  This is what i have in header file:  #pragma once #include <vector> #include "iostream" using namespace std; class Permutation { public:        template<class T>        //I already tried that        //template< typename T>     static unsigned int generate(std::vector<T> source, bool recursive = false);     }; }   Until now i receive the same error "Unresolved Externals.  How can i correct implement that?  Note: the implementation of code is in CPP file

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


So I have the same clash of clans village on my iPad and my iPhone.   How do I start a new village on my iPad while keeping the same one on my iPhone?

If I download Clash of Clans on my iPhone, can I start a new village despite my account on my iPad? I want to make a village for my younger brother.


I noticed this now a few times and it slowly begins to be anoying.  My way of handling deathclaw attacks went to be just let them go through room by room untill they are dead, since rearranging the infrastructure of sending my strongest dwellers with them is... fiddly.  But as the title says:  Sometimes after revieving the victims of an Deathclaw attack they appear to lay down work on random occassion and just go into coffe break. Since I noticed this I'm observing this behavior and wasn't able to catch them doing so. But it appears to happen in direct connection with the event of dying. But the change in working state appears to happen while the app itself is closed (can't confirm this so far.)  This is actually anoying since they appear to start working again but on i.e. the next day I have to find them again and reassign them to their jobs. but if there are some times 5 dwellers just idling arround its hard to figure out what the job was for each of them.  Is this issue known? Is it even an issue or just the result of a feature I'm not aware of/missunderstanding?  Or is it just because Dwellers demand some special leave after dying?

The entire lower third of my vault is normally unoccupied and full of production rooms that exist solely to increase my power/food/water storage. Unfortunately, incidents do happen down there, so I send dwellers down there occasionally to squash roaches and choke Molerats to death with their delicious meats. Invariably, because of the horrible, horrible controls, some of them die. But I am not without compassion, so I revive them. That's when things go wrong.  I have done some testing, and dwellers seem to randomly choose one of three things to do after dying and being resurrected during an incident, after the incident is over. They either a) decide that being dead wasn't break enough and go idle (coffee break), b)return to their properly assigned work area (like all good dwellers should) or c) begin working in the room where they met their unfortunate demise.  No problem, right? Just wait till the incident is over, THEN revive them, right? No dice. They then either begin working in the room they woke up in, or go for coffee.  So my question. How do I predict what my dwellers will do after reviving? More importantly, how do I, if possible, force them to return to their regularly scheduled duties? (Removing rooms is not an option)


i try to achieve a dotted landscape like in this example.  I tried to solve it by an array but i dint get the landscape displacement to work. an easy way would be to add a sphere to each point of a landscape mesh but i don't know how to do this. Sorry if this is easy to solve, but i am kinda new to blender.

I want to create a wave made out of particles/dots. The wave should look like this:  I tried to achieve this effect by adding an ocean modifier to a plane. Then I added a particle system to the plane but now I don't know how to go on. How can I make the particles lay on the 'ocean' and move when the ocean is moving? PS: I know there is a way to do this with a material in the Blender Render. But firstly I want to create the whole thing in Cycles and secondly I want to have particles.


I am trying to repair a recently bought AN/PRM-10 grid dip. I have replaced some electron tubes by new ones and (almost?) everything seems to be OK regarding the voltages at the pins of the electron tubes, according to the one-to-last page of the manual that can be downloaded  (bottom of the page). For the convenience of the readers, I've attached here a copy of this page, and of the schematic of the grid dip.       As everything is OK for all the other electron tubes, I am interested only in the V-201 acorn electron tube. According to the document, the voltage at pin 3 should be -10V AC (this is of course a mistake and should read -10V DC). If I measure this voltage with an electronic tester, it gives me -11V DC (so far so good). If I invert the ground and positive terminal of the tester, surprise ! it gives me +4V DC (and not the expected +11V DC). The same occurs if I measure the voltage with an analogue voltmeter. I have two questions:   why is not the voltage +11V when I exchange the terminals of the tester ? I don't understand how can the voltage at pin 3 be negative with respect to the ground, as according to the schematic, I see no voltage source that can bring this potential below ground.

This is probably the most lame question of all the time here, but... I cannot understad grid-cathode "negative" polarization. For me, grid is always positive to the cathode. I mean, in practice, cathode is just GND or 0V, while grid gets voltage larger than zero and never goes below zero. So how come it has negative voltage comparing to cathode?  Let me show you how I understand a triode operating.  This is the most basic grid-cathode polarisation example and it does make some sense for me. We have reference 0V and this is cathode electron emitter, but we also have a battery connected below zero:    This example "seems legit" - cathode is connected to 0V but grid has own battery that provides voltage which is (theoretically) below zero*.  However, in real life no such battery exists, and there's just one 0V/GND point, common both for cathode and input signal.  What's more, the input voltage changes from 0 to 1V (not from -1V to 0V) in my example, so... how does the tube even work? It should not pass possitive voltages through the grid at all and the tube shouldn't work. But it does:    The resistor is of course the key, however it never drops input voltage BELOW 0V because there is no "below zero" point in the circuit. The ultimate zero is just zero, the same 0V point cathode emitts electrons from.  Or is it and I'm just unable to see it?  *) for me in this example grid voltage is stil positive over the cathode :/


When going to reputation tab like   Expanding reputation chevron arrow calls an ajax request that is returning a 404 not found.

The best way to determine the error is to try it yourself. In the reputation page I clicked(try to expand) the arrow (collapsible fieldset) in a certain day and pawn an error like this:    Error occurred when loading post body.   I tested it on Chrome and Firefox.  Update:  I also tested it on the following sites:   Anime & Manga Stackoverflow Meta Stackoverflow Arqade Photography Superuser DBA Server Fault   Now, I assume that this happens to all stack network to all browsers though I haven't tested on mobile/tablet device yet.


Can someone help me figure out the big-O for the recurrence relation $T(n) = T(n^{1/2}) + 1$?  I didn't think the master theorem would work since it requires $T(n) = T(n/b)$... to have $b$ as a constant. I was wondering if anyone could shed some light on a method to approach this problem? (not looking for a solution)

This looks like a question asked , but it isn't.  $$T(n)=\begin{cases} T (\sqrt{n}) + 1 \quad & \text{ if } n>1 \\  1 & \text{ if }n=1\end{cases}$$  My professor gave this to me in class yesterday. This is where I'm stuck:   $$T(n) =  T(n^{1/2})+1 =  T(n^{1/4})+2 = T(n^{1/8})+3 = \dots =   T(n^{1/ 2 ^k})+k$$  Now this will continue till  $$n^{1/ 2 ^k}=1$$  How do I proceed ahead? If I take log on both sides, then RHS becomes zero. How do I solve the relation?  I don't want to use the Master theorem, I want to know where and why am I stuck.


MSO is the master site for privileges descriptions, i.e. the pages listed on . The text used on MSO is distributed to other sites on the network, and it's not possible to edit them individually on each site. To edit those descriptions, a user needs to have 1000 reputation on Meta Stack Overflow. It's unlisted in the privileges descriptions pages, but I got it when I first had more than 1000 rep on MSO. The system doesn't care that a user is a  on one of the "real" Q&A sites, and might actually be better suited to do this (based on own experience with the privileges) than someone who has 1000 rep on MSO. , sending users to MSO to edit the descriptions is the standard response to "Please change the privileges documentation" topics on child meta sites. But even very high reputation users on other sites might not actually be able to do that, when they don't actively participate on MSO.  This behavior makes no sense and needs to be changed. The privileges description editing privilege should not be based on MSO reputation, but e.g. on network reputation (minus the account linking bonuses), or the highest reputation a user has on any SE site. Alternatively, there should be a way for users that have 101+ MSO rep to suggest edits to the privileges descriptions. Currently, it's not possible to suggest edits on the privilege description pages with below 1000 MSO reputation. These low MSO rep users might already have all privileges somewhere else, so it doesn't make sense to not allow them to describe these privileges. The problem with this method is, of course, possibly too many bad suggestions from users having no substantial reputation anywhere.

It was  to edit the privileges page for everyone with more than 2k rep on Meta.SO. I think this is a good thing:  Moderators have other things to do. Wrong content can be easily fixed. More involvement of the community.  Downside:  The help center should be the definitive source. (Could be solved with reviews)  So could this please changed again? The actual needed reputation doesn't matter. Some quotes to support my request:  At the high end of this reputation spectrum there is little difference between users with high reputation and ♦ moderators. That is intentional. We don’t run this site. The community does.   Ehhm, yes. We run the site, and we should be able to edit the privileges page.  Moderators are human exception handlers, there to deal with those exceptional conditions that could otherwise disrupt the community.   Editing the privileges pages are not an exception. Again, moderators have other things to do.  Edit As  pointed out, not even mods can now edit the privilege pages "wiki", so adding   An other edit Before I accept an answer () I'd like to hear some reason for this change.  I would just wait for their response. This could be a temporary bug or oversight that wasn't meant to be done, or they could have some specific reasons why they changed it that we're not aware of. –


This is very close to the SO   I need something close but I always get the folder with the contents, not it's contents only  This is what was suggested:   #note $2 is passed in and would be == "magefoler"  unzip /srv/file.zip "$2-master/*" -d /srv/www/mage/   What I need to do it to take a zip that has this structure in it  file.zip  |-magefoler-master/  |-magefoler-master/app/*tons of files  |-magefoler-master/skin/*tons of files   and I need to move it to another folder but, I can't move the magefoler, I only want the app and skin folders.  This doesn't mean that it'll always be those two folders, just that any child content, files or folders, in the magefoler is what I need to get out.  What is trying to be avoided is to export all to a folder and then just move it from there.  The end result I'm looking for is from the zip file I output to the /mage folder like this:  /srv/www/mage/      |--/mage/app/*tons of files      |--/mage/skin/*tons of files

Depending on how a zip file is created, sometimes it will extract all of the files directly, and sometimes it will extract the files into a subdirectory.  If the latter is true, how can I force the unzip command to "ignore" that first level directory?  Example:  cd /tmp wget http://omeka.org/files/omeka-1.5.1.zip mkdir omeka unzip omeka-1.5.1.zip -d omeka/ cd omeka/ ll   What I'm getting is /tmp/omeka/omeka-1.5.1/:   total 12 drwxr-xr-x 3 root root 4096 2012-05-08 18:44 ./ drwxrwxrwt 6 root root 4096 2012-05-08 18:44 ../ drwxr-xr-x 5 root root 4096 2012-04-20 14:54 omeka-1.5.1/   What I want is of the files extracted to /tmp/omeka/, (one level up and no version number included in the directory structure)  /tmp/omeka/(files)   I know I can use the -j option to "junk paths" but I want to keep the subdirectory structure, just not the top level directory structure. How can I do this?


For all $k > 0,\ k\in \Bbb Z$ . Prove  $$\gcd(k*a,\ k*b) = k *\gcd(a,\ b)$$  I think I understand  what this wants but I can't figure out how to set up a formal proof. These are the guidelines we have to follow

I need to prove that $z\gcd(a,b)=\gcd(za,zb)$.    I tried a lot, for example, looking at set of common divisors of the two sides, but I can't conclude anything from that. Can you please give me some advice how I can handle this problem? And $a,b,z \in \mathbb{Z}$.


I remember some parts of a live-action sci-fi movie I saw sometime in the 90's or maybe early 00's.  The movie was set in present day and centered around a small girl, about 5 years old, I think. The girl had psychic powers and there was an alien sneaking in her room at night to teach her to use her powers. The alien was depicted as a young human-looking woman, however she could also shapeshift and teleport. The girl hadn't progressed very far in her training, but could make a "ball" of psychic energy.  At some point the military caught a whiff of this and did what the military do best - they captured her and wanted to study her. Unfortunately they didn't teleport-proof their holding cell and the little girl made a big enough ball and teleported to some random place in a nearby city.  Then there were some chase scenes, culminating in the girl, the alien, and another male character (I think) fleeing in the alien's spaceship with the military in hot pursuit in their helicopters. The alien's spaceship could cloak, but unfortunately it didn't extend in the infrared, so the military just put on their IR goggles and fired some heat-seeker missiles. Things were tense there for a moment, but, of course, they escaped unharmed.  The movie ended on an uplifting note with the alien saying something along the lines that the girl is the first one of many and that the psychic powers are the next step in human evolution, and about to become a lot more common. And, of course, great things to come, etc.

About 15 or so years ago, I dimly recall watching a movie on TV about aliens, which really struck a chord, but I can't remember enough to google a name or anything more specific. The action takes place on Earth, perhaps in the USA. It was a live action movie, not animated.    It was about a family; the father (grandfather?) was an army pilot, and when he was flying, he was abducted by aliens (briefly, then returned, I think?). The (grand?)daughter is a little child, and her nanny is trying to teach her telekinetic abilities (perhaps a result of modifications done to the father?). I think I remember her also conjuring up a glowing orb between her hands. The nanny turned out to work for the aliens. There was also something about the government trying to chase/capture the family.   Any help will be appreciated!


I want to create a Bézier curve in Illustrator so I can import it into Cinema 4D. Now my problem is, I have got a Bézier curve with just the coordinates of my points and I want to draw this in Illustrator. How do I do that?  Coordinates are: (5,0) (3,0.5) (0,1) (-2,1) (-3.5,1) (-5,0.5) (-5,0)

I want to create a vector curve that is symmetric in the top and the bottom. For example, in this baseball icon (), if I try to write the vector as suggested by the accepted answer, I end up in writing the vector curve by hand - which means the curve can never be symmetrical between the top and the bottom.  So I want to create the vector curve programmatically, such as specifying the starting and ending point of the vector and then specifying the middle point of the vector and also specifying the degree of the curve, in order to create a tidy curve. I don't like to create the curve by hand, since no matter what I did, it looked pretty awful.  So is it possible to create the tidy curve by specifying some numbers? I don't mind what apps I have to use among Affinity Designer, Pixelmator, Sketch 3, or Illustrator CC, as long as it can be done programmatically (the linked post is designed by Pixelmator, FYI).


How are electrons and positrons formed when photons collide, as photons are massless?

An electron has a mass of $m_e = \; 9.1094 × 10^{-31} kg$. A positron has the same mass. So during electron positron low-energy annihilation, won't the law of conservation of mass be violated?  Note: I am a high school student interested in physics and read about electron positron annihilation in a book. So if there is a flaw in a concept behind the question, please do point it out.


I purchased an AZIO backlit L70 today, volume control is not working.

The media buttons for increasing/decreasing the volume of audio output and the mute-button stopped working out of nowhere. The buttons are still recognized by the system, as I can select them to perform the desired action in the gnome control centre, but pressing on of these buttons will do nothing. All the other buttons of the fn-row are working properly.  xev says on button-press:  KeyPress event, serial 37, synthetic NO, window 0x4600001, root 0x9d, subw 0x0, time 190010, (19,-11), root:(1244,41), state 0x0, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES, XLookupString gives 0 bytes:  XmbLookupString gives 0 bytes:  XFilterEvent returns: False  KeyRelease event, serial 37, synthetic NO, window 0x4600001, root 0x9d, subw 0x0, time 190104, (19,-11), root:(1244,41), state 0x0, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES, XLookupString gives 0 bytes:  XFilterEvent returns: False  KeyPress event, serial 37, synthetic NO, window 0x4600001, root 0x9d, subw 0x0, time 191040, (19,-11), root:(1244,41), state 0x0, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES, XLookupString gives 0 bytes:  XmbLookupString gives 0 bytes:  XFilterEvent returns: False  KeyRelease event, serial 37, synthetic NO, window 0x4600001, root 0x9d, subw 0x0, time 191118, (19,-11), root:(1244,41), state 0x0, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES, XLookupString gives 0 bytes:  XFilterEvent returns: False   What can I do to get them working again?  EDIT: Ok, so I tried to create a shortcut for "Volume up", using the command pactl set-sink-volume 0 +10%. Binding it to Strg++ worked, but binding it to the "Volume up"-Button has no effect.


I'm sometimes looking for very low scored answers/question in order to  find some VERY LOW QUALITY ones.   However, I can't do this with internal search. Why? Beacuse there are only 100 pages available in case there are more than 5000 search results.   If I fill "votes:-15" into internal search box, and I sort it by votes, the latest available post has 60 upvotes.   Can "search for posts with less than X score" be implemented, as opposite for already implemented special phrase votes: or at least deleted limit of pages ?

tl;dr: Give the score search operator ability to change between greater than and less than.  I just noticed that searching for score:0 turns up only question with a score equal to 0. Searching for score:1 gives everything with a positive score. (>=1) I can live with these. But here's the big one: score:-1. I would expect it to give all the negatively scored posts - there is a minus sign in there. But it doesn't. It gives all the posts >=-1. Greater than? So, my  is that we get more granular search options for score. For example,  score:1 would show all posts with score == 1 score:1+ would show everything score >= 1 score:0 would show all posts with score == 0 score:-1 would show everything score == -1 score:-1- would show al posts where score <= -1  In short, the operator after the number would show which direction to go with the matching. A minus sign means less than, a plus sign means greater than. No sign means exact.


Right now they default to desktop, and I followed instructions found . It works up until I shut down the computer; I was wondering if there was a permanent solution?

As a developer, I take a lot of screen captures. I often take screen shots to share with Stack Exchange members in chat.  The problem is my Desktop is so cluttered with screen captures that they're now overlapping! I'd like to save all screenshots in a dedicated folder or directory.  In macOS, how do I change the default location where screen captures are saved?  These are the screen shots taken with CommandShift3 or CommandShift4 keyboard shortcuts.  I would prefer a solution which doesn't require installing any software.


There are lots of posts here and elsewhere about  addresses in PHP.  I want to write code which will normalise all IP addresses, regardless of their representation, to IP6 format.  I can do that by piecing together various bits of advice and doing some string hacking, but has best practice moved on from that?  Are there built-in functions in modern PHP which will do this correctly for all cases, without any conditional logic in my application code?

After searching around somewhat thoroughly, I noticed a slight lack of functions in PHP for handling . For my own personal satisfaction I created a few functions to help the transition.  The IPv6ToLong() function is a temporary solution to that brought up here: . It will split the IP in to two integers and return them in an array.  /**  * Convert an IPv4 address to IPv6  *  * @param string IP Address in dot notation (192.168.1.100)  * @return string IPv6 formatted address or false if invalid input  */ function IPv4To6($Ip) {     static $Mask = '::ffff:'; // This tells IPv6 it has an IPv4 address     $IPv6 = (strpos($Ip, '::') === 0);     $IPv4 = (strpos($Ip, '.') > 0);      if (!$IPv4 && !$IPv6) return false;     if ($IPv6 && $IPv4) $Ip = substr($Ip, strrpos($Ip, ':')+1); // Strip IPv4 Compatibility notation     elseif (!$IPv4) return $Ip; // Seems to be IPv6 already?     $Ip = array_pad(explode('.', $Ip), 4, 0);     if (count($Ip) > 4) return false;     for ($i = 0; $i < 4; $i++) if ($Ip[$i] > 255) return false;      $Part7 = base_convert(($Ip[0] * 256) + $Ip[1], 10, 16);     $Part8 = base_convert(($Ip[2] * 256) + $Ip[3], 10, 16);     return $Mask.$Part7.':'.$Part8; }  /**  * Replace '::' with appropriate number of ':0'  */ function ExpandIPv6Notation($Ip) {     if (strpos($Ip, '::') !== false)         $Ip = str_replace('::', str_repeat(':0', 8 - substr_count($Ip, ':')).':', $Ip);     if (strpos($Ip, ':') === 0) $Ip = '0'.$Ip;     return $Ip; }  /**  * Convert IPv6 address to an integer  *  * Optionally split in to two parts.  *  * @see https://stackoverflow.com/questions/420680/  */ function IPv6ToLong($Ip, $DatabaseParts= 2) {     $Ip = ExpandIPv6Notation($Ip);     $Parts = explode(':', $Ip);     $Ip = array('', '');     for ($i = 0; $i < 4; $i++) $Ip[0] .= str_pad(base_convert($Parts[$i], 16, 2), 16, 0, STR_PAD_LEFT);     for ($i = 4; $i < 8; $i++) $Ip[1] .= str_pad(base_convert($Parts[$i], 16, 2), 16, 0, STR_PAD_LEFT);      if ($DatabaseParts == 2)             return array(base_convert($Ip[0], 2, 10), base_convert($Ip[1], 2, 10));     else    return base_convert($Ip[0], 2, 10) + base_convert($Ip[1], 2, 10); }   For these functions I typically implement them by calling this function first:  /**  * Attempt to find the client's IP Address  *  * @param bool Should the IP be converted using ip2long?  * @return string|long The IP Address  */ function GetRealRemoteIp($ForDatabase= false, $DatabaseParts= 2) {     $Ip = '0.0.0.0';     if (isset($_SERVER['HTTP_CLIENT_IP']) && $_SERVER['HTTP_CLIENT_IP'] != '')         $Ip = $_SERVER['HTTP_CLIENT_IP'];     elseif (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_X_FORWARDED_FOR'] != '')         $Ip = $_SERVER['HTTP_X_FORWARDED_FOR'];     elseif (isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] != '')         $Ip = $_SERVER['REMOTE_ADDR'];     if (($CommaPos = strpos($Ip, ',')) > 0)         $Ip = substr($Ip, 0, ($CommaPos - 1));      $Ip = IPv4To6($Ip);     return ($ForDatabase ? IPv6ToLong($Ip, $DatabaseParts) : $Ip); }   Someone please tell me if I'm reinventing the wheel here or I've done something wrong.  This implementation converts IPv4 to IPv6. Any IPv6 address it doesn't touch.


Iam trying to show the dropdown option when javascript function is called. but eventually iam not succeed on this. need help Here is my code:  <script> function showState(str){  $('#Acntname').trigger('click');  } </script> ... <select class="input_panel" id="Acntname" >  <option value="0">Select</option> <option value="1">Equity Share Capital</option> <option value="2">Deprication Fund</option>  </select>  <input type="text" class="input_panel" id="accountname" onkeyup="showState(this.value)"/>   i used triggered function to open the dropdown but it doesn't work.

Is it possible to use JavaScript to open an HTML select to show its option list?


I met a method in C#  int Func(Contact @group) {     group.Name = ""; }   What dose the '@' mean ?

I discovered that you can start your variable name with a '@' character in C#.  In my C# project I was using a web service (I added a web reference to my project) that was written in Java. One of the interface objects defined in the WSDL had a member variable with the name "params". Obviously this is a reserved word in C# so you can't have a class with a member variable with the name "params". The proxy object that was generated contained a property that looked like this:  public ArrayList @params {     get { return this.paramsField; }     set { this.paramsField = value; } }   I searched through the VS 2008 c# documentation but couldn't find anything about it. Also searching Google didn't give me any useful answers. So what is the exact meaning or use of the '@' character in a variable/property name?


I bought this bunch of coriander at my local fruit shop. What is the best way to keep it fresh as long as possible? I usually cut off about 1 cm of the stems and then put them into a glass of water, at room temperature. I wonder if I would be better off putting them into the fridge, with or without the water. Or if there is another option I'm unaware of.

What is the best way to store fresh herbs like parsley or cilantro?  I find I have about the same luck with them whether they are left in a plastic bag or I put them in a cup of water.


Is use of "such as" in the following sentences correct grammatically and conceptually?     The secondary flow loss is due to interaction between vortices and   boundary layer of suction and hub surfaces, such as tip leakage and   hose-shoe vortices, in Wells turbine.

When once more alone, I reviewed the information I had got; looked   into my heart, examined its thoughts and feelings, and endeavoured to   bring back with a strict hand such as had been straying through   imagination’s boundless and trackless waste, into the safe fold of   common sense. (Jane Eyre)   Is ‘such’ a pronoun, indicating ‘its thoughts and feelings’? Is ‘as’ a relative modifying ‘such’?


While listening to physics lectures, they glossed over things escaping from black holes insinuating it doesn't happen other than radiation... When talking about the period between Planck Epoch & 380,000 years afterward, this seems to disagree completely with the prior statement.  If we agree at the Planck epoch all matter was extremely compact, such that light were not able to escape for ~380,000 years. Isn't this by definition a black hole? After 'it/everything' expanded such that the entire system could no longer hold light back, there "was light". Yet at the same time entire galaxies (or the matter that made them) and smaller black holes emerged.  So if everything now present came from a place which was once a black hole, doesn't that prove things escape from them?

I was surprised to only recently notice that      An object of any density can be large enough to fall within its own   Schwarzschild radius.   Of course! It turns out that supermassive black holes at galactic centers can have an average density of less than water's.  Somehow I always operated under the assumption that black holes of any size had to be superdense objects by everyday standards.  Compare the Earth to collapsing into a mere 9mm marble retaining the same mass, in order for the escape velocity at the surface to finally reach that of light.  Or Mt. Everest packed into one nanometer.  Reading on about this , it increases proportionally with total mass.  Assuming matter is accumulated at a steady density into a spherical volume, the volume's radius will only "grow" at a cube root of the total volume and be quickly outpaced by its own gravitational radius.  Question: For an object the , what would have to be its diameter for it to qualify as a black hole (from an external point of view)?  Would this not imply by definition that:   The Earth, Solar system and Milky Way are conceivably inside this black hole? Black holes can be nested/be contained within larger ones? Whether something is a black hole or not is actually a matter of perspective/where the observer is, inside or outside?


To make commutative diagram, I have to use tikz-cd package. The error says tikz-cd.sty not found. So I find tikz-cd.sty file, but I can't know where I should put this file. In my computer, MiKTeX's location is C:\Program Files (x86)\MiKTeX 2.9  How should I do?

Every once in a while after updating MiKTeX, the installation gets into an inconsistent state. This might be a problem with the packages (an example is described in ), but sometimes packages are split or renamed. The cases I remember are when  and when miktex-etex-base-2,9 was renamed to miktex-etex-base-2.9 (if I recall correctly; I am sure it was either that or something very similar). In each case the MiKTeX Update process suggested to remove the "old" packages but it didn't give the user any hints about him having to manually add the respective replacement packages back in the package manager to get one's MiKTeX installation back into a usable state.  What are best practices for keeping MiKTeX up to date? Note that I'm not asking about installing new packages or fonts in general; there are other questions covering this area.   In which order should one execute the Update process and the Synchronization of the repository? , it is recommended to check the MiKTeX homepage before updating. What else should one do? When and in which order (and why) should one execute the "Refresh FNDB" and "Update Formats" processes within the MiKTeX Options menu? What else can happen? Other advice?


I want to show that $R$ is Noetherian local ring and $S$ is Gorestein local ring s.t. $R=S/J$ and $f$ is an $R$-regular element, if for every $p\in\operatorname{Ass}_{S}(R),\operatorname{ht}_{S}(p)=\operatorname{ht}_{S}(J)$, then for every $p\in\operatorname{Ass}_{S}(R/f),\operatorname{ht}_{S}(p)=\operatorname{ht}_{S}(J)+1$.    But I am confused.     Let $R$ be a Cohen-Macaulay ring. Then for every ideal $I \subset R$, $p\in\operatorname{Ass}_{R}(R/I)$, $\operatorname{ht}(p)=\operatorname{ht}(I)$. Is this the unmixedness theorem?

Let $R$ be a commutative Noetherian ring with unit and  $I$ an unmixed ideal of $R$. Let $x\in R$ be an $R/I$-regular element. Can we conclude that $x+I$ is an unmixed ideal?   Background:  A proper ideal $I$ in a Noetherian ring $R$ is said to be unmixed  if the heights of its prime divisors are all equal, i.e., $\operatorname{height} I=\operatorname{height}\mathfrak{p}$ for all $\mathfrak{p}\in \operatorname{Ass} I$.


I am having disk space issues with my CentOS server, a single user is using up to 1,7tb of data, or it is what the du -sh* /home command is telling. But when you enter the user folder and use the du -hscx * command, it tells you that the user is  in fact using 480gb of space. I simply can't identify what is using the extra 1.3tb of space. Is there anyone here who knows how to deal with this problem?   Thank you very much

I have a fileserver where df reports 94% of / full. But according to du, much less is used:  # df -h / Filesystem            Size  Used Avail Use% Mounted on /dev/sda3             270G  240G   17G  94% / # du -hxs / 124G    /   I read that open but deleted files could be responsible for it but a reboot did not fix this.  This is Linux, ext3.  regards


I'm making long index lists of theorems, definitions, etc, and the numbers overlap with the text in the list - here's an example:  \documentclass[a4paper]{report} \usepackage[english]{babel} \usepackage[margin=2cm]{geometry} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsthm} \usepackage{stix} \usepackage{mathtools} \usepackage[document]{ragged2e} \usepackage{wasysym} \usepackage{booktabs} \usepackage{enumitem} \usepackage{pgfplots} \usepackage{tikz} \usepackage{float} \usepackage{thmtools} \usepackage{mdframed} \usepackage{etoolbox}  \usetikzlibrary{arrows,bending,calc,patterns}  %\newcommand\irregularcircle[2]{% radius, irregularity %   \pgfextra {\pgfmathsetmacro\len{(#1)+rand*(#2)}} %   +(0:\len pt) %   \foreach \a in {10,20,...,350}{ %       \pgfextra {\pgfmathsetmacro\len{(#1)+rand*(#2)}} %       -- +(\a:\len pt) %   } -- cycle %}  \newfloat{diag}{htbp}{dia}[section] \floatname{diag}{Diagram}  \makeatletter \everymath{\if@display\else\thickmuskip=2mu plus 2mu\fi} \renewcommand*{\listof}[2]{%     \@ifundefined{ext@#1}{\float@error{#1}}{%         \@namedef{l@#1}{\@dottedtocline{1}{1.5em}{3em}}% <-------  replaced 2.3em with 3em here         \float@listhead{#2}%         \begingroup\setlength{\parskip}{\z@}%             \@starttoc{\@nameuse{ext@#1}}%         \endgroup}} \patchcmd\thmt@mklistcmd     {\thmt@thmname}     {\check@optarg{\thmt@thmname}}     {}{} \patchcmd\thmt@mklistcmd     {\thmt@thmname\ifx}     {\check@optarg{\thmt@thmname}\ifx}     {}{} \protected\def\check@optarg#1{%     \@ifnextchar\thmtformatoptarg\@secondoftwo{#1}% } \makeatother  \declaretheoremstyle[ spaceabove=6pt,  spacebelow=6pt, headfont=\normalfont\bfseries, postheadspace=1em, notefont=\bfseries, notebraces={(}{)}, bodyfont=\itshape ]{thmstyle}  \declaretheorem[style=thmstyle,name=Definition,numberwithin=section]{mydef}  \begin{document}     \renewcommand{\listtheoremname}{Definitions}     \addcontentsline{toc}{section}{\listtheoremname}     \listoftheorems[ignoreall,show=mydef]      \chapter{Mathematics = Set Theory?}     \setcounter{section}{16}      \section{Set Theory}     \begin{mydef}[Principle of Comprehension]         \label{def:PrincipleofComprehension}         \hfill \break         If $\phi(x)$ is a property or condition pertaining to objects $x$, then there exists a set whose elements are precisely the objects that have the property $\phi(x)$     \end{mydef} \end{document}   This results in:    How can I add some space here, between the number and the text?

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


I'm sure this is very easy:  say I have the following dictionary:   foo = { a: 3, b: 10, c: 5 }   What's the most efficient (and cleanest) way to get the value 10  Thanks

I have a dictionary: keys are strings, values are integers.  Example:   stats = {'a':1000, 'b':3000, 'c': 100}   I'd like to get 'b' as an answer, since it's the key with a higher value.  I did the following, using an intermediate list with reversed key-value tuples:  inverse = [(value, key) for key, value in stats.items()] print max(inverse)[1]   Is that one the better (or even more elegant) approach?


I am creating directories in a shell script with below permissions  chmod -R 770 /user/mydir chown -R user:mygroup /user/mydir chown -R g+s /user/mydir   However whenever I am creating a new directory under /user/mydir, I am getting permission as drwxrwsr-x. For directory and if I am creating any new file under it, I am seeing permission on file as -rw-rw-r--. But it should be -rwxrwx---, because I am giving chmod 770. I am not sure what I am doing wrong, please help me in solving the issue.

I don't understand how my Linux machine is operating on new files.   I have an Amazon Linux AMI (RHEL based distro) and when I execute umask I get 0002, so I get whenever I create new stuff other users won't get write access.  But then I go to my home directory and I type:  $ mkdir myDir $ touch myDir/myFile $ ls -l | grep myDir   and I get  drwxrwxr-x 2 myself myself 4096 May 11 22:37 myDir   and for the folder:  $ ls -l myDir -rw-rw-r-- 1 myself myself 0 May 11 22:37 myFile   So apparently there's more going on there then my umask, since myFile permissions are more restrictive than just write protection.  Digging deeper, if I try:  $ sudo touch /var/run/myPidFile.pid $ ls -l /var/run/ | grep myPidFile.pid -rw-r--r-- 1 root    root       0 May 11 22:42 myPidFile.pid   So myPidFile.pid gets a much more restrictive default permission, under /var/run then myFile gets under my home folder.  We could blame the root umask but if I run umask under root I get 0022 which is indeed more restrictive then my user's 0002 umask but still doesn't explain how the execution bit permission isn't set.  So how can I understand a folder's default permission on Linux?


I refer, for example, to, "In which foods does one find carageenan?" vs. "In what foods...?"  Thank you!

Most of the time one or the other feels better, but every so often, "which" vs. "what" trips me up.   So, what's the exact difference and when should you use one or the other?


Insert into "user" (colums) values (?):   When executed with apache query runner library in java code gives error  saying no table or view exists But when executed directly works fine.

I thought that the quotation mark (") was simply a type of grouping marker but I'm debugging some NHibernate code and notice that while  SELECT * FROM site WHERE site_id = 3;   Works fine  SELECT * FROM "site" WHERE site_id = 3;   fails with a table or view does not exist error.  What gives?


I am newbie to Mac world! After unzipping the apache-maven binaries, I was trying to check its version from the terminal using a command, mvn -v But there I saw message restricting me its access, here is the screen shot.  Do I need to have any other permissions to access this?

I'm running macOS 10.15 Catalina Beta.  When I try to install Spotify I see the following error:    Is this a Spotify issue or a Catalina issue?  Thanks.


I have had oracle's jdk7 installed on my 64bit Ubuntu 14.04 now for some time and it has behaved as expected.  However lately all my updates has ended in errors and after some research I found the following:  Oracle JDK 7 is NOT installed. dpkg: error processing package oracle-java7-installer (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  oracle-java7-installer   The reason is given further up:  Downloading Oracle Java 7... --2015-04-28 12:00:58--  http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz Resolving localhost (localhost)... 127.0.0.1 Connecting to localhost (localhost)|127.0.0.1|:3142... connected. Proxy request sent, awaiting response... 403 Sorry, not allowed to fetch that type of file: jdk-7u80-linux-x64.tar.gz 2015-04-28 12:00:58 ERROR 403: Sorry, not allowed to fetch that type of file: jdk-7u80-linux-x64.tar.gz.   I don't really know how to fix this. I tried purging and re-intsalling but it seems that this is Oracle shutting down the download from Ubuntu users like me. The nerve!

I'm getting this output when I trey to update/install oracle-java7 or from webupd8 ppa:  Downloading Oracle Java 7... --2014-11-19 16:35:02--  http://download.oracle.com/otn-pub/java/jdk/7u72-b14/jdk-7u72-    linux-x64.tar.gz Resolving debiancacherepo.domain.com (debiancacherepo.domain.com)... 192.168.130.129 Connecting to debiancacherepo.domain.com (debiancacherepo.domain.com)|192.168.130.129|:3142... connected. Proxy request sent, awaiting response... 403 Sorry, not allowed to fetch that type of file: jdk-7u72-linux-x64.tar.gz 2014-11-19 16:35:02 ERROR 403: Sorry, not allowed to fetch that type of file: jdk-7u72-linux-x64.tar.gz.  download failed Oracle JDK 7 is NOT installed. dpkg: error processing package oracle-java7-installer (--configure): subprocess installed post-installation script returned error exit status 1   My /etc/apt-cacher.conf  #package_files_regexp = (?:^[-+.a-z0-9]+_(?:\d:)?[-+.~a-zA-Z0-9]+(?:_?[-a-z0-9]+\.(?:u|d)?    deb|\.dsc|\.tar(?:\.gz|\.bz2|\.xz)|\.diff\.gz)|\.rpm|index\.db-.+\.gz|\.jigdo|\.template)$  #pdiff_files_regexp = ^2\d{3}-\d{2}-\d{2}-\d{4}\.\d{2}\.gz$  #index_files_regexp = ^(?:Index(?:\.bz2)?|(?:Sources|Packages|release)(?:\.gz|\.bz2)?|Release(?:\.gpg)?|InRelease|Contents-(?:[a-z]+-)?[a-zA-Z0-9]+\.gz|(?:srclist|pkglist)\.[a-z-    ]+\.bz2|Translation-[a-z]{2,3}(?:_[A-Z]{2}(?:\.[a-zA-Z0-9-$   I think apt-cacher doesn't like the format of the file jdk-7u72-linux-x64.tar.gz but I am not able to change the configuration to allow it.


Let $X$ be compact and suppose that $Y$ is a Banach subspace of $C(X)$. If E is a closed subset of $X$ such that for every $g\in C(E)$ there is an $f\in Y$ with $f_{|_{E}}=g$. Show that there is a constant $c>0$ such that for each $g\in C(E)$ there is an $f\in Y$ with $f_{|_{E}}=g$ and $||f||\leq c||g||$.  For this I think about using the inverse mapping theorem for the functional $\phi:Y\to C(E)$ but it's not injective.  Please help me.

Consider the vector spaces $C([0, 1])$ and $C^1([0, 1])$ with norm, \begin{align*} \displaystyle \|f\|_\infty=\sup_{x\in [0, 1]}|f(x)|, \end{align*} and let $T:C^1([0, 1])\to C([0, 1])$ the operator given by, \begin{align*} \displaystyle Tf=f'. \end{align*} Is $T$ defined this way an open mapping? If it's, how to prove it?


I am trying to impersonate my windows application built using C# with a service account. When the application is launched by a user it should be launched after impersonating the user as the service account.  I tried the following under system.web in app.config but it did not work    but it did not work out.  Do you have any suggestion on how to impersonate my windows application entirely.

Is there a simple out of the box way to impersonate a user in .NET?  So far I've been using  for all my impersonation requirements.  Is there a better way to do it by using .NET Framework?  I have a user credential set, (username, password, domain name) which represents the identity I need to impersonate.


What is the best way to kill the Queen Mirelurk on SURVIVAL level difficulty? Missles, Rifles, and mini-nukes are practically worthless and you cannot heal in combat.  In addition the Queen's poison attack bypasses all armor (only a rare legendary item gives poison any resistance and its an insignificant amount).

I just encountered the Mirelurk Queen, and she kicked my ass pretty thoroughly. I'm at level 17, and I really didn't expect a level 50 boss to appear in this mission. Everthing before went very well, I didn't have any issues with the regular Mirelurks before the queen appears.  One issue is that the queen does a lot of damage if she hits me, apart from evading better is there anything I can do to reduce that damage?  What are the weaknesses of the queen? I didn't have any weapons with me that could do more than chip off more than a tiny bit of health with each shot.  Any particular strategies that work against this enemy?


I need to create script which read lines from one file and check if this line exist in second file. How to handle special characters in files like: ', " and \?  First file:  a.txt aa bb cc f 'f' "g" 'h'   Second file:  b.txt cc dd 'f' "g" g h   Command:  cat a.txt | xargs -I{} grep -w {} b.txt   Return:  cc 'f' 'f' "g" g  <- it shouldn't be there h  <- it shouldn't be there   Expected:  cc 'f' "g"   In my case last item (h) shouldn't be listed because this item doesn't exist in a.txt file. There is only 'h' (single quotes). How can I handle this in universal way to prevent unexpected situation in future?

Diff is a great tool to display the changes between two files. But how to display the similarities of two text files (while ignoring the differences)?  I.e. sample input:  a: Foo Bar X Hello World 42  b: Foo Baz Hello World 23   Pseudo output (something like this):  @@ 2,3 =Hello World   Just sorting both files and using comm is not enough, because in that case the line information is lost.


Is there any difference between  <input type="submit" value="Register" onclick="javascript:submitTheForm();">   and  <input type="submit" value="Register" onclick="submitTheForm();">   Should I use javascript: before a JS function call?

AFAIK, you never need to specify the protocol in an onclick:  onclick="javascript:myFunction()" Bad  onclick="myFunction()" Good  Today I noticed in  on Google Anallytics that they are using it:  <a href="http://www.example.com" onClick="javascript: pageTracker._trackPageview('/outgoing/example.com');">   Is this example just plain wrong, or is there ever a reason to specify javascript: in anything other than a href?


The following statement appeared in my textbook:     Consider $h_{n}(x)=x^{1+\frac{1}{2n-1}}$ on the set $[-1, 1]$, for a    fixed $x \in [-1, 1]$, we have $\lim_{n \rightarrow \infty} h_n(x) =  |x|$.   Can someone explain why $\lim_{n \rightarrow \infty} h_{n}(x) = |x|$? Specifically, where did the absolute value sign come from? What limit laws/rules are used to obtain this result?  I would have thought $\lim_{n \rightarrow \infty} h_n(x) = x \lim_{n \rightarrow \infty} x^{\frac{1}{2n-1}} = x$?  EDIT: I had a look at the other question suggested, but my question is different because I want to know the exact limit laws used in each step of the justification that $\lim_{n \rightarrow \infty} h_n(x) =  |x|$.

Okay, maybe I'm missing something obvious but consider $h_n(x) = x^{ 1+ \frac{1}{2n-1}}$ on the set $[-1,1]$. Now consider a fixed $x \in [-1,1]$, we have:  $$\lim_{n\rightarrow \infty} h_n(x) = x \lim_{n \rightarrow \infty} x^\frac{1}{2n-1} = x$$  But my book says it's $|x|$? Why?


Caused by: java.lang.NullPointerException: Attempt to invoke virtual   method 'void com.andremion.counterfab.CounterFab.setCount(int)' on a   null object reference   Code  @Override protected void onResume() {     super.onResume();     fab.setCount(new Database(getBaseContext()). getCountCart());      if (adapter!=null )     {         adapter.startListening();     } }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I got this question in my interview and I have no Idea how to proceed. I have search net but not got any satisfactory answer. The question is:-  Write a Javascript that gives a pop-up alert shows the IP address of the user, and outputs a file as follows in the pop-up alert:                   My IP address:    10.123.123.43  Kindly help me out. Thanks

I need to somehow retrieve the client's IP address using JavaScript; no server side code, not even SSI.  However, I'm not against using a free 3rd party script/service.


We have the infinite series:$$\frac{1}{2\cdot 3\cdot 4}+\frac{1}{4\cdot 5\cdot 6}+\frac{1}{6\cdot 7\cdot 8}+\cdots$$   This is not my series: $\frac{1}{1\cdot 2\cdot 3}+\frac{1}{2\cdot 3\cdot 4}+\frac{1}{3\cdot 4\cdot 5}+\frac{1}{4\cdot 5\cdot 6}+\cdots$ so I cannot use $\sum_{k=1}^n \frac{1}{k(k+1)(k+2)}$  My attempt:  I know that this type of series solved by making it telescoping series but here, I am unable find general term of the series. Thank you.

As my question says,   $$\frac 1{1.2.3}+\frac 1{2.3.4}+\frac 1{3.4.5}+...$$  As far as $\frac 1{1.2}+\frac 1{2.3}+\frac 1{3.4}+...$ is concerned, we can write it as $\frac 1{n-1} - \frac 1{n}$ What can we do here?


I would like to know how the code below affects database creation and data access in Java playframework  public Boolean isactive;   and   Boolean isactive;

In Java, are there clear rules on when to use each of access modifiers, namely the default (package private), public, protected and private, while making class and interface and dealing with inheritance?


I have been noticing this problem in a few pen-drives for quite a lot of time, and now this has occurred to mine.  When I double click on the pen-drive icon, I find a pen-drive short-cut icon to %windir%\System32\rundll32.exe  \~$n.dqu,cxcxcscxgxcbgpzm.  Here is a screen-shot:   When I open it, this appears:   What is the problem? Is it safe? And how can I make it normal?  If it helps, I am using this pen-drive on Windows 8.1 and 7 laptops. The problem started after plugging it to the Windows 7 one (not immediately after plugging it, but after a few weeks).

What should I do if my Windows computer seems to be infected with a virus or malware?  What are the symptoms of an infection? What should I do after noticing an infection? What can I do to get rid of it? how to prevent from infection by malware?   This question comes up frequently, and the suggested solutions are usually the same. This community wiki is an attempt to serve as the definitive, most comprehensive answer possible. Feel free to add your contributions via edits.


Is there any difference between saying "I am not really sure where the noise is from" and "I am really not sure where the noise is from"? are they interchangeable?

I can't distinguish the difference in meaning between these  two sentences.   It really doesn't matter.  It doesn't  really matter.    It seems that there is a nuanced difference, but I cannot see what this is.


A friend of mine saw a gun at the store that was labeled as the "most quiet gun".  Is this correct English or is it more correct to say, the "quietest gun"?

I know the rule for making the comparative and superlative form for two-syllable words ending in y, replace the -y with i and use -er and  -est:    hap.py → happier → (the) happiest ti.dy → tidier → (the) tidiest fun.ny → funnier → (the) funniest  Instead for two-syllable adjectives which do not end in -y, use more and most:    bor.ing → more boring wor.ried → more worried care.ful → more careful tra.gic → more tragic  However, there are inexplicable exceptions: The Free Dictionary says the comparative and superlative form of  is cleverer and cleverest. Yet to my ears     He's more clever than I thought   sounds more formal and correct.  Google produces a total of  for “he is more clever than” and  for the contracted form,  “he's more clever than”. Similarly, Google yields  and  for “he's cleverer than” and “he is cleverer than” respectively, which suggests there is very little to choose between the two comparative forms.  Meanwhile, TFD insists that the comparative and superlative form of  is  simpler and simplest. Google seems to concur and produces  for “it is simpler” compared to only  for “it is more simple”.  The two-syllable adjectives that I am aware of, which have both kinds of comparative and superlative forms are:   clever → cleverer/more clever → cleverest/(the) most clever common → commoner/more common → commonest/(the) most common gentle → gentler/more gentle → gentlest/(the) most gentle humble → humbler/more humble (etc.) hollow → hollower/more hollow  narrow → narrower/more narrow  polite → politer/more polite quiet → quieter/more quiet simple → simpler/more simple stupid → stupider/more stupid subtle → subtler/more subtle   Etymologically speaking, is there any explanation for this?  Is it a recent trend?  It seems to me that the number of two-syllable adjectives that add the suffix -er and -est are increasing.   And finally, is there a trick or rule which I can teach my advanced private students? With younger learners and beginners I teach the “rule” that I mentioned at the beginning—so much simpler! :)    EDIT  December 11, 2019     I shall never ever understand Google's algorithms and how they produce their statistics. In the end, for the sake of clarity, the number of results have been substituted and updated with the number of pages each search produced.