I cannot recall precisely, but while attempting to type "9" or "0" or hit the Delete key or other keys in that area of the top row, I just fat-fingered my headphone volume to maximum on the touch bar. It greatly startled me and caused me to shout out loud at work.  I love using the touch bar. I am never going to improve my clumsy hand movements. I require constant headphones at work to concentrate. I need my headphones plugging into my laptop so I can hear the occasional audio cue from other apps.  However, I absolutely cannot let this happen again. I scared all my nearby teammates with my sudden loud shout. I had to assure them it was OK, explain what happened, and apologize for the disturbance.  I recalled my iPod shuffle has a feature to limit the maximum volume on it, and I figured an even more feature-full OS would surely also have that feature, but I cannot seem to find it in System Preferences.  Am I missing the feature? Is there a Terminal command I can type that limits the maximum volume to a lower level?


Is it okay for professors to completely copy another professors' notes, assignments, and exam questions word for word from another university?

I have a professor who used the same lecture notes, same assignments, and same exam questions word for word from from another professor at a different university (who posts his notes, assignments, and exams online). She mentions she "makes her own exams", however the questions are identical to the online past exam and assignment questions.   It's a masters level class and the exam questions are quite specific. We are given an abstract to read and then asked to perform calculations/analyze the abstract.   Is this common or "allowed"?


Can tar split and write and read volume files from FAT32 media?

VtR reviewers: Using external tools is not a "tar" command, so, this is not a duplicate of those other mentioned questions.  FAT32 supports max 4gb files. To use my 16GB media, I've been battling with tar's -L and -M and -F and -V switches, and managed (with a hackery -F kludge) to get tar to split my archive into multiple smaller files - all good.  However - I can't work out how to get it to read those back in...  Can someone tell me what tar command I need to type to store 10gigs of files into a FAT32 USB drive using tar, and what tar command is later needed to read them back out again?


How to get purely unique number in javascript

I must create unique keys for certain objects I create (needed for React key prop), where key can be any random string or number, but has to be truly unique for each time it's generated in program lifetime.  I tried to use new Date().getTime() as key, but encountered problem where multiple objects got assigned the same key when creating them in loop.  Is there a function which returns something purely unique each call as long as the program is running, or do I have to implement my own counter?


Why does PEP-8 specify a maximum line length of 79 characters?

Why in this millennium should Python  specify a  of 79 characters? Pretty much every code editor under the sun can handle longer lines.  What to do with wrapping should be the choice of the content consumer, not the responsibility of the content creator. Are there any (legitimately) good reasons for adhering to 79 characters in this age?


Communicating with all potential clients as a multi niche photographer

This may be seen as a bit off topic, but I'm hoping it's a question that some photographers can associalte with and clear up for me.  I'm an amateur wanting to get more serious in the new year, and aiming to build up a portfolio of work that I will showcase on my own website, which will hopefully build up a client base.  I figured that a good way to get started would be to create a few 365 style projects that I can publish on my site and on social media. However, my interests vary a great deal, and therefore my photography will more than likely range from nature and local events, to more NSFW style topics.  My problem is, how to successfully communicate with people who will be interested in certain aspects of my work, without losing touch with those interested in others.  In theory, I'd like to set up a single social media presence, preferably Twitter, where I can freely post anything I want, and connect with anyone I want. Essentailly pointing people in the direction of whatever content they will be interested in. Problem is, social media sites like Twitter publicise ALL of your posts to ALL of your followers, so people who are following for nature/local photography will possibly unfollow me for my NSFW content. At the same time, some SFW followers may be potential clients in other areas, and vice versa.  So as a multi niche photographer, how can you engage with all potential clients, and showcase all portfolio peices ( in my case all 365 project shots ) via a single or limited number of social networks? How are you doing it?


I searched for any type of snipping tool in ubuntu. I found Shutter & installed it. But my Ubuntu launcher didn't show its icon.   When I launch Shutter from terminal, my PC run slow & terminal showed hundreds of warnings. Is there any other snipping tool (Without Shutter) for Ubuntu 16.04?


What is the minimum gauge wire required to carry 100 amp service from the meter to the panel?

What size wire is required to carry 100 amp service from the meter to the panel?


does anyone know how to export an explosion modifier in blender and use it in panda3d? I have tried a lot of settings but not sure how to do it, all I want to do is see a mesh explosion in panda3d that iv already created in blender but don't seem to export to panda3d or I am doing it wrong. any help would be great. thank you


Using python 3 when the default is python 2.7

I installed python3 with homebrew and can access it with python3 command in terminal.  I'm installing a command line app that needs python3. When I try to use it it says:     Python 3.3+ required   When I do python --version it reports python 2.7.  How can I get the app to use python3?


I'm using BibTex for my bibliography, for citing I'm using google scholar.  I'm mainly having problems with math symbols: for example, one of the references is:   @incollection{deitmar2005schemes,     title={Schemes over$\backslash$  mathbb $\{$F$\}$ \_1},     author={Deitmar, Anton},     booktitle={Number fields and function fields—two parallel worlds},     pages={87--100},     year={2005},     publisher={Springer}     }     But it comes out wrong, the nice $\mathbb{F}_1$ math symbol is missing and what I see is only \mathbb {F}_1. Is the cite BibTeX of google scholar wrong?  Another problem: google scholar gives me this:   @article{kurokawa2005zeta,     title={Zeta functions over $$\backslash$ mathbf $\{$F$\}$ \_1$},     author={Kurokawa, Nobushige and others},     journal={Proceedings of the Japan Academy, Series A, Mathematical   Sciences},     volume={81},     number={10},     pages={180--184},     year={2005},     publisher={The Japan Academy}   }     But the output is very messy: there is no math symbol for $\mathbb{F}_1$ and the "Proceedings of the Japan Academy, Series A, Mathematical   Sciences" come out without spaces and actually runs out of the page. Thank you all in advance!


I edited  yesterday, and added the tag .  However, I happened to come upon the same question today and noticed that this tag is missing. I tried to edit the post to add the tag but received the message      Nothing appears to have changed.   Is this a bug?


how to integrate the definite integral using residue theorem?

How to evaluate $\int_{0}^{\infty}\dfrac{1}{x^a+1}dx$, where $a>1$. I don't know where to start since $x^a+1$ could have infinitely many roots, then it is impossible(?) to evaluate its residues. And even we did find a way to do so, how are we gonna choose the contour at the first place? Any hint would be appreciated.


After installing VLC player through  sudo snap install vlc --devmode   I start application and want to go and watch some movie that is on my NAS device and mounted as samba share at /mnt/DATA folder. But in open file dialog box /mnt folder is empty. I thought specifying --devmode enough to disable all snaps confinement. Is there some additional configuration necessary for snaps to have access to host machine directories?  System:    Host: DzirT-LT Kernel: 4.13.0-32-generic x86_64 (64 bit) Desktop: KDE Plasma 5.12.1            Distro: neon 16.04 xenial Machine:   System: Dell (portable) product: XPS 15 9550            Mobo: Dell model: 0Y9N5X v: A07 Bios: Dell v: 1.6.1 date: 12/11/2017 CPU:       Quad core Intel Core i7-6700HQ (-HT-MCP-) cache: 6144 KB             clock speeds: max: 2600 MHz 1: 2600 MHz 2: 2600 MHz 3: 2600 MHz 4: 2600 MHz 5: 2600 MHz 6: 2600 MHz            7: 2600 MHz 8: 2600 MHz Graphics:  Card-1: Intel Skylake Integrated Graphics            Card-2: NVIDIA GM107M [GeForce GTX 960M]            Display Server: X.Org 1.19.5 drivers: (unloaded: fbdev,vesa) Resolution: 1920x1080@59.93hz            GLX Renderer: Mesa DRI Intel HD Graphics 530 (Skylake GT2) GLX Version: 3.0 Mesa 17.2.8 Audio:     Card Intel Sunrise Point-H HD Audio driver: snd_hda_intel Sound: ALSA v: k4.13.0-32-generic Network:   Card: Broadcom BCM43602 802.11ac Wireless LAN SoC driver: brcmfmac            IF: wlp2s0 state: up mac: 44:1c:a8:e2:f2:03 Drives:    HDD Total Size: NA (-) ID-1: /dev/nvme0n1 model: N/A size: 512.1GB Partition: ID-1: / size: 39G used: 13G (36%) fs: ext4 dev: /dev/nvme0n1p3 RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present Sensors:   System Temperatures: cpu: 32.0C mobo: N/A            Fan Speeds (in rpm): cpu: N/A Info:      Processes: 262 Uptime: 22 min Memory: 2091.7/15888.1MB Client: Shell (bash) inxi: 2.2.35   I see a lot of users marked my question as duplicate. I think it is not. So could someone explain me following, isn't specifying --devmode during install means remove all confinements from snap and have unlimited privileges? If I'm wrong in my expectation that it is duplicate, if not it is different case as in duplicated thread.


Nonlinear superposition and self-interaction in classical field theory

I am learning QFT (in a path integral formalism) and one thing I'm struggling with is that self-interaction is supposed to be a quantum phenomenon, not apparent in classical non-linear field theory. I have read and understood how a perturbative construction of nonlinear field solutions give rise to tree-level (-only) diagrams (compare ) but I fail to link it to my intuitive model of waves superimposing nonlinearly. Let's calculate the 2-point function $\left<\phi(x_1)\phi(x_2)\right>$ of a classical theory. In a free theory, you'd calculate the fundamental solution to the field equation and evaluate it at $x_2$. That is, you apply a $\delta$-shaped source term at $x_1$ and calculate how the field evolves starting from there. Going to a nonlinear theory, the prementioned construction no longer yields a fundamental solution as there is no superposition principle. Still you can can calculate how the field evolves starting from a point source (where I mean "point" both in space and time) and that should yield the 2 point correlator, no? Now, my mental model is the following: the point source produces have a spherical wavefront that (freely) propagates for a bit. Now Huygens' principle kicks in and every point of the wavefront is again the origin of a new spherical wavefront. Only now we have no linear, but nonlinear superposition, i.e. interaction. Now when these different branches of the wave come together again, that is exactly self-interaction, no? and seems to produce exactly the processes that are depicted by loop diagrams? The integral $-\lambda^2 \int\mathrm{d}^4\!y_1 \mathrm{d}^4\!y_2 \; G(x_1, y_1) G^3(y_1, y_2) G(y_2,x_2)$ reads just like two elemental nonlinear superpositions, to me. How does nonlinear superposition (not) relate to self-interaction? Speaking in words of perturbation theory, how does nonlinear superposition of the different branches of a classical wave not lead to loop diagrams? What makes them appear in QFT then? How does the full propagator of nonlinear field theory look like? If it does not differ from the free one, why not?


tikz-feynman package - lines drawn haphazardly

