I got a problem upgrading packages on Ubuntu 12.04.5 LTS

root@ubuntu:~# su root@ubuntu:~# apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done The following packages have been kept back: linux-generic linux-headers-generic linux-image-generic The following packages will be upgraded:   apport apport-gtk apt apt-transport-https apt-utils cinelerra-cv fuse   libapt-inst1.4 libapt-pkg4.12 libfuse2 libguicast1-cv libldap-2.4-2  libldap-2.4-2:i386 libmpeg3cine-cv libpq5 libquicktimecine-cv libssl1.0.0   libssl1.0.0:i386 linux-libc-dev openssl python-apport python-problem-report   thunderbird thunderbird-gnome-support upstart virtualbox virtualbox-dkms   virtualbox-qt 28 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. 2 not fully installed or removed. Need to get 84.1 MB of archives. After this operation, 11.3 kB of additional disk space will be used. E: You don't have enough free space in /var/cache/apt/archives/.  NOTE: I tried bleachbit, sudo apt-get clean, autoclean, etc even dpkg -i --configure -a? and I looked at my root.disk and it says 0.0kb of free room(I think( I don't say verbatim)?) I think there is a bug that causes this problem or I destroyed my system. I have a Dell Vostro 1400 notebook from 2007 with a 1.8Ghz cpu with XD/NX support in the bios enabled, I am not able to fix my problem for my knowledge base is primitive when compared to people with higher experience on Ubuntu Forums. Anything will help. I am still able to use the system and have wifi enabled on Ubuntu OS. Nothing seems to work when I try to apply the security updates it still throws that error.


How to install Windows 10 Home 19018 update?

I'm using windows home edition, I have the latest update installed 1909.  I want to install docker for windows 10 home edition. It keeps saying  Docker Desktop requires Windows 10 Pro/Enterprise (15063+) or Windows 10 Home (19018+).  Should I join Windows insider? How long should I wait for that update to be released if I don't want to join windows insider?


Upgraded from 16.04 to 18.04 but stuck to loading screen

So I have a laptop which is somehow old, I installed Ubuntu 16.04 on it and after a couple of months, v18.04 is released. I decided to upgrade mine to 18.04 but after downloading and installing on my laptop, it is now stuck on the Ubuntu startup/loading screen (after restart), I thought it is just like that but it stayed like that for an hour and a half. I checked their website to see their compatibility requirements and it met except for the needed 2.0Ghz, mine is 1.5-8Ghz but I think it is not the problem because it runs the v16.04 fine. Download/File integrity is also good.  Can it not really run on my laptop because of the GHz difference? or something?   Intel Core 2 Duo Processor Currently Running Windows 7 Pro x32 3GB System Memory 111 Hard Drive Space Wireless Internet Access


Is there particular significance to the shutter speeds ¹⁄₁₂₅th and ¹⁄₃₀th?

I am sure this is a common question, but to find it easily, what is significant about 1/125 and 1/30? My teacher asked us and I have no idea. I can not find it anywhere. Why are these shutter speeds so important?


I'm asking about , on which a bounty was started on Jan 13 at 7:46     And which  on Jan 13 at 16:10 and the OP accepted as the best answer on Jan 13 at 19:34. So all of this happened within the active bounty period.  Then according to , which says:    I think I should have been awarded the bounty by now. However, the question still shows this:    Is there a time delay I'm not aware of here or is this a bug?


I would like to clean my code and make it more simple. Now I've got a method which returns and int value.   private int ReturnMyValue(string line) {     switch (line)     {         case "ST":             return 1;         case "KG":             return 2;         case "M":             return 3;         case "M2":             return 4;         (...)     } }   Before that, I read an array of strings from a file, so it looks like this:  var myString = ""; var splittedString = myString.Split('|'); var iWantThatValue = ReturnMyValue(splitted[0]);    Is there a way to have an enum like this:  private enum Value {     ST = 1,     KG = 2 }   and get rid of the method somehow ?   I want my iWantThatValue to be 1 when splitted[0] equals "ST".


I have a page where the fields can be multiple.  At first, my code was working when I only had 1 add and one remove button. When I decided to have a remove button beside every appended field, my jquery function doesn't work anymore.  I've tried adding the 'on', and changing my code to $this.parent().remove() but it's still not working.  Here's my HTML:
    General Information
 Project Head

         <button id="addc" type ="button" class ="btn btn-default">Add</button>
   Here's my code for the append and remove:  $("#ph").append($('

 <input class="phname form-control has-feedback-left" name="phname[' + numberIncr + ']" placeholder="Name" type="text"/>

<input class="phnum form-control has-feedback-right" name="phnum[' + numberIncr + ']" placeholder="Contact Number" />

'));    $("#addc").on('click', function () {        numberIncr++;        var temp = $("#ph").append($('

 <input class="phname form-control has-feedback-left" name="phname[' + numberIncr + ']" placeholder="Name" />

<input class="phnum form-control has-feedback-right" name="phnum[' + numberIncr + ']" placeholder="Contact Number" />
<button id="remc" type ="button" class ="btn btn-default">Remove</button>

'));          $(".phname").each(function(){         $(this).rules( "add", {         required:true,         lettersonly: true,       messages: {         required: 'Enter project head name',         lettersonly:'Alphabetic characters only'       }     });       });        $(".phnum").each(function(){         $(this).rules( "add", {         required: true,         maxlength: 11,         minlength: 11,       messages: {         required: 'Enter project head contact number',         maxlength: 'Invalid contact number',         minlength: 'Invalid contact number'       }     });       });      });    $("#remc").on('click', function () {         var v= document.getElementById("new");         v.remove();   });


How to cross reference between tex files

I have looked at all the previously posted answers. None have answered my questions. This is my example:  I have a main document called paper.tex:  \documentclass[11pt,twoside,a4paper]{article} \usepackage{hyperref} \usepackage{xr-hyper}   \begin{document}  \title{Title}  \begin{abstract} Abstract   \end{abstract}  \maketitle  \section{Test} \label{sec:test} \input{sec/test}  \end{document}   In test.tex, I have two other documents:  \subsection{Test One} \label{sec:test1} \input{sec/test1}  \subsection{Test Two} \label{sec:test2} \input{sec/test2}   The test.tex contains a figure:  \begin{figure*}[tp!] \label{fig:fig1} \centering \caption{My Figure} \end{figure*}    I want to reference the figure from test2.tex:  \externaldocument{test1}  As show in \autoref{fig:fig1}.   Unfortunately, the output is not referencincing the figure as Figure 1, but as: subsection 1.1  Can you please correct my example?


Is it worth wearing a headlamp when cycling as well as having a bar mounted light?

Most bike lights seem to be the bar / seatpost mounted variety. Is it worth also having a headlamp for riding?  I go cycle touring, ride in the city and do mountain bike xc trail riding.  I've got a budget enough to buy something decent.


Any easier way to do $\int^\infty_0 e^{-(x^2+\frac{\alpha^2}{x^2})\beta^2} = \frac{\sqrt{\pi}}{2\beta}e^{-2\alpha\beta^2}$

I have a textbook proof which i am finding complex - $\int^\infty_0 e^{-(x^2+\frac{\alpha^2}{x^2})\beta^2} = \frac{\sqrt{\pi}}{2\beta}e^{-2\alpha\beta^2}$  Any simpler way to do this?


