I was recently reading some linux articles and stumbled on a faster way to do sudo tasks the gui way by installing a package called gksu-nautilus which allows me perform tasks with root permissions without having to go through terminal.  I installed the package with synaptic and restarted nautilus with the command below:  nautilus -q   I then ran the lines gksu nautilus in terminal and got a prompt to enter my password, I entered it and immediately the errors below were displayed in terminal:  (nautilus:4062): GLib-GObject-WARNING **: invalid cast from 'GtkMessageDialog' to 'NautilusWindow' ** ERROR:nautilus-window.c:2116:nautilus_window_get_slots: assertion failed: (NAUTILUS_IS_WINDOW (window))   I decided to try sudo nautilus , and got the same error. I'll really appreciate a solution to this problem.


Coarser topology on the reals that is Hausdorff and connected.

I need to find a topology over $\mathbb{R}$ that is (strictly) coarser than its usual topology, and must be Hausdorff and connected. However, every topology that I had considered fails in one of those conditions. For instance, neither the cofinite topology and the topology generated by semi-rays are Hausdorff but both are connected topologies.  I don't know if such topology exists, can someone help me?


Texture Paint window not showing any light

I have an object(chair) and light in my scene, everything works fine in object/edit mode. I can switch between display methods and the lights/color change accordingly. But when I click the chair and go into TexturePaint mode, there is no more light/shading. A metallic material will be pure black, an image texture will show all the colors completely flat.  Changing to Lookdev or Rendered Mode doesn't help either. Any idea why this is happening?  Thanks!


Biblatex with Biber: Configuring my editor to avoid undefined citations

Running the minimal example  \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{\jobname.bib} @ARTICLE{example,   author  = {Other, Anthony Norman},   title   = {Some things I did},   year    = {2014},   journal = {J.~Irrep. Res.},   volume  = {1},   number  = {1},   pages   = {1-10} } \end{filecontents*} \usepackage[backend=biber]{biblatex} \addbibresource{\jobname.bib} \begin{document} Hello\cite{example}. \printbibliography \end{document}   I get the warning There were undefined references.  I have read  and know that I need to run:   LaTeX Biber LaTeX   However, my editor is only set up to run BibTeX. How do I go about setting up my editor/IDE to be able to run Biber, and how do I run the LaTeX/Biber/LaTeX cycle?  Answers (sorted alphabetically by editor name)                    Answer guidelines   Each answer should be for one editor. If the editor is cross-platform, if possible give a single answer with notes covering the minor platform variations. Please edit the question to include new answers in the 'link list' Each answer should be 'stand alone', i.e. don't say 'It's almost the same as editor Y but ...' for the editor part Instructions for 'build tools' such as arara or latexmk are welcome but should explain how to set up the editor in question as not all editors allow simple addition of arbitrary tools