I use the following code using the tikz-feynman package.  \tikzfeynmanset{     every vertex/.style={red, dot},     every particle/.style={blue},     every blob/.style={draw=green!40!black, pattern color=green!40!black}, } \feynmandiagram [horizontal=a to b] {     a [particle={\(\gamma, Z\)}] -- [boson] b [blob],     c -- [fermion] b -- [fermion] d, };   However, I get an output in which the lines are drawn haphazardly.  Is there a way to correct this?


I am using express and ajax to upload an image file to server disk. My express code looks like  app.post('/events/upload',function(req,res){ upload(req,res,function(err) {     if(err) {         return res.end(err);     }     console.log("333333333333333333333333333")     res.send("File uploded"); });   });   My ajax code is :      $(function () {     $('#upload-form').click(function (e) {         e.preventDefault();          console.log("$$$$$$$$$$$$$$$$$$$$$$$$$");         $.ajax({             url: '/events/upload',             type: 'POST',             success: function () {                 console.log("Uploded");             },             error: function () {                console.log("Not uploded");             }         });     }) })   and my html is    <form   method='post' action='upload' enctype="multipart/form-data">      <input id="upload" type="file" class="btn btn-warning" name="userPhoto"/>      <input id="upload-form" type="submit">     </form>   Now, when i remove the preventDefault the image file is being uploded and redirected to "File upload", However, when the preventDefault is there, every logs is being printed like "33333333333" and "$$$$$$$$$$$$$" but the file is not being uploded. Any idea why is this happening.


After AIDE check, the buff/cache is full in CENTOS7

I have configured AIDE (Advanced Intruder Detection Environment) in my Centos7 VPS which has 2GB of RAM. After running AIDE --check I get the desired or the intended result. But when I check the available RAM the following is the result I get. The buff/Cache is almost full. Why is this happening?                total        used        free      shared  buff/cache   available Mem:           1.8G        249M        100M        9.8M        1.5G        1.4G Swap:          511M         15M        496M  Edit-- I want to know whether other AIDE users are experiencing the same issue or not. Does the memory used by the cache/buffer affect the overall server performance. I am using this VPS as a web server only.


How to prevent iCloud from downloading (storing) certain files in an Xcode project in iCloud?

I have enabled storing Desktop & Document Folders in iCloud. I keep my Xcode projects on Desktop. Every hour or so, iCloud will store files, inside of Pods folder present alongside the Xcode Project in iCloud. This is very tedious as I then have to click on each one of them one-by-one to re-download.  How can I prevent iCloud from downloading my files in this manner, for this specific Xcode project?  I have tried disabling iCloud for Desktop, but this results in me losing all my Desktop folders/files, so I could rather not go this route.


Why does a body not rotate if force is applied on the centre of mass?

The definition of centre of mass on Wikipedia is given as  This is the point to which a force may be applied to cause a linear acceleration without an angular acceleration.  How can I prove that such a point is the weighted average of the radius vectors of all discrete masses mathematically? Also see .


I tried to use counter to count the amount of null or empty string. But it always failed. I print them to test it.  System.out.println(samples.get(0).getAuthor2()); System.out.println(samples.get(0).getAuthor2() == " "); System.out.println(samples.get(0).getAuthor2().isEmpty()); System.out.println(samples.get(0).getAuthor2() == null);   The result is like this.  If these are all false, what is this blank?