I don't even know how to properly word this, but I'll try my best to explain it in code:  typedef void( *ExampleFn )( PVOID p1, PVOID p2, PVOID p3 );  struct Example {     void ExampleFunction( PVOID p1, PVOID p2, PVOID p3 )     {         // do something with Example's members     } };  Example example; ExampleFn exampleFn = example.ExampleFunction;   So, I get this error:  Error C2440 '=': cannot convert from 'void (__thiscall Example::* )(PVOID,PVOID,PVOID)' to 'ExampleFn'   I understand the problem, Example::ExampleFunction is a __thiscall and ExampleFn is not, but how can I go about this?  How to have a Example object with a ExampleFn-like function in it that can use that object's members?


SOQL Statement causes use to go from 9 to 101 queries

I have a large class that is shifting various objects around and at the end I formulate lists of SObjects that will do delete, insert, update. As I go through the lists, I can insert and update without any issues, but once I get to the delete line, I get Too many SOQL queries error. Which is weird because prior to doing the delete deleteList;, I check the amount of queries executed and get 9, but when I execute the delete SOQL statement, it jumps to 101 and returns an error. If I split my delete list up into two lists (for the two objects being deleted) it returns the same result. Are there any bugs or anything that would cause this? I can't provide code since it's a long class.


Is there a good term/phrase to denote the "current events"?

I just answered on  and people (rightfully) rejected my first version where I spoke about "the Monica situation".   I agree, we shouldn't associate the name of a specific person like that.   On the other hand, that question just says      about current events here on meta   "Current events" is pretty nothing-telling, and in say 6 months, a new person reading that question will be like "what events?"  The "best" I came up with to denote "the current events" was to call it the     "CoC 2019 updates / de-modding related" situation   But coming from programming, I know that proper naming is extremely important.   So: what would be a better term to denote "the current events situation", for future communication?  Edit: it's different from . I am not asking about tags. I am asking about a verbal term, that can be used in direct human to human communication.


Are there Fibonacci numbers other than $F_0 = 0 = 0^2, F_1 = F_2 = 1 = 1^2,$ and $F_{12} = 144 = 12^2$ which are square numbers? If not, what is the proof?


What is the strongest profanity used in a Star Trek show?

suggests that being on CBS All Access could afford the makers of Star Trek: Discovery more freedom in the language they use.  Of course, we know that in previous series, they sometimes avoid the issue by swearing in Klingon, Romulan, or French.   And, of course there is this line from Generations:                                  But ignoring the movies, what exactly is the strongest profanity used in a Star Trek television show to date?  Clarification:   Profanity is meant to include all taboo language, generally known as and/or including vulgarities, obscenities, swear words, slurs, curse words or cussing.


How to get other field values than recordId when from aura lightning component used on record page?

I have created a aura lightning component which implements force:hasRecordId.  <force:recordData aura:id="recordLoader"                        recordId="{!v.recordId}"                        fields="Name, OrderNumber__c, test_field_1__c, test_field_2__c "                        targetFields="{!v.opty}"                        targetError="{!v.recordLoadError}" />   I am using above snippet.   Now, I need to retieve field values of fields like OrderNumber__c, test_field_1__c, test_field_2__c in my JS controller without using apex class.   Is there any way to achieve this?


I am working on a problem of unsupervised classification. The data samples are fairly random. Unfortunately, I don't have the luxury of specifying the number of clusters. I would like to use some criteria to automatically identify the number of clusters.   For example, assume there are distinctly 2 clusters in the data points and I use 3 clusters. Is there method to infer that 2 is the right number of clusters vs 3?


How to download "interact" class file for Taylor and Francis journals

I wish to put a paper in the format of "IETE Technical review" (Taylor and Francis) latex format. From where can I download  "interact" class file. Also, since the journal gives no specific instructions about which template to use, can I use IEEE class template to write my paper ? I have gone through the link  but instead of this, can I use IEEE template and send the paper ?


How can factor-levels be automatically chosen in R to maximize the number of positive coefficients in a regression model?

I am performing simple (first-order terms) linear regression on data having several categorical variables (i.e. factors), and it is often desired that for each factor, one of the levels should add nothing to the regressand, and the other levels should add positive values to the regressand.  When I perform a regression analyses, however, I often get a lot of negative coefficients.  Is there a non-manual way of choosing which levels of a factor should be used as regressor variables in order to maximize the number of positive coefficients in the equation?  In other words, how can I get R to do this (somewhat tedious) task for me?


How to prove that $a^{x}\leq b^{y}$ for any cardinal number a,b, $x,y$ with a$\leq$b , $x\leq y$?  First, I want to show that $p^r\leq\ q^r$ and $r^p\leq\ r^q$ for any cardinal number $p,q,r$ with $p\leq q$.  If $P,Q,R$ are sets such that $cardP=p, cardQ=q, cardR=r,$ it is easy to show that $p^r\leq\ q^r$ because $P$ is equipotent with some subset of $Q$  But I don't know how to show that $r^p\leq\ r^q$  Could anyone help me?


How to install libmlt++3 version bigger than 6.0.1 (for kdenlive) ubuntu 18.04LTS

I am trying to install kdenlive through the official repository but I am getting this error telling me that libmlt++3 and libmlt6 are outdated. As result, I cannot install kdenlive. I found the newer version (6.6, kdenlive requires at least 6.13) but its impossible for me to install it. Can anyone help me? Using this command sudo apt install libmlt++3 just reinstalls vesrion 6.0... What am I to do?   Edit: The software centre doesn't work neither :(


How to show $(mn)!$ is divisible by $(m!)^n$?

How to show $(mn)!$ divides $(m!)^n$, $m$ and $n$ is integers?


What are the methods for multivariate outlier detection?

I have to work with research paper using multivariate outlier detection methods.  Please list the methods for multivariate outlier detection and give some suggestions and ideas....


The "Add" button is either truncated or altogether hidden when editing favorite tags:   On Unix & Linux, English Language & Usage, Super User and Biology the right hand side border is not shown:   On Ask Ubuntu, it is much worse, I can't even see the word Add itself:     I also checked on Science Fiction and Fantasy which has the old CSS style and there, the button is displayed correctly. I have the same issue on Chromium 45.0.2454.85 and Firefox 41.0 (slighlty worse on FF, I can only see about 2 pixels worth of the A in Add), both running on Debian.      I expect this is a duplicate but I can't seem to find one. Was there a recent change in the CSS style?


I have an automated test that I run with the xterm -e command:  xterm -e  RunMyTests   At the end of the test-run, it prints out a summary of the results and some statistics to stdout.  I'd like to have the xterm remain open and visible so I can check the results. (if its inactive, that's fine, so long as I can see it)  I know I could manually start the xterm then run the tests there. Or I could redirect the test-output to a file to be examined later. Or I could run the tests in the current xterm, instead of spawning a new window. All of these could work, but are not ideal.  Is there a way to get an xterm window to stay open after its completed its work?


Clean Windows 10 install assigns my account name as the first 5 characters of my email address

I did a clean install of Windows 10 and logged in with my Microsoft account which clearly has my full name. Somehow the personal folder where My Documents etc. are stored is named after the first 5 characters of my email account and not my first name.  Some apps which rely on profile information from the system also directly identify me using the first 5 characters of my email address, instead of my real name, which is really annoying.  I Googled a bit and  facing the same issue.  Here are some sample images (not mine) to illustrate the issue from the aforementioned person, who has his folder named "dhubb" instead of "Dick":      How did this happen? Is there any way I can change it back to my name without having to reinstall my system again (which is not guaranteed to work)?


Merge intersecting polygons into one which are part of the same feature

I'm not a GIS professional so I hope I use the correct wording, at least I hope you understand my question.  Let's say there are five polygons in the feature A. In the shapefile there are  more features. In feature A two polygons from the five existing are intersecting. I want to merge the two so overlapping lines will be deleted and the result is one polygon.  A possible solution would work like this:   I select the feature which 'activate' all five polygons  I switch to edit mode  I select the points of the two polygons  I use function MERGE-SELECTED-POLYGONS   So far I found only functions to merge objects (features?), merge shapefiles, and so on.  Is there a function MERGE-SELECTED-POLYGONS?


Optimal drive configuration for SQL Server 2008R2

I have a fairly busy database server running SQL Server 2008 R2 that has the following setup:   SATA RAID 1 (2 Drives)  - OS / Programs SAS  RAID 10 (4 Drives) - Sql Database Files (data and logs) SAS  RAID 1 (2 Drives)  - TempDB (data and logs)   Assuming I can't add additional drives into this server, have I made the best use of the configuration I have available? Or should I consider another scheme here where logs are isolated from the data files, for example?  Update:  For those that requested further hardware details:   The SATA drives (used for the OS / Program partition) are: WD 7200 RPM 3 Gb/s 3.5 Inch SATA The SAS drives used in the other arrays are: Seagate 15K RPM 6 Gb/s 3.5 inch SAS The RAID controller used is an: LSI 9260-8i SAS/SATA 6 Gb 8 port   Update 2:  Based upon the feedback I've received, it looks like I have the following viable options to choose from - I will award the bounty to someone that can tell me which is likely to be the best in the environment that I've outlined:   Leave everything as is - I probably won't do much better  Move my 2 SAS RAID 1 drives into my existing RAID 10 array to have it composed of 6 disks in total  Move my log files onto the SAS RAID 1 and/or relocate TempDB (data or logs) back to the RAID 10


When stealing something, do you need to roll both Stealth and Sleight of Hand checks?

Scenario: An Arcane Trickster casts disguise self to appear as a blind old man.   In a crowded room, his accomplice distracts the target, while the Arcane Trickster tries to steal his pouch of gold. As a DM, what would you have him roll?  I am trying to solve a minor disagreement between a player (me) and a DM. He felt like I should roll a Stealth check followed by a Sleight of Hand check. I thought I should roll a Sleight of Hand check with advantage since I had gone to all the trouble to orchestrate the distraction with a party member and disguise myself.


Why would Severus Snape hang out with future Death Eaters?

Severus Snape seemed like a complete lone nerd type from whatever details about him are in the books.  Why would he bother hanging out with future Death Eaters (Nott etc...) in Hogwarts when the downside was basically extra bad for him (Lily drifting away and not liking him) and the upside was slight (for Snape's personality type, hanging out with a clique isn't a great deal of an upside). He seemed too logical and analytical for such a poor decision.


Does time dilation make travelling close to the speed of light redundant?

I find time dilation confusing so I'm not sure if it is a relevant factor.  Lets say you have a spaceship. There's no such thing as faster than light travel, but you do have inertial dampener technology that allows you to accelerate at very high G's without obliterating yourself.  You want to get to a nearby star system as soon as possible. When I say "soon" I mean early on the time-line of the destination star system, not necessarily as quick as possible according to your own perspective of the voyage duration. In other words, you want to intervene in the events of the destination before they progress to far into the future.  Is there a maximum rate of acceleration or top speed you could reach before time dilation causes you to actually arrive later than you would have at a lower speed?  What about if you want to go there and then get back before your friends at home get any older?


I have this fiddle    when  clicked in IE gets a dotted border around the li in IE but does not happen in Firefox..Is there a way we can get that in firefox.

                Content

                      People

                      Test


Is there a difference between " " and ' ' when printing something?

I am very new to the programming language and noticed that when we use the following print function, it prints what we need to print("hello world") however, I then tested this out with using only single quotes such as the example down below print('hellow world') is there a correct way that is recommended since both of them work the same? Is there something I need to know such as when to use single or double quotes for this programming language? If so, please let me know.


JavaScript open in a new window, not tab

I have a select box that calls window.open(url) when an item is selected.  Firefox will open the page in a new tab by default.  However, I would like the page to open in a new window, not a new tab.    How can I accomplish this?


Intel NUC 7i3BNK flickers and freezes immediately upon restart after installing graphics driver

I have one (well three) of these new Intel NUC7i3bnk Kits. I tried to set them up and use them as workstations. I installed Windows 10 Pro Version 1703 from an USB stick, and so far, so good. The initial setup worked and I was able to login to the standard user and begin installing drivers. Or so I thought.  Every time I attempt to install a graphics driver, or every time I install an windows update (which somehow includes the graphics driver), the PC immediately freezes up and has to be hard-reset. When restarting after the hard reset, the login screen comes up as normal, but immediately begins flickering and freezes up 3-5 seconds afterwards, requiring another hard reset.   The only fix I've found so far is to not install the graphics driver and hard-disable windows updates, which is obviously unnaceptable.   What else I have tried so far:   3 different graphics driver versions: 15.45.16.4542, 15.45.16.4627 and 15.45.16.4664 Installing a BIOS update to the latest BIOS V. BNKBL 357.86A.0046   Does anyone know how to solve this problem?  Other Hardware Specs:   Samsung 960 EVO NVMe SSD 250GB 8GB PC4-17000 C15-15-15-36 Flash memory   Using a bog standard HDMI ready monitor and bog standard HDMI 2.0 compatible cable, as well as a generic microsoft keyboard and mouse.


bcmwl-kernel-source not installing on Ubuntu 20.04

Ok, so this is a follow up to my last post. So Pilot6 told me to connect my phone to my computer and turn on personal hotspot. Then I booted up to Ubuntu 20.04 to install the drivers by doing: sudo apt install bcmwl-kernel-source But it didn't work, because it didn't have dkms, libc6-dev and linux-libc-dev. So I tried to install those three packages and it still didn't work and it outputted an error saying: E: Package (every package i mentioned) has no installation candidate. So what should I do now? Edit: Alright so I did a little bit of researching and found that the error means that I need to install a ppa.


"I thought we talked..." vs. "I thought we had talked..."

I'm not a native English speaker and I find English quite difficult and confusing and one of the reasons is because of its tenses—which I find challenging and rewarding once everything becomes clear—so I would like to ask which of these two are correct:        I thought we talked about this before     I thought we had talked about this before      I've read somewhere that I should use the past perfect tense to indicate past action that occurred prior to another past action, and Past perfect verbs are always formed by using adding ‘had’ before the past participle form of the verb.  E.g. had + talked  In the examples above, "thought" and "talked" are both past actions, but "talked" happened before "thought", so my guess is that sentence no. 2 is the correct one, but I'm not so sure because sentence no. 1 is used most of the time in movies and conversation.   What are your thoughts about this?


My hard disk is full - how can I determine what's taking up space?

I have 20GB for my Mint-KDE 18 root partition. There is no extra home partition. I am doing nothing special, just Chrome, KRDC, Teamviewer and the partition was half empty. One thing I did was copying in Dolphin from webdavs repo on the internet to my network drive via samba. Nothing was stored on my PC.  Now I got the message that my disk is full. When I open my root or home directory in Dolphin it says 0 MB free.   What is the fastest way via terminal to view my directories and files, biggest first or newest etc?


How to recover permanant deleted files from ext4

hey Guys I am kind of new in ubuntu and I need help. i permanently deleted my important files and I need to recover them. Please tell how to recover files in GUI way or command line way . thanks :)


