What dictates an item being considered "worn or carried"?

If a stranger sleight of hands a feather into one of your player's hats/helmet, does that feather count as being worn or carried by the player?  If so or if not, can a spell like  be cast on that feather?     If the point you choose is on an object you are holding or one that isn't being worn or carried, the darkness emanates from the object and moves with it. Completely covering the source of the darkness with an opaque object, such as a bowl or a helm, blocks the darkness.   What about an arrow that was fired and lodged into an enemy, or an object being held by your own mage hand? (Mage hand is not a concentration spell.)


Why is my command-line hash different from online MD5 hash results?

On a  (Leopard) PowerPC, if I do: echo "hello" | md5  on the command line, the result is:  b1946ac92492d2347c6235b4d2611184   But if I enter hello into one of the online MD5 hash sites like , I get:  5d41402abc4b2a76b9719d911017c592   Am I doing something wrong? If I want to use MD5 on the go, how can I make sure what I'm getting on the command line will agree with the online md5 tools?


Return 0 for negative numbers using a short list of functions

I'm using a CAD software that allows you to calculate a value using a small set of built in functions. I have the formula complete for the input (call it 'x') of this formula, I just need to return either 0 if 'x' is negative or 'x' if not.   Here's the list of formulas/functions available:   ABS (absolute)  ACOS (Arccosine) ASIN (Arcsine) ATAN (Arctan) COS (Cosine) COSH (Hyperbolic Cosine) INT (Truncate to Integer) LOG (Log base e) LOG10 (Log base 10) SIN (Sine) SINH (Hyperbolic Sine) SQR (Square root) TAN (Tangent) TANH (Hyperbolic Tangent)   Is there anyway to achieve this?  Thanks in advance for any help!


I know how to show that Y is complete and sufficient for part A using the exponential family form, but how do I get the UMVUE for part B?  I know we probably use Y and go for an unbiased function of Y, but I simply do not know how to get this.


This question attempts to collect the few pearls among the dozens of bad C++ books that are published every year. Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a well-written C++ book. It is way too big and complex for doing this. In fact, it is so big and complex, that there are very many very bad C++ books out there. And we are not talking about bad style, but things like sporting glaringly obvious factual errors and promoting abysmally bad programming styles. Please edit the accepted answer to provide quality books and an approximate skill level — preferably after discussing your addition in . (The regulars might mercilessly undo your work if they disagree with a recommendation.) Add a short blurb/description about each book that you have personally read/benefited from. Feel free to debate quality, headings, etc. Books that meet the criteria will be added to the list.  Books that have reviews by the Association of C and C++ Users (ACCU) have links to the review. *Note: FAQs and other resources can be found in the  and under .


Decisional Diffie-Hellman: compute Legendre symbol of $g^{ab}$ from $g^a$ and $g^b$?

From :     Importantly, the DDH assumption does not hold in the multiplicative group $\mathbb {Z} _{p}^{*}$, where $p$ is prime. This is because given $g^{a}$ and $g^{b}$, one can efficiently compute the Legendre symbol of $g^{ab}$, giving a successful method to distinguish $g^{ab}$ from a random group element.   The only way I can think of to distinguish $g^c$ from $g^{ab}$ is:    If $\left(\frac{g}{p}\right)=-1$, then $\left(\frac{g^{ab}}{p}\right) = 1$ if and only if $a$ or $b$ is even (which is $3/4$ of the times). So if $\left(\frac{g^c}{p}\right) =-1$, probably $g^c\neq g^{ab}$. Nothing is certain.   How'd do you compute $\left(\frac{g^{ab}}{p}\right)$ given $g^a$ and $g^b$?


How to encrypt a single folder on my external hard drive?

I'd like to encrypt a single folder in my external hard drive. Which GUI software should I use?


What is the best way of including Matlab code in a LaTeX document?

I know this is a popular problem. I have read that the matlab-prettifier package yields good results. My Editor told me, I am missing this package, though. I don't know how to download the package to ubuntu. Apparently, I have to do it manually.  Anyways, are there any other ways?  I have tried the Matlab publishing option. It generates a code, which is more or less just a  \begin{verbatim} ... \end{verbatim}  It is not in color.


'[Error writing /filename: Permission denied]' while trying to save a file using the nano editor

Using the Nano text editor, I'm trying to save and exit a file.  I already have the file named.  I click Ctrl+X to exit. And then I click Y because I want to save the file. It asks for file to write, I pressed Enter to use the default name because its already named.  The problem is I get this message.   [Error writing /filename: Permission denied]   What am I doing wrong?


Will Ubuntu 14.04 work on Asus M5a97 r2.0?

I know it will work, but what problems will I encounter? What drivers should I download? And how do I install this from an external optical drive?


Some applications doesn't switch the theme on Ubuntu 18.04

When i'm switching the theme in Gnome Tweak tool some applications like calculator and system monitor doesn't switch it. They are just stuck on Adwaita (default) theme. In another apps like Files everything is good. Is this a bug of a new version of Ubuntu or i am doing something wrong? I am also using Ubuntu 16.04 and all these apps are switching themes perfectly.  Current theme is Arc-Dark but some apps are still use Adwaita:


How to use request.query inside of regex

I have this search controller and I want to set it up to check every letter in search input but I don't know how to do it with regex.  module.exports.search = (req, res, next) => {   Character.find({     $or: [       { firstName: req.query.search },       { lastName: req.query.search }     ]   })     .then(characters => {       res.status(200).send(characters);     })     .catch(next); }   Also, I have tried with   { firstName: /req.query.search/ }   , but it doesn't work. Any help would be great.


How do I prove my input is SQL injection safe? I need an example of sql injection to fail on my site

I'm writing my final thesis and I need image illustration that one of my web input fields is sql injection safe! I have a php backend and a my sql database. I have used prepared statements for my queries so they should be safe right? However I need some screen dumbs of me trying to "hack" my input field to prove that it works. I'm not a hacker so I don't know any working examples. I know that I have to break the sql syntax somehow and then write some sql query that eventually would be run. I would like some really simple example, eventually truncate table or something like that, how can I illustrate this?    php Code that should be injection safe right? (please confirm ;)  if($action == 'layout'){ $pos = 1; foreach($_POST as $key => $value) {     if (strstr($key, 'se')){         $values = [];         foreach($value as $se) {             $values[] = $se;         }          $stmt = $mysqli_link->prepare("REPLACE INTO tblSvgElement(PlaceID, SVG, SVGPosition, Path1Color, Path2Color, Path3Color) VALUES (?,?,?,?,?,?)");         $stmt->bind_param("iissss", $zite_id, $values[0], $pos, $values[1], $values[2], $values[3]);         $stmt->execute();         $pos +=1;     } } $stmt->close(); $mysqli_link->close();   }


How do I create a live USB installer from a Mac?

I have a new PC and I want to install Ubuntu on it. I only have a Mac to create the installation medium. How can I create a live USB for installation?


Error on sudo apt-get update, 404 Not Found , and error on sudo apt-get update in Ubuntu 13.04

I try to use Ubuntu 13.04 to run a specific project that works only on Ubuntu 13.04. I failed to get git and g++, so I tried  and now I have problems with sudo apt-get update


Are Prime numbers odd numbers or is there something else going on?

There are even numbers and odd numbers, so if at least one prime was even, it would be divided by 2 perfectly. I am sorry if this is a stupid question. Just wanting to clarify some things


Space horror book series. Cryo-sleep spaceship escapes dying Earth but is captured en-route

I've been looking for this book series for a few years. Earth is coming to an end and a select few are selected to go to some distant planet but never make it. Instead, and this is well before they know it, they end up on another much larger spaceship that uses the data from their ship about Earth to create a very weird world using paintings and other data in an attempt to replicate what it thinks their world is like.   Now, I don't remember many specific details, but the biggest one I do remember is that in cryosleep one of women has a baby and this baby is evil and takes control of its mother as a host.   The people go through a bunch of hardships and it's spread through a few books which I never finished so I don't know how it ends, but I would like to finish reading them if possible.


Deactivating italic text in body of a "definition" environment

I definied a new theorem via  \newtheorem{def}{definition}   But the text has a italic font and i do not want that. how can i deactivate the italic font?


I have just upgraded from 16.04 to 16.10 then 17.04 through the system upgrades method and after logging in, I get a black screen and my mouse cursor once the KDE loading finishes.  Normally there used to be a wallpaper, a taskbar at the bottom, and I could use alt+f1 to open the KDE search for application and/or files.  I can still control the system using a terminal(ie open system settings or chromium) with my ctrl+alt+t shortcut to open one, however I would like to recover KDE to a working state and I can't find a dupliate that would fix this since I don't primarily use the console for everything and don't know a lot of the commands.  If it helps, I  have an Intel processor and graphics card


For some reason the pivot point on my object has become rotated (other objects show normally oriented pivot points). I have to set the "transformation orientation" (see the bottom of my screenshot) to be able to see it though. Does anyone know how to change it back? That is, change it to be aligned with the "world orientation".


Is hp compaq elite 8300 supported for Ubuntu 12.04 32 bit version?

I'm using Ubuntu 12.04 32 bit on a HP Compaq Elite 8300 PC. Sometimes my machine freezes while I'm working. I want to know whether Ubuntu is well-supported on this hardware.


I have the following table:  \begin{table}[htb] \begin{tikzpicture} \node (table) [inner sep=0pt] { \begin{tabular}{ l | l }   {\bf Symptom} & {\bf Metric} \\ \hline Class that has many accessor methods and accesses a lot of external data & ATFD is more than a few\\ Class that is large and complex & WMC is high\\ Class that has a lot of methods that only operate on a proper subset of the instance variable set & TCC is low\\ \end{tabular} }; \draw [rounded corners=.5em] (table.north west) rectangle (table.south east); \end{tikzpicture} \caption{God class symptoms} \label{tbl:god_class} \end{table}   Now I want to force the width of the table to be the same as the \textwidth, either by linewrapping of table text or by scaling. How can I achieve that?


Medium Voltage Synchronous Motor Protection

How is the wound field of a medium voltage synchronous motor protected from voltage surges? We do know that the stator is protected from surges by either one of the following: 1. RC Snubber Circuit 2. Surge Capacitor 3. A surge arrester in combition with point 1 or 2 above.


Why does aluminium foil spark in the microwave?

I don't understand fully why aluminium foil sparks in a microwave oven?   I think what is happening is the oven sets up an electric field, and the field induces a current in the foil (how?), and current in the foil then produces a very strong electric field which causes dielectric breakdown of the air, which is why we see sparks.  I think I'm confusing some electromagnetism concepts or something.


I am creating a custom WPF user control that contains amongst other things a timer. As the timer runs one of the things that occurs is that a text file is updated. This means I can see that when the control is removed from the parent (when it is no longer needed) the timer is still running. This could present a problem as controls are added and removed frequently so potentially stacking up a lot of memory usage over time. It's no big hardship to stop and dispose of the timer as the control is unloaded. But it's got me thinking is every resources I am using within said control being retained in memory once the control has been removed from the parent? Should I be handling strings and database rows / tables I have used as well.  What is the correct way of remove a control and completely disposing of it?