I've not opened any $.. and i'm not using any mathematical command (apart \pm but this is not the problem because it doesn't work the same). The first error is just after the first \end{tabular}. I created a table and subtable environement, maybe I can't manage them well, please help me.   \begin{table}[H]  \centering     \subtable{       \begin{tabular}{ll}      \multicolumn{2}{c}{\textbf{Molla 1}}\\     \hline     $R_s$ &      1.48\pm0.01 cm\\     $n_s$   & 41 \pm1\\     \multicolumn{2}{l}{$l_0=23.2 \pm 0.2$cm}\\     \hline     massa (g) & $\delta{l}$ (cm)\\     \hline     38.8\pm0.1      & 9\pm0.5\\     148.1\pm0.2     & 13.5\pm0.5\\     235.6\pm0.3     & 21.2\pm0.5\\     336.6\pm0.4     & 30.3\pm0.5\\     \hline     \end{tabular}     }     \qquad \subtable{     \begin{tabular}{ll}     \multicolumn{2}{c}{\textbf{Molla 2}}\\     \hline     $R_s$   &    0.93   \pm0.01 cm\\     $n_s$   & 66 \pm1\\     \multicolumn{2}{l}{$l_0=19.1 \pm 0.2$cm}\\     \hline     massa (g) & $\delta{l}$ (cm)\\     \hline     87.5\pm0.1      & 3\pm0.5\\     188.5\pm0.2     & 6.5\pm0.5\\     237.5\pm0.3     & 8.2\pm0.5\\     336.6\pm0.4     & 11.8\pm0.5\\     \hline     \end{tabular}      }     \end{table}     \clearpage


Where is the "Double click on titlebar to minimize" setting located in Mavericks?

I just updated my MacBook Air to Mavericks and I can't find the checkbox to enable the "Double-click on window title to minimize it" feature.  I thought I was in the System preferences > General pane, when I activated it, but that was in 10.6 (Snow Leopard).


Take a look at this here:  \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{align*} \Leftrightarrow \qquad P'_1(t)+\lambda P_1(t)&=\lambda e^{-\lambda t} && (2.6)\\ \Leftrightarrow \qquad e^{\lambda t}P'_1(t)+\lambda e^{\lambda t}P_1(t)&=\lambda e^{\lambda t} e^{-\lambda t}=\lambda \\ \end{align*} \end{document}   Is it possible to have the equivalences below each other like the equations are?  \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{alignat*}{4} P'_1(t)&=-\lambda P_1(t)+\lambda P_0(t)\\ \Leftrightarrow &&\qquad  P'_1(t)+\lambda P_1(t)&=\lambda e^{-\lambda t} && (2.6)\\ \Leftrightarrow &&  e^{\lambda t}P'_1(t)+\lambda e^{\lambda t}P_1(t)&=\lambda e^{\lambda t} e^{-\lambda t}=\lambda \\ \end{alignat*} \end{document}   This almost works but i have the mention problem that the first line is pulled to the very left.


On this machine, i have already install portmap it:   apt-get install portmap   it works well   But, i need to install it on another machine where i don't have internet  i have to download the paquet ? How can i do please ?


How to determine sign of $g$?   It is said that we take  it negative if any body is in upward motion. So why we don't take it positive when we observe downward motion.It is very confusing.


solve "Unicode char is not set up for use with LaTeX" without special handling of every new interesting UTF-8 character

on topic of duplicate claims - I tested  - "solution" it resulted in LaTeX displaying "?" rather than "⌀".  Thanks to people who provided high quality and very useful answers.    I added ⌀ to text and now pdflatex is crashing with     Package inputenc Error: Unicode char \u8:⌀ not set up for use with LaTeX.   I know that I can use \DeclareUnicodeCharacter or similar to introduce special handling of this character but doing it every time that new UTF-8 character appears in the input is not acceptable.  It needs to work in pdflatex (or other pdf-generating latex compiler) as I use latex solely as pdf generator (LaTeX is generated from input, pdflatex generates pdf output).  MWE:  \begin{document} ⌀ \end{document}   MWE with my document declarations present  \documentclass{article} \usepackage[a4paper, total={6.5in, 10.5in}]{geometry} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{cprotect} \usepackage{fvextra} \usepackage{textcomp}  % make TOC work correctly \makeatletter \def\l@section{\@dottedtocline{1}{1em}{2em}} \makeatother \usepackage{index} \makeindex  \DeclareUnicodeCharacter{00A0}{~}  \DefineVerbatimEnvironment{escape}   {Verbatim}   {fontfamily=\rmdefault,breaklines,breaksymbolleft={}} \CustomVerbatimCommand\escapeinline{Verb}{fontfamily=\rmdefault,breaklines,breaksymbolleft={}}  \begin{document} ⌀ \end{document}


Regular expressions VS Filename globbing

I know that Regular expressions are to be used only with characters and strings, but sometimes I find them in the names of files. My question is: are regexes only used with characters or also with filenames?


Add console/text booting mode to grub menu

I want to have text booting mode option on grub menu screen. How do I create this menu entry?


How can draw oblique arrows in steps (Beamer) like on picture?


Given a probability matrix, find probability that person at zero index can go to other rows

I was trying to solve a problem in which I was given a matrix containing probabilities of person s[0] to go s[n] as s[0][n].   Input:  0   1   0   0   0   1     4   0   0   3   2   0     0   0   0   0   0   0     0   0   0   0   0   0     0   0   0   0   0   0     0   0   0   0   0   0   Tracing the probabilities: [0,1,0,0,0,1]: #s0 the initial state, goes to s1 and s5 with equal probability [4,0,0,3,2,0]: #s1 can become s0,s3 or s4, but with different probabilities [0,0,0,0,0,0]: #s2 is terminal, and unreachable [0,0,0,0,0,0]: #s3 is terminal [0,0,0,0,0,0]: #s4 is terminal [0,0,0,0,0,0]: #s5 is terminal   So we can consider different paths to terminal states such as: s0->s1->s3 s0->s1->s0->s1->s0->s1->s4 s0->s1->s0->s5  Tracing probabilities of each, we find that: s2 has probability 0 s3 has probability 3/14 s4 has probability 1/7 s5 has probability 9/14    Output: [s2.numerator,s3.numerator,s4.numerator,s5.denominator]  which is: [0,3,2,9,14]   I'm trying to apply Regular Markov chain rule but couldn't succeed. Can anyone give me insights about how to solve this problem. Or at least any method or directions which I can use to understand this problem.  Any help would be really appreciated


How can I upload MP3's to youtube using Ubuntu?

I used to use Windows Moviemaker.  I am new to Ubuntu.  Is it possible to do this easily?  I am fairly techtarded.


How do you apply to be a Minecraft marketplace creator? I have searched through Minecraft.net and never really found out how to apply. Can i please get some help on how to get here and how to apply?


Strange grey bordering/outline in Illustrator

I made a couple of vector shapes in AI and I get this strange thin border appearing around them. I can't get rid of it. Any suggestions?    Zoomed in:


I'm new with unity and c#. I have a class with subclass as below. Now I want to add new data inside the list of friends.  [Serializable] public class PlayerData {     public string playerName;     public string playerId;     public Friend[] friends; }  [Serializable] public class Friend {     public string playerName;     public string playerId; }   I want to add new friend in the friend class list. Code I have tried till now.  public string AddFriends(string friendId)     {         PlayerData pd = playerDataDict[playerId];         Friend friend = new Friend();         friend.playerId = friendId;         pd.friends.Append(friend);         return "sdwsd";     }   Thank you


Question about the application of the Mean value Theorem

Question: Let $f$ be a real-valued differentiable function in $(a, b)$. Suppose that there exist $x, y ∈ (a, b)$ such that $x < y$, $f'(x) = 0 = f'(y)$ and $(f(y)−f(x))/ (y−x) > 0$. Prove that there exist a $ζ ∈ (x, y)$ such that $(f(ζ) − f(x))/(ζ − x) = f'(ζ)$ My Approach: I thought this is an easy question because the condition says that $f$ is differentiable, which means it is continuous. So it satisfies the condition for applying the mean value Theorem. Since $(x,y) ∈ (a,b)$, the differentiability and continuity still holds for domain $(x,y)$ which means we can still apply the mean value theorem, and thus proving the statement true. However, according to this approach, I am not fully using the conditions giving in the question: $x < y$, $f'(x) = 0 = f'(y)$ and $(f(y)−f(x))/ (y−x )> 0$ Am I missing something about proving this statement?


What is the process that leads to the volume expansion of the outer layers of a star when it becomes a red giant?

If a main sequence star runs out of hydrogen fuel in the core, the core collapses because of its own gravity, but what exactly leads to the expansion of the outer layers of the star when it is becoming a red giant?


VMware Workstation: how to reduce .vmdk maximum size

I have a 150 GB disk file (.vmdk, non pre-allocated) where my virtual machine is stored.  The file is currently 20 GB, but it is growing everyday, even though I'm not storing anything new in the guest file system.  I have been looking for hours for a way to reduce the maximum size of this disk, so that it never gets to 150 GB (I'd like to set the limit to 30 GB, and see what happens when the VM reaches this size).  What I have tried:   Converting the disk image with VMware Converter → this does not work, the tool only allows creating a full copy or a 'linked clone'. Creating a new blank virtual machine of the desired size in order to copy the 20GB data onto the new .vmdk → I cannot find a way to perform the copy or even connect the new disk to my existing VM (so that I perform the copy using the guest OS). Looking in the .vmx file to check if the maximum size was not set in plain text (it's not).   Although this task seems technically quite simple (there is no tricky shrinking involved, just a simple change of size limit), I'm really out of ideas here...  Is there a solution at all ?


I am currently looking through this problem in this video   The video asks: Prove that 4^k-1 is always a multiple of 3 for n = 1,2,3...  Looks like an induction question, the teacher in this video solves it like this 4^k  - 1 = 3P 4^(k+1) - 1 = 3Q Solve for LHS 4^(k+1) - 1 4^k - 1 + 3*(4^k)  HOW did he get this step??   the next steps is  3P + 3*(4^K) 3(P + 4^K) I understand this step though.


I'm new to Linux (currently running Ubuntu 10.04) and I have just finished setting up SSH access to my Linux Machine.  Currently, I have to use ssh root@x.x.x.x to connect but would much rather be able to swap the IP for the computer name (like in Windows with \\name) or a domain name (like computername.example.com). I don't really know where to start so any help would be most appreciated.  Please go slowly, as mentioned - I am still new to this.  EDIT 1 Completely forgot to mention that I am trying to connect from Windows 7 (via PuTTY) - sorry.


I need help with finding   $\displaystyle \lim_{n \to \infty} \frac{2^{n+1} + 3^{n+1}}{2^{n}+3^{n}}$  Thanks!


upgrade from 12.04 to 14.04 via CD/USB image

I have Ubuntu 12.04 installed and have 14.04 iso file. Is there any way to enable upgrading using this image file and not have to download lots of files?  It's because, the Internet is a bit of a problem where I live.


If every Sylow subgroup of G is a normal subgroup, show that G is isomorphic to the product of its Sylow subgroups.  I can't figure this out without G being abelian.


Can anyone give an mathematical elaboration of the following statement:     Quantization is a functor carrying the category of Hilbert space and linear maps to that of Symplectic manifolds satisfying some conditions specified by laws of Physics.


Account is not linked after question migration even though the user has already registered on target site

There was  which was migrated to . As of current writing, the OP's username is greyed (no user profile).  However, when I checked the account, they have registered both on  and .  This issue seems to be the same as , but it's posted 5 years ago and already got , so I doubt if this is the same case. If there's a difference, then I think it's that the user never went to Meta Android.SE before (but I can't confirm).


What is the real characteristic equation?

My book says that you form the character equation as  $\begin{vmatrix} \lambda I - A \end{vmatrix}$. However I see occasionally on stack exchange and other resources that define the character equation as $\begin{vmatrix}A - \lambda I\end{vmatrix}$. Why does this appear to be such a trivial matter? Here are some examples below where I have found the latter being used.        (under "Eigenvalues and the characteristic polynomial"


Accessing a Linux box for forget username and password

I have a physical linux box running some services. I have no any login information for that linux box.  How do I get access to the box and check all the services running on that box? It is not just reseting the password I need to know the services running too on the linux box.


Here comes my case:  I conducted an experiment with roughly the following design:  30 participants, each with a unique id, were asked to rank using a likert scale how much they liked images of forests. All the participants ranked the first 8 images and then the following 5 images were randomly drawn from a pool of 15 images. Therefore, in total each participant viewed 13 images of forests, but not all images were viewed by each participant. As the responses are ordinal I have gone with a cumulative link mixed effects model to preserve the structure of the data.  And here comes when I need your expertise. So far, I believe that the random terms of my model should take into account that:  Participants (id) Image (id)  However, Im confused about how to incorporate the random effects as each participants views some but not all of the same images. Thus-far I have come to the conclusion and coded in R package ordinal it as:  clmm(likert_Rating ~ Experience + X.4 + X.3 + (1 | part_id) + (1 | Plot_ID),       data = TotalF)   However, no matter how many models I try, I am never sure about how to include the randoms effects using this design.  I would really appreciate if some of you could point me in the right direction as I am struggling to decide how to include the random effects.


How to install GTA V Play disc on my Xbox 360?

Where is the option to install the disc 2?.. I just get the option to play it.


The alpha channel launch page says there is version 1.0.1.84 to install but actually installs 1.0.1.83 resulting in the app asking to update again.  Can't use alpha app as result.


How to migrate and upgrade Windows Server RDS CALs from 2008 to 2012

I currently have a Server 2008 R2 RDS licensing server in production that I'd like to replace with Server 2012 R2. We don't have Software Assurance.  Should we migrate the existing 2008 licenses to the 2012 server, and then attempt to "upgrade" the licenses? Is this even possible?  to a server 2003 question says you can't even put older licenses on a newer server, but this seems to contradict .  Can one even upgrade CALs, or do you just have to purchase them outright? If they can't be upgraded, I suppose we'll just have to buy brand new ones and install them on the 2012 machine.


Remove 'standalone="yes"' from generated XML

Do you know of a JAXB setting to prevent standalone="yes" from being generated in the resulting XML?  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>


Can I take a 220 line and convert it to a regular house outlet what would be the damage?

I have a electric 220 dryer hook up in my kitchen now I want to convert it over to use for a higher grade power supply for my microwave blender and toaster without converting Any wires or touching the  fuse box, is this possible ?


Macbook pro 2018 with Mojave overheating when connected to external monitor

I'm on a MacBook Pro (15-inch, 2018) with Mojave 10.14.1. When I connect MBP to a external displays (either via HDMI or via Thunderbolt 2 adapters), the temperature raises sensibly (i.e., CPU temperature lies constantly over 90°) and fans start running fast (i.e., more than 50%) frequently, even if I am doing very simple tasks (e.g., writing in Word with a couple of Chrome tabs open with stackoverflow).  I'm not sure that the problem started with Mojave or if it isn't actually related to the OS version.  I'm wondering if there is a way to limit this annoying overheating as well as fans activity, while using external monitors.


The US International keyboard allows to add  diacritics by means of dead keys. Specifically:    `a maps to à and 'a maps to á.  In X, using the international or the standard US keyboard, I would like instead to set mappings like this:  a` maps to á and a' maps to à.  As you can see, I would like the dead key to be typed after the base letter and also I prefer to swap the acute and grave accent dead keys. (This makes typing much faster and natural for me and, in case the dead key functionality is disabled, words with attached diacritics are more readable).  Can you address me to the proper tools/config files to achieve this? In case it is relevant to the answer, my distro is Arch Linux.


Should I use "compare to" or "compared to" in this case?

Which of the following is correct? 1.  The center of the small-town called Islip will develop compared to how it is in the present.      The center of small-town called Islip will develop compare to how it is in the present.


I want to add a line break in vim from line 59 to the end of file.  - 0021: Paralleism - 0022: Mazimum Sum Sequence - 0023: Circles Intersection - 0024: Physical Experiments   to this   - 0021: Paralleism  - 0022: Mazimum Sum Sequence  - 0023: Circles Intersection  - 0024: Physical Experiments   I tried the following  but it doesn't work.  :59,Gs/$/$\n/   How can I achieve this with vim substitute?


checking free memory by free -h command , here what is difference between available and free memory?

free -h               total        used        free      shared  buff/cache   available Mem:           7.7G        2.1G        622M        362M        5.0G        4.9G Swap:          7.5G        984M        6.5G  here free memory is shown as 622M and available memeory is 4.9G.


unable to install intellij IDEA on ubuntu 16.04lts?

Recently i have installed ubuntu 16.04(2 days ago) and i'm trying to install intellij IDEA ide for java coding, it is saying "no such directory found".  [please see the link below]


Which anchors to use for a wall in a basement

I need to extend one of the walls by approx 30 inches.   I will be using pressure treaded 2x4 in bottom of the wall and wall will be about 83 inches high.   Which anchors should I use to secure the wall to the concrete floor? How long they should be?   Will Tapcon 1/4 x 3” work for this project?   How many anchors will I need? I was planning to use three: both ends and somewhere in the middle.   Thanks.


Does it matter what order i play the assassins creed games?

I know there's an order to the games, but are their stories built off of each other or are they separate?


I was told that this anime is non-canon, but there are things from the anime that are just as the same as the manga.


How to put this orange thing in the same place with selection?

I can't solve the problem about having selection and this "orange stuff" in the same place. How to put this orange little thing in the same place with selection?


How do I refresh script results when a cell color is changed?

I have a Google Spreadsheet that contains a script to count a number of cells by color. The script works perfectly but seems like when ever I change the color of the cell, the count is not updated. How to update/refresh the cell count?  The script I'm using is from :  function getBackgroundColor(rangeSpecification) {   var sheet = SpreadsheetApp.getActiveSpreadsheet();   return sheet.getRange(rangeSpecification).getBackgroundColor();      }  function sumWhereBackgroundColorIs(color, rangeSpecification) {        var sheet = SpreadsheetApp.getActiveSpreadsheet();   var range = sheet.getRange(rangeSpecification);        var x = 0;        for (var i = 1; i <= range.getNumRows(); i++) {     for (var j = 1; j <= range.getNumColumns(); j++) {                var cell = range.getCell(i, j);                if(cell.getBackgroundColor() == color) {         x += parseFloat(cell.getValue());       }     }   }        return x; }  function countCellsWithBackgroundColor(color, rangeSpecification) {        var sheet = SpreadsheetApp.getActiveSpreadsheet();   var range = sheet.getRange(rangeSpecification);   var x = 0;   for (var i = 1; i <= range.getNumRows(); i++) {     for (var j = 1; j <= range.getNumColumns(); j++) {       var cell = range.getCell(i, j);       if(cell.getBackgroundColor() == color) {         x++;       }               }   }        return x; }


Transpose values and key in python dictionary when values are not unique

I want to change keys to values in a python dictionary, but the values in the original dictionary are not unique.  Here is what I have:  year_person = {2000: ‘Linda’, 2001: ‘Ron’, 2002: ‘Bruce’, 2003: ‘Linda’, 2004: ‘Bruce’, 2005 ‘Gary’, 2006: ‘Linda’}   This is what I want to change it to:  person_year = {‘Linda’: 2000, ‘Ron’: 2001, ‘Bruce’: 2002, ‘Linda’, 2003: ‘Bruce’, 2004 ‘Gary’, 2005: ‘Linda’: 2006}   When I tried to convert it using a for loop, I only got one matching pair for each person.


“Thank you very much” vs. “Thank you so much”

Some people used to say:      Thank you very much.   Where others say:      Thank you so much.   Could anybody please explain what differences there may be between those, whether of correctness or usefulness or anything else that separates one version from the other.


Show that $L^p$ norm is equivalent to $L^q$ norm iff $p=q$.

I want to show that $\| \cdot \|_p$ is equivalent to $\| \cdot \|_q$ iff $p=q$ on $\mathbb{R}$.   I think the best way to do this is via a contradiction. Supposing that $\| \cdot \|_p \leq \alpha \| \cdot \|_q \leq \beta \| \cdot \|_p$, we have $$\left( \int_{\mathbb{R}} \left| f \right|^p d\mu \right)^{1/p} \leq \alpha \left( \int_{\mathbb{R}} \left| f \right|^q d\mu \right)^{1/q} \leq \beta \left( \int_{\mathbb{R}} \left| f \right|^p d\mu \right)^{1/p}.$$ I'm then thinking of applying Holder's inequality, but haven't been successful .


Now and then I come across an "affirmative imperative + will you?" construction where, I suspect, the speaker seems to be telling someone NOT to do something or censuring him/her for doing so, as opposed to making a request for a certain action, as in:     “Run away from me, will you?” His voice was hoarse and strangled in his throat. “I'll have your skin off your bones, I will!” He took a lurching step.   However, no English usage guides I turned to seemed to address this (supposed) usage.  Is my suspicion correct or am I on the wrong track here?


In unbiased data, RMSE and standard deviation is same?    Let $x_{i}$ be your true value for the $i^{th}$ data point and $\hat{x}_{i}$ the estimated value. If we assume that the differences between the estimated and true values have    mean zero (i.e. the $\hat{x}_{i}$ are distributed around $x_{i}$) (Unbiasd) follow a Normal distribution and all have the same standard deviation $\sigma$   in short:  $$\hat{x}_{i}-x_{i} \sim \mathcal{N}\left(0,\sigma^{2}\right),$$  Then, RMSE between $x_{i}$ and $\hat{x}_{i}$ is  $$ \text{RMSE}^2 =  \frac{1}{n}\sum_{i=1}^{n}(x_i-\hat{x}_i)^2\,, $$  Standard deviation of $x_{i}$ - $\hat{x}_{i}$ is  $$ \text{SD}^2 =  \frac{1}{n}\sum_{i=1}^{n}((x_i-\hat{x}_i)-mean)^2 = \frac{1}{n}\sum_{i=1}^{n}(x_i-\hat{x}_i)^2\ $$  So i think RMSE and SD is same in unbiased data. However, i can not be sure and find any reference.


How do I uninstall discord on ubuntu 16.04

I recently ran into a problem with discord updating and I want to uninstall it via command line to reinstall it, but I dont know how. would anyone know how to do that?


How to import a .max model into Blender?

I've tried to import but I don't see the (.max) file as an option when importing. Is there another way to import the 3DMax model into Blender for rigging and animation?


Proving that force satisfies the laws of vector addition

A vector quantity has both magnitude and direction. So, for any physical quantity to be a vector, it should have a direction and a magnitude. Though this is a necessary condition for any quantity to be a vector it is not sufficient. To qualify as a vector a quantity must also follow the laws of vector addition.  Now getting to the point, the most commonly quoted reason to explain why force is a vector is that it has direction and magnitude. Most textbooks say nothing more than this. How can one mathematically prove that force is a vector?


Newenvironment - find the length of input

I am trying to define a new environment where the input text is placed inside a minipage, which has width equal to the length of the input text (something like a variable width box).  What I would like to have additional is a horizontal line over the box which has length more than the input text (say 1.5*input-text-width), as shown below:    Though there are many methods to create a variable width box, I didn't see a way to draw a line over the box which which has its length connected to the input text. I believe that determining the length of the input text is the right way to proceed. In newcommand, the length can be easily determined, since the input text can be called as #1. My question is how to decide the input text length for a newenvironment. More exactly, where is the text-body defined inside the newenviroment?  A minimum working example is:  \documentclass{article}  \newenvironment{varlength}{ \begin{center} \rule{0.9\textwidth}{0.8pt}  \begin{minipage}{0.6\textwidth}}{ \end{minipage} \end{center}}   \begin{document} \begin{varlength} This is a text inside fixed length minipage with over-line  I want the same to be repeated for variable width box \end{varlength} \end{document}


Buying domain, parking and google search position

I am buying domain that is well positioned in google search. I will be moving it to new host to park it there. The new domain will be pointing to my existing website.   What will be the effect on positioning in google? Do I assume correctly it will lose it current rank?


Number Theory: Prove that $m | \phi(a^m - 1)$

$a$ and $m$ are natural numbers and $a>1$. Prove that $m | \phi(a^m -  1)$.   Any hints how can I prove this statement?


I have a file in a particular location. The file name is in format StaticData_Sets_yyyymmdd-hh:mm:ss.txt  This file is generated everyday with current date and timestamp.The string StaticData_Sets_ remains same for all files and only the date and time varies.  I just want to find the file with current day stamp(irrespective of time). And check the size of the file is 0 or not.


I downloaded rigacar addon but when I try to install the add-on in preferences it simply gives me a blue message with the location details of my computer. I cannot find anything when I look for it in add-on section under preferences.


Problems with projections in QGIS 2.2 on a Windows Vista?

I use QGIS 2.2 on Windows 8, and the same QGIS 2.2 has been installed on a computer with Windows Vista.  On the Windows 8 everything works just fine, but something is wrong on the Windows Vista. All the projections that I can choose from on the Windows 8 isn't accessable from the Vista computer?  The national projection that all our data are in, can not be chosen on the Vista? No problem on the Windows 8.   What may we have done wrong? We tried to reinstall QGIS on the Windows Vista, but it didn't help.   Something else we can try?    EDIT: I tried installing QGIS in a folder without blanks, as suggested in a comment below. But the problem is still there. I still can't use the right projection on the Vista. The answer in the other question is too complicated for me.    From the postinstall.log (partly in Swedish):  "C:\QGIS_Valmiera\QGIS" „r inte ett internt kommando, externt kommando, program eller kommandofil. OSGEO4W home is C:\QGIS_Valmiera\QGIS Valmiera Synchronizing CRS database with GDAL/PROJ definitions. Load srs db from: C:/QGIS_Valmiera/QGIS Valmiera/apps/qgis/./resources/srs.db QFSFileEngine::open: No file name specified QFSFileEngine::open: No file name specified QFSFileEngine::open: No file name specified QFSFileEngine::open: No file name specified QFSFileEngine::open: No file name specified Loading epsg.wkt 0 WKTs loaded CRS update (inserted:0 updated:0 deleted:3631 errors:0) No CRS updates were necessary.


How do I project the screen of my Android phone for a presentation?

How can I project my Droid Incredible screen so I can demonstrate the smart phone to a room full of people?  Does anyone know how I can link the phone to a PC? To a TV?


I have the following lines  3, 3, 100 4, 2, 50 8, 5, 80 . . .   and I want the following output  line starts at 3 and ends at 3 with value 100 line starts at 4 and ends at 2 with value 50 line starts at 8 and ends at 5 with value 80 . . .   I tried the following: sed 's/^/line starts at /' then applying this command for the output: sed 's/, / and ends at /' then applying this command for the output sed 's/, / with value /'. Is there any way to do it in a single line?


I'm playing around with this op amp: . My circuit looks like this:  It is hooked up to an Arduino Uno. I used analog read on the Arduino to read voltages at 2, 3, and 6. The pot allows me to vary the voltage at 3 from 0 to 5 V. With R1 = R2 = 10K, I should have a gain of 2. I should be able to vary the voltage at 3 from 0 to 2.5 V and the output of the op amp should go from 0 to 5 V, right? I know I probably wont get quite to 0 or 5 V but pretty close. However, the plot below is what I measure with the Arduino. As far as I can tell, the analog read value of 0 is 0 V and 1000 is about 5 V.  So the op amp appears to work but only in a vary narrow range. It looks like its pretty close to the upper limit, but doesn't get anywhere close to outputting 0 V. Also, if I replace R1 with a higher resistance or R2 with a lower resistance, giving me higher gain, I get no response at all at the output. A3 remains at a constant value of around 800 no matter what the input is. I'm new to op amps so I'm probably missing something obvious... Thanks!


Is it possible for some Javascript to detect whether Skype is installed or not?  The reason I ask is that I'd like to change a link's href based on that: if Skype isn't installed, show a popup explaining what Skype is and how to install it, if it is installed, change the link to skype:my.contact.name?call so the click will start a call. Real estate issues means that I'd prefer to only have one link shown.


How much lift does the average latex helium filled party balloon produce?

How much lift does the average helium filled party balloon produce? (not including any extras like ribbon string)


Tall male in a giant spaceship which in the past was used for biological warfare

The book is a collection of stories of the protagonist travelling on his scavenged ship between planets and offering bioengineering services.  Remember one story with an overpopulated planet he was hired to bioengineer food nutritious enough to solve the food shortage problem.   The protagonist is tall (above 7'), bald, aphephobic, misanthropic and has a clowder of cats.


How to hide negative reputation in the reputation history?

I want to hide negative reputation which appears in the reputation history. I want to know the   settings do so.  Edited:    This was the answer i needed at last i found by my own, this is the mistake of stack overflow, really fedup of dwonvotes..!!!! annoying..!!


what is the meaning of " treated observation"?

what are the meanings of "treated observation" and "non-treated observation" in this context ?  Further, propensity score matching is a more robust method of matching that quantitative accounting researchers frequently use (Rosenbaum & Rubin, 1983). With this technique, the researcher first estimates a logit or probit regression with the treatment effect as the dependent variable (i.e., S&P 500 membership, continuing with our earlier example) and independent variables that are known determinants of the treatment (possibly economic performance, firm size, age, industry, etc. in our example). From this first-stage regression, the researcher obtains propensity scores. 6 The researcher then matches each treated observation to a non-treated observation based on the distance between their propensity scores (i.e., those observations with the closest propensity scores are matched). 7 Hoi et al. (2013) utilize propensity score matching in their study that links irresponsible CSR activities with tax aggressiveness. They first generate predicted propensity scores for each firm-year using a model of the determinants of a firm engaging in a high level of negative, irresponsible CSR activity. Then, they match a treatment firm (one with a high level of negative CSR activities) to a non-treatment firm (one with a low level of, or no, negative CSR activities) by matching observations with the closest propensity scores. Hoi et al. (2013) then re- test the relation between negative CSR activities and tax aggressiveness using this matched sample. These matching techniques help mitigate the researcher’s potential failure to consider certain firm characteristics that differ between treatment and non-treatment firms (Dhaliwal et al., 2012).


The sequence of events were the following:   I answered a . At the time of posting, I noticed a comment directing to a . Rather than keeping my answer under the (newly posted) duplicate, I deleted it and posted it under the duplicate source.   After a while, I noticed my  came up as an automated flag under the . This doesn't seem appropriate since, well, I'm biased and all...    Related:


Dropbox and Google Drive syncing the same folder at the same time, is it posible?

I am interested in using Dropbox and Google Drive to sync the same folder at the same time...  Is there any special consideration to be taken into account?  Any help is apreciated.


Can I use liquid nails to attach toe plate/sill plate to concrete floor?

Sorry for my choice of words yesterday.  Hope this is better explained:  ground water flooded two finished rooms in my basement.   Took out rotting, mildewed drywall, studs, sill plate, insulation.   A contractor dug a trench 10" wide in the floor at the base of the exterior walls, installed a floor-to-ceiling vapor barrier that drains any/all incoming moisture into that trench and out via a shiny new sump pump.  (For the first time in 30+ years, no water ingress.)   Now, I'm replacing those walls.  The trench the contractor dug was about 15" deep, lined with gravel, fitted with a porous pipe, covered with more gravel and finished with a layer of cement - how thick?  Maybe an inch or so...  There already are some cracks in the stuff.  But the gravel/pipe combo is working very well so no problems yet.    Except I need to put down a new sill-plate on the floor and am concerned that trying to drive anything into this cement will shatter it.  So I want to use liquid nails.  Think I can?


Prefilling tags when linking from an external site

I can see/predict some developer-oriented sites starting to use StackOverflow as their forum, instead of maintaining their own forum. I think it would be beneficial to both parties.  They can integrate Stack Overflow content in their site with tag-specific RSS feeds, and direct people to SO to ask questions.  To link people to ask questions, they can just link to stackoverflow.com/questions/ask. But it would be even more beneficial if they could prefill tags with their site moniker, e.g stackoverflow.com/questions/ask?tags=php,mysql,mysite.com.  Is this something worth considering? (both the feature of prefilling tags, and the wider context of use as a plugin to another site) Has there been previous discussion about this? Would SO find this beneficial? Or is it a bad idea and SO is mostly interested in "direct" traffic and not serving third-party sites?


Prove that $N(\gamma) = 1$ if, and only if, $\gamma$ is a unit in the ring $\mathbb{Z}[\sqrt{n}]$  Where $N$ is the norm function that maps $\gamma = a+b\sqrt{n} \mapsto \left | a^2-nb^2 \right |$  I have managed to prove $N(\gamma) = 1 \Rightarrow \gamma$ is a unit (i think), but cannot prove $\gamma$ is a unit $\Rightarrow N( \gamma ) = 1$  Any help would be appreciated, cheers


Force.Com Sidebar - Reference Data From Current Screen On URLs?

I am being lead to believe this is possible:  A URL on the Force.Com Sidebar Menu which references data from the currently open page.  i.e., /{!recordId}?nooverride=1    However, this does not work.  The brackets simply turn into percent encoded references on the resultant page.  Is it possible to pass information onto a URL on the Force.Com sidebar?


I am running the classify in Weka for a certain dataset and I've noticed that if I'm trying to predict a nominal value the output specifically shows the correctly and incorrectly predicted values. However, now I'm running it for a numerical attribute and the output is:  Correlation coefficient                 0.3305 Mean absolute error                     11.6268 Root mean squared error                 46.8547 Relative absolute error                 89.2645 % Root relative squared error             94.3886 % Total Number of Instances               36441    How do I interpret this? I've tried googling each notion but I don't understand much since statistics is not at all in my field of expertise. I would greatly appreciate an ELI5 type of answer in terms of statistics.


Do you think it's possible to include images into LaTeX without specifying the exact path to them. So instead of:  \includegraphics{path/to/image/myfig.pdf}   It would be:  \includegraphics{myfig.pdf}   While the image would still reside in the path/to/image/ directory. Basically, I'm asking if there is a macro that can recursively search for the image.  An alternative for me is to write a script outside of LaTeX that determines all the images that are included, performs the recursive search and copies those files temporarily in the same directory as the .tex file.


What's the difference between stored procedure and function in PostgreSQL 11?

In PostgreSQL 11 beta1 announcement, it is  that a major feature of the new version is  SQL Stored Procedures PostgreSQL 11 introduces SQL stored procedures that allow users to use embedded transactions (i.e. BEGIN, COMMIT/ROLLBACK) within a procedure. Procedures can be created using the CREATE PROCEDURE command and executed using the CALL command.  My questions are,  What's the difference between a procedure created with  and a traditional function created with ? From browsing the two documentation page, they seem to be quite similar and can both ,e.g., take parameters and return OUT values. Is transaction behavior the only difference?  I have written many functions in PL/PGSQL. Should I change my functions to the new procedures? (If so, what are the advantages?)


Scheduled class is not executing batch class

I've set up a schedulable class that calls a batch class, but when I run the test class, it successfully calls the schedulable class, but the batch class is never called.  What am I missing?  Here is the test class:  @isTest public class DDParticipantCampaignTest {     public static String CRON_EXP = '0 0 0 15 3 ? 2022';      static testMethod void testParticipant(){         Id DDEventCampaignRecordTypeId = Schema.SObjectType.Campaign.getRecordTypeInfosByName().get('DD Events') == null ? null : Schema.SObjectType.Campaign.getRecordTypeInfosByName().get('DD Events').getRecordTypeId();     Id DDDonationRecordTypeId = Schema.SObjectType.Opportunity.getRecordTypeInfosByName().get('DD Donations') == null ? null : Schema.SObjectType.Opportunity.getRecordTypeInfosByName().get('DD Donations').getRecordTypeId();     Datetime yesterday = Datetime.now().addDays(-1);     Campaign c = TestHarness.createCampaign(date.today(), 0);     c.RecordTypeId = DDEventCampaignRecordTypeId;     c.Name = 'Test DD Campaign';     insert c;     Test.setCreatedDate(c.Id, yesterday);     update c;      Contact p = new Contact(FirstName = 'Test', LastName = 'Participant', Email = 'test@participant.com');     p.DonorDrive_ID_walklikemadd__c = '123456';     insert p;     Test.setCreatedDate(p.Id, yesterday);     update p;      Contact d = TestHarness.createContact('Donor');     d.FirstName = 'Test';     d.DonorDrive_ID_walklikemadd__c = '12345';     insert d;     Test.setCreatedDate(d.Id, yesterday);     update d;      Opportunity o = TestHarness.createOpportunity(DDDonationRecordTypeId, c, d);     o.ddrive__Participant_First_Name__c = p.FirstName;     o.ddrive__Participant_Last_Name__c = p.LastName;     o.ddrive__Participant_Email__c = p.Email;     o.StageName = 'Closed Won';     o.CloseDate = date.today().addDays(-1);     insert o;      Test.setCreatedDate(o.Id, yesterday);     update o;      List<Opportunity> opps = [SELECT createdDate FROM Opportunity WHERE Id =: o.Id];      System.debug('Opportunity name: ' + o.Name);     System.debug('Participant name: ' + o.ddrive__Participant_First_Name__c + ' ' + o.ddrive__Participant_Last_Name__c);     System.debug('Opportunity last modified: ' + o.LastModifiedDate);     System.debug('Opportunity created: ' + opps[0].CreatedDate);      Test.startTest();     String jobId = System.schedule('ScheduledApexTest',         CRON_EXP,          new DDParticipantCampaignSched());      Test.stopTest();     List <CampaignMember> camp = new List <CampaignMember>();     String contactLastName;     String campaignName;     For(CampaignMember cm : [SELECT Id FROM CampaignMember]){         contactLastName = cm.Contact.LastName;         campaignName = cm.Campaign.Name;         if(contactLastName == 'Participant' && campaignName == 'Test DD Campaign'){             camp.add(cm);         }     }     System.assertEquals(camp.size(), 1); }  }   Here is the Schedulable class, which the test is calling successfully:  global class DDParticipantCampaignSched implements Schedulable{    global void execute(SchedulableContext sc) {       DDParticipantCampaignBatch part = new DDParticipantCampaignBatch();        database.executeBatch(part,50);    }  }   And here is the batch class, which is not being called:  global class DDParticipantCampaignBatch implements Database.Batchable<sObject> {    global database.Querylocator start(Database.BatchableContext bc) {      String query = 'SELECT Id '+                    ' FROM Opportunities'+                    ' WHERE (ddrive__Participant_First_Name__c != null'+                    ' AND ddrive__Participant_Last_Name__c != null'+                    ' AND CampaignId != null';      return Database.getQueryLocator(query);          }     global void execute(Database.BatchableContext bc, List<Opportunity> scope) {       if(scope.size() > 0){         DDParticipantCampaign.createCampaignMembers(scope);           }               }     global void finish(Database.BatchableContext bc) {     }  }


Hello I am trying to solve the following problem:   Let $X$ be a topological space, and let $\mathbb{R}$ have the Euclidean Topology (i.e., the usual topology). Let f and g be continuous maps from $X$ to $\mathbb{R}$. Show that the product $(f\cdot g)(x) = f(x)g(x)$ is continuous function from $X$ to $\mathbb{R}$. Similarly for, $h(x) = \min\{f(x),g(x)\}$.  My issue is finding continuous maps which I can compose to obtain $f(x)g(x)$ and $h(x)$.  Any help would be greatly appreciated.


Count the number of topological sorts for poset (A|)?

can someone please explain to me how to count the number of topological sorts  for poset(A|) where A = {2,3,4,8,9,16,27,81} ? Quick example would be nice. Please help...I have an exam in several hours. Thanks !


Equivalent definitions of convexity for $f\in\mathcal C^1(\mathbb R^n)$

I noticed many identical questions on this site relating to equivalent definitions of convexity, see for example , , , , , ,  and there might be more. So I wanted to create a "big list" of equivalent definitions of convex functions, I will start with some equivalent definitions and post my proofs in my answer below. Feel free to add any other equivalent definitions. This question can then serve as an abstract duplicate. Claim. Let $n\in\mathbb N$ and $f\in\mathcal C^1(\mathbb R^n)$. Then the following are equivalent:  $f$ is convex, i.e. $f(\lambda x_1 + (1-\lambda x_2))\le\lambda f(x_1)+(1-\lambda)f(x_2)$ for all $\lambda\in[0,1]$ and $x_1,x_2\in\mathbb R^n$. For all $x,y\in\mathbb R^n$, $\langle\nabla f(x)-\nabla f(y),x-y\rangle\geq0$. For every $x,y\in\mathbb R^n$, $f(y)\geq f(x)+\langle y-x,\nabla f(x)\rangle$.


How to check if a glob has an expansion?

Is there a good clean conventional way to do this?  For example, if there are any ".gz" files in a certain directory, I want to unzip them.  But if there aren't, I don't want to see any error.  If I use gzip -d /mydir/*.gz, I get the error:  gzip: /mydir/*.gz: No such file or directory   If I first shopt -s nullglob and then gzip -d /mydir/*.gz, I get the following:  gzip: compressed data not read from a terminal. Use -f to force decompression. For help, type: gzip -h   I have one method I know will work, which I'm posting as an answer.  I'm wondering if there's a better/cleaner way.  POSIX compatibility is a bonus, but not required.


Is there a program in Ubuntu repositories that will keep a clipboard history for me?

I occasionally clobber whatever I had already copied to the clipboard. It would rock to just be able to keep all of my clipboard history right in front of me.


How do I prove the following inequality (link included)?

For any two events $A$ and $B$, show that   $$(P(A\cap B))^2+(P(A\cap B^c))^2+(P(A^c\cap B))^2+(P(A^c\cap B^c))^2\ge\frac 1 4$$   I tried solving the question by writing $A \cap B^c = A - (A \cap B)$ and similiarly expanding the other brackets. But I am not able to proceed any forward.  I also tried applying the Boole's inequality and then squaring the respective terms, but still didn't get the required answer.  Can somebody help me with this question, please?  I would be extremely grateful.


How to set LibreOffice to suggest corrections for UK English?

I want to be given correction suggestions while setting a text in LibreOffice to English-UK.    Now it works for English-US, French and Romanian, as these are the languages that I have installed in Language Support. I cannot seem to have a setting to differentiate US/UK English as I was able in Xubuntu.    In LibreOffice English-UK is absent. How to add it?    In Tools/Options/Language Settings/Languages I get to the image above, but how to make English UK present there? it lacks that 'ABC-V' sign that is present for English USA, although in Tools/Options/Language Settings/Writing Aids an 'English-uk' IS PRESENT. But that is not enough for the corrector to function for English-UK.


getContentResolver()' on a null object reference Error while calling Java method from Kotlin Class

private lateinit var  main: MainActivity  override fun onCreate(savedInstanceState: Bundle?) {         super.onCreate(savedInstanceState)          setContentView(R.layout.activity_regions)  main = MainActivity() }      On create method  override fun onActivityResult(         requestCode: Int,         resultCode: Int,         data: Intent?     ) {         super.onActivityResult(requestCode, resultCode, data)         if (requestCode == MainActivity2.SCREEN_RECORD_REQUEST_CODE) {             if (resultCode == Activity.RESULT_OK) {                 //Set file path or Uri depending on SDK version                 main.setOutputPath()                 //Start screen recording                 hbRecorder.startScreenRecording(data, resultCode, this)             }         }     }  here is my  Kotlin method, main is my Java Classes object and I am trying to call the setOutPath Method but when I run the program it gives 'android.content.ContentResolver android.content.Context.getContentResolver()' on a null object reference error ContentResolver resolver; ContentValues contentValues; Uri mUri; @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP) public void setOutputPath() {     String filename = generateFileName();     if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {         resolver = getContentResolver();         contentValues = new ContentValues();         contentValues.put(MediaStore.Video.Media.RELATIVE_PATH, "Movies/" + "HBRecorder");         contentValues.put(MediaStore.Video.Media.TITLE, filename);         contentValues.put(MediaStore.MediaColumns.DISPLAY_NAME, filename);         contentValues.put(MediaStore.MediaColumns.MIME_TYPE, "video/mp4");         mUri = resolver.insert(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, contentValues);         //FILE NAME SHOULD BE THE SAME         hbRecorder.setFileName(filename);         hbRecorder.setOutputUri(mUri);     }else{         createFolder();         hbRecorder.setOutputPath(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES) +"/HBRecorder");     }     }  here is my java method. It gives me an error on this line. resolver = getContentResolver();


Visualize those little pictures as the front of vehicles like airplanes and trains. I wonder if I am right about my speculation below, and if so, if somebody could explain the exact reason. Sources are also welcome!  It seems to me that vehicle B and D  have relatively less resistance against air molecules attacking them (represented by arrows) as those are the ones common in use. It also seems like A has more - and C even more - resistance against wind as they kind of point in the opposite direction of B.


Are categorical variables standardized differently in penalized regression?

In penalized/regularized regression (lasso, ridge, etc.) the predictors are typically standardized to be centered at 0 and often to have variance 1. Are categorical predictors treated differently. If so, why? What are the consequences of using the same standardization? Is a reference available?


I have an application which sends a POST request to the VB forum software and logs someone in (without setting cookies or anything).  Once the user is logged in I create a variable that creates a path on their local machine.  c:\tempfolder\date\username  The problem is that some usernames are throwing "Illegal chars" exception. For example if my username was mas|fenix it would throw an exception..  Path.Combine( _         Environment.GetFolderPath(System.Environment.SpecialFolder.CommonApplicationData), _   DateTime.Now.ToString("ddMMyyhhmm") + "-" + form1.username)   I don't want to remove it from the string, but a folder with their username is created through FTP on a server. And this leads to my second question. If I am creating a folder on the server can I leave the "illegal chars" in? I only ask this because the server is Linux based, and I am not sure if Linux accepts it or not.  EDIT: It seems that URL encode is NOT what I want.. Here's what I want to do:  old username = mas|fenix new username = mas%xxfenix   Where %xx is the ASCII value or any other value that would easily identify the character.


How can I make the spacing of the two symbols, \otimes and \tildeotimes, identical?  \documentclass{article} \usepackage{amsmath} \DeclareMathOperator{\tildeotimes}{\tilde{\otimes}} \begin{document}     $a \otimes b$      $a \tildeotimes b$ \end{document}


Short dystopian novel about boy who lives on streets

I may not remember enough for this question to be answered.  I read this book 2 years ago; I grabbed it from a classroom library because I needed a book to read. It was definitely on the older end - at least, the copy looked like it had seen better days. I remember enjoying it, which is odd because I dislike most dystopian books - I think I grabbed it because the cover was interesting? I don't remember. It was definitely a middle grade or YA book - for kids, anyway.  It was very short (150 pages or less) and a cheap paperback. The protagonist was a younger teenager, who was living on the streets for some significant percentage of the novel. He met up with a much older man who taught him stuff (I think how to read) in this hut/hovel thing. I remember books being very important (but in a different way than Fahrenheit 451 - no one really knew how to read, I think). I think the main character narrated in first person, and it was in a sort of slang, along the lines of that in The Moon is a Harsh Mistress, though again, not entirely sure.     The novel ends with the older man being burned alive/tortured to death, I think, and the boy just runs off into the darkness.   I keep kind of associating this book with Freak the Mighty for whatever reason, but I don't know why, as I know they have very different plots.


How do I keep fruit from sinking to the bottom of my cake?

I recently had the opportunity to cook a series of yoghurt cakes.  The first batch were tasty yet somewhat dense.  For the second batch, I (successfully) attempted to lighten the cake by first beating the egg whites until foamy before folding in the rest of the mixture.  Both times I used fruit (raspberries) in my mixtures.  For the dense batch, they 'floated' throughout the mixture.  In my second, lighter batch, they all sank to the bottom.  As I found the second, lighter mixture to be better in general, is there some trick to keeping fruit from sinking like that?


Show that $$\int_0^\infty \frac{\sin x}{e^x-1}\,dx=\sum_{n=1}^\infty \frac{1}{n^2+1}.$$  Thoughts: I think I have to use the dominated convergence theorem, but I don't see how.. I tried expanding $\frac{1}{1-e^x}=1+e^x+e^{2x}+\ldots$ but then realised this works only $|e^x|<1$.


What's the means of variable >> variable in c++?

I want to known a simple thing. I have this part of code:  int datam=2; for (int j=0; j<4; j++){   cout<<((datam >> j)&1);  }   What does it print this code? Does it do the AND bit to bit between 1 and datam>>j? As operator, what's the meaning of datam >> j? Thanks.


I made this function to convert a vector into a valarray:  template <typename T> valarray<T>* ValArrayTools::vectorToValArray(vector<T>* vector) { valarray<T>* val = new valarray<T>(vector->size()); for(int i = 0; i < vector->size(); i++) {     val[i] = vector[i]; } return val;   }  I tried to use a template so that I can use this function with every possible type.  Now I want to convert a   vector<short int> buffer;   into a   valarray<short int>* data;   by using  sf->data = ValArrayTools::vectorToValArray<short int>(&buffer);   But I get this error:  CMakeFiles\LPC-Vocoder_Tests.dir/objects.a(ShortFileLoader.cpp.obj): In function `ZN15ShortFileLoader17generateShortFileEv': C:/Users/****/Documents/Uni/SS18/**Projekt/LPC-Vocoder/src/ShortFileLoader.cpp:33: undefined reference to `std::valarray<short>* ValArrayTools::vectorToValArray<short>(std::vector<short, std::allocator<short> >*)'


Is there a way to import Sketchup scenes into Blender as cameras?  I can get the geometry into Blender without any problems; my issue is that I'd also like to bring along the scene viewpoint as a camera.   The data obtained from SketchUP API is like this:  mod = Sketchup.active_model vue = mod.active_view cam = vue.camera  cam.eye > Point3d(240.719, -236.069, 102.276)  cam.target > Point3d(-285.372, 553.004, -82.0446)  cam.fov > 35.0   What is a convenient way to convert this into a new camera?


Is my Laptop compatible for a dual boot?

I have an asus laptop, windows 8 is the current OS. I am trying to install ubuntu as a dual boot, so far I have tried downloading it from the ubuntu website however a message error showed when I tried to reboot and now can't replicate this message, it said the file contained some sort of error. Next I tried to boot from USB, I don't have a cd drive so CD isn't an option. No luck with the USB it didn't recognize the files. Is there a possibility that my laptop isn't compatible with Ubuntu?  Thanks.


"Set up OneDrive" dialog box keeps appearing every login

Every time I start up my windows 10 Home edition PC, after a few minutes this thing will pop up.   I always have to close it, then go to its tray icon and close it there.  I don't want to use it. How can I stop it from starting up every day?  I use a local win10 account, not connected to online  edit: my task manager


Pgfplots: how to fill bounded area under a curve using addplot and fill?

I am looking shade the bounded area under the graph of f(x)=x^2 from 0 to 1. For my other plots I was fine using the shading with coordinates because they were all polygons. I've come across a bunch of threads with similar situations but didn't see anything quite similar enough for me to copy and manipulate the code. I The image below is exactly how I want it with the clear exception of the shading outside the box. Thanks  \usepackage{pgfplots} \pgfplotsset{width=7cm,compat=1.8}    \begin{figure}[!h]  \centering  \begin{tikzpicture}      \begin{axis}[enlargelimits=0.1]     \addplot[domain=-.15:1.05,blue] {x^2};         \addplot [thick,color=blue,mark=o,fill=blue,                      fill opacity=0.05]coordinates {             (1, 1)              (1, 0)             (0, 0)  };             \node [rotate=48] at (axis cs:  .7,  .59) {$y=x^2$};             \node [rotate=90] at (axis cs:  1.05,  .25) {$x=1$};     \end{axis} \end{tikzpicture}   \caption{$R=\left\{(x,y) \ |  \ 0 \leq y \leq x^2, x\leq 1 \right\}$}  \end{figure} \\     Edit:  The first and second answers below are perfect. What if I wanted the shaded area under the curve to stop at a certain y-value, instead of extending all the way down to the x-axis? Say, it goes down to y=.2?


Use american english as standard in LaTeX

My latex editor (TeXshop, macbook) always uses UK english. I can change this but then next time I restart LaTeX it is the same problem again, UK english. How can one permanently change to american english?


the group homomorphism $f:G\rightarrow H$ is exactly then an injection when $ker(f)=eG$

I have to show that a group homomorphism $f:G\rightarrow H$ is a injective function when $ker(f):=[u\in G:f(u)=eH]=eG$,$\:e$ is the neutral element.  Attempt: If we take $ker(f)=\{a\}$   $f(a\#b)=f(a)*f(b)$  $f(a\#b)=eH*f(b)=eH$ $\implies ker(f)=[a,(a\neq b)]$ then it wouldnt be an injection   but if $ker(f)=eG$ then it works  $f(eG\#b)=f(eG)*f(b)$  $f(eG)  =eH*f(b)=eH$ is that correct?


Do private religious institutions ever consider hiring someone clearly not affiliated with said religion for a faculty position?

I am wondering if private religious universities consider hiring faculty members who are clearly not affiliated with said religion. For example, someone who is clearly Muslim applying to a Jesuit university for a tenure track position. Is it a waste of time for the very obviously Muslim candidate in this example to submit an application?


Finding the degree of the minimal polynomial

Let $A\in M_3(\mathbb{R})$ be such that $A^8=I$, Then : $(1)$ The minimal polynomial of $A$ can only be of degree $2$. $(2)$ The minimal polynomial of $A$ can only be of degree $3$. $(3)$ either $A=I$ or $-I$ $(4)$ There are uncountably many $A$ satisfying the above Here's my approach: An annihilating polynomial of $A$ is $p(x)=x^8-1 = (x-1)(x+1)(x^2+1)(x^4+1)$ and we know that $m_A(x)|p(x)$ and also $m_A(x)|\chi_A(x)$ and $\chi_A(x)$ is of degree $3$ so $m_A(x)$ must be at most degree $3$. Let $A= \begin{pmatrix} 0 & -1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{pmatrix}$ (as given by  Ravi Fernando in the comments) then $m_A(x)=(x-1)(x^2+1)$ so Option $(1)$,$(2)$,$(3)$ are false 4th option is true because we can take all the matrix which are similar to $A$


Given that $x+\frac{1}{x}=\sqrt{3}$, find $x^{18}+x^{24}$  Hints are appreciated. Thanks in advance.


Mac OS 10.13.16 Python 3.7 PyCharm    I was going through a tutorial for this guessing game and I came across something I thought was weird. On line 18 I call on the guess variable, which I though was a Local Variable under the for loop created above it, let's me call on it as if it were a Global. I though if a var is declared within a function or loop it makes it a local. Can someone help explain this to me.   import random print("Hello what is your name?") name = input() print("Well " + name + " I am thinking of a number between 1 and 20") secretNumber = random.randint(1,20)  for guessesTaken in range(1, 7):     print("Take a guess.")     guess = int(input())     if guess < secretNumber:         print("Sorry to low")     elif guess > secretNumber:         print("Sorry to high")     else:         break   if guess == secretNumber:     print("Great job " + name + ". You guessed my number in " + str(guessesTaken) + " moves.") else:     print("Sorry the number I was thinking of is " + str(secretNumber))


What is the advantages/disadvantages of using inline functions in C++? I see that it only increases performance for the code that the compiler outputs, but with today's optimized compilers, fast CPUs, huge memory etc. (not like in the 1980< where memory was scarce and everything had to fit in 100KB of memory) what advantages do they really have today?


Vector space over an infinite field which is a finite union of subspaces

Let $V=\bigcup_{i=1}^n W_i$ where $W_i$'s are subspaces of a vector space $V$ over an infinite field $F$. Show that $V=W_r$ for some $1 \leq r \leq n$.   I know the result "Let $W_1 \cup W_2$ is a subspace of a vector space $V$ iff $W_1 \subseteq W_2$ or $W_2 \subseteq W_1$."  Now can I extend this to some $n$ subspaces.  I have some answers  & .  So before someone put it as a duplicate I want to mention that I want a proof of this problem using basic facts which we use in proving the mentioned result.


So I know this is a commonly asked question (I've been looking into this for a while now), however, I've been having some issues. I'm inserting a piece of data into my SQLite database, and then I want to retrieve the ID of that newly inserted row. I have a 'globalId' column which is an auto incrementing integer. I've tried many things such as using last_insert_rowid(), getting the max id in the database after inserting it, but neither seem to work.  DBConnection.sql.modifyQuery("INSERT INTO pp_data (...) VALUES (...)");  is my modifyQuery, I've replaced all the actual data with ... because there's a lot of stuff. I then have a readQuery method which will return a ResultSet, and with that, I need to get the column Id.  Thanks in advance!


A string value 58.83 is changed to 56,829999999999998 when inserted into a Oracle database FLOAT(126) column.  We are using:   .NET Entity Framework 6,  Devart dotConnect for Oracle Professional version 8.4.171.0 and  Oracle 11g Enterprise Edition Release 11.2.0.3.0.    The string gets inserted within a CLOB field in Oracle then transformed to into a decimal in C# (the value still reads 58.83 after conversion to a decimal) before finally being inserted in a FLOAT field via Devart. The observed value stored in the column is 56,829999999999998.  When the value is read from the database it is still the wrong value.  What is causing the value to change from 58.83 to 56,829999999999998, Entity Framework, Devart or Oracle and how can we correct this behaviour?   UPDATE When testing from SQL Developer the numbers get inserted correctly.  The solution for the problem is to indeed, as comments suggested, change the data type to Number. I set the precision to * and scale (digits to the right of the decimal point) as 10.   Oracle docs state "This data type should never be used for precise values, such as currency."  This post   helped explaining the difference between Number and Decimal data types when deciding an alternative to using a Float.


How can I add a subtitle to a section title?

I'd like to do this for some of my sections but not all. I'd also like to maintain the current spacing; for example, if the vspacing is 1cm from section title to body text (at 100% zoom), then I'd like it to be 1cm from the subtitle to body text.  Thanks.


What people are doing is basically taking the UA-XXXXXX code that you normally get with analytics, and they are generating calls against it. This is skewing my analytics stats. On top of that, in Google WebMaster tools, it's also causing this:    It looks like somehow these pages, with my code on or at least with the generated code on, is making Google Webmaster tools think I have lots of 404's. This can't possibly be good for my rankings.  Anyone know if there is anything you can do to stop this?


Is there a way to run a privileged command upon successful SSH login (not necessarily with shell or PTY)?

I'd like to run a privileged command upon successful SSH logins at the server's end. However, this has to be in the server configuration (sshd_config or anything else that cannot be manipulated or circumvented by the user) as I need this to be mandatory. That is, however restricted the system account used is, it needs to be able to manipulate a piece of data that requires superuser privileges (namely use ipset add conditionally - which I can script). Oh and I'd like to be able to access the contents of SSH_CLIENT, please - despite privileged execution. The command also must be unaffected by ChrootDirectory.  I am aware of /etc/ssh/sshrc, but that appears to be "client-side", i.e. it's being run by the user who is logging into the machine.  Does such a facility exist in OpenSSH? I am using version 6.6.    Also, the man page (ssh(1)) isn't all too clear about sshrc:     /etc/ssh/sshrc   Commands in this file are executed by ssh when the user logs in, just before the user's   shell (or command) is started.  See the sshd(8) manual page for more information.   So does this mean it also runs whenever external commands (via ForceCommand) or subsystems like internal-sftp get invoked, despite restricting settings like PTY allocation or forcing a chroot? If so, I could resort to a restrictive /etc/sudoers entry if there is no other way at all.  NB: I am not using inetd for obvious reasons (see sshd(8)) as described .


To solve the following problem      Three coins are tossed. If one of them shows a tails, what is the probability that all three coins show tails?   I tried $1\cdot\frac12\cdot\frac12$ where $1$ is the probability for the first coin that shows tails, and $\frac12$ is the probability for the other two coins that can be heads or tails.   This answer does not match the expected one. Where am I wrong?


What's inside the xip file ? Why don't download from app store?


How can i prematurely close an ajax call from php?

okay so,  [browser] ==> makes AJAX call to webserver running php  i have the following php code,  <?php    //Process Ajax request   //return success code to browser    //continue with other php code  ?>   How exactly can i achieve the second part i.e "return success code to browser"? and continue with processing php code.


how to make python3 the default python? system wide not for a specific user

with python 2 reaching EOL how to make python3 the default python ? ...  system wide not just a specific script  should we do a symbolic link ?   sudo ln -s /usr/bin/python3 /usr/local/bin/python   or possibly   sudo update-alternatives --set python /usr/bin/python3    Does it matter which ?  I am on a box without python 2 so I have no python 2 specific libraries to deal with.  of course just making below edit to your ~/.bashrc will only impact one user   alias python=python3   I am looking for a system wide change for all processes and userids not just  me


I need to know the difference between two phrases "learn by heart" and "learn by rote". I would be grateful if you could explain it to me. I'm not a native English speaker.


Show that $H = \{g ∈ G : \hbox{|g| is finite}\}$ is a subgroup

I need to prove the following, Suppose $G$ is an Abelian group. Show that $H = \{g ∈ G : |g|\ \hbox{is finite}\}$ is a subgroup. I know that to prove a subset is a subgroup one can prove $ab^{-1} \in H$ for all $a,b \in H$ but I'm not sure how to apply that for this problem.


I have a very large table in Excel (1000's of rows) and I filter it to only show 10 rows.   I wonder if there is a way to delete the rows not shown (i.e. don't meet filter conditions)? This would enable me to reduce the file size before I send it.  There are many thousands of rows down under the table the user has created complex formulas and graphs which wont carry if I copy across to another worksheet if I just copy the rows.


Which is the correct triangle to draw to derive the force component along a rope?

When solving for the force component ($F$) in the direction of the string, the following triangle is drawn.    (Adapted from )  Giving $F=mg * cos θ$  Why is it drawn that way, and not like this?    Which would instead give:  $F=mg / cos θ$  $ cos θ=mg/F$  $F=mg / cos θ$


What does Tolkien say about Ancalagon's physical appearance, especially his size?

Questions like  dealing with Ancalagon in particular, and Middle-earth's dragons in general, clearly show that Ancalagon was ridiculously, absurdly, unimaginably enormous.      The non-canonical image above shows one person's impression of how the different dragons of Middle-earth stacked up, with Smaug looking absolutely tiny at the far left, and Ancalagon on the right, too big to even fit in the picture.    Below, a presumably canonical picture, painted by Tolkien himself, shows Smaug in relation to Bilbo.  The rough measurements I took from this image suggest that Smaug is about 11 times longer than Bilbo is tall.  Depending on how tall Bilbo is - almost certainly somewhere between 3'6" and 4' tall - Smaug is approximately 38-44 feet long.      If the first picture is even vaguely accurate, Ancalagon would appear to be a minimum of something like 720 feet long from the tip of his nose to the end of his tail:  the visible portions of his head and body are at least 6 times longer than Smaug is from end to end, and we have to assume that the portion of his body that is out of frame is at least 3 times longer still, perhaps even 4 times or more (so the upper range of his length might exceed 1,000 feet).  Does Tolkien give us any way to estimate how big Ancalagon was?  It isn't his normal practice to describe things in great detail, I realize, but he often gives a few hints that allow for some rough approximation to be made.  Does anything he says suggest that the first image is anything like what he had in mind?  Note:  I haven't read anything about Ancalagon from Tolkien's own pen, except a few quotes on this site;  the most important bit of information I've gleaned is that he smashed 3 volcanoes to pieces when he died (or something like that).  How accurate is this, and what else did Tolkien say?    This question is not a duplicate of "", because none of the answers to that question address Ancalagon's size in any detail - except my own, which is based on what little information I was able to glean from the two pictures I included in this question.  All the other answers address how Ancalagon was killed, not how big he was.  I have no interest in how he died, only how big he was, or rather, what hints we can find that might give some indication of how big he was.  I wouldn't ask this question, linking that question in my own, if it contained the information I am interested in.    Note 2:  Regarding the relative sizes and impressiveness of Smaug and Ancalagon:  Imagine a meeting between Smaug and Ancalagon in Dragon Heaven: Smaug: "How'd you die?" Ancalagon: "A flying boat full of fire made by the Angels and driven by a Magic Elf smashed into me, so I fell onto a mountain and broke it, and I died. The Magic Elf lives in outer space now, and the boat turned into a star. How'd you die?" Smaug: "Um... Some dude shot me with an arrow."


Sci-fi short story: protagonist being convinced by a salesman to buy a better model because his children's work would pay for it, not his

I came across a New York Times article today with the title .  I have remembered that I read a short science fiction story a while back where the main character was buying something and the salesman convinced him to buy the newer/better model since his children would be paying for it and not him with hours that they would be working to pay it off. After some struggle with the decision, the main character accepted.


I have a wide table, which by default makes the page look like:  |    xxxxxx         | |    xxxxxx         | |    ______________ | |    |             || |    |             || |    ______________ | |    xxxxxx         | |    xxxxx          |   I'd  like it look like:  |    xxxxxx         | |    xxxxxx         | |  ________________ | | |                || | |                || |  ________________ | |    xxxxxx         | |    xxxxx          |   I have tried setting the geomotry:  \newgeometry{left=0.2in, right=0.2in} \begin{table} ..... \end{table} \restoregeometry   But this will create a single page for the table.


Here is my working example. When I add pictures and mathematical formulas, everything looks much worse. The more complicated is content, the less aligned are lines.  \documentclass[a4paper]{article} \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage{lipsum}  \begin{document}  \section{One} \lipsum{1-11}  \section{Two} \lipsum{1-11}  \section{Three} \lipsum{1-11}  \end{document}   Here is a printscreen from pdf viewer, I added few horizontal lines to show the problem. Corresponding baselines are not on the same height, are too high or too low   I also wish to know how set:   height of a text line in paragraph (is it fontsize?) height of space between text lines in paragraph (\baselineskip - fontsize?) height of space before and after a paragraph height of a text line in section/chapter/part name height of space between text lines in section/chapter/part name height of space before and after a section/chapter/part name height of space before and after an environment (equation, figure, itemize)   I know how to add \vspace{value}, but I don't know where, I don't know how to overwrite defaults. I prefer to define those all values in one place (at the beginning of document) and use them by own environments/commands (\mysection{}) or by standard environments/commands (\section{}). Can someone show me how to do it  Can you help me? And sorry for my bad English


How do I update Custom Label's value using apex? Which one would be a better option metadata api or tooling api? Please provide example

I'am working on post deployment automation process in salesforce. I am stuck on how should I update values in custom labels which needs tobe updated manually after a sandbox refresh.


Why don't we allow low reputation users to insert more than two images in their posts?

I was searching for privileges one can get after a certain amount of reputation, and I ended up with this question in my mind: Why don't we allow users with low reputation to insert more than two images or links in their posts?  Is it good to make restrictions for them? Let's say someone is going to post a good question and he/she needs to insert three images to explain it properly; because this can't be done the question may become vague or incomplete to answer, and ultimately be flagged by others. Is this a rational decision for those users?  Yes, I believe that restrictions should be there to make a control over new users like for voting privileges but is it good to make restrictions on Questions and Answers?  Here is my question:  Is it decent to restrict new users in such a manner?


How to make specfic width of the node in tikzpicture

I am new to LaTex. I am trying to make diagram like,    My Latex code for this, is  \begin{figure}[H] \centering  \begin{tikzpicture}[node distance = 4cm, auto]     % Place nodes     \node [block] (inst) (imp) {Spark SQL};     \node [block, right=1cm of imp] (data) {Spark Streaming};     \node [block, right=1cm of data] (sql) {MLib-Machine Learning};     \node [block, right=1cm of sql] (runsql) {GraphX};     \node [block, align=left,  minimum width=10cm, below=1cm of runsql] (visual) {Apache Spark};  \end{tikzpicture}     \caption{The Spark stack}     \label{fig:sysblocks} \end{figure}   With this code, I am able to get image like this.    Any Help would be great. Thanks in advance.


I have animation where object changes his shape using shape keys, and I want to make some animation smoothing with graph editor. Is there a way to use graph editor for shape key animation?


How can I change the IMEI number on my iPhone 6?

How do I change the IMEI number of my iPhone?


How can I get forward this terminal interface?

I'm working on a project based on installing a server FTP on Amazon Web Services. I'm doing it through Ubuntu 16.04. No such a matter, everything is doing good so far.  But I got stuck in a step that requires me to type some commands to modify a specific file. I actually typed the commands, but I don't know what to press to save changes and get on the next step. I tried pressing Escape and ControlEnter, but nothing seems to happen. Does anyone have a clue?


Is it a good idea to include a work draft in application to US Physics graduate school?

I and my research advisor have a manuscript that still requires some final polish to be sent for peer review. In the meantime, I am applying for graduate school. Some graduate schools allow me to upload any additional material I think helpful. First note: We are not worried about our idea been stolen even if we expose it on the internet(My advisor even put all his finished manuscripts on arXiv, including those rejected by peer review. He in fact wants his work be read by more people and more people could exchange ideas with him, unlike the majority of academia who would keep their work not openly-accessible before published). I ask my advisor for consent that if I can include the current version of the manuscript as a draft of our work in my application to those schools? The advisor is not familiar with how grad school admission goes in the US so he said he understood that I want to present research experience but he prefers that I state them in SoP instead. He further said nevertheless if I really want to present a draft, I need to follow the ethics code in that the ultimate rule is that I cannot damage his academic reputation, at least point out in the draft that it's not the final version in his view. Although I have this consent, I still hesitate about it. Which one makes a stronger application? Including a Draft? or just state my work in SoP? Or the difference is trivial?


I know this question has probably been answered before.  I have seen many threads about this in various places, but the answers are usually hard to extract for me.  I am looking for help with an example usage of the 'sed' command.  Say I wanted to act upon the file "hello.txt" (in same directory as prompt).  Anywhere it contained the phrase "few", it should be changed to "asd".  What would the command look like?


I'm using Microsoft Word 2010 and I worked in a word-2003 compatible document (.doc). After hours of working, I selected a half of text and did Ctrl+X to copy it into another document. Surprising, after closing the current document and opening a new one and pressing Ctrl+V, nothing happened. After closing original document, ms word asked me if I want to save the clipboard buffer and I pressed No, as I didn't knew that MS Word has it's own clipboard.  Is there a way to recover that text that was "cutten" from original document and never "pasted" to the new one? The PC was not rebooted so i guess all my temp files are here.


Why is my computer connecting to Skynet? Is it a virus or other type of malware?

I recently ran a "netstat" command on my Windows XP system, and saw some connections to "Iron.Skynet". Well Iron is my Computers Name, but I've not come across the name "Skynet" on my system before.  Worried that I had a malware or virus infection, I did a search of the filesystem for "skynet" and didn't find anything, but then I did a search in the registry for "Skynet" and found the following:  in the branch named:  HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\   there's a value named "DhcpDomain" and its value is "Skynet"  Does anyone know what this is all about? Should I be worried? I've run various virus scanners and none of them found anything.


Is using import java.util.* undesirable?

Is using   import java.util.*   not favorable compared to calling on the specific packages? I was wondering if its significantly inefficient to a program to call on all the packages, rather than listing them out specifically such as:   import java.util.Scanner;  import java.util.Math;   etc. I am preparing for interviews and want to make sure I have good coding practices.


Formal Proof that area of a rectangle is $ab$

I tried to prove that the area of a rectangle is $ab$ given side lengths $a$ and $b$.  The best I can do is the assume the area of a $1\times1$ square is $1$. Then not the number of $1\times1$ squares that fit in an $a\times b$ rectangle is $ab$. Therefore area is $a\cdot b$. This does not seem rigorous however.


Configuring to detect if a command does not exist, suggest installation

Can the zsh shell be configured to show what bash shows when a command does not exist, similarly to this:  kahless:~$ sysv-rc-conf   The program 'sysv-rc-conf' is currently not installed.  You can install it by typing:   sudo apt-get install sysv-rc-conf   rather than the ZSH prompt:  [kahless /home/teward]% sysv-rc-conf   zsh: command not found: sysv-rc-conf   Note I do not want to change the prompt itself, but I want to change the result from zsh: command not found to a bash-like output of The program 'progname' is currently not installed. You can install it by typing: or similar.  Is this possible with ZSH?