Can't escape semicolons in a MySQL UPDATE statement

I am currently having an issue with a MySQL UPDATE statement I am working with. For some reason I am unable to escape the semicolons in the statement.  If I remove all the semi-colons from the statement it works fine, so I know it has something to do with escaping the semi-colons.  I've tried the standard method of escaping them by preceding them with a \, however that does nothing.  I've also tried switching/swapping out all the single quotes for double quotes, and double quotes for single quotes, to reverse the ordering of them, which also does nothing.  Here is the statement I am trying to execute:  UPDATE email_campaign_template                  SET content='<style> /* General */ body {     font-family: "Open Sans", sans-serif;     color: #fdfcfc; } .container {     max-width: 660px; } * {   -webkit-box-sizing: border-box;   -moz-box-sizing: border-box;   box-sizing: border-box; } </style> '                 WHERE label='Property Flyer 01'                  AND email_campaign_id = '10';   This generates the following error, which is referring to the first semicolon in the statement:     [Err] 1064 - You have an error in your SQL syntax; check the manual   that corresponds to your MySQL server version for the right syntax to   use near ''<style> /* General */ body {    font-family: "Open Sans",   sans-serif' at line 2   How can I successfully escape the semi-colons in order to be able to execute this RAW MySQL statement?


How can I copy Team Fortress 2 from Steam to another computer?

I've just downloaded Team Fortress 2 from Steam on another PC and I would really like to copy it on my home PC.  So, I copied the "steamapps" folder and compressed it with 7zip, it went from 12 GB to 4.5 GB, which should save me a lot of time when downloading it.  So once it's done, all I have to do is replace "steamapps" with the one in my home PC's folder and it'll work, right?  I would like to know, before I actually download the game, will what I have done actually work or is there another way that I am supposed to do it?  Any help would really be appreciated.


Bit of a strange question, but what is it? My physics teacher said it was kind of like a "push" that pushes electrons around the circuit. Can I have a more complex explanation? Any help is much appreciated.


Prove that   $$\sum_{k=0}^{m}\binom{m}{k}\binom{n+k}{m}=\sum_{k=0}^{m}\binom{n}{k}\binom{m}{k}2^k$$  What should I do for this equation? Should I focus on proving $\binom{m}{k}\binom{n+k}{m}=\binom{n}{k}\binom{m}{k}2^k$?


Evolutionary uselessness of the male nipple

The Male nipple serves no evolutionary function, yet it remains in the Genomic code. Is there only one Gene for the human nipple?


How to tell if an object is linked with another blend?

Is there any way I can check if an object is linked from another Blend file via bpy? I need to do this for xrefs on something.


Measurable Set $E$ so that $m(E\cap(a, b)) \gt 0$ for all $a, b \in \mathbb{R} $ and $m(E) \lt \infty$

Is it possible to construct a set $E$ so that for all $a, b \in \mathbb{R}, a < b $ the Lebesgue measure, donated here with $m$, of $E\cap(a, b)$ is always positive $$m(E\cap(a, b)) \gt 0$$ and also satisfies $m(E) \lt \infty$ ?    I would say no, because $a, b$ are arbitrary and if $E \ne \mathbb{R}$ one can always find an $a$ and $b$ so that  $E\cap(a, b) = \emptyset$. But I can't come up with a proof to verify this. Has anyone an idea?


What (if any) performance advantages are offered by using iterators. It seems like the 'Right Way' to solve many problems, but does it create faster/more memory-conscious code? I'm thinking specifically in Python, but don't restrict answers to just that.


I'm having a problem with author display for a statute - the author is 'City and County of San Francisco' but the output (using the apalike.bst style file provided by Elsevier) gives the author as 'City and San Francisco', missing the 'County' in the authorname.  Any suggestions?


I'm reading the Marvel comic series Avengers vs X-men. In this comic Wolverine and a few other X-men work WITH the Avengers against the X-men. I know Wolverine is an X-man. I'm wondering if anyone can explain this and possibly tell the back story to how he came to be working with the Avengers.


For $a,b \in \mathbb R$, $p\geq2$ I try to show $$\left|\frac{a+b}{2}\right|^p+\left|\frac{a-b}{2}\right|^p\leq\frac{1}{2}|a|^p+\frac{1}{2}|b|^p.$$  Is this a popular inequality (At least I could not find it in the list of popular inequalities from wikipedia)? It seems to be related to convexity but I did not succeed to show it. A related inequality seems to be for $p \geq 1,a,b\geq0$  $$\left(\frac{a+b}{2}\right)^p\leq \frac{1}{2}a^p+\frac{1}{2}b^p,$$ which directly follows from the convexity of $x^p$ for positive numbers.


I want to label a layer with 2 columns/attributes. It´s not a problem in Mapinfo, but can it be done in QGIS as well?


Why didn't the British Ministry of Magic call on their foreign counterparts to help fight in the war against Voldemort?

I am just curious. It was a Huge, destructive and a famous war.  Ministry of Magic could have helped them, but why did it not help?  Please help.


Estimate normal distribution from small sample with rankings

If I have n samples from an $N(\mu,\sigma)$ distribution, how can I estimate the distribution from a subset of m of these n samples where the order within those n is known.  For example, if n = 100 and m is 3, I might know that one sample is 10 and 3rd highest of the 100, one is 5 and 42nd highest, and the last is 2 and 74th highest.


What are the disadvantages of using a Zener diode over a linear voltage regulator?

I wonder why a Zener diode is worse than linear voltage regulator.  Some of the posts online mentioned that because of the power dissipating problem. Zener diodes keep consuming a large amount of current while the load may just need a very little amount of current.   If I understand correctly, this phenomenon will happen only when the Zener diode is connected with the load in parallel. What if I connected my Zener diode with my load in series? Also, someone said that linear voltage regulators (e.g. LM7805) are not good voltage regulators as the power dissipated in them is much higher than that in switching voltage regulators. In my understanding, the power dissipated in a linear voltage regulator can be calculated by dropout voltage x current = power converted to heat.   Regarding these 2 points, other than a linear voltage regulator can handler a wider current range, what is the benefit of choosing a linear voltage regulator over a Zener diode?


3 way circuit options to indicate if circuit is active

I've got a couple switches controlling an exterior light which is not directly visible from either switch. That causes issues if, for instance, I am leaving during daylight hours and know I will be returning after dark and want to have the light on. I need to flip the switch and then check to see if the light is on (or check, then switch) which is inconvenient (there's a similar issue checking to turn if off during daylight hours).  Ideally, I'd like to use something like the Lutron dimmer system where tapping the top always turns it on and tapping the bottom always turns it off. I don't need a dimmer function so I'd rather not pay for one. Alternatively, switches that had an LED indicator to show when the circuit is energized would work. Are there any products available that would provide either feature? For various not-very good reasons, mostly having to do with laziness, I don't want to use a motion sensor or light sensor and just leave it "on" permanently.  Thanks.  Colin


Why would someone practice free lensing?

I heard the other day someone talking about free lensing, something to do with removing the lens from the body.  What would be the point in this exercise and what is the achieved effect?


Is it possible to edit images programmatically with the Blender API?

I need to ascertain if it's possible to complete a project in Blender exclusively (my preference) or if I need to use an OpenGL API to write an external application for my needs.    If the project can be completed in Blender, then I need to be able to color pixels on a 2D image using Python within Blender.  If that can be done by pixel coordinate, then my project can be completed in Blender.    Because the Blender API documentation is laid out by structure of API itself rather than by task (a good thing!) I'm having trouble locating the part of it that I'm interested in.  Because usually Blender isn't used for this, I can't find any discussions that point me in the right direction.  edit: I see that bpy.ops.paint.sample_color() can be used to sample a color on an image; I'm just having trouble finding a way to directly manipulate pixels.  edit2: I should mention that I also found  in old documentation, but searches for something similar in the current documentation come up empty.  last edit:  includes a script for pixel level access to images.  however, it is dependent upon classes that are not a part of the Blender API and do not appear to be part of the Python repository.  The colour class does not inherit as_tuple, which in turn only seems to be part of the decimal class.    So, I'm not listing it as an answer because there's no way to know with certainty just what the author meant when those classes are used.


is there a way to know if CAPS LOCK is pressed in a web page?

I would like to alert users that their caps-lock is pressed. I am using HTML/HTML5 no Java (applets) nor Flash. Is there a way to know that?


A user posted his/her  and asked a question regarding a specific section. However, it is clear from whatsoever code he/she posted that the program inherently has several other bugs. However, the answers given are restricted only to that specific query and not for other errors. Is it some kind of protocol being followed?


Someone i barely know said he wants to move into my country and wants to borrow my account to transfer some cash as he does not want to bring cash in hands. Is it safe for me to give him my account number


There are plenty of guides on hiking mount Fuji, and how to get there in the summer (the "open" season, July- early September).  I have read and been told that although the routes are technically closed after mid-September, and highly advised against between November and June (due to snow and bad weather), they are still accessible/open "at your own risk." It's just that the huts/stations are closed, and the busses/trains don't run (so you need a car).  Has anyone had experience with this? Can you drive to the 5th station (of any of the routes)? Are the paths still open?  Thanks.


connecting different capacity batteries in paralell

I have 12 li-ion batteries but in different capacities. Half of them is 2000 mAh and half of them is 6000 mAh.  What happen if I parallel them?


I'm Looking For Free Graphic Design Software Like Adobe Photoshop

I love the idea of using Photoshop, though it's well out of my price range. I'm looking for free software that is very much the same feeling of Photoshop but for free and for use on a Windows 10 PC (ASUS X453M Series Notebook).  If it helps, I have experience in Photoshop but the last time I used it was last year when my old hard drive broke and I can't no longer access it nor find where I put the original Photoshop Elements 2.0 CD. I've also used Photoshop 5.0 in late 2004 with some of my early artwork and graphic designs being created on Photoshop 5.0 by my hands.  Anyways, I'm looking for a really good answer (free software only), so that it helps others.


pdflatex: Handling of fonts when including other pdfs

I was curious about one fact: How will pdflatex deal with fonts embedded in pdfs it includes?  For example: When I include 100 pdf-files (e.g. using \includegraphics) will the generated output file contain the embedded fonts a hundred times (one complete set for each file included)?  Or is it smart enough to recognize that it already has the requested fonts and allow therefore file size reduction?


Underscore prefix on member variables. intellisense

everyone said the "underscore, no underscore" debate is purely philosophical and user preference driven but with intelli-sense having the underscore allows you to differentiate your member variables from your local variable very easily and thus giving you a concrete benefit  is there any counter argument to this benefit of having underscores to all member variables?


Difference between "I spent a lot of time" and "I have spent a lot of time"

Can some please explain the difference 1) I spent a lot of time with my friends 2) I have spent a lot of time with my friends


How to reverse the $n$ choose $k$ formula?

