If-else irritating?
How do I compare strings in Java?
Notify more frequently than once a day? Is there a way to subscribe to a question and be notified more frequently than once a day?  I'd like to be notified immediately on any posts to a question. $$T(n) = \sqrt{n} T \left(\sqrt n \right) + n$$  Master method does not apply here. Recursion tree goes a long way. Iteration method would be preferable.  The answer is $Θ (n \log \log n)$.  Can anyone arrive at the solution. How to tell the difference between linear and non-linear regression models? I was reading the following link on non linear regression . My understanding from reading the first section "Nonlinear Regression vs. Linear Regression" was that the equation below is actually a linear regression, is that correct? If so why?  $$y = b_1x^3 + b_2x^2 + b_3x + c$$  Am I also to understand that in non linear regression multicollinearity isn't an issue? I know that multicollinearity can be an issue in linear regression so surely if the model above is in fact a linear regression there would be multicollinearity? In Google Sheets how do I duplicate a sheet along with its permission In a Google Spreadsheet called Attendance there is a sheet called Template. The user duplicates this sheet, renames the sheet with current date and uses this sheet to mark attendance for students. The Template sheet contains protected cells and the attendance is marked by entering Student's ID number in the space given (unprotected cells). I use the following script to duplicate multiple sheets and rename them everyday:  function createDailyAttendance() {   var ss = SpreadsheetApp.getActiveSpreadsheet();   var refss = ss.getSheetByName("DataPointers");      // Get the range Row and Column information.   var dataRangeRow = refss.getRange("K2").getValue();   //var dataRangeCol = ss.getRangeByName(ColName).getValue();      // Get the range of cells that store Duplicate sheet name.   var AttendanceDataRange = refss.getRange(dataRangeRow);    var AttendanceObjects = AttendanceDataRange.getValues();    var template = ss.getSheetByName('Template');    for (var i=0; i &lt; AttendanceObjects.length; i++) {       // Put the sheet you want to create in a variable      var sheet = ss.getSheetByName(AttendanceObjects[i]);        // Check if the sheet you want to create already exists. If so,       // log this and loop back. If not, create the new sheet.         if (sheet) {            Logger.log("Sheet " + AttendanceObjects[i] + "already exists");         } else {            template.copyTo(ss).setName(AttendanceObjects[i]);            }         }   return; }   This script helps me create multiple copies of sheets from Template but the duplicate copies do not retain the Cell/Range permissions. Is there a way to add a loop function which extracts permission from Template and applies it every time the loop template.copyTo creates a sheet? How to find effects of magical items? Similar to this , but specific to D&amp;D 5e, how are players meant to find out the effects of items/potions/scrolls/weapons/armor?  Say, they find a potion in some chemist's chest. It is red and smells nice. Should they perform an investigation/perception check? Or an arcana/nature check? If I tell the players specifically to do an Arcana check, then I am already hinting at the fact that this potion will have some magical effect. It could just be a natural elixir concocted by Druids to help your health regen.  Same goes for weapons. They find the legendary bow of X, which has a +3 to hit and a 10% chance of striking other enemies near the target. I describe the bow as unique, glowing, made from dragon scales and hovering on air. Would they investigate their properties? Or just I just let them fire at a wall until something happens?   Our playstyle so far has been to use active checks for a quick understanding of the item (drink a little bit of Potion as an Investigation check to find whether it heals or not, sensing magical properties of the bow with Arcana checks). When time is available, and experimentation is necessary, allow the PCs to do some creative testing and, based on their ideas, "After Y time, you realize that the bow sometimes hits several points of the wall instead of just your target".  According to the RAW, is there a specific way of checking the stats/effects of such items? After booting I ran systemd-analyze blame and here are the results:       21.596s systemd-journal-flush.service      18.658s dev-sda8.device      15.099s dev-loop33.device      15.034s dev-loop19.device      15.012s dev-loop34.device      14.989s dev-loop21.device      14.877s dev-loop15.device      14.866s dev-loop26.device      14.773s dev-loop27.device      14.684s dev-loop30.device      14.677s dev-loop32.device      14.649s dev-loop35.device      14.590s dev-loop25.device      14.267s dev-loop23.device      14.192s dev-loop24.device      14.156s dev-loop29.device      14.133s dev-loop16.device      14.065s dev-loop31.device      14.059s dev-loop28.device      13.821s dev-loop20.device      13.531s dev-loop22.device      13.495s dev-loop14.device      13.364s dev-loop18.device   What are these dev-loopxx.device (xx denotes numbers) services and why are they taking so much time? Are they related to the mounting of snaps? Can I reduce the boot time by disabling them? I'm running Ubuntu 18.04 alongside Windows 10. Can Raise Dead revive a character with zero maximum Hit Points? So, a character died from Draining Kiss of a succubus and his Max HP is 0. Can he be restored by Raise Dead, or does he need a higher level spell? Or a Greater Restoration cast on his lifeless body before Raise dead? I'm probably interested in RAW interpretation, since the character is in Adventurerer's league. Imagine that a pebble is placed on a uniformly rotating, frictionless disk.  What will happen to this pebble? Will the disk slide under it and the pebble stay as is? Or will there be a centrifugal force on the pebble and it'll be thrown off the disk? iCloud Drive is stuck uploading items and no longer syncs I got the macOS Sierra update when it went into public beta, and I've been trying to use the automatic .  I've enabled the feature, however since September 7 no files have been uploaded. By this point, the bottom of my Finder windows say:     15.78 GB available on iCloud, uploading 156,106 items (543.2 MB of 543.2 MB)   However the files are never actually uploaded. I keep my screenshots folder on my desktop and I take a lot of screenshots, so I can see that September 7 was the last date any file was actually uploaded.  What should I do? Is there a way I can disable and re-enable the feature without risking loss of data? Are there any solutions to this problem? What should I try? So far I've tried rebooting, and tried software update to macOS 10.12.2 public beta. All I want to do is to check whether an element exists in the vector or not, so I can deal with each case.  if ( item_present )    do_this(); else    do_that(); Texmaker GUI is messy with high resolution screen What does 'Ign' , `Get` or 'Hit' mean when running an apt-get update? How do I prove this using question using Cauchy-Schwarz inequality? Recurrence relation for the integral, $ I_n=\int\frac{dx}{(1+x^2)^n} $ Express recurrence relation  of the integral  $$ I_n=\int\frac{dx}{(1+x^2)^n} $$  [My Answer]  $$ I_n = \int\frac{1+x^2}{(1+x^2)^n}dx-\int\frac{x^2}{(1+x^2)^n}dx $$  $$ I_n=I_{n-1}-\int x\cdot\frac{x}{(1+x^2)^n}dx $$  $$ I_n=I_{n-1}-\frac{x}{2(1-n)(x^2+1)^{n-1}}+\frac{1}{2(1-n)}I_{n-1} $$  $$ I_n=\frac{2n-3}{2(n-1)}I_{n-1}+\frac{x}{2(n-1)(x^2+1)^{n-1}} \ \ \ \ (n&gt;1) $$  $$ I_1=\arctan(x) $$  Is my answer correct? I know this may be a tough or confusing question, but I have numerous existing materials I created and reuse for a project, which were all prepared for Blender Internal.  Now, I want to start the transition to Cycles, but I've hit a roadblock. How can I transition my materials without completely starting over? Or should I just forget it and start with fresh materials? When a star becomes a black hole, does its gravitational field become stronger? Since the Earth has a magnetic field, can it, in theory, be run through a conductive metal coil to create electricity? Does installing and using Wine open up your Linux platform to Windows viruses? Does umount calls sync to complete any pending writes We have BBB based custom board with kernel 3.12 running on it.  I have doubt regarding umount and &amp; sync.  Lets say a script is umounting a partition, Does it require to run sync command before umount to complete pending writes. ? Find path of standard executable for a given file type in Windows Suppose I am running cmd and I open an application by typing for example start document.pdf  I want to get the exact path of the executable that opens .pdf files  Of course I could search the entire system for the executable but I suppose it would be faster this way because the path is already stored somewhere  I don't know if it makes a difference but I am using Windows 7