have made a simple dynamic login page.you have to enter username and password in order to view data.I have pasted the code below and the screenshot of error.code in config.php is the connection made with database.name of db is department and tablename is user.     if($_POST)    {      $unam=$_POST["uname"];     $pwd=$_POST["pwd"];     include ("config.php");      $res=mysqli_query($con,"select * from user where uname=$unam AND password=$pwd ");     $row=mysqli_fetch_array($res);      //also tried     //while($row=mysqli_fetch_array($res);     if($res){ ?> Click here to view<?php }      else { ?> login failed <?php }     }


Oracle isn't restoring correctly a backup

First of all I'll say I'm using:  Oracle Database 11g Express Edition Oracle SQL developer  What I'm trying to achieve Create a backup and restore it, so for example I can delete a table after a backup and then restore the backup to recover that table. What I tried step by step Step 1 First I entered to RMAN and used the following statements connect target; shutdown immediate; startup mount; configure controlfile autobackup on; backup database;   So for now I'm connected to the database and it's only mounted, and the backup has finished correctly. You have above what I got after executing the backup. Step 2 Now I execute startup dba; because I want to initiate the database, so I can connect with Oracle SQL Developer and for example delete a table.  As you can see I don't have now tables because I deleted the only I had (before the backup I had the table "regions" of the HR schema so that's inside the backup I guess). After all of this I close the connections in sql developer, because I don't know if it's going to create errors, but I want to avoid them. Step 3 Now I want to start trying recovering the backup and I execute this because I read that both for backing up and restoring, you must leave the database in the "mount state", so I go to RMAN and execute only this now: shutdown immediate; startup mount;  Step 4 And now in this step the real recovery, I execute this: restore database;   recover database;   Now I should execute the following but it's returning this error: alter database open;   So, I execute this instead: alter database open resetlogs;   Step 5 Now that all is done and opened, I'll check if the table is recovered in sql developer.  And no, it's not there. I hope all the info was clear


Which are the integer solutions of this function?

Consider  $215\cdot x - 1763\cdot y=z$ with x, y, z integer.   Which form must have x and y?   I tried something like $x=41\cdot n$ and $y=5\cdot n$ or $x=9+41\cdot n$ and $y=1+5\cdot n$, are there other forms?


The following is written in my textbook as the reason for weightlessness felt in satellites:     The gravitational pull is counterbalanced by the centripetal force.   This introduces two problems:   For satellites orbiting around Earth, gravity is, in fact, the centripetal force. If the gravitational pull and centripetal force on a satellite are both in the same direction, then how do they cancel each other out?


I am trying to set snap mode within QGIS plugin.  So far, I have tried:  QgsSnappingUtils().setSnapToMapMode(QgsSnappingUtils.SnapAdvanced)   and  QgsSnappingUtils().setSnapToMapMode(2)   without success.  QGIS Snapping options (Settings>>Snapping Options...) continue with:  Snapping mode = Current layer  Any hint? (Using v 2.14.0)


It is common to place a \qed-Box at the end of a theorem statement (or lemma, corollary, ...) if we give no proof for that statement.  How can I do this in LaTeX? If I place a qed-box at the end of the statement there is an additional linebreak, which is inacceptable formating.


Intersection of a plane and a smooth surface (in 3D) is a curve

How to show that the intersection of a plane and a smooth surface in 3D is "generically" a one-dimensional curve?  That is, if the intersection is not a curve and non-empty, then perturbing the plane a little bit, the intersection would become a curve.  I just tried to read Thom's transversality theorem but I don't really know how to apply.  It seems that by preimage theorem, if $f:\mathbb R^3\to\mathbb R^2$ is smooth, then $f^{-1}(y)$ is (generically?) a one dimensional manifold.     Let $X$ denote the plane and $Y$ denote the surface.  This link"   says that if $X,Y$ intersect transversally, then $dim(X\cap Y)=2+2-3=1$. What theorem is this?  How to prove it is generic?  I just think the 2+2-3=1 from the Mathworld makes sense to beginners. I am just wondering what reference is it so I can continue to read it.


does main() in c programming language returns an integer value by default?

I am using Dev c++ as IDE and I am a student and new here I am trying out to see what values the program give so when ever i was putting float main() and return some float value it is giving some long integer numbers and when i put nothing liKe main() it is simply returning some integer value why is that any particular reason ? Thanks in advance


Is /proc folder and process details really exists on hard drive

I am a little bit confused about /proc directory. Each process frequently updating its state, memory info, progress etc in their process.  My question is that the /proc directory keeps the memory or writes on harddrive each information.  What I believe that It frequently updating the information it takes IO operations and it no further uses when computer restart so it might be in the memory.


Does question being closed prevent bounty being started on exemplary answer to it?

I wanted to award a bounty to  to   The answer was posted three days ago and the question was closed two days ago, and yet the start a bounty button does not appear beneath the question.  Is that because it is closed (as a duplicate)?


How to form SQL Expressions with mix of integer/numeric and text/string fields/values in ArcPy?

I am trying to create a query for the select by attribute function within a Python script.This is my current code.      lot = '96'     dp = 756421      lotFile = "D:\\NCT_GIS\\DATA\\Regional_55.gdb\\Murray\\cadastre"     arcpy.MakeFeatureLayer_management(lotFile, "lot_lyr")      arcpy.SelectLayerByAttribute_management("lot_lyr", "NEW_SELECTION", "\"LOTNUMBER\" = " + lot + " AND " + "\"PLANNUMBER\" = " + str(dp))   Unfortunately I cannot concatenate and integer and if I convert DP to a string then the query is invalid as the PLANNUMBER field is numeric whilst LOTNUMBER is text.  Does anyone know how to get the variables into the query properly so that I can input any lot and dp as this will eventually become an addin where users can specify which land parcel they are interested in.


Lost Windows 10 during installation of Ubuntu 17.10 for UEFI

I wanted to install Ubuntu 17.10 alongside Windows 10. But it all got messed up while I was installing Ubuntu 17.10!  The problem is UEFI mode. I don't know UEFI. I still want to dual boot between Windows 10 and Ubuntu 17.10, So what can I do now?  Note: My laptop is Asuspro core i7 2.4 ghz processors, 8GB ddr3 ram, and entering the BIOS I didn't find so called UEFI!   I tried from Windows 10 Control Panel > Recovery but didn't find UEFI Firmware settings. How can I find it to configure?


Blacklisting grub packages from installing

I am trying to block GRUB packages from being installed (after having purged them).  The problem is virtually identical to  and even involves GRUB which is exactly what the selected answer illustrated doing.  However, it does not work in 12.04 LTS using the cloud-image edition.  In my scripts to do all this, I first delete the packages involved.  It has an annoying UNinstall prompt, but I finally figured out how to feed it answers (see  for my older question) to make it move along.  After that uninstall is done, I run commands to edit the /etc/apt/apt.conf.d/01autoremove file to add the grub blacklist line as shown in the answer for the question above.  EXECUTING: diff -U999999 /root/etc_apt_apt.conf.d_01autoremove /etc/apt/apt.conf.d/01autoremove --- /root/etc_apt_apt.conf.d_01autoremove       2012-04-20 10:21:55.000000000 +0000 +++ /etc/apt/apt.conf.d/01autoremove    2012-10-03 16:28:17.000000000 +0000 @@ -1,26 +1,27 @@  APT  {    NeverAutoRemove    {         "^firmware-linux.*";         "^linux-firmware$";         "^linux-image.*";         "^kfreebsd-image.*";         "^linux-restricted-modules.*";         "^linux-ubuntu-modules-.*";         "^gnumach$";         "^gnumach-image.*";    };     Never-MarkAuto-Sections    {         "metapackages";         "restricted/metapackages";         "universe/metapackages";         "multiverse/metapackages";         "oldlibs";         "restricted/oldlibs";         "universe/oldlibs";         "multiverse/oldlibs"; +       "grub*";    };  };   FYI, the commands are prefixed with "EXECUTING" and shown that way as part of the mechanism of my script to show what it is doing.  The file /root/etc_apt_apt.conf.d_01autoremove in this case is a backup of the original, being compared with the changed file already in its place.  It looks right to me.  Then I do the command with the same package names being negated with the "-" suffix.  And yet it still installs them as new packages:  EXECUTING: apt-get --yes dist-upgrade grub-common- grub-gfxpayload-lists- grub-legacy-ec2- grub-pc- grub-pc-bin- grub2-common- Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done The following NEW packages will be installed:   grub-common grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common linux-image-3.2.0-31-virtual The following packages will be upgraded:   apport apt apt-transport-https apt-utils dbus gnupg gpgv isc-dhcp-client isc-dhcp-common libapt-inst1.4   libapt-pkg4.12 libdbus-1-3 libgc1c2 libxml2 linux-firmware linux-image-virtual linux-virtual multiarch-support   ntfs-3g openssl python-apport python-problem-report resolvconf tzdata ubuntu-keyring 25 upgraded, 6 newly installed, 0 to remove and 0 not upgraded. Need to get 45.4 MB of archives. After this operation, 35.1 MB of additional disk space will be used.   One reason I do not want to have them installed here is the unpredictability of prompts that my script has to feed input answers to.  And this just makes no sense for them to be installed when they have been blacklisted, and not really needed.  FYI, for reference on why GRUB is not needed, I am using the recommended option 2 in AWS EC2 PV-GRUB kernel images (AKIs) as described in this document at AWS:   So the big question:  how to prevent these packages from being installed whatsoever?


Testing spatial autocorrelation for presence-absence records?

I want to test the spatial autocorrelation for presence-absence data records, I know that the Moran's I test cannot be used here since I have categorical data. I was thinking about the join-count statistic, but is there any work that applied this statistic to the presence-absence data? I have data points and I don't know how to use this statistic here.


UK family visit visa refused because I have more family in the UK than in my home country

I applied for a UK visit visa with my mother to visit my sisters and other family relatives and to attend a cousin's wedding. My application was refused as you can see in the refusal letter.  Can anyone please tell me what I should do now, and how I can make my application better next time?  I have provided almost all documents. I received money last month from my family in my bank account to distribute money to the poor, as it was the Ramadan holy month and almost all my family sent me money for distribution. I wrote in my letter that I received money from my family to give to the needy here in my country but the ECO said I have not provided any document. What document do I need to provide as my family members transfered money directly to my bank account?  (My closing bank statement was Pkr: 1,287,000 on 27-06-2018 and he wrote Pkr 1,117,354. I don't think they checked all documents correctly).  I received rent from the shops that are built next to my home and I usually get cash in hand. I also wrote this in my letter. I provided rent papers but the ECO said the documents do not demonstrate that I actually receive rent. What other documents do I need to provide to prove that I receive rent?  I have 5 sisters and other family members in the UK. That's why I want to go there and visit them. All of my sisters and their families have wanted to visit us in Pakistan but it is not easy for them as there are 24 of them in total, including their children. I wrote this in my letter and I also wrote that I will come back because I have property here and shops on rent, and I also have two sisters and the children here, but the ECO said I have more family in the UK than Pakistan, and that I would not come back. Please tell me how I can show more ties here. I provided property paper, rent papers for the shops. What else do I need to provide?


Why is median age a better statistic than mean age?

If you look at       Or this Wikipedia page      Clearly  seems to be the statistic of choice when it comes to ages.  I am not able to explain to myself why  would be a worse statistic. Why is it so?  Originally posted  because I did not know this site existed.


Section 19 Munkres Topology, $\mathbb{R}^\infty$ vs $\mathbb{R}^\omega$

Question 7 in Munkres's Topology Reads:  "Let $\mathbb{R}^\infty$ be a subset of $\mathbb{R}^\omega$ consisting of all sequences that are 'eventually zero...'"  I am trying to understand what's the difference between $\mathbb{R}^\infty$  and $\mathbb{R}^\omega$. What does the superscript $\omega$ suggest about the space $\mathbb{R}^\omega$ ?   I believe $\mathbb{R}^\infty$ refers to the product topology (or Box Topology) of $\mathbb{R}$, while $\mathbb{R}^\omega$ $\textit{is}$ $\mathbb{R}^\infty$, but also holds the property that any sequence is eventually zero...   Is this correct? I have not seen the formal definition of either of these and in this case, I believe the definition directly leads me to answer the problem: " What is the closure of $\mathbb{R}^\infty$ in $\mathbb{R}^\omega$ in the box and product topologies?"


How can Mortarboard et. al. be earned on child metas?

I recently earned the  badge on MSO. The tag description is:     Earned at least 200 reputation (the daily maximum) in a single day.   If metas don't have reputation, how do these badges work?


How to create LVM physical volume from free space in a disk

I have an external disk sda on the machine and I want to create an LVM physical volume from free space of the sda. Here are the partition sizes:   Name                     Flags                   Part Type             FS Type                            [Label]                       Size (MB)  ----------------------------------------------------------------------------------------------------------------------------------------------------------------------                                                           Pri/Log              Free Space                                                            1.05              *         sda1                     Boot                     Primary              xfs                                                                1073.75              *         sda2                                              Primary              swap                                                               8456.77              *         sda3                                              Primary              xfs                                                              107374.19              *                                                           Pri/Log              Free Space                                                       383202.13              *   Actually, I want to create a sda4 partition as LVM Physical Volume and create the LVM volume group on that. Can someone tell how can I do that?  I should mention that the goal is to set up a Cinder node for the OpenStack. According to the documentation, it should be done using the commands:  pvcreate /dev/sdb vgcreate cinder-volumes /dev/sdb   But there is not a second disk sdb on my machine and I want to know how to do that using just the disk sda.


Change the selected value of a drop-down list with jQuery

I have a drop-down list with known values. What I'm trying to do is set the drop down list to a particular value that I know exists using jQuery.  Using regular JavaScript, I would do something like:  ddl = document.getElementById("ID of element goes here"); ddl.value = 2; // 2 being the value I want to set it too.   However, I need to do this with jQuery, because I'm using a CSS class for my selector (stupid  client ids...).  Here are a few things I've tried:  $("._statusDDL").val(2); // Doesn't find 2 as a value. $("._statusDDL").children("option").val(2) // Also failed.      How can I do it with jQuery?     Update  So as it turns out, I had it right the first time with:  $("._statusDDL").val(2);   When I put an alert just above it works fine, but when I remove the alert and let it run at full speed, I get the error     Could not set the selected property. Invalid Index   I'm not sure if it's a bug with jQuery or Internet Explorer 6 (I'm guessing Internet Explorer 6), but it's terribly annoying.


Need to iterate WorkorderID .......values ....and these are List Objects which has List of Map and values is an array []   "answers": [     {       "labelFullPath": {         "path": "WorkOrderInformation.WorkOrderInfoFlow.CustomerName",         "components": [           "WorkOrderInformation",           "WorkOrderInfoFlow",           "CustomerName"         ]       },       "label": "CustomerName",       "dataType": "FreeText",       "controlType": "SmallTextbox",       "question": "Customer Name",       "values": [         "GALWAY CLINIC"       ]     },     {       "labelFullPath": {         "path": "WorkOrderInformation.WorkOrderInfoFlow.CustomerAddress",         "components": [           "WorkOrderInformation",           "WorkOrderInfoFlow",           "CustomerAddress"         ]       },       "label": "CustomerAddress",       "dataType": "FreeText",       "controlType": "SmallTextbox",       "question": "Customer Address",       "values": [         "Doughiska"       ]     },     {       "labelFullPath": {         "path": "WorkOrderInformation.WorkOrderInfoFlow.CustomerCity",         "components": [           "WorkOrderInformation",           "WorkOrderInfoFlow",           "CustomerCity"         ]       },       "label": "CustomerCity",       "dataType": "FreeText",       "controlType": "SmallTextbox",       "question": "Customer City (Location)",       "values": [         "Galway"       ]     },     {       "labelFullPath": {         "path": "WorkOrderInformation.WorkOrderInfoFlow.Country",         "components": [           "WorkOrderInformation",           "WorkOrderInfoFlow",           "Country"         ]       },       "label": "Country",       "dataType": "FreeText",       "controlType": "SmallTextbox",       "question": "Country",       "values": [         "Ireland"       ]     },     {       "labelFullPath": {         "path": "WorkOrderInformation.WorkOrderInfoFlow.WorkOrderNumber",         "components": [           "WorkOrderInformation",           "WorkOrderInfoFlow",           "WorkOrderNumber"         ]       },       "label": "WorkOrderNumber",       "dataType": "FreeText",       "controlType": "SmallTextbox",       "question": "Work Order Number",       "values": [         "WO-00293752"       ]     },     {       "labelFullPath": {         "path": "WorkOrderInformation.WorkOrderInfoFlow.StartDate",         "components": [           "WorkOrderInformation",           "WorkOrderInfoFlow",           "StartDate"         ]       },       "label": "StartDate",       "dataType": "FreeText",       "controlType": "SmallTextbox",       "question": "Start Date",       "values": [         "2018-12-12 21:45:00"       ]     },     {       "labelFullPath": {         "path": "WorkOrderInformation.WorkOrderInfoFlow.InstalledProductID",         "components": [           "WorkOrderInformation",           "WorkOrderInfoFlow",           "InstalledProductID"         ]       },       "label": "InstalledProductID",       "dataType": "FreeText",       "controlType": "SmallTextbox",       "question": "Installed Product ID",       "values": [         "42613320"       ]     },     {       "labelFullPath": {         "path": "WorkOrderInformation.WorkOrderInfoFlow.SerialNumber",         "components": [           "WorkOrderInformation",           "WorkOrderInfoFlow",           "SerialNumber"         ]       },       "label": "SerialNumber",       "dataType": "FreeText",       "controlType": "SmallTextbox",       "question": "Serial Number",       "values": [         "712050PF"       ]     },     {       "labelFullPath": {         "path": "WorkOrderInformation.WorkOrderInfoFlow.WorkOrderID",         "components": [           "WorkOrderInformation",           "WorkOrderInfoFlow",           "WorkOrderID"         ]       },       "label": "WorkOrderID",       "dataType": "FreeText",       "controlType": "SmallTextbox",       "question": "WorkOrderID",       "values": [         "a3d290000007L5Q"       ]     },


I'm new to PHP and was wondering why my like query is only returning one value.  Here is my Model   //For search public function getSearchResults($username){     $stmt = $this->_connection->prepare("SELECT * FROM users WHERE username LIKE :username");     $stmt->execute(['username' => '%'.$username.'%']);     $stmt->setFetchMode(PDO::FETCH_CLASS, "User");     return $stmt->fetch(); }   Then in my controller  function search($name){      //Get search results     $searchResults = $this->model('User');     $searchResults = $searchResults->getSearchResults($name);     $data = (array) $searchResults;      $this->view('User/search', $data); }   However, it is only returning 1 result rather than 3. (I have 4 usernames with "hi" inside it, but it's only returning one)


Let $G$ be a Lie group. Show that there is a diffeomorphism $TG \cong G \times T_e G$.

Since $T_p G$ is isomorphic to $T_e G$ for all $p\in G$, it makes sense that each vector in $T_p G$ can be identified with a vector in $T_e G$. Hence, to make the map from $TG$ one to one, we must identify each vector in $T_e G$ with a point in $G$, but I'm having trouble saying this precisely.  Thanks so much!


$f:X\to Y$ continuous and open, prove: if $D\subseteq Y$ is dense $\implies f^{-1}[D]$ is dense

I know $D\subseteq Y$ is dense $\implies \overline{D}=Y$ or $D\cap U\neq\emptyset$ $\forall$ $U$ open. Also if $f$ is continous then $f^{-1}[U]$ is open. I suppose that $f^{-1}[D]\cap f^{-1}[U]\neq\emptyset$ may be false. I don't know how an open map takes part on the proof.


I was very surprised when I first heard "this elevator going up". But then I heard it in a bunch of other places, so it is not a mistake. So, why is it not "the elevator is going up/down"?  Thank you! Cheers


How does SalesForce calculate Data Storage usage amount?

My company has recently exceeded our data storage cap (at 102% right now.. :/ ).  A large portion of the data that pushed us over our limit was due to an import of records.  The weird thing about this is that the records only had a couple of fields populated each out of the 200 total fields on the object.  What this tells me is that SalesForce holds the space for each field (since it knows the max-length of each field) rather than populating space only when the field is not null.  Does anyone know if this is the case?  To reiterate, and perhaps present this question more clearly:  If a field has a max character count of 1,000 and only 250 of those characters are actually being used, does SalesForce count the total data storage consumed by that field as 250 or 1,000?


What is the bounty expires message trying to tell me, when it shows up on a question with no answers?

I got the notification that "Bounty expires in 3 days".  Now normally,  I assume its purpose is to remind me to consider accepting an answer.  However, in this case there are no answers posted yet. What is it reminding me to do then?


I am currently learning to texture a model and I encountered a problem after unwrapping: the UV grid (checkerboard pattern) is only showing up on certain parts of my model and not in the others.    Do you know how to fix it, please?  Thank you very much!


Baked beans still firm after soaking and hours of cooking

I decided I would make baked beans for a BBQ at my MIL's this past weekend. I've never made baked beans but decided that it was time since I love them so much! I found a recipe for Southern Baked Beans (using Navy beans). It was from a food blog.   During the description/commentary of the dish the blogger said they could be made with dried beans but she uses canned to save time. The recipe only mentioned canned beans. I couldn't find anything to tell me the ratio canned:dried beans so I decide a 1:1 ratio would be good. After putting a 24oz bag of beans in a cake pan (the recipe called for 32oz canned beans), I decided that was A LOT of beans so didn't add the remaining 8oz. I rinsed them first then soaked them for 15-18 hours. I rinsed them again and put them in a pot with the rest of the ingredients.   The recipe said to bake them at 350 for about 40 minutes and they should be done. After an hour and a temperature increase to 400, the beans weren't anywhere close to being done. At this point I decided they were probably very old beans. :( I moved them to the stove after another 30 minutes. They boiled on the stove for another 1 1/2 hours and were still rock hard (I kept adding water so they wouldn't boil dry - and this was on medium to medium-low heat).   We left the beans at my MIL's and she cooked them "off and on" (her words) the next day and declared they were done. They are not done. :(  Now that they've been cooked then refrigerated then cooked then refrigerated again, can I attempt to salvage them? I've read that adding 1/8 tsp baking soda per cup of beans will soften them. Is it too late to try this - add the beans, more water, and a small amount of baking soda and cook them a little more? I've put so much effort into these stupid beans I can't just give up! LOL