If I want to find how many possible ways there are to choose k out of n elements I know you can use the simple formula below:  $$ \binom{n}{k} = \frac{n! }{ k!(n-k)! } .$$  What if I want to go the other way around though?  That is, I know I want to have $X$ possible combinations, and I want to find all the various pairs of $n$ and $k$ that will give me that number of combinations.  For example, if the number of combinations I want is $3$, I want a formula/method to find that all the pairs that will result in that number of combinations are $(3,1)$ and $(3,2)$  I know I could test all the possible pairs, but this would be impractical for large numbers.  But perhaps there's no easier way of doing this then the brute force approach?


From      The police suspected that Brian had broken the window at his house because he  wanted to make them think that a burglar had stolen his valuable stamp collection. They  thought that Brian had done this because he  needed the money. However, they  didn't know that Brian  had flown to Brazil the week before, and was abroad when the burglary  took place.   Why "had flown"? Is it because it is here to emphasize the innocence of Brian because it is obvious as it is written a week before that the fly happened before the police did not know, or is it to respect the backshifting done with "suspected" and "thought", or both of them — backshifting and emphasize?


Correct possessive form of following sentences:

Which one of the following is correct regarding the possessive forms?         "The effects of music therapy on students’ depression"   "The effects of music therapy on student depression"      (Note: 100 students are recruited into the study)


Delete All Subscriber and Upload Lists again

everybody,  in the last weeks we have defined addresses from the All Subscriber List that we want to keep and a number of 400k that we would delete.   The users we want to keep are divided into 4 different data extensions. Actually, the plan was to delete the All Subscribers and then upload the Data Extensions again and add the All Subscribers accordingly.  Is that possible? Or what would be the best course of action?  Thx


I have a 3rd party library I am working with and have no access to change it. It has a property on one of its components that only accepts a ThirdPartyList<T>(IList<T> items), but at the point I am about to set the property I have only an IEnumerable.  I can figure out what the type is going to be in my IEnumerable by looking at the first item and figuring it out with reflection and all the items in the IEnumerable will be of the same type, but the question is how do I turn that type into a new ThirdPartyList<what do I put here>().  Thanks  CD


Can you detect light that is never going to reach you?

If you have light that is going away from you in exactly the opposite direction then I assume that you are never going to be able to detect it, because you can't catch up to it.   But if you have light that is going in any other direction, could one detect it?


How do I make my rim brakes stop squealing?

My rear rim brakes are squeaking loudly. I don't know what the problem is, but I am sure it has nothing to do with rain because it happens all the time even if it is dry.  Anybody have an idea what could be problem and how to solve it? It makes the rear brakes kind of useless, because if I use them I will scare the people or drivers around me.


Assume there is a rocket with 10 kg of fuel in a large empty space without any external forces such as gravity.  Rocket burns 1 kg of fuel and gets a $v_1$ velocity gain. Now it is moving in $v_1$ constant speed.  Then it burns another 1 kg of fuel. If the rocket gains $v_1$ velocity gain this time too, the kinetic energy gain of the rocket is higher this time since the velocity of the rocket is $2v_1$ and kinetic energy is proportional to the square of the velocity.  Since the state of the rocket in both times it burned fuel is the same for an observer inside it (first time it was not moving, and the second time it was moving in constant speed, which is effectively same as not moving, if there is nothing around for a reference), I cannot see any reason why the rocket cannot get the same $v_1$ velocity gain. So it appears that the kinetic energy gain is higher the second time.  So, would the rocket gain a higher kinetic energy the second time?  If the rocket gains a higher kinetic energy at higher speed, let's assume the rocket got accelerated to a very high speed by some external means. Then at this very high constant speed, rocket starts accelerating by its own by burning fuel. The kinetic energy gain may even exceed the total energy contained in the burned fuel. How can this happen?


How to find Missing "Alt" Attribute or Value in Selenium

I would like to write program which search all images on webpage and looks if any images missing with alt attribute of value inside the attribute.


Frozen pizza has been in fridge for 2 days, is it still safe to eat?


I have a list of shapefiles stored in a group: pump  I want to save all shapefiles as a new shapefile with a new CRS.  For that, I wrote the following script:  import os as os from qgis.core import * import processing   root = QgsProject.instance().layerTreeRoot() prjpath =QgsProject.instance().readPath('')  groups = ['pump'] groupPump = root.findGroup(groups[0]) pathPump = prjpath + '/layers/hydrology/' + groups[0]   crs = QgsCoordinateReferenceSystem(3857, QgsCoordinateReferenceSystem.EpsgCrsId)  def saveGroup(group, crs, savePath):      group = group      for layerId in group.findLayerIds():         layer = QgsMapLayerRegistry.instance().mapLayer(layerId)         layerName = QgsMapLayerRegistry.instance().mapLayer(layerId).name()         path = savePath + '/'+layer.name() + '_' + crs.authid()[-4:] +'_' +'.shp'         print path          QgsVectorFileWriter.writeAsVectorFormat(layer, path, "utf-8",crs, "ESRI Shapefile")         path)  saveGroup(groupPump, crs, pathPump)   No error, nothing happens...What did I do wrong?


Cutting a can from a metal sheet to maximize volume

Question:  Consider the following square sheet of metal (grey) with the side s = 10 cm. From it, we want to cut the parts of a cylindrical can with a lid and a bottom (bblack). Determine the radius and height of the can when the volume is maximal.   The rectangle and circles have to be cut in entire, singular pieces, so no trickery to minimize waste and no diagonal placement of the rectangle.  Solution has to use optimization / differentiation.  Attempted solution:  In order for this to work out the circumference of the circles and one side of the rectangle has to be identical. Otherwise they will not fit together in a cylindrical can.  This leads us to two cases that needs to be treated separately.  Case 1: The rectangle is standing upright.  Case 2: The rectangle is lying on its longest side.  There are two cases that needs to be considered separately.  Case 1:  The right-hand side of the above image must be the circumference of a circle, so  $$s_1 = 2r\pi$$  The bottom-side must be the height of the cylinder plus two radii of the circles:  $$s_1 = h + 2r$$  Putting these together becomes:  $$2r\pi = h + 2r = 10$$  Solving for h:  $$h = 10 - 2r$$  The volume of the can:  $$V = r^2\pi h$$  Adding in the earlier formula to get rid of h:  $$V = r^2\pi h = r^2\pi (10 - 2r) = 10r^2\pi - 2r^3\pi$$  Taking the derivative:  $$V' = 20\pi r - 6\pi r^2$$  Setting derivative equal to zero:  $$V' = 0 \Rightarrow r = \frac{10}{3}$$  (neglecting trivial r = 0 solution)  Height is then:  $$h = 10 - 2r = 10 - \frac{20}{3} = \frac{10}{3}$$  But this is not really possible given the side of the metal sheet cannot be more than 10 cm and $$2r\pi > 10$$.  Case 2:  The bottom becomes:  $$2r + 2r\pi = 10 \Rightarrow r= \frac{5}{1+\pi}$$  The right side becomes:  $$h = 10$$  However, none of these answers match the solution:  $$r = \frac{5}{\pi}$$  $$h = 10(1-\frac{1}{\pi})$$  Did I get the starting point for the possible cases right? Where did I go wrong? How come it appears that no calculus is needed in the second step?


I have a list in one sub-site, now I want to add/show that list on a page in its  main site.  It should be with edit menu of the list content.  Any suggestion !


How to prove $f(x_1,\ldots,x_n) = \sum x_i\ln x_i - (\sum x_i )\ln(\sum x_i)$ is convex on R++

How can i prove $f(x_1,\ldots,x_n) = \sum x_i\ln x_i - (\sum x_i )\ln(\sum x_i)$ is convex on R++


Would March of the Machines make artifacts trigger creature enter the battlefield effects?

I am wondering if I had a  in play and played a , would it trigger a 'creature enters the battlefield' effect?


How can I rotate about an arbitrary point in 3D (instead of the origin)?

I have some models that I want to rotate using quaternions in the normal manner, except instead of rotation about the origin, I want it to be offset slightly. I know that you don't say, in 3d space, that you rotate about a point; you say you rotate about an axis. So I'm visualizing it as rotating about a vector whose tail is positioned not at the local origin.  All affine transformations in my rendering / physics engine are stored using SQT (scale, quaternion, translation; an idea borrowed from the book Game Engine Architecture.) So I build a matrix each frame from these components and pass it to the vertex shader. In this system, translation is applied, then scale, then rotation.  In one specific case, I need to translate an object in world space, scale it, and rotate it about a vertex not centered at the object's local origin.  Question: Given the constraints of my current system described above, how can I achieve a local rotation centered about a point other than the origin? Automatic upvote to anyone who can describe how to do this using only matrices as well :)


Is `var=value builtin` the same as `var=value; builtin`?

