Penalty notice for speed limit violation in Australia while I am an Indian citizen

We hired rented cars in Australia during our visit as tourists there. After 3 months of coming back we received a penalty reminder notices of same day, same highway for exceeding the speeding limit. My speed was 66Km ( while limit was 60kmph). Two notices are within a duration of 1 hour. The total amount is 226 AuD each. I am in India now & as such don't have any plans to visit Australia in near future, but I do visit other countries.  I need to know how it will impact me if I don't pay the fine and is there a possibility to get a waiver of this fine?


I don't want to mingle in any backstory, but all that needs to be known is that I have a computer with Ubuntu on it and I am trying to install Windows 8 from an ISO.  I am using the guide that can be found  which is a little more than four years old. Now, I've been able to accomplish everything up to Step 2, at which point I am stuck. I have downloaded the file found on that page, which can be found , and have attempted to use it, as directed, quote;     "right click the downloaded Unetbootin file, select Properties and on the "Permissions" tab, check the "Allow executing file as program" box. Then simply double click it and it should open."   But, after having set checked the specified box and double clicking the file, nothing happens. Nothing is launched and nothing changes. I've been stuck here for several hours now, having failed to find a solution via Google.


Strange error defining a macro with arguments for math mode

When I delete the second \item, it compiles fine. However, with the second \item, I get ERROR: Missing $ inserted and the math renders incorrectly:  \documentclass[12pt]{article}  \newcommand \frob[2] {\langle #1,#2 \rangle_F}  \begin{document} \begin{itemize}  \item What I want: $  \langle A,B \rangle_F  \geq  \langle C,D \rangle_F $.   \item What I get: $  \frob{A,B}  \geq  \frob{A,B}  $.  \end{itemize} \end{document}     Would appreciate any help with this issue!


Thanks for your help! The plugin finally works. Indeed, p was null, so I changed that and it worked


Every time I try to edit a file in /etc I get "access denied".  I tried using different text editors and nautilus and I couldn't save or change any files there.  I don't understand. Am I not supposed to have this access?  What do I do now?


Is there a show only favorite feature? If not, why not?

Is there a way to show only questions with tags that I have selected as favorite?  Since this feature obviously doesn't exist, why isn't it implemented?


NullPointerException in Java with Selenium

Please find below code. I am facing the problem at Line: dataTransformationsPanel.applyModelListFirstElement();  but it works fine if I do it in public static void main(String args[]) method itself. Please suggest me.  package test.dataPage;  import helper.DataTransformationsPanel; import helper.Driver; import helper.First;  import java.util.concurrent.TimeUnit;  import org.junit.Test; import org.testng.Assert;  import pageObjects.DataPage;  public class ApplyModel extends Driver {      First first;     DataTransformationsPanel dataTransformationsPanel;     DataPage dataPage;      String columnNameExpected;      public ApplyModel() {         super();         columnNameExpected = "New Predicted Column";         first = new First();         dataTransformationsPanel = new DataTransformationsPanel();         dataPage = new DataPage();     }      @Test     public void applyModel() {         first.login();         first.openDataPage();         dataTransformationsPanel.applyModelListFirstElement();         dataTransformationsPanel.applyModelNewColumnName(columnNameExpected);         dataTransformationsPanel.applyModelOkButton();          /*          * try { Thread.sleep(5000); }          *           * catch (InterruptedException e) { e.printStackTrace(); }          */         webDriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);          String columnNameActual = dataPage.lastColumnInTable();         Assert.assertEquals(columnNameActual, columnNameExpected);          first.removeDataSet();         first.logOut();     } }   Thanks in advance!


Should I re-ask an old question if the answer(s) aren't acceptable?

Possible Duplicates:      I have a question I'd like to ask, but an exact duplicate exists. It was asked by another user and has an accepted answer (unsatisfactory for me) more than a year ago. Is it acceptable to re-ask the question in hopes that a year has brought some additional insight or suggestions? Should I just bump the original question as ? See also:


I have 7 Npcs on terraria they all arrived fine. I want more to spawn I built a house the exact same as all the others. I waited until morning but no more spawned. Why is this happening!!


I am looking for shapefiles with ward boundaries for the following Indian cities: Mumbai (electoral wards), Hyderabad, Ahmedabad, Surat and Kolkata.  Does anyone has them or know where I can get them from?


I have a macbook (2.26 GHz Intel Core 2 Duo upgraded to 8GB 1067 MHz DDR3 RAM) running OS X version 10.6.8. I do a lot of prototyping for high performance computing on this macbook (running c++, fortran, mathematica, matlab, etc) and often work in parallel.  I have noticed that my computer gets hot so I have installed 'Temperature Monitor' and find that, when running difficult jobs, it can break into the 90 degree (C) range. I know this is not good, but is this incredibly dangerous? after seeing what values should i begin to get worried?  Secondly, I would like to clean (and maybe even replace?) the fan to make sure I am getting the best ventilation possible. Will a can of compressed air do the trick? how expensive/worthwhile would it be to open up the case and replace the fan?  Any help would be great - thanks!


Are all complex analytic functions holomorphic?

