run one time only why?? JavaScript  HTML Code

                 One	             <button class="mvFirst">One</button>

                 Two	                 <button class="mvFirst">Two</button>

                 Three	                 <button class="mvFirst">Three</button>

   Scripts   // plugin : move tr(row) on click to first          $.fn.moveFirst = function () {             debugger;             var ele=$(this).closest('tr').clone();             $(this).closest('tr').remove();             $(ele).prependTo('#tbl1');         };         $('.mvFirst').click(function () {             debugger;             $(this).moveFirst();         });   Why that working one time after this didn't work , I need to solve that please


What happens to the graph of a function, whose limit is of the form $1^{\infty}$?

Is the function just undefined or it has the value of the limit? I am just unable to understand which case it is ..


Remove the badge-activated tag creator, or just always show the creator

As explained on  tags where the Taxonomist badge was awarded show the creator, while the rest don't. This was introduced by .   Link:     Link:   This has no value, and only causes confusion (see question's history and first linked question). All or none would be better.


I've answered my own bounty question, and days later someone provided a duplicate answer, and the bounty goes to him?

I offered a bounty on this  that I asked last year. I have provided the answer with working code, and days later someone else provided a "duplicate" answer without code. Currently the highest voted "duplicated" answer is borrowed from existing comments and answers, and more importantly does not even contain a code example. Because the bounty can't go back to the poster, now the bounty goes to him. I feel this is not fair.


I'm seeing : used in JavaScript a good bit and I can not figure out what exactly what its doing. Is it naming something? For example is the function being named onSave? Example is below.   onSave: function() {         var properties = this.getFormData(),             request = this.wfsBody("usa", "usa:pecotest", "geom",                               properties);             console.log(request);             this.makeRequest(request);enter code here


Missing objects when opening old file in blender 2.8

I just got a updated to blender 2.8 and my objects that were in hidden layers are gone now, the collection layer tells me that they are in the scene but I cant unhide them also the collection is grayed out as well.


Does this mail mean that I've been granted the UK Visa?

What does the below e-mail mean?  This is an email to confirm that your UK visa application has been approved and will now be returned to the Visa Application Centre if you applied through Amman, Cairo or Beirut.  Please allow the following transit times:  Amman, Cairo, Beirut: 2 days  Erbil,  Baghdad, Basra: 5 working days Jerusalem: 5 working days.  You will be contacted by the Visa Application Centre - by e-mail - when your passport and documents are ready for collection. Please do not go to the Visa Application Centre before they have contacted you.   If you have not been contacted, please attend the application centre after the proposed transit times as stated above.  PLEASE DO NOT CALL THE LOCAL BRITISH EMBASSY OR CONSULATE GENERAL AS THIS IS A DIRECT DESPATCH FROM THE UKVI OFFICE IN AMMAN.   If applied from Iraq: Your decision will be despatched and returned to you by Aramex courier. If you have applied from Jerusalem: your decision will be returned to you by Aramex courier. If applied from Ramallah: Please note that there is a 2-3 days courier transit period from Amman to The OPTs. You can collect your decision on the next Wednesday allowing for the 2-3 days courier transit period. If you have elected to receive your decision via Aramex, please allow for 3 days and contact your local Aramex office. They should also contact you to advise you to collect your decision. Please note- as advised that there is a fee of 50 NIS on collection by Aramex and this has to be pre-arranged.    You are reminded that you should avoid making travel plans until you have collected your passport.   Please note that only your original documents will be returned. All translations, copies and letters addressed to UKVI will be retained for our records.  If you need to contact us you can do so via our International Enquiry Service at www.gov.uk/contact-ukvi-outside-uk  Kind regards,   Regards UK Visas and Immigration  British Embassy Amman www.gov.uk/ukvi


What software can I use to convert images to other formats?

I am looking for an application which can do the following:   Resize one or more images Compress images Rotate and flip images Rename multiple images using a progressive number or a prefix/suffix Convert an entire PDF file to a bunch images Extract an image from a Windows .ico file Convert images to DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, TIFF, and other formats   I am running Ubuntu GNOME 15.10 with GNOME 3.18.


I am a probability theory beginner. The expression for the variance of a random variable $x$ (of a random process is   $$\sigma^2 = E(x^2) - (\mu_{x})^2$$  If $E(x^2) = (\mu_{x})^2$, then $\sigma^2 = 0$. Can this happen ? Can a random variable have a density function whose variance (the second central moment alone) is $0$ (other than the dirac delta function).


Prove using Rolle's Theorem that an equation has exactly one real solution.

Prove that the equation $x^7+x^5+x^3+1=0$ has exactly one real solution. You should use Rolle’s Theorem at some point in the proof.    Since $f(x) = x^7+x^5+x^3+1$ is a polynomial then it is continuous over all the real numbers, $(-\infty,\infty)$. Since $f(x)$ is continuous on $(-\infty,\infty)$ then it is certainly continuous on $[-1,0]$ and the Intermediate Value Theorem (IVT) applies. The IVT states that since $f(x)$ is continuous on $[-1,0]$ we can let $C$ be any number between $f(-1)=-2$ and $f(0)=1$, namely $C=0$, then there exists a number $c$ with $-1 < c < 0$ such that $f(c)=C=0$. Since $f(x)$ is continuous on $[-1,0]$ and differentiable on $(-1,0)$ then Rolle’s Theorem applies. Rolle’s Theorem states that if a function $f\colon [a,b] \to \mathbf{R}$ is continuous on $[a,b]$ and differentiable on $(a,b)$ then if $f(a)=f(b)$, there exists a point $c \in (a,b)$ such that $f'(c)=0$. We assume that there is more than one real solution for this equation, namely $f(a)=0=f(b)$. If there exists more than one real solution for $f(x)=0$ then $f(a)=0=f(b)\implies a=b$, and thus there is only one real solution to the equation, as desired.   But I feel  I am missing something, and I'm not sure how to show that the equation is differentiable on the interval and that Rolle's Theorem applies.


What happened when I wrote "a, b, c = [[],] * 3" in python? It seems that a, b, c are the same object

What happened when I wrote a, b, c = [[],] * 3 in python? It seems that a, b, c are the same object.  a, b, c = [[],] * 3 a.append(1) b.append(2) print(c)   The answer is [1,2] , why?


I have the age-old problem of a div wrapping a two-column layout. My sidebar is floated, so my container div fails to wrap the content and sidebar.

   There seem to be numerous methods of fixing the clear bug in Firefox:
 overflow:auto overflow:hidden   In my situation, the only one that seems to work correctly is the
 solution, which is a little bit scruffy. overflow:auto gives me nasty scrollbars, and overflow:hidden must surely have side effects. Also, IE7 apparently shouldn't suffer from this problem due to its incorrect behaviour, but in my situation it's suffering the same as Firefox.  Which method currently available to us is the most robust?


Where are all the terminal commands stored and how to view them?

I forgot the terminal command for viewing the disk space. So I began with the resources for terminal commands like pdf and webpages. Aren't those terminal commands stored somewhere in the file syster? In that case where are they stored and how can I see the terminal commands?  PS: It will be like a single command which lists and displays all the rest of command that are stored in the system.


How to turn off magic quotes on shared hosting?

I want to turn off PHP's magic quotes.  I don't have access to php.ini.  When I tried to add php_flag magic_quotes_gpc off to my .htaccess file, I get a 500 internal server error. This is what my .htaccess file looks like:  AddType x-mapp-php5 .php php_flag magic_quotes_gpc off   Then I tried to use ini_set('magic_quotes_gpc', 'O'), but that had no effect.  How do I turn magic quotes off?


Checking if a user account is locked on another domain controller

I'm trying to see if a user account has been locked out, using the command line.  I thought that I could do this with the net command, but when I run the command   NET USER username /domain   it processes the request on my domain controller; whereas the user that I want to check is on a different domain.  I cannot find a command/option to use the right domain (controller).  How do I check a user account on different domain to see whether it has been locked out?


Is there a way to add a password prompt when opening email app on a mac? To stop others from opening the email program on a shared computer. Basically i dont want anyone to open the email program without a password.


I have a minor but annoying issue with \parencite{}, see screenshot below.  Here my MWE: .tex file  \documentclass[14pt]{article}  \usepackage{fancyhdr} \pagestyle{fancy}  \usepackage[T1]{fontenc}       \usepackage[utf8]{inputenc}   \usepackage{lmodern} \usepackage{graphicx} \usepackage{textcomp} \usepackage[american,italian]{babel} \usepackage[babel,italian=guillemets]{csquotes} \usepackage{hyperref} \usepackage{ifthen} \usepackage{datetime}  \usepackage[style=philosophy-modern,hyperref,defernumbers=true,annotation=true,sorting=nyvt]{biblatex} %\usepackage[style=apa,hyperref,sorting=nyvt]{biblatex}  % not better than above \addbibresource{test.bib}  \begin{document} \author{myself} \title{main bib} \maketitle  \noindent \nocite{*}  \defbibheading{Main}{\section{Main Section}} \defbibnote{A}{nice books}  \newrefcontext[labelprefix={A-}] \printbibliography[heading=Main, prenote={A}, keyword=A]  \end{document}   and .bib file  @Booklet{AAA, author = {name surname}, label = {Ab}, title = {main title A, also as  \parencite{BBB}, pag.1-99, \parencite{CCC}, {\parencite{DDD}}, pp. 100-199}, howpublished = {Ok}, year = {2014}, location = {MyTown}, annotation = {also as  \parencite{BBB}, pag.1-99, \parencite{CCC}, {\parencite{DDD}}, pp. 1-99}, keywords = {A} }  @Book{BBB, author = {alpha beta}, title = {Main Book B}, publisher = {editor}, year = {2015}, keywords = {A} }  @Book{CCC, author = {aaa BBB}, title = {Main Book C}, publisher = {editor}, year = {2016}, keywords = {A} }  @Book{DDD, author = {{NML} {IJK}}, title = {Main Book D}, publisher = {editor}, year = {2017}, keywords = {A} }     I do not get why/how I got those extra semicolons (;).  Any idea? Your help is welcome.


How can I increase the file system root using free space in my disk?

I am using ubuntu for almost a year with dual boot. Actually, I almost never use windows for a long time and I want to increase my file system root disk. I create a free 60 gb disk space, but I cannot use it to increase file system root. The unallocated space doesn't appear. I haven't found the solution. What should I do at this point?


Single word describing a person new in something

What is a word for someone who is totally new in something or participates in something for the first time?


OAuth2 Refresh Token Flow - Unsupported Grant Type

I am attempting to obtain a token, using the Oauth 2 refresh token flow.    I am using the REST Console in Chrome to perform the following POST operation:  My URI is   My Content-Type header is "application/json"  I am posting the following body (client id and secret omitted)  { "client_id":"<supersecret>" ,"grant_type":"authorization_code" ,"client_secret":"<supersecret>" ,"redirect_uri": "https://" }   From what I gather from the saleforce oauth2 refresh token flow documentation, this should work.  However, I am getting the following error for a response:  {     "error_description": "grant type not supported",     "error": "unsupported_grant_type" }   Any thoughts on why the service doesn't like my grant_type parameter?


Convincing the CFO often requires speaking the same   language—an area of growth for most CIOs. Driving change will   partially rely on being able to sell to your primary investors (CFO,   CEO, COO, and Board). Get the pitch down. Practice and refine.    I think it means fail and then stand. is it true.


Objective function of canonical correlation analysis (CCA)

Given two vectors of random variables $X$ and $Y$, Canonical Correlation Analysis (CCA) finds the transformation matrices $A$ and $B$ so that $\operatorname{corr}(A_{1*} X, B_{1*} Y)$ is first maximal, $\operatorname{corr}(A_{2*} X, B_{2*} Y)$ is then maximal subject to $\operatorname{corr}(A_{1*} X, A_{2*} X) = 0$ and $\operatorname{corr}(B_{1*} Y, B_{2*} Y) = 0$, etc.  Is there any global objective function that $A$ and $B$ also optimize? For instance, do they maximize $\sum_i \operatorname{corr}(A_{i*} X, B_{i*} Y)$ subject to $A^TA=I$ and $B^TB=I$, or something around this line?  Related to that, if we define a transformation matrix $W = B^{-1}A$, is there any relation between $WX$ and $Y$ for which $W$ is optimal? In particular, is it possible to establish some connection between this transformation $W$ and the optimization objective of Ordinary Least Squares (OLS)?


There is a menu on bottom left corner of my screen which shows a chrome icon in it. How do I disable it? I am running gnome shell 3.18.5 on ubuntu 16.04LTS.


I'm a level 36, and I often farm for legendary weapons. The problem is, for example, when I did the clan wars mission (killing hodunks or zafords) the final battle I killed the hodunks. I was around level 20 then. Now when I farm for the legendary weapon he drops, he still is level 20 and drops the level 20 legendary weapon. My question is; how do I get the some of the bosses (tector, hunter hellquist, scorch, ect.) to scale to my level so I can get my level legendaries?  (don't know if this matters but I have beat the game and killed the warrior many times).