I'm currently working on a C++ application. I came across this operator: ^  In my case it's not the XOR I guess, because in the given code the usage is like that:  as a variable declaration:  Dictionary<System::String^, List<int>^>^ Tomatoes;   or as a Method returning parameter:  Food::Vegetable^ Vegetable_Create(List<KeyValuePair<int, Dictionary<System::String^, float>^>>^ a, List<KeyValuePair<System::String^, Food::Cucumber^>>^ b, Dictionary<System::String^, float>^ c);   I was wondering what the ^ operator is actually used for.  Do you know what the ^ operator is used for in C++ and is it really necessary?  Thanks!


I have a Toshiba notebook(Toshiba c50d a-133) and problems after waking up. When I close the lid Ubuntu go to sleep mode. After opening, it wakes up, but sometimes mouse and keyboard don't work. Then I close and open again and it works.  Which scripts are run after opening the lid? Is there a command to reset mouse and keyboard that I can add to such a script?


How to recognize user from different browsers

I have a task to create a poll. The idea behind this poll is to be visible on a website, but without users. You dont need to be logged in user to answer the poll. However what I need is to make it so that after voting once you can't vote twice. This is something not really hard and something I have seen often in news sites.   The general solution for this is the cookie. You store information in the cookie and if they submit an answer you store that information in the cookie and you are all good.  However I want to do something even better - I want to make it so if you open Chrome and vote and then open Mozilla you wont be able to vote again.  The first thing that came to mind was using the IP, but then..what if you have multiple computers on one connection? Like in a big office building?  This means that I will need something that is unique to one specific computer no matter his internet connection.  What came to mind is to use something specific and unique to generate ID for the cookie. This means that by using something unique I will generate an ID which always will be the same for a specific computer, no matter the browser and no matter the connection. You can erase the cookie and then when I create new one it will be created with the same ID and I will be able to recognize that someone with that computer already voted for the poll.  My question is - what is unique to computers which I can access via the browser and how? I am using PHP with Symfony  and javascript for Front-end.  Again I will summarize what I want to achieve - some way to allow me to recognize a user (computer) without log-in even if that user deleted all cookies and switches browsers or is on different connections. He can use VPN or move from one country to another one and switch internet providers or anything of that sort...as long as he is on the same computer and that computer hasn't received braking changes (fixes, upgrades, etc.) I need to recognize it.


I am looking to see if I can solve an issue with installing different graphics card drivers.  I am using 18.04 with a Radeon HD6450 (quite old hardware) I can see drivers for these but they are for older versions of Ubuntu.  Will they cause an issue if I try and install on a later version than specified? Thanks


Proving $ f(x) = x^2 $ is not uniformly continuous on the real line

This is  homework problem and the very premise has me stumped. It's in a text on PDE.   The exercise says to show that $ f(x) = x^2 $ is not uniformly continuous on the real line. But every definition I know says that it is a continuous function, and unless you attach some special condition, like restricting the interval or making it a periodic function (perhaps saying $f(x-2) = f(x)$ or some such) it's by definition continuous. There's always a derivative since $f'(x) = 2x$.   The preceding chapter is about Drichelet and the like, as an extension of Fourier series, so I am guessing that a Fourier expansion does something here but every proof of the proposition seems to have nothing to do with Fourier series in the slightest.   So I am pretty lost here. This whole question seems utterly nonsensical.


I have created a script to install two scripts on to the crontab.   #!/bin/bash   sudo crontab -l > mycron  #echo new cron into cron file   echo "*/05 * * * * bash /mnt/md0/capture/delete_old_pcap.sh" >> mycron #schedule the delete script  echo "*/12 * * * * bash  /mnt/md0/capture/merge_pcap.sh" >> mycron     #schedule the merge script  #install new cron file  crontab mycron rm mycron   The script runs, and add the two lines to the crontab. But if I run the script again, it adds those lines again , thus I will have four lines saying the same stuff. I want the install script to run such that, the lines inserted to the crontab do not repeat. How can I do that


How much bandwidth would 2 nameservers use?

I'm in need of 2 branded nameservers for my clients' domains. Couldn't find any information about that, but how much bandwidth and bandwidth speed would I need for those two DNS servers "just in general"? Say, I got 100 domains, some of them quite popular, some of them not at all. Can't say how much DNS queries those would "eat" because this is a total nightmare for me - counting numbers when you don't know how to count them. Thanks for any information.


Copying protected files between servers in one line?

I'd like to copy squid.conf from one server to another.   The servers don't talk to each other. I'd like to go through my workstation. Both servers have the file, so it will be overwritten on the target. The files have 600 permission and are owned by root. root login via ssh is disabled (PermitRootLogin no). I'd like to do it in one line, if possible, since it will be a part of a setup guide.   I know to do  ssh source 'tar czpf - -C /etc/squid/ squid.conf' | \     ssh target 'tar xzpf - -C /etc/squid/'   to copy files between servers and preserve permissions. However, in this case I will get "Permission denied".  I also know I can do this:  ssh -t source 'sudo cat /etc/squid/squid.conf'   This way the -t allows sudo to ask for the admin password before outputing the content of the file.  The problem is, I don't know how to combine those techniques into something that will ask for the sudo password on each server, and transfer the file to its destination. Is this possible?  UPDATE: Here's the best I could come up with:  ssh -t source 'sudo tar czf /tmp/squid.tgz -C /etc/squid squid.conf' && \ ssh source 'cat /tmp/squid.tgz' | \     ssh target 'cat >/tmp/squid.tgz' && \ ssh -t source 'sudo rm /tmp/squid.tgz' && \ ssh -t target \     'sudo tar xzf /tmp/squid.tgz -C /etc/squid && sudo rm /tmp/squid.tgz'   Calling this a one-liner seems like a stretch. I think I'll just break it down to separate steps in the setup guide.


Error: "non static variable this cannot be referenced from a static context

I have a problem while compiling a simple program. I started using Swing library two days ago, so i'm not good enough yet. The error is: "non-static variable this cannot be referenced from a static context", referred to "WindowsEraser listener = new WindowsEraser();". What is the problem?  public class prog9{     public class WindowEraser extends WindowAdapter{         public void windowClosing(WindowEvent e){             System.exit(0);         }     }     public static void main(String[] args){         JFrame frame = new JFrame("Frame with buttons");         frame.setSize(400,400);         JLabel label = new JLabel("I'm a Window");         frame.add(label);            WindowEraser listener = new WindowEraser();         frame.addWindowListener(listener);         frame.setVisible(true);     } }


Wondering how to format output of a localtime with two different longs: My goal here is to format the long minutes and long seconds with the until part Example of desired output: 9:02 As in 9 minutes and 2 seconds     public static String getTimeUntilSomething() {         LocalTime currentTime = LocalTime.now();                  long minutes = currentTime.until(currentTimeMore, ChronoUnit.MINUTES);         long seconds = currentTime.until(currentTimeMore, ChronoUnit.SECONDS);          String L = currentTime.format(DateTimeFormatter.ofPattern("m:ss"));         return L;     }


I have a lot of screen real estate, and am constantly "losing" my mouse.  I'd like to have a simple way of easily finding the mouse that doesn't have to be reconfigured when I undock from my 28 inch monitor and rely on my retina display.  Windows has a feature that allows for "mouse trails" so I can easily find the pointer wherever it is.  How can I get similar functionality on the Mac?  I looked under the "accessibility" tab but found nothing.


Why  \begin{equation} \lim_{x\to-\infty}\sqrt{x^2-x-1}-x=+\infty, \end{equation} Thanks


Find algebraic equation for epicycloid $\theta \mapsto 4 e^{i\theta} - e^{4i\theta}$

I am reading about  and I wonder if they are algebraic.  Here is in polar coordinates:  \begin{eqnarray*} x(\theta) &=& (R+r) \cos \theta - r \cos \left( \frac{R+r}{r}  \theta\right) \\ y(\theta) &=& (R+r) \sin \theta - r \sin \left( \frac{R+r}{r}  \theta\right) \\ \end{eqnarray*}  Then is this curve algebraic?  If I add the real and imaginary parts we obtain: $$ \theta \mapsto  (R+r) e^{i\theta} - r e^{i\frac{R+r}{r}  \theta} =  (R+r) z - r z^{\frac{R+r}{r}  }  $$  Still is still not an equation of the type $f(x,y) = 0$.  The cardioid has an equation:  $$ (x^2 + y^2 +ax)^2 = a^2 (x^2 + y^2) $$


How to display more than 3 views in document library?

I have 4 views "All Documents" "Agreements" "Permits" "Deeds" I want to display all 4 of them above my document library but only 3 get displayed and the fourth gets placed in the "..." section. I believe this modification is possible through sharepoint designer, but I was curious if anyone knew how to achieve this through the web environment.   Thank you


Will Nvidia gtx 650 work well on Ubuntu 12.10 / 13.04?

I am going to buy a new graphics card and i am thinking about a Nvidia GTX 650. Can anyone tell me if it has good driver support so that i can play games(Like TF2) without the opensource drivers? (as an alternative i am thinking about a AMD 7750, will it be better?)


Weird behaviour of find -exec rm when using multiple name patterns

I would expect the following command to delete all files with extension .x or .z, but instead it seems to only delete the first file listed:  mkdir foo touch foo/{a.x,b,c.z} find foo -type f -name '*.x' -o -name '*.z'  # correctly lists a.x and c.z find foo -type f -name '*.x' -o -name '*.z' -exec rm -f {} \+       # only deletes c.z   Why is this happening?


I download the tar.bz file from the home page of zotero, extract it and run the file 'run-zotero.sh', but it open zotero rather than install it. How to install it? Any help or suggestion will be appreciated!


I'm trying to make an alphabetically ordered bibliography for my report. Currently I have:  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[margin={2cm,2cm}]{geometry} \usepackage{multicol}     \setlength{\columnsep}{1cm}\ \usepackage[ backend=biber, style=apa, sorting=ynt ]{biblatex}     \addbibresource{sample.bib}     \DeclareNameAlias{default}{last-first}\     \title{How do we know what the inner structure of planet Earth is like?} \begin{document}     \maketitle     \begin{multicols}{2}         \section{Introduction and Theoretical brackground} \cite{lehmann}         \printbibliography     \end{multicols} \end{document}   with my .bib file:  @article{lehmann,   author =   {Lehmann, I.},   title =    {P'},   journal =  {Publications du Bureau Central Sismologique International, Série A, Travaux Scientifique, 14},   year =     1936,   pages =    {87-115} }   When I compile, the reference shows:     Lehmann, I. (yearmonthday). P'.Publications du Bu-   reau  Central  Sismologique  International,  Série   A, Travaux Scientifique, 14, 87-115.   How can I make it display just the year (1936), instead of (yearmonthday). I'm using the APA style because I want a comma between the author and the year in the references.