In , I used the construct:  n=$1 shift   Reading , I understand that the shell will parse that line into two parts - the variable assignment n=$1 and the builtin command shift.  But  state that n=$1 shift does fail in some shells.  I spawned a quick check:  $ for shell in /bin/*[^c]sh; do   printf '=%-17s=\n' "$shell"   "$shell" -c 'a=$1 shift; echo "$a"' "$shell" 1 done =/bin/ash         = 1 =/bin/bash        =  =/bin/dash        = 1 =/bin/heirloom-sh = 1 =/bin/ksh         = 1 =/bin/lksh        = 1 =/bin/mksh        = 1 =/bin/pdksh       = 1 =/bin/posh        = 1 =/bin/schily-osh  = 1 =/bin/schily-sh   = 1 =/bin/yash        = 1 =/bin/zsh         =   All shells, except bash and zsh, worked. But bash in posix mode and zsh in sh emulation do work, too:  $ ARGV0=sh bash -c 'a=$1 shift; echo "$a"' sh 1 1 $ ARGV0=sh zsh -c 'a=$1 shift; echo "$a"' sh 1  1   Using var=value; shift worked in all shells.  So, are those constructs the same in POSIX-compliant shells?


\appendix command adds a period after section number before it was called

I am using the . To make an appendix with tables and figures I am using the command \appendix. After it, I simply continue using \section to make sections.  I noticed that if I use \appendix, then a period is added after the number of the section, say "A.1. Sample section", which is good according to the Koma Script manual. On the other hand, this dot is added also to the preceding sections, i.e. those before \appendix was called. Indeed I get something like "1. Introduction" which I don't want.  For the sake of clarity, there is no dot after the section number if \appendix is not at all called.


how do I make custom icons for folders appear on the desktop

Hello I was wonder if it is possible to have a custom folder icon that appears in both the desktop and in nautilus.


Can I translate Trello into other languages, specifically French?

Is there a way to translate Trello in other languages? I'm looking for French translation in particular.  Or is it possible to do this translation myself?


Prove that $\lim_{r \to 0} \frac{1}{r^2} \int_{|z| =r} f(z)dz = 2\pi i\frac{\partial f}{\partial \overline z}(0) $.

Given a Frechet differentiable function $f:U\to \mathbb{C}$, where $U$ is a open disk centered at 0 with some radius. Prove that $$\lim_{r \to 0} \frac{1}{r^2} \int_{|z| =r} f(z)dz = 2\pi i\frac{\partial f}{\partial \overline z}(0) $$ I know that the integral inside can be expressed in a parameterized form $z = re^{i\theta}$, which makes the integral $\int_{0}^{2\pi} f(re^{i\theta})rie^{i\theta}d\theta$. After that I have no idea  how to use the Frechet differentiability. Any help will be appreciated.


I want to change the default shell of Terminator to zsh. In /etc/passwd/ I've changed the default shell to /bin/zsh. This settings changes the default shell in LXTerminal (the default terminal on Lubuntu), but not in Terminator. So I tried chsh -s /bin/zsh, but that doesn't work either. The Terminator  says:  How do I change my default shell? Terminator will always start the shell specified by the SHELL environment variable. (It will fall back to /bin/sh if the SHELL environment variable isn't set.) You could simply influence Terminator's environment, but the best solution is to tell your operating system which shell you'd like, and it will ensure that SHELL is set correctly for all applications, not just Terminator. See the documentation for your operating system for details on how to change your default shell.  So I expected my attempts to work, but they don't. How can I change the default shell in Terminator.


Margin top seems to go beyond the value i specified

I am trying to center a div on screen. I have used this method countless of time, but this time when I set margin top 50%, it tends to go beyound 50% I specified, on chrome it disappears, which is strange. Please help me with this.
Some text


I'm using the package , setting the language to nynorsk. I notice, however, that polyglossia's feature for the abstract environment is incorrect, since Sammendrag is not Nynorsk. How can I override this and provide my own heading in this case?  \documentclass{article} \usepackage{polyglossia}     \setdefaultlanguage{nynorsk}  \begin{document} \begin{abstract} \end{abstract} \end{document}


How to supernet a group of subnets together?

For example, I have these hosts from different subnets:  192.168.0.1/27  192.168.0.33/27 192.168.0.65/27 192.168.0.97/27   How can I supernet them together and find the network address and mask? (These will be used in a static routing table)


Running Ubuntu 14.04 on VirtualBox from Mac OS X; how to change resolution?

I'm running Ubuntu 14.04 on VirtualBox from Mac OS X and am having no problems running it. I'm just wondering how to change the screen resolution so that the virtualized Ubuntu software fits my computer screen. I used Host F to go to fullscreen mode, but there are black borders on the edges, and I'd just like to get rid of them. Thank you.


How can I both pipe and display output in Windows' command line?

I have a process I need to run within a batch file. This process produces some output. I need to both display this output to the screen and send (pipe) it to another program.  The  uses tee:  echo 'ee' | tee /dev/tty | foo   Is there an equivalent for Windows? I am happy to use PowerShell if necessary.  There are tee ports for Windows, but there does not appear to be an equivalent for /dev/tty, which complicates matters.    The specific use-case here: I have a program (launch4j) that I need to run, displaying output to the user. At the same time, I need to be able to detect success or failure in the script. Unfortunately, this program does not set an exit code, and I cannot force it to do so. My current workaround involves piping to find, to search the output (launch4j config.xml | find "Successfully created") - however, that swallows the output I need to display. Therefore, I need some way to both display to the screen and send the ouput to a command - and this command should be able to set ERRORLEVEL (it cannot run asynchronously). This will be used in a build script, which could be run on many different machines.  For this particular case, something lightweight is required - I cannot install additional frameworks or interpreters (e.g. perl as suggested in ). Also, any commercial programs must have a licence that allows redistribution.


I just fresh installed Kali 2020.2 and I like their redesign and move to Xfce. However, I noticed fairly quickly that the terminal is causing me issues. I recorded my screen to show the problem, as it's tough to explain:  Basically if I type a long string, it will wrap around and type over the prompt. In addition, when I use the up arrow to look at my history of commands, it will eventually keep a portion of an old command and then lock up the terminal. I have also seen it add crazy space. Is there anything I can do to help resolve this? Here is some information about my setup:  I am using VirtualBox. I am using Kali 2020.2, installed from its ISO.


Show that there's a unique minimum spanning tree if all edges have different costs

Show that there's a unique minimum spanning tree (MST) in case the edges' weights are pairwise different $(w(e)\neq w(f) \text{ for } e\neq f)$.   I thought that the proof can be done for example by contradiction, saying that we have $2$ different MST meaning that somewhere was possible to pick from more edges, so $w(e) = w(f)$ for $e\neq f$, contradiction. Apparently this is not correct.   How would you show that a graph has a unique MST if all edges have distinct weights?


Reference undefined in \section with amsbook

I have a section that is devoted to the proof of a theorem, and hence I used  \section{Proof of Theorem~\ref{thm}}   Of course, because of the headers that are capitalized, it asks for \ref{THM} when producing the header, and I get an obvious error. What is the proper way to handle such a case? Below is a MWE:  \documentclass{amsbook} \usepackage{lipsum} \newtheorem{thm}{Theorem} \begin{document} \chapter{First Chapter} \section{The Theorem} \begin{thm}[Lipsum Theorem] \label{thm} \lipsum[1] \end{thm} \section{Proof of Theorem~\ref{thm}} \lipsum[1-23] \end{document}   When compiling I get:  LaTeX Warning: Reference `THM' on page 3 undefined on input line 14.   (each time it produces a header), and the header shows     `2. PROOF OF THEOREM ??'


Find the number of ways the 3 colored balls can be placed on vertices of a polygon without same color being adjacent and considered up to symmetry

Give a generalized form [in the form of "n" i.e number of vertices of a polygon] of the number of combinations possible for 3 colored balls [infinite balls [it is not compulsory to use all the colors]] to be placed at vertices of a polygon with n vertices. The condition to be met is that no balls of same colored to be placed adjacent to each other. We consider two colorings the same if the can be obtained from one another by rotating or reflecting the n-gon.  Conditions:   No two same colors can be placed adjacent We have only 3 types of balls and which can be used in any number as far as 1st condition is followed. Rotation or reflection pf a coloring does not count as a new coloring.   Eg: Take a case of Triangle. Possible combinations of placing balls is 1 i.e. 1 ball of each color.  Square: we can take either 2 balls each of 2 different colors or 2 balls of one color, 1 ball each of other two colors. Which gave total combinations of 6.


If statement won't run when I enter a double that is equal to totalCost

I am supposed to write a program that takes in the amount of each type of donut the user wants (regular or fancy), calculate the price, and then calculate how much money the user should receive back depending on what they paid with.  I have completed the first part of the problem and can successfully calculate the price of the donuts the user wants. I am now trying tell the user how much change they will get, but when I wrote the first if statement to return that the exact payment has been made if the customer pays exactly what is owed it does not print the result to the screen. I want to figure this part out before moving on to the next part.  #include <iostream> using namespace std;  int main() {     const double TAX = .075;     const double REGPRICE = 0.75;     const double REGDOZENPRICE = 7.99;     const double FANCYPRICE = 0.85;     const double FANCYDOZENPRICE = 8.49;      int regular = 0, fancy = 0;     double price = 0, payment = 0, change = 0;     double costOfFancy = 0, costOfRegular = 0;      cout << "Number of regular donuts ordered: " << endl;     cin >> regular;       // calculate cost of regular donuts if donut amount is between 0 and 12      if (regular < 12 && regular > 0) {         costOfRegular = regular * REGPRICE;     }      // calculate cost of regular donuts if donut amount is greater than 12     else if (regular >= 12) {         int regDozen = regular / 12;         int regInd = regular % 12;          costOfRegular = (regDozen * REGDOZENPRICE) + (regInd * REGPRICE);     }      // set regular donut cost to 0 if 0 regular donuts are ordered     else {         costOfRegular = 0;     }       cout << "Number of fancy donuts ordered: " << endl;     cin >> fancy;      // calculate cost of fancy donuts if donut amount is between 0 and 12     if (fancy < 12 && fancy > 0) {         costOfFancy = fancy * FANCYPRICE;     }     // calculate cost of fancy donuts if donut amount is greater than 12     else if (fancy >= 12) {         int fancyDozen = fancy / 12;         int fancyInd = fancy % 12;          costOfFancy = (fancyDozen * FANCYDOZENPRICE) + (fancyInd * FANCYPRICE);     }     // set fancy donut cost to 0 if 0 fancy donuts are ordered     else {         costOfFancy = 0;     }      // add cost of fancy donuts and regular donuts together and add tax to calculate final cost     double totalCost = (costOfFancy + costOfRegular) + ((costOfFancy + costOfRegular) * TAX);     cout << "Customer owes " << totalCost << endl;      cout << "Customer pays " << endl;     cin >> payment;      if (payment == totalCost) {         cout << "Exact payment received - no change owed" << endl;     }          return 0; }   For example if the user orders 1 regular donut and 1 fancy donut the amount due is 1.72, and if the user inputs 1.72 as their payment nothing returns.


Java How to check if linked list has duplicate entries

The method is supposed to check if the linked list has more than one of the same entry. I tried getting the method to check if the head is equal to the current node and then having the current equal to current.next, if the head never equals the current, i have the head equal to head.next and restart the current by assigning it to firstNode. When i try to test the code it gives me the following error:     Exception in thread "main" java.lang.NullPointerException at LinkedBag1.hasDuplicateEntries(LinkedBag1.java:182)    java:182 is while((!head.equals(current)) || (current != null)){   Not sure what this means and what is causing my method to make this error appear.       public boolean hasDuplicateEntries(){     Node head = firstNode;     Node current = head.next;     boolean duplicate = true;      while((!head.equals(current)) || (current != null)){         if(head.equals(current)) {             duplicate = true;         }         else{             current = current.next;         }         current = firstNode;         head = head.next;       }       return duplicate; }   Is there anything I did wrong in my method? Any help will be appreciated.


I am performing ordinal regression, I have 5 response categories and several predictors both continuous and categorical. I would like to add a predictor which is categorical but ordered (1, 2, 3, 4). I don't think it would be appropriate to apply the usual dummy coding for unordered categorical predictors, but when I searched for how to code this I did not find much information.  In  "linear coding" or "assuming linearity of the predictor effect" is mentioned, but without further details.  Does it mean I just use my ordered values as they are, i.e. use them as a continuous variable?


\documentclass[12pt,a4paper]{exam} \renewcommand{\baselinestretch}{1.2} \oddsidemargin 0in \evensidemargin 0in \topmargin 0in \textheight 9.2in \textwidth 6.5in %\hoffset -1in %\voffset -1in %\evensidemargin 14pt \usepackage{amsmath,amsthm,amsfonts,amssymb,dsfont} \pagestyle{headandfoot} \extraheadheight{.5in} \lhead[]{} \chead[ \vskip .1in  MATHEMATICS\\ STANDARD X(CBSE)\\       %\hrule     \textbf{PAIR OF LINEAR EQUATIONS IN TWO VARIABLES} \linebreak        \textbf{Time: 1 Hour}   \hskip 1.3in  \textsf{ }        \hfill{\textbf{Max. Marks:30}}\vskip.05in \vskip -.5in]{} \rhead[]{} \lfoot{David 7502878908} \cfoot{HOME TUITIONS} \rfoot{\iflastpage{$\maltese\maltese\maltese \maltese \maltese$}{Continued...\ldots}} \pointsinrightmargin \newcommand{\ntt}{\normalfont\ttfamily} %    command name \newcommand{\cn}[1]{{\protect\ntt\bslash#1}} \hfuzz1pc % Don't bother to report overfull boxes if overage is < 1pc  \newcommand{\thmref}[1]{Theorem~\ref{#1}} \newcommand{\secref}[1]{\S\ref{#1}} \newcommand{\lemref}[1]{Lemma~\ref{#1}} %\newcommand{\bysame}{\mbox{\rule{3em}{.4pt}}\,} \newcommand{\sqt}[1]{\sqrt{\smash[b] {#1}}}  %    \interval is used to provide better spacing after a [ that %    is used as a closing delimiter. \newcommand{\interval}[1]{\mathinner{#1}}  %    Notation for an expression evaluated at a particular condition. The %    optional argument can be used to override automatic sizing of the %    right vert bar, e.g. \eval[\biggr]{...}_{...} \newcommand{\eval}[2][\right]{\relax   \ifx#1\right\relax \left.\fi#2#1\rvert}  %    Enclose the argument in vert-bar delimiters: \newcommand{\envert}[1]{\left\lvert#1\right\rvert} \let\abs=\envert  %    Enclose the argument in double-vert-bar delimiters: \newcommand{\enVert}[1]{\left\lVert#1\right\rVert} \let\norm=\enVert \newcommand{\pad}[2]{\frac{\der #1}{\der #2}} \newcommand{\IC}{{\mathbb C}} \newcommand{\IN}{{\mathbb N}} \newcommand{\IR}{{\mathbb R}} \newcommand{\gol}{\mbox{$\,${\rm Log}$\,$}} \newcommand{\Log}{\ln} \newcommand{\ov}[1]{\overline{\smash[b] {#1}}} \newcommand{\Ndash}{\nobreakdash--} \newcommand{\IE}{{\mathds{R}^n}} \newcommand{\IF}{{\mathds{R}^m}} \begin{document}  \hrule   \vskip .1cm {\hskip 2.5in \textbf{Part A} \hfill{}}   \underline{Answer all the questions:}   \begin{questions}  \question Which subject you like very much?  \choice mathematics \choice physics \cchoice chemisty %cchoice means that correct choice \choic biology   \end{questions} \cfoot{$\maltese\maltese\maltese \maltese \maltese$} \rfoot{} \end{document}   I need these commands in my questions with the following alignments..that is the output should be like this.  1.Which subject you like very much?  (a) mathematics                      (b) physics (c) chemistry                        (d) biology   What should i do for this.. and if the choices are lengthy it has to be aligned automatically...kindly help me...


I know it's impossible to hide source code but, for example, if I have to link a JavaScript file from my CDN to a web page and I don't want the people to know the location and/or content of this script, is this possible?  For example, to link a script from a website, we use:  <script type="text/javascript" src="http://somedomain.com/scriptxyz.js"> </script>   Now, is possible to hide from the user where the script comes from, or hide the script content and still use it on a web page?  For example, by saving it in my private CDN that needs password to access files, would that work? If not, what would work to get what I want?


Can I use any USB charger with my iPhone?

I'm not sure its the right place to ask but, I just wondered whether I can charge my iPhone Xr with my Samsung adapter. I understand it works and no harm is done to the iphone.  I know that the iPhone transmitting info about voltage and current between the phone and adapter so that the current and voltage wont exceed iPhone limits?


How to Automatically Start a Download in PHP?

What code do you need to add in PHP to automatically have the browser download a file to the local machine when a link is visited?  I am specifically thinking of functionality similar to that of download sites that prompt the user to save a file to disk once you click on the name of the software?


Annotate math equation with text on arrows around the equation

is there any particular way to get something similar to that in tikz with or without any packages?


Hello World in C++ says "Nothing More to be Done"

I have no C++ experience and want to learn. I have XCode but the IDE confuses me and seems far too advanced for my current level.  I'm starting with this   // my first program in C++  #include <iostream> using namespace std;  int main () {   cout << "Hello World!";   return 0; }   I entered it into SublimeText2 using the C++ formatting and then saved the file in   Ryan>Desktop>ApplicationDevelopment>Sandbox as helloworld.cpp   I have XCode installed and found   I went to terminal, navigated to the directory it is in and tried:  make helloworld.cpp   It returned:  make: Nothing to be done for 'helloworld.cpp'   Update, hopefully the below formatting is clear     $ g++      i686-apple-darwin10-g++-4.2.1: no input files      $ g++ helloworld.cpp -o outputname.bin      $ (nothing returned)      $ g++ helloworld.cpp helloApp ./helloApp      i686-apple-darwin10-g++-4.2.1: helloApp: No such file or directory      i686-apple-darwin10-g++-4.2.1: ./helloApp: No such file or directory      $ g++ helloworld.cpp -o helloApp ./helloApp      ld: in ./helloApp, can't link with a main executable      collect2: ld returned 1 exit status


Proof that if $a \mid bc$ and $\gcd(a,b) = d$ then $a/d$ divides $c$

Prove that if $a \mid bc$ and $\gcd(a,b) = d$ then $a/d$ divides $c$.  Attempt at solution \begin{align} &a \mid bc \implies \exists \ x \in \mathbb{Z} \ \text{s.t} \quad  bc = ax \tag{1}\\ &\gcd(a,b) = d \implies a \mid b \implies \exists \ t \in \mathbb{Z} \ \text{s.t} \quad b = at\tag{2} \\ &\gcd(a,b) = d \implies a \mid d \implies \exists \ s \in \mathbb{Z} \ \text{s.t} \quad d = as\tag{3}  \end{align} From $(2)$ , we get $a = b/t$. Substituting in $(3)$, we have $d = as = bs/t  \implies b = dt/s$. Substituting this last result in $(1)$ ; $$ bc = ax \implies \frac{dt}{s} c = ax.$$ Since $t,s$ and $x$ are all arbitrary constants in $\mathbb{Z}$, define $sx/t := x^{\prime} \in \mathbb{Z}$. Finally, $$ dc = ax^{\prime}\implies c= \frac{a}{d}x' \implies \frac{a}{d} \mid c  \qquad \square.$$ Can anyone confirm my proof ? I feel like there are some justifications missing. Particularly in the substitions part could there not be divisions by $0$?


I am confused as to which of the following sentences is correct  I am sure that first one is correct but I often use the second habitually. I am not sure about correctness of second question format. Please guide.  Did you ask him, yesterday?  You asked him, yesterday?


SELinux policy/rule causing Apache to serve assets from absolute path instead of document root

LAMP stack running CentOS Linux release 7.2.1511 (Core).  I'm new to debugging SELinux but I'm currently experiencing an issue where once I switch it to run in enforcing mode and reboot, Apache then proceeds to serve contents from the webrooot (/var/www/html) but there are numerous 404s showing on the frontend. When SELinux is running in permissive mode or just off then everything works as it should.  Example: js/file.js gets served from domain.com/var/www/html/js/file.js instead of domain.com/js/file.js but the directory index (index.php) still loads.  It seems to be honoring the site configuration because it's still loading files from the document root but assets are getting rendered with that full path.  I was curious if maybe SELinux is causing the .htaccess file in /var/www/html to not be honored or maybe conflicting with AllowOverride in server configuration.  How might I go about debugging this? Thanks.  Additional Background: Not sure it matters but running Magento (PHP ecommerce platform) at webroot.  Audit Log from a single page load:  type=AVC msg=audit(1478193720.600:379): avc:  denied  { write } for  pid=3487 comm="httpd" name="var" dev="sda1" ino=675393 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:httpd_sys_content_t:s0 tclass=dir  type=SYSCALL msg=audit(1478193720.600:379): arch=c000003e syscall=21 success=no exit=-13 a0=7f6c5c032bc8 a1=2 a2=0 a3=7f6c4b2f4c40 items=0 ppid=1021 pid=3487 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm="httpd" exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t:s0 key=(null)  type=AVC msg=audit(1478193720.990:380): avc:  denied  { write } for  pid=3487 comm="httpd" name="css_secure" dev="sda1" ino=1042518 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir  type=SYSCALL msg=audit(1478193720.990:380): arch=c000003e syscall=21 success=no exit=-13 a0=7f6c5d2769c8 a1=2 a2=0 a3=7f6c4b2f4c40 items=0 ppid=1021 pid=3487 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm="httpd" exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t:s0 key=(null)  type=AVC msg=audit(1478193720.990:381): avc:  denied  { write } for  pid=3487 comm="httpd" name="css_secure" dev="sda1" ino=1042518 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir  type=SYSCALL msg=audit(1478193720.990:381): arch=c000003e syscall=21 success=no exit=-13 a0=7f6c5d2769c8 a1=2 a2=0 a3=7f6c4b2f4c40 items=0 ppid=1021 pid=3487 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm="httpd" exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t:s0 key=(null)  type=AVC msg=audit(1478193721.002:382): avc:  denied  { write } for  pid=3487 comm="httpd" name="js" dev="sda1" ino=67640391 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir  type=SYSCALL msg=audit(1478193721.002:382): arch=c000003e syscall=21 success=no exit=-13 a0=7f6c5d277138 a1=2 a2=0 a3=7f6c4b2f4c40 items=0 ppid=1021 pid=3487 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm="httpd" exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t:s0 key=(null)  type=AVC msg=audit(1478193721.003:383): avc:  denied  { write } for  pid=3487 comm="httpd" name="css_secure" dev="sda1" ino=1042518 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir  type=SYSCALL msg=audit(1478193721.003:383): arch=c000003e syscall=21 success=no exit=-13 a0=7f6c5d2770f8 a1=2 a2=0 a3=7f6c4b2f4c40 items=0 ppid=1021 pid=3487 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm="httpd" exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t:s0 key=(null)


How to find votes that were made with under 15 reputation

I've been using the  for a while to assist my learning of LaTeX. In this time, I have upvoted questions and answers that I found to be helpful. However, these weren't "real" upvotes as my reputation was below 15 at the time. I have recently gained over 15 reputation on the LaTeX Stack Exchange site and I would like to make my previous votes "real". It would be very helpful if there were some sort of sub-15 rep vote log that recorded which posts I had voted on. This log would allow me to revisit these posts so that I may cast "real" upvotes. Although a message stated that my vote was "recorded" whenever I cast a sub-15 rep vote, I am unable to find any actual record of them in my profile.  mentions that sub-15 rep votes are stored in a database that can be queried via the  (SEDE). I found  showing how to use the SEDE to find the sub-15 rep votes on a particular post, but I can't figure out how to find the votes cast by a particular user, such as myself. Is it possible to find a log of the sub-15 rep votes made by my account through SEDE or some other method?


Ubuntu 16.04 Unity does not load - icons and not displayed

I am running VirtualBox Version 5.0.22 with Ubuntu 16.04. I performed an update today and then got into the problem that has happened  to so many others:  Icons&menys dissapeared.  There is a thread for this discussed here:    But, I believe I have tried everything discussed in that thread, like:  sudo service lightdm stop rm ~/.config/dconf/user sudo service lightdm start  and:  sudo apt-get install --reinstall ubuntu-desktop sudo apt-get install unity  and:  using unity-tweak-tool.  and:  and enable Unity using ccsm,   and  export DISPLAY=:0 sudo dconf reset -f /org/compiz/ setsid unity  and other suggestions presented:  but nothing seem to works.  Anyone else who have run into this?   Someone who have a suggestion not already discussed or have a proposal of a solution already presented, that needs some tweaking for 16.04 ?


If i have a random variable with distribution $X \sim \Gamma(\alpha,\beta)$ then what would be the distribution of $Y = \lambda X^2$ (with $\lambda$ a scaling factor)? Can I say that $Y$ will follow a gamma distribution as well?


Script to have Google Sheets jump to the next available row in column A automatically?

I'm using Google Sheets to keep track of inventory. As the year goes on, the sheet gets quite long, so it is a pain to scroll all of the way to the bottom each time we start a new day, end the day or make a shift change.  Is there a way to add a script that will automatically scroll to the next available cell in column A when you open the sheet?  The closest thing I could find was this, but it goes to the bottom of the entire sheet, which is no good because we have extra rows on our sheet:  function onOpen() {   var sheet = SpreadsheetApp.getActiveSpreadsheet();   var entries = [{name:"MyFunction", functionName:"myFunction"}];   sheet.addMenu("Scripts", entries);   myFunction(); };  function myFunction() {   var ss = SpreadsheetApp.getActiveSpreadsheet();   var mysheet = ss.getActiveSheet();   var lastrow = mysheet.getLastRow();   mysheet.setActiveCell(mysheet.getDataRange().offset(lastrow-1, 0, 1, 1)); };


how to recover ubuntu 16.04 after removing python

I tried to install python3 using these commands.  1. python3 -V 2 sudo apt-get install idle-python3.4   But however after installed python3 I just wanted to remove what I installed, so I unstalled python. Now my computer's GUI has been removed. How do I recover Ubuntu?


Dealing with installed modules/extensions in composer packages removed from composer.json

I had brought up a  on StackOverflow, but it hasn't gotten much traction because of a lack of understanding of Drupal, I think.  The issue we are experiencing happens when a developer removes an extension from Drupal then removes the composer package as well, and checks all these changes into git. Subsequently, all other developers are unable to run the typical sequence of composer install followed by drush cim in their development environments because doing so attempts to uninstall the extension, which can't be done because the composer package has been removed.  This also happens when switching back to master from a feature branch that includes a package and installed module.  What I was hoping for was a version of composer install that does not uninstall any packages removed from composer.json.  But such an option does not appear to exist.  My  was to filter the composer install output for lines indicating a package was uninstalled, then re-install those packages, run drush cim, then run composer install once again.  Overall an ugly workflow.  It has been suggested to run drush cim followed by composer install, but that breaks on the addition of new modules.  Does anyone have a more elegant workflow that can handle the above situation and also handle cases where modules are added and/or other configuration changes are made?  It has been suggested that this is a duplicate of the related post  which deals with the different issue of extension database tables getting installed twice when switching between branches, which is more of a drupal core issue than a composer issue. Granted, the unsatisfactory fix proposed for that issue (syncing to a database image) could work here, but it would be equally unsatisfactory and unnecessarily time consuming for large databases.


What is the best way to send and recieve text messages from my Ubuntu computer?

Ideally, I'd like to use my normal cell phone number, but if that doesn't work, I'd like to be able to have some other line for texting and be able to do it from the computer.


bash history that stores execution time?

Is it possible to have your bash history save the total execution time of every command you run?  i.e. as if every command were prefaced with 'time' and the result was stored in the history along with the command?  clarification: I already know that you can add a timestamp of when the command was started - but I would like to know the total execution time, not just when it was started.


linux redhat + login prompt keep getting again and again

we installed new server redhat version - 6.7 from kick start,  after installation complete successfully we get the login prompt  but I am unable to login locally on my redhat linux 6.7 server.  The login prompt keep getting again and again , and I cant get the passwd prompt  I restart the machine and access VIA single user mode ,  But can’t understand what are the files/conf that caused  this issue or maybe something else?  please advise how to resolve this problem  from /var/log/secure   17:35:47 linux_test login: permission denied


I am having trouble figuring out the expected value in situations were the examples are going to infinity.  Example:  I have a fair dice with 8 sides. I keep a counter ($k$) of the rounds I play. Each round I increase the counter by 1 and I roll the die. I keep doing this until I roll a 1 or an 8.  So I'll define a random variable $X$ to be the amount of rounds played. I know that the odds of rolling a 1 or a 8 on a 8 sided die is $\frac1 4$ otherwise it is $\frac3 4$. The way I am trying to solve the expected value is by using a geometric series. This is where I am getting stuck I think it should look like this:  $E(X)=X_1P_1+X_2P_2+X_3P_3+...+X_nP_n$  $E(X)=1*\frac1 4+2*\frac1 4+3*\frac1 4+...+n*\frac1 4$  I am unsure how to turn this into a sum.


I found at the beginning of tom Dieck's Book the following (non proved) result     Suppose $X$ is the colimit of the sequence $$ X_1 \subset X_2 \subset X_3 \subset \cdots $$ Suppose points in $X_i$ are closed. Then each compact subset $K$ of $X$ is contained in some $X_k$   Now I really don't know how to prove this fact. The idea would be to find a suitable open cover to it and after taking a finite sub cover trying to claim that $K$ lies in one of the $X_k$. I'm able to do this reasoning in some more specific cases, where I've more control on how open subsets looks like, but in this full generality I don't see which open cover I can take.     My Attempt: The only idea or approach I'm able to cook up so far is to try use some kind of sequence of points $x_n \in K\cap X_n \setminus X_{n-1}$ which can be assumed to exist by absurd. Being $K$ compact, there must be an accumulation point $k\in K$. Clearly $k \in X_k$ (little abuse of notation here) and for every neighbourhood of $k$, there is a tail of this sequence entirely contained in it. Now everything seems to boil down to find the right nbhd to find the counterexample. It seems doable, but I don't have any idea on how to choose it, because the only open I have for sure are complements of points, but they seems a little bit coarse for what I want to do.   As a side note, May claims at page $67$ of his "Concise Course (revised)" that this result holds for any based spaces. The proof seems to use the above result without T1 assumption. How one can prove this result in such generalities? (no details where provided, only the rough idea.


I need the ID of the node the inserted comment is attached to. This is what I have tried:  function my-module_comment_insert(Drupal\Core\Entity\EntityInterface $entity) {     // According to https://drupal.stackexchange.com/questions/145823/how-do-i-get-the-current-node-id     $node = \Drupal::routeMatch()->getParameter('node');     if ($node instanceof \Drupal\node\NodeInterface) {         $nid = $node->id();     }     drupal_set_message("The vaue is " . print_r($nid), 'warning'); }   But... The value I get is "1", while it should be (according to node URL) "55". Or am I using drupal_set_message for debugging the wrong way?  I also tried $entity->get('entity_id')->target_id (according to:  ) or \Drupal::routeMatch()->getRawParameter('node'), but I always get "1" and I'm positive that the website cache has been cleared.


How can a user with less than 10 rep can do a review on suggested edits?

I am a member of the  (in beta) and I have a 770 reputation points.  Recently, I was reviewing Close votes posts and found that a user with just  of suggested edits.  But the review page says I need a minimum of 1000 reputation points to review a suggested edit.    How could that user do that?  Is this a bug?


I don't know if it applies to all fluids , but why is air denser at lower heights ?


What's the best way to check if person accounts are enabled via Apex Code?

I need to be able to check if an org has Person Accounts enabled via Apex Code as part of package.  What's the best way to do this without making the package require Person Accounts be enabled in any org in which it's installed?


Why most of the steering wheels in cars is placed in the left side?

I know some countries such as UK has the steering wheels of their cars on the right side. But as we can see, most of the Europian countries uses it at the opposite side. Since I used to drive a car with left-steering wheel I found it impossible to drive a car with right-steer!  Not curiosity, but I am trying to map if this issue is related to User Experience or not.


proof verification: If $f:G \rightarrow H$ is group homomorphism, and $H$ is abelian, then $G$ is abelian

If $f:G \rightarrow H$ is group homomorphism, and $H$ is abelian, then $G$ is abelian.  Is that statement correct? Here's my attempt of proof:  Let $a,b \in G$, then: $ab=f^{-1}f(ab)=f^{-1}f(a)f(b)=f^{-1}f(b)f(a)=f^{-1}f(ba)=ba$  Is this correct? I relied on first on $f$ being group homomorphism, then $H$ being abelian.


Multiple logistic regression power analysis

I have a logistic regression model and output an $R^2$ value. I then go and add another predictor variable to fit a second model. I can output a new $R^2$ value associated with the second model. When I run an ANOVA test, I see no significant improvement in the second model, but I want to assess the power associated with including the additional variable in model 2.  I have found  for linear regression that uses an $F$-Test. I want to do something similar for a logistic regression using G*Power.   But there appears to be very little documentation on multiple logistic regression models like my situation. .  From what I understand, in G*Power I set Test Family == z tests and statistical test == logisitic regression. But I am not sure what to set R² other X equal to. Is that the improvement in $R^2$?  Reading the tutorial in 27.4 from the  makes no variation of $R^2$, whereas , does not discuss the improvements made from $R^2$.


How can I add a bookmark in my nautilus folder explorer

In Ubuntu 11 I just dragged the folder there.  This seems to be not possible on my new Samsung ultrabook with Ubuntu 12.04   I've tried Ctrl+D and using the top menu but nothing happens and no error messages, just nothing.  How can I add a bookmark?


Hat on profile disappears after acknowledging an earned badge

On the Activity section of the profile page, there's a little blue hat in the top-right corner of the badge section. When I receive a badge, it gets partially covered by a congratulatory message. When I press "Let us pick" to dismiss the message, or dismiss it by any other means, the blue hat in the corner disappears entirely.  The fact that the message partially covers the hat seems like it is probably an intentional feature, .  The fact that the hat disappears after dismissing the message seems like it is a separate issue, and probably unintentional/undesired.


I have a groupby in linq that looks like this:  var grouped = from all in Allergies.Entities.AsEnumerable()   group (Guid)all.GetAttributeValue<AliasedValue>("allergy.new_foodsensitivityid").Value    by new    {        group = all.GetAttributeValue<OptionSetValue>("new_group"),        time = all.GetAttributeValue<OptionSetValue>("new_time"),        desc = all.GetAttributeValue<string>("new_desc"),        child = (Guid)all.GetAttributeValue<AliasedValue>("kid.contactid").Value,        childName = (string)all.GetAttributeValue<AliasedValue>("kid.fullname").Value,        item = (EntityReference)all.GetAttributeValue<AliasedValue>("item.substitutedproductid").Value,        type = (OptionSetValue)all.GetAttributeValue<AliasedValue>("item.new_type").Value,    } into g    select new    {        g.Key.group,        g.Key.time,        g.Key.desc,        g.Key.child,        g.Key.childName,        g.Key.item,        g.Key.type,        allergy = g.FirstOrDefault()    };   I need all entities returned to be distinct, how do I do that?!


Find CRS (coordinate reference system) based on known location and coordinates?

Is there any tool or any tutorial which would help me to figure out CRS (coordinate reference system) from related information?  In my particular case I know only the system is in meters, has origin (probably of zone) at E 91°30' and N 50°20' (not 100% sure about exactly 50°20') and it is presumably commonly used in Russia.  I would be glad for general solution if any.


Latex glossaries greek symbols: not in alphabetical order

I am writing a thesis, I have a List of Greek Symbols chapter. The list can be successfully generated, but I found the sequence of greek symbols were not correct. Here is my code: \documentclass{article} \usepackage[utf8]{inputenc}   \usepackage[hidelinks]{hyperref} % hyperlinks \usepackage[toc, nopostdot, nonumberlist, nogroupskip, acronym, order=letter]{glossaries}   \newglossary[ch1]{greekstyle}{ch2}{ch3}{List of Greek Symbols}  \setglossarystyle{long} % left align \makeglossaries   \include{glossary_entries} % define all your symbols in a separated file.    \title{My title} \author{Name} \date{November 2020}  \begin{document}  \maketitle  % print all the symbols without referencing them \glsaddall % remove the left vacant space of long style \setlength\LTleft{0pt} \setlength\LTright{0pt} \setlength\glsdescwidth{1.0\hsize}  \printglossary[title=List of Symbols]   \printglossary[type=greekstyle]  \section{Introduction} Some words...  \end{document}   My glossary_entries.tex file: \newglossaryentry{latex} {     name=latex,     description={Is a mark up language specially suited      for scientific documents} }  \newglossaryentry{maths} {     name=mathematics,     description={Mathematics is what mathematicians do} }   % greek ------------------------------------------------------- \newglossaryentry{gls:phi}{name={$\phi_i, \phi_n$},description={basis function, orthogonal basis functions}, type=greekstyle}  \newglossaryentry{gls:tau}{name={$\tau$},description={truncation error}, type=greekstyle}  \newglossaryentry{gls:delta}{name={$\delta_{i, j}$},description={Kronecker delta}, type=greekstyle}  \newglossaryentry{gls:psi}{name={$\psi$},description={intermediate term in barycentric Lagrange interpolation}, type=greekstyle}  \newglossaryentry{gls:Omega}{name={$\Omega$},description={element representation, computational domain}, type=greekstyle}  \newglossaryentry{gls:Omega_e}{name={$\Omega_e$},description={domain of element $e$}, type=greekstyle}  \newglossaryentry{gls:lambda}{name={$\lambda, \lambda_i $},description={eigenvalue}, type=greekstyle}  \newglossaryentry{gls:Lambda}{name={$\Lambda$},description={diagonal matrix of coefficient matrix $\mathbf{A}$}, type=greekstyle}  \newglossaryentry{gls:xi}{name={$\xi$},description={reference space coordinate in $x$ direction}, type=greekstyle}  \newglossaryentry{gls:eta}{name={$\eta$},description={reference space coordinate in $y$ direction}, type=greekstyle}  \newglossaryentry{gls:sigma}{name={$\sigma$},description={error decay rate}, type=greekstyle}  \newglossaryentry{gls:alpha}{name={$\alpha$},description={the offset of linear least squares best fit}, type=greekstyle}  \newglossaryentry{gls:beta}{name={$\beta$},description={the slope of linear least squares best fit}, type=greekstyle}  \newglossaryentry{gls:estimated_error}{name={$\epsilon_{est}$},description={estimated error}, type=greekstyle}  \newglossaryentry{gls:discretization_tol}{name={$\epsilon$},description={discretization tolerance, balance ratio}, type=greekstyle}  \newglossaryentry{gls:Xi}{name={$\Xi$},description={mortar element}, type=greekstyle}  \newglossaryentry{gls:Psi}{name={$\Psi$},description={solution projection on the mortar}, type=greekstyle}  \newglossaryentry{gls:Phi}{name={$\Phi$},description={numerical flux on mortar}, type=greekstyle}  \newglossaryentry{gls:Gamma}{name={$\Gamma $},description={adjacent vertices set, domain boundary}, type=greekstyle}  \newglossaryentry{gls:test_function}{name={$\varphi, \varphi_j$},description={test function}, type=greekstyle}   What it generates:  But this is not in alphabetical order. For example \Xi should be placed before \Omega . The uppercase order and the lowercase order are both wrong. How can I fix this? Thank you very much.


New Windows 8 branded computer, fresh Ubuntu installation

I bought a new computer with the Windows 8 so I tried installing Ubuntu 13.04.    However when installation is finished and you get the final "remove cd and hit enter" part of the installation, that's is where my game ends.  You can remove the CD (you have to do it manually, it doesn't pop out) but after that game-over.  Ended up having to hard-reset.  When the computer restarts an all black screen echoes back:      Reboot and Select proper Boot Device or Insert Boot Media...   Everyone points to the Boot Repair disk to solve the problems, but when I do that it gives me the same error message about "Reboot and Select proper..."  I'm wondering where, or what I have done wrong.


Community user - poke old unanswered questions?

I am curious to know if the Community user really pokes unanswered questions.   Community User profile says:     Randomly poke old unanswered questions every hour so they get some   attention   In my past experience I have seen Community poke questions which have a answer but it was not accepted. I have never seen a poke by Community which has no answer (not even unaccepted one). Am I missing something?  I believe as one of the prime objective of Community User is to poke unanswered questions. I do not want to bump my questions or any specific question. I am curious to know why Community User does not seems to poke question having no answer at all?


I have a late model imac 27 with osx mountain lion. I am trying to install ubuntu using virtual box. I have ubuntu 12/64bit on a mac formatted flash drive and on a dvd. The computer doesn't recognize either one of them. States: Fatal error - no bootable disc Any suggestions?


How to make workspaces independant in Ubuntu 18.04

I upgraded from Ubuntu 16.04.1 to 18.04 LTS, and instead of ubuntu 18.04, in 16.04 my workspaces were "independent", for example:  Before:  If I open a VLC video on my workspace n°1, and open another on the workspace n°2, when I click on VLC on my second workspace's dock, only the video opened on it is shown.  Now:  If I do the same thing, I can see the video opened on the first workspace from the second one using the dock.  I tried to search on the internet but didn't know exactly  what to type on the search bar for this case.   Is there any way to make workspaces independent again?


Having null pointer exception for findElement when Xpath is correct and driver is not null

In the below code of mine, I am trying to click on profileSettings but having a null pointer exception.    public void ProfileHomePage(){         PageFactory.initElements(driver,this);     }      public  void expandProfileSettings(){         //System.out.println(profileSettings.getAttribute("aria-expanded"));        // String status = profileSettings.getAttribute("aria-expanded");        // if(status == "true"){            // System.out.println("Profile settings is already clicked on ");         //}         //else         System.out.println("driver=" + driver);              profileSettings.click();     }      public String getProfileName(){         String profileName;         expandProfileSettings();         profileName = profile.getText();         return profileName;      }   I am calling this from  public void Login() {      initBrowser();     HomePage homePage = new HomePage();     LoginPage loginPage = new LoginPage();     ProfileHomePage profileHomePage = new ProfileHomePage();     homePage.signIn();     loginPage.dologin();     String profileName = profileHomePage.getProfileName();     System.out.println("Profile name is" + profileName);  }   Exception I get is      java.lang.NullPointerException    at   pages.AccountPages.ProfileHomePage.expandProfileSettings(ProfileHomePage.java:31)     at   pages.AccountPages.ProfileHomePage.getProfileName(ProfileHomePage.java:36)   I have tried printing driver value as it might be null but it returned below which is expected.     driver=ChromeDriver: chrome on XP (77c67bafb1d57a6e3652301670ea3f41)   I have initialized the elements in constructor. So not sure why


How can I stitch a panorama correctly if I moved the camera along the horizontal axis?

Here in Argentina, we have . All the houses and walls on that street have some kind of mosaic stuck to it, and it's very cool. It was made by a local artist .  Because to this piece of urban art is two blocks long, I've decided to make a panorama of it, by moving myself on an horizontal axis while taking photos. I mean, I took one photo, walked one step deeper along the street, took another photo, and so on.  When I tried to stitch it in AutoPano, the following deformed thing came out:   ()  And the other side of the block:   ()  After this, I've learned about parallax error and why you have to avoid moving when making panoramas. I mean, there are a lot of connection errors on both images. Especially in the second one, the part with the corner is quite problematic to stitch because to as I moved, the perspective of the view changed a lot.  So, is there any way to stitch this kind of panorama correctly? Would this only work on plain walls?


How to restore original size and unboot my bootable USB pendrive

I recently made my pen-drive bootable with Ubuntu 14.04. But I need to unboot my pen-drive now. I formatted my pen-drive once,But the size of the pen-drive still shows 2.25 MB. Whereas,this is an 8GB pen-drive. How can I get rid of this problem. I'm still using Windows 7.


Jon Skeet's chat reputation suffers from integer overflow!    His rep should roughly be 861.6k (SO) +73.6k (Meta) +4.3k (SU) +3.1k (Programmers) +3k (SF) +1.5k (other) =947.1k.   So there is 71k missing, which is roughly his Meta rep.   However, Meta rep does count for Marc Gravell. He has 599.1k (SO) +80.4k (Meta) +5.7k (Christianity) +2.1k (Programmers) +1.1k (SU) +1k (Islam) +2k (others) =691.4k.  It seems that it doesn't count for users who haven't been in chat for a long time (>5 years). It doesn't count for BalusC, Hans Passant or VonC either, whom also haven't posted in a few thousand days. However, it does count for Martijn Pieters and Oded, who have been active recently.


I am using MiKTeX 2.9 and TeXnicCenter to compose and execute my LaTeX file(s) on Windows 8. When compiling, my code has this error:  Mathtools.sty not found   What should I do? How can I add this package?


Prove that if $k \in \mathbb {N}$ and $a>1$, then $\lim\limits_{n\to\infty} \frac{n^k}{a^n}=0$  I have this, I want to know if what I did is correct.  Let be  $a^n>1>0$, then:  $1>\frac{1}{a^n}$  Then:  $|\frac{1}{a^n}|<1$  Aplying archimedean property,for $ε>0$ exists $n \in \mathbb {N}$ such that:  $nε>n^{k+1}$  Then:  $ε>\frac{n^{k+1}}{n}=n^k$   Let be $ε>0$, exists $N=max(1,ε)$ that if $n>N$  $|\frac{n^k}{a^n}-0|=|\frac{n^k}{a^n}|$  $=\frac{n^k}{a^n}$  $<ε (1)= ε$  Therefore the sequences converges to zero.  Thank, you.