In my python script I want to repeat a function every N minutes, and, of course, the main thread has to keep working as well. In the main thread I have this:  # something # ...... while True:   # something else   sleep(1)   So how can I create a function (I guess, in another thread) which executes every N minutes? Should I use a timer, or Even, or just a Thread? I'm a bit confused.

I want to repeatedly execute a function in Python every 60 seconds forever (just like an  in Objective C). This code will run as a daemon and is effectively like calling the python script every minute using a cron, but without requiring that to be set up by the user.  In , the solution appears to effectively just  for x seconds. I don't need such advanced functionality so perhaps something like this would work  while True:     # Code executed here     time.sleep(60)   Are there any foreseeable problems with this code?


I'm designing a DAQ with 8 analog inputs (0-60V DC).  I would like to ask what size of capacitors should I use, as shown in the picture?  This Op-Amp costs 4$, is there another cheaper Op-Amp you recommend instead?  The picture below is a 1/12 voltage divider with Op-Amp and it will be X8 (for each input).

How to find the voltage rating of a capacitor after knowing the capacitance value.  Example, For a power supply, If the input voltage is 60V and output is 5V. The input capacitor(C1) value is 100uf and output capacitor value is 1000uf.  What is the voltage rating for both the capacitors and how to find them.


I have the following question which I cannot find its proof:  Let us consider the following mean values theorem:  Theorem: Let $f:[a,b]→[a,b]$ be a continuous function on the closed interval $[a,b]$, and differentiable on the open interval $(a,b)$, where $a<b$. Then there exists some $c∈(a,b)$ such that  $$f′(c)= \frac{f(b)- f(a)}{b-a}$$  Assuming that  $f$ and $f'$  are strictely increasing functions. hence they are bijections from $[a,b]$ to itdelf.  My question is: Given any $c∈(a,b)$ can we find $u,v$ in $[a,b]$ such that   $$f′(c)= \frac{f(u)- f(v)}{u-v}$$  The same question if one fix $u$ or $v$.

I am wondering if the following converse (or modification) of the mean value theorem holds. Suppose $f(\cdot)$ is continuously differentiable on $[a,b]$. Then for all $c \in (a,b)$ there exists $x$ and $y$ such that $$ f'(c)=\frac{f(y)-f(x)}{y-x} $$


If we initially take into account the fact that $G/Z$ is cyclic, then I know how to prove that $G$ is abelian. However I wanted an alternate proof which starts by assuming that $G/Z$ is abelian(which is true since it is cyclic) and then it proceeds to prove this result.  We would eventually need to consider that $G/Z$ is cyclic (because being only abelian is not sufficient to arrive at result) but I could not figure out how to bring this in.  Here's what I did:  Since $G/Z$ is abelian,  $$Za Zb=Zb Za$$ for some $a,b \in G.$ Since $Z$ is a normal subgroup as well so left cosets are same as right cosets. $$\therefore ZZab=ZZba$$ Thus we have finally, $$Zab=Zba$$  Please keep the proof same till here and show that $ab=ba$.

Continuing my work through Dummit & Foote's "Abstract Algebra", 3.1.36 asks the following (which is exactly the same as exercise 5 in ):     Prove that if $G/Z(G)$ is cyclic, then $G$ is abelian. [If $G/Z(G)$ is cyclic with generator $xZ(G)$, show that every element of $G$ can be written in the form $x^az$ for some $a \in \mathbb{Z}$ and some element $z \in Z(G)$]      The hint is actually the hardest part for me, as the quotient groups are somewhat abstract. But once I have the hint, I can write:  $g, h \in G$ implies that $g = x^{a_1}z_1$ and $h = x^{a_2}z_2$, so \begin{align*}gh &= (x^{a_1}z_1)(x^{a_2}z_2)\\\  &= x^{a_1}x^{a_2}z_1z_2\\\ & = x^{a_1 + a_2}z_2z_1\\\ &= \ldots = (x^{a_2}z_2)(x^{a_1}z_1) = hg. \end{align*} Therefore, $G$ is abelian.  1) Is this right so far?  2) How can I prove the "hint"?


I have seen a sample C# code that looked like this:  private static string GetCommandLine(Process process) {     string cmd = "";     using (var s = new ManagementObjectSearcher("SELECT CommandLine FROM Win32_Process WHERE ProcessId = " + process.Id))     {         foreach (var @object in s.Get())         {             if (cmd.Length > 0) cmd += " ";             cmd += @object["CommandLine"];         }     }     return cmd; }   What is the purpose of the @ in the loop variable?

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


OK maybe i did something stupid but i hope its not hopeless.   I tried to compress one file on my usb stick and it didnt have enough space and now when i put my usb in pc it says free 1,6 gb  free 2.4 gb but when i open removable disk it says there are no files on this disk.   I tried open it on other pc and it says same thing.  How can I find my files and folders on it

I have a flash drive that was used primarily on a Mac, and it was ejected improperly.  Now when I put it back in, the computer (I tried 2 different Macs and 3 PCs) does not even register the flash drive- it does not show up in Finder or in My Computer. Any ideas how to get the lost files back?


I have a computer but with no available screen, how can I install Ubuntu server on it using a laptop I have, I can't format the hard drive in another computer and buying a new monitor is not an option for me can you guys tell how can I do that?     The computer is pentium 4; 80 GB HDD; 800 MB ram; with external wifi adapter.   I think using ssh or network boot or something like that would be the way to do it, I'm not sure.

This is tricky. I would like to install Ubuntu on a machine that is intended to work as server, and for some reason I do not have an option to connect a screen to it.  I expect this may be similar to remote installation. However, there is currently no OS on that machine, so I will have to set up everything from scratch.  On the other hand, I do have a physical access to that machine. Therefore I can get it to boot from a CD/USB. But that's not enough.  Is there a way to do such installation remotely? Is there a version of Ubuntu image that comes with a SSH server preinstalled, and starts it once booted, so that I can boot the machine with such image, connect to it via SSH and process the installation from a different computer?  If not, what other options do I have?


We know that atmospheric pressure is 760mmHg, whereas blood pressure in blood vessels is somewhere between 80 to 120 mmHg. As outer pressure is higher than inner so shouldn't it cut off the blood flow?

Atmospherical pressure is around 760 mmHg, while blood pressure is on average 100 mmHg. Then why do you bleed from cuts, and why does a cut aorta spray blood? The atmosphere should press the blood back in, or at least stop it from spraying.


Fix a point $z \in \mathbb{C}$. Let $S \subset \mathbb{C}$ be a nonempty closed set. Let $$T = \{ w \mid d(z, w) = d(z,  S)\}.$$ Then $S \cap T$ is a nonempty closed set. Let $f\colon [0, 1] \to T$ be defined by  $t \mapsto z + d(z, S)e^{2\pi it}$. Then $f^{-1}(S \cap T)$ is closed subset of $[0, 1]$. Thus $f(\inf f^{-1}(S \cap T)) \in S$.   By this way we can make a choice function for the entire family of nonempty closed subsets of $\mathbb{C}$. Is this way independent of $\mathsf{AC}$? And can this method extended to other Euclidean spaces, or even metric spaces and topological spaces?

Let $X$ be a complete & separable metric space. Let $\{E_i\}_{i\in I}$ be a collection of closed and nonempty sets in $X$.  If $X$ is just a complete metric space, it seems not possible to construct a choice function $f$ such that $f(E_i)\in E_i$, without AC.  However, since $X$ is separable, it seems possible to construct a choice function.  How do I construct a choice function $f$ such that $f(E_i)\in E_i$ without AC$_\omega$?  EDIT; Since Hagen's argument doesn't require the condition 'boundedness of $E_i$, I removed it. Also $\{E_i\}$ doesn't need to be countable, so i changed it to $\{E_i\}_{i\in I}$ where $I$ is an arbitrary set.


Please consider the following  library(stringr)  text <- c("blabla bla blabla bla 6:05, 15 July 2005, blabla bla",            "blabla bla bla 7:06, 3 November 2006, blabla bla",           "blabla bla 24 November 2006, blabla bla",           "blabla bla blabla bla bla blabla bla")  dates <- str_extract_all(text, ???)   I am trying to extract from the vector all dates, and in case they come with time also the time.


Consider the following sequence, where the two consecutive terms are positive and the next two are negative, and so on:  $$ a_n = 1 , 1, -1 , -1 , 1 , 1 , -1 , -1 , 1 ...$$  I've managed to think up some way of writing the sequence:  $$a_n = (-1)^\left \lfloor{\frac{n}{2}}\right \rfloor$$  $$ a_n = \sqrt2 \cdot\frac{d^n}{dx^n} (\sin x) ,  \text{at }x=\frac{\pi}{4}$$  Are there other ways that this sequence be written as? I would imagine there is a way to write it implicitly but I can't think of it.  Edit: Also adding this ugly one I forgot to initially:  $$a_n=\begin{cases} 1 & \text{ if } n \text{ is divisible by 4};\\1 & \text{ if } n-1 \text{ is divisible by 4};\\-1 & \text{ if } n-2 \text{ is divisible by 4};\\-1 & \text{ if } n-3 \text{ is divisible by 4}\end{cases}$$

Consider a sequence of the form:  $x[n]=-1,-1...,1,1,...,-1,-1...,1,1... \quad n>0$  One can think of this as a square wave ($\pm1$) with a 50 % duty cycle (coming from EE).  For the simplest case of such a series i.e. $-1,+1,-1,+1,-1...$, a general equation is quite trivial ($x[n]=-1^n$).  Can we have e general equation for the other cases i.e. when there are multiple $-1$'s followed by $+1$'s ?


I made a diamond material for my mesh diamond. How can i bake the material as a texture for the diamond, so i can it export for a game

I have been experiencing an issue that once I have a material created and looking the way I want it, I cannot seem to export it correctly with the textures mixed.  I don't know the correct words to use, but in blender I have the material created using the nodes editor, and I have placed two textures inside of there (one for the rock texture and one for moss, my object is a rock). When I export this model and import to Unity (the game engine I am using), I find a materials folder but the material inside of it does not have the textures assigned, it's just a plain white material?  How can I export my material from blender in a way that it will allow me to import it WITH TEXTURES into Unity?


The graph my code (below) is trying to reproduce is \frac{2}{\pi}\arctan{x} but all it creates is a line that shoots up into the y-axis. What is wrong with my graph and how do I fix it? \begin{figure}[H]     \centering         \begin{tikzpicture}         \begin{axis}[grid=both,                   xmin = -.5, xmax = 10, ymin = 0, ymax = 2,                   axis lines=middle,                   enlargelimits]         \addplot[black] (11,0) node[above left] {$x$};         \addplot[black] (0,2.2) node[below right] {$\dfrac{\mathrm{d}x}{\mathrm{d}t}$};         \addplot[red,dash pattern=on 8pt off 8pt, domain=-15:15]  {1} node[above left]{$y=1$};         \addplot[blue,samples=1000,domain=0:15]  {atan(x)*((2))/(pi))};         \end{axis}         \end{tikzpicture}         \caption{The graph of $\dfrac{\mathrm{d}x}{\mathrm{d}t} = \frac{2}{\pi}\arctan{x}$}         \label{fig:logistic6}     \end{figure}

