How to fix icons and text in programs that suddenly enlarged, on Windows 8.1?

A few days ago, my desktop icons and certain text in programs (eg the text in my Mozilla Firefox toolbars) suddenly enlarged, but I changed nothing. To confirm this uncontrolled suddenness, I  just checked that all inputs in the following have remained unchanged:  Control Panel\All Control Panel Items\Display\Screen Resolution Control Panel\All Control Panel Items\Display   How do I fix or revert this sudden enlargement? The screenshot below shows this problem: the red arrows pinpoint the wrongfully enlarged text, in the toolbars and Bookmarks tab. The green arrows pinpoint the original (and correct) smaller text, in the URL, Tab title, and Bookmarks toolbar.


Cannot convert type error, but both types are the same?

public static Dictionary<string, User> userList = new Dictionary<string, User>();   That's how "userList" gets declared in another class. BTW the name of that class is "User" the same as the type, which could cause the problem but i am not sure. I have no idea how to make this work honestly.  Here's the full script:  Some things in the script dont make sense yet because i copied some stuff from another script.  But basically i am trying to check if a nickName already exists in a static dictionary, and if so notify the user and don't do anything else.


since James Jeans was that famous British physicist, shouldn't there be:  Jeans's instability    instead of:   Jeans instability      I have read couple (maybe not all) of saxon genitive related topics here but I haven't found the answer.


I'm trying to create something like this.    This is what I've gotten so far. It's not what I want it to be.    How can I create the shape like in picture 1?


How Can I Harden the TCP/IP Stack in Windows Server 2008?

I would like to make sure that my Windows 2008 servers are hardened against DDOS attacks.  There is a Microsoft Technet article on , but it was last revised in January 2006. There is another article (somewhat duplicative) specifically for , but I can't find one for Windows Server 2008.  Does anyone know if these protections are already in place in Windows Server 2008's TCP/IP stack or if they are still relevant?  I found a portion of a book on Safari called Windows Server 2008 TCP/IP Protocols and Services that :     TCP in Windows Server 2008 and Windows   Vista use SYN attack protection to   prevent a SYN attack from overwhelming   the computer.   and      TCP in Windows Server 2008 and Windows   Vista no longer supports the   TcpMaxConnectResponseRetransmissions,   SynAttackProtect, TcpMaxHalfOpen, and   TcpMaxHalfOpenRetried registry values.   ...but I can't find a mention of the other registry values nor a second source for this information.


Created 100GB ec2 instance, but only shows 10GB?

I just created a new EC2 instance of 100gb with only 1 storage disk.  However, my df -h output shows the following :   [root@ip-10-252-37-164 ~]# df -h Filesystem            Size  Used Avail Use% Mounted on /dev/xvde1            5.5G  2.9G  2.3G  56% / tmpfs                 296M     0  296M   0% /dev/shm [root@ip-10-252-37-164 ~]#   How is this possible ? Where is the rest 90GB of my disk ?  How do I get the full 100G on /dev/xvde1 ?  lsblk gives me this output :  [root@ip-10-252-37-164 ~]# lsblk NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT xvde    202:64   0   100G  0 disk ├─xvde1 202:65   0   5.5G  0 part / └─xvde2 202:66   0 488.7M  0 part [SWAP] [root@ip-10-252-37-164 ~]#   I tried using resize2fs, but I get this error :  [root@ip-10-252-37-164 ~]# resize2fs /dev/xvde1 resize2fs 1.41.12 (17-May-2010) The filesystem is already 1447753 blocks long.  Nothing to do!


Can you recommend a good alternative to Adobe Illustrator?   I am learning vector based graphic design, but I am not ready to make such a large investment as to purchase a copy of Adobe Illustrator. Also, Illustrator might be a little more power than I need at the moment. I am using a Macintosh.