If  $$X=\left({342\over 344}\right)\left({511\over 513}\right)\left({728\over 730}\right)\dots$$ Up to infinite terms.. The value of $x$ approaches? What's the approach to the above problem? They can be expressed as cubes-1/cubes +1.how to simplify further?


Is there anyway to know when a sql server instance was installed?

I have 100+ sql server instances (from sql 2005 to sql 2016) installed in my environment, is there a good way to find when an instance was initially installed?   I tried to check the [master] database creation date, and found (for sql 2012 onward at least) it is always Apr 8, 2003.  The only possible date is [msdb] creation date, which I see it changing for different sql server instances. (I am not sure about this is because I am not sure whether a service patch will change the [msdb] creation date?)  Is there any other reliable way that can indicate the sql server instance creation date? I am open to use of t-sql or powershell to figure it out.  Thanks in advance.


When using Ubuntu Software Center and Apt-Get to install Youtube to MP3 I am receiveing these errors:   the following packages have unmet dependencies:  youtube-to-mp3: Depends: libc6 (>= 2.14) but 2.19-0ubuntu6.6 is to be installed                 Depends: libgcc1 (>= 1:4.1.1) but 1:4.9.1-0ubuntu1 is to be installed                 Depends: libqt4-declarative (>= 4:4.7.0~rc1) but 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 is to be installed                 Depends: libqt4-network (>= 4:4.6.1) but 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 is to be installed                 Depends: libqtcore4 (>= 4:4.8.0) but 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 is to be installed                 Depends: libqtgui4 (>= 4:4.8.0) but 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 is to be installed                 Depends: libstdc++6 (>= 4.6) but 4.8.2-19ubuntu1 is to be installed                 Depends: libav-tools (>= 4:0.8.6-0ubuntu0.12.04.1) but 6:9.16-0ubuntu0.14.04.1 is to be installed                 Depends: libavcodec-extra-53 (>= 4:0.8.6ubuntu0.12.04.1) but it is not going to be installed                 Depends: libmp3lame0 (>= 3.99.3+repack1-1) but 3.99.5+repack1-3ubuntu1 is to be installed


I have downloaded the ISO from the website and have burned a DVD disc. I now want to load UBUNTU onto my PC and do not know how to proceed, please help.


combining layers in illustrator, adding stroke & shadow

I'm trying to put together a logo that consists of more than one layer but I want to put a stroke around it.  I can't seem to figure out how to combine these layers together so the stroke will only go around the whole logo rather than each section individually.  I have done lots of searching but can't seem to find a solution.  Thanks for any advice you can give me!


Electric field around a infinite plate with voltage $V$

Say that you have an infinite plate uniformly charged with voltage V, and you want to calculate the electric field strength at some distance z away from the surface.  I know that you can calculate the electric field in relation to the sheet charge $\sigma$ as $E = \frac{\sigma}{2\epsilon_0}$, but I don't know how to relate charge $\sigma$ and voltage V.


How do I copy the results of a calculation without copying the formula behind it? Open Office Calc

How do I copy and paste only the results of a calculation without copying the formula behind it? I'm learning to use Open Office Calc. I remember other spreadsheets that had a values function, or simply a menu choice to paste values instead of the formulas, but this idea seems to be missing from Open Office, or called by some other name. Thanks for any help.


Improve performance when dealing with shared memory and strings

I am accessing a shared memory (that is created in C-code) with a program in C#.  The content of the memory mapped file consists of bytes that represent text that has to be processed with C#.  Encoding issues are not the problem here...  Basically the C-Code writes text into the shared memory and increments a write index (at the beginning of the shared memory) to the next write position. At the end of the memory the index wraps around and begins from 0.   To read in C# I maintain a read index (also at the beginning of the shared memory) and as long as both indices are not equal, I am processing the data in C#. Managing these two indices works, and should not be a matter of this question.   C-Code can only write new data as long as the write index does not equal to the read index - because then data would be lost.     In C# I am using a MemoryMappedFile object, and access the bytes with a MemoryMappedViewAccessor object. From this view accessor I get an IntPtr:  This code is an excerpt from my project, it works as expected...  public MemoryMappedFile mmf; public MemoryMappedViewAccessor mma; public byte* pointer; public void Init() {     mmf = MemoryMappedFile.OpenExisting("MyFileMappingObject", MemoryMappedFileRights.ReadWrite);     mma = mmf.CreateViewAccessor(0, 0, MemoryMappedFileAccess.ReadWrite);     mma.SafeMemoryMappedViewHandle.AcquirePointer(ref pointer);  }   I tried to use stream access to the shared memory but this was slower than using unsafe IntPtr variables.  The bytes have to be read out and converted to a C# string. Because I have to do some interpreting and reformatting, i can not simply take all bytes and convert them in a single step to a C# String.  So I end up with many calls of adding a C# string to an existing one:  string zeile = string.Empty; while (!eof()) {     string newpart = GetTextFromSharedMemory(); // this works fine     zeile = zeile + newpart;  // Makes problems }   If I meassure the time for a certain amount of text to be processed (a single walk through the whole shared memory) , GetTextFromSharedMemory() alone may take around 50 milliseconds. So this is not a bottle neck.   As soon as i add the newpart string to the zeile string my processing time raises up to 5 to 6 seconds ( while I processed about 4 198 528 bytes of data in the shared memory, this roughly 2048 lines of 2048 bytes)   This means 100 times longer than only reading from shared memory.   How can I make these string concatenations more efficient? I tried to read out the text parts as byte and concatenate lists of bytes together before converting them to strings. This helps a lot, but I would have to work on single bytes for interpreting and reformating...  Allocating and disposing many strings during execution time may trigger the Garbage Collector and this could als have a negative impact on performance.   Because processing time in C# is that "bad", the shared memory eventually gets filled up, and then the C-Code would have to wait for it to get emptied befor adding more data. But this would affect performance of other processes...


Can I use UK Super Priority visa service and how long does it take?

My UK visit visa has been refused. If I reapply through Super Priority visa service, it says:      If your application is not straightforward, it may not be possible to meet this timescale.    If so, within how many days would I get a decision?