I'm trying to plot arctan(x) with pgfplots but I don't get a good output. Here is my code:   \begin{cfigur}\begin{axis}[      width=160pt,compat=1.5.1,grid style={ultra thin},every axis plot post/.append style={thick},      x tick label style={font=\tiny},y tick label style={font=\tiny},      scale only axis,grid=major,axis lines=middle,      xlabel={$x$},      ylabel={$y$},      xmin=-200,      xmax=200,      domain=-200:210,      ymin=-5.5,      ymax=5.5,      xtick={-150,-100,...,150},      ytick={-5, -4,...,5},      restrict y to domain=-20:20,      legend style={at={(0.5,-0.05)},anchor=north,nodes={right}},  ]  \addplot[mark=none,color=blue, samples=500]{atan(x)};  \addlegendentry{$y = \tan^{-1}x $};  \end{axis}\end{cfigur}


I'm trying to decide what kind of camera to purchase. At first I had it in my head that I needed a dSLR and I've asked a couple questions before on this forum to help me figure out which ones I like. But more recently I've started questioning whether I really need a dSLR right now so I'm starting my search from square one. Here goes:  What kind of photographer am I? I am a "serious amateur" according to . I am a "dabbler" according to . I don't have much experience in photography, but I have an interest in it and I have done my research to learn the principles (Exposure, DoF, etc). Now I'd like to get some hands on experience putting those principles to use.   The camera I purchase must have:     Great value. (Not just low price, but quality for the money.)   Larger sensor than point and shoot cameras. Fast autofocus. Capable of at least 720p video.   Image stabilization (preferably in camera).    It will be a great bonus if the camera also has:     Compatibility with a wireless shutter remote. (Or at least a cable shutter release.)   Autofocus and track subjects while shooting video.   1080p video capability.   Interchangeable lenses. External mic jack.   I've tried to organize these in order of importance to me. I would be interested in recommendations for general categories of cameras that would meet my requirements and specific models. Price-wise, I'm not paying for anything more than an entry level dSLR.

I am thinking of buying a camera to learn photography. Most of the time I'll be shooting portraits and landscapes. But I am not sure where I should start. Most of my friends tell me that I should get an entry level DSLR, but I am not sure if I have the persistence and enthusiasm to carry it all day in a backpack. But the camera on my cellphone doesn't seem to be enough to begin with.  So what I want is some expert advice (preferably with professional experience). Can most compact fixed-lens or mirrorless cameras fit the situations I mentioned? Or do I really need to go to a DSLR to get a tool to learn photography?


I have a list of Strings   ArrayList<String> titles = t1,t1,t2,t2,t3,t3,t3   I want a sublist with the unique values ie. titles2 = t1,t2,t3  How can I do this? Any help is appreciated

I have an ArrayList<String>, and I want to remove repeated strings from it. How can I do this?


Disclaimer: the email below has turned out to be from the person signed below it  The general question in title still stands.  So I got this spam from Gmail address address removed since it turned to be legitimate personal gmail address (just remove stars to get valid address):     Hi Tomáš,      Yes, I’m afraid it’s true; I am another recruiter to add to the long   list of recruiters who must be contacting you almost daily.      At least some good news is that I am a direct employer and not one of   those pesky Recruitment Consultants from an Agency….      I don’t want to waste your time, I’m not going to harass you, I’d just   like to know one thing….      If you were considering a change in company, what would the change   involve? What would be important to you? And, what would you want to   hear from me in order to make you consider a new company?      Ok, I’m obviously not very good at this! That was 3 things; I hope you   can forgive me for that!      If you do reply and I think I can match what your needs and   motivations are, then perhaps you’ll be happy to have a conversation   with me about opportunities at Foxconn DRC in Prague……..      Kind regards      Paul      Paul Myers pmyers@foxconn.cz   phone: 420 466056626   Since the From field of the email didn't match the mail address in signature, I came to conclusion that the email is fake, presumably recruiter scam of some sort.  It is only on Stack Exchange where I come under name Tomáš Zato, which is actually Czech wordplay. So it is possible that someone farmed some data off Stack Exchange. I do not know if anyone bothers dealing with this kind of spam. But I found it notable because I receive very little emails and this one got through filters. Given that it's expecting reply, it could be dangerous scam.  I am not asking just about this message. How can I handle this in general? It's clear that my Stack Exchange username is related to the spam. And Foxconn is a real engineering company. (I have sent them the email in case they were interested)

This has been . It is unfortunate the accepted answer is so far from reality.   There are some facts:    's MD5 hash is an unsalted MD5 hash of an email address. A 3rd party could harvest every MD5 hash for every user's email on Stack Overflow.  The 3rd party could store all the hashes in a lookup table Email addresses are usually of a very particular format The attacker could start with a brute force of @gmail.com followed by @yahoo.com, etc. The attacker has the advantage that he/she could attack a huge set of emails in one go. So instead of needing to brute force every email individually the attacker can brute force in bulk.   The algorithm is quite simple, calculate a "random" MD5, look it up in the lookup table.       Is Gravatar a big enough security risk to warrant caching images locally?     Examples:    Someone could harvest about 50k email addresses quite easily and shoot off a bogus promotion from Stack Overflow to all the users. A spammer/stalker/generic evil guy can tie you identity to all the rest of the sites that use Gravatar.


My system has a Windows 8 dual boot with Ubuntu,but now when I boot in to Ubuntu only  desktop loads and nothing else. I can only open the terminal ttyand there's no launcher menu bar. The super key isn't working either.

When I login, nothing happens.   I am presented with my desktop wallpaper.    No Dash, no Launcher, nothing.


Let $f:[0,\infty)\to (0,\infty)$ be a continuous function and $\displaystyle\int^{\infty}_{0}f<\infty$. Show that $f$ is uniform continuous iff $\displaystyle\lim_{x\to \infty}f(x)=0$   So I could only see that continuity is not sufficient condition for the limit to exists since $\displaystyle\int^{\infty}_{0} \cos x^2$ exists but $\displaystyle\lim_{x\to \infty}\cos x^2$ does not exist , so we need something more stronger than continuity.

Trying to solve     $f(x)$ is uniformly continuous in the range of $[0, +\infty)$ and $\int_a^\infty f(x)dx  $ converges.   I need to prove that: $$\lim \limits_{x \to \infty} f(x) = 0$$  Would appreciate your help!


I'm working on a highly detailed "random building generator". It's working so far, with a variable to pick the # of floors. 10 floors takes about 10 seconds 20 floors takes about 70 seconds 100 floors... after 5 minutes, I closed it out.  The thing I noticed is it's only using one thread.  Each floor can be created with it's own thread without interfering with other threads. Within the loop that'll execute 100 times, how do I put "buildLayout" function call into threads, without breaking my PC?  Would this work?  (Don't want to generate more threads than my PC can actually handle) import threading for floor in range (0, 100):   thread = threading.Thread(target=buildLayout(self, context, offset,                  outsideWallObj, outsideDoorObj, outsideWindowObj))   threads.append(thread)   thread.start()  for thread in threads:     thread.join()  My biggest concern is I only want 1 thread running per core.  Does python handle this automagically, or do I need to find the core count?  If I need core count, how do I obtain it?  Current code listed below.              for floor in range (0, bpy.context.scene.user_vars.buildingHeight):                 xPos = 0                 yPos = 0                 zPos = floor*4-1                   offset = (xPos, yPos, zPos)                 offset = Vector(offset)                 buildLayout(self, context, offset, outsideWallObj, outsideDoorObj, outsideWindowObj)

Hi i'm thying threading with bpy this is my code:  import bpy import threading   class Cubes(threading.Thread):      def __init__(self):         threading.Thread.__init__(self)       def run(self):          scale = 0.2         space = 0.2         max_range = 6           for i in range(0, max_range):              bpy.ops.mesh.primitive_cube_add(radius = 1, location=(0, 0, 1))             bpy.ops.object.origin_set( type="ORIGIN_CURSOR" )              bpy.context.active_object.scale.x = scale             bpy.context.active_object.scale.y = scale             bpy.context.active_object.scale.z = 5              bpy.ops.object.transform_apply(location = False, rotation = False, scale = True)             bpy.context.active_object.location = (((i*scale*2)+(i*space))-(((max_range*scale*2)+(max_range*space)))/2,0,0)           return  t = Cubes() t.start()   but when i run this the console give me this error:  Exception in thread Thread-1: Traceback (most recent call last):   File "C:\Program Files\Blender Foundation\Blender\2.75\python\lib\threading.py", line 921, in _bootstrap_inner     self.run()   File "C:\Users\Davide\Desktop\Sound_Visualizer.blend\Sound_Visualizer_Circular.py", line 40, in run AttributeError: 'Context' object has no attribute 'active_object'   Can someone help me?


Let’s say I see a great piece of artwork on InPrnt or DeviantArt (for simplicity, let’s say it is pixel art with a fairly simple palette of colors) and I think it is so great that I want to copy the colors used to create my own image. Assuming the subject/purpose of my work is completely unrelated to the original piece and the only aspect of the original which I draw from are the colors, can I legally publish my illustrations/pieces made with this palette  (copied exactly) online or send them to be reviewed by a game developer/website designer/etc.?

I often see color combinations on webpages, images, posters, products etc. that harmonize really well. Am I allowed to use those colors in my own design?   This is solely about the colors. I will not use images, logos or shapes from that source, and my content is not related to the original color source. I am also far from any commercial aspect here.