Headphones detected but not switched to automatically on Ubuntu 14.04.2

I have asus chromebox which I installed Ubuntu 14.04.2 on.  When I connect headphones, I can see them in the volume control application, but they are not switched to automatically, when I select the headphones in the volume control app, i can hear just fine. When I disconnect the headphones the sound goes back to HDMI.  I have tried to change alsa-base.conf and everything else I could find online. Couldn't find a way to set it as default in pavucontrol (even when I set it as default here, it doesn't change anything) or alsamixer. Here is all the info I could find from my chromebox that might help.      Anyone has any ideas?


Let $R$ be a commutative ring with $1$ and let $J$ be a proper ideal of $R$ such that $R/J \cong R^n$ as $R$-modules where $n$ is some natural number. Does this imply that $J$ is the trivial ideal?   Basically I am trying to prove/disprove that if $J$ is a proper ideal of $R$ and $R/J$ is free then $J=0$ and above is my work.


Speed/direction of gravity for a moving source

Consider the Earth, and a bowling ball held 186,000 miles (1 light second) above it. When the ball is released, it will start to fall vertically downwards towards the Earth.  Now consider the case if the Earth is moving sideways at 1000 miles/second. The bowling ball is released just as the Earth passes directly underneath.   Does the ball fall   a) vertically again, or   b) does it fall towards where the Earth was 1 second before?  Gravity propagating at the speed of light, would suggest answer b) but as most of the matter in the universe is travelling at very high speed, and planetary orbits are circularish, I think the answer is a)


Interpretting LASSO variable trace plots

I am new to the glmnet package, and I am still unsure of how to interpret the results. Could anyone please help me read the following trace plot?  The graph was obtaining by running the following:  library(glmnet) return <- matrix(ret.ff.zoo[which(index(ret.ff.zoo)==beta.df$date[2]), ]) data   <- matrix(unlist(beta.df[which(beta.df$date==beta.df$date[2]), ][ ,-1]),                   ncol=num.factors) model  <- cv.glmnet(data, return, standardize=TRUE)  op <- par(mfrow=c(1, 2)) plot(model$glmnet.fit, "norm",   label=TRUE) plot(model$glmnet.fit, "lambda", label=TRUE) par(op)


In  I see from time to time the indicator kind of resetting itself. It does not know anymore that I already "confirmed"/"noticed" the new rep. Then I see something like this for instance:  or smaller numbers. But I am sure I did not gain any or so much rep since the last time I clicked on that number. This happens whenever I delete a post of mine. BTW my internet connection is excellent and the websocket connection is absolutely stable.


Why did the Emperor remain motionless while Darth Vader threw him off the balcony?

I'm wondering whether this was a movie sin but his body position seemed to stay the same? Also why didn't he stop using Force Lightning? He continued to use it even as he was falling down.   I'm also wondering whether Palpatine meant to electrocute Vader or was it just a coincidence (because he kept firing Force Lightning) .  It makes no sense as he just stood there allowing Vader to throw him.


Independence of position and velocity in Lagrangian from the point of view of physics?

I would like to continue discussion from my previous post on time dependence of lagrangian . I have also read this old post    I think I understand how Lagrangian treats position and velocity as independent variables from the point of view of calculus of variations. I think velocity only really deals with "change in position" and not the position itself, and so my intuition is like this should be one of the reasons we have to treat position and velocity as independent from the physics point of view as well, and not just so because calculus of variations treats Lagrangian as a function of some variables (x,y,z). Even the change in velocity is just related to change in position in the relation below and not the position itself. $$\delta \dot q = {d \over dt} \delta q$$  So I think that not only position and velocity initial conditions are independent, but position and velocity are independent along any trajectory too. Is this why Lagrangian is specifically defined with position and velocity independent ? Also, position forms an affine space and so it doesn't make sense to me how can anything be dependent on it unless we define a frame (or origin). And we treat Lagrangian as frame independent too. Does this make any sense ? I just want to make things precise here. I hope my mind is not messing with me here.  Thank you


I can't delete a file - even when using unlocker

Ok, so when I try to delete this from my desktop, I get this error:    When I click "See what's locking this" in lock hunter, I get this:    Now, I have a drive, called G:. I only have one physical drive, and it's D:. Also, I have NO virtual drive software installed, so I have NO clue how it got there. Right-clicking on G:\ and chosing eject doesn't do anything but change the logo, it still says the file size and whatnot. Here's the picture of the "What's locking this?" of the contained file:    But when I try to delete it...    Both of these files don't let me delete them. I had put win8install.iso as a virtual drive a while back, but I uninstalled that software (but can reinstall it if needed)  Starting this in safe mode doesn't work.


I am new to LaTex, though I wrote three research papers in LaTex with the help of this forum. Thanks to all users, who answered my queries. I found LaTex very interesting and am motivated to write my Ph. D thesis in LaTex. However, there are a number of templates available and I am slightly confused, which one should I choose. Our Institute does not have any specific template. Kindly suggest which one will be easier for me?


This is an exercise that I solved before many semesters, and I just remember I solved in a very complicated(or stupid) way, today when I need to use this exercise as a tool I wonder if there are some brief proofs Thanks for anyone’s help!


Prove: ${n\choose 0}{m\choose k}+{n\choose 1}{m\choose {k-1}}+...+{n\choose k}{m\choose 0}={{m+n}\choose k}$  Is it possible to use Pascal's identity or writing binomial coefficients with factorials?


constructing an infinitely differentiable function

Construct an infinitely differentiable function which is identically 0 on the intervals $[0, 1]$, $[4, 5]$, and is identically 1 on the intervals $[2, 3]$ and $[6, 7]$.


Electron accelerated by gravity and electromagnetic radiation

If electron (or other charged particle) is accelerated by gravity (a very weak force), it should emit electromagnetic radiation. Is there any experimental evidence that gravity does indeed cause such emissions?


Ubuntu 18.04.1 LTS issue with Dell Thunderbolt 3 Dock after update