So we learnt that in $\mathbb{C}$, all holomorphic functions are analytic, and hence infinitely differentiable. (This wasn't proved yet.) It was also stated that in $\mathbb{R}$, the infinite differentiability doesn't imply that the function is analytic. This function was given as an example:  My doubts is if a function is analytic in $\mathbb{C}$, is it also holomorphic in $\mathbb{C}$? If not, is there an example for the same?


I'm a devoted Ubuntu user and I haven't bought a smartphone yet. Its merely because I dont like either of Android or Microsoft OS on phones. I'm waiting for the launch of Ubuntu-powered phones & tablets in India. Have these been launched in other countries ? If yes, then please provide the details of them as I'm curious to know.  I use a Nokia Asha 501 phone and will be using it until a better phone than the so-called "smartphones" would be released and would lke Ubuntu to be the fiirst one to make a debut after that.  Thank you.


Completely clear all output from a Terminal window

I would like to clear all output from a Terminal window (including all historical output) to get it back to a clean state as if you had just opened a new Terminal window, or a new Terminal tab.  I can use the clear command to clear just the current screenful, but then you can still scroll up to see all the historical output. I'm using the Terminal to trace program output and at the end I would just like to do ⌘ + A to select all the text so I can grab the output from the just last run, without having to scroll up and see where it started. I could also just open a new tab, I was just wondering if this can be done in the same window?


I want to set a custom cursor within my WPF application. Originally I had a .png file, which i converted to .ico, but since I didn't find any way to set an .ico file as a cursor in WPF, I tried to do this with a proper .cur file.  I have created such an .cur file using Visual Studio 2013 (New Item -> Cursor File). The cursor is a coloured 24-bit image and its build-type is "Resource".  I accquire the resource stream with this:  var myCur = Application.GetResourceStream(new Uri("pack://application:,,,/mycur.cur")).Stream;   This code is able to retrieve the stream, so myCur is NOT  null aferwards.  When trying to create the cursor with  var cursor = new System.Windows.Input.Cursor(myCur);   the default cursor Cursors.None is returned and not my custom cursor. So there seems to be a problem with that.  Can anybody tell me why the .ctor has problems with my cursor stream? The file was created using VS2013 itself, so I'd assume that the .cur file is correctly formatted. Alternatively: If someone knows how to load a .ico file as a cursor in WPF, I'd be very happy and very grateful.  EDIT: Just tried the same with a fresh new .cur file from VS2013 (8bpp) in case adding a new palette has screwed the image format. Same result. The .ctor of System.Windows.Input.Cursor can't even create a proper cursor from the 'fresh' cursor file.


Does selecting "Remove Windows" option during install remove all my Windows partitions?

I had Windows 7 installed on my laptop, I installed Ubuntu and chosen the option to delete everything. But when I clicked that, it deleted my windows 7 partitions.  C: Windows  E: Documents F: Important Files   When doing a full wipe with Windows 7 it does not touch any other partitions just the C: drive. Now I have all the partitions merged together and I have lost my files. I have some really important files in the partitions that was deleted E:, F: is there anyway I could get them back.  I am new to Ubuntu and now I am stuck on it till I try and find my files back and change my partition to NTFS so windows can install.


Can I also move or copy directory hierarchy of a file when I mv or cp the file?  For example, if I mv or cp dir1/dir2/file elsewhere, it will only mv or cp file. What if I want to also mv or cp dir1/dir2? Rather than mkdir -p dir1/dir2, can it be done with one command?


How to find the limit of series? (What should I know?)

There is a couple of limits that I failed to find:  $$\lim_{n\to\infty}\frac 1 2 + \frac 1 4 + \frac 1 {8} + \cdots + \frac {1}{2^{n}}$$  and  $$\lim_{n\to\infty}1 - \frac 1 3 + \frac 1 9 - \frac 1 {27} + \cdots + \frac {(-1)^{n-1}}{3^{n-1}}$$  There is no problem to calculate a limit using Wolfram Alfa or something like that. But what I am interested in is the method, not just a concrete result.  So my questions are:   What should I do when I need a limit of infinite sum? (are there any rules of thumb?) What theorems or topics from calculus should I know to solve these problems better?   I am new to math and will appreciate any help. Thank you!


What is the difference between ref and out?

while am trying with ref keyword by replacing out key word there is no error in the below code.while am trying to use out instead of ref there occur an error like"Unassigned OUT Parameter"  What does this error mean ?     static void Main()     {         string test = "34";         addOneToRefParam(out test);         Console.WriteLine("test is : " + test);     }      public static void addOneToRefParam(out string i)     {         int  k =Convert.ToInt32(i) + 1;         i = Convert.ToString(k);         Console.WriteLine("i is : " + i);     }


C++ casting float changes number wrongly

I have got this calculation in my c++ code r=(float)736778906400/100 now obviously the answer should be 7367789064,but compiler returns 7367789056 what is the problem


How do I use 'chmod' on an NTFS (or FAT32) partition?

I have a script that I need to execute on an NTFS partition. The script's permission is set to 600.  I attempted to modify the permissions by running chmod 755 script.sh, which doesn't report a failure or anything - but it also doesn't change the permissions on the file:  $ stat script.sh    File: `script.sh'   Size: 297070      Blocks: 584        IO Block: 4096   regular file Device: 811h/2065d  Inode: 35515       Links: 1 Access: (0600/-rw-------)  Uid: ( 1000/  xxxxxx)   Gid: ( 1000/  xxxxxx) Access: 2010-09-30 14:05:16.041621000 -0700 Modify: 2010-09-30 14:05:05.070157000 -0700 Change: 2010-09-30 14:05:05.070475000 -0700  $ chmod 755 script.sh $ stat script.sh    File: `script.sh'   Size: 297070      Blocks: 584        IO Block: 4096   regular file Device: 811h/2065d  Inode: 35515       Links: 1 Access: (0600/-rw-------)  Uid: ( 1000/  xxxxxx)   Gid: ( 1000/  xxxxxx) Access: 2010-09-30 14:05:16.041621000 -0700 Modify: 2010-09-30 14:05:05.070157000 -0700 Change: 2010-09-30 14:05:05.070475000 -0700   As you can see, it remains unchanged.


Approximating the locations of the extrema of the sinc function

The  gives an approximation for the (positive $x$) locations of the extrema of the sinc function as  $x_n \simeq (n + \frac{1}{2})\pi - \frac{1}{(n + \frac{1}{2})\pi}$  but provides no reference or proof.  How would I go about deriving such an approximation?


Getting hidden characters after extracting

I'm trying to extract value after Colon in a string  which will be integer value later to compare, but I see $ and \r after extracting, so I'm not able to compare integers  Ex:  count=$(echo "Bengaluru:10" | awk -F":" '{print $2}')   Result will be 10 only, but actually it's having additional hidden characters like $'10\r'  So I'm not able to compare this value with some other integer.  Please help me, how can i remove those values $ and \r


I am currently developing a game in unity and I want to add some sort of saving system that saves the following:  Locked / unlocked level. The amount of money the player has. Items / perks that the player has.  As you can see, the data I want to save is global, and has nothing to do with any specific scene. How would you reccomend save this kind of data? I have heard about the EasySave asset but I don't know if it is the right choice: it is pretty expensive and I belive that there has to be some easier, cheaper (even free) way to save the data. I'll appreciate any answer or consideration.


How did Hawkeye qualify to receive this item?

In , in order to obtain the Soul Stone, Thanos has to sacrifice someone he loves. To thwart Thanos, Gamora tries to stab herself, but he turns the knife into bubbles.  Thanos stops Gamora from committing suicide so he can kill her himself, by throwing her off the cliff.   It seems like, for the sacrifice to count, you have to actually kill a person you love. It's not enough to just lose someone through suicide.  However, in  Natasha sacrifices her own life, with Clint actually trying to save her. So even though Clint loses a loved one, it wasn't he who made the sacrifice. Nonetheless he wakes up with the Soul Stone in his hand (and he can hold it without getting killed).  My Question(s):  - Why did Clint receive the Soul Stone, even though he didn't sacrifice a loved one?- Is it actually necessary to kill a loved one, or is it enough to just lose one?


What is the difference between converges in probability and distribution

What is the difference between the statements:  converges in probability  and  converges in distribution  I am looking for a more intuitive explanation and simple formulas rather than abstract mathematical definitions. (I have no knowledge of measure theory or other abstract mathematical concepts).  I didn't find my answer in this topic:


Loop is not changing directories , but I can print out the directory - why is that happening

for root, dirs, files in os.walk(rawsource):     print("root is {}".format(root))     try:         os.system("cd {}".format(root))         print("root in the try: was {}".format(root))         print("pwd is {}".format(os.system("pwd")))  I am not sure why: os.system("cd {}".format(root)) is failing. Meaning, it doesnt appear to properly be changing directory cd to the value of root, but instead appears to be staying at /Users/user/Project But, print("root in the try: was {}".format(root)) is properly outputting the proper directory within the loop. This is the output: pwd is 0 root is /Users/user/Project/src/main/gateway root in the try: was /Users/user/Project/src/main/gateway /Users/user/Project  Why might this be happening?


Why should moderators' Q&As show a diamond?

Why should moderators' user cards show a diamond (♦) when they post a question or answer or comment?  I don't mean "why do they" -- the answer to which is, "because they're moderators" -- but why should they, i.e. why is that a good thing, and isn't it a bad thing i.e. a source of confusion and noise?  Aren't moderators simply like other users, not especially authoritative about the suject matter?  Instead why isn't the ("official") diamond shown:   Always-but-only on Meta (not on the main site) Never in Qs and As on the main site Only sometimes i.e. optionally in comments on the main site, i.e. when posting an official comment in their capacity as moderator, rather than e.g. posting a comment about content as any other user might?     Disclosure: I am a site moderator of a small site.


Can we have arrow key navigation in site stack exchange dropdown?

A common practice in "search bar with filtering result" is usage of   ▲    ▼   arrows keys.  Can we have this feature in More Stack Exchange Communities in Stack Exchange dropdown in top bar?    picked those arrows keys from


unable to use the superclass object in 2nd Test Class but can use it in the 1st Test Class

I have  superclass named BaseTest with code   public class BaseTest {     public AndroidDriver<AndroidElement> driver;     DesiredCapabilities cap;     @BeforeTest     @Parameters("device")     public void SetUpForDriver(String device) throws MalformedURLException{         if(device.equalsIgnoreCase("emulator")){             cap = new DesiredCapabilities();             cap.setCapability(MobileCapabilityType.PLATFORM_NAME, "Android");             cap.setCapability(MobileCapabilityType.PLATFORM_VERSION, "7.1.1");             cap.setCapability(MobileCapabilityType.DEVICE_NAME, "SlingEmulator");             //cap.setCapability(MobileCapabilityType.APP, fs.getAbsolutePath());             cap.setCapability("appPackage", "com.edmobilelabs.sling.dev");             //cap.setCapability(MobileCapabilityType.APP_ACTIVITY, "com.edmobilelabs.sling.ui.ScrSplash");             cap.setCapability("appActivity", "com.edmobilelabs.sling.ui.ScrSplash");             driver = new AndroidDriver<AndroidElement>(new URL("http://127.0.0.1:4723/wd/hub"), cap);      }         else{             cap = new DesiredCapabilities();             cap.setCapability(MobileCapabilityType.PLATFORM_NAME, "Android");             cap.setCapability(MobileCapabilityType.PLATFORM_VERSION, "6.0");             cap.setCapability(MobileCapabilityType.DEVICE_NAME, "28A4AA040IG4012");             cap.setCapability("appPackage", "com.edmobilelabs.sling.dev");             cap.setCapability("appActivity", "com.edmobilelabs.sling.ui.ScrSplash");             driver = new AndroidDriver<AndroidElement>(new URL("http://127.0.0.1:4723/wd/hub"), cap);         }     } }   My Ist Test class which I am able to execute successfully   public class LogInPageTest extends BaseTest {     LogInPage log;      @Test(priority=1)     public void navigateToLoginPageTest() throws MalformedURLException{         log = new LogInPage(driver);         boolean isTestCaseVerified = log.navigateToLoginPage();         Assert.assertTrue(isTestCaseVerified,"Test Case is Passed");     } }   My 2nd Test class In which I want to use driver object   public class HomePageTest extends BaseTest{      @Test(priority=2)     public void firstChatWithBots(){         driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);         driver.findElement(By.xpath("//android.widget.Button[@text='How Sling Works']")).click();     } }   I have two Test classes  My test class where I perform the login operation passed successfully but in my 2nd Test Class not able to use my driver object  Can somebody what is going on with my code


I need to stream a file from Salesforce in our webapplication. To make sure the file is properly opened, I have to set Content-Type header.  How to retrieve the Content-Type (MIME) of a file?  I expect values like: image/png, application/pdf, text/html etc.  How to get these values? I am using the Java and a SOAP client to retrieve the data.


Is "A list which its items are..." wrong?

I'm writing a piece of documentation for a program, I want to specify the return value of a function. For sake of simplicity, I've assumed here that the function always returns a list with two items inside (i.e. [1, 2]). For the "Return" part of the documentation, I need a sentence which indicates that   The return type is "list" Items of the list are 1 and 2   What I wrote was     Return: A list which its items are 1 and 2   But one of my colleagues believes that     Return: A list the items of which are 1 and 2   is a better representation.  I want to know that:   Is the first sentence wrong? Is the second form preferred?


I heard that is possible to get 1 point in an NCAA football game. Can someone explain how that is possible? I believe it is called the "One Point Safety".


How to setup media-server on ubuntu watch movies on mobile in local network and from internet?

I want to setup a media-server to store movies and videos in Ubuntu and play and watch them on a mobile device or a tablet. What i have to do to make that happen ?


I know that the sum of power of $2$ is $2^{n+1}-1$, and I know the mathematical induction proof. But does anyone know how $2^{n+1}-1$ comes up in the first place.  For example, sum of n numbers is $\frac{n(n+1)}{2}$. The idea is that we replicate the set and put it in a rectangle, hence we can do the trick. What is the logic behind the sum of power of $2$ formula?


Mathematical Induction Proof: $\sum_{i=1}^n$ $(i \times i!) = (n+1)! - 1$

I am to use mathematical induction to prove:  $\sum_{i=1}^n$ $(i \times i!) = (n+1)! - 1$  my base case is n = 1  $RHS: (1 \times1!) = 1$  $LHS: (1+1)! - 1 = 1$  If I am not mistaken the next step is to assume n=k so  $=(k+1)! -1$  then I need to show k+1  $((k+1)+1)-1$  or $(k+2)!-1$  now I'm a bit confused on where to go from here. I THINK my next step is:  $(k+1)!-1 + (k+1  \times  k+1!)$  Is this the correct next step? if it is how do I algebraically show that it is equal to $(k+2)!-1$  Any help is appreciated guys! Thanks!


What are the technical obstacles that doesn't allow OSX to be installed in a PC?

Before starting: lets forget about the EULA and any other legal regulation. I'm not interested in those. Also, since this is a grey line about what I'm going to ask, Ask Different may not be the place to ask:     Installing or using Apple operating systems on non-Apple hardware (and most other explicitly unlicensed use of product)   Continue reading.    Everyone knows that until some years prior OSX (or Mac OS) only could be run in PowerPC CPU's, but that changed when Apple adopted Intel CPU's opening the possibilities of installing OSX in PC's (again lets forget about legalese I'm going for factual and technical references) that users started experimenting until it's is possible. So, anyone knows why is the reason that OSX wouldn't work in normal folks PC? Some piece of hardware that is made custom tailored for OSX that only Mac's has? Or is just Apple folks making users life difficult at technical level?  The question is a mere curiosity of mine, inspired in an very debated answer of mine about installing Mac OS X in a Dell PC.  TL;DR: How they make it so difficult?  References (can be used in answers ;) ):


I am a beginner and I was solving this longest palindrome substring problem. I get output null but am unable to understand why. Here is the code. I am not looking for alternative answers but searching for errors in my code as I am learning.     class Solution {     public int pal(String a)     {         int n=a.length();         String b=" ";         for(int i=n-1;i>=0;i--)         {             b=b+a.charAt(i);         }         if(b==a)             return 1;         else             return 0;     }          public String longestPalindrome(String s)     {         int i=0;         int count=0;         String[] arr=new String[1];         int l=s.length();         while(i<l)         {             for(int j=i;j<l;j++)             {                 if(pal(s.substring(i,j+1))==1)                 {                     if(s.substring(i,j+1).length()>count)                     {                         count=s.substring(i,j+1).length();                         arr[0]=s.substring(i,j+1);                         System.out.print(arr[0]);                     }                     else                         continue;                 }             }             i++;         }         System.out.print(arr[0]);         return(arr[0]);                      } }


What does -y mean in apt-get -y install command?

I always see commands like this  apt-get -y install    What is the -y tag for and what is the difference between apt-get install with and without the -y tag?


wifi networks not showing up in ubuntu 14.04 (Asus x555lb)

I have just installed ubuntu 14.04 and my wifi networks are not showing. I do not have the broadcom wifi driver in my settings and I've tried the mediatek wifi adapter, but I get "modprobe: ERROR: could not insert 'mt7630e': Required key not available" when i run the install command. Here are excerpts from when my wireless-info file  ##### rfkill ############################  0: asus-wlan: Wireless LAN     Soft blocked: no     Hard blocked: no 1: asus-bluetooth: Bluetooth     Soft blocked: no     Hard blocked: no   ##### NetworkManager.state ##############  [main] NetworkingEnabled=true WirelessEnabled=true WWANEnabled=true WimaxEnabled=true   Please help!


I'm running Arch-Linux ARM on a Raspberry Pi.  My project goal is to have a barcode scanner attached to the Pi that forwards the scanned messages to a server in a LAN.  To harden the system against power outages etc. and minimize required user interaction, I wish to set it up so that a certain user is logged in automatically at startup (done and works) and a specific program is to be run at startup (done and works but not as intended).  I've done this so far by adding  exec mono scannerSoftware.exe 127.0.0.1 1234 randomString   to /home/certainUser/.bash_profile so it gets executed only once even when I'm switching back and forth to root (in contrast to bashrc).    The particular problem I am having: When I launch the system, it works as intended (login as certainUser, starting scannerSoftware.exe); BUT if I want to switch users and hit Ctrl+C, it restarts the login process, logging certainUser in again and running the program again => back to where I came from.  My guess as to why this happens is that the sys detects "login not complete, better start it again".  I could circumvent this by spamming Ctrl+C right around the login so that I practically interrupted it. Of course, this is not good practice. Suffice it to say it is not practical at all.  My question: How can I set it up so the program gets executed AFTER login is complete so that Ctrl+C'ing out brings me to a normal bash prompt as certainUser instead of beginning the endless login-cycle?  EDIT: I'm not using any graphical interface or such, only commandline (bash on tty), because when done the system won't even have a display.


To exclude or include the intercept in GLM model

When is is appropropriate to include or exclude the intercept from a regression model? SPSS provides this option in the GLM menu.  I am assessing group difference (gender) on tasks performed (X) and income earned (Y). In this case, if no task is performed, then no income is earned.     The SPSS guidelines states :  "Include intercept in model. The intercept is usually included in the model. If you can assume that the data pass through the origin, you can exclude the intercept."  My stats knowledge is a bit rusty now but I remember my teacher saying that you should never exclude the intercept!


When trying to launch Audacity, I get the following error:  Audacity could not find a place to store temporary files. Please enter an appropriate directory in the preferences dialog.   No files or folder have been moved.   I have purged Audacity, deleted any files, etc manually and re-installed   In terminal:  pst007x@pst007x-Serval-Professional:~$ audacity   (process:16390): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::sm-connect after class was initialised  (process:16390): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised  (process:16390): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::display after class was initialised  (process:16390): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::default-icon after class was initialised  ** (Audacity:16390): WARNING **: Owner of /tmp/orbit-pst007x is not the current user  Segmentation fault pst007x@pst007x-Serval-Professional:~$    I have not changed any users or added any additional users. All privaleges, etc are default.   Ubuntu 13.10 64bit (all updates applied)  ADDITIONAL:  I can open as gksu audacity  So it looks like privileges is an issue somewhere. I have checked all privileges and all seems ok, but clearly not....  I tried changing the Directory in Preferences to a directory in my home folder:  /home/pst007x/Music/audacity_temp/  but when starting again (not in root) same error...  Any ideas what files could be lacking privileges?   After changing the Directory, when running I get this:  pst007x@pst007x-Serval-Professional:~$ audacity   (process:28364): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::sm-connect after class was initialised  (process:28364): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised  (process:28364): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::display after class was initialised  (process:28364): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::default-icon after class was initialised Segmentation fault pst007x@pst007x-Serval-Professional:~$    I checked installed files using Synaptic Package Manager, then checked permissions:  pst007x@pst007x-Serval-Professional:~$ sudo chmod -R 777 /usr [sudo] password for pst007x:  pst007x@pst007x-Serval-Professional:~$ audacity  (process:31026): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::sm-connect after class was initialised  (process:31026): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised  (process:31026): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::display after class was initialised  (process:31026): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::default-icon after class was initialised Segmentation fault pst007x@pst007x-Serval-Professional:~$    EDIT. After the above, I rebooted and was no longer able to login. So I did a fresh install. Not a bad thing since the original install on the this system was 10.10. Working ok after fresh install.  Thank you for taking the time to post answers and suggestions..


I tried installing Python 3.7 on my WSL ubuntu 20.04 but it just won't install

This is the command I used: sudo apt-get install python3.7  But I got: Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'python3.7-2to3' for regex 'python3.7' Note, selecting 'libpython3.7-stdlib' for regex 'python3.7' 0 upgraded, 0 newly installed, 0 to remove and 91 not upgraded.


Im a student at my final year here in JC (Singapore's equivalent of high school). I'm a foreign student on a full board scholarship here in Singapore.  I have been selected to embark on an English studies trip to Cambridge in March. I logded my application in January and was rejected on the grounds below.    More information: I have fully paid for the trip. The cover letter from my school has indicated so. I have several bank accounts  and While I did provide them with my bank statement, I provided the one with the most money inside but its been pretty dormant. I recognise this was my mistake that could have lead to the refusal.  I am reapplying again soon. My school has made a new letter with more details and response to the refusal letter. On my side, I am thinking of submitting my bank account with the most activity (aka my daily account) and my scholarship agreement that i think can both show ties to Singapore and my financial situation (as it details all the benefits that i get from it like fully paid school fees, accommodation, and allowance). However, it doesnt have much in it (I'm a student) BUT the trip is already fully paid and it includes everything (flights accom transport meals etc) and my new school letter has indicated as such. Do you think this is still likely to be refused? I am growing desperate as I am very scared I wont be able to go on this super long awaited trip


"Don't tell this your math teacher" - Why?

Physicists often deal with equations like $dW = dq(V_a - V_b)$ and say "Don't tell this your math teacher" when they do $\frac {dW}{dt} = \frac {dq}{dt}(V_a - V_b)$. But why is it so dangerous to differentiate against time?


Xeon Processor or Corei7 for Mysql as a Database Server?

I have a wordpress database (4GB). I have two servers with the following spec:         Processor          Cores    RAM       HDD       DBMS   1.  Xeon  X5650 2.6GHz    6     64GB   250GB SSD  Mariadb 10.1   2.  Corei7 4740 3.4GHz    4     32GB   250GB SSD  Mariadb 10.1   I run a query which is a LEFT JOIN on two tables (wp_posts, wp_term_relationships) on both servers and I get surprised when I see the results. I run query with and without configuring my.cnf. If I run the query on the 1st server the execution time varies from 4.48s to 5.2s and if I run the query the execution time on the 2nd one varies from 1.8s to 3.2!! I thought Xeon Processors are much faster than the Corei ones! But with these results I think I have to use one of the Corei7 CPU family for my database server which is expected to be very busy (a lot of query). If it is, why Xeon CPUs are specially designed for servers?? I wonder to know which kind of CPU the big companies with a great database load query are using?


How do we instruct our employees to protect themselves from Heartbleed?

Welcome to the world after .  We've patched our servers and are replacing our SSL certificates.  But just because our servers are fixed, that doesn't mean that the rest of the internet is fixed.  We have employees, and they use the internet to exchange secrets such as credit card numbers and logon credentials.  They are looking to us for advice.  We can advise our clients to use  to see if the site they want to go to has the vulnerability.  If a site returns positive, then don't exchange secrets with it.  But if a site does not return positive for Heartnet, then the situation may be any of:   The site never had the vulnerability (good) The site had the vulnerability and has fixed it, but is still using the possibly compromised SSL certificate (bad) The site had the vulnerability and has fixed it, and regenerated the SSL certificate but without regenerating keys (bad) The site had the vulnerability, fixed it, regenerated keys, and replaced the SSL certificate. (good)   Is there any means we can give our employees, before they type their credit card number into the form, to tell the good scenarios from the bad ones?  How do we instruct our employees to minimize their exposure to servers which are compromised by Heartbleed?


D750 error when photo not taken at widest aperture

I recently purchased a Nikon D750, and I have two lenses one of them being a second hand 70-200 f2.8 VR, and the other being a 50mm 1.8g. Today I noticed every time I take a photo that is not at the widest aperture e.g. 1.8 or 2.8 it comes up with the Err message on the LCD screen meaning "Camera malfunction" and then will not let me change the settings (aperture + shutterspeed) unless I restart the camera. Do you know if this is a common occurence or is it just a faulty camera?


How to replace before the first FROM with preg_replace in PHP

I need to replace string between first SELECT and first FROM, but still not working if I try this :   Here is my SQL string to replace :   $strSQLreport = "SELECT ... FROM ... WHERE ... AND volu_id IN (SELECT FK_volu_id FROM)"   Here is my preg_replace :   preg_replace( "/SELECT(.*)FROM/s", "SELECT volu_id AS id FROM", $strSQLreport, 1 )   It takes the second from, and I want only replace before de first FROM! Thanks for help!


Do I need transit visa for Switzerland while traveling to Tanzania as Bangladeshi (US permanent resident)?

I will be traveling to Tanzania on 10 November 2019 and my transit for two hours in Zurich, Switzerland and will be back on 17th


How can I update page title in my setInterval function?

I have a title with a flask jinja2 input. I want to update the title along with some div tags. I update the div tags with setInterval and jquery like this: <script type="text/javascript"> $(document).ready(function() { /// Wait till page is loaded setInterval(timingLoad, 15000); function timingLoad() { $.get().done(doc => {   $("#main").html($(" #main", doc))   $("#count").html($(" #count", doc)) }); } }); //// End of Wait till page is loaded </script>  My title looks like this: <title id="online_count">{% block title %} ({{online_num}}) Online{% endblock %} </title>  How can I in the setInterval function have the title refresh as well? Adding $("#online_count").html($(" #online_count", doc)) doesn't work.


make a div expand and contract its height given a change of screen resolution

The pages I am trying to get to work are . The issue is that I have been specifying a specific height for the middle div so that it would stay "connected" to the title above and the select list below. It works great, except that the whole thing doesn't stay the height of the window. I found out when I had a problem with an emulator that was changing my screen resolution. The way my browser displays it now, it's only about 2/3 the height of the window. Also, if I go from max to min on the window, the height then goes past the bottom of the window. The width is fine, but the height is the problem. If you look at the page and view the source, you can see that I'm using divs, with one that acts as a container for everything, then a div for the titlebar, a div for the bottom bar and the center div for the content.


Why didn't the Doctor know he would regenerate again?

In The Day of the Doctor, all 13 Doctors turn up to help save Gallifrey, and it's assumed that Ten, Eleven, and War have summoned the rest. Given Twelve's presence - a form that Eleven hasn't yet seen - how come Eleven doesn't know he's going to regenerate again? In The Time of the Doctor, he tells Clara very clearly that he can't.  Two possible answers that don't quite work:   Twelve wasn't summoned; he turned up of his own accord (because Eleven's experiences are in his past but in the future of all the others). But if he remembered what really happened that day, then Eleven should have remembered too; also, even if he wasn't summoned, the Gallifreyan defence council saw him, and Eleven should have made the obvious deduction from the Time Lord General's exclamation "thirteen!" Eleven lost some of his memories of the end of the Time War, due to being together with too many versions of himself (Ten and War definitely forgot everything that happened, because 'the time streams were out of sync' or some other wibbly-wobbly timey-wimey stuff). But Clara should have remembered Twelve's appearance, since she was presumably with Eleven in his Tardis and no older version of herself was around, and her only rebuttal of Eleven's defeatist I-can't-regenerate I'll-die-on-Trenzalore speech is "you can change the future" rather than "we already know you'll regenerate again".   Why do Eleven and Clara both seem to forget having (summoned and) seen Twelve?


Detail missing in exercise on factor groups

The goal is to compute the factor group of $\mathbb{Z}_4\times\mathbb{Z}_6/\langle(2,3)\rangle$. Now, $H=\langle(2,3)\rangle$ has order $2$ and thus the factor group must have $12$ elements, and since $\mathbb{Z}_4\times\mathbb{Z}_6$ is abelian the factor group must be abelian. Furthermore, the only possible abelian groups of order $12$ are $\mathbb{Z}_4\times\mathbb{Z}_3$ and $\mathbb{Z}_2\times\mathbb{Z}_2\times\mathbb{Z}_3$. Up to here everything is clear. It is also clear that $\mathbb{Z}_4\times\mathbb{Z}_3$  has an element of order $4$ and $\mathbb{Z}_2\times\mathbb{Z}_2\times\mathbb{Z}_3$ does not. Why based the order of these couple of groups I can decide that $\mathbb{Z}_4\times\mathbb{Z}_6/\langle(2,3)\rangle$ is isomorphic to $\mathbb{Z}_4\times\mathbb{Z}_3$, and not the other one?  EDIT:  While this questions has been marked as duplicate, the original link does answer all of points asked from the same exercise, and therefore THIS IS NOT a duplicate. Consider reading the question and the answer, you may have the same as this, or both of them.


I am new to python and trying to understand the _full_path from  example.     def _full_path(self, partial):         if partial.startswith("/"):             partial = partial[1:]         path = os.path.join(self.root, partial)         return path   What does the function do? Specifically, what does this line do?    partial = partial[1:]   It seems like some kind of list manipulation -- but I can't find syntax like that in  document.  What is the root property of self that is getting called?    Can somebody explain a little bit about what is happening in that code.


How to convert hex str to an hex bytearray

i would convert the following byte content as str using python to an bytearray  '0B C0 C0 C0 C8 FF 43 ED 44 C0 \r\n'  like below  bytearray(b'\x0b\xc0\xc0\xc0\xc8\xffC\xedD\xc0')  how it can be done?


Is God either immoral or not omnipotent?

The usual (Christian) justification for suffering/evil in the world created by a benevolent God is freedom of the will. However, the more interesting question is not about the source of evil (which the free will may very well be) but why God chose to create the world such as it is. Why not create a world with freedom of the will, but without suffering? Even assuming that God is bound by logic such combination doesn't seem to be logically impossible: creatures certainly can do good of their own free will. There are two alternatives.  1) God is powerful enough for all practical intents and purposes, enough to be called God, but not omnipotent. He created only the best of all possible worlds (Leibniz). This position is perhaps the most defensible philosophically, it also avoids logical problems with , etc., but it does diminish deity's status and invites unpleasant questions like what limits God (logic only, inert matter, outer chaos, other beings), is there someone/thing more powerful, etc.    Interestingly enough, the original Christian theodicy wasn't free will. St.Augustine says poetically "the canvas of creation requires both the black and the white paint". "Requires" here can be interpreted differently,  is to explain the black by the "just punishment" for the original sin, which brings us to Adam and Eve, and back to the free will. But if God is still omnipotent and hence omniscient creating creatures he knew would sin, and then punishing them for it is hardly an improvement.   2) However, Augustine can be read more straightforwardly. Evil is "required" for the perfection of the world just like black paint is required for the perfection of a painting (evil can be interpreted as lack of good rather than something onto itself but that is beside the point). God is immoral, and he is beyond our conception of morality, his notion of perfection is his own. This is much bolder, and similar to Plotinus's position on the existence of the One, the One can not exist because it is "prior to all existence". But it does evoke the unpleasant taste of "ends justify the means". It is one thing to use "God is beyond our logic and comprehension" to get rid of unliftable stones, it is quite another to convince people to worship an immoral perfectionist.  Formally, there is another logical possibility of asserting both morality and omnipotence, but defending the morality of creating a world full of suffering, for a higher purpose perhaps. For example, the suffering only appears bad to us, not to an absolute being in its wisdom. But this simply redefines morality and is only different in phraseology from the Augustine's position. The question is asked in human terms and has to be answered in kind. One is free to argue that God is beyond human logic and/or morality, but it still leaves him immoral as commonly understood.   There does not appear to be a way to square this circle, one has to accept Leibniz's or Augustine's alternative (or both) and deal with the downsides. Option 2) looks more consistent, but it is rarely embraced, at least not openly. Perhaps, for "public relations" reasons it is more attractive to dismiss the question with something like "this is beyond us" or change the subject to the free will.      What are the modern theological positions on the morality/omnipotence in catholisism, protestantism, etc.? Is the question relevant to other religions?   EDIT: I am not sure that it came through but by immoral I did not mean morally deficient or evil. Rather at the God's plane of being morality becomes meaningless, like tastes or smells are meaningless when applied to elementary particles.


Non normalisability implies uncertainty principle?

The wave function $\psi(x,t)$ for a free particle assuming that the position and momentum is well defined, can be solved from the schroedinger equation, $$\frac{-\hbar^2}{2m}\nabla^2\psi+V\psi=\hat{E}\psi$$ And that wave function is $$\psi(x,t)=Ae^{i(kx−\omega{t})}$$ and also we know that this wavefunction is not normalisable. Thus we conclude that this particle has no well defined momentum (and hence energy). But uncertainty principle says the same thing. That is, particle has no well defined momentum and position. Now, my question is that is these two concepts are same? That is, non-normalisability implies uncertainty principle? or is there a different conceptual explannation about the non normalisability of the wavefunction? I think a big mistake happened to me in understanding both these concepts. pls help


My i686 with server 12.04 386 boots to a black screen.  I read a post that said I need to edit the kernel of the boot loader.  The installation went smooth except for the black boot screen.  How do I go about this, as I am lost and awash with information overload.


Exposing Apex REST Services using OpenAPI

I'm trying to find the recommended approach for exposing custom Apex REST services using OpenAPI(fka Swagger). I found most articles on Salesforce consuming OpenAPI spec in external services but couldn't find a much info on how custom Apex REST services could be exposed as a Swagger Doc.


What will I miss out on if I play Diablo 3 without Reaper of Souls?

I own the base game of Diablo 3.  I didn't really like the "post-Inferno" content of the game, so I stopped playing shortly after I curb-stomped the final boss for the n-th time.    I understand now that a lot of things have changed in the base game.  There's also an expansion.  I don't plan to purchase the expansion, but some of these changes sound like they could make the game more fun for me.  I can guess that probably the new character and act are expansion-only content.  I know I'm probably , but if I go back and play now, what else will I be missing out on if I don't have the expansion?


How to add notification in the sidebar of the administration panel when a Custom post type is created?

I have added a custom post type called: "Partners", what I want is that when a new one is created, a notification appears in the sidebar of Wordpress.  For example:    regards!


Input impedance of Arduino Uno analog pins?

I'm using the  on some small robotic arm motors, and reading in the analog voltage with an Arduino Uno.  I've had reasonably good results, but only after putting in an RC filter on the output.  However, in the application note on the datasheet, it says not to do that:  "the addition of an RC filter to the output of a sensor IC can result in undesirable device output attenuation — even for DC signals."  Then it gives a formula to calculate attenuation, but it depends on knowing the input impedance of whatever is reading the signal, so that's what I'm after here.


analytic in open unit disk,corresponding to a bounded sequence and a bounded functional sequence

Let $f$ be analytic in open unit disk, we need to show there exist $\{z_n\}$ with $|z_n|<1$ and $|z_n|\rightarrow 1$ then $f(z_n)$ is bounded.  could any one give me Hints for this one?


Before I installed ArcGIS , I have installed python2.7 with many modules and then the ArcGIS installed another python2.7 in other folder.  Now I want to use the arcpy in own old installed python,because I dont want to install these modules again.  I have added Paths in the PYTHONPATH system environment variable included  D:\software\arcgis10.2\python2.7\ArcGIS10.2\Lib D:\software\arcgis10.2\python2.7\ArcGIS10.2\Lib\site-packages  and add paths in the PATH included  D:\software\arcgis10.2\arcgis10.2\Desktop10.2\arcpy D:\software\arcgis10.2\arcgis10.2\Desktop10.2\bin  However, when I import arcpy ,I still encountered errors ImportError: No module named arcpy


Is there a difference between using "it seems" and "it seems that" For example:  "It seems that automatic restart is not happening now" "It seems automatic restart is not happening now"  Which one is correct?  Or are they both?


Fill array with random numbers but with limits

I am trying to add random values to an array. The user has to say how many values (length) and give the minval and maxval (e.x. minval = 3 means no values under 3). This is what I've got:   int[] GetallenArray;  public IntegerArray(int length, int maxval, int minval) {      this.GetallenArray = new int[length];     for (int i = 0; i < GetallenArray.length; i++)     {         this.GetallenArray[i] = // Random values between the maxval and minval     } }


Notion of a concave function and proving ln is concave

A function is convex if $(1-t)f(x_1)+tf(x_2)\ge f((1-t)x_1+tx_2)$ for $t \in [0,1]$, which is odd because I was taught (very young age) that concave shapes were like caves, they go inwards. Convex was the other one.  A bucket shaped curve, say  $x^2$, is convex by this definition.  Now I remember reading a combinatorial optimisation book and that had a good reason for convex functions looking concave but I have forgotten what it was, can someone remind me, or give an alternative reason?  I am looking this up because a proof I saw used the "fact $y=\ln(x)$ is concave" and I cannot prove this. I've tried but I can't get anywhere meaningful (for example $(1-t)\ln(x_1)+t\ln(x_2)=\ln(x_1^{1-t}x_2^t)$ not sure how to get from there to $\le\ln((1-t)x_1+tx_2)$


How to find out the algebraic integer in some fields.

As shown in the title: How to find all the algebraic integer in $\mathbb{Q}[\sqrt{-1}]$ and $\mathbb{Q}[\sqrt{-3}]$


How to Rotate Text in Table across column spanning many rows

\documentclass[fleqn,12pt,a4paper]{article} \usepackage{tabularx} \begin{document}   \begin{table}[ht]     \begin{minipage}[b]{1 \linewidth}\centering       \begin{tabular}{|c|c|c|c|c|}       \hline         Tri Sankhya & Vihbakti & Ekavachana & Dvivachana & Bahuvachana \\       \hline         Pra Trik    & Prathama & Su (s)     & Au &  \\         Dvi Trik    & Dvitiya  & Am         & Aut (Au) &  \\         Tri Trik    & Trutiya  & Ta (A)     & Bhyam & \\          Cha Trik    & Chaturthi& Ne (E)     & Bhyam & \\         Pan Trik    & Panchami & Nasi (as)  & Bhyam &   \\         Shas Trik   & Shashthi & Nas (as)   & Os &   \\         Sap Trik    & Saptami  & Ni (ee)    & Os &   \\       \hline       \end{tabular}       \caption{Subanta Pratyaya}     \end{minipage}   \end{table} \end{document}    In the attached image, I would like to place text in the last column at 90 degree rotation but do not know how to do it. Also, how can I color the background of that entire column only.  .


How to prove that if the expectation value of $A$ in any state is real, then $A$ is Hermitian?

If the expectation value of operator $A$ in any state is real, then $A$ is Hermitian.   there is an uncompleted proof:  $$ \int(c_1\psi_1+c_2\psi_2)^* A (c_1\psi_1+c_2\psi_2)dx$$ $$=|c_1|^2\int\psi_1^* A \psi_1dx + |c_2|^2\int\psi_2^* A \psi_2dx +c_1^*c_2\int\psi_1^* A \psi_2dx +c_2^*c_1\int\psi_2^* A \psi_1dx $$  My teacher said that because  $$c_1^*c_2\int\psi_1^* A \psi_2dx +c_2^*c_1\int\psi_2^* A \psi_1dx$$  is real, then we can conclude that $$\int\psi_1^* A \psi_2dx = (\int\psi_2^* A \psi_1dx)^*$$  but I don't understand this last step, can someone explain it, or give another proof?


How to use his/her about a general group of people

Is it customary to use his instead of her even if you refer only to women like in my example below. It is a comment to a woman from a woman, likely referring to only women. Shouldn't you say "her own way"?     Everybody is naughty in his own way dear.   It's not if it should be his/her or their. It is if it is about women, should you not use her instead of him? Basically does it mean that the person saying it is a man not a woman?


How can every open set in R be a countable union of pairwise disjoint open intervals in R?

Maybe I've just got a wrong idea of what's going on here, or maybe I just have a definition wrong, but this theorem seems a bit difficult for me to understand, and I think I just need an example. For instance, consider the open set (0,1). This theorem seems like it's saying I can write (0,1)=(0,1/2)U(1/2+epsilon,1) or something? I'm just a bit confused as to how one would concretely form an open set out of disjoint open intervals I guess.


Why is it bad to use * in a Java import statement?

In some of the resources I have seen online about Java they say that it is not good to use the * in an import statement in Java. For example import java.io.*  I was wondering why this is considered bad practice. Is is solely because it makes it hard for another programmer to know exactly what classes you are using under the java.io package or is there another reason for it?


What are the differences between the available rendering engines?

I'm new to understanding render engines, is there any chance someone could explain a few things about them?  Specifically for Cycles vs Vray:   Are there any major differences between Blender Cycles and Vray for    function of rendering various things?  Is there anything the one struggles to do or is completely unable to do while the other can?  Are the two render engines compatible with one another at all for transferring various assets and setting up scenes? Like object    materials for example, would they have to be recreated in each?  Are there any advantages to using a purchased third party render engine like Vray over the free Cycles? (Especially if you are a    single user not a studio.)   In General:   Why are render additional render engines available? Do they offer different functions or unique traits? Why would you want to use a different one?


How can I tell which cards or sets are currently legal in various formats?

I haven't played Magic: the Gathering since the days of Onslaught and Mirrodin, and I would like to try to catch back up. Since all my cards are quite dated now, I may be more interested in formats other than the most up-to-date one.  Rather than ask what is currently legal in various formats (since that is likely too localized), I would rather pose the question of how can I tell which sets/cards are legal in each format.


Why are most holograms blue in Star Wars?

Throughout the Star Wars saga, no matter the era, no matter who's broadcasting, blue holograms are exceedingly common.       Additionally, Snoke's hologram occasionally flashes blue.    However, multi- and full-color holograms do exist.      If these more advanced holograms exist, why aren't they more commonly used? And what exactly makes the holograms blue in the first place?


Quote:     $$\begin{aligned}3a+10b+5c&=0\\4a+6b+2c&=0\end{aligned}$$ solves to $$\frac{a}{30-20}=\frac{b}{6-20}=\frac{c}{-18+40}$$ so that $$\frac{a}{5}=\frac{b}{-7}=\frac{c}{11}$$   Can someone explain in deep how this equations are solved in this way?  First I thought it to do with using Cramer's rule but we are all aware that Cramer's rule work only for square matrix. And we can see this are only 2 equations with will not make matrix square.   So in my last question I was tempted to do only using Cramer's rule and now it has nothing to do with previous question!  I wish someone will find helping more important


Windows 8.1 Preview has disk usage of 100%, and the fan is very noisy. It started one week ago, before that it wasn't so noisy and the laptop worked very well. I don't know the cause. I hope you can help me.  Here is a screenshot of the Task Manager - the disk usage varies from 20 to 40 MB/s.


I know from my calculator the answer is $\sum_{i = 1}^n k^n$ = $\frac{k^{n+1}-k}{k - 1}$. I'd just like help understanding why.


How to fill in the Schengen visa application form when going to several countries?

I will be traveling to France, Italy and Germany with France being my main destination. So I am applying in the French consulate for Schengen visa. I will be traveling on my own and will be staying in hotels.  I had some doubts with regards to filling the application form for Schengen visa.    Q22- Member State(s) of destination: Should I fill in all three of my destinations ? Q31 Surname and first name of the inviting person(s) in the Member State(s). If not applicable, name of the hotel(s) or temporary accommodation(s) in the Member State(s) : This field has barely a line of space to enter. Should I just enter the hotel name in France (my main destination) ?  Q32 Surname and first name of the inviting person(s) in the Member State(s). If not applicable, name of the hotel(s) or temporary accommodation(s) in the Member State(s): Same problem as Q31. Very little space. Should I just enter address of the one hotel I entered in earlier Q ?


Expected time to get all four unique coupons

Envelopes are on sale for Rs. 30 each. Each envelope contains exactly one coupon, which can be one of four types with equal probability. Suppose you keep on buying envelopes and stop when you collect all the four types of coupons. What will be your expected expenditure?  I tried finding a pattern in the probabilities for each of the mass points taking $X$ as the number of trials required. But as I proceeded, it took an ugly structure with little noticeable pattern. Certainly I am not on the right track. Can someone please help me solving the problem?


There is a measurable set $E \subset [0,1]$ such that $0 < \frac{m(E \cap (a,b))}{b-a} < 1$

I'm not sure how to prove this:  Show that there exists a measurable set $E \subset [0,1]$ such that $$0 < \frac{m(E \cap (a,b))}{b-a} < 1 \text{ for every interval } (a,b) \subset [0,1],$$ where $m$ denotes the Lebesgue measure on $\mathbb{R}$.  I'm having trouble understanding what direction to take with this exercise. Instead of constructing $E$ explicitly, the idea is to show that the class of sets $A \subset \mathcal{L}([0,1])$ (the Lebesgue measurable sets in $[0,1]$) which satisfy the inequality is a countable intersection of open dense sets, and then conclude that it's non-empty using the Baire Category Theorem. I honestly have no idea where to start on this, so any guidance or proof ideas would be appreciated.


How to convert all shapefiles in folder into KML using ArcPy?

I was trying to convert all the shp in a folder into kml.  featureclasses = arcpy.ListFeatureClasses() for fc in featureclasses:  # Set Local Variables   composite = 'COMPOSITE'   pixels = 1024   dpi = 96   clamped = 'CLAMPED_TO_GROUND'   scale = 1   outKML = fc[:-4] + ".kmz"   arcpy.LayerToKML_conversion(fc,outKML, scale, composite,'', pixels, dpi, clamped)   It always says Failed to execute. Parameters are not valid. ERROR 000732: Layer: Dataset ZZZ.shp does not exist or is not supported Failed to execute (LayerToKML). But I can manually do it within ArcMap 10.1 Desktop...


What would happen to the Sun if the Enterprise crashed into it?

Starfleet vessels have Spacetime warping capabilities and they contain a wide variety of exotic chemicals and elements, not to mention antimatter.   My question is; what would happen if the USS Enterprise-D or USS Enterprise-E crashed into the Sun? Would the star be affected in some way? Would the warp field (or the contents of the ship) cause the star to explode or something?  Answers based on canon references only, please.


Differences between Verb + to be + adjectives and Verb + adjective

If you have a more illustrative title, feel free to change it. I searched but I couldn't find one.   This may be an easy and trivial question; if so, I am sorry.  What are the differences between these two sentences?     These two guys seem to be inseparable.      These two guys seem inseparable.   I can intuitively say that the latter one is grammatically wrong. Could you please explain?  EDIT: What I think is John Lawler's and FumbleFingers' answers are worth to read. The reason why I  noted that someone who wants to learn the answer of this question, accidentally misses FumbleFingers' answer.


How to separate two meshes in one object

I added two torus objects, and when I click one of them, it also selects the other. They both share the same node thing. I want to delete one of them, but it keeps on deleting the other with it. I can't even undo placing the second torus without removing the other.


How can I make dynamic text in an animation?

Is there a way to change text during an animation? Something like a readout that could show distance traveled. And have it displayed on the screen of the animation.


Why didn't Mr. Weasley use Side-Along Apparition to get to the Quidditch World Cup?

I don't have any exact quotes, but I remember that in the Goblet of Fire, Mr. Weasley and the younger children have to wake up really early to walk to catch a portkey to the Quidditch World Cup. They meet Cedric Diggory and his father there, and Mr. Diggory says that he can't wait until Cedric is old enough to Apparate so they wouldn't have to go through the bother of a portkey. Mrs. Weasley also says that Percy, Bill and Charlie were going to Apparate later.  Why didn't they just use Side-Along Apparition and take the kids with them?


Universal package manager for install/uninstall?

All I truly want a package manager for is to install an app in a location of my choice, make symlinks if I want them, and remove everything when I'm done with the app. Keeping track of all the user-modifiable files for each app and saving those when I "remove" would be nice too.  Yet there are 5-10 different package managers each with their own "ecosystem" of apps, and there are also a lot of apps I come across while browsing the web that say "here, download this .tgz!"; sure I'll click, but now I have a .tgz!  Does anything sort of like a "universal" package manager exist? Something with few features, just install and uninstall would be perfect as long as it will install/uninstall whatever I throw at it: .deb, .rpm, .tgz, .gem, etc.  All I want is install/uninstall through a single interface, a la App Store!


Is it possible to use a Mac Mini with a laptop monitor?

I want to buy a Mac Mini and I want to use it with my laptop monitor. My laptop is Lenovo Y510P. I searched some documents for using Mac Mini with laptop monitor and I only found a solution to using with an Apple laptop unfortunately.  My laptop doesn't have a video input but can I use the Mac Mini via an external video capture devices etc? Or is there a way to use Mac Mini with laptop monitor?


Invoke SQLCMD doesn't work when used with xp_cmdshell

I am trying to get  disk space report from bunch of servers and insert them into sql table..  below is sample of what i am trying to do,Server names will be populated from a table and passed as a comma seperated list.Even passing one server also has the same result  set @ps = 'powershell.exe -noexit -c "  $computers=Get-WmiObject -Class Win32_Volume '+@servernames+' foreach($computer in $computers)  {  $pscomputername=$computer.pscomputername  $name=$computer.name  $capacity=$computer.capacity  $freespace=$computer.freespace  $Label=$computer.Label   $insertquery="  INSERT INTO [dbo].[temp_disksdata]             (            [servername] ,            [DiskName] ,            [Capacity(GB)] ,            [FreeSpace(GB)],            [label]            )      VALUES             (''$pscomputername'' ,            ''$name'' ,            ''$capacity'',            ''$freespace'',            ''$Label''            )  GO "   Invoke-SQLcmd  -query $insertquery -ServerInstance ''someserver'' -Database dbname  }  "';   Now i try to pass the variable to xp_cmdshell like below  execute xp_cmdshell @ps;   When invoked in SSMS,above returns null,but works in powershell..  Any ideas why ?  Below are a few things i tried  1.Same account(admin) is used in both shell and ssms 2.tried multiple things like import modules 3.XP_CMDshell works,but this returns null only for this query 4.I have tried to add -nowait,but that doesn't help as well    I have been trying to get this done from more than a day,but this doesn't work.. I have to use xp_cmdshell because writing a c# app is not allowed.Bat file doesn't help because server names are passed as a comma seperated list.  I am modifying the code and was told not to rewrite when asked   Please let me know if you need any further info  Repro: Below is entire command from print,if you remove powershell.exe and -c ,below will run in powershell..  powershell.exe  -c "  $computers=Get-WmiObject -Class Win32_Volume 'servername' foreach($computer in $computers)  {  $pscomputername=$computer.pscomputername  $name=$computer.name  $capacity=$computer.capacity  $freespace=$computer.freespace  $Label=$computer.Label   $insertquery="  INSERT INTO [dbo].[temp_disksdata]             (            [servername] ,            [DiskName] ,            [Capacity(GB)] ,            [FreeSpace(GB)],            [label]            )      VALUES             ('$pscomputername' ,            '$name' ,            '$capacity',            '$freespace',            '$Label'            )   "   Invoke-SQLcmd  -query $insertquery -ServerInstance 'servername' -Database dbname   }  "


Why am I able to set wider aperture than my lens technically allows?

I'm practicing with Sigma 28 - 300mm f/3.5 - 6.3 Macro lens. And the thing I've noticed is that at 300mm focal length my aperture can be set to as wide as f/5.6. And EXIF data confirms it:    I'm wondering how is that technically possible and if the behavior is considered normal?


How can I remove a badge which I accidentally earn?

I was just surfing questions, and I came across a question. But accidentally I clicked on downvote for that question. I immediately changed my downvote, but still, I earned a Critics badge. Can I rollback badges I earned?   As it is been tagged as a duplicate of a question I will clarify a bit more. How can we give up a badge by our own choice?


E.g. "I get called Hitler in school." or "I get called 'Hitler' in school."?  Would quotation marks be needed for 'Hitler'? What if it was an uncommon or nonsensical word like 'A123' or 'Gaylord'. Would the capital letter alone be enough to grammatically make its usage fine? What if the nickname is made up of multiple words like "Fatty Pig Face"?


How do you suspend a called process (details inside)

The problem is created several process and start them using process.start() and now i have to move these processes between states.  but the thing is I cant use the Thread.Suspend() i think.   So how can I suspend these processes and then resume them?  private void button1_Click(object sender, EventArgs e) {     var process1 = new Process();     var process2 = new Process();     var process3 = new Process();     process1.StartInfo.FileName = "proc1";     process2.StartInfo.FileName = "proc2";     process3.StartInfo.FileName = "proc3";     process1.Start();     process2.Start();     process3.Start(); }   these 3 processes are C# programs (.exe) that I created to read and write into different files.


The set of convergence of a sequence of measurable functions is measurable

Let $E$ be a measurable subset of $\mathbb{R}$ and let $F_n :E \to \mathbb{ R} $ be a sequence of measurable functions. Let $$E^*= \{ x\in E : F_n  \text{ is convergent } \}$$ Is the set $E^*$ measurable?    To solve this, I need to understand the relation between the set $E^*$ and the functions $F_n$. They are strongly related, but how can I express this relation in terms of sets and measure?


Why `sum([0.1] * 12) == 1.2` is True meanwhile `math.fsum([0.1] * 12) == 1.2` is False?

When study the python built-in float function, I read . And got some understanding.   Float's real value is different with their demonstration value, like 0.1's real value is '0.1000000000000000055511151231257827021181583404541015625' Any float in python has a fixed value using IEEE-754  math.fsum give us the closest exactly representable value to the exact mathematical sum of the inputs   But after doing a bunch of experiments, I still encounter some unsolved doubts.  Doubt1  In the tutorial doc I mentioned in the first paragraph, it gave us an example:  >>> sum([0.1] * 10) == 1.0 False >>> math.fsum([0.1] * 10) == 1.0 True   With the doc's instructions, I got an impression that math.fsum will give us a more accurate result when doing float summation.  But I found a special case within the range(20) where sum([0.1] * 12) == 1.2 evals True, meanwhile math.fsum([0.1] * 12) == 1.2 evals False. Which makes me perplexed.    Why this happened? And what's the mechanism of sum when doing float summation?  Doubt2  I found for some float computation, plus operation has the same effect as its equivalent multiply operation. Such as 0.1+0.1+0.1+0.1+0.1 is equal to 0.1*5. But on some cases, there are not equivalent, like adding up 0.1 12 times is not equal to 0.1*12. This makes me really confused. As per float is a fixed value calculated by IEEE-754 standard. According to math principle, such kind of addition should be equal to its equivalent multiplication. The only explanation is that python didn't fully applied math principle here, some tricky stuff happens.   But what's the mechanism and details of this tricky stuff?  In [64]: z = 0 In [64]: z = 0  In [65]: 0.1*12 == 1.2 Out[65]: False  In [66]: for i in range(12):     ...:     z += 0.1     ...:  In [67]: z == 1.2 Out[67]: True   In [71]: 0.1*5 == 0.5 Out[71]: True  In [72]: z = 0  In [73]: for i in range(5):     ...:     z += 0.1     ...:  In [74]: z == 0.5 Out[74]: True


Reviewer stats rejected count changing drastically in short period of time

I checked the stats of a user who rejected two edits last night. The first time I checked his stats, it said he had approved approximately 2000 edits and rejects about 12000. I looked at his stats a few minutes later on another rejection and it showed only 20 rejections. It now shows 20 rejections on both edits as seen below. I'm inclined to believe the larger number is true as he rejected reasonable edits that were approved by the rest of the users. Is this a bug or how might this occur?


Which one is correct ? "I don't know what was that " vs "I don't know what that was"

Which one is correct ?         "I don't know what was that"      or        "I don't know what that was"


Film about some dude who fell in love with a star (a literal stellar object)

Yes, the plot is pretty weird. There is this "star" (whose incarnation is a woman dressed in white) and some random guy who falls in love with her. There's the arc of "if you cross a specific border you'll die" which applies to our lady "star". Well, I also remember that they have some kind of a tubular case, and when one opens it, lightning files out.  I watched the film somewhere around 2010, it's in English and when I try to remember it, I get the vibe of a mediocre Hollywood fantasy romance.


Add a non-UEFI boot target to an UEFI grub

I have two disks in my system:   Non-UEFI windows 10 install UEFI kubuntu 16.10   This system is my home server. I'm migrating from Windows to Kubuntu, but it will take a while since I can't yet duplicate the entire functionality. In the mean time I want to run dual boot so that I can run the server as was (windows) while I'm setting up the Kubuntu deploy in any spare time I get. So:  I'd like to add windows boot to grub's target list, however update-grub does not find my Windows bootloader.  I'm guessing the problem is that it's searching for an EFI boot while there is only a legacy BIOS one.  Is there a way I can add my Windows install as a grub target?


Will my macbook air 2010 pass the airports security controls without a battery?

I'm going to travel to Panama City ,and then to Barcelona ( Spain ), but i want to carry my macbook air in a backpack, the only thing that worries me is that my battery is damaged, i had to remove it and now my mac only works  plugged in. I had read that some airlines don't let pass, through the security controls, these laptops without batteries. So , is that true? what can i do then? i really need my mac.


How does Ubuntu implements SELinux...? what are the pacakges(modules) involved in implementation of SELinux on Ubuntu


Setting for sites to use the design of other existing SE sites

edit please let me emphasize that I don't request additional themes but merely the ability to apply the already existing design of another SE site, e.g. to make  look like .    I really like the current themes of SOFU, and I love   but also  sounds plausible. So, what about the possibility to have a per-user setting of which theme to use for which site (maybe throwing in some bonus themes when Jin has the time)?


Why can't I change the permissions of files I have access to?

I'm logged into a server as user "ubuntu" and I've got files that look like this:  -rw-rw-r-- 1 www-data www-data 33150 2012-06-04 22:17 file-a.png -rw-rw-r-- 1 www-data www-data 36371 2012-06-04 22:15 file-b.png -rw-rw-r-- 1 www-data www-data 41439 2012-06-04 22:16 file-c.png   The ubuntu user is a member of the group www-data:  groups ubuntu   produces  ubuntu : ubuntu www-data   So shouldn't I be able to change other permissions since I have access to the file? I'm not an expert on the user/group stuff. So this is just perplexing me.  I'm trying to run:  chmod o-r *  I realize I can do it with sudo, easily, but I'm trying to understand why I can't modify the files without sudo.


"dev/sda1: clean, ..." This message appears after I startup my laptop, then it won't continue booting

dev/sda1: clean, 552599/6111232 files, 7119295/24414464 blocks   After I turn on my laptop this message appears. The system never boots, the message just stays there.


Printing side-by-side without a space character, inside for-loop in python

for this code in python,  >>>word="spaces" >>>for i in range(len(word)): ...   print word[i], ... s p a c e s >>>   If I do not want any spaces in between the letters that are printed, what should I do ? In C for eg, the printing is by default next to the last printed character.


Using Green's identity to show that a harmonic function with zero boundary values is identically zero

I am confused how to do this question. I need to use Green's first identity and if $\nabla(f)=0$ then $f$ is constant on $\Omega$ since $\Omega$ is path connected.  I have subbed in the information into green's identity but I don't get anything useful.  $$\iiint_\Omega \nabla f\cdot \nabla g \,dV =\iint_{\partial\Omega} f\nabla g\cdot n \,dA - \iiint_\Omega f\cdot \Delta g \,dV$$   We get:  $$\iiint_\Omega \nabla f\cdot \nabla g \,dV =-\iiint_\Omega f\cdot \Delta g \,dV$$   $$\iiint_\Omega \nabla. (f \nabla g) \,dV =0$$ $$\iint_{\partial\Omega} f\nabla g\cdot n \,dA=0$$


How do I find a campsite that allows campfires in Iceland?

I am currently traveling in Iceland and it seems that most campsites do not allow campfires. Are there any campsites in Iceland that allow campfires? If so, how can I find them? Any resource links would be greatly appreciated.


How many times can I benefit from Advantage if I attack multiple times while not seen?

A hidden ranger with Extra Attack attacks a surprised creature. Do both attacks benefit from Advantage, or just the first one?  If the ranger used Horde Breaker on another creature, would this attack benefit from Advantage?


Proving that A connected graph on $n$ vertices is a tree iff it has $n-1$ edges

I'm having some trouble proving the following theorem:     Theorem:   A connected graph on $n$ vertices is a tree iff it has $n-1$ edges   I sort of proved it one way, and I'm stuck the other way around.  Necessity ($\Rightarrow$):  A tree with $n$ vertices has $n-1$ edges.  Basis step ($n=1$):  A tree with one vertex has no edges  Assume a tree with $k\leq n$ vertices has $n-1$ edges  For $k+1$,  Let the added vertex be $u$, if $deg(u)=0$ then we don't have a tree, so $deg(u)>0$. If $deg(u)>1$ then we have a cycle (how do I argue about this?) so again we don't have a tree , so $deg(u)=1$.   Total number of edges = $(n-1) +1 = n \therefore$   $\therefore  P(1) \land \forall k,  P(k)\Rightarrow P(k+1)$  Sufficiency ($\Leftarrow$)  A connected graph with $n-1$ edges is a tree  How can I prove this part? Also, is my induction ok?


How do you make separate layers after using the Polar Grid Tool in Adobe Illustrator

After drawing a segmented circle in Adobe Illustrator using the Polar Grid Tool, how do you make each of the segments into individual layers that arent connected to the whole circle?


I can't install vlc player on my Ubuntu(14.04). I have read  and try to run the commands, but while I run this command:  sudo apt-get install vlc   I got something like this:      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:  vlc : Depends: vlc-nox (= 2.1.4+git20150226+r54594+19+11~ubuntu14.04.1) but 2.1.6-0ubuntu14.04.1 is to be installed        Recommends: vlc-plugin-notify (= 2.1.4+git20150226+r54594+19+11~ubuntu14.04.1) but 2.1.6-0ubuntu14.04.1 is to be installed        Recommends: vlc-plugin-pulse (= 2.1.4+git20150226+r54594+19+11~ubuntu14.04.1) but 2.1.6-0ubuntu14.04.1 is to be installed E: Unable to correct problems, you have held broken packages.   What is the problem? Have you any Idea to solve this or Could you please tell me the right procedure by which I can install vlc media player?    Update:  After removing the PPA, this is the output of apt-cache policy vlc:  vlc:    Installed:  (none)    Candidate:  2.1.2-2build2      Version table:        2.1.6-0ubuntu14.04.1 0          100 /var/lib/dpkg/status        2.1.2-2build2 0          500 archive.ubuntu.com/ubuntu trusty/universe i386 Packages        2.0.1-4 0          500 archive.ubuntu.com/ubuntu precise/universe i386 Packages   And The command:  apt-cache policy vlc-nox vlc-plugin-notify vlc-plugin-pulse   gives me the following results:  vlc-nox:   Installed: 2.1.6-0ubuntu14.04.1   Candidate: 2.1.6-0ubuntu14.04.1   Version table:  *** 2.1.6-0ubuntu14.04.1 0         100 /var/lib/dpkg/status      2.1.2-2build2 0         500 http://archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages      2.0.1-4 0         500 http://archive.ubuntu.com/ubuntu/ precise/universe i386 Packages vlc-plugin-notify:   Installed: 2.1.6-0ubuntu14.04.1   Candidate: 2.1.6-0ubuntu14.04.1   Version table:  *** 2.1.6-0ubuntu14.04.1 0         100 /var/lib/dpkg/status      2.1.2-2build2 0         500 http://archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages      2.0.1-4 0         500 http://archive.ubuntu.com/ubuntu/ precise/universe i386 Packages vlc-plugin-pulse:   Installed: 2.1.6-0ubuntu14.04.1   Candidate: 2.1.6-0ubuntu14.04.1   Version table:  *** 2.1.6-0ubuntu14.04.1 0         100 /var/lib/dpkg/status      2.1.2-2build2 0         500 http://archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages      2.0.1-4 0         500 http://archive.ubuntu.com/ubuntu/ precise/universe i386 Packages


Apparently the whole cumin seed contains oil which the ground version doesn't.  However when I crunch one down I never notice any oil coming out.  Where is it? I would like it to mix with my cooking oil.


shell script /unix commands for text file content editing

I want to edit the file contents in the 2nd line and 2nd column ,which is a file name from that I want to remove the part after the last underscore and before the file extension .  The contents of the file looks like below Input file contents   No|filename|count 01 |com_101_00000_0001_a234.txt|100   expected output file content  No|filename|count   01 |com_101_00000_0001.txt|100   The number of underscores may vary depending upon the file names present inside the .ctl files. Also there are multiple files in a folder likes this ,i want to change the contents for all .ctl files in the 2nd line similarly.  Operating system details Linux  2.6.32 -696.30.1.e16 GNU/linux   I tried with the below solution cat com_101_00000_0001.ctl | sed 's/(.)_[^_](.[^_]*)$/\1\2/'  This edited the file contents but shows the contents in the putty console itself ,what i want is to modify the original files in a particular path in server  Please tell where it went wrong


Is the static friction greater or less than the kinetic friction when an object is moving? Why?

I know (but am quite confused) that static friction is greater than kinetic friction, but is this only true when the object is at rest/stationary? Please explain about this in detail while referring to the measure/amount of static friction and the kinetic friction with an example too if possible


I found this problem while studying for an analysis exam and have been puzzled ever since. If anybody has any hints on this, I would greatly appreciate it.   Prove that the lebesgue integrals $\lim_{n\to \infty} \int_{[0,1]^n} \frac{x_1^2+ \dots +x_n^2}{x_1+ \dots +x_n} \ d \mathrm{m}(\mathbf{x})=2/3$


How can I prove that  $$\lim_{a \to 0^{+}} \int_{0}^{a} \frac{1}{\sqrt{\cos(x)-\cos(a)}} \;dx=\frac{\pi}{\sqrt{2}}$$


Capturing screenshots on macOS Sierra is very slow

Capturing screenshots on the Mac has gotten very slow recently.  It used to be nearly instantaneous but now it is taking more than 10 seconds for the image to appear on the desktop.  I seem to recall having this problem years ago. The workaround was to delete a large accumulation of log files that the os had built up. After I deleted these log files, the screen capture worked very fast again.  Problem is that I cannot remember where these log files are. Searched for quite some time and could not find the information.


Using a sub-query to list greater than averages

What I have is a table which has the prices of book titles. What I'm trying to do is to list the book titles that have a greater than average price. What I have so far is :  SELECT TITLES.PRICE, AVG(TITLES.PRICE) AS "KOMPARE" FROM TITLES,             (SELECT PRICE, AVG(PRICE)             FROM TITLES             GROUP BY Price) subquery1  WHERE TITLES.PRICE = subquery1.PRICE AND subquery1.PRICE > TITLES.KOMPARE GROUP BY TITLES.PRICE;   The error that I am getting is that TITLES.KOMPARE is a invalid identifier. I'm not sure why as I defined it in the first select statement. And it's not like I could put AVG(TITLES.PRICE) in the AND statement. I would be forever thankful for anyone who can offer me some advice! Thank you.  FYI my table name is TITLES, and the prices of the books are PRICE.


Is it ethical, just to ask questions and not answer (as a amateur)?

As a amateur in almost all fields, I ask some silly and many questions. And as an amateur I don't think I should answer questions I have no deep knowledge about. But at the same time it doesn't seem right either?


Can I enlarge OS C: drive of my Windows 8 PC?

Last year I got a new Western Digital WD Blue 500GB HDD to replace my old drive. The first thing I did was to install latest Windows 8. While installing Windows 8 I created 3 partitions, C drive for the OS and others for storage. The OS partition is 120GB (which at the time I thought would be plenty big) but I'm now realizing its too small! I wonder if it's possible to re-size HDD partition without reformatting and re-install my Windows 8. So that is my question, Can i enlarge os c drive of my windows 8 without having to re-format?   I've used the Norton Partition Magic and Disk Management to make this happen but there doesn't seem to be any options to make it happen. Thanks for any help you guys can give regarding my question. I've worked hard to optimize my current install of Windows 8 and would hate to start all over again.


After 8.1 lost grub. Can i just uninstall Linux?

I dual booted Ubuntu alongside my windows 8. After installing windows 8.1 I lost grub and it boots straight into 8.1 and i have a watermark that says "secureboot isn't configured correctly". But I've been wanting to uninstall Linux for a while to reclaim memory for my steam games on windows, the only thing that keeps holding me back is the thought of dealing with grub. But since windows 8.1 knocked it out, what would happen if I just deleted my Linux partitions and reallocated that memory? And what's the watermark all about?


I want to install some applications but for any installation command it says that this package has no installation candidate. I can't even run sudo apt-get update.   cookie98@cookie98**:~$ sudo apt-get install software-properties-common [sudo] password for cookie98:  Reading package lists... Done Building dependency tree Reading state information... Done Package software-properties-common is not available, but is    referred to by another package. This may mean that the package is missing, has been obsoleted, or is  only available from another source  E: Package 'software-properties-common' has no installation candidate   `


Linear independence of vectors (involving absolute values of components)

If $\mathbf a_1,...,\mathbf a_n$ are n vectors in $\mathbb C^n$ with $\mathbf a_i = (a_{i1},...,a_{in})$ and such that $$\lvert a_{jj} \rvert \gt \sum_{\overset{i=1}{i\ne j}}^{n} \lvert a_{ij} \rvert \space\space \text{for j=1,...,n}$$ how can one show that they are linearly independent?  For n=3, for example, I tried assuming that one of the vectors is a linear combination of the other two and then using the property given above and the usual inequalities ($\lVert \mathbf x + \mathbf y \rVert \leq \lVert \mathbf x \rVert + \lVert \mathbf y \rVert$ and $\lvert \space \lVert \mathbf x \rVert - \lVert \mathbf y \rVert \space \rvert \leq \lVert \mathbf x + \mathbf y \rVert$) to show that you would have both $\lvert \lambda \rvert \lt \lvert \mu \rvert$ and $\lvert \mu \rvert \lt \lvert \lambda \rvert$ if, say, $\mathbf a_1 = \lambda \mathbf a_2 + \mu \mathbf a_3$, but only got $$\begin{align} \lvert\lambda\rvert + \lvert\mu\rvert\geq 1\\ (\lvert\lambda\rvert - 1)\cdot \lvert a_{22}\rvert\lt(\lvert\mu\rvert - 1)\cdot \lvert a_{32}\rvert \\ (\lvert\mu\rvert - 1)\cdot \lvert a_{33}\rvert\lt(\lvert\lambda\rvert - 1)\cdot \lvert a_{23}\rvert\end{align}$$


Theorem 3.54 Baby Rudin (Riemann's Series Theorem)

I am struggling trying to understand the final part of the proof of Theorem 3.54 on Baby Rudin. Here's the Theorem     Let $\sum a_n$ be a conditionally convergent series. Suppose :   $$ -\infty \leq \alpha\leq \beta \leq +\infty$$   Then there exist a rearrangement $\sum a'_n$ with partial sums $\{s'_n\}$ such that      $$ \lim\limits_{n\to\infty} \inf s'_n=\alpha \quad \quad \lim\limits_{n\to\infty}\sup s'_n=\beta$$   The complete proof can be seen here, in this question . I didn't quite understand the last part, namely     Finally, it is clear that no number less than $\alpha$ or greater than $\beta$ can be a subsequential limit of the partial sums of (25).    How do i prove this statement exactly?


Why is the command \appendix preferred over \begin{appendices}, ...\end{appendices}?

This is a follow-up question to .  I've tried \begin{appendices} ... \end{appendices} and, whilst it does not show any errors, the word Chapter appears for Appendix items in TOC.  Change to \appendix (and do nothing else) and the word Chapter changes to Appendix. I am just surprised because the former would appear to be a more precise control.


permalink structure postname and wp internal routing (301 vs 404)

I don't understand the following behavior:  to verify, I have a fresh default/standard wp installation (no themes, no plugins)  I change in settings the permalink structure to "post name".  I create two pages and call them eg "sub1" and "sub2".  now I create a 3rd-page "test" with "sub1" as the parent.  so the link .../sub1/test works as expected but if I call .../sub2/test (which does not exist) I would expect a 404. instead, I can see a 301 and the page "test" under .../sub1 is displayed.  I tested this on many different WordPress installations (and versions) it seems to be the default behavior with permalink set to "post name"  but technically that's a wrong implementation.  is there a reason for this implementation and is there a way to "correct" this with some hooks ???


How to draw a tree with fixed node distances?

I am trying to build on the . I have a similar requirement to display a hierarchical tree, but I'm struggling to get the tree layout right. In the example, the link between a node and its child always extends from the center of the parent node. I have managed to change the design in a way that all vertical lines start at a fixed distance from the left edge of the parent node so that all vertical lines are aligned, no matter what the size of the parent node is. However, the child nodes themselves still appear to be positioned in relation to the center of the parent node, making the tree look rather untidy. How can I change this so that the nodes are aligned as well?    \documentclass{article} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} \tikzstyle{every node}=[draw=black,thick,anchor=west] \begin{tikzpicture}[%   grow via three points={one child at (0.5,-0.7) and   two children at (0.5,-0.7) and (0.5,-1.4)},   edge from parent path={([xshift=2ex]\tikzparentnode.south west) |- (\tikzchildnode.west)}]   \node{root}     child { node {shrt}       child { node {looonger}          child { node {veryveryverylong} }       }       child [missing] {}                       child [missing] {}                       child { node {looonger} }       child { node {veryveryverylong}          child { node {shrt} }         child { node {looonger} }         child { node {veryveryverylong} }       }     }     child [missing] {}                   child [missing] {}                   child [missing] {}                   child [missing] {}                   child [missing] {}                   child [missing] {}                   child [missing] {}                   child [missing] {}                   child { node {veryveryverylong}        child { node {shrt} }       child { node {looonger} }     }; \end{tikzpicture} \end{document}


Why didn't The Doctor or Clara recognize Missy right away?

So after it was established that Missy is actually both      the Master, and the "woman in the shop" who gave Clara the TARDIS number...   ...why didn't The Doctor or Clara recognize her right away? I remember the Tenth Doctor in The Sound of Drums stating that Timelords had a way of recognizing other Timelords no matter if they had regenerated. And Clara should have recognized her as well...  I'm hoping for a better explanation than "Moffat screwed up", and that I actually missed something after two watchthroughs of the episode.


Generating all possible permutations in Python

Not a particularly complex question but I'm looking for a efficient/clean way to generate all possible permutations of tuples.  For example, given a size value (ex. 3) for an n x n grid.   (1,1) (2,1) (3,1) (1,2) (2,2) (3,2) (1,3) (2,3) (3,3)   I'd like to generate comparisons between rows and columns.  So for rows, comparisons would go as (1,1) vs (2,1), (1,1) vs (3,1), (2,1) vs (3,1) ... (1,2) vs (2,2), (2,2) vs (3,2) ... etc  And for columns, comparisons would go as (1,1) vs (1,2), (1,1) vs (1,3), (1,2) vs (1,3), .. (2,1) vs (2,2), (2,1) vs (2,3), (2,2) vs (2,3) ... etc  Does anyone know of an easy way to generate each pair of tuples? I'd like to pass the two tuples from the comparison into a separate function (tuple1, tuple2). Got an idea but it uses multiple for loops and seems inefficient. Assistance would be appreciated.


Punctuating a salutation on a line by itself

In a salutation on a line by itself, which version is punctuated correctly?     Hi, Mr Lawler,      I am writing to say [...]        Hi Mr Lawler,      I am writing to say [...]        Hi, Mr Lawler.      I am writing to say [...]


I have a string: http:\/\/example\.com  I try to regex this to be: http://example.com  I've used preg_replace('/\(\)/', '', $string) but it is not working.  Could you help me, please?


NullPointerException error while implementing LinkedList

I'm not able to find where the error occurs and the solution to it. The error says head is null but I have already checked for the condition where head==null Source Code public class LinkedList {     Node head;     void add(int data) {         Node toAdd = new Node(data);         Node temp = head;         if (head == null) {             head.next = toAdd;         }         else {             while (temp.next != null) {                 temp = temp.next;             }             temp.next = toAdd;         }     }     void printList() {         Node temp = head;         while (temp != null) {             System.out.println(temp.data);             temp = temp.next;         }     }     public static class Node {         int data;         Node next;         public Node(int data) {             this.data = data;             next = null;         }     }     public static void main(String[] args) {         LinkedList ll = new LinkedList();         ll.add(2);         ll.add(6);         ll.printList();     } }  Error Exception in thread "main" java.lang.NullPointerException: Cannot assign field "next" because "this.head" is null         at LinkedList.add(LinkedList.java:10)         at LinkedList.main(LinkedList.java:41)


I have an associative array (object) in wich I store data loaded from a 3rd party.  // 3rdPartyData is also an associative array for(var key in 3rdPartyData) {   cookie[key] = 3rdPartyData[key]; }   My object gets stored into a cookie at the end and gets loaded form a cookie before (or created {} if no cookie exists).  Each page view the data from the 3rd party gets added or updated in my cookie array.  Question: If I wore to look the cookie, would the loop always get each key in the order they wore added to it or would the order be changed?  If so can anyone provide an idea on how to manage something like this?


Exception in thread "main" java.lang.NullPointerException but I am assigning to field

I'm using jgrasp and I'm unsure of why I'm getting this error. Specifically:  Exception in thread "main" java.lang.NullPointerException at java.io.File.<init>(File.java:277) at MazeSolver.readMazeFile(MazeSolver.java:87) at MazeSolver.main(MazeSolver.java:15)   I've tried rewriting the scanner part, but I don't know what I'm doing. I'll include the line numbers with comments. Here is my code:  public class MazeSolver {     // The name of the file describing the maze    static String mazefile;    static int width;    static int height;    public static void main(String[] args) throws FileNotFoundException {       if (handleArguments(args)) {           readMazeFile(mazefile);  //line 15          DrawMaze.draw();           if (solveMaze())             System.out.println("Solved!");          else             System.out.println("Maze has no solution.");       }       else {          System.out.println("The arguments are invalid.");       }    }     // Handle the input arguments    static boolean handleArguments(String[] args) {       if (args.length > 4 || args.length < 1) {          System.out.println("There are too many or too few command line arguments");          return false;       }       if (args.length == 1) {          String mazefile = args[0];          File file = new File(mazefile);          if (!file.canRead()) {             return false;          }          return true;       }       if (args.length == 2) {          String mazefile = args[0];          File file = new File(mazefile);          if (!file.canRead()) {             return false;          }          int cellsize = Integer.parseInt(args[1]);          if (cellsize < 10) {             return false;          }          return true;       }       if (args.length == 3) {          String mazefile = args[0];          File file = new File(mazefile);          if (!file.canRead()) {             return false;          }          int cellsize = Integer.parseInt(args[1]);          int borderwidth = Integer.parseInt(args[2]);          if (borderwidth < 5) {             return false;          }          return true;       }       if (args.length == 4) {          String mazefile = args[0];          File file = new File(mazefile);          if (!file.canRead()) {             return false;          }          int cellsize = Integer.parseInt(args[1]);          int borderwidth = Integer.parseInt(args[2]);          int sleeptime = Integer.parseInt(args[3]);          if (sleeptime < 0 || sleeptime > 10000) {             return false;          }          return true;       }          return false;    }     // Read the file describing the maze.    static char[][] readMazeFile(String mazefile) throws FileNotFoundException {        Scanner scanner = new Scanner(new File(mazefile)); //line 87       height = scanner.nextInt();       width = scanner.nextInt();       int arrayHeight = 2  * height + 1;       int arrayWidth = 2 * width + 1;       char[][] mazeArrays = new char[arrayHeight][arrayWidth];       while (scanner.hasNextLine()) {          String line = scanner.nextLine();          System.out.println(line);          for (int row = 0; row < arrayHeight; row++) {             for (int col = 0; col < arrayWidth; col++) {                mazeArrays[row][col] = line.charAt(col);             }          }        }       return mazeArrays;    }     // Solve the maze.          static boolean solveMaze() {       return true;    } }