I want to have a way to change theme colors once and use them in SCSS, JSX and PHP. Right now I have the theme colors in my variables.scss like: $theme-colors: (   base: #fff,   primary: #5bb57a,   secondary: #f39708,   tertiary: #ed7aad, );  Now, I want to mainly use it in combination with JSX to create custom blocks and access the colors as an object in the block editor. (to use it with an color pallet and to store the object key to an attribute) How can I change the colors once and access them cross language?

I would like to accomplice the following:  Define theme colors in a SASS (.scss) file using nested variables. Add these colors to gutenberg using add_theme_support( 'editor-color-palette', array()) Have a visual color inspector pallete in Gutenberg. Save the object key, not value, to a attribute Use the atribute in the php callback to set a div class using .has-key-background-color  So far, I've been able to generate and editor.scss and style.scss using something like: _variables.scss $theme-colors: (   base: #fff,   base-typography: #333,   primary: #5bb57a,   secondary: #f39708,   tertiary: #ed7aad, );  editor.scss and style.scss @each $name, $color in $theme-colors {    .has-#{$name}-color {     color: $color;   }    .has-#{$name}-background-color {     background-color: $color;   } }  set theme colors for Gutenberg I really not want to hardcode this! functions.php function mytheme_setup_theme_supported_features() {          add_theme_support( 'editor-color-palette', array(         array(             'name' => __( 'Base', 'themeLangDomain' ),             'slug' => 'base',             'color' => '#fff',         ),         array(             'name' => __( 'Primary', 'themeLangDomain' ),             'slug' => 'primary',             'color' => '#5bb57a',         ),         array(             'name' => __( 'secondary', 'themeLangDomain' ),             'slug' => 'secondary',             'color' => '#f39708',         ),         array(             'name' => __( 'Tertiary', 'themeLangDomain' ),             'slug' => 'tertiary',             'color' => '#ed7aad',         ),         array(             'name' => __( 'base-typography', 'themeLangDomain' ),             'slug' => 'base-typography',             'color' => '#333',         ),     ) ); }  add_action( 'after_setup_theme', 'mytheme_setup_theme_supported_features' );   Now this is where it ends for me, because I'm able to use withColor() in the block editor. BUT this is set as a style VALUE, not KEY in de renderer and not set as an attribute usable in the PHP Callback. If I could get an array of the SASS's $theme-colors as values for a color picker in the block editor I could save the key as an value to the attribute and set it as an class to the div. Is there a way to do so?


I have a class with students details , when i retrieve the data from database iam storing in data table , how to pass data table values to class ?   public class Student  {       public int StudentId { get; set; }       public string StudentName { get; set; }       public string Address { get; set; }       public string MobileNo { get; set; }   }

Currently, I'm using:  DataTable dt = CreateDataTableInSomeWay();  List<DataRow> list = new List<DataRow>();  foreach (DataRow dr in dt.Rows) {     list.Add(dr); }   Is there a better/magic way?


I'm trying to understand how to calculate $2^2 + 4^2 + \dots + n^2$. I've only succeed to upper bound it by $\dfrac {n^3} 2$. My goal is to say that it is $\Theta (n^3)$.  Thank you

I am just starting into calculus and I have a question about the following statement I encountered while learning about definite integrals:  $$\sum_{k=1}^n k^2 = \frac{n(n+1)(2n+1)}{6}$$  I really have no idea why this statement is true. Can someone please explain why this is true and if possible show how to arrive at one given the other?


I was trying to update my computer but I have a problem with my charger. So, halfway through the Ubuntu update from 14.04 to 16.04.3, there was a contact problem(the charger got disconnected) and it halted. Now the screen shows up black with this; Ubuntu 16.04.3 LTS my name tty1  name again login:_ What do I do?

Previous the upgrade, my bashrc file was modified in order to add some Path configuration.  While executing do-release-upgrade everything was fine until a message prompted about the status of the bashrc file and an option menu was displayed.   From the menu, I chose the "compare changes" option and the only difference was my previous modification. No problem.   Here is the problem: I ctrl-c and the whole upgrading stopped. After that, I rebooted my computer and from then it is possible to start Ubuntu only in recovery mode.   After logging in (in recovery mode shell) the welcome header message says "Welcome to Ubuntu 15.04" but the "your Ubuntu release is not supported any more" and "new release '15.04' available" warnings still appear.  I've tried to do-release-upgrade again but got the "no new release found" message.  How can I finish or re-run the upgrade??  Thanks


Why has the effect of the \small command been extended to item (e)?   \item $a_n = \dfrac{a^2_{n-1}}{a_{n-2}}, \textrm{ for } n \geq 2, a_0 = 1 \textrm{ e }                                             a_1 = 2$ (\small{{\textbf{\textit{Hint:}} SDSADSADASsscsc $\log a_n, n = 0,1, 2,...$ }})   \item $a_n = a^3_{n-1}a^2_{n-2}, \textrm{ for } n \geq 2 \textrm{ e } a_0 = a_1 = 2 $

The standard font packages make global changes to the fonts in my document. What if I want to use a particular font for just a portion of my text?   How do I find the right name of the font? How do I select the font? How do I restrict the scope of the font change?     There are separate answers for different flavors of TeX (quick links):


Suppose somebody asks a  that is unrelated to the site, and receives multiple downvotes. However, the asker still has a reputation of 1. Downvotes will not take away the reputation, as reputation can never be . However, if they ask another question that is well-received, will they lose the amount of reputation they were supposed to lose for the original ? Or will the original question not have any effect?

On Stack Exchange, users may gain a certain level of reputation.  What does reputation do? How can a user gain or lose reputation?   See also   in the Help Center  - Maximum amount of votes a user can use in a day and reputation requirements to vote.  - How to get an exact overview of the actions that got you your reputation.  - A full list of all privileges granted at each reputation level on all sites.


In the proof of Theorem 3.3 in "An introduction to Stein's method" by Barbour and Chen we can read     [...] since both $x^2$ and $x \wedge 1$ are increasing functions of $x \ge 0$, it follows that, for any random variable $\xi$,   $\mathbb{E}[\xi^2]\mathbb{E}[|\xi| \wedge 1] \le \mathbb{E}[\xi^2|\xi| \wedge 1]$ [...]   I take this to refer to a claim:  Let $f,g : \mathbb{R}^+ \to \mathbb{R}$ be non-decreasing functions and let $X$ be a non-negative random variable. Then $\mathbb{E}[f(X)]\mathbb{E}[g(X)] \le \mathbb{E}[f(X)g(X)]$.  My question is: why is this claim true? I've tried to prove it but I haven't made any progress. I'm very grateful for any answers or hints on how to show it.

Let $X$ be a random variable and let $g,f$ be real-valued, nondecreasing, and bounded.   Show that $\mathbb{E}[f(X)g(X)]\geq \mathbb{E}[f(X)]\mathbb{E}[g(X)]$  Having a hard time seeing where to start for some reasons, any hints?  I managed to write:  $\mathbb{E}[f(X)g(X)] = \frac{1}{4}\mathbb{E}[(f(X)+g(X))^2 - (f(X)-g(X))^2]$  But I'm not sure if this is in the right direction or not.


I tried to fix a single-letter typo on this question:   But it says: "Edits must be at least 6 characters; is there something else to improve in this post?"

I just attempted to fix a typo on a question on cooking.stackexchange.com and saw this     Oops! Your edit couldn't be submitted because:         Your edit summary must be at least 10 characters   This edit is less than 6 characters; surely more can be improved with your edit?      So, misspelled words have to just be left misspelled?  That could prevent the post from being found in a search.


Find all function $f:R\to R$ and such $$f(f(x)+xy)=f(x)+xf(y),\forall x,y\in R$$ Let $x=y=0$,then $$f(f(0))=f(0)$$

Find all functoins $f: \mathbb R \rightarrow \mathbb R$ such that $\forall x,y \in \mathbb R$ the equality:: $$f(xy+f(x))=xf(y)+f(x)$$  My work so far:  1) $f(0)=0$;  Let $f(a)=f(b)\not=0$  $x=a, y=b \Rightarrow f(ab+f(a))=af(b)+f(a)$;  $x=b, y=a \Rightarrow f(ba+f(b))=bf(a)+f(b)$;  Then $af(b)+f(a)=bf(a)+f(b) \Rightarrow a=b$  $x=0: f(f(0))=f(0) \Rightarrow f(0)=0$  2) $f(x)=x -$ solution. I have tried to prove that $g(x)=f(x)-x = 0 (\forall x \in \mathbb R)$ $$g(xy+x+g(x))=xg(y)$$


How can i install my windows 7 iso to a flash drive? dd seemed to have worked, but when i booted it did not work, saying grub: no such partiton Which is odd, considering i did not remember installing grub. Does this mean that it's in the iso? or that it's persistent from a previous install, and even formatting won't remove it? Very confused.  Tried: unetbootin, than boot, just boot looped into 'default'  winusb: Failed with error code 512  dd, than boot  format, dd, than boot.  re-downloading the iso from Microsoft store, format, dd  format to ntfs, unetbootin version 494, boot, blinking line on the top left

I'd like to create a Windows bootable USB stick, but I don't have a Windows machine with me at the moment to do so. How could I achieve the same using Ubuntu?


i have two arrays and want to check if all IDs is the same or not let a = [           {id:0, name:"test0"},           {id:1, name:"test1"}          ];  let b = [           {id:0, name:"test0"},           {id:1, name:"test1"}          ];  the above arrays we see it's equal and the way I tired like this JSON.stringify(a) === JSON.stringify(b) => True  I read the JSON.stringify it's affected the Performance if we have big arrays so is there another way to get the same result?

A strict equality operator will tell you if two object types are equal. However, is there a way to tell if two objects are equal, much like the hash code value in Java?  Stack Overflow question  is similar to this question, but requires a more academic answer. The scenario above demonstrates why it would be necessary to have one, and I'm wondering if there is any equivalent solution.


i tried to fix this from youtube but it doesnt work. Last time my resolution was 1366 768 16:9 but this time it is 1024 768 4:3. How can I fix it?

I tried to use xrandr to set 1680x1050 as a new mode to VGA output, but it says:  sudo xrandr --addmode VGA-0 1680 X Error of failed request:  BadMatch (invalid parameter attributes) Major opcode of failed request:  140 (RANDR) Minor opcode of failed request:  18 (RRAddOutputMode) Serial number of failed request:  35 Current serial number in output stream:  36


I'm currently working on a scene in blender which has a modern house on a plot of land. The idea is for it to be located in a developed neighbourhood. I can't seem to find any pre-build 3D houses to add into the background. Anybody know of a site I can get them from? I don't mind if they aren't free. Many thanks,

Since asking for tutorials, videos, resources, links to other content or downloads is considered off topic here, this is a specifically created Community Wiki which gathers resources for Blender and it has been approved by the .  Just write in the appropriate answer/section. If you have concerns, questions, post a  question, so we don't clutter the comments, but you can link your meta question from the comments.  Questions regarding such resources are not allowed anymore, except for very specific and on topic requests (ask on  if you're unsure about your question). Follow the instructions made in the question about how to post, what can be posted, etc.  Learning             Assets    (also see: )   Reference Images/Blueprints (also see: )    Tools    (also see: )      Other   Special Interest ()     Also see the .


I know that when a commander is exiled, the owner has the option of putting it in  exile or back in the command zone, but what about effects that only remove it as  long as a permanent is in play, like o ring, or angel of serenity. does the  commander leave play until the mentioned permanents leave play or can the opp bypass them and just put the commander in the command zone.

What happens if a commander is sent to the command zone via  and then enchantment is destroyed? Can the commander return to the battlefield from the command zone?.  I think that  would not allow that to happen.


I guess the title says it all. I want my sections numbered according to the Part I am currently in. For example, if I am working in Part 3, then I want my section to be numbered by 'Section 3.1', 'Section 3.2', etc.  Right now the section numbers continue from the part before. So, in Part 3 the sections are numbered as 'Section 15', 'Section 16', ....  Thank you for your help. I am using article as documentclass.

Some document elements (e.g., figures in the book class) are numbered per chapter (figure 1.1, 1.2, 2.1, ...). How can I achieve continuous numbering (figure 1, 2, 3, ...)?  And vice versa: Some document elements (e.g., figures in the article class) are numbered continuously. How can I achieve per-section numbering?  \documentclass{book}% for "vice versa" variant, replace `book` with `article`  \begin{document}  \chapter{foo}% for "vice versa" variant, replace `\chapter` with `\section`  \begin{figure} \centering \rule{1cm}{1cm}% placeholder for graphic \caption{A figure} \end{figure}  \end{document}   Bonus question: Is it possible to adjust the numbering of the sectioning headings themselves? Can I, e.g., switch from per-chapter to continuous numbering of sections in the book class?