Vertically align graphic on a page by itself

I have tried several solutions to sort this, such as: \begin{figure}[p] and \vcenter but nothing works. I would like my graphic to appear in the middle of the page rather than the top. My code is:  \documentclass[a4paper,12pt]{book} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{cite} \usepackage{rsc} \usepackage{gensymb} \usepackage{xcolor} \usepackage{fancyhdr} \usepackage{mhchem} \usepackage{adjustbox,lipsum} \usepackage{tabularx} \usepackage{tabu} \usepackage{booktabs} \usepackage{caption} \usepackage{fixltx2e} \usepackage{mathtools} \usepackage{xfrac} \usepackage{siunitx} \usepackage{float}  \pagestyle{fancy} \fancyhf{} \fancyhead[LE,RO]{} \fancyhead[RE,LO]{\leftmark} \fancyfoot[CE,CO]{\thepage} \fancyfoot[LE,RO]{} \begin{document} \begin{figure} \centering \includegraphics[width=\textwidth]{picture}     \caption{caption}     \label{label} \end{figure} \end{document}   Thank you so much for any help!  EDIT: I know similar questions have been asked before, but the solutions did not work on my file.


Updated to Ubuntu 18.04 and Wi-Fi is now very weak - RTL8723BE

I just updated to Ubuntu 18.04 and my Wi-Fi stopped working on my Lenovo Laptop. Wi-Fi itself is still working for other systems, but my laptop can only connect once I'm next to my router. Seems the signal is too weak, but this makes no sense as all other devices (smartphone,TV) work with greater distance.  Do you have any idea?  :~$ lspci -knn | grep Net -A3; rfkill list   02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723]       Subsystem: Lenovo RTL8723BE PCIe Wireless Network Adapter [17aa:b728]       Kernel driver in use: rtl8723be       Kernel modules: rtl8723be   0: ideapad_wlan: Wireless LAN       Soft blocked: no       Hard blocked: no   1: ideapad_bluetooth: Bluetooth       Soft blocked: yes       Hard blocked: no   2: hci0: Bluetooth       Soft blocked: no       Hard blocked: no   3: phy0: Wireless LAN       Soft blocked: no       Hard blocked: no


Let $A,K$ be finite fields with $K\supset A$. If $[K:A]=3$, I would like clarification as to why, if $x$ is not a square in $A$, then $x$ is not a square in $K$. My notes just mention this fact, but without proof.


How can I find out why a package was installed?

How can I find out why a particular package was installed?   Is it part of the default installation? Was it specified manually, or was it chosen automatically to meet dependencies? Which packages are dependent on it? When was it installed?


How can I make a common numbering for my figures and tables?  For instance, I want to obtain in Section 1 something like: Table 1.1, Figure 1.2, Table 1.3, Table 1.4, Figure 1.5


Opening an HSA mid-year: how much can I contribute to it?

I opened an HSA account in the United States during the year: what's my maximum contribution? Is it the annual maximum (i.e., ), or should I prorate (e.g., if I started at the beginning of September, I could only contribute 3400*4/12 USD)?


Why is my udev-fired script not working?

I created a udev rule in order to sync my USB drive with my documents folder, but it doesn't seem to be working.  95-usb-auto-sync.rules:  ACTION=="add", ATTRS{idVendor}=="0930", ATTRS{idProduct}=="1408", RUN+="/home/riccardo/Documents/Scripts/sync-riccardo-usb.sh"   /home/riccardo/Documents/Scripts/sync-riccardo-usb.sh:  #!/bin/bash  rsync -a --delete '/home/riccardo/Documents/Development/' '/run/media/riccardo/Riccardo/Documents/Development' --exclude='*/node_modules' >> /home/riccardo/Documents/Scripts/log.txt rsync -a --delete '/home/riccardo/Documents/KiCAD/' '/run/media/riccardo/Riccardo/Documents/KiCAD' >> /home/riccardo/Documents/Scripts/log.txt rsync -a --delete '/home/riccardo/Documents/Personal Files/' '/run/media/riccardo/Riccardo/Documents/Personal Files' >> /home/riccardo/Documents/Scripts/log.txt rsync -a --delete '/home/riccardo/Documents/Scripts/' '/run/media/riccardo/Riccardo/Documents/Scripts' >> /home/riccardo/Documents/Scripts/log.txt   I added the '>> /home/riccardo/Documents/Scripts/log.txt' part to check if the script was actually executed. The log.txt file remained blank though.  Toshiba USB Drive Udev info:    looking at device '/devices/pci0000:00/0000:00:14.0/usb4/4-2':     KERNEL=="4-2"     SUBSYSTEM=="usb"     DRIVER=="usb"     ATTR{authorized}=="1"     ATTR{avoid_reset_quirk}=="0"     ATTR{bConfigurationValue}=="1"     ATTR{bDeviceClass}=="00"     ATTR{bDeviceProtocol}=="00"     ATTR{bDeviceSubClass}=="00"     ATTR{bMaxPacketSize0}=="9"     ATTR{bMaxPower}=="296mA"     ATTR{bNumConfigurations}=="1"     ATTR{bNumInterfaces}==" 1"     ATTR{bcdDevice}=="0001"     ATTR{bmAttributes}=="80"     ATTR{busnum}=="4"     ATTR{configuration}==""     ATTR{devnum}=="2"     ATTR{devpath}=="2"     ATTR{idProduct}=="1408"     ATTR{idVendor}=="0930"     ATTR{ltm_capable}=="no"     ATTR{manufacturer}=="TOSHIBA"     ATTR{maxchild}=="0"     ATTR{product}=="USB FLASH DRIVE"     ATTR{quirks}=="0x0"     ATTR{removable}=="removable"     ATTR{serial}=="C03FD5FBA9CDC1401D7FB227"     ATTR{speed}=="5000"     ATTR{urbnum}=="11182"     ATTR{version}==" 3.00"   Thank you,  Riccardo


A ring element with a left inverse but no right inverse?

Can I have a hint on how to construct a ring $A$ such that there are $a, b \in A$ for which $ab = 1$ but $ba \neq 1$, please? It seems that square matrices over a field are out of question because of the determinants, and that implies that no faithful finite-dimensional representation must exist, and my imagination seems to have given up on me :)


I am using a Mac Machine with the following LaTeX Softwares:   MacTEX: as the main LaTeX kernel  TexStudio: as the LaTeX editor    In part of the document I have created, I try to import a vector graphic image in *.eps format:   \begin{figure}     \begin{center}        \begin{tabular}{cc}         \includegraphics[width=0.450\linewidth]{images/p1}&          \includegraphics[width=0.450\linewidth]{images/p2}\\          (a)OLS & (b)RR      \end{tabular}   \end{center} \end{figure}   p1 and p2are p1.eps and p2.eps images.I include the following packages as well on top of the code:  \usepackage{graphicx} \usepackage{epstopdf}   After this, I am getting a stupid error with regard to eps to pdf conversion.  ! Package pdftex.def Error: File `images/p1-eps-converted-to.pdf' not found. ! Package pdftex.def Error: File `images/p2-eps-converted-to.pdf' not found.   I have tried several options but still cannot see the images in my machine. What can I do to overcome the issue please?


Was it the ring that gave Sauron all of his strength?

Sauron was defeated by Isildur but he did not die. I suppose because the ring was taken from him but it was not destroyed. Having lost the ring how did he begin to gain power again? Did the ring have indeed its own will to help Sauron from a distance?


how to automate developers tools - console