there was a nice write up somewhere on here about...  not using kill-9 all the time which is SIGKILL and explained the reasons for doing so, and then went on to explain an order in which one should proceed from least aggressive SIGTERM ending up eventually at SIGKILL or rebooting.  can someone post a link to that for me?  i cannot find it  using kill -l to do a listing I receive as output on the terminal  this is kill dash lowecase L, and NOT dash numeral one  HUP   INT    QUIT     ILL      TRAP     ABRT     BUS      FPE      KILL   USR1 SEGV  USR2   PIPE     ALRM     TERM     STKFLT   CHLD     CONT     STOP   TSTP TTIN  TTOU   URG      XCPU     XFSZ     VTALRM   PROF     WINCH    POLL   PWR SYS   RTMIN  RTMIN+1  RTMIN+2  RTMIN+3  RTMAX-3  RTMAX-2  RTMAX-1  RTMAX   I spaced out the above for readability.  This is from SLES 11.4 x86-64  Am I correct in assuming the order of which these signal names are printed from kill -l correspond to the number you provide the kill command, such that if I wanted the bad KILL I would do kill -9 and if I wanted the better choice of TERM that would be kill -15 ?   Is this the only way to find out these numbers on a given system? Is there a better more universal way of verifying what signals are available on a given linux system {RHEL, SuSE, debian, ... some stripped down version of linux from i don't know where used on some piece of hardware}? If I write code, where & how should one check something system level like this before assuming a signal is: first available, and then that kill -number corresponds to a specific signal? is there a good source for learning about all these types of signals, and what should be expected to always be available, for a typical Linux operating sytem?


I have names in my database and I want to draw a name for a contest.   Anyone have an idea for that ?  Thanks !!


I've been going through Shankar's Principles of Quantum Mechanics. In the section of the system of identical particles, he uses an example of billiards to illustrate the difference between identical particles in classical vs. quantum mechanics. He argues that in classical mechanics, we can track the history of a particle (a billiard ball) to distinguish it from another particle with no intrinsic differences. In quantum mechanics, however, he argues since continual observation is not possible, we can't use the same method to distinguish identical particles. A potential counter-example I thought was: suppose we have two non-interacting particles in the same square well. And at the end of some measurement, we find that one particle 1 is in a stationary state $\psi_1$, and particle 2 in $\psi_2$. We measure the system again after some time $t$, then we know whichever particle that's in $\psi_1$ must be particle 1 from the previous measurement. And the same goes for particle 2. Thus we can distinguish the two "identical" particles. What conceptual mistakes am I making here?


In my scene there are some objects that are somehow connected to each other. E.g. if I transpose one object called 'Body' it also moves the object 'Border'.     The movement of 'Border' is not linear to 'Body'. I removed all groups, constraints, parenting etc. of all objects. So I can not see any relationship between the objects. Any ideas?


I want to scp a file to a remote host, and from there, run a command on the file, and exit the remote session. If I write a usual script, call scp and then ssh, I am prompted to enter two passwords. Is there a way to copy, ssh, and run a command on a remote machine with one password?   Also how to write scripts which need to interact with user to enter passwords?  I do not want to use "read" as it's not safe. I do not want to use passwordless ssh, since my private key file may be compromised, which is even worse. I read something about "expect" but not sure if it's the right tool.


Is there a way to make the first line of a four-line gloss not have gloss alignment spacing?

I was wondering if there was a way to make the first line in a four-line interlinear gloss not conform to glossing alignment/gloss spacing. \documentclass[12pt]{article} \usepackage{gb4e,cgloss} \usepackage{leipzig}  \begin{document}  \begin{exe} \ex \label{label}\glll awúuassshiichih \\ awuua- ss- shiichi -h \\ inside.{\Noun}- {\Goal}- throw -{\Imp} \\ \glt `Throw it in [the] inside! [of the hoop]' %\citation \end{exe}  \end{document}  The first of the four lines is simply the example in the examined language. Thus, I do not need it to align with the spacing below. However, the word on the first line (/awúuassshiichih/) aligns with the first word on the second and third lines. This is fine, but it results in the second words on the 2nd and 3rd lines being pushed all the way to the end of (/awúuassshiichih/). Is there a way for me to avoid this? I am using the newest updates of TeXMaker, MacTeX2020, and MacOS. Thank you in advance!


I'm a new DM and have never played a tabletop RPG before. Any basic tips or strategies?

I am DMing for my family (a total of 7 other people) and have never played D&D or any other Tabletop RPG before. We will be playing D&D 5e. I know a lot of the basics from listening to The Adventure Zone podcast and reading various posts here. I also only have the player manual. I do not yet have the Dungeon Master's Manual or the Monster Manual. Are there any tips or ideas anyone can give me for our first campaign on Saturday?


I'm trying to find the maximum value of the function $f(x,y)=(ax+by)^p+x^p$ subject to the constraint $x^p+y^p=1$. Here, $a,b$ and $p$ are constants with $a,b>0$ and $p>1$, and $x,y>0$. I have found the maximum in the special case $p=2$ and tried to use Lagrange multipliers in the general case but couldn't success. Any help?


I have a series of files with arbitrary names and extensions. Like:   APW19981017.0151 APW19981017.0306 APW19981017.0477 APW19981017.0507 APW19981018.0410 NYT19981017.0177 NYT19981018.0098 NYT19981018.0123 NYT19981018.0160 NYT19981018.0185   I want these files to open with an editor, like TextMate or Sublime Text, on double-clicking, without having to right-click and choosing the editor from applications.  Basically the Finder should open any unknown extension file with the text editor.


Ring in which Jacobson Radical is different from nil radical

Define $ Jac(R) = \cap_{\mathfrak{m}, maximal } \mathfrak{m}$ and $Nil(R) = \cap_{\mathfrak{p}, prime} \mathfrak{p}$, where $R$ is a commutative ring. Can someone give me an example of a commutative ring $R$ such that $Jac(R) \ne Nil(R)$. I have ruled out $\mathbb{Z}_{n}, \mathbb{Z}$, and any Artinian ring. Should I be looking at polynomial rings of some sort?


I have all DLC and I can't level up past 50

For the past couple of years I've been playing Borderlands 2 on my PS3. A week ago I bought Borderlands the Handsome Collection for my PS4, and after porting my save I've found that I am not gaining exp for any kills and/or quests.   What am I missing?  (I've checked, this is not a duplicate question,  was in a standing point of not having the DLCs)    It includes, among other things, both The Ultimate Vault Hunter Upgrade Pack and  Ultimate Vault Hunter Upgrade Pack 2.  In fact, it includes absolutely everything released for the game, even all the obscure skin packs.


Criteria for the numbering of human chromosomes

What were the criteria devised for the numbering convention employed in human chromosomes? When was it fixed?  Correct me if I am wrong; it appears that chromosome pairs 1 to 22 were originally ordered in terms of perceived structural size, which ended up fitting neatly with the quantity of base pairs (but not with the quantity of genes).  The sex chromosomes in turn were arbitrarily assigned as "pair 23".  Is this sound?  Thanks in advance.


Recovering Accidentally Destroyed LVM2 Information

Ok, so I'm stupid and made a serious and grave mistake. On my linux box running Ubuntu 10.10, I have a 1.5TB RAID array that I had originally setup using the instructions located here:  The RAID array is a 4 x 500GB RAID 5 array with an ext3 formatted filesystem and is not my boot device. The RAID array was just used for storage. The LVM setup is a single physical volume (the RAID device) and a single logical volume that makes up the entire physical volume.  So here is the list of steps that I ended up doing, based on the contents of the files in /etc/lvm/archive (one file was created before each step, and the file lists what the command was):  lvremove /dev/raid_vg/lv0 lvcreate -l 357702 raid_vg -n lv0 lvremove raid_vg lvcreate -l 357702 raid_vg -n lv0 lvremove raid_vg vgexport raid_vg vgimport raid_vg vgscan lvremove raid_vg vgcreate raid_vg /dev/md1   So, I accidentally called lvremove instead of lvchange -a n Then I realized my mistake and tried to restore the logical volume. But that made the disk seem empty.  Now, I'm not sure, but I don't think the data was wiped (at least not all of it). I've cloned the device with ddrescue just so I don't loose anything and can experiment on the image.  Now, my question is then, is it possible to restore the LVM information to the disk and get my filesystem back? I've got the configuration files in /etc/lvm/archive which give me the start extents, sizes and extent counts.  Any help that anyone might be able to provide would be extremely appreciated. I was an idiot and screwed myself. I just hope that it was temporary and I can get my data back.


When I create and fill a list of lists some odd behaviour pops up:  list1 = [[0,0,0],[0,0,0],[0,0,0]] list2 = [[0]*3]*3  print('lists still look equal here:') print(list1) print(list2)  list1[1].pop(1) list2[1].pop(1)  print('but not anymore:') print(list1) print(list2)   gives me this output:  lists look completely equal here: [[0, 0, 0], [0, 0, 0], [0, 0, 0]] [[0, 0, 0], [0, 0, 0], [0, 0, 0]] but not anymore: [[0, 0, 0], [0, 0], [0, 0, 0]] [[0, 0], [0, 0], [0, 0]]   So the second list 'pops' from every little list instead of just the one I'm trying to. I wonder what causes this behaviour and if there is a more elegant way to fill indexable lists if I need a large amount of long lists instead of just these tiny ones?


I was going to post a comment on my own theory about Mars and Jupiter colliding, but I just read the rules and it breaks it...badly. I was looking for informal peer review.  So my question is, has there been any mainstream published work about the possibility of planets colliding or interacting greatly?  (Velikovsky doesn't count obviously, I'm thinking an actual scientist) (besides the Earth-Moon of course)  I can't seem to find any.


I have ADM ATHLON(tm) 64 x2 dual core. Should i install ubuntu

I have a Amd athlom(tm) 64 x2 dual core processor 5200+ 2.71 GHz with 1 Gb Rm Running a fake licence of windows 7. But it is not running as good as I'd like. Should I install either 32 or 64-bit Ubuntu 14.04.2 LTS ?


Does walking with a high level trainer give a higher chance to find rare pokemons?

Some sources seem to claim that you will find more rare pokemon the higher your level. If true, would walking together with a higher level trainer improve your chance of finding more rare pokemon?


Finding a correspondence between $\{0,1\}^A$ and $\mathcal P(A)$

I got this question in homework:     Let $\{0,1\}^A$ the set of all functions from A (not necessarily a finite set)       to $\{0,1\}$. Find a correspondence (function) between $\{0,1\}^A$ and       $\mathcal P(A)$ (The power set of $A$).       Prove that this correspondence is one-to-one and onto.   I don't know where to start, so I need a hint. What does it mean to find a correspondence? I'm not really supposed to define a function, right?  I guess once I have the correspondence defined somehow, the proof will be easier.  Any ideas? Thanks!


Sum the series to infinite terms: $$1+\frac14+\frac{1\cdot3}{4\cdot8}+\frac{1\cdot3\cdot5}{4\cdot8\cdot12}+...$$   I couldn't get any clue on how to solve this summation. I tried to solve without any help  and the things I got confused with : [...]  Is how to, do summation on the general term, that's:  $$m=\sum_{n=0}^\infty\frac{(2n+1)!}{2^n\cdot n!\cdot 4\cdot n!}$$


Do you ever not upvote a question that you answer?

Whenever I submit an answer (a real answer, not some @someone comment) I upvote the question.  I generally do this because if the question is good enough to take time to answer it, it's good enough to be brought to someone else's attention.  Do you do this?  What are your guidelines for upvoting a question that you answer?


What should I do if the admission committee has missed something in my application and rejected me?

I applied for a graduate program and I was rejected, but there is evidence suggesting that there was a mistake in reviewing my application. Now the school seems reluctant to reconsider the application. What should I do? Is there any real chance of being reconsidered?  Here are some details about the story:  The reason for rejection was mentioned in my rejection letter, and apparently, it was a very objective and quantifiable admission requirement that they thought I don't meet. But that was simply wrong, and they seem to have misunderstood (or even completely missed) one of my documents. It is a university in a different country, and apparently, they misinterpreted the document, which was issued by my undergrad school, and missed important information. I explained the document to them and they responded with a change in the reason, but the new reason in a way contradicts the previous one and it again seems to be about missing the exact same information related to that document. The new reason is also even more objective and almost purely bureaucratic, so I explained the policy of my undergrad university to them and what the information in the document means, but then I did not hear back from them anymore.   What should I do in this situation? So far I've just been explaining to them how there might have been some confusions, but with their most recent response, it seems to me that most probably, they misunderstood my documents, and might have even completely missed one of them! I'm afraid of pursuing this more seriously and directly because the department is one of my favorite departments and I like to keep the option of going there later in my academic career open.


Construct uncountably infinite many infinite sets, whose pair wise intersection is finite, and union of all of them is the set of natural numbers.  I have been trying to find a bijection between $N$ and all rational numbers in $[0,1]$.But I am not getting the rigor.


I was wondering how far in imaging physics had gotten. Do we hold the technology to actually take a picture of, say, an alpha particle, or even a single atom?  I realise we aren't talking about camera pictures, so what kind of imaging techniques have taken images/is most likely to be the technique to take an image of a single atom?


Propriedades do MDC (Properties of Greatest Common Divisor)

Estou com uma grande lista de exercícios de PROPRIEDADES DO MDC (MÁXIMO DIVISOR COMUM), e não estou conseguindo entender quais os passos que tenho que seguir nas demonstrações, e gostaria muito de aprender este conteúdo, alguém me ajuda em uma questão para ver se eu consigo entender as outras?  Questão: Mostre que, se (a, b) = 1, a|c e b|c, então a · b|c  Added Translation from Portuguese  I have a large list of exercises PROPERTIES MDC (greatest common divisor), and I am not able to understand what steps you have to follow in the statements, and would love to learn this content, someone help me on a question to see if I I can understand the other?  question: Show that if $(a, b) = 1,  a | c$ and $b | c$, then $a · b | c$


How to remove \n\t\r from list in Python?

Code :  list = ["\r\n                    Opportunities\r\n                ", "\r\n                    Careers\r\n                ", "\r\n                    Education & training\r\n                ", "\r\n                Find Your Future\r\n ","\r\n\tSanderson        Recruitment, Solutions, Executive, Consulting\r\n"]   Output I want:   ["Opportunities","Careers","Education & training","Find Your Future","Sanderson Recruitment, Solutions, Executive, Consulting"]   Since it is a list


It's well known that under some "weak" hypothesis, such as finitely generated, the support of an A-module is closed in Spec(A). It is true also in the most general case?


I am describing a chart and got confused about my intuition and Google results. So I'd usually refer to a "solid black line" and there are  1,130,000 results (with quotes) for that against 320,000 for "black solid line". So far, so good. When it comes to "dashed black line" it sounds weird to me though it's the same wording order. There are 214,000 for that against 318,000 results for the reverse order "black dashed line".  So, my question is: dashed black line or black dashed line? (considering that I am also mentioning the solid one, I was going for the first option not to break the pattern)


There are $2n+1$ people. For each $n$ people there is somebody who is friend with each of them. Prove there is a "know-them-all" person.

I have a following problem.     There are $2n+1$ people in the room. For any group of $n$ people there is a person (different from them) who is friends with each person in this group. Prove that there is a person, who knows all $2n$ other people.   One can easily see, that $\min_v \deg v = n$. From this we can get a lower bound for number of edges $N_e$: $$ N_e = \frac{1}{2}\sum_v \deg v \geq \frac{(2n+1) \cdot n}{2} $$ I do not know where to move from this point (and do not think, that this is the right direction) and pretty stuck right now. Can you give a hint?


$\underbrace{111\cdots 111}_{1991\,\text{times}}$ is not a prime number

This is the question of Belgium mathematical Olympiad $1991$     Prove that $$\underbrace{111\cdots 111}_{1991\,\text{times}}$$ is not a prime number.   I tried making a computer program to check it but it is too large to fit in that   I am not so strong in congruences, but I can understand  a provided solution regarding CRT or something like that.   Please provide any hint for the first step I should take.  Side note: The question has been marked duplicate but from the link I can only deduce that given number is in the form of $13k+9$ which is not helping me, please provide a comment or something which can help me understanding how can I  use the information given in link.


Enable Quick Look for text files without the .txt extension

Doing Quick Look on .txt files is very convenient (select in Finder and press space).  Is there a way to enable Quick Look for other text files which don't have the .txt extension (e.g., .strings files)?


Finding $(a, b, c)$ with $ab-c$, $bc-a$, and $ca-b$ being powers of $2$

This is a 2015 IMO problem.  It seems difficult to solve.     Find all triples of positive integers $(a, b, c)$ such that each of the numbers $ab-c$, $bc-a$, and $ca-b$ is a power of $2$.   Four such triples are $(a,b,c)=(2,2,2),(2,3,2),(3,5,7),(2,6,11)$.


Motivation for the definition of continuous maps on topological spaces

In any category where the objects are sets equipped with certain relations and operations, the notion of "morphism" arises perfectly naturally. (Generally, a morphism between objects is one that commutes with the operations, and maps tuples in a relation to tuples in a relation.)  On the other hand, the definition of a morphism from topological space $(X, \tau_X)$ to $(Y, \tau_Y)$ is of course a continuous map $f$, i.e. a map such that the inverse image of $f$, $$ f^{-1} : \mathcal{P}(Y) \to \mathcal{P}(X) $$ preserves open sets, rather than $f$ itself preserving open sets.  Therefore my (very basic!) question is: in what sense is taking the morphisms to be the continuous maps natural or canonical? I'm assuming that there is some a priori reason that we might expect the continuous maps to be a better definition of morphism than, say, functions such that the image of an open set isn't an open set.  Perhaps an answer comes from pointless topology, or from a better understanding of the correspondence between a function $f: X \to Y$ and its inverse image $f^{-1}: \mathcal{P}(Y) \to \mathcal{P}(X)$.


Likelihood function for binomial distribution with label 1 and -1

I am quite curious how we should write the likelihood function for -1, 1 in binomial case? The reason I am asking is because , one of famous papers on gradient boosting. Just on the first page, he says the loss function for negative log-likelihood can be written as $log(1 + exp(-2yF))$. As far as I remember if you follow the derivation of loss of the logistic regression with label 1 and -1, you end up with $log(1 + exp(-yF))$. How can I get a coefficient 2? I google a lot and never see this kind of form. Does anyone have any ideas?


I Need to know how to Ungroup Meshes that were Previously joined Without Undoing History.   I Am attempting to ungroup things like . If you select anything on the models in there you will notice they are a big mesh made with the CTRL J Trick  I Need to know how to Ungroup it from that.  (Unless it can't be done. -_- and i have to try to recreate the meshes entirely)


Delete millions of files efficiently, without first generating a list of all files to be deleted

I've been trying to figure out how to delete millions of files from a mounted NAS drive. The OS I'm accessing it from is RHEL 7.6.   The directory is actively being written to, with tens or hundreds of thousands of additional files per day.   When I try running a deletion technique, such as:  rsync -av --delete empty_dir/ millions_of_files_dir/   It will use lots of CPU/MEM at first, with the "sending incremental file list" message. This continues forever, with CPU/MEM usage slowly petering down to a minimal amount.   My theory is that this is happening because the file list never ends; there are endlessly more files being added.   SO: Is there a deletion technique which doesn't require a full list of files before deletion, but will "stream-delete" as it finds them?


Could anyone recommend introductory books on Green's functions with applications in the framework of classical electrodynamics?


Batch file to delete/remove folders old of xx days

I need a batch file to delete folders old of 1 day.  The folders contains inside files that will be removed together with the folders  I tryed 3 different code but do not remove the old folders.  Path where are located folders to delete (path have space):  D:\Programmi Installati\   Example folder names (start with log_)  log_1 log_10-12-2019 log_2008-10000 log_222222211111   Days old: 1  :: Code 1  @echo off setlocal  set target="D:\Programmi Installati\" set days=1  for /f "usebackq delims=" %%G in ( 'forfiles /p "%target%" /c "cmd /c if /i @isdir == true echo @path" /d -%days% 2^>nul' ) do rd /s /q "%%~G"  pause endlocal & exit /b   :: Code 2  forfiles /p "D:\Programmi Installati\" /d -1 /c "cmd /c if @isdir==true rd /s /q @path"    :: Code 3  FORFILES /P "D:\Programmi Installati\" /S /C "cmd /c IF @isdir == TRUE rmdir /S @path /Q" -D -1   I'm interested a fix of code already indicate or a new code that works.


Preventing a door from slowly opening itself

This is pretty simple but I don't know how to describe it. There's a door that if left open half way it opens all the way by itself. I'm not sure if it's on an angle and gravity is doing it. How do I make it so the door stays where it is and doesn't open all the way? It's on 3 hinges and is on the inside of the building.


For a project I'm working on, I need to represent network flows over 1,000 zones with directionality.    Any suggestions on displaying the information in a nice and non overwhelming way?  Any examples on displaying network flows in heavy urban areas? Color suggestions and thickness schemes? any "not to dos" when representing network flows?


How can I verify if a Windows Service is running

I have an application in C# (2.0 running on XP embedded) that is communicating with a 'watchdog' that is implemented as a Windows Service. When the device boots, this service typically takes some time to start. I'd like to check, from my code, if the service is running. How can I accomplish this?


Is it possible to install the Sims 3 on Ubuntu 13.04?

I am running Ubuntu 13.04 on an iMac. I have all the specific requirements to play the game, as I have done on this mac before. I'm just wondering if it's possible to run it on Ubuntu?


Apparently Latin Modern Roman does not include it. I don't find it in the math symbols, either. I guess I could define a command changing to  for it, but I suspect there's a better way and I just didn't look in the right place yet?  Edit:  One possible solution is the following:  \documentclass{article} \usepackage[math-style=TeX]{unicode-math} \setmathfont [    Extension = .otf,      BoldFont = *bold, ]{xits-math} \begin{document} $\disin$ \end{document}   But apparently that will change the font for all math environments, which I am a bit hesitant to do.


Can you appeal against a downvote on Stack Exchange sites?

If you are the OP, could you not request for a downvote to be reviewed by some moderators so that you are not the one who gets wrongfully blocked from asking questions, but him/her for downvoting unreasonably?  That you could appeal against anything you feel is unjust to you - like in real life - would be great. If you do it right, you won't have to fear getting blocked from asking questions any more. Creating new accounts just to be able to keep asking questions is getting tiresome.


Send post request for image uploading via JavaScript

I have an HTML form that I am trying to upload an image through.  <form id="imageform" method="post" enctype="multipart/form-data" action='upload.php'>     Upload image <input type="file" name="file" id="file" /> </form>  <div id='preview'> </div>   I want to use JavaScript to upload run upload.php, so the page does not have to refresh. I then want to display the output in #preview.  $(document).ready(function() {      $('#file').live('change', function() {         $("#preview").html('');         $("#preview").html('Uploading...');         $.post("upload.php",$("#imageform").serialize(), function(data){             $("#preview").html(data);         });     }); });    However, I get many errors like these within the div. I know that the data isn't being sent through, but how can I fix it?  Notice: Undefined index: file in /path/upload.php on line 14   I've searched through things on Google, but I have been receiving the same issue.


I am trying to mount my ext4 (sdc6) partition from a live usb because that's how I deleted two unused partitions left from a prior install of ubuntu, using GParted. The swap is mounted. However, I can't edit fstab, or find anywhere to click in nautilus to mount sdc6. In the terminal, I get the error: "can't find /dev/sdc6 in fstab". I'm afraid to exit the usb and update grub if that partition isn't mounted. Is there any easy way to do this, or do I have to install gksu or some other editor? Or do I need to mount it as sda6?  Device     Boot Start     End Sectors  Size Id Type /dev/sda1  *     2048 3905535 3903488  1.9G  b W95 FAT32  Device     Boot     Start        End   Sectors   Size Id Type /dev/sdc1            2048   29362175  29360128    14G 27 Hidden NTFS WinRE /dev/sdc2  *     29362176   29566975    204800   100M  7 HPFS/NTFS/exFAT /dev/sdc3        29566976  487023432 457456457 218.1G  7 HPFS/NTFS/exFAT /dev/sdc4       487024638 1250263039 763238402   364G  5 Extended /dev/sdc5       728393728  740290559  11896832   5.7G 82 Linux swap / Solaris /dev/sdc6       487024640  728391679 241367040 115.1G 83 Linux  Partition table entries are not in disk order.


Product of non-zero elements of a field is $-1$

This looks very much like something which is a duplicate, but I couldn't find the "desired duplicate". Sorry if this has been asked before.     Let $F$ be a field of $q$ elements and $F\setminus \{0\} = \{a_1,\ldots,a_{q-1}\}$. Show that $\prod a_i = -1$.   If $F$ has characteristic $2$ then this is trivial. So let's assume it has characteristic $p>2$. I tried to use the fact that $F\setminus \{0\}$ is a cyclic group with no avail.   Any hint?


How to get element with height when element is loaded in angular?

I have a textarea, which should be resized to the scrollHeight when it is loaded. I have no problem with key events to resize the textarea like this:  $scope.resize= function (event) {                         //Auto size:      var element = typeof event === 'object' ? event.target : document.getElementById(event);      var scrollHeight = element.scrollHeight - 60;       element.style.height = scrollHeight + "px"; }   But I can not resize it, when the element is loaded. I tried with $element and $element[0], but I noticed that the height of $element is 0. And I don't want to fit the height by window height (I can get window height by $window). Is there any way to get the element.height and element.scrollHeight after loading the element in angular?


What is the exact difference between synchronous and asynchronous serial transmission?

I'm having a hard time understanding the exact distinction between synchronous and asynchronous serial because different sources have confusing description.   For example, some source say a separate clock wire is required in synchronous, some do not mention a separate clock but a SYN character instead. Some source say asynchronous requires start and stop bits, some say not necessarily as long as there is only a pair of wire.   So my question:   1) Is clock wire always needed in synchronous serial? If not, how do we synchronize?  2) When we say asynchronous, does it always mean we use start and stop bits? If not, how do we synchronize?


How To Run Shaving Machine Without Bettary?

I'm just an amateur in this and I Need Help..  I've drawn this circuit of my Shaving machine and I want to remove the battery and connect it directly to one of these phone chargers-:   The first: output 5.7v ~ 800mA   or  The second-: output 5v ~ 350mA  or   -The shaving machine charger: 3v ~ 200mA  Will Any Of These Work?


Discontinuity of Thomae Function on $\mathbb{Q}$

I know there are many answers for this question. I had read almost every answer And try get arguments But something that goes missing in each time. I had been stuck on this problem since half day but not understating. Please help me in this regard. Let $f$ be defined on $[0,1]$;  $$ \begin{align} f(x) = \begin{cases} 0 & \text{if $x$ is irrational}\\ \frac{1}{q} & \text{if $x = \frac{p}{q}$ where $(p,q) = 1$ and $q$ > 0}. \end{cases} \end{align} $$ For the rational numbers, I consider a sequence of irrational points $x_n$ converging to some rational number say $m/n$.  If this function is continuous for any rational say $m/n$ then this must hold: $\forall \epsilon >0$ ,$\exists \delta>0$ such that $|1/n|<\epsilon $ whenever $|x_n-m/n|<\delta$.But for any particular $m/n,1/n$ need not be small. Therefore function is discontinuous at the rational points.  For the irrational points, consider rational sequence $y_n$ converging to $a$, irrational number. Consider $y_n \to a$ therefore $\forall \epsilon >0 $, $\exists N$ such that $|y_n-a|<\epsilon $ $\forall n>N$ In case the function is continuous at $a$ then it must satisfy following $\forall \epsilon >0 $ ,$\exists \delta>0$ such that|$f(y_n)$|<$\epsilon $ whenever $|y_n-a|<\delta$. I wanted to make that $f(y_n)$ small for that $y_n$ in neighborhood  of $a$.From this I am not able convince myself from last answers.   This is not a duplicate, since I specified my particular problem with this proof. Please help me.


Looking for a short story in which an alien visits earth using ftl after a sub-light interstellar probe visits their star

I'm almost certain this is a Larry Niven short-story but I don't know how to identify it.  It's set in the equivalent of a NASA project station and they are receiving the telemetry from an interstellar probe as it encounters a star and contact is about to fade as the probe goes around the far side of the star. The alien in the audience apologetically explains that telemetry won't resume because they shot and destroyed the probe.  The alien explains that his race is deeply impressed by the humans' ability to create technology that can still work after the journey but the humans are depressed because the alien used ftl technology to easily achieve what was a monumental project for humans.


what is the differences between LDA and MLR?

I know that Linear Discrimination Analysis (LDA) is used for classification and Multiple Linear Regression (MLR) is for regression. Lets say I have a matrix X (independent variables) and Y(dependent variables)  if the Y is continues and I make a regression , it becomes MLR if the Y is categories (like 1111122222) and I do MLR to make a relation , it becomes LDA?  can one explain it in simple words and illustrations ?


What does 1/k represent regarding Newtons Law of Cooling? I know k represents the cooling constant. I think the inverse of k is the time taken for the liquid to cool from its maximum temperture to surrounding temperature. Any clarification would be most appreciated.


Learning .NET for ArcGIS (mainly Desktop) use

I have basic programming skills (I program simple vba python and lisp scripts and had gone through a java course a long time ago), but it seems to me (judging by ESRI publications) that there is no escaping the need to learn .NET for future relevance in the GIS job market (even as an analyst). I've gone through a basic c# course and can program (regrettably) quite poor programs, but I have no idea how to link the c# knowledge to actually programming for ArcGIS in order to progress.  I know the differences aren't big, but does ArcGIS use .NET or C#?  I know the best way to further my experience in .NET is to program more and more but are there any good .NET programming books or courses I can learn techniques from?  In your opinion, what is the best way to learn to program in .NET for ArcGIS? Are there any useful books or websites?   I seek your comments regarding ArcGIS 10 (and will be saving them for later) but also for ArcGIS 9.3.1.


I am creating a 'Troll' like application to use in a YouTube video, and I want a JFrame to jump around the screen every 1/2 second.   Heres my code:  package troll1;  import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.Random;  import javax.swing.JFrame; import javax.swing.Timer;  public class troll extends JFrame implements ActionListener{     private static final long serialVersionUID = 1L;      public static void main(String args[]) {         troll w1 = new troll();         w1.setVisible(true);         w1.setSize(500,500);     }      public Random ran;     public int random;     public troll w1;     public Timer t;      public troll() {         Timer t = new Timer(500, this);         t.start();      }      @Override     public void actionPerformed(ActionEvent arg0) {         Random ran = new Random();          for(int counter=1; counter<=1;counter++) {             int random = 1+ran.nextInt(500);             w1.setLocation(random, random);         }      }  }   The problem is, when I run this code, I get a error saying,  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException     at troll1.troll.actionPerformed(troll.java:37)     at javax.swing.Timer.fireActionPerformed(Unknown Source)     at javax.swing.Timer$DoPostEvent.run(Unknown Source)     at java.awt.event.InvocationEvent.dispatch(Unknown Source)     at java.awt.EventQueue.dispatchEventImpl(Unknown Source)     at java.awt.EventQueue.access$500(Unknown Source)     at java.awt.EventQueue$3.run(Unknown Source)     at java.awt.EventQueue$3.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)     at java.awt.EventQueue.dispatchEvent(Unknown Source)     at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)     at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)   Also, once I get this error gone, I will make it so the JFrame jumps around the entire screen, not just 500,500 and below.


How create a row and take his id at the same time in sql server and c#

I'm having a simple problem but cant find a solution:  I'm creating a row in my table client, but I don't know how recovery the id of the table that I just created, for example:  ALTER proc [dbo].[spinsert_client] @idclient int output, @name varchar(20), @surname varchar(40), as insert into client(name,surname) values (@name,@surname)   here I insert a client, now I want recovery that exact same idclient to insert "products" with it without have to manually search this client , I tried recovering the last row of the client table but I realise that if more than one person is using the same database in different computers it can be a problem, so I need create a client and recovery his id at the same time (it is an assumption I don't know). Im using sql server and Visual studio with c#  sorry for my bad English and thanks for the attention   edit------------------- solution:    ALTER proc [dbo].[spinsert_client] @idclient int output, @name varchar(20), @surname varchar(40) as insert into client(name,surname) values (@name,@surname) Select @@IDENTITY as newId;   them in my c# code:  rpta= SqlCmd.ExecuteScalar().ToString();


What is the significance of CPU clock speed differences between different generations/types of processors?

I currently have a computer equipped with a quad core Intel Core i5 430M / 2.26 GHz.   I noticed that the clock speed of the CPU to be higher than most of the i7 Haswell processors which are about 2GHz.   Are the newer processors better performance-wise than the older processors? If so, why and how are newer processors with slower clock speeds better than older CPUs with a faster clock speed?


How to run Drupal console command from code?

I have found a lot of documentation on how to run Drush commands from code, but I'm specifically looking on how to run a  command from code.  I have some experience in Symfony and I know how to run a Symfony command from code. Since a Drupal console command extends on Symfony command, I thought this should be rather easy. Simply following  doesn't amount to anything though.  I am trying to run a command in a hook_cron() implementation in a custom module.


Update iOS 5 to 7.0.6 from copied .ipsw file to phone

I've recently downloaded .ipsw file (firmware 7.0.6) and want to update my apple 4s 32 gig phone (ios 5). but when I tried to to use iTunes (holding shift key in windows 7 + press update button in iTunes -> choose .ipsw file for update) I got the error below :             What does this error mean and how can I fix it? I've downloded iTunes 11.2 (latest version)     Extra questions:  I am certainly sure there is no problem about my internet or hosts file. I turned my anti virus & firewall off and after that still got that error. Is it possible to transfer .ipsw file to my phone and run it from there? If yes, where should I copy that file and how can I run it? If no what is the solution and how can i fix that error?


Keep float out of a environment (for example definitions)

I knew that floats float around and sometimes are placed far away from where one wants them to be. With the times I learned to work with it, and there are already many posts about it. I have a kind of different problem. I'm writing my bachelor thesis and defined some environments for definitions and such. And of course I'm using floats as well. But now I have the problem that one of my floats are placed in one of my definitions. This is of course something I really don't want to have. If some of the floats are one page after or before they are referenced, that is ok, but having them in my definitions is no option. I don't know how to create a MWE for this without posting my whole thesis, but this is as close as I can get: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{blindtext} \usepackage{graphicx}  \newenvironment{myblock}{% \vspace{.5\baselineskip} \hrule\nopagebreak\vspace{.35\baselineskip}\nopagebreak} {\nopagebreak\vspace{.5\baselineskip}\nopagebreak\hrule\vspace{.5 \baselineskip}\noindent}  \newcounter{definition}[section] \renewcommand*\thedefinition{\thesection.\arabic{definition}} \newenvironment{definition}{% \refstepcounter{definition} \begin{myblock} \noindent\textbf{Definition \thedefinition} } {\end{myblock}}  \begin{document} \Blindtext \section{MWE} \begin{definition} \blindtext \end{definition} \begin{figure} \includegraphics[scale=.5]{lorem} \end{figure} \Blindtext \end{document}  This is the picture I used for this example.  Well in this example the picture isn't placed that bad, but in my thesis it is placed inside the definition environment. So my real question is, how can I keep the figure out of that environemnt? PS: If you see any problems with my definition environment that is not related to this question, please let me know. I'm always happy to learn something new.


cd to previous directory without echo of directory name

This  gave me cd - as shorthand to change to my previous directory in Bash. It does have a major problem: it prints the directory it changes to, wasting my screen space, as that directory is then repeated in the prompt on the next line.  I know I can do cd $OLDPWD, also mentioned in that answer, and cd - >/dev/null but that is much more typing.   In the bash man page it says:     ... or if - is the first argument, and the directory change is successful, the absolute path name of the  new  working  directory  is written to the standard output.   How can I make - not to be the first argument? By using any of the cd optional arguments? Any other way to suppress the echo or minimise typing without the need for defining functions/aliases on every machine I work with?


Let $f:G\to G'$ be a surjective homomorphism. Prove that if $G$ is cyclic, then $G'$ is cyclic.

Just would like to see if I'm right.  Proof: Let $G$ be generated by $x$ (Let $G=\langle x \rangle$ for some $x$ in $G$.) We wish to show that there exists an $x'$ in $G'$ such that $G'=\langle x' \rangle$. First, we will show that for all $x^n$ in $G$, $f(x^n)=f^n(x)$. We proceed by induction.   Base case: $n=1$. $f(x*e_G)=f(x)f(e_G)=f(x)$. Now, assume that $f(x^k)=f^k(x)$ for some arbitrary positive integer k. We show that $f(x^{k+1})=f^{k+1}(x)$. Observe that $f(x^{k+1})=f(x^kx)=f(x^k)f(x)=f^k(x)f(x)=f^{k+1}(x).$   Next we will show that for all $x^{-n}$ in $G$, $f(x^{-n})=f^{-n}(x)$. We proceed by induction. Base case: $n=-1$. $f(x^{-1}*e_G)=f(x^{-1})f(e_G)=f(x)$. Now, assume that $f(x^{-k})=f^{-k}(x)$ for some arbitrary positive integer k. We show that $f(x^{-k-1})=f^{-k-1}(x)$. Observe that $f(x^{-k-1})=f(x^{-k}x)=f(x^{-k})f(x)=f^{-k}(x)f(x)=f^{-k-1}(x).$ Because $f$ is onto, $Im(f)=G'$ and therefore $Im(f)=(...,f^{-2}(x),f^{-1}(x),e_G,f(x),f^2(x),...)=G'$.  Thus, there exists an $x'$ in $G'$ such that $G'=\langle x' \rangle$ and the proof is complete by the principle of mathematical induction. Q.E.D.  I have a feeling the proof shouldn't be this long. Any suggestions for a shorter, cleaner proof?


iPhone 5 won't activate without SIM card

I just purchased an unlocked iPhone 5 from the Apple store today, and I can't activate it to use it because it says "please" insert a valid SIM card to use it. I'm not using this phone as a "phone" to make calls. I'm a developer and am just looking to use it for development purposes. How can I go about using the iOS 5?


Apache2 Not Working And My browser php code

When I restart apache server this message appears:  Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.   After that I check status of apache service:   ● apache2.service - The Apache HTTP Server    Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset:    Drop-In: /lib/systemd/system/apache2.service.d            └─apache2-systemd.conf    Active: failed (Result: exit-code) since Mon 2020-02-17 00:44:29 IST; 7min ag   Process: 24336 ExecStop=/usr/sbin/apachectl stop (code=exited, status=1/FAILUR   Process: 24865 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAIL  Main PID: 22462 (code=exited, status=0/SUCCESS)  Feb 17 00:44:29 technicalms systemd[1]: Starting The Apache HTTP Server... Feb 17 00:44:29 technicalms apachectl[24865]: apache2: Syntax error on line 228  Feb 17 00:44:29 technicalms apachectl[24865]: Action 'start' failed. Feb 17 00:44:29 technicalms apachectl[24865]: The Apache error log may have more Feb 17 00:44:29 technicalms systemd[1]: apache2.service: Control process exited, Feb 17 00:44:29 technicalms systemd[1]: apache2.service: Failed with result 'exi Feb 17 00:44:29 technicalms systemd[1]: Failed to start The Apache HTTP Server.   And my browser shows php code like that code (not executed)   <?php     $libs=glob("app/Libs/*.php"); foreach($libs as $lfile) {     include_once $lfile; } new Autoload(); ?>   Please tell me how can I solve it


C++ STL Vector Iterator accessing members of an Object

I think I've declared a Vector with an object correctly.  But, I don't know how to access it's members when looping with Iterator.  In my code, the line --->>  cout << " " << *Iter;  How do I print the contents of the members?  Like *Iter.m_PackLine ???  Not sure if I used the correct terminology, but appreciate the help!  Thanks  class CFileInfo {   public:       std::string m_PackLine;       std::string m_FileDateTime;       int m_NumDownloads; };  void main() {   CFileInfo packInfo;    vector<CFileInfo, CFileInfo&> unsortedFiles;   vector<CFileInfo, CFileInfo&>::iterator Iter;    packInfo.m_PackLine = "Sample Line 1";   packInfo.m_FileDateTime = "06/22/2008 04:34";   packInfo.m_NumDownloads = 0;   unsortedFiles.push_back(packInfo);    packInfo.m_PackLine = "Sample Line 2";   packInfo.m_FileDateTime = "12/05/2007 14:54";   packInfo.m_NumDownloads = 1;   unsortedFiles.push_back(packInfo);   for (Iter = unsortedFiles.begin(); Iter != unsortedFiles.end(); Iter++ )  {     cout << " " << *Iter; // !!! THIS IS WHERE I GET STUMPED     // How do I output values of the object members?   } }  // end main


What is the significance of different color uniforms in Star Trek reboot series?

What does the different color of uniform shirts signify in the Star Trek movies of the reboot series? In Star Trek Into Darkness Kirk orders Chekov to wear a Redshirt in place of a Yellow one to work in place of Scotty. In the original series, the colors were a little different and also have some ambiguity but in the reboot series, there are only 3 colors used Red, Yellow, and Blue. So what are the different colors of uniforms used in the Star Trek reboot series?


method getItemcount in adapter of recylerview

here code is Of  the class public class AdapterOrderShop extends  RecyclerView.Adapter<AdapterOrderShop.HolderOrderShop> implements Filterable {  private Context context; public ArrayList<ModelOrderShop> orderShopArrayList,filterList; private FilterOrderShop filter;   public AdapterOrderShop(Context context, ArrayList<ModelOrderShop> orderShopArrayList) {     this.context = context;     this.orderShopArrayList = orderShopArrayList;      this.filterList=orderShopArrayList; }  @Override public int getItemCount() {      return orderShopArrayList.size(); }   Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference


What to do with sitemaps when going HTTP to HTTPS

I recently switched my WordPress.org blog from  to  with redirections.   For a year, I only had http:// addresses, so my 8 sitemaps (my blog is in French and in English) are submitted to the http URL.   What do I need to do with the sitemaps now that https is my main URL?  Do I need to re-upload the sitemaps to HTTPS ? Do I leave them on the HTTP property ?   Might be useful to know that I created a "set" for my blog that contains http://myblog, http://www.myblog, https://myblog, and https://wwww.myblog  Thanks!   I read this, but it doesn't talk about sitemaps anywhere.


Just as in Newton's 2nd law the value of constant was completely arbitrary (as said in ncert textbook class 12 physics) and was chose to be 1. Why not Coulomb's constant is chosen as unity?


So here is the Problem :-  If $(x^2 - x - 1)^n = a_{2n}x^{2n} + a_{2n - 1}x^{2n - 1} + \cdots + a_2x^2 + a_1x + a_0$, then find the value of $a_0 + a_2 + a_4 + \cdots + a_{2n}$ .  I don't know how to factorise $(x^2 - x - 1)^n$ and I was only able to solve this by substituting $n = 1$, where that would give $$(x² - x - 1) = a_2x^2 + a_1x + a_0.$$ This immediately gives the answer as $0$ . But I want a solution for $n$ itself, but not substituting $n$ as any number. Can anyone give me an idea of it ?


So I had an old panel and subpanel replaced with a single new panel. The guys reused the old breakers, and the breakers wobble in the panel like loose teeth. With the old panel, they didn't wobble at all.   Is this because the breakers don't fit the new panel, or were they just not tightened down enough?  The breakers are GE type THQL, 1 pole units. The panel is a GE PowerMark Gold Load Center, type 1 indoor enclosure, model 6.


The title says it all: What blocks can endermen pickup? I don't know what they can pickup. I know that when they were added, they could pick up anything, but now I know they can only pick up some blocks. What I want to know is what should I use in my house. I don't want endermen picking up my house's blocks. What shouldn't I use?


How can I send messages to my friend on skype with a batch command line? i've tried, but is used to send images or other media.     "C:\Program Files\Skype\Phone\Skype.exe" /sendto:XXXXXXX Test


No sound ALC294 Asus ROG Strix 512 Ubuntu 20.04.01

I just bought a new laptop called Asus ROG Strix G15 G512LW with i7 and Nvidia RTX, but there is no sound at all. Here are some of my device information: $ cat /proc/asound/cards   0 [PCH            ]: HDA-Intel - HDA Intel PCH                       HDA Intel PCH at 0xc5418000 irq 155  1 [NVidia         ]: HDA-Intel - HDA NVidia                       HDA NVidia at 0xc5080000 irq 17  $ aplay -l **** List of PLAYBACK Hardware Devices **** card 0: PCH [HDA Intel PCH], device 0: ALC294 Analog [ALC294 Analog]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]   Subdevices: 1/1   Subdevice #0: subdevice #0  I have tried to select HDA Intel PCH from alsamixer and check if there are any muted selection. Moreover, thanks to  I tried by adding the ones that listed below to the the alsa base: $ sudo gedit /etc/modprobe.d/alsa-base.conf  options snd-hda-intel model=g50v options snd-hda-intel model=g71v options snd-hda-intel model=dell options snd-hda-intel model= asus-a7j options snd-hda-intel model=asus-a7m options snd-hda-intel model= asus-laptop options snd-hda-intel  model=lenovo  But whatever I tried I cannot made it to hear anything. BTW when I wrote alsamixer and hit Enter I got this message: $ alsamixer cannot open mixer: No such device So I reached it by writing `alsamixer -c 0` and its version is AlsaMixer v1.2.2  It's been a week that I have tried to solve it as a newbie in Ubuntu, so I thought it would be a wise decision to ask your help.


Biber - "cite" macro fails at second compilation, while entry is found in the bibliography

I am trying to set up a bibliography with BibLatex. Even a single \cite{} statement causes an error upon second compilation with pdflatex after running biber.  The sequence of running the commands is as follows:  pdflatex mwe.tex biber mwe (optionally multiply by 2 and/or add a bcf extension) pdflatex mwe.tex   After running biber and trying to run pdflatex for the second time the engine errors at \cite{aa} and no bibliography gets printed.  Here is the minimal (not yet) working example:  \documentclass{article} \usepackage[backend=biber, date=short, style=apa]{biblatex} \title{some title} \author{Authorov A. A.} \date{\today} \addbibresource{references.bib} \begin{filecontents}{references.bib} @misc{aa,   author = {Some Author A.},   title = {Some title},   year = {2016} } \end{filecontents} \begin{document} \maketitle Some sentence\cite{aa}  \printbibliography \end{document}   Blg file output:  [0] Config.pm:354> INFO - This is Biber 2.7 [1] Config.pm:357> INFO - Logfile is 'mwe.blg' [28] biber-MSWIN64:303> INFO - ===  [51] Biber.pm:359> INFO - Reading 'mwe.bcf' [136] Biber.pm:835> INFO - Found 1 citekeys in bib section 0 [149] Biber.pm:3670> INFO - Processing section 0 [168] Biber.pm:3840> INFO - Looking for bibtex format file 'references.bib' for section 0 [171] bibtex.pm:1435> INFO - Decoding LaTeX character macros into UTF-8 [176] bibtex.pm:1292> INFO - Found BibTeX data source 'references.bib' [187] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 'variable = shifted' with 'variable = non-ignorable' [187] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 'normalization = NFD' with 'normalization = prenormalized' [188] Biber.pm:3499> INFO - Sorting list 'apa/global/' of type 'entry' with scheme 'apa' and locale 'en-US' [189] Biber.pm:3505> INFO - No sort tailoring available for locale 'en-US' [191] bbl.pm:608> INFO - Writing 'mwe.bbl' with encoding 'ascii' [192] bbl.pm:712> INFO - Output to mwe.bbl   I am running MikTex 2.9 (64-bit), Biber 2.7 and Windows 10.  Having had a look through similar questions, they either do not use Biber or the problem seems to have a different root. Would appreciate any hints and tips. Thank you in advance!


I dont want to install any 3rd party apps for hiding there images stored on device . How can I hide my images from the gallery app without installing any other app like Hide it Pro or Gallery lock? I use a low-end device and these apps use up my memory which would have otherwise been used for different apps.


Drawing the limaçon, r=0.5+2cos(theta) in TeX

Could anyone tell me what I am doing wrong please. I am trying to only use the tikz package. My thought process is that; r^2=x^2+y^2 and r=sqrt(x^2+y^2) so using x=(a/2)+bcos(theta)+(a/2)cos(2theta) and y=bsin(theta)+(a/2)sin(2theta) when r=a+bcos(theta), we get r=sqrt(((0.25)+2cos(theta)+(0.25)cos(2theta))^2+((2sin(theta)+0.25sin(sin(2theta))^2). So rearranging for theta we get theta=acos(r-0.5)*0.5. My code reads:  \documentclass{article} \input{header} \usepackage{tikz} \begin{document}  \begin{figure}[h!] \centering \begin{tikzpicture}[xscale=1.3, yscale=5, domain=-2*pi:2*pi] \draw[->] (-0.2,0) -- (1.7,0) node[below]{$x$}; \draw[->] (0,-1) -- (0,1) node[left]{$F(x)$}; \draw[color=blue,smooth] plot(\x,{0.5*acos({{sqrt((0.25+2*cos(\x r) + 0.25*cos(2*\x r))^2+(2*sin(\x r) +0.25*sin(2*\x r))^2)-0.5}})}) node[below]{$\cos$};  \end{tikzpicture} \caption{Lim} \label{fig:Lim} \end{figure} \end{document}   But it keeps on going wrong. I dont want to use cspolar or any other package.


How do I prove the sequence $x_{n+1}=\sqrt{\alpha +x_n}$, with $x_0=\sqrt \alpha$ converges? ( boundedness?)

I need to "study the limit behavior of the following sequence" and then compute the limit. I can compute the limit and prove the monotonicity, but I am having trouble proving boundedness. I tried to understand from other similar posts how this could be done, but since I didn't understand I'm asking it as a new question. The sequence is $x_{n+1}=\sqrt{\alpha +x_n}, x_0=\sqrt \alpha, \alpha>0$.  It seems to be monotonically increasing.   Proof:   It can be shown by induction that the sequence is monotonically increasing.   Claim that $x_{n+1}\geq x_n$  $$x_1=\sqrt{\alpha+\sqrt\alpha}>\sqrt\alpha=x_0$$ $x_{n+1}\implies x_{n+2}$ $$x_{n+1}=\sqrt{\alpha+x_n}<\sqrt{\alpha+x_{n+1}}=\sqrt{\alpha+\sqrt{\alpha+\sqrt\alpha}}=x_{n+2}$$ Boundedness:  Because the sequence is monotonically increasing and $x_o=\sqrt\alpha$, it is bounded below by $\sqrt\alpha$. Now comes the part where I have to prove that the sequence is bounded above. The problem is that I don't know how to start, so if anyone could give me a bit of a push I'd be grateful.  The limit:  I know that $\lim\ x_n=\lim \ x_{n+1}$, so letting $\lim\ x_n=x$ then $$x=\sqrt{\alpha+x}$$ and solving would give $x=\frac{1+\sqrt{1+4\alpha}}{2}$.  May somebody please confirm my proof thus far, and help me prove the upper bound? Thanks!


I ask in an international context, and NOT only for New York. I'd cherish a picture to visualise the definitin. For example, NY Times fails to define the word, whereas the dictionaries appear conflicting and vague. Even Straightdope's apparently catholic answer hedges with the word apparently?   [North American] Any urban or suburban area bounded by four streets  [countable] (North American English) the length of one side of a piece of land or group of buildings, from the place where one street crosses it to the next  only worsens my confusion: 'North-south' implies 1 mile = 20 blocks, but this differs from 'The distance between avenues'? What are 'short blocks' and 'long blocks'?  Apparently the answer to the question hinges upon which city, and within that city, what is defined as a block.


Can we get some new badges based on the new "People Reached" stat?

With all the buzz around this new “Saving-the-frigging-world-o-meter”  in the new profiles, I think we're due for some new badges! What say you? Perhaps something along the lines of:       Impressive - Reached ~500k people.       Impactful - Reached ~1 million people.       Monumental - Reached ~2 million people. * Badge names and numeric values for illustrative purposes only.


What can i do with a USB that can run linux?

I created a bootable Ubuntu USB stick by following this  Now, what can i do with this stick? Can i use it for general storage as well as the bootable of the OS? Can i store the cookies of my browsing session to the stick so that i can continue browsing on whatever device i am on currently? I do not want to damage the USB stick i am using currently but I think i will try to do the above things.


Number of elements which are cubes/higher powers in a finite field.

This question is a slight generalization of .  How many elements are there in a finite field of order $q$ which are :    Squares. Cubes. Higher powers.   I mean :  How many elements are there which are squares...   How many elements are there which are cubes...   how many elements are there which are higher powers...   What all I could see is  :  For finding elements which are cubes I would consider :  $\eta : F^*\rightarrow F^*$ sending $x\rightarrow x^3$  For this If I know the kernel of $\eta$ then I would have $F^*/Ker(\eta) \cong \{x^3 : x\in F^*\}$  Which says that :  No of elements which are cubes are $\dfrac{|q-1|}{|Ker (\eta)|}$.  Now, Kernel of $\eta$ would be $\{x\in F^* : x^3=1\}$  All I know is if there is some subgroup (I am mentioning $\{1,x,x^2\}$ for $\{x\in F^* : x^3=1\}$)  Then It would be unique as a finite cyclic group can not have two subgroups of same order.  So, Now the problem is how to see for existence as we are through with uniqueness.  Suppose I prove uniqueness then I would say :  Number of elements of $F^*$ which are squares are :   $\dfrac{q-1}{3}$ If $F^*$ have an element of order $3$  $q-1$ If $F^*$ have no  element of order $3$    (I believe this would be totally dependent of nature of $q$)  Now the question is how do i make sure of existence with given nature of $q$.  I would be Thankful If some one can help me to see this and I would be happy to see further generalization.     How many elements of order $n$ are there in a Finite field of cardinality $q$   Thank you :)


Integration with Fractional Part (Calculus) $\lim\limits_{n\to \infty} \int\limits_0^1{e^{\{nx\}}\cdot x^{2016}dx} $

$$\lim\limits_{n\to \infty} \int\limits_0^1{e^{\{nx\}}\cdot x^{2016}dx} = \text{ } ? $$   $\{nx\}$ - Fractional Part Number. Example: $\{-2/3\}=\{4/3\}=1/3$  My solve: $$\lim\limits_{n\to \infty} \frac{1}{n^{2017}}\int\limits_0^n{e^{\{t\}}\cdot t^{2016}dt} , t=nx$$  Please give me a clue what to do next


What's the max speed that humans could run?

Assuming humans could use all of their muscle strength at once, with no need of cooling or energy, how fast could we theoretically run?


Why doesn't my method return a string or char to main?

I'm trying to complete a simple program using multiple methods to compute the grade of a test, yet my method will not return any letters. The IDE says that my method must return a result of type String.  public static String getGrade1(int num1) {     if (num1 <= 100 && num1 >= 90) {         String a = "A";         return a;     } else if (num1 < 90 && num1 >= 80) {         String b = "B";         return b;     }else if (num1 < 80 && num1 >= 70) {         String c = "C";         return c;     }else if (num1 < 70 && num1 >= 60) {         String d = "D";         return d;     }else if (num1 < 60) {         String f = "F";         return f;     } }


Question: Let $A\in M_2(\mathbb R)$, Prove that $a_1A^1 + a_2A^2 + ... + a_5A^5 = 0$ for some $a_i\in\mathbb R$ which are not all zero.  First I figured out the point of this proof is to show $A^1, A^2... A^5$ are linearly dependent.  While since $A^5$ is a 2x2 matrix, there must be a relationship between $A^1$ to $A^5$ such that $A^5$ can be represented by a combination of $A^1,A^2,A^3,A^4$. I can compute that but I think there should be a smarter way to get the dependent we want. Thx.


Why is root mean square used when calculating average power, and not simply the average of voltage/current?

$$P = I_{\text{eff}}^2 \times R$$ where \$I_{\text{eff}}\$ is the effective current. For power to be average \$I\$ must be average current, so I am surmising that the effective current is the average current.  In that case, why is \$I_{\text{eff}}\$ not simply $$I_{\text{eff}} = \frac{1}{t}\int_{0}^{t} |i|dt$$  Instead it is defined like so:  $$I_{\text{eff}} = \sqrt{\frac{1}{t}\int_{0}^{t} i^2dt}$$  Thus, using these two expressions to calculate \$P\$ results in different answers.  Why is this so? It makes no sense to me. I can only guess that I am misinterpreting the effective current is the average current. If this is not the case, however, I do not see how \$P\$ can be the average power when \$I_{\text{eff}}\$ is not the average current.


Which version of Signal Desktop is legit?

I saw both of these in the apt sources.  Since this is a secure communications app, what is the correct source to use for Ubuntu?  Searching for Signal, I see:      And lower:    With these details:      Before thinking this is an unnecessary abundance of caution, you can see there is an effort to create frauds out there:   Authoritative:  vs. presumably fake/nefarious:    Please don't mark this as a duplicate unless you can guarantee these two applications are identical except for being a snap versus a source.  If you can demonstrate they're identical, then submit that as an answer.  This is a question not because the asker doesn't know what a snap is, but in order to disambiguate and provide authority for this security conscious application.


An idiom to describe someone who thinks he/she is wiser than others

Is there an idiom in English to describe someone who thinks he/she is smarter/wiser than everyone else?  In Polish, we have an idiom, which literally translated, would sound like:     He/she has eaten all minds


Aussie visiting and re-visiting the UK visa-free

If I am an Australian entering the UK without a visa and I travel back and forth between EU and UK during the 6 months, will I be free to get another 6-month stay beyond the last day of the 6 month period? I have heard something like the limit for an Aussie without a visa in the UK is 6 months stay within any 12 months time-frame but I'm not sure if this is true? Ideally, I'm looking to be abroad for 12 months without a visa hopping between UK and EU/Africa - no work required. I just don't want to end up in immigration trouble.


How do I trim a string in JavaScript? That is, how do I remove all whitespace from the beginning and the end of the string in JavaScript?


My login is not working. I used in code username and password for it

This is my first login with android. The IF Condition is not working properly. When i give the correct password and username it exec the else part.Need help in this.  I can't see any errors in the code since i'm new to android studio. I used Latest android version (Pie) and Lolipop to test. same error happens.      public class MainActivity extends AppCompatActivity { private EditText Name; private EditText Password; private TextView info; private Button login; private int counter = 5;   @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);      Name = (EditText)findViewById(R.id.etName);     Password = (EditText)findViewById(R.id.etPassword);     info = (TextView)findViewById(R.id.tvInfo);     login = (Button)findViewById(R.id.btnLogin);     info.setText("No of Attempts remaining : 5");     login.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {             validate(Name.getText().toString(), Password.getText().toString());         }     }); }  private void validate (String username, String userPassword){      if ((username == "Admin") && (userPassword == "admin")){         Intent Intent = new Intent(MainActivity.this, SecondActivity.class);         startActivity(Intent);     }     else     {          counter --;         info.setText("No of Attempts remaining :" + String.valueOf(counter));             if (counter == 0)             {                 login.setEnabled(false);             }     } }   }  I expect when the correct login info is given the app should go to SecondActivity.class .But actually it's not proceeding to SecondActivity with the correct details too.