I use the mobile SE app a lot; it is my primary access to SE. So, what bugs me is that when I find a question with a bounty, all we get is this:   Which is compared to users of browsers, who see this:   Although not much more detail in this case, it still has more; unlike on mobile, Browser users can see why the bounty was set, along with the comment from the bounty-setter. Why can't we have this as a feature in Mobile SE?

In the android app, looking at bounty details using the i button, the bounty reasons are not shown:        The bounty message can provide important information as to the setter's requirements (who may not be the OP and therefore does not wish to edit the question to do so).


I have been using Ubuntu 14.04 alongside Windows 8 for almost a year and a half. And one day when I restarted to switch to Ubuntu I wasn't able to see the grub options for dual boot and when I tried to go to boot options and chose Ubuntu it says "Selected boot device failed". What could be the reason for this and will I be able to recover the data stored on my Ubuntu partition. Please Help

I installed Windows 7, which ate Ubuntu's boot file. When starting up the computer, it now goes straight to Windows, without giving me the option of booting Ubuntu.   How can I get Ubuntu back?


I'm facing a weird problem with caption and endnotes packages. I have some figures and their caption contains endnotes. However, at each call of \endnote, the endnote counter is incremented by 2 instead of 1. It should be 1, 2, 3... but I'm getting 2, 4, 6...  The problem is related to the caption package. If I remove it, problem solved! However, I would like to find a way to solve this issue without removing any package. Can you help?  MWE with the problem:  \documentclass{book}  \usepackage{endnotes}  \usepackage{caption}  \begin{document}  \begin{figure}[h]   \caption[caption for toc]{figure caption\endnote{endnote A}} \end{figure}  \begin{figure}[h]   \caption[caption for toc]{figure caption\endnote{endnote B}} \end{figure}  \theendnotes  \end{document}

I made a custom counter with a custom command that steps the counter and sets an automatic label for it. However, when invoking this from a caption AND using the caption package, my counter steps two times. Here's a MWE:  \documentclass{book} \usepackage{caption}  \newcounter{example}[chapter] \renewcommand{\theexample}{\thechapter{}.\arabic{example}} \providecommand{\example}[1]{\refstepcounter{example}\label{ex:#1}{\theexample}}  \begin{document}  \begin{figure}[h!] \caption{\protect\example{my_example}} \end{figure}  \end{document}   If I comment out the line \usepackage{caption}, I get the right results.  Is this a bug, or am I doing here some very basic mistake?


Its like Stack Exchange sites have badges awarded for almost every small contribution you do for the site, but why there are no helpful flags badges?  A bronze badge for starting up the task of reporting the helpful flags and 50 a silver badge and 250 or 500 helpful flags should be awarded a gold badge. I don't know the reason no badges are awarded for these questions we flag as helpful.

Formerly List of all badges with full descriptions.  What are badge name's requirements? Why didn't I get badge name ? Which badges can I earn multiple times?    Jump to:                    Note: Some badges are awarded based on score. The term score means the total number of upvotes minus the total number of downvotes.  Any badge with a *** next to it is one of 20 badges that count towards the  displayed on a moderator candidate in an election. The candidate score is a total of 40 points: the first 20 are awarded based on the user's rep divided by 1000 and rounded down; the second 20 represents the total number of unique badges earned of the 20 that count. Note that if the same badge is earned multiple times, it will only count once towards the candidate score.  Any badge with a "(retired)" next to it is no longer awarded, but is retained by users who previously earned them. See  for more info on what it means for a badge to be retired.       Visit the  of the  on any site to see a complete list of badges that you can filter by earned, unearned, or type.


Honest mistake, I accidentally chose the incorrect option when reviewing a newly submitted question. Instead of clicking Requires Editing, I accidentally chose Looks OK. Then I realised I was not able to revert my decision and try again.  I understand that the whole review process involves several community members reviewing said question to eliminate cases of human error but I'd like to correct my mistake and change my 'vote' - seen as I fully acknowledged my mistake.   Does this functionality currently exist? How likely is it to be implemented? I searched for a similar question here on Meta but was not able to find anything.   EDIT:  It was a genuine misclick. I aimed to press Requires Editing but ended up pressing the edge of Looks OK.  As mentioned in one of the responses, I'm not sure how appropriate it would be to implement said feature, but I was thinking along the lines of how the comment voting system works. You can 'upvote' a comment. You can remove your 'upvote', but you can't 'upvote' it anymore after that.

I (and probably many other people) have accidentally clicked the wrong button in reviews. For example, I just clicked the Leave Open button when I wanted to click Close. I think many people have done this. I think an ability to undo this would be appreciated.


I have three tables representing a many-many relationship. They are board_name, topic_name and board_topic.  Someone told me how to query these tables to get the results I want, but it currently seems like Voodoo to me. I have done some research on joins, but it is still not clear.  Could someone please explain how the query below works? For example how are the two joins related? Do they represent two sides of the join somehow? Is there a simpler way to write this query?   I have an idea that, like a butterfly, the left-hand side is joined to the center and so is the right-hand side. Maybe a picture could help me to understand?  Any help appreciated.  SELECT board_name, topic_name FROM board  JOIN board_topic ON board.id = board_topic.board_id  JOIN topic ON topic.id = board_topic.topic_id  WHERE topic_name = "differentiation";

Also how do LEFT JOIN, RIGHT JOIN and FULL JOIN fit in?


The search on the top of the page searches questions and answers .     Is there a way to search comments too ?

Sometimes I can best remember a question by its comments. How can I search for a question that way?  Downloading the data dump is not viable because it may be a question posted today.


I have installed Ubuntu terminal(Ubuntu app) in Windows 10, I have enabled the Windows Subsystem for Linux.   The problem is that I cannot find the path where the files that I am using are getting stored. How do I find them?  I want to install an application through Ubuntu terminal and find its location in my laptop.  Does the Ubuntu application create a folder for storing the files in my computer? If I create a directory where is its location set?

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


Is there a hash function h(M + t1) = c1 that relates to h(M + t2) = c2 in a way that, knowing t1, t2, c1, c2, and with no knowledge of M, it can be verified whether both use the same M?

$M$ (not public) is hashed with a hash function $\text{H}$ that includes a variable $T_1$ (public), giving $C_1$ (public). The same $M$ (not public) is hashed with the same hash function with another variable $T_2$ (public), giving $C_2$ (public).  Knowing the variables, $C_2$ can be verified to be from the same data as $C_1$.  Is there a hash function $\text{H}(M + T_1) = C_1$ that relates to $\text{H}(M + T_2) = C_2$ in such a way that, knowing $T_1, T_2, C_1, C_2$, and with no knowledge of $M$, it can be verified whether both use the same $M$?


I lost my phone and I tracked it, but then suddenly I lost the location. Can the person make use of it if it is not screen locked? What other actions can he take with it.

Suppose you lost your iPhone or it was stolen and with your MobileMe subscription you have the choice of tracking it, locking it, displaying a message or remote wiping the phone. What would you do and in which order to maximize your chances to get it back?


Can I locate a shared object file within a remote repository inside my system's sources? For example, on my computer I can search: dpkg -S libgazebo_ros_gpu_laser.so  The query returns the name of the package containing the file, if the package is installed. Is there a way for me to search the system's remote sources and identify which package contains libgazebo_ros_gpu_laser.so so that I can install it with apt-get install afterwards?

Simple enough question: is there some shell command (or GUI method) I can use that, given the path to a file on my system, tells me what package put it there? Assuming the file did in fact come from a package, that is.  Bonus question: what if it's a file that isn't installed on my system? Is there, say, a website that will let me look up a file and see what packages, if any, provide it?


I just watched X-Men Apocalypse, and there's an awesome scene of quicksilver clearing everyone out of an exploding building, but I want to know why he isn't ripping people's skeletons right out of their skins when he moves them at such amazing velocities.    In the previous movie it was established that he held onto people's heads so they didn't get "whiplash" but that doesn't seem to explain how he can move a person faster than an explosion without them suffering other effects of extreme acceleration (such as death).  Does Quicksilver emit some sort of inertial dampening field when he touches people that enables them to survive moving quickly?

If Quicksilver can go that fast, if he didn't hold the person’s neck while running with them would his sudden burst of speed snap their neck? Or would they just have whiplash like in X-Men: Days Of Future Past?


I'm using Ubuntu 17.0.4.  The error code is :   Failed to open a session for the virtual machine windws 7.  VT-x is disabled in the BIOS for all CPU modes (VERR_VMX_MSR_ALL_VMX_DISABLED).  Result Code: NS_ERROR_FAILURE (0x80004005)  Component: ConsoleWrap  Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

So I am trying to run Ubuntu in a virtualbox but on installing 12.10 from the .iso I was greeted by a warning telling me that audio wouldn't work then I pressed next and this popped up:  Failed to open a session for the virtual machine Tux 3 VT-x features locked or unavailable in MSR (VERR_VMX_MSR_LOCKED_OR_DISABLED) Details  Result Code:  E_FAIL (0x80004005) Component:  Console Interface:  IConsole {db7ab4ca-2a3f-4183-9243-c1208da92392}   And then it doesn't work.  I assigned 4GB of my 8GB to Ubuntu, 100 dynamically allocated GB of space, and 12MB of graphics memory. I'm running an Asus p8z77 V LX mobo with an Intel i5 3550 processor.   Downloaded 12.04.2 on my PC and tried again. Still getting the same message.