How can we automate developer tools - console section using Selenium? how to get data from the console for a particular service call. ex: as per the screenshot attached I what to know a.fn.init[div#804]  call data using Java and Selenium in eclipse  Is it possible? If so, how do I achieve this?


I've been given the following problem.  Prove that $$\lim_{N\to\infty}\sum_{i=1}^N\frac1i=\infty.$$  In other words I need to prove that the partial sum of the harmonic series diverges.  I know the integral test works in this case, but does anybody know of any other methods for showing this?


How does one add a second name and year(s) within the parentheses produced by \textcite?

I would like to use \textcite to produce something like:     According to Stringer and Gamble (1993, p.159; contra Gargett 1989, 1999), the only clear example of an intentional Neanderthal burial is that of La Chapelle-aux-Saints 1 in Southwestern France.   I've looked around but couldn't find anything to that effect.   Here's a MWE:  \documentclass[10pt]{article}  \usepackage[american]{babel} \usepackage{csquotes} \usepackage[sorting=nyt, style=authoryear-comp, backend=biber, maxbibnames=10, maxcitenames=2, doi=false]{biblatex} \addbibresource{preset.bib} \DeclareLanguageMapping{american}{american-apa}   \begin{document} According to \textcites[159]{Stringer1993}[contra][]{Gargett1989, Gargett1999}, the only clear example of an intentional Neanderthal burial is that of La Chapelle-aux-Saints 1 in Southwestern France. \printbibliography \end{document}   Which does not produce what I want:     EDIT: Here's what worked for me (both lines are identical, but for me only the second worked)  \citeauthor{Stringer1993}~\mkbibparens{\cite*[159]{Stringer1993}; contra \cite{Gargett1989, Gargett1999}} \citeauthor{Stringer1993}~\mkbibparens{\cite*[159]{Stringer1993}; contra \cite{Gargett1989, Gargett1999}}


The correct way to fix this error Bukkit?

How do you fix the following error in Bukkit? public class Listeners implements Listener {  private Main plugin = Main.getPlugin(Main.class); @SuppressWarnings("deprecation") public  void sendWarnTitle(Player player){     player.sendTitle(ChatColor.GRAY + "Ты получишь ничего, если простоишь на точке "+ ChatColor.YELLOW + plugin.getConfig().getInt("time") + "секунд." ,ChatColor.GRAY + "Если сойдёшь с кнопки, то время начнётся заного");     new BukkitRunnable(){         @Override         public void run(){             plugin.time.put(player,plugin.getConfig().getInt("time")); // This is line 37, where the exception is thrown             this.cancel();         }     }.runTaskTimer(plugin,0,60); }  public void countdown(Player player){     new BukkitRunnable(){         @SuppressWarnings("deprecation")         @Override         public void run() {             if (plugin.time.get(player) > 0) {                 plugin.time.put(player, plugin.time.get(player) - 1);                 player.sendTitle("",ChatColor.GRAY + "Точка будет захвачена через " + ChatColor.YELLOW + plugin.time.get(player) + "секунд.");             }             if(plugin.time.get(player)== 0){                 plugin.time.remove(player);                 this.cancel();             }         }     }.runTaskTimer(plugin, 20 ,20); }  LOGS: [Server thread/WARN]: [CapturePlate] Task #3 for CapturePlate v0.1 generated an exception java.lang.NullPointerException: null     at main.main.Listeners$2.run(Listeners.java:37) ~[?:?]     at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:76) ~[spigot-1.12.2.jar:git-Spigot-eb3d921-2b93d83]     at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:361) [spigot-1.12.2.jar:git-Spigot-eb3d921-2b93d83]     at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:739) [spigot-1.12.2.jar:git-Spigot-eb3d921-2b93d83]     at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [spigot-1.12.2.jar:git-Spigot-eb3d921-2b93d83]     at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [spigot-1.12.2.jar:git-Spigot-eb3d921-2b93d83]     at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [spigot-1.12.2.jar:git-Spigot-eb3d921-2b93d83]     at java.lang.Thread.run(Thread.java:813) [?:1.8.0_212] [12:28:24] [Server thread/WARN]: [CapturePlate] Task #5 for CapturePlate v0.1 generated an exception


In D&D 5e, variant humans receive an additional skill upon creation. Does this skill have to  belong to the same class as the character or can it be from any class? For example, if I made a variant human barbarian could I choose the skill acrobatics? Or, would it have to be an additional one from the barbarian skill list?


In Java and C#, is there any function to check if a file is used or not, like the error message we get when we try to delete a used file?  If not, what is another good way to check it?


MiKTeX - broken package combination fontspec / expl3

I have some problems after installing the latest 64bit-MiKTeX as well as the latest packages through the package manager. It seems that there is a problem with the combination of fontspec and expl3 from the l3kernel. I read about errors with newer version of fontspec in combination with expl3 and had a look at different workarounds, but I think that this one is different.  The log is below.  Any hint is welcome!  Bye Holger  LuaTeX: beta-0.80.0 (MiKTeX 2.9 64-bit) (rev 5238)  l3kernel, l3packages etc: packaged on 2015-11-05  complete log file:   example:   \documentclass[12pt, a4paper]{article}  \usepackage{fontspec}  % workaround for suppressfontnotfounderror \ifdefined\suppressfontnotfounderror   \expandafter\let\csname xetex_suppressfontnotfounderror:D\endcsname     \suppressfontnotfounderror \else   \expandafter\let\csname xetex_suppressfontnotfounderror:D\endcsname     \luatexsuppressfontnotfounderror \fi   \newfontfamily{\Arial} [Ligatures=TeX,UprightFont=arial.ttf]{arial}  \begin{document} \Arial Some text in Arial...  \rmfamily Some text in regular font...  \end{document}   some of the errors:  Undefined control sequence. ...\c_e_fp { 2.718 2818 2845 9045 } Undefined control sequence. ...\c_e_fp { 2.718 2818 2845 9045 } LuaTeX error [\directlua]:1: invalid escape sequence near '\s'. ...\c_e_fp { 2.718 2818 2845 9045 } Missing number, treated as zero. ...\c_e_fp { 2.718 2818 2845 9045 } Undefined control sequence. \fp_const:Nn \c_one_fp { 1 } Undefined control sequence. \fp_const:Nn \c_one_fp { 1 } LuaTeX error [\directlua]:1: invalid escape sequence near '\s'. \fp_const:Nn \c_one_fp { 1 } Missing number, treated as zero. \fp_const:Nn \c_one_fp { 1 } Undefined control sequence. ...\c_pi_fp { 3.141 5926 5358 9793 } Undefined control sequence. ...\c_pi_fp { 3.141 5926 5358 9793 } LuaTeX error [\directlua]:1: invalid escape sequence near '\s'. ...\c_pi_fp { 3.141 5926 5358 9793 } Missing number, treated as zero. ...\c_pi_fp { 3.141 5926 5358 9793 } Undefined control sequence. ...one_degree_fp { 0.0 1745 3292 5199 4330 } Undefined control sequence. ...one_degree_fp { 0.0 1745 3292 5199 4330 } LuaTeX error [\directlua]:1: invalid escape sequence near '\s'. ...one_degree_fp { 0.0 1745 3292 5199 4330 } Missing number, treated as zero. ...one_degree_fp { 0.0 1745 3292 5199 4330 } Undefined control sequence. { \i } Undefined control sequence. { \i } LuaTeX error [\directlua]:1: invalid escape sequence near '\i'. { \i } Missing number, treated as zero. { \i } Undefined control sequence. { \q_recursion_tail } Undefined control sequence. { \q_recursion_tail } LuaTeX error [\directlua]:1: invalid escape sequence near '\q'. { \q_recursion_tail } Missing number, treated as zero. { \q_recursion_tail } Undefined control sequence. { \q_recursion_tail } Undefined control sequence. { \q_recursion_tail } LuaTeX error [\directlua]:1: invalid escape sequence near '\q'. { \q_recursion_tail } Missing number, treated as zero. { \q_recursion_tail } Undefined control sequence. { \q_recursion_tail } Undefined control sequence. { \q_recursion_tail } LuaTeX error [\directlua]:1: invalid escape sequence near '\q'. { \q_recursion_tail } Missing number, treated as zero. { \q_recursion_tail } Undefined control sequence. { \q_recursion_tail } Undefined control sequence. { \q_recursion_tail } LuaTeX error [\directlua]:1: invalid escape sequence near '\q'. { \q_recursion_tail } Missing number, treated as zero. { \q_recursion_tail } Undefined control sequence. { \textsigma }


Is writing $dx^2$ same as writing $d(x^2)$ in calculus

When we write $dx^2$, do we actually mean $$d(x^2)$$ (the change in respect to $x^2$), or $$(dx)^2$$ ($dx$ squared)?


Is there an expression for the sum of $\binom nr^2$ for each $n$?

Is there a standard expression for  $$\sum_{r=0}^{n}\binom nr^2$$


Looking for young adult book, possible from the last 10-15 years

I remember this book from my early teen years, although what I remember makes it seem incredibly bizarre, but from what I remember, it was really enjoyable. I'm sure I read it before I read the "Mister Monday" series, by Garth Nix. I don't believe all of the series was available, if that helps narrow down a time frame.  I have a feeling this book was part of a series too. And it is based around a young male protagonist and, soon, a girl and another boy, whom he befriends.  I believe the first chapter of the first book starts with the protagonist answering a phone call. One of the questions he is asked is; How did the dinosaurs die? He initially believes this to be one of those radio shows, so he tries to be funny in his answer, which is; they died laughing. I'm sure they ask him about his sleeping habits, and he admits to falling asleep very easily, almost on command. This leads the boy to being recruited by an organisation which uses sleep as a way of entering and exiting some sort of world, or other time. There is something dangerous about it too, as I remember something about: trying to go deeper, or further, caused the person's heart to race to the point of an attack.  When he first travels to this place, it's like the beginning of time. The place is beautiful, and untouched. The protagonists male friend befriends a black panther cub, which I'm sure follows him around when they return.   This is when I lose track of the story and just remember snip bits;  The male friend is a skilled drummer and is able to tap into the 'beat' of the world, and stop time from travelling backwards - I believe this is in the second book.  The female friend is a skilled debater with unmatched logic, and during an argument with (some sort of boss bad guy), she uses the argument of a never ending cycle, a snake biting its tail. I'm sure she also had a bracelet of a snake biting its tail too, with green eyes?  There is a point where they are traveling through a cave of jewels. The protagonist collects some. They then come to a seemingly dead end, however, by giving up everything they  covet, such as the jewels, the characters are able to ascend to the village above.   Sorry for the long post, but I thought adding as much as I know might spark an answer from someone. :).   Thank you for your time.


Effect on Google rankings if my site is down?

What happens to my Google rankings when my site goes down for a short or long period of time?


CS0120: An object reference is required for the nonstatic field, method, or property 'foo'

Consider:  namespace WindowsApplication1 {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }          private void button1_Click(object sender, EventArgs e)         {             //int[] val = { 0, 0};             int val;             if (textBox1.Text == "")             {                 MessageBox.Show("Input any no");             }             else             {                 val = Convert.ToInt32(textBox1.Text);                 Thread ot1 = new Thread(new ParameterizedThreadStart(SumData));                 ot1.Start(val);             }         }          private static void ReadData(object state)         {             System.Windows.Forms.Application.Run();         }          void setTextboxText(int result)         {             if (this.InvokeRequired)             {                 this.Invoke(new IntDelegate(SetTextboxTextSafe), new object[] { result });             }             else             {                 SetTextboxTextSafe(result);             }         }          void SetTextboxTextSafe(int result)         {             label1.Text = result.ToString();         }          private static void SumData(object state)         {             int result;             //int[] icount = (int[])state;             int icount = (int)state;              for (int i = icount; i > 0; i--)             {                 result += i;                 System.Threading.Thread.Sleep(1000);             }             setTextboxText(result);         }          delegate void IntDelegate(int result);          private void button2_Click(object sender, EventArgs e)         {             Application.Exit();         }     } }   Why is this error occurring?     An object reference is required for the nonstatic field, method, or property 'WindowsApplication1.Form1.setTextboxText(int)


Linux commands to use Windows bootloader instead of Grub

So, I can't boot into windows at the moment, and in order to fix this problem I need to access Advanced Options which I can do by pressing F8 in the windows boot loader. However, I have grub currently as the default boot loader. How would I be able to change the bootloader through Linux terminal? Any ideas appreciated. Thanks!


Should accept marks count towards the tag score?

( has a different focus than this. That one explicitly asks solely for the rationale behind the current design. Arguing about the design, both in favor and possibly against it -- is thus prohibited there as off topic.)  Noting that accepting and upvoting are intersecting functionalities -- both mark an answer as useful -- I wonder if accept marks should count towards tag scores as well. The purpose of a tag score is to measure a user's contribution to the tag, and they definitely both signify such contribution.   Here's a litmus test for if an acceptance mark is fundamentally different from an upvote or not: "Would you think that a vote by the OP should be excluded from tag score if there was no separate acceptance mechanic?"   One could argue that an OP would upvote a useful answer as well anyway, but this is by no means mandated by the system. Moreover, if an OP is a novice, they even can't upvote at all -- which thus unfairly disadvantages .  AFAICS, the primary motivation for the current state of affairs is solely the implementation simplicity -- which is by no means a justification for perpetuating a flaw.  Sure, if an OP both upvoted and accepted, it should probably still count as one point. This is fairly easily doable, e.g. by only counting the accept mark if the OP is not among the upvoters (or by subtracting one if they are).


Higher dimensional equivalent of complex numbers

If complex numbers are in some sense 2 dimensional numbers, would it be useful or logical to extend the complex number system to a system of 3-dimensional or even n-dimensional numbers? If this does not make sense in general, why does it make sense only to extend from the 1st dimension to the 2nd dimension? What is special about 2-dimensional numbers that they are needed but n-dimensional numbers are not? I know that we have $R^k$, which is in some sense a field of $k$ dimensional numbers, but that is very different from the way in which complex numbers are constructed. So my question is could the complex numbers be extended to a 3rd dimension (or even an nth dimension) in the same way that the real numbers are extended to the complex numbers, in which the properties of complex numbers are preserved as a subset of this higher dimensional space?


Ibus-Avro prints Arabic characters in Ubuntu 17.04

I updated my Ubuntu to 17.04 today and now ibus-avro prints arabic characters. It was working fine before. I tried the bn to us trick as suggested on the website but that's of no use. It still prints Arabic characters instead of Bengali.


I cannot connect to more than one internet connection in my windows 8.1

I have windows 8.1 installed on my PC. I have 3 wired broadband connections, but I cannot connect to two or more connections at a time. For example I want to use all three connections jointly to download torrent files and other files using Internet Download Manager. How do I achieve this in Windows 8.1? When I manually connect, I get the error saying "You can only connect to one connection at a time".  Is there a cost-effective solution (I prefer software tweak) to use all three broadband connections for these programs in windows 8.1 or can I do something different if I switch my OS to Linux (probably Ubuntu). Please explain the steps if there is a way to achieve this. Thanks in advance


How to determine the fileencoding of a file in linux correctly

When I have a file created in Vim/Linux with :set fileencoding=utf-8 and have diacritics (as e.g. german umlauts) in the file, then calling up file myfile.txt results to myfile.txt: UTF-8 Unicode text. If I have no diacritics in the file, then the determination of the file encoding results to myfile.txt: ASCII text.  Why is that? And how can I determine safely, that a whole bunch of files is encoded correctly by using UTF-8 file encoding?  EDIT:  ASCII is 7-bit and is a subset of UTF-8. I want to know if my source files are encoded in UTF-8 so that they can hold diacritics sometime in the future. IMO this is not obvious and I like to find a way to determine this safely.


How I support different display resolutions?

I'm developing a 2D windows phone game. The game should look the same on every windows phone device. But I have no idea what to do so that my game looks great on every display resolution. How can I do that? What is the best/easiest way?  I don't like letterboxing. So I tried scaling the sprites but that looks blurry(very bad).  My sprites are all in PNG format. I created them in Inkscape.


Can Ubuntu 18.04 be fixed without reinstalling

I have win 7 and installed Ubuntu 18.04.  It went well and I used it for most of the day.  Then I rebooted and chose win7.  It did come up but it couldn't access anything.  Like the explorer would not come up and it couldn't run any programs. I re-installed it and now it comes up but Ubuntu doesn't. So, I thought I'd go through the Ubuntu install and see if there was an option to "fix", but all it comes up with is to remove that and re-install over it. Isn't there some way to do this without a complete re-install?  (I was so proud to have gotten my Thunderbird contents moved to Ubuntu, I'd hate to have to do that again). Thanks


What is the nature of Professor Snape's Patronus and why does it appear in the Forest of Dean?

During  the crew (now reduced to only Harry and  Hermione) wander through the Forest of Dean when a Patronus in the shape of a doe leads Harry to the frozen lake where he finds the Sword of Godric Gryffindor. Later during the events of  we (and Harry) take a look at the late Prof. Snape's memories and see that it was actually Snape who cast a doe Patronus (supposedly to Harry's aid), much to Dumbledore's surprise, who therefrom deduces a relation to Lily Potter (who Snape was secretly in love with all the years, albeit only unilaterally):     Dumbledore: Lily, after all this time?   Snape: Always.   Which already makes me wonder what Dumbledore was actually surprised about there. Was he simply surprised that Snape still loved Lily or was there anything deeper suggested with this Patronus? Add to this that Harry was a bit confused, too, and asked Dumbledore (or at least his mind-image of him, however you take that scene) about the reason for the related Patronuses, which didn't clear any confusions for me, though:     Harry: Professor, my mother's patronus was a doe, wasn't it? That's the same as professor Snape's. That's curious, don't you think?   Dumbledore: Actually, if I think about it, it doesn't seem curious at all.   So my first question would be, is there any deeper reason why Prof. Snape and Lily Potter both have a doe as Patronus or is it just to express that they've always been what one would call soulmates? And why did the Patronus appear in the Forest of Dean at that moment? Snape's discussion with Dumbledore and his casting of the Patronus occurred way earlier than that (as Dumbledore obviously was still alive, so at maximum during the events of the Half-Blood Prince). If that was implied to have been the same Patronus that appeared at the Forest of Dean (as the montage implies), why/how/where did it wait for so long? Is this just one of those various moments of stuff "magically" appearing when needed (as the Gryffindor Sword and the Room of Requirements use to do) or is there a more elaborate reason the movie just didn't delve into (or am I just too stupid to get it)?


How to prove this equation? ( find the maximum of a sequence)

I have a sequence, called $A$. It's elements are $a_1 , a_2 , \ldots , a_n $ for example: $(5, 11, 2)$  Then how to prove, that this formula results the highest value in the series?  $$ \lim_{x \rightarrow \infty} \sqrt[x]{ \sum\limits_{i=1}^n a_i^x } = \max( a_1, \ldots, a_n ) $$


product of two uniformly continuous functions is uniformly continuous

Suppose that $f$ and $g$ are uniformly continuous functions defined on $(a,b)$. Prove that $fg$ is also uniformly continuous on $(a,b)$.   My attempt: Since $f$ is uniformly continuous on $(a,b)$, for all $\epsilon>0$, we have $\delta_f(\epsilon)>0$ such that for all $x,y \in (a,b)$, $|x-y|<\delta_f$, $|f(x)-f(y)|<\epsilon$  Since $g$ is uniformly continuous on $(a,b)$, for all $\epsilon>0$, we have $\delta_g(\epsilon)>0$ such that for all $x,y \in (a,b)$, $|x-y|<\delta_g$, $|g(x)-g(y)|<\epsilon$  Notice that $$|f(x)g(x)-f(y)g(y)|=|f(x)g(x)-f(x)g(y)+f(x)g(y)-f(y)g(y)| \leq |f(x)||g(x)-g(y)| + |g(y)||f(x)-f(y)|$$  Here I don't know how to bound $|f(x)|$ and $|g(y)|$. I have proven that uniformly continuous functions preserve boundedness of an interval , i.e. $f$ is bounded on $(a,b)$. Can anyone help me?


I spent six months in the UK on a Short Term Student passport stamp. Can I return on a visitor stamp?

I just spent six months in the UK as a student on a passport stamp. Since my parents live in the UK (on a Tier 2 Work visa and a Spouse visa), I would like to return to the UK to see them for a couple of weeks. However, I just left the UK in January. It's March now. How soon can I go back? I really miss them. Is it possible to return since I'll be going back on a different kind of passport stamp? Thanks!


What is the meaning of ##* in shell script?

Script:  text="//ABC/REC/TLC/SC-prod/1f9/20/00000000957481f9-08d035805a5c94bf"  echo ${text##*/}   Here, what is the meaning of 2nd line in the above 2 line script?


We are trying to resolve some performance issues at a remote site.  One thing that we suspect could be causing the performance problem is page ghosting.  Is there some way to see if the pages that are being called are ghosted?


Why does the CRT formula yield a solution of a congruence system?

I understand there is a method for solving simultaneous modular equations. For example; $$x = 2 \mod{3}$$ $$x = 3 \mod{5}$$ $$x = 2 \mod{7}$$ We find numbers equal to the product of every given modulo except one of them - giving $5 \cdot 7$, $3 \cdot 7$ and $3 \cdot 5$. We then find the multiplicative inverses of these numbers with modulo equal to the number missing from the product. The numbers found are then 2, 1 and 1 in this case. The value of x is then given by: $$x = 2 \cdot (5 \cdot 7) \cdot 2 + 3 \cdot (3 \cdot 7) \cdot 1 + 2 \cdot (3 \cdot 5) \cdot 1 = 233 = 23 \mod{3\cdot5\cdot7}$$  But I do not understand how this method correctly gives the value of $x$. I understand that the Chinese remainder theorem proves that there is a unique value of $0\le x \lt 3\cdot5\cdot7 \mod{3\cdot5\cdot7}$ but can someone please explain why this method finds this value of x?


Understanding why multiplying by (-1) on a number line creates a mirror image.

If we have a number line of numbers between say -3 and 3 (-3  -2  -1  0  1  2  3) and we multiply by a  factor $k$ then the positive values will become $k, 2k, 3k$ respectively with 0 remaining zero. If the same is done to the negative values we have $(k)(-1) , (k)(-2), (k)(-3)$ which are $-k, -2k, -3k$ respectively since the negative implies they are opposite sides of the $0$.  What I fail to understand is if I multiply by $(-1)$ to all the terms, the positives will become negative (by the additive inverse property of numbers). But how do the values of $(-1)(-1), (-2)(-1), (-3)(-1)$ become $1, 2, 3$? What is the intuition behind this?  I am doing this without knowing that the product of two negatives is positive.


I just re-watched the first two films in the Terminator series. The T1000 (Robert Patrick) does a lot of running, and is quite fast.  I didn't see many scenes where the T800 (Arnie) ran. Is it because he's really heavy? Is he mainly designed as a heavy "stand your ground" machine?  The only scene I could see him running is in T2 in the mental hostpital where the T1000 morphs through the metal gate and his gun gets caught. Then the T800 does a little jog to get into the elevator following John and Sarah. (anybody know of any other running/jogging scenes?) (EDIT Arnie also breaks into a run while pursuing Reece and Sarah down the alley after the NOIR nightclub attack.)  If he can at least jog though, why wouldn't he do this throughout the entire film? You would think that from a "chance of survival" point of view, if he could get a John even the slightest bit faster then he'd do so.  Of course, maybe I am overthinking this... Arnie walking around slowly is a lot more badass than Arnie jogging around.  Edit: Just watched T3 again, the T800 also ran towards the end when the big hangar door was closing and he ran over to slow it down. Interested in other examples of the T800 running too.


Is there a way to prove that I'm not in a simulation or a vr of some sorts in which everything I see, feel, etc aren't real?

My question is could all I think of as real in this world, the pain, the happiness, sadness all just be part of some futuristic vr of some sorts that is making me think i am thinking and doing all im doing in real life when actually im in a simulated world? Could all every person I think is real, everything I think im eating just be a simulation? In this certain world, I assume the only thing that actually exists is my conciosness. So in a way, this is in a sort of solipism. But can it be disproved?


How to stop the find command after second match?

How to make find command, that will show only first two matches and then end, something similiar to  just version for two records.


I am working on integration project, when I request another system API's I will be getting the response to a callback URL which I defined.  I need to read the response, how to achieve this in javascript/PHP?  my call back URL is   The sample response is below, I need to get the id from it     { "requestId": "509900a5-392e-4d34-bcfe-90cc6bf3ad47", "territoryId":   "429defc8-5b05-4c3e-920d-enter code here0bb911a61345", "event":   "ordersChanged", "data": { "created": [ {   "id":"fb5e269b-9a16-4d44-abe5-a3f1c84acdb7", "geocodeStatus": {   "delivery":"OK" } } ], "updated": [], "deleted": [] } }   Any help will be highly appreciated


On , although the OP still has an active account (and the profile link in the question's flair renders normally), if you look at  you'll see that the OP's name (and that of some others) is being rendered as plain text, as it would if the user had been deleted.        What's going on here? Is it related to the fact that the question was migrated? Is it a bug?  At the very least I'd expect the OP's linkification to be consistent, across both pre-migration and post-migration content.


"Starting Wireless Hotspot..." but nothing happens

I was trying to create an WiFi hotspot for my android device. I used ap-hotspot to do so.    I configured the ap-hotspot using    sudo ap-hotspot configure   Then I started ap-hotspot using   sudo ap-hotspot start   Then it shows this   Starting Wireless Hotspot...   And then nothing happens, no further message is displayed, hotspot is not created.  What is Wrong? How to fix it?


I have a Think Pad at work and the keyboard is really killing me (the left Ctrl is not on the most left and it has the FN key there).  I use a lot of Ctrl + C, Ctrl + v while writing code and this FN key annoys me (I keep pressing it instead of Ctrl).  Anyway, how to make the FN key the CTRL key?


We have a Standard Drupal site with lots of custom configurations ad custom modules. We would like to put this in a GitHub repository so that anyone can clone this repository and install the Drupal 8 site along with custom configurations on their server.   What we have tried is - we exported the configuration of the current site using the UI and tried to import it into a new Drupal installation. But then we understood that configuration can be synced only between clone sites, not a new installation.  How can we move the entire site into a git repo, without having to put any SQL dump in the repository?


Suppose that $p$ is prime and $p=n^2 +5$ for some natural number $n$, prove that the final digit of $p$ is equal to $1$ or $9$ which is $p=1(mod10)$ or $p=9(mod10)$  What I have to tried so far: in order to get last digit of $p$ be $1$ or $9$, the last digit of $n^2$ must be 4 which gives us $4^2=16$,$6^2=36$ then $16+5=21, 36+5=41$. Similarly last digit of $n^2$ must be $4$ to obtain a p has $9$ as the last digit which is exactly $1(mod10)$ and $9(mod10)$. But those are like listing the special cases, can anyone tell me if I am on the right track or what should I do?


Show that if any ten of eleven integers can be split into two sets with the same total, then the eleven integers must be equal.

If one is given eleven integers, and told that for any ten of them it is possible to split them into two sets of five with the same total value, show that the eleven integers must be equal.  My thoughts so far:   -if you had 10 equal numbers and one different one, you could swap the different one in so it wouldn't work  -if you had nine equal numbers, then clearly those nine plus a different number couldn't be divided up into two equal sets  -if there were eight equal numbers, then calling the equal numbers N and the other numbers $n_1$, $n_2$, $n_3$. If we exclude $n_3$, then either    $N<n_1,n_2$ or $N>n_1, n_2$, in which case we would require $4N + n_1 = 4 N + n_2$ which implies that $n_1=n_2$. By swapping $n_3$ for $n_1$, we can see that this also implies $n_1=n_2=n_3$. However, then the case of 7$N$s and 3$n$s wouldn't be able to be split into two equal sets.  $n_1<N<n_2$, in which case $5N = 3N + n_1 + n_2$ so $2N=n_1 +n_2$. Similarly $N=n_2+n_3=n_1+n+n_3$. However, this isn't possible because either $n_3>N$ in which case $n_2 + n_3 > N$ or $n_3<N$ in which case $n_1+n_3<N$.


Convergence or divergence of $\sum_{k=1}^{\infty} \left(1-\cos\frac{1}{k}\right)$

Does $$\sum_{k=1}^{\infty} \left(1-\cos\frac{1}{k}\right)$$ converge or diverge?


How to trigger the interim login modal in WordPress?

I'm trying to style the native "interim login" modal form for the admin area of a theme - but I don't want to wait around for it to appear. Is there a way I can trigger it with a $_GET parameter?


This might be a rookie question but if I'm currently on a 4:1 oversubscription of my CPU ressources does that mean that my processors performances are divided(splitted) into 4 lower perf. vCPU? Will a vm using 4 vCPU will just divide a pCPU into 4 to actually be as fast as the pCPU itself?


Does a Lebesgue-measurable Subset $M \subseteq \mathbb R$ exist, so that $\lambda^{1}(M \cap I)= \frac{1}{2}\lambda^{1}(I)$ for any bounded Interval $I\subseteq \mathbb R$.  My idea:   Assume that such a lebesgue-measurable set $M$ did exist, it then follows that for any $\epsilon > 0$ we can find $O_{\epsilon}$ open and $C_{\epsilon}$ closed so that $\lambda^{1}(O_{\epsilon} \setminus C_{\epsilon})< \epsilon$ and $C_{\epsilon} \subseteq M \subseteq O_{\epsilon}$  it then follows for arbitrary bounded sets $I$ that $\lambda^{1}(C_{\epsilon}\cap I)\leq \frac{1}{2} \lambda^{1}(I)\leq \lambda^{1}(O_{\epsilon}\cap I)$  I am struggling to find any contradictions that I can use. Any ideas?


I’ve seen some C4D users use a tool called Loft-NURBS it seemed like a good way to speed up my workflow.  Is there a tool in Blender to create a surface from multiple splines, but still have the ability to change their shape?    Loft-NURBS in Cinema4D


I noticed a tag wiki that needed some content this afternoon and got to editing that one and several others that were being used on questions but had no content. I was going to keep filling in empty tag wikis but stopped because there appeared to be no way to filter the tag list so I could see the blank ones. Is there a way to do that?


How do I go about convincing my DM that their ruling about my familiar is a bit harsh?

Last session, my DM ruled that my imp cannot help me perform checks (in this instance I was trying to have my little guy help me pick through some dead guards' pockets) because he deemed that giving me advantage on most checks all the time is OP. Also, my imp has to make stealth checks every time he enters a room to scout, regardless if he is invisible or not, which hasn’t always ended well. It seems to me that all the creative ideas that I’ve read about using a familiar are bound by what the DM would rule. My play group are mostly some long term friends that I have been playing with, along with the DM. It's also his first time as the DM. Should I see if my DM will let me change my pact? Or should I try to convince him to ease up on my familiar?


Evaluate $1+\frac{1}{3}+\frac{1\cdot 3}{3\cdot 6}+\frac{1\cdot 3\cdot 5}{3\cdot 6\cdot 9}+\dots$

$$1+\frac{1}{3}+\frac{1\cdot 3}{3\cdot 6}+\frac{1\cdot 3\cdot 5}{3\cdot 6\cdot 9}+\frac{1\cdot 3\cdot 5\cdot 7}{3\cdot 6\cdot 9\cdot 12}+\dots$$  How do I proceed on evaluating this sum.


How does it look v What does it look lke

When people say how does it look, I want to answer "with its eyes."  I prefer a perfectly good "What does it look like?"though I hear and read the other version all the time! Which is correct?....I have even seen and heard "How does it look like?


Its heard from century that iphone has bluetooth,but why we cant share anything over bluetooth,but infact we can connect bluetooth speaker and play some music.


Topology where infinite sets are closed is the discrete

I just started studying Topology this week so bear with me if the answer is trivial...      Given a topology $(X, \tau)$, where $X$ is an infinite set. Show that if all the infinite subsets of $X$ are closed, then $(X, \tau)$ is the discrete topology.    My approach is the following. Suppose that $S \subset X$. Then either $S$ is finite or infinite.   If $S$ is finite, then $X \setminus S$ is infinite (because $X$ infinite), and because $X \setminus S$ is closed, $S$ is open.   If $S$ is infinite, then I run into troubles. You see, take the natural numbers $X = \mathbb N$. Then $S  = \mathbb N \setminus \{1 \}$ is infinite and its complement is finite. So there is no guarantee that $X \setminus S$ is infinite right? Do I miss something here?


Editing older revision (not most recent) no longer includes older title and tags, and automatic rollback note

Say there are two revisions: #2 mine #1 OP [edit]  What used to happen, if I pressed edit next to the first revision, added stuff to #1 (not #2), they would be like this: #3 rollback -- [manual comment if any] #2 mine #1 OP  That did not happen  (#3) as it used to; moreover, the OP title and OP tags were not reverted, even though the editing page included them:


How do I make a octahedron in Blender 2.8=

I have been searching a lot on how to make an octahedron, but everything doesn't seem to work in the newest update, so I'm just asking if there's been some new way added to make them.


Convergence in measure instead of almost everywhere convergence in DCT

Let $(X, M ,\mu)$ be an arbitrary measure space. Dominated convergence theorem requires some sequence of integrable functions  to converges to some function f almost everywhere.   However, if $f^n$ converges to some function $f$ 'in measure', then does the DCT still holds? I heard that the answer is yes, but can't figure out how to prove it. Could anyone show me how to prove it?


Why is Gibbs Free Energy not equal to 0? Its definition itself makes it 0

Gibbs Free Energy is defined as   $$G = H - TS$$ and the change in $G,$   $$\Delta G = \Delta H  -  T\Delta S,$$ (isothermal and isobaric)  Now at constant pressure, $q  =  \Delta H$  and Entropy is defined as , $\Delta S  =  \dfrac{q}{T}$ which means that $T\Delta S = q.$  Thus shouldn't Gibbs Free Energy automatically be zero. Or is there something I'm missing, like a specific condition?


Should a rogue be denied a hide attempt if he is around a corner of a hall and his position is known, and it is the only place to hide?

I am having trouble understanding why the hide and sneak attack rule is applicable to a rogue hiding at the corner of a long hall.  If a rogue shoots an arrow down the hall and hits his target on the first round then I would allow the sneak attack. The rogue then goes into hiding using cunning action. Except that his target knows that the attack came from down the hall. He is now prepared for the attack and knows it can come from only 1 place.  The rogue ducking back around the corner is no different than any other class shooting around a corner then ducking behind it. So why should the rogue even be able to hide and gain sneak attack again?  In this case I am seriously considering ruling that the rogue cannot use his hide and sneak attack because the rogues position is obvious. Can anyone give me another explanation for this situation that might be a counter to my ruling?


Metric triangle inequality $d_2(x,y):= \frac{d(x,y)}{d(x,y)+1}$

$(X,d)$ is a metric space. $x,y,z \in X$  Now I have to proof that $(X,d_2)$ is also a metric space. To show that  $d_2(x,y)=0 \leftrightarrow x=y $ and $d_2(x,y) = d_2(y,x)$ are correct was quite trivial. But with the 'triangle inequality' ($d_2(x,y) \leq d_2(x,z)+ d_2(z,y)$) I have my problems.   I have started like this:   $$ d_2(x,y) = \frac{d(x,y)}{d(x,y)+1} = 1-\frac{1}{d(x,y)+1} \leq 1-\frac{1}{1+d(x,z)+d(z,y)}$$  But I don't know how to get further. Hints are welcome :)


Here's an instantition: Base * ptr = new Derived() ;  After working with ptr, I want to reset it.  Why derived class members are not reset when doing *ptr = Derived() ; while base class members are ?  See for yourself in a complete example:  #include <iostream> #include <vector>  void print_array(const std::vector<int> & vec, const std::string & name = "" ) {     std::cout << name << " => [ " ;     for (unsigned i = 0; i < vec.size(); ++i)     {         std::cout << vec[i] << " " ;     }     std::cout << "]" << std::endl ; }  void do_stuff(std::vector<int> & vec, unsigned size) {     vec.resize(size) ;     std::fill(vec.begin(), vec.end(), size) ; }  class Base { public:     std::vector<int> base ;      Base() {}     virtual ~Base() {} };  class Derived : public Base { public:     std::vector<int> derv ;      Derived() {}     virtual ~Derived() {} };   int main() {     // Working but without polymorphism     // Derived * ptr = new Derived() ;      //Non-working     Base * ptr = new Derived() ;      std::vector<int> & vecbase = static_cast<Derived*>(ptr)->base ;     std::vector<int> & vecderv = static_cast<Derived*>(ptr)->derv ;      print_array(vecbase, "vecbase") ;     print_array(vecderv, "vecderv") ;     do_stuff(vecbase, 3) ;     do_stuff(vecderv, 3) ;     print_array(vecbase, "vecbase") ;     print_array(vecderv, "vecderv") ;      // Non-working     *ptr = Derived() ;      // Working but non-optimal     // delete ptr ;     // ptr = new Derived() ;      print_array(vecbase, "vecbase") ;     print_array(vecderv, "vecderv") ;     do_stuff(vecbase, 5) ;     do_stuff(vecderv, 5) ;     print_array(vecbase, "vecbase") ;     print_array(vecderv, "vecderv") ;      return 0; }   Current output:   vecbase => [ ] vecderv => [ ] vecbase => [ 3 3 3 ] vecderv => [ 3 3 3 ] vecbase => [ ] vecderv => [ 3 3 3 ]  <= vecbase => [ 5 5 5 5 5 ] vecderv => [ 5 5 5 5 5 ]   Expected output:   vecbase => [ ] vecderv => [ ] vecbase => [ 3 3 3 ] vecderv => [ 3 3 3 ] vecbase => [ ] vecderv => [ ] <= vecbase => [ 5 5 5 5 5 ] vecderv => [ 5 5 5 5 5 ]   [Edit by Peter:] Note that this is not slicing because *p is a Derived, even if its static type is Base.]


Separating plural possessive apostrophe from closing double-quote

Let's say that I have a plural noun that I am trying to make the possessive form of, for example, butchers'.  Let's say that for some reason I need to enclose this word directly inside double-quotes, such as would be written as "butchers'" in ordinary text. Let's say that as a result of this, I end up with TeX code like:  We must take these ``butchers''' words at face value.   which then ends up rendering with the equivalent of:  We must take these "butchers"' words at face value.   Is there any way to indicate to TeX that the ''' should be grouped as one and then two, instead of two and then one?  I have tried variants such as:  ``butchers'\ ''  ``butchers\'''  ``butchers`''  ``butchers'%  ''   none of which worked.


using curly braces to run multiple commands that have spaces

i have recently learned how can i use curly braces to run multiple commands using curly braces for example, i can create 10 files like this,  touch {1..10}.txt   or file with odd names,  touch {1..10..2}   I can also restart multiple process like,  systemctl restart app9-{server,client,test}   above command will restart services called, app9-server , app9-client and app9-test  now i have a command with a space in it,  vagrant destroy app9 vagrant up app9 vagrant ssh app9   how can i run above 3 commands using braces?  I tried,  vagrant {destroy app9,up app9,ssh app9}   and  vagrant {destroy,up,ssh} app9   but none of them actually works.  Can someone please tell me how can i run these commands using braces?


Association Reputation Bonus on preexisting sites

I have a couple of questions about reputation. In order to receive the +100 site association rep, does one need to earn the reputation entirely on one website, or can it be earned accross multiple(For example, 50 on Meta, 100 on StackOverflow, and 50 on Code Review)?   When one does accrue 200 reputation, is the site bonus awarded to accounts on exchanges which had already existed before earning the reputation?


Downloading files instead of opening directly

I have kept files in site assets and created hyperlinks to the files (which may be PDF or word ). When i click on the link it opens up in the browser. How do i force it to download ?


how can I write @... email pattern , using regix

I want to validate an email field using regex in such a way that my email has to has @moore in it. like a@moore.af, b@moore.sg, and so on. how can I write its pattern? I am using typescript and angular reactive form. Your help is much appreciated.


Windows 10 Start Menu Search Broken after Cortana

I accidentally deleted Cortana (okay it wasn't an accident). By running  rm -rf /c/Windows/SystemApps/Microsoft.Windows.Cortana_cw5n1h2txyewy/*   in bash. Cortana was gone (yay!) but now I can't search anything from the start menu (unintended and unacceptable consequence). I need to get this feature back but I don't know how. I could live with re-installing Cortana, but I'm not sure how to do that. Another solution that enables searching from the windows start menu without Cortana would be better.


Difference between past simple and present perfect

How are these two sentences different in meaning?     1) She looks very familiar; I have seen her somewhere before.      2) She looks very familiar; I saw her somewhere before.


Is there a characterization of groups with the property $\forall N\unlhd G,\:\exists H\leq G\text{ s.t. }H\cong G/N$?

A common mistake for beginning group theory students is the belief that a quotient of a group $G$ is necessarily isomorphic to a subgroup of $G$.  Is there a characterization of the groups in which this property holds?  If this question is too broad, I might ask if such a characterization exists for $p$-groups.    History: I originally posed the opposite question, regarding groups for which $\exists N\unlhd G\,:\, \not\exists H \unlhd G\, \text{  s.t. } H \cong G/N$, and crossposted this to .  I received an answer there to the (now omitted) peripheral question about probability, which shows that most finite groups probably have this property.  After this, I changed the question to its current state, as this smaller collection of groups is more likely to be characterizable.


It’s the  question: Am I looking at someone’s legitimate pronouns or trolling?   (It’s unfortunate I have to ask, but this is just where we are right now.)  I’ve seen “my pronouns are [insert ridiculous fake stuff here]” trolling recently (in posts) when before I never did. Also stuff that looks to be trolling, but could also maybe not be. Trolls deserve red flags while everyone else specifying pronouns does not, right?  (To clarify, the problem is not just about not wanting to use a troll's words. The purpose of some of this trolling is to try and convince people that transgender people—or their neopronouns—are stupid or unreasonable. Ignoring the trolls allows us to avoid the first problem, but not the second since it allows them to still reach people with their message, which is not something that I want to see promoted.)  Some neopronouns are clearly legitimate. Some trolling is clearly trolling. But unfortunately there’s a big grey area where it’s not clear to me what is what.   Does anyone have a good method for dealing with this? There just doesn’t even seem to be a good way to ask about someone’s specified pronouns in such a way that doesn’t sound insulting if the user isn’t trolling.     Note: A while ago, I did some research on neo-/third person pronouns which can be found . There are several important things I found:   There are more neopronouns than I could ever hope to keep track of The most popular neopronouns are very uncommon. On the other end of the spectrum, it looks like some neopronouns are neologisms used by a single person  Some neopronouns come from unlikely places, such as SciFi


First, here's a material that made me keep thinking about this issue in the first place.        He looks as if he knew the answer.    He is pretending as if he knew the answer. He is not as smart as he can solve the problem.      He looks as if he knows the answer.    He is a smart enough to know. Many people expect him to know the answer  Am I right to think this way? I'm trying to figure out how to use 'as if' more precisely.   Thanks in advance


I am preparing a submission to Applied Economics and I downloaded the latex package from the website of the editor ().  Regarding bibliography, it uses a specific style (tdcaf.bst), available in the package, to produce a Chicago-style bibliography.   I tried to compile the file (interactcadsample.tex) using the bib file interactcadsample.bib and putting the lines below where the bibliography is supposed to appear:  \bibliographystyle{tfcad} \bibliography{interactcadsample}   Unfortunately, it seems not to work and I cannot undestand why.  THE MWE is:  \documentclass[]{interact}  \usepackage{epstopdf} \usepackage{subfigure} \usepackage{natbib} \bibpunct[, ]{(}{)}{;}{a}{}{,} \renewcommand\bibfont{\fontsize{10}{12}\selectfont}  \begin{document}  \title{My title\thanks{My acknowledgements.}}  \author{ \name{First author\textsuperscript{a}\thanks{CONTACT First author. Email: firstauthor@email.com} and second author\textsuperscript{b} and third author\textsuperscript{a}} \affil{\textsuperscript{a}Department X, University Y; \textsuperscript{b}Department K, University Z} }  \maketitle  \begin{abstract} \noindent The abstract  \end{abstract}  \begin{keywords} Keywords \end{keywords}   \section{Introduction}  In the introduction I want to cite \citep{Alb05,Gre08,Sch87} and \citealp{Mor08}.  \bibliographystyle{tfcad} \bibliography{interactcadsample}  \end{document}   As you may notice, when compiling the file citations and bibliography are missing. Any help on how I can fix this? Thanks in advance.


How to find Encoding of a file using Java

I am trying to find the encoding of a file using the java program. But it always providing the UTF-8 as the output. Even though it is an ANSI file.  import java.io.InputStream  import java.io.FileInputStream  import java.io.BufferedInputStream  import java.io.InputStreamReader  new InputStreamReader(new FileInputStream("FILE_NAME")).getEncoding   The library is old and looks no proper support for that.   Some are so many answers, that say we can find the encoding of the file like    These solutions doesnt look good. According to @ Jörg W Mittag We cannot find the encoding of a file for sure.


Is HAVE GOT an idiom ? And are those patterns correct?

I'm confused, is "have got" a verb? Because when I've searched it in a dictionary, it said "have got" was an equivalent of "have", the form is like the "Present Perfect Tense", and it is the equivalent of "have" in British English. I've ever heard that "have got" can't be used in every situation, and only "have" can be used in all situation and all verbs, is that right?  These are the examples. So, do you hear them in standard British English?  I have already got to go (or) I already have to go.  I never have a new pen when I need one (or) I have never got a new pen when I need one.  I have got to do it (or) I have to do it.  I have still got to research itsign those contracts (or) I still have to research itsign those contracts.  I have just/only got five pence (or) I just/only have five pence.  I have also got to do my homework (or) I also have to do my homework.  I haven't just/only  got 5 pence (or) I just/only don't have 5 pence.  Have/ haven't I just/only got 5 pence? (Or) do/don't I have 5 pence?  I have/haven't also got to do it (or) I also don't have to do it.  Have/haven't I also got to do it? (Or) do/don't I also have to do it?  So In the past, do you use "had got" or "had in BrE? e.g.  I had got 5 pounds (or) I (did have) had 5 pounds.  I hadn't got 5 pounds (or) I did not have 5 pounds.  Had/hadn't I got 5 pounds? (Or) did/didn't I have 5 pounds?


Why does this script give error?  #!/bin/bash # This script checks whether  # the current user is root or  # not. if [ $UID -ne 0 ] then     echo "Non-root user." else     echo "Root user." Fi         Output  myuser@kali:~$ ./user.sh ./user.sh: line 7: syntax error near unexpected token `else' ./user.sh: line 7: `else' myuser@kali:~$


Let $A$ be a commutative ring. I am trying to show that if $f(x_1,x_2,\ldots, x_r) \in A[x_1,x_2,\ldots, x_r]$ is a zero divisor then there exists $a$ in $A-\{0\}$ such that $af=0$ in $A[x_1,x_2,\ldots, x_r]$.    What I have tried so far as following. I am using induction on $r$ (not fixing the ring). The base case is for $r=1$ which I did assuming the minimal degree of $g$ for which $fg=0$ holds. So my induction assumption is for $r \geq 2$ whenever $f$ is in $A[x_1,x_2,\ldots x_r]$, $n<r$ is a zero divisor there is $a$ in $A-\{0\}$ such that $af=0$. So for the final step I take $f(x_1,x_2,\ldots, x_r) \in A[x_1,x_2,\ldots, x_r]$ is a zero divisor. Now since $A[x_1,x_2,\ldots, x_r]=A[x_1][x_2,x_3,\ldots, x_r]$ by induction hypothesis there is $g$ in $A[x_1]-\{0\}$ such that $fg=0$.      I cannot proceed further. Am I correct so far? Please help me. Thank you.


Remove square bracketed citation in my reference list while using cite package for citations

I would like to remove the duplicate of square bracketed citation in my bibliography list and start with just the name and year. I am using the cite package, and the \bibliographystyle{apalike}, with Citavi reference editor. I've seen this question a lot and the common answer is to use natbib package instead. This is good idea however then I need to change all of the \cite in the document to \citep in order to have it in parentheses. And I am finished my entire (90 page) document (I know I should have fixed this at the beginning).. Is there a way to change them within the cite package? Or else is there an easy way to switch all of the \cite to \citep?  I should also note that I am a very beginner with Latex.


Having problem with figures since last update

I have updated the packages of miktex and now when I compile my file, the figures \includegraphics are not compiled and show only as a line of the figure name. I reinstalled both miktex and the texniccenter but no solution. Is it a bug? Any one please has a similar experience or an advice?


Got a badge (Announcer), have no idea how I got it

I just received a badge () for .  I don't think I visited this question before, let alone share it.  When I click on the share button, it gives me a link with my user id. This means that anyone can easily increase someone else's visit amount, and I think this might be how I got these visits. I don't really think this is a security issue (but still tagged it, it weirded me out when I saw the notification). I love earning badges, but only when I actually earned them.


Is there any way to programatically find the port that was assigned to the client when the client calls a connect() function.  getsockname is implemented in the server. But what should be used in client ?


CSS z-index causes part of tags to show through notifications on webmasters, web applications, gaming, gamedev, and their meta sites

When you vote 35 times in a day and you only have five votes left, you start getting a warning popup that you are almost at your limit.  When this warning appears in the same place as the tags, part of the tags shows through it.        This screen shot was taken on webmasters.    This is also a problem on Web Applications: :        and :        This also happens on  as described .  Here is a .  It is also happening on the meta sites associated with the sites that have the problem.   For example, here is web apps meta site:    This a minor annoyance that has been around for at least a couple years.


Make a .tex file that combines complete .tex documents in subdirectories

I'm using LaTeX for my research journal (similar to WordPress).  There are a number of subdirectories that contain complete (standalone) .tex files along with PDF files that I made from those standalone files.   I'd like to get a .tex file that contains all the .tex files and compiles to a PDF. What would be a good way to do that?  Currently I compile the .tex file in each subdirectory and then merge all the PDFs into a main PDF file. The problem is that each PDF takes a page and if I have a small note, the most of the page is clear. Please keep in mind that I would like to keep the standalone PDF files, too.  The other option is to cut out the body of the document and paste it into the main LaTeX file, but i was wondering if there is a package that does it. Meaning that would keep both main and stand alone files. Kind of like have chapters of the book compile separately


Will a diode burn out gradually over time when exposed to high rated current surges frequently.  We use a fr607 diode for freewheeling. Which comes inside a relay box assembly for a inductive load which is completely closed. After some months we get reports of relay box failures. When we open we find the diodes burnt. We want to know whether diode burn out happens instantly or will it keep working and gradually burn out over time


Why Don't PC Boards Act Like Capacitors?

If capacitors are just two conductive components sandwiching an insulator, then why aren't all PC board, or at least their traces, considered capacitors?


A couple weeks ago I didn't have any issue when using Bibtex on a document where the different parts were included with \include commands, but today I updated Miktex, and now it seems not to work anymore. Now when I compile the main document I get an error message that says  I couldn't open auxiliary file section.aux ---line 3 of file test.aux : @input{section.aux : } I'm skipping whatever remains of this command  Here's a minimal (non)working example : my main file "test.tex" is just \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \begin{document} \include{section} \bibliography{reference} \bibliographystyle{plain} \end{document}  where the file "section.tex" is just \section{My section} I need to test the citations, so see \cite{A}.  and the file "reference.bib" just contains one reference. It works like a charm if I add the section directly or if I \input it, but with \include it just gives the error message as above. I tried with different editors (Texniccenter, Texmaker, Texstudio and Texworks) and it seemed to have the same issue each time. What is causing this problem ? P.S. I've looked at an old version of my document that used to work, and I've noticed a difference in the .aux files : the old version has, near the beginning, a line \bbl@cs{beforestart}  whereas in the newer versions it seems that this line has become \@nameuse{bbl@beforestart}  I'm not sure it's related or if it makes any sense, but I thought I'd add it in case it made a difference.


LINQ query expression versus fluent (dot) notation

Dim namePriceQuery = From prod In products                      Select prod.Name, prod.Price   OR  Dim namePriceQuery = products.select(function(x) New With{ Key .newName =x.name _  , Key .newPrice= x.price})   To my knowledge the only difference is with with the second expression has the benefits of the  keyword. What exactly is the difference between the two?? And what scenarios would I choose to use one or the other in? What are the pros and cons of one vs the other?   I am assuming the C# syntax equivalent will work the same and should be used in similar before mention scenarios. Thank you very much!


Google Maps (web) shows up blank when I am logged in (only on Chrome)

I've been having this annoying problem for quite a few months now.  If I am using Google Chrome (tested on a Mac and on Arch Linux), and I am also logged into my Google Account, if I go to  , the map loads, but after a few milliseconds, just before the webapp finishes rendering, the map goes blank. I've done a screencast to explain:     This does not happen if I am not logged into my Google Account. This also doesn't happen on Firefox. I have not tested on Windows, but I'm pretty sure it would be the same. I've also tried logging in while on an incognito session, and the problem reappears. I've tried disabling all extensions and clearing the cache. Same result. This does not happen if I log into two other different Google Accounts.


compatibility problem \pdfmapfile{+sansmathaccent.map} with usepackage{subfig} and usepackage{subcaption}

I'm using beamer to create my master presentation. I need to use \pdfmapfile{+sansmathaccent.map} due to in equations (math environments) it is necessary.   The problem is when I use usepackage{subfig} or usepackage{subcaption} to put subfigures, I get: Undefined control sequence. \begin{document}. Somebody knows how to fix it?


Prove that $\lim_{N\rightarrow\infty}(1/N)\sum_{n=1}^N f(nx)=\int_{0}^1f(t)dt$

Suppose $f$ is continuous and periodic on the reals with period 1. Prove that if $x\in[0,1]$ is an irrational number, then  $$\lim_{N\rightarrow\infty}\frac{1}{N}\sum_{n=1}^N f(nx)=\int_{0}^1f(t)dt$$   Suggestion: First consider $f(t) = e^{2\pi(ikt)}$ where k is an integer.   I can see that this is a limit of a weighted average, but the suggestion throws me off. I've seen the suggestion in fourier transforms but it's not clicking at the moment. Any help would be welcome.


I am newbie to both latex and Ubuntu-linux 14.04. I already installed texlive and texstudio for latex environment. Everything works fine.  When I am trying to use spell check option it is giving error as "no dictionary available ". So always my document is having spelling mistakes.  Please help me with this. What packages have to install to get English dictionary. With spell check automatically.


How necessary is using the perfect past in the given sentences?

I had bought myself a phone, and then one day, it got stolen.      I bought myself a phone, and then one day, it got stolen.   Is the meaning of first clearer than the second? Is there a difference in both the sentences' meaning? Is using the past perfect necessary here?


Non www to www redirect still important (seo - duplicate content)?

Is a redirect from the non www version of the website to the www version still needed for seo reasons (duplicate content)? In the google search console i set the www version as my preferred version.


How to diagnose failure to hibernate after hard drive swap (yet sleep works fine)?

My Windows 7 (x86, Pro) laptop no longer hibernates. When I tell it via power button or "shutdown /h /f" it fades out the screen to black, but doesn't do anything else. Doesn't even go into a sleep state. Hitting a key pops the screen back on.  I've tried disabling and reenabling hibernation to clear the hiberfil.sys, but it makes no difference. If hibernation is disabled, sleep works fine.  This problem started happening immediately after swapping hard drives. I used Ghost 14 to restore a backup to a new drive then plugged it in. Windows wouldn't boot (BOOTMGR problem) so I ran a repair from the Win7 disc. It's been working fine since, aside from inability to hibernate.  Nothing is showing up in the event log that seems new or relevant.  Any ideas on how I can diagnose or resolve this?


I read about SQLite. I found information about making database in Android but I am wondering about opening existing database written somewhere else. Is there a possibility to open and read database from .sql file which I prepared earlier?


How to find whether my hard disk is HDD or SSD

Where is it written that my hard disk is SSD or HDD?  I have tried searching:   msinfo32 Device Manager Disk Management   I need to to see the words solid state drive or hard disk drive in Windows 7.  It may be either through CLI or GUI.  I found the same information for Windows 8 here.  Right-click on C drive-> Properties-> Tools-> Optimize/Defragment now -> Here you should disk listed with its media type.


How do dash costs work with commander tax?

If I have the card  as my commander, and I cast it for its Dash cost, do I have to add commander tax to it? Or does the Dash cost override it?  My gut tells me I would still have to pay commander tax, but I am checking regardless.


Okay, I'm not much of a mathematician (I'm an 8th grader in Algebra I), but I have a question about something that's been bugging me.  I know that $0.999 \cdots$ (repeating) = $1$. So wouldn't $1 - \frac{1}{\infty} = 1$ as well? Because $\frac{1}{\infty} $ would be infinitely close to $0$, perhaps as $1^{-\infty}$?  So $1 - 1^{-\infty}$, or $\frac{1}{\infty}$ would be equivalent to $0.999 \cdots$? Or am I missing something? Is infinity something that can even be used in this sort of mathematics?


As I was trying to validate our pcb design, I measured the impedance matching on the digital transmission lines, and got stuck with the oscilloscope not showing what I expected. We are using the PicoScope 4227, but I suspect that the strange measurement is not directly related to the specific oscilloscope but more to general on how to measure digital signals.  My setup is as follow: I measure the output-pin of an FPGA with both oscilloscope input A and B.  Input A (blue) is measured using the oscilloscope probe set to x10.  Input B (red) is measured using a 50-ohm coxial cable terminated at the scope input with 50-ohm.  As you can see, Input B seems correct, no reflection ect.  But Input A (the probe) has some overshoot, and ringing.  The probe should be calibrated and valid to 250MHz, so I don't get was is wrong. ?  I suspect that the small probe-clip adds some inductance, and therefore we see the ringing. But I really don't know.    EDIT After reading your answers, I walked got into our lab storage and started looking, and found a probe GND clip like the one showed in the answer below.   When I use that clip, I get the output below. Which is really a huge improvement.


Can I drag someone off a cliff while I have him grappled?

After I grapple a foe can I drag him off a cliff or do I have to push/shove him at the end?


How to solve equations with Stirling Approximation?

As we all know Stirling Approximation is giving us an approximate value of factorial, aka   $\Gamma(x + 1)$.  $\sqrt{2\pi n}(\frac{n}{e}) \approx n!$  But what if we have equations with factorials. In this case we are allowed to use Stirling approximation in order to simplify our problem. But how can we find the exact value of this equation?  $ \sqrt{2\pi n}(\frac{n}{e}) = g(n)\\ g(n) \in \mathbb{R} $


while-loop will execute when there is a 0 in the while condition?

Let's see the example code:   var limit = 3;  while(limit--){    console.log(limit);    if(limit){      console.log("limit is true");    }else{      console.log("limit is false")    }  }   and the output will be:  2 "limit is true" 1 "limit is true" 0 "limit is false"   There is a 0, which means false in the last time while condition. Why the last time loop will execute?


Prove $ax^2+bx+c=0$ has no rational roots if $a,b,c$ are odd

If $a,b,c$ are odd, how can we prove that $ax^2+bx+c=0$ has no rational roots?  I was unable to proceed beyond this: Roots are $x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$ and rational numbers are of the form $\frac pq$.


How do I download a package AND all of its dependencies for offline use later?

I understand how to only download a package with:  apt-get download blah   ...but how do I download all of its dependencies easily as well for an offline install later? Specifically I'll be placing all of this in a custom ISO to be installed at system install/setup without internet.


Possible Duplicate:           What is correct? We are a family of four: my father, my mother, my brother and me. or We are a family of four: my father, my mother, my brother and I. or We are a family of four: my father, my mother, my brother and myself.


I'm looking for ways I can use containers to mix and store kimchi from the thrift store.  I don't want to buy special containers, unless I have to.  I've seen plastic bowls and the like used to mix kimchi or when you do that initial salting (I've never made it, only watched others).  After that I wondered if I could use things like canisters with lock lid or plain plastic (kitchen) containers.  I'm sure you've been to a thrift store, so you can imagine the hodgepodge of possibilities.  I wanted to make sauerkraut too, and thought the lockdown canister might work? Maybe if I didn't lock it? Those crocks are expensive.


Matrices that are not diagonal or triangular, whose eigenvalues are the diagonal elements

I want to learn about matrices whose diagonal elements are the eigenvalues... but the matrix is neither diagonal nor triangular.  Is there a term for such matrices, and have they been researched?


I have a double array of tiles that show the ground. They are randomly populated with a variety of items.  one item that only spawns one is a creature spawner.  this spawner spawns up to 5 creatures (for testing it does all 5 immediately).  these creatures move around randomly every update.  i know for a fact they are moving independent of each other.  but the weird part is, sometimes i only see 1 or 2 of the 5. the others arent there. console output tells me there is in fact 5.  and, additionally, when there is all 5, some of them get cut off if they move too far in one direction. but only SOME of them. ive seen two different creatures move in the same direction and only one of them got cut off.  to further complicate things, i believe some of the items on the ground are disappearing shortly after the world is created, including the spawner. sometimes i never even see the spawner, but the creatures are still created 'properly'.  i have in the initialization section to randomly generate the world, including all the items and where the spawner is.  after that is done, in the Update section, it checks if a tile contains an updateable object (currently, spawner is the only one). if it does, that objects calls its update method.  after that is done, the creatures are updated, if any.  then it is drawn. background tiles then ground objects then creatures.  if anyone has any idea what i might need to change to fix it or require any further information, just let me know, and thanks in advance!


I want to enchant an item with Smite level 100 with commands, but i cant get past the maximum level. I searched for solutions, and tried them out, but it still won't work. I'm using Minecraft Pocket Edition. The command I've tried was: /enchant @a [r=4] 10 100


We know that if the integers $a$ and $b$ are coprime, then there exist integers $x$ and $y$ such that $xa+yb=1$. I am wondering whether we could have the following statement true: Statement A: if gcd($a,b$)=$\pm 1$, then there exists an integer $x$ or $y$ (okay if either one of them exists) such that $|xa+b|$ or $|a+yb|$ is a prime number or $1$. Or could we have the following statement: Statement B: if gcd($a,b$)=$\pm1$ and both $a$ and $b$ divide $c\neq0$, then there exists an integer $x$ or $y$ such that gcd($xa+b,c$)=$\pm1$ or gcd($a+yb,c$)=$\pm1$. (Again that either one of $x$ and $y$ exists is OK.)


Show $2 = (2, 1+\sqrt{-5})^2$ in $\mathbb{Z}[\sqrt{-5}]$.  Apologies if this may seem a trivial question, however, I am some difficulty showing this.   My Attempt:  $(2, 1+\sqrt{-5}) * (2, 1+\sqrt{-5}) = (4 + 1 + 2\sqrt{-5} - 5) = (2\sqrt{-5})$.  I am not sure how to proceed to show that $(2\sqrt{-5}) = (2)$


What happens between the end of the last series and the 50th anniversary special?

Lots of spoilers, obviously.  At the end of the last series, in The Name of the Doctor:      The Doctor and Clara are forced to travel to Trenzalore by the Great Intelligence, where Clara steps into the Doctor's grave - a scar in spacetime where she is scattered across his history. The 11th Doctor jumps in to save her and it ends on a cliffhanger where they meet the War Doctor for the first time.   Then in the 50th anniversary special The Day of the Doctor:      It starts with Clara working as a teacher and the Doctor travelling.   How? What happened between these two episodes? The 11th Doctor mentions Clara having met 'Mr Grumpy' before, but there seems to be some missing narrative. Have I missed a special or something?      How do Clara and the Doctor escape from the Doctor's grave on Trenzalore?


In unbiased coin flip H or T occurs 50% of times.  But I want to simulate coin which gives H  with probability 'p' and T with probability '(1-p)'.  something like this:  def flip(p):    '''this function return H with probability p'''    # do something    return result  >> [flip(0.8) for i in xrange(10)] [H,H,T,H,H,H,T,H,H,H]


google search engine architecture- how do so many concurrent users do a search on it

With millions of users searching for so many things on google, yahoo and so on. How can the server handle so many concurrent searches? I have no clue as to how they made it so scalable. Any insight into their architecture would be welcomed.


After updating MikTex up to 09.04.2018 (MikTex 2.9.6637, Win 10, 64bit) I've got the error:  (F:\...\texmfs\install\tex\latex\chngcntr\chngcntr.sty ! LaTeX Error: Command \counterwithout already defined.                Or name \end... illegal, see p.192 of the manual. See the LaTeX manual or LaTeX Companion for explanation. Type  H <return>  for immediate help.  ...                                                                                l.42 ...thout}{\@ifstar{\c@t@soutstar}{\c@t@sout}}                                                   ?   It seems to me this problem is connected with multiple definitions of star versions od \counterwithout / \counterwithin in latexrelease.sty and  chngcntr.sty.   \documentclass{article}  \usepackage{chngcntr}  \begin{document}  \end{document}   Is anybody know how to solve this?


How can deleting pages from a PDF result in an increase in file size?

I routinely scan pages to PDFs and then use Abbey FineReader to run OCR on those PDFs, creating a new PDF which contains both the original images (further compressed) as well as the recognized text in something like an invisible, searchable overlay.  There's an extremely strange phenomena where if I delete some pages using Preview and save the file, the file size increases instead of decreases. E.g. a 250KB file just turned into a 650KB when I deleted one of its pages...  Any idea why this happens and how to delete pages without such an increase?


Effect of a photon on curvature of spacetime

Since light , is it reasonable to assume that the curvature of spacetime is not affected (distorted) by a single photon?   Sure, a photon is attracted due to gravity. But could be something attracted by a photon?


I would be traveling to the US on an H1B for the first time next month. My fiancee and I traveled together on B1/B2 a few months back. She has a 10 year valid B1/B2 visa. Therefore we are planning to travel together this time. We are not planning on getting married any time soon. Her plan would be to spend some time and come back in a few months time.   I have read in many forums about the question on "intent to immigrate" at the port of entry. Will it be a problem for us to enter, if she is viewed as planning to stay with me forever. She would be definitely returning back to India.  But I am scared: in case the officer is not convinced, will it lead to problems?  Or am I over thinking the situation?  Please share your suggestions and experiences.  Thanks


The os hangs on the logo screen and all the orange dots are filled. The hard drive shuts down as you cant hear it spinning.  Btw, I'm very much a noob at Ubuntu!


Number quote environment like an equation

I want to put an equation number to the right of a quote (the environment) as if it was an equation.  I have looked at ,  and .  So far I have this MWE but it is not exactly what i'm looking for:  \documentclass{article} \usepackage{blindtext} \newcommand\IdeaOne[1]{%   \begin{equation}\parbox{.85\textwidth}{#1}\end{equation}} \makeatletter \newenvironment{IdeaTwo}{%   \list{}{\rightmargin\leftmargin}%   \let\orig@item\item   \def\item{ \orig@item[]\refstepcounter{equation} \def\item{\hfill(\theequation)\orig@item[]\refstepcounter{equation}}}}   {\hfill(\theequation)\endlist} \makeatother \begin{document} \section{Normal text, quote and equation} \blindtext\begin{quote}\blindtext\end{quote}\begin{equation}E=mc^2\end{equation} \section{IdeaOne} \IdeaOne{\blindtext} \section{IdeaTwo} \begin{IdeaTwo}   \blindtext \end{IdeaTwo} \end{document}   The IdeaOne is pretty close but not exactly and I have to specify the size of the parbox manually.  IdeaTwo gets the margins right but does not put the equation number like I want it.  Does anyone know how to fix either of the two ideas?  I want to do this for a philosoohy text where some text is important and will be refered to like an equation in math text but the text is longer than one line (else I could use \begin{equation}\text{...}\end{equation}.  Maybe somebody has some idea for a different approach.


Merge two commits into one and push to remote repo

I want to merge two commits into one. I have seen  and tried to use squash with rebase but it was not fit me because of I have 2 commits at all and want to merge these 2 commits into 1. git log --pretty=oneline give me:  b776cabedd911ba0030537030496ca24102ff7f1 Initial commit. 7b5fb155372b129b38be0c54d184427632d949d4 Second commit.   Can someone help?


Whether $(0,1)$ and $(0,1]$ are homeomorphic

In connection with the question  I would like to know whether $(0,1)$ and $(0,1]$ are homeomorphic. The map mentioned in the above question is onto but not a bijection. So does such a continuous bijection exist?


Some Virus is creating "Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\SqlManagement" folder again and again

c:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\SqlManagement folder is creating again and again in our Windows server 2008 R2. SqlManagement folder contains some files with SystemManagement.exe and SqlManagement.exe.  Looks like it is a virus. We have tried multiple antivirus but it is only able to delete the folder but It’s not detecting the program that’s re-creating. Malwarebytes antivirus is showing this virus as Trojan.BitCoinMiner Please guide me to remove this virus.