I have been using Ubuntu 18.04.1 LTS on a Dell Precision 5510 laptop with a Dell Thunderbolt 3 Dock, model TB16, for over two months with no issues. The system is regularly updated with the latest updates.  January 29th 2019, a notification for a new update appeared :   Several unused kernel files to be deleted  (update for Oracle's Virtual Box, seems very irrelevant)   I proceeded to install. However after rebooting, reaching the login screen and entering my password, I only had black screens and a completely unresponsive system.  After several reboots and attempts to diagnose the problem, only when I rebooted the system with the Dell Thunderbolt 3 Dock unplugged that the system successfully booted and displayed the desktop, menu bar...etc. Even then, when I re-plugged the dock, the system became unresponsive with a black screen.  I am currently looking into restoring the pre-update kernel using GRUB.  I'm interested to know if anyone, with a relatively similar setup, is experiencing this issue. Any other insights or ideas that could help are welcome.  Update :   Another report on this issue found (2 posts by the same author), it seems to affect only Dell docks but it is probably not restricted to Dell machines:      For now the issue has been resolved by restoring 4.15.0-43-generic using GRUB. I am holding from updating Ubuntu until the bug gets fixed.


Does the modern synthesis theory of evolution deny that acquired characteristics can be inherited?

The following is an wikipedia article on Lamarckism.   According to Ernst Mayr, any Lamarckian theory involving the inheritance of acquired characters has been refuted as "DNA does not directly participate in the making of the phenotype and that the phenotype, in turn, does not control the composition of the DNA."[75] Peter J. Bowler has written that although many early scientists took Lamarckism seriously, it was discredited by genetics in the early twentieth century. The evolutionary biologist T. Ryan Gregory contends that epigenetic inheritance should not be considered Lamarckian.  It seems to me that the assertion that acquired characteristics can be inherited was denied by the modern synthesis theory of evolution. Is this true? If yes, what is the reason of the denial?


The About Me field in the user profile doesn't have Markdown enabled, so for instance, if you leave empty lines, they don't count, and instead you have to use <br>.  At least make it so that newlines are not ignored, it's really annoying, having to put with html tags, in a simple "about me" field.  Related question:


Rank-nullity theorem for free $\mathbb Z$-modules

From linear algebra we know that given vector spaces $V$, $W$ over a field $k$ and a linear map $f\colon V\to W$ we have $$\dim V = \dim \operatorname{im} f + \dim \ker f.$$  Is this still true when we consider free $\mathbb Z$-modules (i.e. free abelian groups) instead of vector spaces? Given a homomorphism $f\colon G\to H$ between free $\mathbb Z$-modules, do we have $$\operatorname{rk}(G) = \operatorname{rk}\operatorname{im} f + \operatorname{rk}\ker f?$$    To provide some context: This question comes up when computing homology groups of free chain complexes, where we need to check if some generating set of a kernel is a basis. Using the rank nullity theorem for free $\mathbb Z$-modules is an appealing way to do this.


Why were my flagging of posts as being offensive resolved as disputed?

I flagged these two questions as being offensive:       You'll need to look at the edit history to see why. Both questions were edited by a diamond mod to remove the offensive language.  But my two flags were resolved as disputed. Could somebody explain why they were resolved and disputed rather than helpful? Should I refrain from flagging such posts?


When selecting a message in mobile chat, action icons do not appear until scrolling

For some time now, whenever I select a chat message by tapping it on mobile device, there are no action icons:        However when scrolling, either up or down, the icons appear:        Can the icons please appear when selecting a message, not only after scrolling?  Browser: mobile Chrome 66, android device. Can also reproduce though on desktop Chrome 66 by emulating mobile device via the dev console.  Also, after scrolling once, the issue goes away until reloading the page, i.e. when selecting a message the action icons appear right away.


Single Line Break in Latex to Single Line Break in Text?

This definitely seems like an answered question somewhere, but how can I make a single line break in the latex source code correspond to a line break in the text?  For example, I'd like   \documentclass{article} \begin{document} Sentence 1 Sentence 2 \end{document}   to produce     as opposed to  \documentclass{article} \begin{document} Sentence 1  Sentence 2 \end{document}   with the extra line break.


What's the @-sign in method/constructor arguments?

I'm seeing this very often recently - what does it mean?  public void IPersistenceRepository<TEntity> : IDisposable {                                                                        |                                                                        v     public IEnumerable<TEntity> Where(Expression<Func<TEntity, bool>> @predicate);  }   or  public IDomainEventHandler<TEvent> : IEventHandler {                                |                                v     public void Handle(TEvent @event);  }


Does existence of partial derivatives implies continuity at a point $(x_0,y_0)$?

If $F: \mathbb R^2 \to \mathbb R$ and $F_x$ (partial derivative of $F$ wrt $x$) and $F_y$ exist at $(x_0,y_0)$ then the function is continuous at that point. Is this true? If not what could be a counter-example?


Include "the association bonus doesn't count" message in a protected question label

While reading a deleted post from Meta Stack Exchange at , I saw one of the older "protected question" labels:  And then I saw one of the newer protected labels (this is a screenshot from a screenshot):  I kind of preferred the older version of the protected question label, or the text at least.  Saying that the association bonus doesn't count for checks like that helped  for newer users (and some older ones too).  Removing that message causes confusion to some new users with the . Feature request:  Could we add that message back into the protected question labels, as it will be clearer and a bit more accurate?


Python/Django - How to set default value in custom form?

I've got form in Django: class NewsletterForm(forms.Form):     first_name=forms.CharField(max_length=50,required=True,label='Twoje imię:')     email=forms.EmailField(required=True,label='Twój email:')   Now there is logic part: def subscribe2newsletter(request):     if request.method == 'POST':          form = NewsletterForm(request.POST)         if form.is_valid():             cd = form.cleaned_data       else:         form = NewsletterForm()         categories = get_categories_with_subcategories()           return render(request, 'subscribe2newsletter.html',               {                   'form': form,                   'sent': sent,                   'categories': categories               }               )  And view part: <form method="post">         {#            {{ form.as_p }}#}         {% csrf_token %}
             {{ form.first_name.errors }}             Twoje imię:             {{ form.first_name }}

             {{ form.email.errors }}             Adres email:             {{ form.email }}
         <input type="submit" value="Zatwierdź"/>     </form>  My problem is - how to set default value for form from logic part? I've tested construction like: form = NewsletterForm() form.first_name='some value'  but it doesn't work. Input field on view is still empty. How to fill it inside subscribe2newsletter function?


Which i should use Any() or Count() ? And which one is faster? Will both return same output(True or false) if any data exists in IEnumerable object?

I am having below like code in asp.net mvc controller...  IEnumerable<object> object = null; IEnumerable<object1> object1 = null;  object = object1.where(s=>s.IsActive);  If(object.Any()) {     ... }   or  if(object.Count > 0) {     ... }   My question is, if any data exists in "object" will the object.Any() and object.Count > 0 both will return same result (true or false) or both are different?  Please, can anyone help me on this?


Have a 'file' generate its content on demand?

Is there a way that I can have something which appears as a file, but when being read some code executes which fills the content of the file "on the fly"?  Like FIFO/ named pipe, but without the need to start the writing process by hand.  Or like CGI on webservers, but on the local file system.  EDIT: To guard myself against "why I want this"-doubts:  I want this to be able to have an audiofile whose content is generated on access, and then delivered to the audio player. And it should not be streaming, since when accessed by the audio player the length of the audio should be known.


Can I update an Mac App purchased by a different Apple ID?

At work we have one Mac laptop that everyone uses to compile and test our iOS app.  The employee who originally installed XCode used his personal Apple ID, and has since left the company.  When I log in to the App Store on this PC, I can download new apps (including the Mavericks update) but when I try to update an existing app, especially XCode, it always brings up the login prompt, with the user id field disabled and prefilled with his Apple ID.  Can I update XCode without his Apple ID password?


Getting arguments underneath \min in an align environment

I am wondering how can I ensure that an argument gets placed underneath \min when I use an align environment.   When I use math mode and write   \[ min_{x_1,\dots x_T}  \]   the {x_1,\dots x_T} is placed directly underneath min.  However when I use an align environment and write  \begin{align*}   min_{x_1\dots x_T}  \end{align*}   the {x_1,\dots x_T} is placed to the bottom left of \min.


I'm trying to fold a cube with an animation. I've tried inverse kinetics with no luck. Here are some images that explain what I'm trying to do. I'm trying to make this so that    when the upper bone is pushed down, the box is folded to the ground. when the upper bone is pulled up, it unfolds the box.


Is $x^3-9$ irreducible over the integers mod 31?  I know that one method is to check whether it has any roots or not, but that turns out to be very tedious in this case.  So, is there any other simpler method to find it out?


Latex inserts blank line AND indents new paragraph

I'm very new with LaTeX. My setup is as follows:  \documentclass{llncs} \usepackage{makeidx} \usepackage{listings} \usepackage{graphicx} %the above just for the case that it is relevant to the problem  \section{Introduction}  FIRST PARAGRAPH  SECOND PARAGRAPH  THIRD PARAGRAPH  Nth PARAGRAPH  \section{Next-Section}   Between each paragraph I got just one blank line. Let every paragraph be the sentence "Nth blue bird." The problem now is that the output is formatted like so:  First blue bird     Second blue bird      Third blue bird      Nth blue bird.   I.e. the second paragraph is just indented as I want it to be. But every consecutive paragraph is not only indented but also has a blank line inserted before.  Note that if I shorten the third paragraph the problem vanishes. (I did not check though if shortening of other paragraphs yields the same result).  Any idea? (Impeding deadline; Quick help is highly appreciated)


How is typeof string not an instanceof String?

In the following code, if typeof of something and arbit comes out to be string, why doesn't instanceof String return true:  const roles = ['something', 'arbit']; console.log("Array.isArray(roles):", Array.isArray(roles)); console.log("roles instanceof Array:", (roles instanceof Array)); roles.forEach(element => {     console.log(`[${element}]`);     console.log(`\ttypeof(${element}):`, typeof(element));     console.log(`\t${element} instanceof String:`, (element instanceof String)); });   The output for this is:  Array.isArray(roles): true roles instanceof Array: true [something]         typeof(something): string         something instanceof String: false [arbit]         typeof(arbit): string         arbit instanceof String: false   Also, roles instanceof Array evaluates to true. Thoroughly confused.  This is plain JavaScript running in Nodejs 12, though I doubt that makes any difference...


Delivering Java se project to complete non technical customers

Suppose I have a phone book java desktop application which  uses peoples name,address,phone numbers etc stored in a database.database server used is mysql and persistence using hibernate framework.Then how am i suppose to deliver this application to so called customer who has no at all programming knowlewdge??  PS:i have used eclipse as my IDE.


Why this(print 0.3== 0.1+0.2) statement is giving False as a result?

print 0.3== 0.1+0.2   It will print False.   I am learning python now. So got the quick doubt on this.As per my knowledge it should print True.


How to extract files to another directory using 'tar' command?

I thought tar archive.tar /users/mylocation would work, but it doesn't. How can I do that?


Moving a picturebox without redrawing it?

I'm using visual studios and programming in C#. Is it possible to move a PictureBox, using the picturebox.left function, and not have it always redraw my picture box but instead just change the position?  Thank you.


Is $I=(x,y)$ seen as an $\mathbb C[x,y]-$module is free ?  I would say that $\{x,y\}$ is a basis but since $x$ and $y$ are in $\mathbb C[x,y]$, may be it's not true.


Clear command prompt buffer while running python program

I have a python program which prints 1-300,000 with a 1 second gap between each number. I'm running the program on command prompt windows and the output stops showing after 40,000. I suppose the buffer is filled and due to this the output printing is stopped. How do I keep seeing the output?


How to add an invisible watermark to PDF documents?

I'd like to add an invisible watermark to each PDF document that I produce so that in case it leaks, I know where it leaked from. Anyone knows what would a good way for an invisible watermark be in a PDF document and how to add one?


What is the meaning of the notation $\theta \sim p(\theta)$ and $y \sim p(y|\theta)$?

I've seen this notation pop up in some Bayesian statistics notes but despite my best efforts with Google I've not had any luck discovering the meaning. The only helpful context that I have is that $y$ is the observed data and $\theta$ is some sort of parameter. As for giving an example of this notation in use, I've seen De Finetti's theorem summarized as "$Y_1 , ... , Y_n | \theta$ are i.i.d. and $\theta \sim p(\theta)$ if and only if $Y_1 , ... , Y_n$ are exchangeable for all $n$".  EDIT: Note, I'm not asking how something like $Y \sim N(\mu, \sigma^2)$ is read, I know exactly what that means. It's the $p$ parts that are confusing me.


WD Edition of Acronis True Image makes unbootable drive

indicates the WD edition of Acronis True Image will not be a bootable drive. How might a cloned drive (MBR partition table, not GPT, since original created with Windows 7) imaged with this app be made bootable?  Note: Had  solved the problem according to its original poster, I would think that a reasonable solution. When I read it before posting, I saw it did not, and had multiple contradictory answers, therefore, since there's no canonical answer, don't believe this is a duplicate.


Why is it safer to not short left and right audio jack outputs together?

I've read that the best way to "mix" two left and right line-level stereo jack outputs is to first connect each to a 1k resistor and then to your mono input. Why is this preferred over just shorting them directly together and then connecting them to a single input?


In Sqlite 3 I'm trying to figure out how to select rows based on a minimum value.  I think that I'm limited by not knowing enough of the related terminology to effectively search google.  The table looks like:  num         text        num2       ----------  ----------  ---------- 0           a           1          0           a           2          1           a           3          1           b           4            I want to get the rows where num2 is 1, 2, and 4.  I want to do the selection based on the minimum value of num for each unique value of the text column.  So, for text = 'a', the minimum value of numis 0, so I want rows 1 and 2.  For text = 'b', the minimum value of num is 1, so I want row 4.  Using various combination of group by, I'm able to get either rows 1 and 2 or rows 1 and 4.  I feel like I'm missing a SQL component that would do what I want, but I haven't been able to figure out what it could be.  What is the proper way to do this type of query?  Possible Solution  I've found a way to do this.  I'm not reputable enough to answer my own question, so I'm doing the update here.  I'm not sure if it is always correct or what the efficiency is like.  Any comments are welcome.  I used a compound select statement, where one query finds the minimum value of num for each unique value of text:  sqlite> select num, text from t group by text having num = min( num ); num         text       ----------  ---------- 0           a          1           b            Then I joined this with the full table to get all rows matching these two columns.  sqlite> with u as       ( select num, text from t group by text having num = min( num ) )         select t.* from t join u on t.num = u.num and t.text = u.text; num         text        num2       ----------  ----------  ---------- 0           a           1          0           a           2          1           b           4


Room links in chatrooms 'eat' the rest of text

Is it intentionnal that the chatroom 'frame' eats any text around?


Arguably- does the adverb carries "what I am saying is unarguable" connotation

Arguably- “I’m a little confused about the usage of this word.   "Roger Federer is arguably the best tennis player ever.   This is what I heard in a conversation.     My point is does the statement seem to imply that what they’re   saying is unarguable,  and exactly correct in their opinion. or   the use of adverb is daring you to argue with that statement.


He was working or worked for my father in the 1990s

Tom, who was working for my father in the 1990s, is now living in Ohio.   Is it correct or should it be in Past Simple? I think it is correct because it is an action which was in progress in the past and also we have the "1990s" expression which refers to a duration.


Can someone suggest me a good book on cryptography with a lot of solved examples.


If I downvote every competing answer, will I get flagged for vote abuse?

I just wrote an answer to , which was trying to find numeric strings with or without commas (e.g. 1,234,567.89). I wanted to be thorough because I've seen this problem a lot, both on SO and in real-world code.   When I finished, I found 7 other new answers waiting for me, mostly variations on each other. Which would be fine, except for one thing: They're garbage answers. Unless I'm severely mistaken, every answer but mine (so far) is deeply flawed, and I want to downvote all of them. Yeah, I'm a stickler on regex, but IMHO if your pattern lets stuff like  ...,.,,.,,..9 or even ... pass as "numeric input," then you've failed to meet even the bare minimum requirements.  Enough venting. The reason I'm whining to Meta about this is that I'm about to do something that'll REALLY look like tactical downvoting, and I'm mildly concerned about the consequences. If I answer a question and then rain downvotes on every competing answer, will I get flagged for abuse? That would certainly seem like suspicious behavior to me.  More of an opinion question: At what point does a semi-correct answer deserve a downvote? Obviously, if it were just a typo, I'd edit it myself. Where's the line between "close enough" and "this answer sucks?"  Basically, is it just me? You've seen the question; am I right that these answers deserve downvotes? Seven people thought that [0-9,.]+ was good enough to declare something a number, so why am I the only one who doesn't?    Note: I found some related questions, but nothing that seemed like a duplicate:    - More of an etiquette question, plus the voter hadn't posted his own answer.  - I guess this pretty much covers my second question.   Also, as some have noted, my answer ended up pretty long and thorough. I put in a lot of effort because, with all this talk about how the other answers sucked, I wanted to be extra sure mine didn't. I don't expect pages of detail in a normal SO answer.


How is "proper" used in "the building proper"?

"The building proper is a tall, four-storey, masonry oval – a great bowl slung from outer rings of stacked barrel vaults."   What does the word "proper" mean in this sentence? Is it an adjective, or adverb?


What is the correct order of watching of the Ghost In The Shell series?

In this post, GITS stands for Ghost in the shell and SAC stands for stand alone complex  I've collected:   GITS arise quadrolgy GITS SAC 1st gig GITS SAC 1st gig solid state society GITS SAC 2nd gig GITS SAC 2nd gig individual eleven GITS 2 innocence GITS 2.0 GITS the laughing man   My queries are:    Except for GITS 1995, am I missing anything ? What is the correct order of watching?


Changing the default title of confirm() in JavaScript?

Is it possible to modify the title of the message box the confirm() function opens in JavaScript?   I could create a modal popup box, but I would like to do this as minimalistic as possible. I would like to do something like this:  confirm("This is the content of the message box", "Modified title");   The default title in Internet Explorer is "Windows Internet Explorer" and in Firefox it's "[JavaScript-program]." Not very informative. Though I can understand from a browser security stand point that you shouldn't be able to do this.


Can't create glossary with glossaries package,Perl Strawberry, error: makeglossaries:Need exactly one file argument

New to Stack Exchange, and using TeX for a week.. Trying to make glossaries work for a larger document, but this even fails with the first example document provided by the glossaries package..  I have:  TeXStudio 2.5.2 MikTeX 2.9,  Perl Strawberry latest version 32-bit installed and even checked if the PATH was added correctly (after scavanging other answers to posts) (in commandpromt perl -v returns the version.. I checked all the packages needed for the glossaries package. I added a custom user command to add the makeglossaries command available for running. After a first pdfLaTeX compile and run, I get an error when running makeglossaries.  The error message I am getting is:  Process started: "C:/LaTeX/scripts/glossaries/makeglossaries.bat" makeglossaries: Need exactly one file argument. Use `makeglossaries --help' for help. Process exited with error(s)   Please help me solve this, I've looked everywhere and long but nothing can be found on this error. The glossary is not created in the pdf, but the first run does create the 1 page document correctly.   The .tex is minimalgls.tex (provided by package):  \documentclass{article} \listfiles  \usepackage[colorlinks]{hyperref}  \usepackage{glossaries} % acronym will go in main glossary  %\usepackage[acronym]{glossaries} % make a separate list of acronyms \makeglossaries  \newglossaryentry{sample}{name={sample}, description={a sample entry}}  \newacronym[\glsshortpluralkey=cas,\glslongpluralkey=contrived acronyms]{aca}{aca}{a contrived acronym}  \begin{document} A \gls{sample} entry and \gls{aca}. Second use: \gls{aca}.  Plurals: \glspl{sample}. Reset acronym\glsreset{aca}. First use: \glspl{aca}. Second use: \glspl{aca}.  \printglossaries \end{document}


Can you create (or transfigure) plants with magic?

I'm asking because if you can create plants, you can indirectly create food. Such as turning a chair into an apple tree, or dandelions (which are edible).   Unless that means the dandelions either taste like a chair, or won't grow (or otherwise behave has dandelions should).


Show that $ \lVert A \rVert_2^2 \leq \lVert A \rVert _1 \lVert A \rVert _ \infty $

With the definition of $ \lVert A \rVert_2$ and $\lVert A \rVert_1$ and $\lVert A \rVert_ \infty$ that is:  \begin{gather} \lVert A\rVert_1 = \max_{j} \sum_{i=1}^m \lvert a_{ij}\rvert\\ \lVert A\rVert_2 = \sqrt{\rho(A^HA)}\\ \lVert A\rVert_\infty = \max_{i} \sum_{j=1}^n \lvert a_{ij}\rvert \end{gather}  prove that:  $$\lVert A \rVert_2^2 \leq  \lVert A \rVert_1 \lVert A \rVert_\infty$$


Proof that all abelian simple groups are cyclic groups of prime order

Just wanted some feedback to ensure I did not make any mistakes with this proof. Thanks!  Since $G$ is abelian, every subgroup is normal. Since $G$ is simple, the only subgroups of $G$ are $1$ and $G$, and $|G| > 1$, so for some $x\in G$ we have $x\neq 1$ and $\langle x\rangle\leq G$, so $\langle x\rangle = G$. Suppose $x$ has either infinite order or even order. Then $\langle x^2\rangle \leq G$ but $\langle x^2\rangle \neq \langle x \rangle$, a contradiction. So $x$, and therefore $G$, has odd order, and by Feit-Thompson, $G\cong Z_p$ for some prime $p$.  Edit: Thanks, I see that Feit-Thompson is too much.  Since $G$ is abelian, every subgroup is normal. Since $G$ is simple, the only subgroups of $G$ are $1$ and $G$, and $|G| > 1$, so for some $x\in G$ we have $x\neq 1$ and $\langle x\rangle\leq G$, so $\langle x\rangle = G$. Suppose $x$ has infinite order. Then $\langle x^2\rangle \leq G$ but $\langle x^2\rangle \neq \langle x \rangle$, a contradiction. So $x$, and therefore $G$, has finite order. Suppose $x$ has composite order $n$ so for some $p > 1$ that divides $n$, $\langle x^p \rangle$ is a proper non-trivial subgroup of $G$, so $G$ is not simple. So $G$ is a cyclic group of prime order.


I was wondering if there is any package or a simple snippet I could use to get the kind of corners shown in the picture for theorems and definitions.  Thanks in advance.


Are the answers & votes counts for tags currently broken?

I noticed that I seem to have been stalled on at least one of my tag counts for quite a while now. I have just tested by noting my counts for a given tag then posting an answer in that tag - sure enough the count next to that tag on my profile page has not changed, (yes I have refreshed & closed re-opened, etc).  This is frustrating as I have been ten away from a silver for one tag for some time now and have had several up-votes in the intervening time.


There are a lot of tutorials on how to create a mount point for google drive around. They usually involve installing one tool or another and so on.  But ubuntu already has a GUI way to log in into your online accounts and mount the drive to access the files. I was wondering how does it do it, and how could I do the same through terminal so it uses the same credentials I already set instead of installing and configuring a whole new way to do it.  I am using ubuntu 19.10


Whither is the "export to PDF" feature gone?

There used to be an export to PDF feature on Careers. I can't seem to find it anymore.  Where is it? Is it gone? If so, why? It was awesome! Can we get it back, please?


Proving an inequality between the difference of $\sqrt2$ and any rational number.

Let $a = \sqrt{2}$   Prove that for every $m,n\in N$  $|a - \frac{m}{n}| \gt \frac{1}{(2\sqrt2+1)n^2}$   Hint: Consider $|a - \frac{m}{n}|\geq 1$ and $|a - \frac{m}{n}|\leq 1$ as separate cases and consider the minimum of $|m^2 - 2n^2|$  Any and all help appreciated


I installed ubuntu without a password, However, I am asked for a password for upgrading, and restarting ubuntu. Is there a way to get around this? I have tried the various ways to discover what the password is - including using my old password and other forum tips - no luck.


If $M/N$ and $N$ are noetherian $R$-modules then so is $M$

Let $M$ be an $R$-module. I want to show only using the definition of noetherian that if $N$ is a noetherian submodule of $M$ such that $M/N$ is noetherian, then $M$ is noetherian.    I know that if $M_1 \subset M_2 \subset \cdots$ is a chain of submodules in $M$, then since $N$ and $M/N$ are noetherian, the chains $$M_1 \cap N \subset M_2 \cap N \subset \cdots,$$ and $$M_1 + N \subset M_2 + N \subset \cdots$$ stabilize. I feel like this should imply that $M_1 \subset M_2 \subset \cdots$ stabilizes too, but I'm not sure how to show this. Any hints? Thanks.


Does using long exposure together with ND filter make the scene look more evenly lit?

Suppose I try to shoot a piece of forest with trees casting dense shadows during daylight. It looks something like this to a human eye (part of larger and more detailed image from )    In the image above the brightest spots and the darkest shadows are still "within limits" - nothing harsh, looks lit rather evenly. But when I try to shoot a similarly looking scene I get something like this (part of image from ):    In the latter image there're only very dark shadows and very bright spots and almost nothing can be seen except for newspapers and a log and some leaves. Although I know that if I witnessed a scene like this it would look more like a former image to me - much more evenly lit.  The notes to the former image mention that the author used     Nikon D600 + Nikkor 17-35 f/2.8 + ND64x @25mm, f/8, 30s, ISO:50   which includes very strong attenuation combined with rather long exposure.  Is this combination of ND filter and long exposure responsible for having such even lighting on the scene in the former image?


I'm trying to insert some inline mathematical expressions inside a sentence. I've read that in-order to do that you should do: $$expression$$  I've also read it's not recommended but as for the explanations I've read I'm not sure I fully understand them, so if someone could elaborate. I've also encountered that sometimes using $$expression$$ is causing the text that comes afterwards in the sentence not to have any space between words, and by changing it to \(expression\) everything gets solved. I've tried to read about this \(expression\) but I couldn't find it's name so if someone could explain the difference and what it actually do. I'm sure this question was probably answered over 100000 times on the internet, but I just couldn't find the explanation for the \(expression\) expression as I was not sure what to look up for besides LaTex \(\) expression.


Product of a Rademacher and a standard normal random variable

$X \sim N(0,1)$ and $Z \sim Rademacher$, and they are independent.  How can I show formally that $Y=XZ \sim N(0,1) $ too?


I have seen a problem recently. It says that every finite division ring is a field. How to show this?


If $a\equiv 1\pmod {p^2},$ then $a\equiv 1\pmod p,$ for $\,a = r^{{\rm ord}(r)}$

I've seen this in a lot of proofs for number theory-based problems, but I can't see where they are getting it from.  If $r^{\operatorname{ord}(r)} = 1\pmod{p}$ then $r^{\operatorname{ord}(r)}= 1\pmod{p^2}$.  thanks  EDIT:  Should have been, if $r^{\operatorname{ord}(r)} = 1\pmod{p^2}$, then $r^{\operatorname{ord}(r)} = 1\pmod{p}$  I came across this when looking at this: ).


The equation of a line is of the form:  \begin{align*} Ax + By + C = 0 \end{align*}  My question is, how has this equation been obtained? Why, for example, does the term $A$ multiply $x$, instead of dividing it or simply not being? Why does this equation describe all those points and what is the proof that this is true?  Thanks in advance.


nullpointerexception while implementing priority queue with nodes

I am getting the error java.lang.NullPointerException while implementing priority queue with nodes. Does anyone have a solution without using built in priorityqueue class?  class node {                          //NODE CLASS      public String ch;     public int freq;     node right_child, left_child;      public node(String ch, int freq) {         this.ch = ch;         this.freq = freq;      }      public String get_char() {         return ch;     }      public int get_freq() {         return freq;     }  }  //END NODE CLASS class priority_queue {      private final int size;     private final node[] q_array;      private int no_items = 0;      public priority_queue(int max) {         this.size = max;         q_array = new node[size];     }      public void insert(node item) {         int j;         if (no_items == 0) {             q_array[++no_items] = item;             System.out.println("first item");         } else {             for (j = no_items - 1; j >= 0; j--) {                 if (item.get_freq()> q_array[j].get_freq()) {                     q_array[j + 1] = q_array[j];                  } else {                     break;                 }              }             q_array[j] = item;             no_items++;         }     }      public node remove() {         return q_array[--no_items];      }      public void process() {         node first, second;         int new_freq;         while (q_array.length > 1) {             new_freq = 0;             first = this.remove();             //f1 = first.freq;             second = this.remove();             //f2=second.freq;              new_freq = first.get_freq() + second.get_freq();             node new_node = new node("*", new_freq);             new_node.left_child = first;             new_node.right_child = second;             this.insert(new_node);          }      }


Why does is this code printing True and not False? (Is it due to matrix creation?)

image=[[1,1,1],[1,1,0],[1,0,1]]     visited = [[False] * len(image[0])] * len(image)     visited[0][0] = True print((visited[1][0]))   Shouldn't the above python code print False? Why is the entire column being assigned as True?


Understanding why this is a complete sentence: 'Not happy or content.'

I'm perplexed why the grammar check considers this a grammatically complete sentence:  Not happy or content.  To me, it's missing both a subject and a verb.  Could someone shed some light on this for me? Thanks.


Place windows from remote machine on my local machine desktop?

I am presently viewing the desktop of a remote machine running Rasbian (raspberry pi) on my local machine running Linux Mint using RealVNC. Teamviewer also works. But I don't want to see that remote machine's entire desktop, I just want to view/forward two or three of the remote machine's open windows on my local machine's desktop, as if they were windows created by local gui processes.   IOW, remote machine has a desktop, and on that desktop are several windows running processes. My local machine also has a desktop and there are a few open windows on it, too. I want to be able to add some of the remote machine's windows to my local desktop, not the entire remote desktop. And be able to re-arrange them on my desktop just as if they were windows running on my local machine, and (he asks too much!) be able to interact with the remoted windows just like I can with the local windows. Does this makes sense?


What happens if the editor cannot find reviewers?

I submitted to a journal a couple of months ago. The editorial flow is somehow quick and very transparent. I receive notifications for all events happening to the manuscript.  Unfortunately, the managing editor contacted me three weeks ago. They informed me that the assigned editor could not commit to the job and left. Another editor was immediately assigned.  However, I was contacted today by the new assigned editor. I was informed that all the contacted reviewers so far either refused to review the manuscript or did not respond to the invitation. They are now looking for other reviewers.  Despite the bad luck surrounding the manuscript, all of this happened in a reasonable time and I am satisfied with how quickly they react.  Nevertheless, these events made me reflect. Even if an editorial board possesses a fair network of reviewers, there is still a little risk that all the contacted reviewers either refuse or do not reply.  What happens if no reviewers could be found for a submitted manuscript? Is the journal going to reject the manuscript because of a lack of reviewers?


Separate subequations over two lines each

My working example is:  \documentclass[a4paper, 12pt]{scrreprt}  \usepackage{amsmath} \usepackage{braket} \usepackage{mleftright}  \begin{document}  \begin{subequations} \label{ComputationInnProd}     \begin{align}         \label{ComputationInnProdDiscr}         \langle \underbrace{ \mleft( \sum_{\alpha'} \psi_{\alpha'}^* \bra{\alpha'} \mright) }_{\bra{\psi}} \vert \underbrace{ \mleft( \sum_{\alpha''} \varphi_{\alpha''} \ket{\alpha''} \mright) }_{ \ket{\phi} } \rangle = \sum_{\alpha', \alpha''} \psi_{\alpha'}^* \varphi_{\alpha''} \braket{\alpha' \vert \alpha''} = \\         \sum_{\alpha',\alpha''} \psi_{\alpha'}^* \varphi_{\alpha''} \delta_{\alpha' \alpha''} = \sum_{\alpha'} \psi_{\alpha'}^* \varphi_{\alpha'},  \\         \label{ComputationInnProdCont}         \langle \underbrace{ \mleft( \int {d\alpha'} \psi^* \mleft( \alpha' \mright) \bra{\alpha'} \mright) }_{\bra{\psi}} \vert \underbrace{ \mleft( \int {d\alpha''} \varphi \mleft( \alpha'' \mright) \ket{\alpha''} \mright) }_{ \ket{\phi} } \rangle = \int {d\alpha'} \int {d\alpha''} \psi^* \mleft( \alpha' \mright) \varphi \mleft( \alpha'' \mright) \braket{\alpha' \vert \alpha''} = \\         \int {d\alpha'} \int {d\alpha''} \psi^* \mleft( \alpha' \mright) \varphi \mleft( \alpha'' \mright) \delta \mleft( \alpha' - \alpha'' \mright) = \int {d\alpha'} \psi^* \mleft( \alpha' \mright) \varphi \mleft( \alpha' \mright),     \end{align} \end{subequations}  \end{document}   I want the first two equations to belong to subequation 0.1a and have the ComputationInnProdDiscr label and the latter two to be grouped as subequation 0.1b and have the label ComputationInnProdCont for future reference.  This code produces the following output:   I've marked each of the equality signs that I want to be aligned with each other in red and green, respectively. I'm also open to suggestions for what would make this more readable because it does not look particularly pretty.


Find $144^3$ mod $213$   I'm not sure how to solve this.  I know that $213=3\times 71$, which are primes.  And I can find that $144\equiv 0$ mod $3$, and $144\equiv 2$ mod $71$.


Do I really need an engine to make a great game?

I made one simple game, and now I'm working on a second version. I make games in Java, but everyone around me uses tools and engines. I do not understand some of the stuff that is in Unity.  In Java, I write all the code. I understand how it works, and I know how to make the code do what I want.   Is it true that I cannot make a great game without a tool?


Writing output of ls using exec to a variable

I am trying to write the output of exec ls to a variable. I am new to bash so probably overlooking something simple. The aim is to check a mount within a docker container and if it comes back with a certain error then restart the container. So far I have: test=$(docker exec Test ls /mnt/1 ) echo $test if [[ $(echo $test | grep "ls: cannot access '/mnt/1': Transport endpoint is not connected") ]]; then echo "$(date "+%d.%m.%Y %T") Mount 1 disconnected will restart container" >> checkmounts.log  It gives the error, but it does not write it to the variable so I cannot grep it. When I echo $test it is blank. Any help with what I am doing wrong would be greatly appreciated. Thanks


Why would parametric statistics ever be preferred over nonparametric?

Can someone explain to me why would anyone choose a parametric over a nonparametric statistical method for hypothesis testing or regression analysis?   In my mind, it's like going for rafting and choosing a non-water resistant watch, because you may not get it wet. Why not use the tool that works on every occasion?


I want to perform cluster analysis on the data of a website. The data is mainly visitor history(97000 rows) and has following variables:  a)User Device Category b) Traffic Marketing Channel c) Traffic Source d) Marketing Campaign e) Website Landing Page f) User Session Duration g) User Goal Completion  Apart from session duration and goal completion rest of the data is categorical. In particular traffic source,campaign,landing page etc have 100's of levels each.  Also I believe the goal completion is sparse as most of the time it is 0.  Would it be a good idea to:   bin the session duration to categories. eg. 1000 seconds to 3000 sec.is one category and so on if a level of categorical variable is not too frequent then just write "others" combine certain levels if they have similar characteristic.   Could someone give me tips on how to handle the categorical data, which package in R can handle mixed data type and what would be a good way to interpret the results.  I am fairly new to data analysis and need all the help I can get. Thanks a lot in advance!


I've stumbled upon a sentence:     We can use it until better alternatives will have become available.   Although it sounds valid to me, I believe it conveys the same idea as      We can use it until better alternatives are available.   Am I missing something? Or is the former a more complicated way to express the latter?


Given time dilation from traveling near light speed, would a spacecraft be able to reach any arbitrary distance including to another galaxy?

Not much more than in the title except that when I took an astronomy class the professor said, Andromeda is 2 million lightyears away so it is safe to say humans will never reach there. But with time dilation, why would a human not only not be able to reach this galaxy but it could take from the passenger POV only a year or something? Or is this some practical issue like a propulsion system that received power from Earth lasers would eventually fail because the lasers would be too attenuated?


I have a question about XTP_CHECKPOINT.  I'm using SQL Server 2014. I have a database that is in SIMPLE recovery model mode. It is also being replicated.  There are no open transactions. I've run DBCC OPENTRAN and it returns:     "No active open transactions."   But I keep getting this message whenever I try to create or drop a table or delete data: (I've replaced my actual database name with the word database_name)     "The transaction log for database 'database_name' is full due to 'XTP_CHECKPOINT'"     Does anyone know why this might be happening, and, more importantly, how can I make it stop?  And yes, the database really is in SIMPLE recovery model mode. i.e. The transaction log should truncate automatically.  Incidentally, another database that I have in full recovery mode did the same thing, started returning the same error:     The transaction log for database 'database_name' is full due to 'XTP_CHECKPOINT'   I tried to change the log growth settings to unlimited growth, but it wouldn't let me, returning the same error.  I can reproduce the problem without any XTP stuff at all, except for just the filegroup. Here's how:


Will database replication increase the size of the replicated database?

First thank you for your time. We have a SQL Server database that was assigned to be replicated. the original size of the database was 5 GB for the datafile, not the log file. Now after the replication the data file is 4 times bigger around 19 GB. Any pointers to see what could happened will be appreciated. I know sql as developer and some little management but nothing about replication. The performance of the database has been damaged very bad so I am trying to see what need to be done to improve it. I do apologize for my English as well.


continuous function with zero right-derivative implies it is constant

Suppose $f$ is continuous on $[a,b]$ and $f_{r}'(x)=0$ (right-derivative) for all $x\in[a,b)$. Prove that $f$ is constant on $[a,b]$. My approach is to use MVT: There exists $c\in(y,x)$ s.t. $\frac{f(y)-f(x)}{y-x}=f'(c)$ for all $x\in[a,b]$. Then, $0=f_{r}'(x)=\lim_{y\to x^+}f'(c)=\lim_{c\to x^+}f'(c)$, implying that $f$ is constant. But I think there is some problem on my step using right derivatives. Can anyone help me find the flaws in my proof? Thanks.


What exactly is this limit question asking me to do?

I have a homework question that is as follows:  Calculate     $$\lim _{ n\to \infty  } \left[ \frac { 1 }{ n+1 } +\frac { 1 }{ n+2 } +...+\frac { 1 }{ 2n }  \right] $$   by writing the expression in brackets as  $$\frac { 1 }{ n } \left[ \frac { 1 }{ 1+1/n } +\frac { 1 }{ 1+2/n } +...+\frac { 1 }{ 1+n/n }  \right] $$  and recognizing the latter as a Riemann sum.  I am aware of what a Riemann sum is, but not quite sure what the first expression is depicting the sum of. The second expression makes almost no sense to me and I am not sure what the question is general is trying to get me to do. Any help would be greatly appreciated as I do not directly want the answer, just examples and guiding steps towards being able to solve it myself. Thanks!


I have this equation:    which must be inserted in a Office document. But it is too large, so I want to add a line return in the middle of the 2nd and 3rd condition such that the new line starts exactly at the same point as before (not in the left area of the "equation system").  s(g) = \begin{cases}   q_i / n   & se \; \exists i:1 \leq i \leq k \enspace t.c. \enspace g \in [x_{i-1}, x_i] \\   q_1 / n - P \left(q_1/n, x_0 - g \right)   & se \; g \notin [x_{i-1}, x_i] \: \forall i: 1 \leq i \leq k \;\; e \;    \left( x_0 - g \right) \leq \left( g - x_k \right) \\   \left q_k / n  - P \left(q_k/n, g - x_k \right)   & se \; g \notin [x_{i-1}, x_i] \: \forall i: 1 \leq i \leq k \;\; e \;    \left( x_0 - g \right) > \left( g - x_k \right) \end{cases}


Refresh rate on flat screen VS refresh rate on cathodic screen

With the cathodic screen, higher the refresh rate was the best for your eyes. I remember that 60 Hertz was always to low. I set it at higher as I could  Since I use a flat screen, I don't care about the refreshing rate because it seems I didn`t have to. I never have headache, problem with eyes...  This morning, I checked the refresh rate of my flat screen and it's 60 hertz. I can't set it to a higher rate.  Why 60 hertz is ok ( at least it seems ok for me...) on a flat screen and it was obviously to low on cathodic screen ?


I don't know How bless operator works? How it associated the given reference with class.It returns the reference.  In that we can call the method using its returned reference and passed  reference also.In this function which is object. I want to know the meaning of the term 'bless'.


More about Random in Java: get almost real randomization

I was experimenting with Random class in Java and, as many others here on Stack Overflow, I noticed that using a seed will always give the same result (and it's okay, seems logic), but I still have a (theoretical) question: what's the real difference between giving a chosen seed and System.currentTimeMillis as seed? Testing the same program, the same time of the day, won't give me the same results after multiple tries?  I know it's really hard for me to obtain the same exact result, but if my program were to be used by millions, or billions of people, few could get the same results in terms of randomization, for example: Imagine a getpoints.exe where you have to click a bottom and get a random amount of points depending on the time of the day. Using Random(System.currentTimeMillis) won't be random over all because two people clicking at the same exact time will get the same amount, so the result won't be really random. The same applies if 1mln people press it simultaneously.  So the original question: are there pseudo-real but more accurate ways to get random numbers?


A person who begs for help but doesn't return the favor

I play a game and need a word for the following situation.  What do you call a person who asks, and begs multiple times daily and impatiently for items (gear, weapons, weapon upgrades, runs through dungeons) and swears loyalty to your guild or raids team to help and or pay for items later but does nothing in return? Then when you confront that person, they ‘unfriend’ you and leave your guild.


Matrix positive definite if and only if the vectors a lineary independent

Be $\mathbb{K}=\mathbb{R}$ or $\mathbb{C}$, be $V$ and euclidean or unitary $\mathbb{K}$-vector space and be $v_1,\ldots,v_n \in V$.  For the $n\times n$ matrix  $$A:=(\langle v_j,v_k\rangle)_{j,k=1,\ldots,n}$$  then applys $A=A^*$ and $A\succeq0$.  Then $A$ is positive definite if and only if the vectors $v_1,\ldots,v_n$ are lineary independent.  I just can't seem to find a proof for this, and can't really proof it myself. Thanks in advance for any kind of help.  edit: the linked question doesn't talk about positive definity, or does it? Sorry if it does.


I updated from ubuntu 13.10 to 14.04.   I have a quad core, and one core is pegged at 100% usage because of kworker.  I know that kworker generally is doing things on behalf of the kernel, but I don't know how to determine what the issue is.   Any help would be greatly appreciated.


Why does my Android phone think it was in Japan?

According to , I was in Tokyo in February. It could be that I had so much saké I'm forgetting something important, but as far as I know I've never been to Japan.  Other questions on inaccurate location history seem mostly related to minor inaccuracies because of phone connecting to nearby WiFi points.    But what technical issue could cause the location to be off by ~6000 miles?


Simulate the remote host identification warning

I need to simulate the warning:  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!  @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@  IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!   I have two Linux machines and when I do ssh from Linux1 to Linux2, ssh accepted and reports no problem.  But because some of testing, I want to simulate the - Identification Has Changed error  So what I need to edit on the remote server in order to create the problem?  what I did until now is to change the knwon_hosts on both machine but its not create the problem  I get this:   key_read: uudecode AAAAB3NzaC1y3jrzG62xyHrb3qxc9eYpg1Cp1PrRElTFfYbEHsRfTZU21S8kO5/Tq+ED8=  failed  key_read: uudecode AAAAB3NzaC1y3jrzG62xyHrb3qxc9eYpg1Cp1PrRElTFfYbEHsRfTZU21S8kO5/Tq+ED8=  failed  The authenticity of host 'sfe1 (10.106.164.111)' can't be established.  RSA key fingerprint is 84:82:2b:80:ca:3f:57:c7:8c:14:44:dd:b9:70:e5:d8.  Are you sure you want to continue connecting (yes/no)?


$\frac{x^2 -4}{x-4} \rightarrow -5$ as $x \rightarrow 3$, proving the limit from first principles. ($\delta - \epsilon$).

This is a follow up to a previous post. I am sorry of this is considered spamming but I have made significant progress of the question since then. Hopefully I'm on the right track, an tips or advice on my methods would be much appreciated!  I have been asked to prove the limit of $\frac{x^2 -4}{x-4} \rightarrow -5$ as $x \rightarrow 3$. First I fix $\epsilon >0$ and find $\delta>0$ such that.  $$0<|x-3| <\delta \implies \bigg|\frac{x^2 -4}{x-4} + 5\bigg| < \epsilon$$  $$\impliedby \bigg|\frac{x^2+5x -24}{x-4}\bigg| < \epsilon$$  $$\impliedby \bigg|\frac{(x+8)(x-3)}{x-4}\bigg| < \epsilon$$  $$\impliedby \bigg|(x-3)\frac{x+8}{x-4}\bigg| < \epsilon$$  If $|x-3| \leq \frac{1}{2}$, then $[2\frac{1}{2},3\frac{1}{2}]$. Then $\frac{x+8}{x+4} \geq \frac{1}{2}$. Therefore $\frac{|x-3|}{2} < \epsilon \iff |x-3|<2\epsilon $.  Thus any $\delta \leq$ min$(\frac{1}{2}, 2\epsilon)$ has the required property.  Thanks for your time!


I'm working on some Raspberry Pi's and I need serial communications to the units to determine IP address.    I've installed Putty via HomeBrew and with some assistance from .   I also installed MacPorts via   When I run $ putty, I get the error message:  (putty:36407): Gtk-WARNING **: cannot open display:  Anybody know what's going on?  Is there a better way to communicate with a remote device via USB - FTDI Serial Adapter and putty?    Note: I'm using MacOS Sierra (10.12.5)


Filter database and get ONLY nearby results

I have a database of healthcentres. Upon registration, I capture the healthcentre's latitude and longitude.  Now, a user comes into the website, tries to search for nearby healthcentres, I collect his latitude and longitude as well.   I want to filter the database to show only nearby centres. It shouldn't show results beyond 50km.  How can I structure this query please?


EDIT: I don't need the regex for the phone number, I have that already. What I need is help understanding how to insert that into my existing code, which I linked above. If you actually read my question, you'd see that I'm trying to learn what I need to modify in my original piece of code, not just copy and paste someone else's regex without knowing what to do with it.  Thanks! EDIT x2: I figured it out.. Thanks anyway. (See answer below)  I have a piece of code that works to make sure something is in the phone field:  if (!empty($_POST['hphone'])) {$hphone = $_POST['hphone'];} else {$hphone = NULL; echo 'Please enter a home phone number.
';}   In order to be more precise, I figured I'd try and make it check that it's a valid phone number. I found an example and tried to combine them:  if (!empty($_POST['hphone']) && !preg_match("/^([1]-)?[0-9]{3}-[0-9]{3}-[0-9]{4}$/i", $phone)) {$hphone = $_POST['hphone'];} else {$hphone = NULL; echo 'Please enter a home phone number.
';}   This works in that the form still submits but it doesn't catch that there's a letter in the field. It just submits.  I modified it some more to where it says there's not a valid number even though it is. I'm not a PHP guru so I'm just trying to do what makes sense to me with what I've got to work and other people's examples. Sorry for yet another post about this but I couldn't find exactly what I was after. Thanks!  ANSWER: I ended up figuring it out a different way. Below is the code that worked for me:  if (preg_match("/^([1]-)?[0-9]{3}-[0-9]{3}-[0-9]{4}$/i", $_POST['hphone'])) { $hphone = $_POST['hphone']; } else { $hphone = NULL; echo 'invalid'; }


How to preserve lowercase in curly bracket with \MakeUppercase in BibLaTeX?

I use  \renewcommand*{\mkbibnamegiven}[1]{\MakeUppercase{#1}} \renewcommand*{\mkbibnamefamily}[1]{\MakeUppercase{#1}}   in my .bbx file to make a uppercase name. But for some author name, such as an organization name, I want to use curly bracket to preserve it, like  author = {{Online Computer Library Center, Inc.}},   How to fix it?     is the same question.


How to use grep/awk/unix to match all lines from one file in another file, even if they are duplicates

I'm trying to retrieve the the matching lines from a file, however the file that has the "index" or list of matches to retrieve also has duplicate entries and I want to print out the duplicates as well.  Example:  File 1 (index file or list of strings to match)  abc tgf abc ggg aaa fff   File 2 (what I want to retrieve for each of the matches in file 1)  Fred   1   3   abc Amy    2   4   ggg Dan    5   6   tgf Mike   9   1   fff Steve  2   1   aaa   My desired result would be (order is not important, just that I match every line):  Fred   1   3   abc Dan    5   6   tgf Fred   1   3   abc Amy    2   4   ggg Steve  2   1   aaa Mike   9   1   fff   I'm familiar and have tried grep as follows, but it does not print the duplicate entries.  grep -Fwf file1.txt file2.txt  Fred   1   3   abc Amy    2   4   ggg Dan    5   6   tgf Mike   9   1   fff Steve  2   1   aaa


Prove $\frac{x}{x+1}<\ln(x+1)<x$ for $x>0$    What I have done is to look at the derivatives and interval of each function.  lets: $f_1=\frac{x}{x+1}$ , $f_2=\ln(x+1)$, $f_3=x$  the intervals of the functions are $f_1=(0,1)$ , $f_2=(0,\infty)$, $f_3=(0,\infty)$  now looking at the derivatives of the functions $f_1'=\frac{1}{(x+1)^2}$, $f_2'=\frac{1}{x+1}$ , $f_3'=1$  Is this enough to prove the inequalities? is there a way to use the mean value theorem or Rolle's theorem?


Why the delete operator calls the destructor and free doesn't?

I saw a game developer overload the new and delete operator on YouTube. His name is Cherno. void* operator new(size_t size){     return malloc(size); } void operator delete(void* pointer, size_t size){     free(pointer); }  Well, now what I did is I created a class: struct MyClass{     int my_int;     MyClass(int a): my_int{a}{}     ~MyClass(){cout << "MyClass is destructed" << endl;} };  And I created a heap allocated object of that class in the main() function int main(){     MyClass* cls = new MyClass{10};     // free(cls);    //Doesn't call the destructor     delete cls;      //Does call the destructor     return 0; }  Output: MyClass is destructed  So, here is my question. Why does the delete call the destructor and the free() doesn't, even if all delete does is that it uses the free() internally (I assume). And I know that we shouldn't use free() on objects that are allocated using new operator. But even in this case the new operator uses malloc() internally


How to get Class name that is calling my method?

I want to write my own logger.  This is my logger manager:  public static class LoggerManager {     public static void Error(string name)     {      } }   I am calling Error(string name); method as below:  public class Foo {     public void Test()     {         LoggerManager.Error(this.GetType().FullName);     } }   In this way, I am geting the caller class name in my method called Error.  But I don't want to pass the name to error method every time. I want to make my logger (Or another logger methods: Info(), Warn()) method get the name by itself.  Thanks for your best practice...


Is there an exceptional use of the article ‘a/an’?

When I studied English, I learned that I have to use the article “a/an” in front of a noun whose first pronunciation starts with a vowel sound.   But whilst reading some texts, I realised that sometimes the article “a/an” is used in front of words that begin with “F”. How is this possible? I wonder if there is an exceptional case where I can use the article in front of other sounds than vowels.  Here are the sentences I found in the text : “FTA+ is an FTA that in addition harmonizes some beyond the border standards.”  “An FC(Family Conglomerate)’s origins and growth often derive from a special relationship with the government.”  Plz share your knowledge with me :)


Let $ a, b, c $ be sides of a triangle and $ ab+bc+ca=1 $. Show $$(a+1)(b+1)(c+1)<4 $$  I tried Ravi substitution and got a close bound, but don't know how to make it all the way to $4 $. I am looking for a non-calculus solution (no Lagrange multipliers).  Do you know how to do it?


What kinds of documentation does a US citizen need to enter the UK on a tourist visa?

I am a US citizen travelling to the UK for tourism. What kinds of documentation do I need to make sure that I have have with me when I get to passport control to make sure I get a visa on arrival?


I was investigating some weird noise when riding the bike and I realized the sound is made by some small elastic spikes on the tires hitting the chainstays. Do these spike have a role or they are just leftovers from the manufacturing process? Is it OK to cut them?


Fixing Sticky Seasoning on Cast-Iron Pan

I screwed up the seasoning on my cast-iron pan. I forgot to flip it upside-down, so instead of that hard, smooth surface, it became sticky and gummy.  Is it possible to repair by reheating it again, upside-down, at the proper temperature?  Or do I need to strip it and reseason from scratch?


"like to be..." vs. "like being..." (and why?)

What is the difference between the following?  A) She likes to be looked at. B) She likes being looked at.  Could you please elaborate your explanations? The more detail, the better.


I recently read about the Birthday Paradox which states that in a group of 23 people, there's a probability of 50% that 2 people share their birthday, probability wise.  I calculated and don't think it's possible that it's true in any case (unless my math is wrong). So, can anyone please tell me how to prove or disprove it mathematically ?


Evaluate the given limit $\lim_{n\to \infty} \frac{e^n}{(1+\frac 1n)^{n^2}}$

The procedure I am about to write is wrong, and I know why it is wrong yet it was the only one I could think of, so I will put it up anyway $$\lim_{n\to \infty} \frac{e^n}{\left(1+\frac 1n\right)^{n^2}}$$ For the denominator $$\begin{aligned}\lim_{n\to \infty} \left(1+\frac 1n\right)^{n^2} &=e^{\lim_{n\to \infty} (1+\frac 1n-1)n^2} \\ &=e^{\lim_{n\to \infty} n}\end{aligned}$$ And the same for the numerator, so their division should give $1$ As I said, I know this is wrong. The correct answer is $\sqrt e$. What is the right process?