I want to find in visual studio (C#) in WPF all the occurrences of the pattern:  Content="  and after the " I want to find only the occurrences that do not continue with {  for example:  I want to find: Content="This is a button"  I do not want to find: Content="{StaticResource ThisIsAButton}"  I am very bad at regular expression.  Any Idea ? Thanks

I don't really understand regular expressions.  Can you explain them to me in an easy-to-follow manner?  If there are any online tools or books, could you also link to them?


Problem with referencing when natbib is used (XeLaTex)  Thank you for your time. I am using a template from my institute to write my thesis. When I run the document, it compiles alright but fails to produce references. In the places where I use \cite{*}, only question marks show in those places. I have been trying and researching for the past 24hrs, but all no avail. Please help solve this problem. While compiling, I see the following warnings:   Package caption Warning: Unsupported document class (or package) detected, usage of the caption package is not recommended.See the caption package documentation for explanation. Package natbib Warning: Citation `mcintyre1952method' on page 1 undefined on input line 5, line 7, etc.   I am using TeXworks 2.9. The structure of my document looks like this:  \documentclass[msc]{fbe} %withcoadvisor,coadvisorsigne   \RequirePackage{fontspec}   \fontspec{Times New Roman}%Times New Roman   \setmainfont{Times New Roman}%Comic Sans MS   \usepackage{graphicx}  \usepackage{enumerate} %for different forms of enumeration   \DeclareMathOperator*{\argmax}{arg\,max}   \DeclareMathOperator*{\argmin}{arg\,min}   \usepackage{algorithm} %for designing algorithm   \usepackage[noend]{algpseudocode} %algorithm related   \usepackage{booktabs} %for toprule, midrule etc.   \usepackage[caption=false]{subfig}>   \newtheorem{theorem}{Theorem}[section]   \newtheorem{definition}[theorem]{Definition}   \newtheorem{lemma}[theorem]{Lemma}      % #########################################   % ###    Use XeLaTeX     ###   % #########################################    % DON'T use inputenc package !!!   % amsmath, amsfonts, amssymb, setspace packages have beeen used. DON'T ADD!   % natbib ve caption packages have beeen used. DON'T ADD!    \begin{document}    ....   \startbibliography       \bibliographystyle{plain}       \bibliography{mybib}   ....   \end{document}    Thank you in advance.

I've browsed the forums and found a number of posts that have addressed this issue, but none of the solutions seem to work for me. I have the following script that I just copied from the bibtex home page to get familiar with it. Instead of the citation number I get a question mark. I compile using Latex+Bibtex+Latex+Latex+PDFLatex+ViewPDF just as has been previously suggested and the problem persists.   \documentclass[11pt]{article} \usepackage{cite}  \begin{document}  \title{My Article} \author{Nobody Jr.} \date{Today} \maketitle  Blablabla said Nobody ~\cite{Nobody06}.  \bibliography{mybib} \bibliographystyle{plain} \end{document}   My bibliography (Bib.bbl)  @misc{ Nobody06, author = "Nobody Jr", title = "My Article", year = "2006" }    Looking at previous posts one thing that is concerning is that my .bbl looks empty as shown below. Further, I don't have a .blg  \begin{thebibliography}{}  \end{thebibliography}


I have two layers (polygon type) and i want to erase the red polygon from the pale blue polygon, so i will get another polygon just without the red polygon feature.  I'm work with desktop license, so i can't use the "Erase" tool. I need ArcGIS solution. (I can do it in QGIS).

I have two polygon layers, one is green that represents all non-public right-of-way land. I have another polygon that is just a circle with a specified radius.  I would like my output to be a polygon layer that represents all the white space (the gaps) in the private land polygon layer that is also within the black circle.    How does one do this (In ArcGIS 10.2)?


What is the intuition and where should I find proof of this equation (do not know what its name is). It is used to derive Gauss law from Newton equation. $${\nabla \cdot \Bigg ( \frac{\vec{s}}{|\vec{s}|^3}\Bigg)=4\pi \delta^3 (\vec{s})}$$

Let us define the magnetic field $$\vec{B} = g\frac{\vec{r}}{r^3}$$ for some constant $g$. How can we show that the divergence of this field correspond to the charge distribution of a single magnetic pole (monopole)?  EDIT:  If I calculate the divergence I get $$ \begin{align} \nabla\cdot\vec{B} &= \nabla\cdot\left(g\frac{\vec{r}}{r^3}\right) \\ &= g\left(\nabla\frac{1}{r^3}\right)\cdot\vec{r}+\frac{g}{r^3}\left(\nabla\cdot\vec{r}\right)\\ &=g\left(-3\frac{\vec{r}}{r^5}\right)\cdot\vec{r}+\frac{g}{r^3}(1+1+1)\\ &=-3g\frac{1}{r^3}+3g\frac{1}{r^3}\\ &= 0 \end{align} $$ which contradicts that there is a sink or source of magnetic flux.


I get this error  ArrayStack.java uses unchecked Recompile with -Xint:unchecked for details   Is there any error with this line  S= (T[])(new Object [N]) ;

Due to the implementation of Java generics, you can't have code like this:   public class GenSet<E> {     private E a[];      public GenSet() {         a = new E[INITIAL_ARRAY_LENGTH]; // error: generic array creation     } }   How can I implement this while maintaining type safety?  I saw a solution on the Java forums that goes like this:  import java.lang.reflect.Array;  class Stack<T> {     public Stack(Class<T> clazz, int capacity) {         array = (T[])Array.newInstance(clazz, capacity);     }      private final T[] array; }   But I really don't get what's going on.


I've implemented a sample spring boot application with vaadin-flow. I implemented an in-memory authorization with two roles (User, Admin). When login at the first time the system ask for the credentials as expected. I requested "/my/logout" url to logout, After that I can still access restricted content without providing the user credentials (user login is not prompted).  Following is my web security config  http.csrf().disable().             authorizeRequests()             .anyRequest().authenticated()             .antMatchers("/VAADIN/**", "/PUSH/**", "/UIDL/**", "/login", "/login/**", "/error/**", "/accessDenied/**", "/vaadinServlet/**").permitAll()             .and().httpBasic()             .and().logout().logoutUrl("/my/logout")             .permitAll();

Is it possible to log out user from a web site if he is using basic authentication?  Killing session is not enough, since, once user is authenticated, each request contains login info, so user is automatically logged in next time he/she access the site using the same credentials.  The only solution so far is to close browser, but that's not acceptable from the usability standpoint.


If say you created a sphere (A), and moved its vertices around. Could you create another sphere (B), same as the original, and have B match its vertices with the altered vertices of A?  If this is possible, how would you do it?

I have alot (like 50) duplicated meshes. i used SHIFT-D to duplicate the objects ,but then read that ALT-D saves memory. is there a way to link the mesh data (like using ALT-D) after i have used the wrong duplicate? attempting to go back and use ALT-D would take a long time.  The meshes i duplicated are all the same shape and size and only have different rotations.


I have an issue with my Sony Vaio SVE15128CXS laptop. Only when I choose to suspend it in the top right hand corner, or close the laptop to make it suspend, my keyboard stops working after resume.   I can only use the screen keyboard to login and after that, I have to save my work and restart the computer to use it normally.  It does not happen if I leave the computer on and it goes to sleep mode by itself.  How can I solve this issue?

On a Sony Vaio VGN CS21S the keyboard doesn´t work after suspend to ram. Suspend to disk (hibernate) works though. Running a fresh install of Natty with Unity.


I had a friendly argument with my friend, and it turns out he's correct. I still don't know why I'm wrong though (haha).   Question: You are holding a bottle of soda in a car moving forward. The bubbles move upwards. Then the driver hits the breaks. Will the bubbles in the soda move forward or backwards with respect to the bottle initially?   Somehow, my answer is that the bubbles move forward with respect to the bottle, since if you just apply the breaks, the bubbles still don't feel the negative acceleration and still move upwards. Since the bottle does feel this acceleration, the bottle should accelerate in the negative direction, with the bubbles still moving upwards (and forward w.r.t the bottle).   Can someone explain why I'm wrong?

I noticed that when I had a helium filled, latex balloon inside of my car, it moved forward in the cabin as I accelerated forward. The faster I accelerated forward, the faster the balloon went from the back of the car to the front of the car. The balloon didn't have a string.  This became a game with my 4 year old as we drove home. We figured out where the balloon would go based on how fast I accelerated, turned corners etc.  I expected that it would act a lot like the water in a cup does, but it was the total opposite it seemed.  What forces caused this behavior?  I assumed it has something to do with the fluid dynamics in the closed cabin, but I can't figure it out.


could any one tell me how to calculate surfaces area of a sphere using elementary mathematical knowledge? I am in Undergraduate second year doing calculus 2. I know its $4\pi r^2$ if the sphere is of radius $r$, I also want to know what is the area of unit square on a sphere.

When we were in school they told us that the Surface Area of a sphere = $4\pi r^2$  Now, when I try to derive it using only high school level mathematics, I am unable to do so. Please help.


I'd like to ask if some variation of spacing in between words is normal? In some cases it seems to me that after a full stop and the next words there is a larger space than usual.   The pictures hopefully shows what I mean. The space is before "Another finding..."  I'm seeing this in various locations throughout the document. Is there an explanation for this behaviour?

Does latex do anything special with periods?  If so, is there a way to differentiate end-of-sentence periods from periods indicating abbreviation?


Is $\sum_{p\text{ is a prime}}\frac{1}{p^{2}}$ known to be irrational/transcendental? The sum exists, because $\sum_{p\text{ is a prime}}\frac{1}{p^{2}}\leq\sum_{n=1}^{\infty}\frac{1}{n^{2}}=\frac{\pi^{2}}{6}$.

Is $\sum_\limits{p}^{\infty}\frac{1}{p^{2}}$ irrational where p is prime? How to prove it?


The Lorentz transformation is a mapping of the $x', y', z',$ and $t'$ coordinates relative to $x, y, z, t$ that preserves the speed of light:  (1) $x^2 + y^2 + z^2 - c^2t^2 = x'^2 + y'^2 + z'^2 - c^2t'^2 = 0$  If $K'$ is moving with speed $v$ in the $x$ direction relative to $K$ (so that $K$ is moving with speed $-v$ in the $x$ direction relative to $K'$), and we use the Galilean transformation, we get an erroneous  (2) $x'^2 + y'^2 + z'^2 - c^2t'^2 = -2vxt + v^2t^2$  which is NOT equal to zero, and hence does not describe a sphere of radius $ct$ emanating from the origin of $K'$, but something else (I'm pretty sure it's a sphere that's been shifted negatively in the $x$ direction by a small amount, relative to $K'$). The Lorentz transformation says we modify both the $x' = x - vt$ and the $t' = t$ relationships in order to ensure that we end up getting 0.  However, as a naive mathematician, I look at equation (2) and think, "Ok, so we've got to modify the rule for $x'$, or $t'$, or both, to get rid of that nasty $-2xvt + v^2t^2$ term in the $x'$ rule. Why not just set $t'$ up so that instead of coming out to $-c^2t^2$, it actually comes out to $-c^2t^2 + 2vxt - v^2t^2$, so that the extra terms cancel out?" I naively went ahead with this idea and I got the following coordinate transformation:  $$ x' = x - vt\\ y' = y\\ z' = z\\ t' = \frac{1}{c} \sqrt{(v^2 + c^2)t^2 - 2vxt} $$  If you plug this into (1), you get 0 like you're supposed to.  Now, I haven't been able to find an explanation as to why this transformation is unsatisfactory. Of course, it's no longer linear - but is there some basic reason why the transformation must be linear? Obviously this transformation satisfies Einstein's postulate about the constancy of the speed of light for all inertial observers.  Presumably, then, it must violate the first postulate, regarding the equivalence of all physical phenomena for inertial observers - otherwise we'd need more information in order to derive the Lorentz transformation, which I think is supposed to be derivable from the two postulates alone.  So, in the end, I have one question I'm trying to answer:   Does this transformation violate equivalence for inertial observers? Why? (ideally, someone could give me an example of a force that suddenly appears in my coordinate system that didn't already exist in the other coordinate system)

In almost all proofs I've seen of the Lorentz transformations one starts on the assumption that the required transformations are linear. I'm wondering if there is a way to prove the linearity:  Prove that any spacetime transformation $\left(y^0,y^1,y^2,y^3\right)\leftrightarrow \left(x^0,x^1,x^2,x^3\right)$ that preserves intervals, that is, such that  $$\left(dy^0\right)^2-\left(dy^1\right)^2-\left(dy^2\right)^2-\left(dy^3\right)^2=\left(dx^0\right)^2-\left(dx^1\right)^2-\left(dx^2\right)^2-\left(dx^3\right)^2$$  is linear (assuming that the origins of both coordinates coincide). That is, show that $\frac{\partial y^i}{\partial x^j}=L_j^i$ is constant throughout spacetime (that is, show that $\frac{\partial L_j^i}{\partial x^k}=0$).  Thus far all I've been able to prove is that $g_{ij}L_p^iL_q^j=g_{pq}$ (where $g_{ij}$ is the metric tensor of special relativity) and that $\frac{\partial L_j^i}{\partial x^k}=\frac{\partial L_k^i}{\partial x^j}$. Any further ideas?


How to start sh file in one line command ? This is how I normally start sh file in the specific path  user@user:~$ cd idea-IC-171.4424.56/bin user@user:~/idea-IC-171.4424.56/bin$ ./idea.sh    If I would like to start the command in one line like below, I will get error  user@user:~/idea-IC-171.4424.56/bin$ cd idea-IC-171.4424.56/bin/idea.sh bash: cd: idea-IC-171.4424.56/bin/idea.sh: No such file or directory

I could (1) prepare a file with typed commands separated by end-line, (2) make it executable, (3) run it from a file-system manager or the terminal.  But this is ridiculous for not repeatable and every-time-other sets of commands.  Can I type those commands to the terminal in one request instead?  I don't know end-line character for the terminal - Ctrl, Shift or Alt with Enter doesn't work.


I am new to TestNG and I was trying my first test case with it. It`s a simple case to print a statement, but everytime I am getting java.lang.NullPointerException as you can see in attached image.  Help me out.

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


I've had a secondhand iPhone for three years, using it with my iCloud account. Just now I tried to wipe it with an iTunes restore. The first step was to disable Find My iPhone. Doing so, I received a confirmation email that the phone is now unlocked. To my surprise, upon reset, it went into activation lock mode and asked for the previous owner's login.  The phone is listed in my iCloud Settings. Should I try to track down the previous owner, or will removing it from my own iCloud Settings page free it? (But removing it will also wipe the last evidence that the phone is mine.)  Another way of looking at the question: Can a single phone be listed in several iCloud accounts?

I bought a used iPhone 4.  The previous owner re-set the phone, but did not remove the device from their iCloud.  It is asking me for their iCloud information when I try to set-up the phone.  I don't have contact with the previous owner anymore.  Is there a way to remove the device from their iCloud so I can use a new one?


Are there any links for cyanogenmod 11 for moto g android 4.4.4? If there are then please suggest me the one which is stable,equipped with the theme engine and is under 100mb.

There are several reasons to be looking for a ROM:   Upgrading or downgrading your stock ROM Looking for firmware from a different region/language Flashing a custom ROM for different features, removing bloat, etc.   But where can one find ROMs in the first place?  What sites are likely to have the ROM I need?  ; please add to the wiki answer instead of posting separate answers.  See also:


This is a question on the text book that i have no way to deal with. Can anyone help me?  Show that there exist infinitely many primes of the form $6k-1$

my question is about number theory,about prime numbers:  here is the question:  prove that there exists infinitely many prime numbers  of the form 4k+1 and also of the form 4k+3  and also of the form 6k+5


I just learned that $\text{sen}\,x$ is the Portuguese notation for $\sin x$, and I was inspired to ask:  What differences are there in how mathematics is written around the world?  Note 1: I am likely going to be moving away from home in the upcoming years, so it would be personally nice for me to be aware of some differences in mathematical notation across different countries.  Note 2: I am aware that  has an almost identical title, but it was only given one answer that would be new to some people (the accepted answer) and I am sure there must be many more differences than that.

What are the differences in mathematical notation around the world? I know that in some other countries they write 1,2 meaning 1.2, but what else can be confusing in an academic environment (when people are doing math on a board or on paper).


I am trying to "squeeze" a gameObject. When distance starts to be 6.98, execute this code: "The smaller the distance between gameObject1 and gameObject2, the thinner and longer this gameObject is". Somehow, this code has no effect. Why?  public Transform gameObject1; public Transform gameObject2;  void Update () {     float distance_squeeze = Vector3.Distance(gameObject1.position,                                                gameObject2.position);         if(distance_squeeze < 6.98F)     {         transform.localScale = new Vector3(-distance_squeeze, distance_squeeze, 1);     }    }

I am trying to "squeeze" a game object when it's pressed between two other objects (e.g., "squeezer 1" and "squeezer 2," below) that continue to move towards eachother.  I wish to reduce width of the object so that total area of the game object is maintained while still being between the two squeezers.            How can I achieve this effect?


I’m using Ubuntu 18.04 LTS with 3 hard drive partitions.  I installed Samba and shared a folder in the network from the second partition, worked fine but after reboot, I cannot access that folder from the network. I have to mount and share every time I reboot.  I first installed Samba and gave all the necessary permissions by following the installation steps.

I am a little confused on the proper fstab entry for a samba share in Ubuntu 12.04     I can get the drive to mount manually by using:  sudo mount -t cifs //192.168.2.2/raid_drive /mnt/homeserver -o username=jon,password=password  So I tried putting this in fstab:  //192.168.2.2/raid_drive /mnt/homeserver cifs username=jon,password=password,iocharset=utf8,mode=0777,dir_mode=0777 0 0  Which gives me this error in syslog:  kernel: [ 2217.925354] CIFS: Unknown mount option mode kernel: [ 2217.936345] CIFS VFS: default security mechanism requested.  The default security mechanism will be upgraded from ntlm to ntlmv2 in kernel release 3.3  This  says to use smbfs although I believe smbfs is deprecated?   What is a common fstab configuration for a samba share in Ubuntu 12.04?   EDIT:  Using the accepted answer below I was initially getting this error message (from dmesg):  [   45.520883] CIFS VFS: Error connecting to socket. Aborting operation [   45.520990] CIFS VFS: cifs_mount failed w/return code = -115   although it turns out this was due to network connectivity issues, and not related to improper fstab entry.


We know that characters in HP world become ghosts after their deaths if they were scared of death and they have chosen to die.      "I was afraid of death. I chose to remain behind. I sometimes wonder   whether I oughtn't to have… well, that is neither here nor there ...   in fact, I am neither here nor there ... I know nothing of the secrets   of death, Harry, for I chose my feeble imitation of life instead." --   Harry Potter and the Order of the Phoenix, p. 861   This seems to be the case of       Peter Pettigrew   he obviously doesn't want to die, he is scared (at the moment of his death as well as his whole life). He was a rat all his life, I would guess he would be a rat in this decision.    So did he became a ghost? If not, why?

In the wizarding world, it's possible to come back as a ghost, and remain in the world we know. Since ghosts are rare, it can be deduced that most people wouldn't choose to become one, but some of the Death Eaters might have feared death enough to consider it. In addition, the Death Eaters who died all died before the Dark Lord himself did, so why didn't the more devoted ones decide to come back to help him?


On my site, users have several single-value boolean checkboxes as part of their profiles.  In various places on the site, I want to let users toggle one of these fields on or off without going to the user edit page.  I'm using Panels, so I'd like to somehow embed a way to edit just the value of a single field into a given page/panel.  What I tried:   Use the Field Permissions module to block access to the field. Create a flag with the Flag module. Let users flag or unflag themselves. Make rules with the Rules module to set the value of the field based on the user flag.   This works, but it's very cumbersome to set up and tricky to maintain.  It also prevents users from editing the value on the user edit page; they have to use the flag instead.  So I'm wondering if there is a more straightforward way to do what I want.  This is similar to , but that question is about modifying the user account page.

So here is my situation: users on my site have to fill out  a rather large number of fields upon registration.  However, after they register, only four (out of about twenty) of these fields need to be changed regularly.  I would like to create a separate "edit" page to allow users to modify just these four fields to keep things simple.   field_checkbox_a field_checkbox_b field_checkbox_c field_checkbox_d   These fields are all contained in a field group, so ideally the page would show this field group, the four checkboxes inside it, and then have a submit and cancel button, that's it.  I want to do this as a separate page, not in-place editing like the  module.  Users still need to be able to access the original edit account page to change their timezone, e-mail address, etc. but I could really use a separate screen to allow them to edit the most common account options.


I'm coding HTML in Notepad++. I want to Indent a block of code. I dislike the tab indentation and want to use 2 spaces instead. How can I add 2 spaces before a block of selected text/code?

How do I convert tabs to spaces in Notepad++?   I found  that suggests it's possible, but I couldn't find any information about how to do it.   I would like to be able to do that, because some web forms don't respect code with tabs in them.


Which is it? Personal preference, I dislike 'learnt', but it's correct in UK English usage - is that right?

Is learnt UK English and learned US? Is it that simple?  I’m used to using learnt, but my US spellchecker says it is wrong.


I am Pakistani and I have a flight from Cyprus, via Toronto, to Trinidad. Do I need a visa for connecting my flight from Toronto?

I'm passing through Canada, on my way to somewhere else. I'm staying only a short time.   Is there a website, or some other way of find out out if I need a visa?


[Edit] Not sure why this was closed. The answers there do not answer my question, and are not even correct...  Imagine a charge sitting in space. It causes an electric field everywhere, with magnitude $\propto r_{old}^{-2}$ But now let's say we move the charge a little.   This will change the electric field everywhere to be $\propto r_{new}^{-2}$.  However, according to Maxwell's other equations (I'm told), this propagation is not instant, but happens with a finite speed $c$. Let's draw a box that intersects the boundary of this wavefront.  One end of the box will be have electric field vectors with magnitude $\propto r_{old}^{-2}$,  while the other end will be $\propto r_{new}^{-2}$.  These are not equal, so $\nabla \cdot E \neq 0$.  But since there's no charge in the box, this should be impossible according to Gauss's law! What's going on?

Let's say we have a cube of side length $a$ as a Gaussian surface in an electric field (in vacuum) and then we raise the strength of the electric field. As I understand, this rise in the field strength would travel through the field at the speed of light. This means that for a duration of $\frac{a}{c}$, the field strength, and thus the flux, would differ at the 2 opposing faces of the cube. This implies that the flux through the surface is non-zero and thus the charge inside it must also be non-zero by Gauss' Law. How is this possible?


So i am trying to dual boot Ubuntu to my system. I download the latest desktop version, use rufus to get it on a usb and choose to boot from the usb in bios. The ubuntu menu appears and when i choose "install ubuntu" the screens go black and after a bit they go sleep mode. The pc is still running but is unresponsive. I tried with another usb aswell as another version of the os and nothing changed. Any thoughts? Thanks in advance.

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


I try to change font familly in my tcolorbox to have similar font than the font for source code in stackoverflow, without success.   The height of line is also not correct, there is a difference between line with box and line without box, is there a way to define automatically the correct height of the box to eliminate this effect ?    The code for box is      \makeatletter     \newtcbox{\keywordmin}{on line, fontupper=\scriptsize\texttt, boxrule=0.5pt,arc=2pt,coltext=tangoBlack1,colback=tangoGrey1,colframe=tangoGrey1,boxsep=0pt,left=2pt,right=2pt,top=2pt,bottom=2pt}     \makeatother   Here the complete MWE   % !TEX encoding =  UTF-8 Unicode % -*- program: xelatex -*- \documentclass[a4paper, 11pt,twoside, openright]{memoir} \usepackage{mwe} % just for dummy images \usepackage{amssymb} \usepackage{amsmath,mathtools} \usepackage{amstext}    % defines the \text command, needed here \usepackage{array} \usepackage{tcolorbox}   \definecolor{tangoBlack1}{RGB}{0,0,0} \definecolor{tangoGrey1}{RGB}{136,138,133}  \usepackage{sepfootnotes} \newfootnotes{A}  \footmarkstyle{[#1]~} \setlength{\footmarkwidth}{-1sp} \setlength{\footmarksep}{0pt} \setlength{\footparindent}{0pt} \renewcommand{\foottextfont}{\scriptsize\raggedright}  \makeatletter \newtcbox{\keywordmin}{on line, fontupper=\scriptsize\texttt, boxrule=0.5pt,arc=2pt,coltext=tangoBlack1,colback=tangoGrey1,colframe=tangoGrey1,boxsep=0pt,left=2pt,right=2pt,top=2pt,bottom=2pt} \makeatother  \begin{document}  \Anotecontent{code_note}{This is a technical note with \keywordmin{Code} tag used to describe \keywordmin{keyword} in source code. This is a technical note with \keywordmin{Code} tag used to describe \keywordmin{keyword} in source code. I want to add some blablabla on the same line..I want to add some blablabla on the same line..I want to add some blablabla on the same line..I want to add some blablabla on the same line..  I want to add some blablabla on the same line..I want to add some blablabla on the same line.. }  This is a message which need a footnotes \Anote{code_note}.  \end{document}   Update 1 :   I upgrade the question using first answer based on @harish-kumar answer and answer of this  to better explain my need.  If i augment the size of extrude (like extrude by=3pt or extrude by=4pt) to construct a more fancy box, the extrud "eat" other word around. Is there a way with tcolorbox to maintain a correct space (1pt) betwen colored box and the word around ?

I want to put some small boxes around certain words in a paragraph. The boxes will never contain more than one word.  The \ovalbox command described in the fancybox documentation is close to what I need. However, I found some problems:   The rounded corners do not line up with the sides perfectly. Text to the left and right in the paragraph are pushed away. The spacing between lines in the paragraph is increased vertically.   I would like to create boxes which:   Adjust horizontally to fit the width of the text inside. Have rounded or beveled corners. Can be filled with a solid color. Will not cause any text inside or around the box to move. Will not impact the vertical spacing of lines.


Here is my code:  $(".cbtn").click(function(e) {     alert("here");     var id = $(this).attr('id');     var comment = $('input[id$=id]').val();          alert("hay" + id);     alert(comment);      $.post("comments.php", {         id: id,          comment: comment     }) }); });   The id of cbtn and the text field is created dynamically like this:    <input type="text" class="enter_comment  value="comments" id="comm<?php echo $row['p_id'];?>"/> <input type="button" value="enter" class="cbtn" id="<?php echo $row['p_id'];>">   When cbtn is clicked, I want to get the id of text field that ends with the same id as cbtn. But it is returning undefined instead.

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


We know that when a quadratic equation $ ax^2 + bx + c = 0 $ has zero discriminant value, then the quadratic equation has only "one root". But why do some mathematician call it "double root" and also that the equation still has two roots, but their roots are double. When we draw the equation in the coordinate plane, we can see that the graph of the equation will just touch the $ x $-axis at only one point. The second question is: We know that the sum of the roots of a quadratic equation $ ax^2 + bx + c = 0 $ is $ -\dfrac{b}{a} $. But when the discriminant of that equation is zero, the sum is also $ -\dfrac{b}{a} $. It doesn't make sense. For example, if we have quadratic equation $ x^2 + 4x + 4 = 0 $, we can factor it as $ \left(x + 2\right)^2 = 0 $ and so $ x = -2 $. Thus, the sum is just $ -2 $. But with "sum of the roots" formula, the sum is $ -4 $. Which one is correct? Is this the reason we call it double root? Thanks in advance :)

According to the definition on , a multiple  is a root with  $n\geq 2$. For example, in the equation $(x-1)^2 = 0$, $1$ it the multiple (double) root.  Question: Why is $x = 1$ the multiple root of $(x-1)^2 = 0$?  What does multiplicity mean in this case? According to Wolfram multiplicity is the number of values for which a condition holds, or the number of times for which a polynomial equation has a root at a given point. In what way does the polynomial $x^2 - 2x + 1 = 0$ have multiple roots?


So I had an exam today and one of the questions were: Give an example of a function $f$ which is nowhere continuous but $|f|$ should be continuous at all points. At first I had no idea how to do it then I came up with this, even though I know it's wrong:  $$f(x)= \begin {cases} \ \sqrt{x}&\text{if }x <0\\ \sqrt{-x}\ &\text{if }x > 0\\ \end {cases}$$  Like I said I know it's wrong..but can someone give me an example of this? Thanks.

Which function ($f$) is continuous nowhere but $|f(x)|$ is continuous everywhere?   I found this question , the question seems much interesting but for obvious reason it is closed there, I was wondering how to derive such a function?


$regex = "/<[^>]+>\s(.*)\s+(?=<[^>]+pt10 pb5">)/i";  $str = "
          Quick and delicious appetizer with mince and bread for your feast menu. You can serve these mouth watering strips as a snack with noon tea.
";   tested on regex101 and regexr and working fine on both but not with php functions and I also tried to find any character that I need to escape but not found anything.  thanx in advance for help

For example, this regex  (.*)<FooBar>   will match:  abcde<FooBar>   But how do I get it to match across multiple lines?  abcde fghij<FooBar>


"I wish my father were having the stuff" or "I wish my father was having the stuff" ..  "And what if I wish my father having the stuff", is that bring different time definition? Thank you..

If I was... If I were...   When is it correct to use "If I was" vs. "If I were" in standard English?


This is a simple question. I'm trying to enter code on Stack Overflow so I can ask people questions about my site. Stack Overflow says I have to indent or something to show my code. I've tried pressing the Ctrl+K command, and it does give me a "insert code here" but when I put the code between the " " it still gives me an error saying I can not post my code. This is becoming very frustrating being that I can't ask any questions on this site because the first thing people want is code, and without that my posts are just ignored.

How do I post text so that it is formatted as code?  What do I need to do so that my code shows up properly — not escaped or removed — when posted? And how to get the correct syntax highlighting?     For more information, see "" in the .


I'm interested in removing one object's geometry from another. I should be able to do this with a boolean modifier on the larger object (the "car") targeting another object (the "window"). I would then like the window not to show when rendering. I expected to find this option in the outliner view (based on ), but maybe this has changed in blender 2.80? In the outliner window, I see the "Hide in Viewport" option, but where is the option to hide it in the final render?

The selection toggle arrows in the Outliner disappeared. Is there some preference in the settings that has to be turned on?


For some badges there are no year mark in the profile page, e.g.:        It's expected for the current year dates, but they are not.  Answer from the  says:     Badges only show the year in the date earned if it was over a year ago.   In my case the date Feb 9 '17 was less than one year ago, so there should be no year, but it's here. Probably my question should be rephrased in terms of "why I see a year mark if date was less than one year ago". Answer on possible duplicate is probably wrong then.

Checking my badges on SO I noticed that the information about my badges is not complete. For example, there is no information about the year when a current badge was earned.


While the tutorials say you can customise the size of tiles in Windows 8, this is not possible with the Internet Explorer tile. Because this is the tile I most often use I want it to be large, but the tile only has options for small or medium sizes.  Is there any way to make the IE tile large?

With right click on every tile I have the option to make it larger or smaller, except the IE 10 tile - it is always small (at least on my PC), and the right click doesn't show such an option.


When I mentioned to friends I had recently been to Benalmadena in Spain, I was corrected on its pronunciation. I had chosen to pronounce it in an English way rather than in a Spanish pronunciation. After all, I wouldn't say Paris how a Frenchman would say it.  If I use the native pronunciation of a foreign city I might look pretentious. If on the other hand I use the English pronunciation, I might then get corrected with the alternative.  Which is the correct convention please?  Many thanks.

When reading to an audience, or speaking in conversation, when is it appropriate to use the original pronunciation of a foreign word versus the English pronunciation (assuming you know the appropriate pronunciation for it)? Is it considered rude, or condescending? Or is it considered a mark of being knowledgeable?  One of the things to consider are place names. When referring to Paris, France, should it be pronounced with the silent 'S' as the French would say it, or with the 'S'? Should Hiroshima be pronounced as a Japanese speaker would pronounce it slightly more emphasis on RO, rather than the SHI? Should Mount Pinatubo be pronounced as a Filipino speaker would pronounce it with shorter stronger vowels, or the longer vowels? (e.g. Pi as is 'pick' rather than 'pea'.) Should Wichita be pronounces as the original "shi" rather than the modern "chi"?  Pronounce pesos or sombrero as a Spanish speaker 'eh' or the English 'ay'?  (I can't think of other common words right now that aren't words taken from other languages like hurricane, boondocks, tornado, etc. which I think have (correctly) changed to English pronunciations.)


$$ \int \frac{x^2 + x}{(e^x + x +1)^2}dx $$   I cant think of any substitution to start this question.

Evaluate $$\int \frac{x^2+x}{(e^x+x+1)^2}dx$$    I tried converting in the form of Quotient rule(seeing the square in the denominator), neither am I able to make the denominators' derivative in the numerator. Some hints would be great. Thanks.


Prove $$\sum_{n=1}^{\infty} \frac{\frac{\pi}{2}-\text{Si}(n \pi)}{n}=\frac{\pi}{2}\left(1-\ln{\pi}\right)$$ Where Si(x) is the sine integral function.  This is where I'm stuck on the original question $$\int\limits_{\pi }^{+\infty }{\frac{\sin x}{x}dx}+\frac{1}{2}\int\limits_{2\pi }^{+\infty }{\frac{\sin x}{x}dx}+\frac{1}{3}\int\limits_{3\pi }^{+\infty }{\frac{\sin x}{x}dx+...}$$ I am really not sure what to do for the sum!  Maybe there is a better approach than evaluating the sum I have here.  Any help please.

I was asked to evaluate the following sum: $$\sum_{k=1}^{\infty}\frac{1}{k}\int_{\pi k}^{\infty}\frac{\sin(x)}{x}dx$$  I'm trying to use $$\int_{0}^{\infty} \frac{\sin(x)}{x}dx=\frac{\pi}{2}$$ However, it doesn't seem to work. Any help is greatly appreciated.


When I opened System Monitor for the first time just after installing, it only showed three or four records, now after a week it shows a bunch of them, some 100% full. What does that mean?

I just realized using gnome-disk-utility (3.18.3.1) that my 16.04 installation is featuring several small loop devices.  In detail:   78 MB Loop Device (/var/lib/snapd/sn_ntu-core_352.snap -> /dev/loop0) 76 MB Loop Device (/var/lib/snapd/sn_ntu-core_216.snap -> /dev/loop1) 79 MB Loop Device (/var/lib/snapd/sn_ntu-core_423.snap -> /dev/loop2) 705 KB Loop Device (/var/lib/snapd/snaps/tpad_12.snap -> /dev/loop3) 684 KB Loop Device (/var/lib/snapd/snaps/tpad_11.snap -> /dev/loop5) 705 KB Loop Device (/var/lib/snapd/snaps/tpad_13.snap -> /dev/loop6)   Image showing gnome-disk-utility    My questions are as follows:   What are those loop devices used for? Is that an expected behaviour in 16.04? Can  I remove them? And if so - how (just by unmounting)? Is there any risk in removing the 2 installed snaps mentioned below (tpad and ubuntu-core)   UPDATE  Installed snaps  According to snap list I do have   tpad (1.8.1) ubuntu-core (16.04.1)   installed. I remember I did tinker with snaps for a short time when  I realized this option - but am pretty unsure if  I  installed those 2 snaps - or if they are pre-/auto-installed.  tpad is a Terminal text editor with GUI-like user interface  I  did install manually, as  I don't use it  I removed it now via sudo snap remove tpad. As a result the 2 loop devices pointing to tpad are gone in gnome-disk-utility.  So - at the current point  I am still having 1 snap installed called ubuntu-core and I don't know what it is used for. The summary of this particular snap is   The ubuntu-core OS snap


So I just fresh installed 18.04.1 server from this ISO: ubuntu-18.04.1-live-server-amd64.iso  This is how my /etc/apt/sources.list looks:  svy@emerg-reg-srv:~$ cat /etc/apt/sources.list deb http://archive.ubuntu.com/ubuntu bionic main deb http://archive.ubuntu.com/ubuntu bionic-security main deb http://archive.ubuntu.com/ubuntu bionic-updates main svy@emerg-reg-srv:~$    It's missing universe and multiverse, all src ones. I can't even install mc. So what's going on here? Did something break during installation?

How do I get to the Universe Repository in supported versions of Ubuntu?


I'm trying to find a way to represent $\sum_{n=1}^\infty n^2$ as a partial sum. I know that every term in this series can be represented, for example when $n=5$, as $5^2+4^2+3^2+2^2+1^2$. I know that $1+2+3+4...$ can be represented as $\frac{n(n+1)}{2}$ but I can't figure out how to add the squared terms to each number.

I am just starting into calculus and I have a question about the following statement I encountered while learning about definite integrals:  $$\sum_{k=1}^n k^2 = \frac{n(n+1)(2n+1)}{6}$$  I really have no idea why this statement is true. Can someone please explain why this is true and if possible show how to arrive at one given the other?


hi I have this codes in HTML

   .box have 10 line inner text  the CSS of .box is  .box{     width:200px;     height: initial;     overflow: auto;     min-height: 20px; }   I want to get height of .box , I use this  $('.box').css('height');    but giv me 0px  the up codes are the sample for you better understand  the real codes of my element

this is a p tag

   css   .proSliderText{     position: absolute;     top:50%;     left:50%;     margin-left:-15%;     min-height: 40px;     margin-top: -40px;     width:20%;     font-size: 4vw;     height: initial; }   parent tag CSS       .proSlider li{     list-style-type: none;     position: absolute;     top:0;     left:0;     background-size: cover;     background-position: center;     background-repeat: no-repeat; }

How do you get the rendered height of an element?  Let's say you have a <div> element with some content inside. This content inside is going to stretch the height of the <div>. How do you get the "rendered" height when you haven't explicitly set the height. Obviously, I tried:    var h = document.getElementById('someDiv').style.height;   Is there a trick for doing this? I am using jQuery if that helps.


I am flying BA from Dublin to LHR then Qatar Airlines from LHR to Doha and Kilimanjaro.  Will I be able to check my luggage through from Dublin to Kilimanjaro?

I will be flying from Aberdeen (Scotland) to London Heathrow on one ticket with British Airways. I have a second separate ticket for a flight with Qatar airways from London Heathrow to Doha and with Qatar again from Doha to Perth in Australia. There are 1-3/4 hours between flights in Heathrow.  Q1. Will I be able to check my baggage all the way through from Aberdeen to Doha & Perth, or will I have to collect it in Heathrow and check it in with Qatar airways?  Q2. Does it make any difference whether I have the two separate tickets versus one ticket?  Q3. Can I get all my boarding passes issued at Aberdeen or will I need to get the Qatar airways boarding passes at the flight connections centre in LHR?  Both airlines are in the OneWorld alliance so I'm presuming they can check it all the way through?


i want to number the equation without the number 2 in the image please   \begin{equation}\label{N} (Nu)(x,y)=\mu(x,y)+\frac{1}{\Gamma(r_1)\cdot\Gamma(r_2)}\displaystyle{\int_{1}^{x}}\displaystyle{\int_{1}^{y}} \left(\log\frac{x}{s} \right)^{r_1-1}\left(\log\frac{y}{s} \right)^{r_2-1}\frac{f(s,t,u(s,t))}{st}dtds  \end{equation}

\documentclass[]{phstyle} \usepackage{latexsym,amsfonts,amssymb, undertilde} \usepackage[fleqn]{amsmath} \usepackage{makeidx}  %Preamble  \numberwithin{equation}{chapter} %\renewcommand{\theequation}{\thesection.\arabic{equation}}  \begin{document}  %\include{chapI}   these 2 lines are because the chapters are different tex files  %\include{chap1}  \renewcommand{\thechapter}{\Roman{chapter}}  %\setcounter{chapter}{0} %\renewcommand{\theequation}{\thechapter.\arabic{equation}}  \chapter{Introduction}  \section{Chap I Section1}  \begin{equation} this is equation I.1 \end{equation}  \begin{equation} this is equation I.2 \end{equation}  \section{Chap I Section2}  \begin{equation} this is equation I.3 \end{equation}  \chapter{Chapter 1}  \section{Chap 1 Section 1}  \begin{equation} this is equation 1.1.1 \end{equation}  \begin{equation} this is equation 1.1.2 \end{equation}  \end{document}     I have been typing Chapters 1-5 that contain sections and subsections and equations. The equations were numbered globally, i.e. if I had 3 equations in section 1 of Chap 1, they were numbered 1.1.1, 1.1.2, 1.1.3 and for Section 2, the equations were 1.2.4, 1.2.5, etc.  Recently I had to change Chap 1 and everything in it to Chapter I (roman number) and Chap 2 were renumbered to Chap 1, etc.  My problem is that LaTeX started numbering the equations in Chap I (the other chapters did not have this problem) according to the sections and not globally anymore. That is, the 3 equations in Chap I were I.1, I.2, I.3, and the equations in the second section of Chap I became I.1, I.2, etc instead of I.4, I.5, etc  I needed the prefix to be the chapter and not the sections. I don't understand why there is a change. I have never used \numberwithin in my book  Here are some of my codes  \documentclass[]{phstyle} \usepackage{latexsym,amsfonts,amssymb, undertilde} \usepackage[fleqn]{amsmath}   for the equation numbering in Chap I  \renewcommand{\thechapter}{\Roman{chapter}} \renewcommand{\theequation}{\thechapter.\arabic{equation}} **   Previously when Chap I was Chap 1, ** was  \renewcommand{\theequation}{\thesection.\arabic{equation}}   I have also tried the line below but it didn't work  \renewcommand{\theequation}{I.\arabic{equation}}   Thank you in advance


Whenever I try to use tcolorbox with ieeeaccess.cls, the main title and section topics disappear!! anyone know what the problem is? Thank you in advance.   Here, without using tcolorbox.   Here, using tcolorbox.  Here is an example code.   \documentclass{ieeeaccess} \usepackage{cite} \usepackage{amsmath,amssymb,amsfonts} \usepackage{graphicx} \usepackage{textcomp} \usepackage{longtable}  \usepackage{flexisym}  \usepackage{graphicx} \usepackage{amsfonts} \usepackage{amsmath} \usepackage{mathtools} \usepackage{algorithm2e} \usepackage{algpseudocode} %\usepackage[breakable]{tcolorbox} %when this package is used, the main title and section topics disappear.  \def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em   T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} \begin{document} \history{Date of publication xxxx 00, 0000, date of current version xxxx 00, 0000.} \doi{10.1109/ACCESS.2017.DOI}   \title{Preparation of Papers for IEEE ACCESS}   \begin{abstract} abstract. \end{abstract}   \titlepgskip=-15pt  \maketitle   \section{Introduction} \label{sec:introduction} \PARstart{T}{his} first section  \subsection{subsection} subsection   \section{Second Section} This is the second section \section{Third Section} This is the third section   \EOD  \end{document}   Please note: 1- Unfortunately, ieeeaccess.cls requires IEEEtran.cls class, so to compile this example you need IEEEtran.cls to be in the same directory with ieeeaccess.cls. You will get both classes when you download the official LaTeX template for IEEE Access.   2- Another option is; you can down the official LaTeX template for IEEE Access from the official website, then add the package  \usepackage[breakable]{tcolorbox} to see the problem.   Click  for the official website for IEEE Access LaTeX template