I have a Macbook Air 128 Gb and its always short on hard disk! Since Photos app came out, I started using it. I did the initial migration of iPhoto to Photos app (don't know which settings i chose). The issue now is : I have 2 photo libraries  Photo library (35Gb) iPhoto migrarted library (27Gb)  I don't think I've 70gb worth of photos in there and when i try to open the migrated library it says already migrated to photos app. All tools like whatsize shows them like different files and even when I copy both in my external hard drive it takes a combined storage of 70Gb. My mac does not have that much data but still only 5 Gb is left.  Now, is it safe to delete iPhoto migrated library, how can I be double sure that no data is lost! I'm in serious need of space.  To make my question unique from  , there user's iPhoto and photos app library were taking combined 35Gb, here they are taking 35+27 = 62Gb! My libraries take individual space, so please don't mix this question with the other one, it doesn't answer my question!  1st one is with photo library and other one is with iPhoto!


When is it right to report multiple accounts?

There's a user, , who has a rather checkered history of creating alternate accounts, whether for  or .  He's now created a new account, .  As always, the account looks to be very clearly his, down to the same avatar, same website, etc.  In this case, however, he hasn't really done anything wrong yet on the surface, that I can see--there's no sock-puppetry that seems to be going on between the pair, and this time, it wasn't to skirt a suspension.  It mostly looks like the account was created to escape a very negative history with the previous account.  When, exactly, is it appropriate to report multiple accounts?  Should a person with a history of multiple account abuse be reported simply for having multiple accounts, or is there some further requirement of a new bad act that should occur first?


Why are my Regular Solids Hollow Sometimes?

I had done two projects where I used Add>Mesh>Math Functions>Regular Solids to create polyhedral dice that I added numbers to via Boolean Difference. Both of these went fine and my dice had the numbers indented into them (shown below).    But today when I added a tetrahedron it was hollow (shown below).    I did nothing different between this project and any others but now every project I open (including previous ones) it generates hollow solids. This happened to me a long time ago but just closing Blender and starting a new project fixed it but that's not the case now. I tried using the Solidify modifier but with a lot of these irregular shapes it doesn't properly fill. What could've changed between yesterday and today that now these are all generating like this? How can I undo it?  For reference I had previously done numerous cubes, tetrahedrons, octohedrons, cones, dodecahedrons, and icosahedrons all without the "hollow" issue. I just showed my cube below because it's what I had in this project.


I know little about number theory even after reading its Wikipedia article.    I was wondering if the subjects studied by number theory is only about integers or even more restrictedly natural numbers or prime numbers, and how they are related to other types of numbers such as rational and irrational numbers? In number theory, are the real numbers also studied? If yes, what aspects of real numbers are studied in number theory?   Are real numbers studied just as generalization from integers and rational numbers? Or are they also studied standalone independently of integers and rational numbers?  If they are also studied independently of integers and rational numbers, is the set of real numbers, $\mathbb{R}$, regarded as a 1-dim Hilbert space with dot product being inner product and the induced topology, just as how it is studied in real analysis? Is $\mathbb{R}^n,     n \in \mathbb{N}, n>1$ studied in number theory? Can I say what is studied in real analysis about real numbers is part of number theory?  When studied independently of integers and rational numbers, is $\mathbb{R}$ regarded  as a special kind of algebraic structure studied in abstract algebra? Similar questions for complex numbers, to those for real numbers in 2. Especially are there differences between how complex numbers are studied in complex analysis, in algebra, and in number theory?    Thanks and regards!


Proving that $\sqrt[n]{m}$ is irrational

I want to make a proof that $\sqrt[n]{m} \quad \forall \quad m,n \in \Bbb N$ is irrational if $m$ cannot be expressed as a perfect $n^\text{th}$ power of some other number $z \in \Bbb N$. Begin by saying it's unconditionally rational and hence: $\sqrt[n]{m}=\dfrac{p}{q} \iff p, q \in \Bbb N$ $m=\dfrac{p^n}{q^n} \tag 1$ $mq^n=p^n$ Now say that $p=am^b , q=cm^d \iff a, b, c, d \in \Bbb N$ In this case $b$ and $d$ can be $0$ What you get now is: $m(cm^d)^n=(am^b)^n$ $c^n \cdot m^{nd+1}=a^n \cdot m^{nb} \tag 2$ Looking at the exponents of $m$, one is always divisible by $n$ and another is not. Hence it is a contradiction to say that in a general case they'd be equal. In an attempt to resolve this, say that indeed $m=z^n$. Then: $c^n \cdot z^{n(nd+1)}=a^n \cdot z^{n^2b} \tag 3$ And it is now possible, since the exponents are now both divisible by $n$. To end, say that $q=cm^d=1$. Then it would suffice to show that $\sqrt[n]{m}=z=p$ If $q=1$ then $c=1, d=0$ And: $1^n \cdot z^n=a^n \cdot z^{n^2b}$ $z^n=a^n \cdot z^{n^2b}$ The only way this equation can be satisfied is if $n=0$ or $a=z, b=0$. For the first it means that $\sqrt[n]{m}$ has a few technical problems are aren't all that interesting. For the second, it implies: $p=am^b=zm^0=z$ Q.E.D Is this a legitimate argument or is there some lacking in the generality I was aiming for? Additional info and advice would be appreciated.


Derivatives of $ \frac{1}{r} $ and Dirac delta function

I am trying to understand the formula \begin{equation} \nabla^2\left(\frac{1}{|{\bf r}-{\bf r}'|}\right) = - 4 \pi \delta(\bf{r}-\bf{r}'), \qquad\qquad {\rm (I)} \end{equation} where ${\bf r}=(x,y,z)$. This is something heavily used in electrostatics and the steps to 'show' this is often the following: The first derivative reads \begin{equation} \nabla \frac{1}{| {\bf r} - {\bf r}' |} = - \frac{ {\bf r} - {\bf r}'}{| {\bf r} - {\bf r}'|^3} \end{equation} And taking the second derivative gives zero, except for the singularity at ${\bf r} = {\bf r'}$. Then from the divergence theorem we have \begin{equation} \int dV \,  \nabla^2 \frac{1}{| {\bf r} - {\bf r'}|} = \int dS  \,\,{\bf n} \cdot ( \nabla\frac{1}{|{\bf r} - {\bf r}'|}) = -4 \pi \end{equation} where the integration is performed over a sphere centered at ${\bf r}'$. Q1: Is there a more direct proof for equation (I)? Then my main question is about the separate second-order differentials. For instance, we can obtain, by direct computation \begin{equation} \partial_x^2 \, \frac{1}{| {\bf r} - {\bf r}'|} = \frac{ 3 (x-x')^2 }{| {\bf r} - {\bf r'} |^5} - \frac{1}{| {\bf r} - {\bf r}'|^3} \end{equation} Q2: Should there be a $\delta$ function on the r.h.s of this equation?


Okay, so if I have 2 blocks of different masses 4kg and 2kg placed side by side with possibly a distance of 1 molecule between them (sorry if the diagram doesn't show that). There is negligible friction on the surface they are kept. I apply a constant force of 20N on a side of the block with mass 4kg so both move with a constant acceleration. Now I know that the acceleration would be equal to the sum of masses divided by the force applied. But here comes the problem. When I apply force on the block, it starts moving with a constant acceleration of 20/4 which is equal to 5m/s. Hence it applies a force of magnitude 5*4=20N on the second block after moving the distance of 1 molecule. So according to newton's third law of motion, the second block will apply a reaction force of 20N on the first block as long as it is in touch with it. So the two forces should cancel each other out and the first block should not move. Since the first block stopped moving, the second block should stop moving too. Then why are the blocks moving? Please solve this mathematically.


Why my class act so weird with implicit converters

Lets say I have class:  public class Result<TValue,TFailureReason>: ActionResult<TFailureReason> { //...     public static implicit operator Result<TValue, TFailureReason>(TValue value)         => Succeeded(value);      public static implicit operator Result<TValue, TFailureReason>(TFailureReason failureReason)         => Failed(failureReason); }   And I'm trying to use it here:  public async Task<Result<IAppServicePlan, AzureSdkFailure>> GetAppServicePlanAsync(string name, string resourceGroupName)     {         try         {             IAppServicePlan appServicePlan = await azure.AppServices.AppServicePlans.GetByResourceGroupAsync(resourceGroupName, name, cancellationToken)             .ConfigureAwait(false);              return appServicePlan;         } catch(Exception ex)         {             return new AzureSdkFailure(ex);         }                 }   But I get compile error:     'IAppServicePlan' to 'Result'. An   explicit conversion exists (are you missing a cast?)   However when I change to this:  public async Task<Result<IAppServicePlan, AzureSdkFailure>> GetAppServicePlanAsync(string name, string resourceGroupName)     {         try         {             IAppServicePlan appServicePlan = await azure.AppServices.AppServicePlans.GetByResourceGroupAsync(resourceGroupName, name, cancellationToken)             .ConfigureAwait(false);              return Result<IAppServicePlan, AzureSdkFailure>.Succeeded(appServicePlan);         } catch(Exception ex)         {             return new AzureSdkFailure(ex);         }                 }   It works fine.  Why return new AzureSdkFailure(ex); compiles and return appServicePlan; does not?


Relative Path in Subversion external configuration

Is there any way to use Relative path when configuring subversion externals.  For example    Trunk       - directoryA       - directoryB       - projectA {external DirectoryB}   For configuring ProjectA we have to configure full path in the external property which is causing problems or forcing us to do change the properties when we do branches.  Any way to automate the branching process or fix with absolute path will be useful


What does goodness of fit mean in context of linear regression

I am having trouble understanding the concept of 'goodness of fit' w.r.t linear regression. The name suggests that the goodness of fit test is used to determine how well a model fits the data.  But the linear model is already the 'best' fit since we have minimized the sum of the squared error terms. Why do we need to test 'goodness of fit' again? We know it is a good fit because we minimized the sum of the squared errors.


How can I display the Short Title from \caption[Short Title]{Long description} below the Figure?

I am aware that when using  \caption[Short Title]{Longer Description}  Short Title is usually used for the List of Figures. Now I would like it to also be displayed below the figure, and in bold if possible. Is there a simple workaround that I'm overlooking to accomplish this?  The figure label should look something like this:  Figure 1. Short Title. Longer Description  Thanks in advance, and best regards


Can I enter Germany first with my Estonian Schengen visa?

I have a single-entry Estonian visa which I obtained for my travel to Estonia. But, after acquiring that, my husband got a work permit to Germany coinciding with almost the same dates.   So I have decided to accompany my husband to Germany first, for 4-5 days and then go to Estonia. I also have a valid ticket from Frankfurt to Estonia and proof of accommodation.   Can I do this? Can I enter German with an Estonian Schengen visa and then do my trip to Estonia?


Why a folder needs a execute permission when I'm trying to execute a .sh?

I've got a folder that has 0600 chmod permission and this folder has a sh script.  I'm trying to limit some permissions but I've realized that if the folder has not a execute permission, unless for the user, I can't access using cd command, so that I can't execute my script. The script has the proper permission (0700)  Is this right? I don't understand why. Could anybody explain me the function of execute permission in folders?  Thanks a lot!


Right click acts like left click on my Ubuntu 18.04

After I upgraded from 17.10, right click behaves like left click.  I'm using Dell Vostro 14.  It's always getting this error when I install Ubuntu starting from 16.04 yesterday, the error is still the same... touchpad and click.   Here's the output when I type xinput in my terminal   $ xinput ⎡ Virtual core pointer                          id=2    [master pointer  (3)] ⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)] ⎜   ↳ SynPS/2 Synaptics TouchPad                id=13   [slave  pointer  (2)] ⎣ Virtual core keyboard                         id=3    [master keyboard (2)]     ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]     ↳ Power Button                              id=6    [slave  keyboard (3)]     ↳ Power Button                              id=7    [slave  keyboard (3)]     ↳ Sleep Button                              id=8    [slave  keyboard (3)]     ↳ Integrated_Webcam_HD: Integrate           id=9    [slave  keyboard (3)]     ↳ Intel HID events                          id=10   [slave  keyboard (3)]     ↳ Dell WMI hotkeys                          id=11   [slave  keyboard (3)]     ↳ AT Translated Set 2 keyboard              id=12   [slave  keyboard (3)]


Does UTF8 add right-quote and left-quote recognition to LaTeX, XeTeX?

I've got a LaTeX novel writing project with lots of character quotations.  I use Focuswriter to create chapter text files (ASCII, UTF-8).  There is no LaTeX markup in the chapter files.  A LaTeX master file will include all the code, and have lots of \include{chapter} files, etc.  So, I need LaTeX to be able to understand that right and left quotes are not special characters, and I don't want to have to code them into the chapter files.  Does UTF-8 add this automatically within LaTeX or XeTeX?  Or, is there a package that understand those for pdfTeX or XeTeX?


Feedback regarding under-reporting of Beta site visitors

Some beta sites for example DevOps and Politics display just a couple of dozens of daily visitors instead of previously many thousands.  Is there a system error and if yes when will it be fixed?


Let $f:[0,\infty)\to \mathbb R$  be Continuous and strictly decreasing function such that : $\lim_{x\to \infty}f(x)=0$ prove  $$\int_0^\infty \frac{f(x)-f(x+1)}{f(x)}$$ Diverges.  I can not prove. please help .


I am trying to load data from a table which looks like below and use the 'label' column for xticklabels.  idx,label,value 1,20040101_20050108.rotation.summary, 19.470949839091155 2,20040101_20050115.rotation.summary, 3.2633743485078925 3,20040101_20050122.rotation.summary, 2.6505513476912275 4,20040101_20050129.rotation.summary, 1.8865512077042033 5,20040101_20050205.rotation.summary, 2.2793107344143277   I have around 600 rows and when I used xtick=data with xticklabels from table={\mydata}{1} I am getting a plot like below.     So I tried to use xticklabel customization like below with \pgfplotstablegetelem.  \begin{tikzpicture}   \begin{axis}[     xmax=573,     xticklabel={$\pgfplotstablegetelem{\tick}{1}\of{\mydata}$},     xticklabel style={rotate=90, anchor=east}]       \addplot[mark=none] table [         x index={0},         y index={2}] {\mydata};  \end{axis} \end{tikzpicture}   But what I got was following:    Please let me know if anyone has any ideas to fix this.  Update 1  I figured out that I should use \pgfplotsretval to get the element value and updated my plot to reflect that like below  ... xticklabel={$\pgfplotstablegetelem{\tick}{label}\of{\mydata}\pgfplotsretval$}, ...   But the label still has prefix added to the beginning of each label like .000000002004010120061209.rotation.summary.  Update 2  I found the solution. xticklabel should be something like below.  {   \pgfmathparse{int(round(\tick))}   \pgfplotstablegetelem{\pgfmathresult}{[index]1}\of{\stresscculogerr}\pgfplotsretval }


How to make an .sof upload to an Altera Max10 stick

I have a Max10 dev board with a 10m08 chip on it. I made a simple counter to blink the LED's. My counters have asynchronous resets, and my asynchronous reset has a circuit to keep it low for two clock cycles and prevent metastablity. I reset the fpga and it the counters stop (they all go to zero), it only starts counting when I upload a new flash to the dev board. If I power down the FPGA and power it back up I get the same result. This leads me to believe that its not my reset and its more of a flashing problem. Is there some kind of setting to make the flash stick? or should I go back to debugging. How do you make the flash persistent, I don't see an option for that in the programmer, do you have to configure the user flash?


I have a small office with 8 computers on the network. Our local internet is OK but we want to improve our speed. I have two internet lines into the office so how can I use these to improve speed? Do I have two separate routers and connect 4 computers to one and 4 to another? FYI one connection also has telephony (phone, fax and alarm) many thanks ian


Prevent Windows 10 from transferring keyboard setting from one PC to another

I have desktop PC and I use US keyboard layout. Recently I bought laptop with UK keyboard (I know, but discount was good so I couldn't resist).   Now what happens is that whatever keyboard I choose for laptop (ENG - UK) Windows 10 automatically sets that layout to any other PC I use and where I am logged in with my Microsoft credentials (@live) and that is on any other PC I use at home or at work. Opposite is also true when I revert from UK to US on my desktop PCs it is set that way on laptop as well.- Any idea how to stop "backup" & "transfer" of this specific setting?  As it seems I wasn't clear enough with OP here is additional explanation: Moreover if I delete US layout on laptop Windows delete it on BOTH Laptop AND PC. Same for UK layout. If I delete it on PC it deletes it on Laptop as well. Whatever I do on one machine it goes on every other machine.


How to understand slicing function in python?

I am unable to understand how the statement below gets this answer? Question:  >>>a=[1,2,3,4,5]  >>>a[3:1] >>>[]  >>>a[3:1:-1] >>>[4, 3]   Please explain to me why did I get this output?


Is the plural of "Tablet PC" "Tablet PCs"? Is the phrase "There are many Tablet PCs" right?


I try to get a div refreshed with jQuery.
 Send <?php echo $bitcoin_price; ?>
       $bitcoin_price:  $url = "https://bitpay.com/api/rates";  $json = file_get_contents($url); $data = json_decode($json, true);  // $data[1] = USD $rate          = $data[1]["rate"]; $usd_price     = 10;     # Let cost of elephant be 10$ $bitcoin_price = round($usd_price / $rate, 8);   Anyone knows how to to get this div refreshed with an interval and execute the request?  Or is this not possible? Do i need to include and refresh a file with ajax?


How can I delay JavaScript from executing?

I'm new to JavaScript and pulling my hair out over this...   A demo of the problem is here:   And this is the script:  var sections = function() {   $('.image').each(function() {     var $this = $(this),         x = $this.find('img').width()     $this.width(x);   }); };  $(document).ready(function() {    sections();  });  $(window).resize(function() {   sections(); })   The width of an image is calculated and assigned to the image's container. The idea is that the row of images will always maintain their aspect ratio, without gaps between the containers.   The problem is the code fails about 50% of the time and the images just squish together. Resizing the window fixes it so I think it's something to do with the loading sequence.   I've tried using window.onload and img.onload instead of document.ready, and these didn't solve it. Have I missed something in my script?


The physical meaning of ${\rm Tr}()$ in quantum mechanics

I know what trace is in matrix algebra, but does it have any intuitive physical significance when acted on a quantum mechanical operator? What aspect of an operator $A$ does ${\rm Tr}(A)$ capture? Or is it just a convenient mathematical tool and nothing more?


Ecplise IDE: Is there a way to automatically switch back in perspectives?

I'm just wondering if there is a configuration to automatically switch between perspectives when one gets out of focus. Example: I'm in the Scala Perspective and start debugging from there. Eclipse automatically switches to the Debugger Perspective as soon as I reach a breakpoint. But when my app terminates, Eclipse does not switch back to the Scala Perspective but stays in Debugger. I have to do it manually. I already know about the hotkey F8, but that still requires some interaction.


How sentient were the magical portraits in Harry Potter?

If memory serves (which it may not) there are several instances in the Harry Potter canon of characters conversing with portraits in a manner that implies independent sentience. The Fat Lady outside the Gryffindor common room is one, and the past headmaster portraits in the headmasters office is another.  What I'm curious about is whether there's any evidence as regards whether these portraits were actively intelligent and self aware or merely very clever "recordings" of the subject that mimicked how they were in life?  If the former is correct, it implies that wizards captured in portraits may have been aware of their own death, and have achieved a peculiar form of immortality. In which case you might expect the majority of wizards to have one painted, and perhaps for there to be rather less mourning in the event of a wizard with such a portrait passing away.  It also raises the question of how and why these portraits were different from the photographs in the wizard world. Both could animate their subject matter, but there's never any suggestion that anyone could converse with the subjects of the photos like they could with those of the portraits. Why the difference?


A problem I saw recently is to compute $$\lim_{n\to\infty} n^2 \left(\left(1+\dfrac{1}{n+1}\right)^{n+1}-\left(1+\dfrac{1}{n}\right)^n\right)$$   I thought it would be fun to give this a go but it completely stumped me. I am not aware of any of the standard techniques used to compute $\infty\times (e-e)$ - type limits, bar possibly L'Hôpital's Rule. But I doubt that would be a good idea here, at best it would be ugly. I would appreciate solutions using any methods, the more elegant the better of course. Though I welcome any relevant hints as well if full solutions are discouraged.


A question being closed hides the possible duplicate comment

I voted to close a question for being a duplicate, then edited the automatic comment for clarification in case the OP does not see how it is a duplicate.  Subsequently the question was closed, hiding my comment (and explanation).   I see the point of this behavior but if this is the case what should I do if I feel further explanation is warranted? Edit the comment for it to be lost later, or make two comments in a row? The idea of intentionally double commenting makes me cringe but that doesn't mean it's unacceptable behavior.


Copied all my local notes to Apple's iCloud notes.  It's been a few days and they haven't indexed yet.  I found if I edit a notes file then it gets indexed.  I don't want to edit all my notes apps as they maintain the date of last usage.  How can I force an index of all the Apple notes?


Is there a problem with using logistic regression in a clinical trial with 2:1 randomisation?

I am trying to investigating data from a randomised control trial, where treatment allocation is done on a 2:1 ratio (2 patients on the experimental treatment for every 1 patient on placebo). 400 on experimental treatment and 200 on placebo, for example. I want to build a model to investigate which covariates have an impact on death (binary outcome). In the model I also want to include a treatment term (binary) and look at interactions between the treatment term and other covariates. The death rate on both treatment arms is almost identical (25%, for example). The dataset comprises only of categorical covariates. My plan is to build a logistic regression model based on AIC (using best subset selection). I will manually add the treatment term and include any interactions between the selected covariates and the treatment term using AIC. My questions are: Does the fact that the treatment arms are unequal (400 experimental, 200 placebo) have any impact on the conclusions that I can draw from the logistic regression model? Do any adjustments need to be made or other methods need to be used to account for this imbalance (my immediate thoughts are no)? I have considered using upsampling to balance the treatment arms to ensure that the variance np(1-p) is the same on both arms. Is there anything such as weighted logistic regression or conditional logistic regression that would be suitable? Huge thanks in advance for any thoughts!


How do I import a dot blender (.blender) file to edit in Blender?

I installed a low poly model in the web, it was in a dot blender format, and I don't know how to open it into my editing workspace. I try going to file>import, but it doesn't have a dot blender file to open. All I could do is double click the downloaded file from my file manager in Windows, but the downloaded file would open in a seperate and new window apart from my current workspace.


martin@martin:~$ sudo apt-get install netbeans Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  netbeans : Depends: libnb-apisupport3-java (= 8.1+dfsg3-1) but it is not going to be installed             Depends: libnb-ide14-java (= 8.1+dfsg3-1) but it is not going to be installed             Depends: libnb-java5-java (= 8.1+dfsg3-1) but it is not going to be installed E: Unable to correct problems, you have held broken packages.   When running sudo apt-get install netbeans I get error when I try to run  martin@martin:~$ sudo apt-get install oracle-java8-installer Reading package lists... Done Building dependency tree        Reading state information... Done oracle-java8-installer is already the newest version (8u131-1~webupd8~2). The following packages were automatically installed and are no longer required:   libavcodec57 libavfilter6 libavformat57 libavresample3 libavutil55 libchromaprint0 libllvm3.8 libpostproc54 librubberband2v5 libswresample2   libswscale4 libtidy5 Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   How to fix this error in installing netbeans in ubuntu


32bit OS, x64 based processor in Windows 8.1

I wanted to install a software and they ask me to choose the 32bit version or the 64bit version. My PC is 32bit OS, x64 based processor, Windows 8.1 and I have no clue what I should choose. I will mostly appreciate a simple "choose this one". I know many people have great knowledge here, but a technical explanation will be wasted on me. Than you!


I am confused about these two terms. What do these two terms mean? What is the difference between Layer and Tier?


Is causality a formalised concept in physics?

I have never seen a “causality operator” in physics. When people invoke the informal concept of causality aren’t they really talking about consistency (perhaps in a temporal context)?  For example, if you allow material object velocities > c in SR you will be able to prove that at a definite space-time location the physical state of an object is undefined (for example, a light might be shown to be both on and off).  This merely shows that SR is formally inconsistent if the v <= c boundary condition is violated, doesn’t it; despite there being a narrative saying FTL travel violates causality?   Note: this is a spinoff from the question:  .


Change line spacing for a table inside a document

I am writing a document using agujournal2018.cls template. The template could be found .   I have a lengthy table inside my document which do not fit A4 page with double spacing. I want minimum possible spacing for the table without affecting the rest of the document, so it fits in a single page.   Thanks


why service isn't follow the script that defined in ExecStart

We build the following service on redhat machine  version 7.2  more king.service  [Unit] Description=king Daemon Requires=network.target remote-fs.target After=network.target remote-fs.target  [Service]  ExecStart=/opt/home/king/king-server-0.216/bin/launcher start ExecStop=/opt/home/king/king-server-0.216/bin/launcher stop  Type=forking PIDFile=/opt/home/king/data/var/run/launcher.pid Restart=always RestartSec=10 StartLimitInterval=400 StartLimitBurst=5  [Install] WantedBy=multi-user.target   Now we stopped the service  systemctl stop  king.service   now we check the status of king service  systemctl status  king.service ● king.service - king Daemon    Loaded: loaded (/etc/systemd/system/king.service; disabled; vendor preset: disabled)    Active: failed (Result: exit-code) since Thu 2019-03-28 10:39:23 UTC; 35s ago   Process: 26595 ExecStop=/opt/home/king/king-server-0.216/bin/launcher stop (code=exited, status=0/SUCCESS)   Process: 26300 ExecStart=/opt/home/king/king-server-0.216/bin/launcher start (code=exited, status=0/SUCCESS) Main PID: 26306 (code=exited, status=143)   So service is down  Now , we start the script itself - /opt/home/king/king-server-0.216/bin/launcher start ( instead to do it from the service )  /opt/home/king/king-server-0.216/bin/launcher status Running as 27286   Before I continue , as I understanding now we should see the service is up , because we start the script  But when we check the service we see that service still down , in spite the script is running  systemctl status  king.service ● king.service - king Daemon    Loaded: loaded (/etc/systemd/system/king.service; disabled; vendor preset: disabled)    Active: failed (Result: exit-code) since Thu 2019-03-28 10:39:23 UTC; 35s ago   Process: 26595 ExecStop=/opt/home/king/king-server-0.216/bin/launcher stop (code=exited, status=0/SUCCESS)   Process: 26300 ExecStart=/opt/home/king/king-server-0.216/bin/launcher start (code=exited, status=0/SUCCESS) Main PID: 26306 (code=exited, status=143)   So why service not follow according to the script ?  Where I am wrong here?


Remove method to remove specific object from ArrayList not working

So I have a Java files named ConeList and ConeListMenuApp. In ConeListMenuApp I have a switch method that allows the user to read in a file that populates an ArrayList with Cone objects. One of the other options is to delete a cone. The user is prompted to enter a label (name of the cone) and then the deleteCone method from my ConeList is called. For some reason, I keep getting an issue where that cone is not being found in the ArrayList. It returns ""Label Entered" not found." Which would make sense except its there as my methods for printing and finding it both show it. Here is my code for the deleteCone method.    public Cone deleteCone(String labelIn) {    int index = -1;   Cone c = null;   for (Cone d : conesList) {      if (d.getLabel() == labelIn)  {         index = conesList.indexOf(d);         break;      }   }         if (index >= 0) {           c = conesList.remove(index);   }   return c;  If anyone could help me out with understanding where my issue may lie I would greatly appreciate it. I am fairly new to java and sort of stuck trying to figure out why I'm not able to remove the object.


I have two PC with putty in each an do login to same host. In first case I have nice color files and dirs:    While second PC has only black&white view:    How to make second putty colorful?


Rescaling LAS file with lidR package in R?

I am trying to process a large .las file received, which appears to have been scaled in non-standard ways for some reason (likely data transfer portability). The scales between x, y, z are different in and in the range of 10^-5 instead of 0.01 or so. The odd scales in non-standard values prevents me from processing or writing the LAS files with writeLAS or other commands, with an error of:  Error: Invalid header: X scale factors should be factor ten of 0.1 or 0.5 or 0.25 not 1.06228168611949e-05   Is there a good way to actually rescale the point cloud with the lidR package?   I know that the scale factors can be accessed through the header information, as per the code and output from sample LAS file below.   I also seek additional discussion on what it means to rescale the point cloud, and what should be used for physical interpretation and writing to DEMs rather than storage.   Sample reading in and displaying header info in R:      LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")     las <- readLAS(LASfile)     las@header     # las@header@PHB   Output includes:  Scale factor X Y Z:       0.01 0.01 0.01    Currently using lidR version 2.02 and rlas version 1.3.1.


How can we see objects that are so far away?

The HUDF used to be the deepest image of the universe ever taken by the Hubble telescope, the furthest star in this image is 59000 light years away.  The star in question:   Now Imagine a light emitting object like a star and an observer like a telescope, 59000 light years apart. I represented everything in 2D, but in 3D I suppose it would be the same but with spheres:    Now picture the photons that the object is emitting, in particle form. They will all have one direction and they will go towards this direction at C, given that there are no massive objects in between their paths:    Notice how the photons have separate paths, because they have different directions, now obviously there should be a lot more photons but for simplicity I drew it like that. My point is, given enough distance shouldn't the probability of hitting a photon be so small that seeing an object becomes nearly impossible? Like so:    Here the observer can detect the photons, but if it was slightly off it wouldn't:    So how can we detect objects so far away? Is there something about light's wave form that I'm not considering, is this how light is emitted at all?  Update:  Looking at other duplicates questions I've seen two answers:  1- There are just too many photons being emitted that the "gaps" are just too small to make any difference.  2- This isn't really how photons are emitted, instead a quantum field is spread out radially and we only detect the photon when we interact with the field.  Does this mean that there are objects that we can't see, even if given enough time for the light to reach us (presumably outside of the current observable universe)?  Or do the gaps not exist at all because of answer number 2?


The phrase "if only chivalry were dead" sounds right, but is it grammatically wrong? I would like to know if I should be using 'were' or 'was'. This is for a mock press release for university.


Is it shell portable to run a command on the same line after variable assignment?

Is there any standard that covers the portability of running a command after variable assignment on the same line?  APPLE="cider" echo hi   How portable is something like that? Where will it work and where won't it?   Also: my shell scripts start with #!/bin/sh if that makes any difference.


Closed form formula for $\sum\limits_{k=1}^n k^k$

Is there a way of finding a formula for $\sum\limits_{k=1}^n k^k$? Maybe I'm missing something really obvious, but I've looked around a bit on the Internet and I haven't been able to find anything.  So, what I'm looking for is a formula in closed form to generate the sequence $1,5,32,288,3413,\dots$


$f$ uniformly continuous and $\int_a^\infty f(x)\,dx$ converges imply $\lim_{x \to \infty} f(x) = 0$

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


How can I use $variable in a shell brace expansion of a sequence?

I want to use $var in a shell brace expansion with a range, in bash. Simply putting {$var1..$var2} doesn't work, so I went "lateral"...   The following works, but it's a bit kludgey.    # remove the split files echo rm foo.{$ext0..$extN} rm-segments > rm-segments source rm-segments   Is there a more "normal" way?


Insert something “Before the end of document”

I insert the name and licence with the command \nameofcompany at the end of my document like this:  \nameofcompany \end{document}   Now, I want to generalize it to some documents, for that I found \AtEndDocument{\nameofcompany} but it doesn't have exactly the same result than \nameofcompany  \end{document}. It seems that with \AtEndDocument, the command is only executed after \end{document}, while I want it to be executed before.  I also try to redefine the document environment like this  \renewenvironment{document}%   {\begin{document}}   {%   \nameofcompany %   \end{document}%   }   but it doesn't work either.  Is there a command like \beforTheEndDocument?


Transfer Clash of Clans account from one G+ to another G+ account?

I want to give my account to someone but I want to keep my G+ account. I hold this G+ account very dear to me and I can't give it up.  I've watched some clips about transferring accounts to another device. But I haven't found a video on how to transfer Clash of Clans account from one G+ to another G+ account.  I am using android OS.  EDIT:  I managed to transfer account but if someone else has your Gmail and pass then they can take it.


Which one is right?       1 I'm free Thursday.   2 I'm free on Thursday.   I thought if you want to say that something happens during a particular day, you should use on, as in 'They’ll be here on Tuesday.' But I came across the title sentence without on, and now I don't know exactly when to use on before a specific day and when not to!


How to read specific string object from JSON string

How to get specific value from this JSON string. I want to get nested nested JSON object "FromUserId": "bd079f57" and pass it to Javascript function.  "notification":{        "title" :"Test",        "message" : "Message",              "android": {                  "data": {                          "priority": "2",                         "profile": "profile",                         "message": "xxx has sent you a Message.",                         "style": "inbox",                         "noteId": "1",                         "visibility": "1",                         "title": "Test",                         "badge": "12",                                           "FromUserId": "bd079f57"                                                     }                     }                  }     "onNotification": function (notification) {                                  var obj = JSON.parse(notification.message.android.data.FromUserId);                         // How to pass this test.FromUserId to ReadData function.                                            ReadData(obj)                     } $scope.ReadData(obj){  //further process of json }


Why couldn't wizards in the Harry Potter world create Muggle money and use it to buy gold?

It is well established that  (or transfigurated) permanently and that Goblins can easily detect all forms of counterfeit money. However, it seems that nothing would stop a wizard from transfiguring a bunch of 100 dollar notes and using them to buy a few gold bars. Goblins don't seem to mind "Muggle" gold and it's not like they could tell it was obtained illegally.  So, is there anything in the Harry Potter books or films which mentions why wizards couldn't do this?


Cannot install anything on Ubuntu 12.04 Full Disc Error

I tried installing build-essential and I keep getting this error:  (Reading database ... 375528 files and directories currently installed.) Unpacking linux-image-3.2.0-51-generic (from .../linux-image-3.2.0-51-generic_3.2.0-51.77_amd64.deb) ... Done. dpkg: error processing /var/cache/apt/archives/linux-image-3.2.0-51-generic_3.2.0-51.77_amd64.deb (--unpack):  failed in write on buffer copy for backend dpkg-deb during `./boot/vmlinuz-3.2.0-51-generic': No space left on device No apport report written because the error message indicates a disk full error                                                                               dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-51-generic /boot/vmlinuz-3.2.0-51-generic run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-51-generic /boot/vmlinuz-3.2.0-51-generic Errors were encountered while processing:  /var/cache/apt/archives/linux-image-3.2.0-51-generic_3.2.0-51.77_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   Even if I try to install anything else I still get the same error, tried searching for someone with the same problem, found some but it didn't help me fix my problem.  Filesystem           Size  Used Avail Use% Mounted on /dev/mapper/mc-root   13G  4.7G  7.3G  39% / udev                 2.0G  4.0K  2.0G   1% /dev tmpfs                791M  256K  791M   1% /run none                 5.0M     0  5.0M   0% /run/lock none                 2.0G     0  2.0G   0% /run/shm /dev/sda1            228M  228M     0 100% /boot


Is there an official rule for minimum damage on a landing hit?

As discussed , a negative modifier should always be applied to a damage roll. However, it is suggested in the  that the minimum damage should be 1.  I'd like to know if there's an official rule (or a tweet for a game developer) that can back this up?  Specifically, I'm trying to evaluate the consequences of disarming weak creatures. Would a disarmed kobold with a -2 STR modifier do 1 (1-2; minimum 1) or 0 damage (1-2; minimum 0) with an unarmed strike?     On a hit, an unarmed strike deals bludgeoning damage equal to 1 + your Strength modifier. (PHB, p. 195)


What are valid id and name attribute values in HTML?

Recently I ran into a problem with HTML that took me a while to figure out.  HTML is not case sensitive, but it turns out that the values of id and name attributes are case sensitive.   This made me wonder what else do I need to know. Are there any other rules about id and name values?


Prove that $A$ is a singular matrix if and only if zero is an eigenvalue (of $A$)

I am completely confused about this one. I know that a singular matrix is a matrix that does not have an inverse  I also know that I can find the eigenvalues of a matrix by finding the determinant of $A - yI$ so i guess i have to solve $A-0I$ which is just equal to $A$. But I dont think this tells me anything...  But that's about all i know, any help will be appreciated


Change toggle behavior of Input Source Keyboard Shortcut in Ubuntu 18.04

I've recently switched from Ubuntu 16.04 o 18.04, and there's one thing that bugs me.  The problem I have is the behavior of keyboard layout toggling in 18.04. I have 3 keyboard layouts, say [X,Y,Z] that I toggle in-between with Super+Space.  In Ubuntu 16.04, clicking Super+Space with pause in-between changed the layout from X -> Y, Y -> Z, Z -> X. So just to the next layout from the list [X,Y,Z].  In Ubuntu 18.04 , clicking Super+Space would change the layout to the most recent layout. So if I'm using layout X and changes to Y by tapping  Super+Space, next time I try to change layout the list would look something like [Y,X,Z], so if I would like to change to Z I have to double tap instead of once.  So my question is, how can I change the layout toggling behavior in 18.04 to match the Ubuntu 16.04 one?  I guess this difference is because of GNOME in 18.04, but I can't find a similar question/answer. I'm new here so I might just have missed something obvious, but help is appreciated!


NullPointerException while creating AsyncTask

I have simple method with AsyncTask, but code suddenly crashed. Any ideas? I got Could not parse malformed JSON:, and now I get NPE at new AsyncTask<String, Void, String>() { My code:  private void getMyPage() {         new AsyncTask<String, Void, String>() {              ProgressDialog dialog = new ProgressDialog(UserProfileActivity.this);              @Override             protected void onPreExecute() {                 super.onPreExecute();                 Create Dialog...             }              @Override             protected String doInBackground(String... params) {                 HashMap<String, String> data = new HashMap<>();                  data.put("token", params[0]);                  LoginLectorUtils apiUtils = new LoginLectorUtils();                 return apiUtils.sendPostRequestWithParams(REQUEST_URL, data);             }              @Override             protected void onPostExecute(String response) {                 super.onPostExecute(response);                 dialog.dismiss();                  if (!response.equalsIgnoreCase("error")) {                     try {                         final JSONObject jsonObject = new JSONObject(response);                          if (jsonObject.getString("error").equals("true")) {                             showDialogConnectionError();                         } else if (jsonObject.getString("error").equalsIgnoreCase("false")) {                             doLoadStuff(                                     jsonObject.getString("name"),                                     jsonObject.getString("phone")                         }                      } catch (Throwable t) {                         Log.e("UserProfileActivity", "Could not parse malformed JSON: \"" + response + "\"");                     }                 } else {                  }             }         }.execute(sharedPrefUtils.getToken());     }


Appetite for the Unnatural and Clone Legion vs. hexproof creatures

For each creature target player controls, create a token that's a copy of that creature.        Destroy target artifact or enchantment. You gain 2 life.   Will this effect an enchantment on a creature which has hexproof?


unable to install wifi drivers from rtlwifi_new git repo

When I tried installing git from clone it's asking for username & password git clone https://github.com/lwfinger/rtlwifi_new.git Cloning into 'rtlwifi_new'... Username for 'https://github.com':  please help  shdpjjc@shdpjjc-System-Product-Name:~$ rfkill list shdpjjc@shdpjjc-System-Product-Name:~$  shdpjjc@shdpjjc-System-Product-Name:~$  shdpjjc@shdpjjc-System-Product-Name:~$ uname -a Linux shdpjjc-System-Product-Name 4.13.0-36-generic #40~16.04.1-Ubuntu SMP Fri Feb 16 23:26:51 UTC 2018 i686 athlon i686 GNU/Linux shdpjjc@shdpjjc-System-Product-Name:~$ lspci -knn | grep Net -A3;   below command gives blank  rfkill list  lspci -knn | grep Net -A3    Below solution resolved my problem  I was able to resolve the issue after following this post in https://github.com/kelebek333/rtl8188fu. https://askubuntu.com/questions/1062402/cant-find-wifi-drivers-for-0bdaf179-realtek-semiconductor-corp   The concern was we were using 0bda:f179 Realtek Semiconductor Corp which requires specific drivers.  Thanks Everyone for the Help :)


Proof that $\sigma (p(A)) = p(\sigma (A))$ for any polynomial and matrix

My problem:  Prove that for any matrix $A$ and for any polynomial $p(x)$ we have that $\sigma (p(A)) = p(\sigma (A))$, where $\sigma$ is the spectrum of a matrix. Prove that $A$ is an invertible matrix if no root of $p(x)$ is an eigenvalue.  My solution:  For example, if I have the polynomial $\;$ $p(x) = x^2 + x$ $\;$ and the matrix  $$         A= \begin{pmatrix}         1 & 0  \\         0 & 1 \\          \end{pmatrix} $$  then   $$         p(A)= \begin{pmatrix}         1 & 0  \\         0 & 1 \\          \end{pmatrix}^{2}+  {\begin{pmatrix}         1 & 0  \\         0 & 1 \\          \end{pmatrix}}=  {\begin{pmatrix}         2 & 0  \\         0 & 2 \\          \end{pmatrix}} $$ $$ $$  We can see that the spectrum of $p(A)$ contains the eigenvalues $\lambda_{1,2} = 2$  The spectrum of the matrix $A$ contains eigenvalues $\lambda_{1,2} = 1$ and if we substitude it into $p(x)$, then $p(\lambda) = p(1) = 1^2 + 1 = 2$  The spectrum of $A$ is the set of its eigenvalues and the eigenvalues are the roots of the characteristic polynomial, but I am not sure how to prove $\sigma (p(A)) = p(\sigma (A))$ generally. The second proof I think I understand. Can anyone help me?


My company uses an HTTP proxy and our various Ubuntu 12.04 servers therefore need to be configured properly, namely by setting \etc\apt\apt.conf.d\80proxy to:  Acquire::http::Proxy "http://proxy.mycompany.com:80";  Acquire::http::No-Cache true;   Now, since a few days, this method suddenly stopped working: I run into sum mismatch errors. I have tried all the usual tricks found on stackoverflow or on the web, among others:  sudo rm -fR /var/lib/apt/lists/*     sudo apt-get clean   But nothing seems to work. I even switched to a FTP server, without any luck. What's a radical solution to this problem? Is it likely that the proxy server has some kind of issue? What could it be?  Using Ubuntu 12.04


Can not move polygons but only vertices of an object by bmesh!

I can only move the vertices of the monkey to (2,4,6) but not by polygons and effects look strange. What is the right way to calculate the polygons by the vertices according to their Z value? bpy.ops.mesh.primitive_monkey_add(size=2, location = (0,0,0)) obj = bpy.context.object obj.name='myobj' me = obj.data  ico0 = np.array([v.co for v in me.vertices]) # get ico vertices  #find out Zvalue zmin, zmax = ico0[:,2].min(), ico0[:,2].max() zc = np.linspace(zmin, zmax, n_frames)  icop0 = np.array([p.index for p in me.polygons]) # get ico polygons zpmin, zpmax = icop0[0], icop0[-1] zpc = np.linspace(zpmin, zpmax, n_frames) ico = np.zeros_like(ico0) data = [] for i in range(n_frames):     ico=ico0[np.where(ico0[:,2]<=zc[i])]+[(2,4,6)]     data.append(ico.copy()) ## ------- part 2  ---set up frame change event handler, def my_handler(scene):     i_frame = scene.frame_current     if not (0 <= i_frame < len(data)):         return      obj = bpy.data.objects['myobj'] # be explicit.     me = obj.data     for (vert, co) in zip(me.vertices, data[i_frame]):         vert.co = co     me.update() #clear the post frame handler bpy.app.handlers.frame_change_pre.clear() bpy.app.handlers.frame_change_post.clear()  bpy.app.handlers.frame_change_pre.append(my_handler)


I've heard conflicting answers, and would like to see the record set straight:  An jet/propeller airplane is traveling on a giant treadmill at takeoff speed. Will the plane takeoff, or will it remain on the runway, and why?


Why the following is not correct? : $$\lim_{n \to \infty} (1+\frac1n)^n = \lim_{n \to \infty} (1+\frac1n) \lim_{n \to \infty} (1+\frac1n) \dots \lim_{n \to \infty} (1+\frac1n) = 1 \times 1 \times \dots 1 = 1.$$ I guess that the problem (as usual) lies in infinity, but if so how? I checked all the theorems in Fitzpatrick's book of Calculus, nothing prevents to do the limits infinitely many times (esp. for a convergent one)!


Is there a compact set with positive measure on $[0,1]\setminus \Bbb Q$

I'm wondering if there exists a Lebesgue compact set (with respect to the usual topology on $[0,1]$) in  $[0,1]\setminus \mathbb{Q}$ whose Lebesgue measure is positive. In fact we've just seen the Egoroff theorem in class, and I thought of the functions $$ f_n(x)= \left\{     \begin{array}{ll}         \frac{1}{n} & \mbox{if } x\in[0,1]\setminus \mathbb Q\\         1 & \mbox{otherwise.}     \end{array} \right. $$ Obviously $f_n\to f\; \mu$-a.e., but since $\mathbb Q$ is dense, I'm wondering how we can find a compact set $F\subset [0,1]$ for a given $\delta>0$ such that $\mu([0,1]\setminus F)<\delta$ and $\sup_{x\in F} |f_n(x)-f(x)|\to 0 $ as $n\to 0$. Could you please explain why Egoroff holds in this case?


Evaluating Mortgage Refinance Loan Offers - Short Time Frame

I currently have a 4.5% mortgage with a balance of $247,000, and am going to refinance. However, my situation is a little atypical in that I don't plan to live in the house more than 3-4 more years.  To minimize cash outflow I am considering a 5/1 ARM, and want to know how to evaluate the wisdom of "buying down" the interest rate.    I have one set of offers shown below, with a plethora of options for paying points up front in exchange for a lower rate.  If I choose the middle-of-the road option (2.75 rate) my break-even over the current loan is 12-13 months.    Given that my time frame is 3-5 years, how would I analyze this table to determine the "best" option?  My objective is to minimize total cash flow over, say, 48 months assuming any money not contributed to buying down the rate is earning 3.5%.  Also, there are fixed closing fees of $1932 in addition to the discount points.  Location is in the US Pacific Northwest.  Rather than just giving me a solution I'd prefer an explanation of how to calculate the solution on my own.  Current Loan Balance   $247,000 Current Interest Rate     4.50% Current Payment        $  1,282 Remaining term (months)     341                                   Discount Fee                                   ------------------   Rate    APR     New Pmt       Pct          $ ------  ------    -------     ------------------ 1.500%  2.776%    $852.45     4.53%   $11,189.00 1.625%  2.787%    $867.34     4.13%   $10,194.00 1.750%  2.798%    $882.39     3.72%    $9,196.00 1.875%  2.809%    $897.60     3.32%    $8,198.00 2.000%  2.820%    $912.96     2.91%    $7,200.00 2.125%  2.831%    $928.48     2.51%    $6,205.00 2.250%  2.837%    $944.15     2.05%    $5,054.00 2.375%  2.833%    $959.97     1.44%    $3,567.00 2.500%  2.845%    $975.95     1.05%    $2,586.00 2.625%  2.857%    $992.08     0.65%    $1,606.00 2.750%  2.866%  $1,008.36     0.23%      $561.00 2.875%  2.892%  $1,024.78    -0.14%     -$346.00 3.000%  2.934%  $1,041.36    -0.51%   -$1,257.00 3.125%  2.978%  $1,058.09    -0.88%   -$2,166.00 3.250%  3.021%  $1,074.96    -1.20%   -$2,966.00 3.375%  3.064%  $1,091.98    -1.50%   -$3,700.00 3.500%  3.108%  $1,109.14    -1.79%   -$4,429.00 3.625%  3.152%  $1,126.45    -2.09%   -$5,155.00 4.125%  3.330%  $1,197.08    -2.18%   -$5,392.00 4.250%  3.375%  $1,215.09    -2.42%   -$5,970.00 4.375%  3.420%  $1,233.23    -2.65%   -$6,548.00 4.500%  3.465%  $1,251.51    -2.84%   -$7,005.00


Make gnome-terminal show the command running as title

I want the name of command running , e.g unzip to be visible through the title bar of gnome-terminal , but it seems to be impossible , if the application running doesn't set a title explicitly , even though I choose 'Replace initial title' option in the profile dialog.


Is a prime factor of a number always less than its square root?

I was going through the fundamental theorem in Number Theory where any non zero integer n can be represented as a product of distinct primes. A related problem with this theorem is to prove that for every such number, there exists a prime $p$ such that $p< \sqrt n$. I was wondering if there is any mathematical proof that no prime $p$ exists for the number $n$ such that $p> \sqrt n$.


Why did Malfoy's Petrificus Totalus work on Harry while he was wearing the Invisibility Cloak?

In Harry Potter and the Half-Blood Prince, after Harry eavesdropped on Malfoy on the Hogwarts Express, Malfoy cast Petrificus Totalus on Harry while Harry was wearing his Invisibility Cloak.   How did the spell work, when Deathly Hallows tells us that no spell used against the Invisibility Cloak will work? (Harry's cloak was not an ordinary cloak and was a gift by Death, himself, to his ancestors, passed down to him)  To prove my point, sometime later in Deathly Hallows, one of the Death Eaters tried to Accio the cloak to find Harry, which didn't work.  So this contradicts J.K. Rowling theory.     Ah, but the Third Hallows is true Cloak of Invisibility, Miss   Granger! I mean to say, it is not a traveling cloak imbued with   a Disillusionment Charm, or carrying a Bedazzling Hex or else   woven from Demiguise hair, which will hide one initially but fade   with the years until it turns opaque. We are talking about a cloak   that really and truly renders the wearer completely invisible, and   endures eternally, giving constant and impenetrable concealment,   no matter what spells are cast at it. How many cloaks have you   ever seen like that, Miss Granger?


Which app should I install to download videos from YouTube?


How to create a read-only class property in Python?

Essentially I want to do something like this:  class foo:     x = 4     @property     @classmethod     def number(cls):         return x   Then I would like the following to work:      >>> foo.number 4   Unfortunately, the above doesn't work. Instead of given me 4 it gives me <property object at 0x101786c58>. Is there any way to achieve the above?


Given  $z_1 = 1\;\;$  For $\;\;n \,\in \,\mathbb{Z^+}, \;z_{(n+1)} = \sqrt{1 + z_n}.$  To Do  Prove that $\;\langle z_n\rangle\;$ is convergent and find its limit.  My Work Let $\;t \;=\; \dfrac{1 + \sqrt{5}}{2}.$  $\forall \;x \,\in \,\mathbb{R}, \;$ let $\;f(x) = (1 + x) - x^2.$  Then $\;f^{\prime}(x) = (1 - 2x) \;\Rightarrow\; $ $\forall \;x \,\in \,[1, t), \;f^{\prime}(x) < 0.$  Further, $\;f(1) = 1\;$ and $\;f(t) = 0.$   Therefore, $\;\forall \;x \,\in \,[1, t), \;f(x) > 0 \;\Rightarrow $  $(1 + x) > x^2 \;\Rightarrow\; \sqrt{1 + x} > x.$  Therefore, $\;\forall \;z_n \,\in \,[1, t), \;z_{(n+1)} > z_n.$  Also, $\;x \,\in \,[1, t) \;\Rightarrow\; (1 + x) < (1 + t) = t^2.$  Therefore, $\;x \,\in \,[1, t) \;\Rightarrow\; \sqrt{1 + x} < t.$  Therefore, $\;z_n \,\in \,[1, t) \;\Rightarrow\; z_{(n+1)} < t.$   Consequently, $\;\langle z_n\rangle\;$ is a strictly increasing sequence  that is bounded above by $\;t \;=\; \dfrac{1 + \sqrt{5}}{2}.$  Therefore, $\;\langle z_n\rangle\;$ is convergent.  However  In order to find the limit of $\;\langle z_n\rangle\;$, I must find its least upper bound. I know that $\;t\;$ is an upper bound for $\;\langle z_n\rangle\;$.  I know that $\;\langle z_n\rangle\;$ is strictly increasing in the interval $\;[1, t).$   I suspect that $\;t\;$ is the least upper bound.  But, I am unable to prove that $\;\langle z_n\rangle\;$ does not have  some other upper bound that is slight less than $\;t.\;$  Request Help proving the last link.  Addendum It was suggested that the following link is on point:   If I'm not mistaken, that link focuses on demonstrating that the sequence is bounded and convergent, which is not the issue in my query.


error: no such partition Entering rescue mode... grub rescue> ubuntu partition accidentally deleted

I am using Windows 8.1  and Ubuntu 13.10 as in dual boot. I have changed my disk size using disk management. accidentally I delete Ubuntu partition at all. Once I restarted the system, I am getting message 》》 error: no such partition. entering rescue mode. . . Does anybody know how to fix this ?


I need to get rid of these jagged lines in my render. I created the text then used a wave modifier and converted the text to a mesh. I then added the velvet modifier and feel like it has something to do with the velvet modifier but may be wrong. Il attach another pic of the file nearer to completion and show how it is just a few vertices that ruin it! Cheers


Good books for a high schooler self-studying Abstract Algebra?

Does anyone have any suggestions for abstract algebra books particularly suited to self-study?     Here is some background and motivation, if it's helpful.  I'm currently a junior in high school, but I have some familiarity with groups, rings, polynomials and fields, as I went through Fraleigh's book. I liked its writing style, but many of the problems were not helpful. I would like to get better at algebra with some other book, particularly one that's aimed at someone who already has a little familiarity with the objects, but is by no means completely comfortable.  One of my longer-term goals is to learn a bit of algebraic number theory, as I've only been studying elementary number theory. That's why I feel it  good to learn more algebra first. (I'd also be interested in suggestions of other good subjects to learn prior to tackling algebraic number theory.)  I was considering using one of Lang's books, since they seem pretty universal, but I've heard rumors that they are very terse and not good for self-learning.


13.10 Can't Adjust Dell Laptop Backlight

I have a Dell Studio 1558. When I originally installed 13.04 on it, I had to modify my /etc/default/grub with the following:  GRUB_CMDLINE_LINUX_DEFAULT="acpi_backlight=vendor dell_laptop.backlight=0 quiet splash"   Doing that made everything work, the keyboard brightness buttons, the OSD in the top right corner, and the brightness slider in System Settings. However, upon upgrading to 13.10, I once again am unable to adjust the backlight. This is also the case if I use either of the following:    GRUB_CMDLINE_LINUX_DEFAULT="acpi_backlight=vendor quiet splash"   GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"     The backlight is stuck at a single brightness level, at a guess I think it's somewhere around 50%. The OSD still comes up if I push the keyboard buttons, but the bar only goes down one division from 100% and resets back to 100%, if I press decrease again. The slider in 'System Settings' does nothing.    Any help is greatly appreciated!


Indicate comments belonging to the original poster in the android app

On the website we get an indication when it's the poster that's commenting. Can we have the same functionality for the android app; some kind of indication when the comment belongs to the poster.


Transfer money from US checking/saving account to NRE account

I want to transfer money from my US saving/checking account to Indian NRE account. How can I do it? Will transferring directly from my US account to bank account will give me best rates? or Should I use third party transfer services like click2remit for such money transfer to get best rates?


bsnl is709c android tablet is not booting up

My BSNL penta IS709C tablet got locked after too many unlock attempts. After that I tried to hard reset by pressing BACK + HOME + MENU buttons together with the power button but in vain. Tablet present condition:  1) USB debugging off, so no adb commands.  2) wifi is off. 3) No     associated google account.  Please help me restore the tablet or suggest me how can I hard reset it.


Proof the sum of odd cubes using induction

I have $1^3 + 3^3 + ... + (2n + 1)^3 = (n+1)^2(2n^2 + 4n + 1)$  So, if $A_r = (r + 1)^2(2r^2 + 4r + 1)$ is true, then $$A_{r+1} = (r+1)^2(2r^2 + 4r + 1) + (2r + 3)^3$$ And now I can't transform the expression above into the form $$(r + 2)^2(2(r + 1)^2 + 4(r+1) + 1)$$ I tried to open these terms and got $2r^4 + 16r^3 + 47r^2 + 60r + 28$, but it seems to be a very difficult expression.   I will be grateful for any hints.


How can I handle NULL values in a color ramp?

I'm mapping areas in QGIS 2.12 based on average pricing, using area polygons (PostGIS) joined with a CSV data table that doesn't have values for areas that didn't have any sales.   I'd like to color the areas that don't have matching "area" values in my data table, but also use a green to red ramp on the areas that do have pricing.  My data is set up like this:   area, avgprice, sales A, 50000, 100 B, 100000, 50 C, NULL, NULL D, 250000,  20 etc.   I was able to set up a zero value with white as the coloring, and 5 other colors encompassing the total average price range, but I can't seem to Classify NULL as a value to use in the color ramp.   Maybe there is a way to use a categorized style, but I don't if there is a way to set value ranges instead of distinct values for that methodology.


Why camera does not have a USB port to connect to PowerBank for power?

I notice that almost all camera use either a proprietary Li-ion battery or AA size battery for power.  May I know what is the reason for not having a camera that have USB port that can be connect to a Power Bank for supply? (since there are so many Power Bank of different mAh nowadays)


Can I travel on a valid Canadian visa in an old/expired passport?

I recently renewed my passport in February 2020. I have a valid Canadian visitor visa in my old passport (with expiry date 30/09/2020, the visa also expires 30/09/2020).  I had planned to travel to Canada from Mumbai airport with Ethiopian Airlines on 11/03/2020, but since I don't have visa in my new passport, they didn't allow me to travel. So what is the next step to do?


Access Named Credentials with merge fields

I am on a task where I need to call an external webservice that takes the username and password in the request body, not as part of Authorization header. I did setup the username and password using Named Credentials, but I am having trouble accessing the actual username and password from the named credentials as merge fields. Below is my setup Identity Type : Named Principal Authentication Protocol : Password Authentication Username : {Service Account Username} Password : {Service Account Password}  Generate Authorization Header : Unchecked Allow merge fields in HTTP Header : Unchecked Allow merge fields in HTTP Body : Checked  I tried various options, but nothing seems to work. When I access the named credential via code using the merge fields {!$Credential.Username} and {!$Credential.Password} and assigning them to string variables, the debug log is only printing {!$Credential.Username} and {!$Credential.Password} only and not the actual username and password. Apparently, the HTTP send is throwing a ScriptThrownException when I make a callout to the external webservice with the above credentials. Also, if I have multiple named credentials in my salesforce org, how do I access the correct one using merge fields? Can someone help?


Suppose that $a \equiv b\mod m$ and that $a \equiv b\mod n $ .Assuming gcd$(m;n) = 1 $ ,prove that $a \equiv b\mod mn$

How should I approach this question? I was thinking of splitting it up such as as $ mt=b$ and $ax + ny=b$


At what point is refining more efficient than cutting?

When kittens-game begins, our only option to obtain wood is by refinement. As the game continues, we have access to woodcutters, and they pretty clearly are more efficient than refining (see this question "").  Later on however there are many upgrades to refining, with bio labs being one quite late and substantial upgrade (an additional 10% efficiency per lab). I noticed that a farmer's base rate for catnip is 5/sec and a woodcutter's base rate is 0.075/sec. It seems to me that it is already more efficient to refine than to chop.  I'm not always paying 100% attention, so I believe it is still a good idea to have a couple of woodcutters so that production is in the positive. All the rest of my woodcutters should be farmers, right?  I'm new to the late game. In late-game, are woodcutters obsolete? At what point does refining become more efficient than woodcutting?


I've got a couple of shortcuts on my desktop and on some of them I've configured the "Shortcut key" to a keyboard combination. For example I have a shortcut pointing to d:\documents\todo.txt and I've set Shift + Alt + T. This naturally opens up using notepad.  Double-clicking on the icon always opens up the text file immediately. Using the keyboard shortcut though is sometimes very (5-10 seconds) slow. Note that during that time CPU utilization does not rise.  This happens to all my machines (both old and new ultra fast boxes) in Windows XP (various versions) and Windows 7.  There are  but no solution.  Is there an explanation and solution to this problem?  Edit: The behavior is not consistent. I have 30 desktop shortcut and 5 of them have keyboard shortcuts assigned. I'm not interested in software alternatives for this Windows functionality. I want to know what the problem is and how to solve it.


Define local variable for global color highlight?

let say I have a document with several places where I'm highlighting with color, how can I create a 'synonim' or 'variable' that I can change in a single place of the document instead of going through each and one of the \color{something} that I have. &= {3}\,·\color{Chartreuse4}\int_{-\frac{3}{2}}^{1} x^2\mathop{dx} &&- \color{Chartreuse4}\int_{-\frac{3}{2}}^{1}x^2\mathop{dx}+ \int_{-\frac{3}{2}}^{1}x\mathop{dx} &&&\color{Chartreuse4}\text{\{Integral $x^n = \frac{x^{n+1}}{n+1}$\}}  Say I have that, how can I declare a variable that says: "color_variable=Chartreuse4" and then I can just do: &= {3}\,·\color{color_variable}\int_{-\frac{3}{2}}^{1} x^2\mathop{dx} &&- \color{color_variable}\int_{-\frac{3}{2}}^{1}x^2\mathop{dx}+ \int_{-\frac{3}{2}}^{1}x\mathop{dx} &&&\color{color_variable}\text{\{Integral $x^n = \frac{x^{n+1}}{n+1}$\}}  and simply change the evaluation of color_variable to red, green, blue, or whatever. Similar to CSS documents where all items that are from the same "class" change color when I change the property. Thanks!


Can you combine multiple images into a single one using JavaScript?

I am wondering if there is a way to combine multiple images into a single image using only JavaScript.  Is this something that Canvas will be able to do.  The effect can be done with positing, but can you combine them into a single image for download?  Update Oct 1, 2008:  Thanks for the advice, I was helping someone work on a js/css only site, with jQuery and they were looking to have some MacOS dock-like image effects with multiple images that overlay each other.  The solution we came up with was just absolute positioning, and using the effect on a parent <div> relatively positioned. It would have been much easier to combine the images and create the effect on that single image.  It then got me thinking about online image editors like  and wondering if there could be a browser based image editor with photoshop capabilities written only in javascript.  I guess that is not a possibility, maybe in the future?


Is there a way to absolutely force a Log Out, Shut Down, or Restart with open tabs and unsaved documents?

I could not find any relatively simple way to log out of a public use Mac quickly with many tabs open and unsaved document in the background without resorting to sudo shutdown -h now.  The reason I ask is that sometimes a user will have his/her account logged into the iMacs here at school and they would try to log off and then leave, thinking it has completed but the process is interrupted by Safari and Office apps, leaving their account, mounts, and websites still accessible to the next person who sits down.  Obviously a shortcut string would be nice instead of posting a note telling the person to type arcane things in a terminal. For example, just having them try to find Terminal.app is going to be a chore.  This doesn't seem to make sense because the user can just quit each app and click a few dialog boxes but unlike you and I to whom repeatedly pounding Command-Q while hitting the spacebar and D keys are probably second nature.


Disable auto-opening nautilus window after auto-mount

Every time I plug a USB stick in, nautilus opens a new window with the contents of the drive. I would like to disable this auto-opening of the nautilus window, but I would like the actual auto-mount to keep working. Is this possible?


Strange behavior involving Python nested lists


I am looking for the title of a science-fiction book describing a colony (utopia) on another planet that has been established as a social experiment. The inhabitants had been brought up only by robots and therefore work perfectly as a society. I think there is no formal government and people work on what they are interested. If any catastrophe happens, they are able to form groups of specialists who react to the threat. Later there comes a group of outsiders who decide to join and live in the utopia. I am not sure, but author was probably Canadian.


Earth as Water World, invasion at climax, fought off

Back in the '80s, I read a story - novel length for the time (would probably be a 'novella' now) - with the following aspects that I can recall:   The world had been 'drowned'; except for outcroppings from the highest mountains, there was no natural land - only 'cities' anchored in place somehow. The world was divided into a number of "Thassalarchies", sections of ocean ruled by a strongman who commanded a fleet. Technology seemed to have regressed to more-or-less early Renaissance There was a race of modified humans, the 'Seaborn Ones', who lived under the seas. The viewpoint character was a peon of the time, and wanted to go to sea and become one of the Thassalarch's men. At the end, the viewpoint character had managed to ascend to being the Thassalarch of two territories, and had learned how to communicate with the Seaborn Ones, more-or-less just in time for the "return of the Star Beasts", who supposedly caused the drowning of Earth. In the end, the Star Beasts were defeated.   I will be d$$$ed if I can recall the title or author of the story. Help, please?


Probability Given Datapoint Does Not Appear in a Bootstrap Sample?

I received this question for a Statistics / Machine Learning assignment and I'd like to you if any of you know the proper answer.  If we have n data points, what is the probability that a given data point does not appear in a bootstrap sample?  Sounds simple enough right? I'm reading Introduction to Statistical Learning to try and find the solution but I would definitely appreciate some help


Can "loss of life" abilities be triggered by combat and/or direct damage?

When taking combat or direct damage, this is not the same as loss of life, right? Yes, your life total goes down. But some cards have activated abilities when "loss of life" happens. For example, if I get dealt combat damage, this would not trigger a "loss of life" ability, correct?


So, I have willfully kept myself a Java n00b until recently, and my first real exposure brought about a minor shock: Java does not have C# style properties!  Ok, I can live with that. However, I can also swear that I have seen property getter/setter code in Java in one codebase, but I cannot remember where. How was that achieved? Is there a language extension for that? Is it related to NetBeans or something?


For a set of 48 randomly generated points using runif(), I use the command quantile(x,0.25) to calculate the first quartile in R. I don't understand what formula is used by R to calculate quartiles of ungrouped data points. The value I am getting as a result is not the median of the data from 1 to 23rd position.


YA fiction 1980 - society living in underground caverns

I’ve read through many of the similar questions but I have not found the answer and I have more details. I’ve been looking for this book for almost 30 years. The main character is a youth and I believe a female human. Might be a male. One day, at school the kids are asked to draw a picture (it is implied that it’s some type of assessment). The main character draws the head of the societies leaders as a spider or in a web while in a relaxed state. (Subconsciously) We understand this is not appropriate - criticism of leaders. The society has many tunnels that run through the outer area of the living area (I don’t recall the living spaces to be squalid in anyway). The tunnels are filled with water. They are never mapped which allows each new generation of people to have the pleasure of discovering something new. It turns out the main character is special in that she is dissatisfied and feels something is being kept from her people by the leaders. I believe the story concludes with the fact that she is supposed to lead the ridged community back to the scary topside. If you know this story - I’d love to give it to my daughter for Christmas this year. P.s - I remember that the people have no hair. They’re naturally bald down on their heads. I also recall that the main character eventually meets a girl with long blonde hair from the top side. (Which is why I wonder if the main character was actually male). That may happen in the first book or there may have been a second book in the set. Thanks for reading.


How to add bibliography to single tex file?

I have little or no working knowledge of Latex. I have .tex file for a journal paper submission in which references in the article are mentioned like \cite{JinGaherty2015}. At the end of the main text, there is a line \bibliography{aktomo_new}. The separate file aktomo_new.bib has the definition of the references, for example @article{JinGaherty2015,      AUTHOR = {G. Jin and J. B. Gaherty},      TITLE = {{Surface wave phase-velocity tomography based on multichannel cross-correlation}},      JOURNAL = {\gji},      PAGES = {1383-1398},      VOLUME = {201},      NUMBER = {3},      DOI = {10.1093/gji/ggv079},      YEAR = {2015} }  However the journal requires one final file for submission. Simply copy-pasting the above lines from aktomo_new.bib to the main .tex file is not working. Someone showed me a working .tex file that has references written as \bibitem[\protect\citeauthoryear{Berg, Lin, Allam, Schulte-Pelkum, Ward, and   Shen}{Berg \textit{et~al}.}{2020}]{Berg2020} Berg, E.~M., F.-C. Lin, A.~Allam, V.~Schulte-Pelkum, K.~M. Ward, and W.~Shen   (2020). \newblock {Shear velocity model of Alaska via joint inversion of Rayleigh wave   ellipticity, phase velocities, and receiver functions across the Alaska   Transportable Array}. \newblock {\em \jgrse\/}~{\em 125}, doi: 10.1029/2019JB018582.  It makes no sense for me to re-write all references from the first format to the second format so that I can have one final file. Any suggestions ?


I have a very unbalanced sample set, e.g. 99% true and 1% false.   Is it reasonable to select a balanced subset with a 50/50-distribution for neural network training? The reason for this is, that I guess training on the original data set may induce a bias on the true-samples.  Can you suggest me some literature that covers this topic especially for neural networks?


Finding a context-sensitive grammar for L

I need help for finding a context-sensitive grammar for the following language: $$ L = \left\{ ww \left| w \in \left\{a, b\right\}^* \right. \right\} $$ Would that be a correct context-sensitive grammar? S  -> ε | AUAV | BUBV   (1) U -> AUC | BUD          (2) CA -> AC                (3) CB -> BC                (4) CV -> AV                (5) DA -> AD                (6) DB -> BD                (7) DV -> BV                (8) U  -> ε                 (9) V  -> ε                 (10) A  -> a                 (11) B  -> b                 (12)


Is determinant a monotone matrix function?

Suppose that $A \geq B \geq 0$ where $A$ and $B$ are two symmetric n by n matrices.  $A \geq B$ stands for $A-B$ is positive semi-definite. Then, is it able to show that $det(A)\geq det(B)$.  I don't find any such statement. So I conjecture this could be wrong, but how to construct a simple counterexample?


amsalpha-like bibtex style with manual labels

I want to do amsalpha style citation with BibTeX, except that I want to have manual control over the key/labels (e.g., [ABC09]). Is there an option for this?


Difference between \input{filename} and \input{filename} in the main tex file.


I need help solving this task, if anyone had a similar problem it would help me. The task is:  Calculate: $$\sum\limits_{k=0}^{n} { 3n \choose 3k }  $$  I tried something, with $$2^n= \sum\limits_{k=0}^{n} { n \choose k }$$ But, have no idea how to get the correct solution which is: $$ \frac{2(-1)^n+8^n}{3}$$


How was the half-life of Uranium 235 determined and by whom?

Wikipedia  that the half-life of Uranium-$235$ is $7.038 \times 10^8$ ($\text{703 800 000}$) years. This is very long. Therefore, on a human time scale, the decay is very small, posing difficulty for determining the half-life. So Who and how was the half-life calculated?


I think that the question is clear from the title:     Are there sets $A$ and $B$ such that $A \in B$ and $B \in A$?   My feeling is that the definition of any two such sets will be circular (we can't define $B$ till we define $A$ and we can't define $A$ till we define $B$), and hence will be excluded by some axiom.  On the other hand, I can't see an inherent contradiction, though I wouldn't be surprised if some form of Russell's paradox pops up, pushed behind one more set of braces.


does ANOVA have to work on groups with replicates?

I want to test if the means of different groups (tissue types) are different using one-way ANOVA. Most of the groups have replicates but there is one group that only has one sample. Like this:  heart, heart, heart, skin, skin, skin,skin, bone, bone, bone, brain  In the above example, only one sample/data point for brain and the other three tissues have replicates.   So can ANOVA work for this data or it has to require all groups have replicates?


Find the set of all limit points of the sequence $a_{n}=n\alpha-\lceil n\alpha \rceil,\alpha\not \in \mathbb{Q}.$  This problem is particularly easy when $a\in \mathbb{Q}$, but somehow the same techniques fail to work when $\alpha$ is irrational. Any help/hint on this problem will be much appreciated.


error when accessing colored item in terminal showed by "ls"

Good day, I am fairly new to linux and I wanted to get to the directory shown in my terminal after executing ls. Now when i tried cd /foldername/ it gives an error bash: cd:/foldername: No such file or directory when it literally is there.  is the actual sample pic for reference of the error I'm getting. Any help and suggestions are much appreciated, thank you!.


How to start an android activity only for a specific user in firebase?

I am using firebase and android along with user authentication.   I want an activity to start only for one specific user with email id - someemail@gmail.com.  my code is:  System.out.println("uid "+auth.getCurrentUser().getEmail()); if(auth.getCurrentUser().getEmail().equals("someemail@gmail.com")){     Intent intent = new Intent(LoginActivity.this, AdminActivity.class);     System.out.println("uid1 "+auth.getCurrentUser().getUid());     startActivity(intent);     finish(); } else {     Intent intent = new Intent(LoginActivity.this, MainActivity.class);     startActivity(intent);     finish(); }       Even though I log in with someemail@gmail.com, it starts the MainActivity.class instead of AdminActivity.class  System.out.println("uid "+auth.getCurrentUser().getEmail());   prints someemail@gmail.com but it doesn't work in the if condition.   I am new to android and firebase, please help.


Whether the image is a subspace of a linear transformation

$V$ and $ W $are two real vector spaces.  $T: V \rightarrow W$ is a linear transformation.  What is the image of $T$ and how can I prove that it is a subspace of W?


Logistic regression and classification: Adjusting or removing decision boundaries

I'm taking Andrew Ng's Machine Learning Course. In the lesson on classification algorithms, he presents the logit function ($\frac{1}{1+e^{-x}}$) and the way it converts parameterized functions to probabilities. He marks the "decision boundary" at .5, noting that the logit function cross .5 at $x=0$. If the value of the logistic regression function is .5 or greater, the result is given as 1. If it's less than .5, it's given as 0.  This sounds arbitrary. In real-world applications, is it common to adjust the decision boundary, or disregard the boundary and list only the probabilities?    Scenario 1 Adjusting the decision boundary: In the logit function, when x is -.3, y is .4256. Because y is less than .5, the predicted value is 0. If the lump in my patient's breast has a 42.56% probability of being malignant, I don't want that rounded down to 0%.  I would adjust the decision boundary from .5 to maybe .01. 1% or less probability is the threshold where I'd tell my patient their lump is nothing to worry about. Scenario 2 Removing the decision boundary: My team of social workers helps teens in my city. My classification parameters predict that 15% of the teen population is at high risk of committing a crime. That is, it predicts a positive result for 15% of P. My team is small, however, and can only reach 3% of the teen population.   Knowing that the 15% prediction includes teens at 51% probability along with teens at 99% probability, I disregard the binary predictions entirely and order teens based on their probability, thus reaching the most at-risk teens first.   Are these scenarios—where you adjust decision boundaries and/or list probabilities alone—common in real-world usage?


Changes in System when multiple DEs are installed

I have installed UBUNTU 16.04 LTS. Now I want to install multiple DEs (i.e. GNOME3 and KDE in addition to UNITY already installed) on my system. My questions are the following:   Is it a good idea? or should I use a distro that uses GNOME or KDE? What problems should I expect as an average user? I have not explored UNITY in depth (i dont know its full capabilities) however I like the feel of GNOME and KDE better. Should I switch or stay with UNITY?   Thanks in Advance.


While studying , I found a question with the following (strange) statement:  std::cout << (1 + 3)[a] - a[0] + (a + 1)[2];   The answer then explained, (1+3)[a] is the same as a[1+3], which is still strange for me.  May I ask for the history of this? Why it's so and how it helps to allow this?


Thawing meat: Do the bacteria that make meat bad need temperature or thermal energy to thrive?

Real world example: when I thaw frozen meat in 5L of warm water vs 20L of cold water, it thaws roughly in the same time for me (note, the warm water is not kept warm) - Which I guess means that the same amount of thermal energy is transferred to the meat over an equal time period. Does it make a difference for the freshness of the meat if I thaw it in warm water vs cold water, if it takes in the same thermal energy over the same time period? And do the bacteria that make it go bad care more about absolute temperature, or thermal energy?


Does composing multiple substitution ciphers improve security?

Will using two substitution ciphers one after the another be more secure than using single substitution cipher?


Standard location for holding software source files

Is there a standard location in Linux for holding source files for example OpenSSL. I am building Nginx from source with non default version of OpenSSL. I need to download and untar OpenSSL and I did it in home directory. Now, I wonder is there a standard location in Linux maybe /opt ?


Show that $\phi :G\to{\rm Sym}(X)$ is a homomorphism.

Let $\cdot$ be an action of a group $G$ on a set $X$. For $g\in G$, define the map $\phi(g):X\to X$ by $\phi(g)(x)=g\cdot x$. I'm asked to show that $\phi(g)\in {\rm Sym}(X)$ and that $\phi :G\to{\rm Sym}(X)$ is a homomorphism.   I've shown that $\phi(g)\in{\rm Sym}(X)$, but I don't understand how to show $\phi$ is a homomorphism? I know it follows from the definition of an action, but what even is the function $\phi: G\to Sym(X)$ explicity?  The solution says that $\phi$ being a homomorphism follows immediately from the fact that $\phi (gh)(x)=g\cdot (h\cdot x)$, but aren't $\phi$ and $\phi (g)$ different functions?


Stack Overflow didn't register my visit on Saturday

I want to ask, why didn't Stack Overflow register my visit on Saturday? I'm 100% certain I was logged in on that day. I'm asking because it broke my consecutive days logins.


Avoid NullPointerException in DAO or Service

I'm trying to avoid the NullPointerException when my function from DAO is not getting an item from the database table, but for now, it's not with success. I let my DAO, Service, and call function below. Please give me some suggestions. Thank you! DAOImpl @Component(value = "arbRedirectHttpTypeDao") public class ArbRedirectHttpTypeDaoImpl implements ArbRedirectHttpTypeDao {  private static final org.apache.log4j.Logger LOG = Logger.getLogger(ArbRedirectHttpTypeDaoImpl.class);  @Autowired private FlexibleSearchService flexibleSearchService;  @Override public ArbRedirectHttpTypeModel findNewUrlByOldUrl(String oldUrl) {      final String query = "SELECT {pk} FROM {"+ ArbRedirectHttpTypeModel._TYPECODE +"} WHERE {"             + ArbRedirectHttpTypeModel.OLDURL +"}=?oldUrl";      final FlexibleSearchQuery searchQuery = new FlexibleSearchQuery(query);      searchQuery.setResultClassList(Collections.singletonList(ArbRedirectHttpTypeModel.class));     searchQuery.addQueryParameter("oldUrl", oldUrl);      ArbRedirectHttpTypeModel arbRedirectHttpTypeModel = null;      try{                  arbRedirectHttpTypeModel = flexibleSearchService.searchUnique(searchQuery);              }catch (final ModelNotFoundException e){                  LOG.error("No item found",e);              }      return arbRedirectHttpTypeModel;  }  SERVICEImpl @Component(value = "arbRedirectHttpTypeService") public class ArbRedirectHttpTypeServiceImpl implements ArbRedirectHttpTypeService {  @Resource private ArbRedirectHttpTypeDao arbRedirectHttpTypeDao;  @Override public ArbRedirectHttpTypeModel findNewUrlByOldUrl(String oldUrl) {         return arbRedirectHttpTypeDao.findNewUrlByOldUrl(oldUrl);  }  Call methods  String newUrl = null;     String responseType = null;      try {         ArbRedirectHttpTypeModel arbRedirectHttpTypeModel = arbRedirectHttpTypeService.findNewUrlByOldUrl(context);          newUrl = arbRedirectHttpTypeModel.getNewUrl();         responseType = arbRedirectHttpTypeModel.getResponseType().toString();


Is there any way to recover the messages that I accidentally deleted on my cellphone. I am not using Google backup or any other backup service and have never synced with any other device.


Is 2h 45m enough for a layover in Newark Liberty International transferring from an international to a domestic flight (Terminal B → Terminal C)?

I am arriving from Frankfurt(FRA) to Newark(EWR) and I must pass the Customs and Border Control before catching the next flight to Baltimore (BWI). Both flight are on the same ticket by United Airlines (UA51 and UA4775)   Is 2 hours and 45 minutes enough time to catch the next plane, or do I have to expect longer waiting times and should go for a different route? I'll be traveling before the AirTrain starts operating. What is the best way to get from Terminal B to C?  I have heard that there is a transfer shuttle bus that connects the terminals such that you don't need to leave security area. What is the schedule for this bus? I'm not sure about the procedure for arriving from abroad. As far as I understood, I'll need to:  Collect my check-in luggage  Pass border control and customs (Immigration) Transfer from Terminal B to C Check my luggage into Domestic Flight Go through Security Check    Is there a way to optimize this procedure to save time? Can I re-check my luggage in terminal B?  What are my options if I miss the connection? Just go to the UA counter and ask to reserve the next possible flight?


Calling an Apex action inside a HTML in Visualforce page

I need to call an apex action inside HTML. I had completed my UI design in Visualforce page with the help of HTML, now i need to call my action from controller (Custom).  I am not sure how to insert the apex action inside HTML. I couldn't find any blog or solution for the same.  Please find the sample code below, I need to achieve the same.

         	         Search Offer	     <apex:actionSupport event="onclick" action="{!searchList}" rerender="formId">     <apex:param name="objType" assignTo="{!strObjectType}" value="Case"/>     </apex:actionsupport>

     But the code is not working.  Please let me know if anyone else have achieved the same.


"10 lines LESS than the screen height" or "10 lines FEWER than the screen height"

When we measure the screen height by number of lines, should we say     10 lines less than the screen height   or     10 lines fewer than the screen height   ?  The second sentence seems correct for me, but the first reads better.  I'm  specially ask about the usage of "less" and "fewer" in this context, not in a general context.


Why does a new drop rises when a one falls?

When a drop falls into a tub of water, we see a small drop of water rising above the surface of water. This situation does not conserve energy (because initial drop has more kinetic energy and surface energy with  respect to the second raised drop). As there is no net force there, but it does not conserve momentum (because initial momentum is downward with greater magnitude but final momentum is upward with lesser magnitude).   Where is the fault in my assumption in the above situation? How does this happen failing these fundamental laws!!!  This happens not only with water drop, but anything other than gases.


When the external resistor increases in temperature, why is the calculated value for internal resistance higher?

Say we had a circuit with a cell (with internal resistance)and an external resistor of $10 \Omega$ as shown:  The $10\Omega$ resistor then increases in temperature, leading to an increase in resistance in this resistor. My thinking was that since $10 \Omega$ resistor now has a value higher than $10\Omega$, more voltage drops across this resistor. Since your emf is constant, less voltage must drop across the internal resistor. Less voltage drop means less resistance. Where is the flaw in my logic?


How do I check what is spiking the CPU while the computer is idle

My Windows 10 laptop with an i7 and 16 GB of RAM often gets the fans going full speed when I am not using it. It is a bit slow to respond sometimes when I try to wake it up to check what is going on. Every time I try to open the Task Manager to check out the Details tab and see what is using the CPU, nothing shows up. I'm running as admin, and all tasks are showing. I am guessing the system is hiding what it is working on because it is seen as a "system" task.  What is a good tool to use that will monitor and report what is utilizing CPU? I've used ProcMon before, but I didn't find the output particularly accurate or helpful.  More importantly, how can I stop this from happening? I am quite annoyed that so much software feels the need to do things when my computer is idle. Is there something like ZoneAlarm, but for CPU?


Which programming languages can I use with Unity?

I am fairly familiar with Unity and I know how to work most of the features within it. But I don't know what programing languages to use for my Unity game. I have heard that it might be C#, but I am unfamiliar with C-sharp so I was wondering if Unity can use any other languages. I would not like opinions on which one to use, I just want to know what Unity supports.