I have been trying for a while to load the tikz package to the IEEE ACCESS template. Whenever I use the command \usepackage{tikz}, I am getting the error   /usr/local/texlive/2017/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.random.code.tex, line 33 Missing number, treated as zero.   It was working fine with the IEEEtran template and I was able to draw my circuit diagrams in that.   Anyone has any idea how to solve this issue?


I have done a lot of reading to understand difference between PUT and POST and from what I have gathered, PUT should have a resource specified in the URI. Does this mean that when uploading a file, the client specified what filename it is going to be? What about the place where the file is going to be stored, do I specify this in the corresponding method in PHP for this endpoint? Should multipart data ever be sent via PUT at all?

According to , POST is used to create a resource:  The POST method is used to request that the origin server accept the entity enclosed in the request as a new subordinate of the resource identified by the Request-URI in the Request-Line.  According to , PUT is used to create or replace a resource:  The PUT method requests that the enclosed entity be stored under the supplied Request-URI. If the Request-URI refers to an already existing resource, the enclosed entity SHOULD be considered as a modified version of the one residing on the origin server. If the Request-URI does not point to an existing resource, and that URI is capable of being defined as a new resource by the requesting user agent, the origin server can create the resource with that URI.  So which HTTP method should be used to create a resource? Or should both be supported?


I have a post and reply system. Currently when you view a post, you can see a list of its direct replies in a vertical scroller. You then click on a reply to see replies to that. I might call this "breadth" display. However, I have some users complaining that they'd prefer to follow comment threads through replies, i.e. "depth" display. The issue I have is, reply chains follow a tree structure, and it is not easy to decide how to show all these threads at the same time.  My question is: Is there a good or recommended way to display a comment tree? There are similar solutions online, such as Reddit's way of rendering, but most people I've talked to don't find that very intuitive either.

I want to avoid the classical way of replying into replying into replying that goes like this      Comment     --> Reply 1     --> Reply 2     ---->Reply 3     ---->Reply 4     ------->Reply 5     ---->Reply 6   I will be expecting lots and lots of replying levels and the horizontal space is limited.  So I am looking for any good alternatives to that matter. Any ideas?