I'm changing from 8-speed to 10-speed will I need to replace my rear Hub?

I've dug an old road bike out of the garage for the winter and need to upgrade the drive-train, I'm happy about most of what I need but but I'm not sure about the rear hub (an old Shimano Ultegra)..  ..Will I need to change the rear hub/wheel to accommodate a 10-Speed cassette?


I installed ubuntu 14.04 LTS with wubi and after 2 days of use after the login screen unity doesn't seem to load. Notifications work so the cursor but only the backgroun appears and nothing else. What should i do?


In Star Trek: The Next Generation, Geordi is blind. But yet he has a visor that enables him to see.   How does Geordi's visor work?


How can I wrap text around a 2 sided object in Photoshop or Illustrator?

I want to wrap a word around a 2 sided shape (as shown in the image below). Envelope distort, wrap text, perspective tool etc. all not the correct solution (or at least, I can't get the result I'm looking for). How can I do this in Photoshop or Illustrator?


I am getting an error on the second output.     var compareNumber = 3; // Code will be tested with: 3, 8, 42 var userNumber = '3'; // Code will be tested with: '3' 8, 'Hi'  /* Your Response goes Here*/  if (userNumber == compareNumber) {   console.log('Numbers are equal\nVariables are not identical'); } else {   console.log('Variables are not identical'); }


Convert String Array Elements to lowercase

Is there a way to convert strings inside an array into lowercase?  So say I have an array like:     String mainArray[] = {"Dog", "caT", "ElepHANT", "Hungry", "LION"}    // So mainArray[0] = "Dog" mainArray[1] = "caT" etc.    // So i get:    mainArray[] = {"dog", "cat", "elephant", "hungry", "lion"}   Is there a function or method to iterate through the array and transform each string into lowercase?


Combine an Array of Keys and an Array of Values in PHP

this is a very simple question but I've yet to find it in the PHP array functions.  Does anyone know a clean way to do this:     $a = ['a', 'b', 'c'];     $b = [ 1,   2,   3 ];     $c = array_fill_keys_kindof($a, $b);     print_r($c);  // would output array ['a' => 1, 'b' => 2, 'c' => 3]  Thanks for your help


Formula for the general case of $\sum_{n=1}^\infty \frac{H_n}{n^2} = 2\zeta(3)$

Introduction  I'm reading "Advanced Integration Techniques" by Zaid Alyafeai, and he brings up quite a interesting example regarding . The definition is different in the book and on WolramMathWorld, but in the book he defines Euler sums as infinite sums of the form:  $$S_p(r,n) = \sum_{k=1}^\infty \frac{(H_k^{(p)})^r}{k^n}$$  where $H_k^{(p)}$ is a generalized harmonic number. This is quite a general case so let's look at some more specific cases. Let $\vartheta(n)$  $$\vartheta(n) = S_1(1,n) =  \sum_{k=1}^\infty \frac{(H_k^{(1)})^1}{k^q} = \sum_{k=1}^\infty \frac{H_k}{k^n}$$  The interesting example I talked about was that  $$\vartheta(2) = \sum_{k=1}^\infty \frac{H_k}{k^2} = 2\zeta(3)$$  I'm going to quickly derive this so you get the idea. Start by using the integral representation of the Harmonic numbers, so we get:  \begin{align} \sum_{k=1}^\infty \frac{H_k}{k^2} & = \int_0^1 \frac{1}{1-x}\sum_{k=1}^\infty \frac{1-x^k}{k^2} dx \\\\ & = \int_0^1 \frac{\zeta(2)-\operatorname{Li}_2(x)}{1-x} dx\end{align}  Here $\operatorname{Li}_2(x)$ is the  of second order. We now use one of the functional equations for $\operatorname{Li}_2(x)$ which states that  $$\zeta(2)-\operatorname{Li}_2(x) = \operatorname{Li}_2(1-x)+\ln(x)\ln(1-x)$$  Plugging that into the integral, we get  \begin{align} \int_0^1 \frac{\zeta(2)-\operatorname{Li}_2(x)}{1-x} dx & = \int_0^1 \frac{ \operatorname{Li}_2(1-x)+\ln(x)\ln(1-x)}{1-x} \\\\ & = \int_0^1 \frac{\operatorname{Li}_2(1-x)}{1-x} dx + \int_0^1 \frac{\ln(x)\ln(1-x)}{1-x} dx \\\\ & = \zeta(3) + \zeta(3) = 2\zeta(3)\end{align}  Now, because of this beautiful result, I started wondering what e.g. $\vartheta(3)$, $\vartheta(4)$ etc was and if there was a clean formula for the general case. I couldn't find any general formula for $\vartheta(n)$, but WolframAlpha gave many of the desired results (such as  and ). I don't know about odd $n$, but if you try out higher even $n$ you see a very apparent pattern emerging. I claim that:  $$\vartheta(2n) = (n+1)\zeta(2n+1)-\sum_{k=1}^{n-1}\zeta(2k)\zeta(2n-2k+1)$$  You can check out for yourself with e.g.   It is also interesting to note that:  $$\lim_{n\to\infty}\vartheta(n)=1$$  Questions   Is my formula of for $\vartheta(2n)$ correct? How do you prove cases when $n>2$? For example $\vartheta(3) = \frac{\pi^4}{72}$?  Is there any other way than just numerically analyzing the answer to prove my formula?  Is there a formula for odd $n$ or the complete general case (for all $n$)?


How to Display only the Working Directory Name in Shell Prefix?

I'm currently working in a really long directory. Probably something like:   ~/Documents/c_prog/this_is_a_really_long_project_name/sub_directory/test_case/   It would be awesome if I could execute a command when I'm in this directory and it would only show *sername@hostname ~/test_case$  instead of this wall of text. When I restart bash it should just be normal again. I'm totally fine with executing this command every time I'm in this directory.  How can I achieve something like this?


$f:[-1,1]\to\Bbb{R}$ be continuous and $\int_{-1}^{1}f(t)dt=1$ then find $\displaystyle \lim_{n\to \infty} \int f(t) \cos^2nt \mathrm{d}t$.[NBHM2008]

let $f:[-1,1]\to \mathbb{R}$ be a continuous function such that $\int_{-1}^{1}f(t)dt=1$ then find $\displaystyle \lim_{n\to \infty} \int f(t) \cos^2nt   \mathrm{d}t$. My method: I have solved the problem by choosing $f(t) =\frac12$. And the answer I get is also $\frac12$. But I want to know, without choosing this type of example, is there any other general proof? Thanks in advance


Where should I ask a question about an algorithm (no code)

There is a combinatorics problem I want to tackle by writing a program for it. I want feedback on the algorithm I have thought of implementing. I have not implemented it yet because I want to first discuss all the possibilities (and it is obvious that a naive implementation would be useless).  According to , Code Review is supposed to be used to discuss the implementation of the algorithm. The problem is that I do not have any code to review, and I precisely want to avoid writing it until I've had the discussion.  I am assuming either Programmers or Computer Science, but it'd be good to know before asking.


Is it possible to upgrade the graphics card in modern laptops?

As there's no definitive answer to this, and I would prefer not to be too specific about particular models, what are the things that determine whether this is possible or not?   What expansion slots would the laptop require to do this? How can you find out if a motherboard/chipset supports upgrades?  Is heat an issue? Could it void the warranty? How is battery life affected?


How to upgrade Jaunty 9.04 to Ubuntu 12.04?

I'm very new to linux and have Jaunty 9.04 installed on my computer.   What are the steps should I take to upgrade it to 12.04?   When I use Upgrade manager, it tells me "upgrade from jaunty to lucid is not supported with this tool".   Thank you


Prove Cardinality of Sets Exponentiation

I am studying for an exam in elementary set theory and I am not understanding the proof for this theorem:  For any three sets $A,B,C$:  $(A^B)^C \sim A^{(B \times C)}$  I know I need to find a bijective function $G : (C\rightarrow A^B) \rightarrow (B\times C \rightarrow A)$. But I don't have a clue.  Any help would be appreciated. Thanks


I just reinstalled mountain lion and seem to have lost git in the process. I tried following this post :  but although I can cd into /usr/local/git I get /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/binwhen I echo $PATH  How can I change the path so I can go back to using git? Sorry if this is an obvious question, I'm fairly new to git/terminal commands.   Update:  I tried as suggested in another post and it seems to be working again:  sudo -s mkdir -p /usr/local/bin ln -s /usr/local/git/bin/git /usr/local/bin/git exit


Setting PATH variable in /etc/environment vs .profile

Where is the preferred place to set the PATH envvar?  ~/.profile or /etc/environment?  What is the case when PATH is set in both places? Is the end result a concatenation of both values set in those two places?


Guys I am having same problem all the time year after year after year.  When new GPU is out and I am trying to install Ubuntu on new PC I never can't get it to boot in to GUI. It's always same thing, black screen with Nouveau error. If I am not mistaken Nouveau is some sort of driver that is in use during post and if new GPU is not yet supported by this Nouveau I am screwed.   Now I do know there is few ways to install Ubuntu. I remember old msdos looking shell and I really have no problem with it as long as I can get Ubuntu installed and then update GPU drivers with latest available and boot to proper GUI.  Is there a tutorial for this problem I can find somewhere? I am sure I am not only person with Nvidia 2000 series GPU trying to install Ubuntu. Thank you so much guys !!


How can I scale a feature referring to the area?

I'd like to scale features with a scale factor. With the scale tool of the editor toolbar it is possible to define a factor but then every single line of the feature is scaled by this factor. However, I'd like to scale the feature referring to the area and not referring to every line (for example 1.5 times the size it was before). Moreover, I'd like to automise the whole process. Does this only work with a python script?


Why Voldemort did not care about significance of some of this murders during horcrux making?

While reading threads here, it has been established that not all murders had significance for Voldemort  (Albanian peasant, Hepzibbah Smith). They were pretty much holders/middle roads to obtaining items for future horcruxes. Excluding cases where Voldemort did not have the luxury to make horcrux in significant murder: Harry (unintentionally), Nagini (did not have a proper body), here is my question:  Why did Voldemort not care about the significance of some of his murders when he was in full power? Why couldn't he obtain items, hold them until someone significant appears, and make a horcrux then?  I am asking because he initially made horcruxes only for something significant: Myrtle - first murder significance, indication on stepping into a dark path, parents - no need to comment, Marvolo - same deal. Why did he stop caring mid-road?


How can I replace default graphic driver with NVIDIA driver?

My machine has 4 GPUs,   $ lspci | grep VGA 02:00.0 VGA compatible controller: NVIDIA Corporation GM200 [GeForce GTX TITAN X] (rev a1) 03:00.0 VGA compatible controller: NVIDIA Corporation GM200 [GeForce GTX TITAN X] (rev a1) 83:00.0 VGA compatible controller: NVIDIA Corporation GM200 [GeForce GTX TITAN X] (rev a1) 84:00.0 VGA compatible controller: NVIDIA Corporation GM200 [GeForce GTX TITAN X] (rev a1)   How can I use NVIDIA's driver for display the user-interface without any error, I heard that replacing the default ubuntu display driver with NVIDIA's driver will cause black-screen error.  Here are informations on driver and OS  OS: ubuntu server 14.04  $ uname -a Linux ubuntu 3.13.0-88-generic #135-Ubuntu SMP Wed Jun 8 21:10:42 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux  $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 14.04.5 LTS Release:    14.04 Codename:   trusty   Driver:  $ cat /proc/driver/nvidia/version NVRM version: NVIDIA UNIX x86_64 Kernel Module  375.26  Thu Dec  8 18:36:43 PST 2016 GCC version:  gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)   Xorg:  $ cat xorg.conf.failsafe Section "Device"     Identifier  "Configured Video Device"     Driver      "vesa" EndSection  Section "Monitor"     Identifier  "Configured Monitor" EndSection  Section "Screen"     Identifier  "Default Screen"     Monitor     "Configured Monitor"     Device        "Configured Video Device" EndSection


How much do I charge for the first time wedding photo shoot?

I am an amateur photographer as far as event photography is concerned. I have done private event shoots only for my family and friends (weddings on two occasions and few new born and other small events).  Last weekend, I was invited to do a wedding photo shoot for an office colleague in local Bay Area, California. Apparently, they did not find any professional photog on a short notice, so they called me as they know I am a good photog.  I spent about 6 hours at the event in total and additional couple of hours in post-processing the pictures. I showed them some selected pictures and they loved them. They do not want any prints or albums. They just want soft copies of the selected photos. And now I have to tell the total price of my service.   I am not really sure how much I should charge for this event.  Any help in suggesting how I should go about determining the price of this service would be appreciated.  I don't know if this will help but here's what I shot with: Canon 5D MII, Canon 24-105 f4 IS, Canon Speedlite 430EX II and on the spare Canon T3i, Canon 50 f1.8.


Negative inner fence. How can you find the outlier using 1.5 x IQR?

I'm trying to find outliers using 1.5 x interquartile range but I'm getting a negative value for the lower bound. I found Q3 and Q1 which are 13.30 & 3.00 respectively but for the lower bound i get -12.45 which seem odd. Is there something I'm doing wrong?   There are 43 numbers in this chart so I just get (75/100)*43 to find Q3 and (25/100)*43 to find Q1


Prevent sql injection on datetime string input

I'm receiving from a JS script an string that should be formatted according to the datetime format so like: 2013-07-29 00:00:00.  Of course I need to sanitize that input before putting it in a raw MySQL query. What will be the best way to sanitize that format on php?


Send Ctrl+Alt+F1, Crtl+Alt+F7 into VirtualBox

I have a Virtual Box machine with Ubuntu.  I need to send Ctrl+Alt+F1 to guest machine, but when I press them it is captured by host.  How can I fix it ?


Error when including Windows.h with glut.h

I'm doing a project using the GLUT library. Whenever I attempt to include Windows.h and compile/link, I get the following errors:  Error   1   error C2381: 'exit' : redefinition; __declspec(noreturn) differs    c:\program files (x86)\microsoft visual studio 9.0\vc\include\stdlib.h    Warning 2   warning C4985: 'exit': attributes not present on previous declaration.  c:\program files (x86)\microsoft visual studio 9.0\vc\include\stdlib.h    The conflict seems to relate to the "exit" function. I'm assuming that GLUT already defines an exit function, because I can call exit without including anything other than glut.h  I know other people have found a way around this, though. I've seen countless examples of GLUT programs that display a message box (which is why I am trying to include Windows.h). Does anyone else know what might resolve this?  Thanks


Why do eleven and twelve get unique words and not end in "-teen"?

In short, why is it not oneteen and twoteen, and we start at thirteen in English?  In another thread, I supposed that despite that fact that people have ten fingers, amounts of items leading up to and including twelve were more common because twelve is more easily divisible evenly by two, three, four, and six. Both English and German (which are related) switch to a -teen (-zehn auf Deutsch) ending after twelve. Based on that thread, so does Norwegian. Could this be the explanation?  Looking at other languages (Arabic, Japanese, even a related romance language of French), this doesn't seem to apply, and you'd think that if something so fundamental as divisibility were the explanation, we'd see a more universal distribution across them.


How to protect database login info (username/password) in a php code?

I'm struggling with protecting my login info. Let's say my FTP gets hacked, the hackers get access to my login info and may do harm as they like.  Is there a possible way of encrypting it or secure it in any way which will be unhackable, at least for the amateurs? I know there are ways to encrypt a php code and install a loader, but that's not really an option as I don't have access to install plugins in my server and only have access to FTP (and encryptors without loader are very easy to hack).


Why this 2D list input take the last input as the elements in all of the rows?

m,n=input().split( ) a=[[0]*int(n)]*int(m)  for i in range(0,int(m)):   s=input().split()   for j in range(0,int(n)):     a[i][j]=int(s[j])  print(a)   I wanted to input this info for creating a 2D list:  3 4 11 12 13 14 21 22 23 24 31 32 33 34   however, the result is:  31 32 33 34 31 32 33 34 31 32 33 34


From comments to , I learn that The Oxford Advanced Learner's Dictionary says , shows the word weekdays is an adverb.  It seems to me that in "We open weekdays at 7 a.m.", and "We open tomorrow at 7 a.m." both weekdays and tomorrow are the same "part of speech" - and again in "I'll go tomorrow".  I will happily describe words like happily and quickly as adverbs - for example...     "I'll go quickly", and by extension "I'll go quickly and quietly".   On the other hand...     "I'll go tomorrow" can't be extended to "I'll go tomorrow and quietly".   Am I being thick, or is OALD spouting nonsense?


bash script to create and cd to directory with spaces in name

I'm working on a project to remotely create a repository in my GitLab CE instance (that part is working!) and then to create a directory using the name of the project (working!) and cd into that directory (here's where I have the issue...) and then to initialize locally and add the remote repository (working!!!) The issue I'm having is solely changing into the new directory. Whether I use the code shown below, or simply try to cd "$1" or cd "$*" I can't seem to get it to work at all! #!/bin/bash  dir="$*" wd=$(pwd) fulldir="$(pwd)/${dir// /\\ }/" echo "Creating directory $dir" mkdir -v "$dir" cd "$dir" echo "Changing current directory to $dir" echo $dir echo $fulldir  The output of this code is: root@cana:~# ls glnewproj  test root@cana:~# bash test Hello World Creating directory Hello World mkdir: created directory 'Hello World' Changing current directory to Hello World Hello World /root/Hello\ World/ root@cana:~# ls Hello World  glnewproj  test root@cana:~# pwd /root  How can I cd into my newly created directory? I'm totally stumped. Edit: Typed up the function per ghoti and tested it within .bashrc and within my test script. When running the function directly from bash: root@cana:~# ls glnewproj  test  test2 root@cana:~# mkcd "Hello World" root@cana:~/Hello World#   When running the function from within a new test script: root@cana:~# ls glnewproj  test  test2 root@cana:~# cat test2 #!/bin/bash  mkcd() {   mkdir -p "$1" && cd "$1" }  mkcd "$1"  root@cana:~# bash test2 "Hello World" root@cana:~# ls Hello World  glnewproj  test  test2  So the script is still running as a child and thus not updating the parent shell's current directory. Is my only option to spawn a new shell at the end of the script?


Prove that $n\left(n(n-3)+8\right)$ is divisible by 3

The following expression seems to result in an integer for all $n$: $$\frac13n\left(n(n-3)+8\right)$$ So, how do I prove that, if $n$ is not a multiple of $3$, $n(n-3)+8$ is.


Which one is correct from below  We do need to go to the work today. We need to go to the work today.


Dash empty after upgrade from 19.10 to 20.04

I've upgraded from 19.10 to 20.04 using sudo do-release-upgrade -d (because the new 20.04-version didn't show up with the normal update-manager). Everything's went fine, output from lsb_release -a:  No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04 LTS Release: 20.04 Codename: focal   except that my dash is empty since that upgrade:   My dock is ok, it still shows the applications (I'm using dash-to-dock extension).  Can anyone help me getting back my entries in the dash, please?  I deactivated appfolder-management extension as suggested ; the extension was not active at all, did a reboot -> no success. Then I changed theme from Radiance to Yaru and used Ubuntu for login (as always) -> no success.  Additionally, when I click "Frequent" at the bottom of the application list (to show frequently used applications), the desktop environment briefly crashes.


How to stop NOW function from auto-updating?

I'm using Google Spreadsheet's  function as a shortcut to insert the current timestamp now.   However, the value in the cell changes whenever the spreadsheet is modified in any way, even when the changes have nothing to do with that particular cell.  How do we stop the value in the cell from being automatically updated?


We are give Fibonacci numbers.{fi | i ∈ N}, where f0 = 0, f1 = 1, fn+2 = fn +fn+1, n∈ N. How to proof with mathematical induction that if n divides by m, then fn divides by fm?  I am having trouble with thinking, what should be the transition.


How to solve $\int ^{\infty}_{-\infty}\dfrac {\sin x}{x+i}dx$

should we use residue and construct a contour? I can't imagine how to make it.


What is skewness of a distribution?  I ask it why any particular indices seem indecisive about symmetry, and in some case also about asymmetry.


How do you optimise overworld travel speed regardless of team combination?

The infamous Bard Venti has a catchphrase: "Wouldn't gliding be faster?" I think this is only the case when you have those white booster rings. These are, however, not commonly around when traversing the overworld. But what is the fastest way to move around the overworld in Genshin impact that you can achieve without taking advantage of these booster rings that I can utilise wherever I go on the overworld? I'm looking for a consistent method that I can apply in every region and every situation, so I'm not looking for , but the most consistent method or combination of methods of movement that I can apply regardless of team combination. Ideally, an answer would contain an order of operations such as always teleport to the nearest waypoint, always select your tallest character etc.


I am running the following queries in MS SQL Server (version 2016 if that matters).  SELECT DISTINCT Job_Number FROM table_A WHERE Job_Number IS NOT NULL   returns 2376 rows  SELECT * FROM table_A WHERE Job_Number IN (SELECT DISTINCT [House Bill] FROM table_B)   returns 137 rows  However,  SELECT * FROM table_A WHERE Job_Number NOT IN (SELECT DISTINCT [House Bill] FROM table_B)`   returns 0 rows. I would expect this would return 2239 rows (i.e. 2376 - 137).   Is there any fundamental concept of NOT IN that I have yet to understand here?


I send invites through Outlook.  Some of the people do not use the Calendar feature and are not the most tech savvy.  When they accept the invite the email goes away.  Is there a way to set it on my end so the email doesn't go away.


Automatically update cell in Excel with current timestamp when another cell is changed

In an Excel spreadsheet, I'd like to automatically update a cell with the current date and time when another cell is changed (like an update timestamp).  There is a timestamp for each row. I'd like to update them as soon as one of the preceding cells in the row is updated.  Do you have any pointers on how to do that?


Upgraded to a larger SSD using a cloned copy of existing. Possible to extend the existing partition?

I was using a 320GB magnetic drive and recently upgraded to a 500GB SSD.  The clone process worked but left me with an extra partition of 178GB unallocated space.    When I click on Move/Resize under /dev/sda6 this appears, showing no available space:     Is there a safe way to merge this available space into the existing partition /dev/sda2?


I can't access my old account that used myopenid

I didn't get the memo regarding myopenid shutting down. As a consequence I cannot log in to my account anymore. Is there a way I can recover ? I tried doing it with this account, using the same email I had on myopenid but it didn't work. My myopenid url was jfoucher.myopenid.com  How can I log back in to my old account, or merge it with this new one ?


Find all positive integers $n$ such that $n^2-1|2^{n!}-1$

What I have done so far:  $n$ must be even $(n-1)(n+1)|2^{n!}-1$ because $n-1$ and $n+1$ are odd, they are relatively prime so both $n-1$ and $n+1$ should divide $2^{n!}-1$  Then I get lost in how I should handle it. Could anyone help me with that?


Infinite Login Loop after Upgrade to 18.04

Well, the title pretty much says it all. I can log into the terminal by pressing CTRL-ALT-F3. How can I get the user interface back?


Short story I read in a book of short stories in 1986ish

If I remember correctly, the story starts out with a young boy and his mother in a check out line at a store. A man comes into the store and grabs a bunch of stuff and walks out without paying for it. The young boy asks his mother why he was able to do this, she explains to him that the man won a great victory for his country and could take anything he wanted for the rest of his life.  The young boy wanted very much to be just like the man, when the boy grew up he was in a squad that fought for his country when there was conflict. Instead of war each country had a squad of fighters and the victor would decide the outcome of the conflict. The young man fought and won the conflict by hiding behind one of his dead squad mates in a foxhole/bunker. In the end he realized what war cost, and didn't envy the man from the store any longer.   I thought it was an Isaac Asimov story but still can't find it.


I am unable to use Ubuntu 17.1. I have been using it for a long time now. Suddenly after booting one day, it froze and didn't respond anymore. The gui, the mouse, keyboard, nothing responds.  I am unable to do anything. I am not familiar with the structure of the operating system so any help would be appreciated. Thank you


How do I recover my data/OS after accidentally writing over my main hard drive with an img file using dd?

I accidentally wrote over main hard drive with an img file using dd.  This thread is the  but my case is that I accidentally wrote my main hard drive.   I have a late 2013 MBP 13" Retina 256GB SSD 8GB RAM running Yosemite so I don't have a DVD drive. Due to the incident my OS won't boot at all.  I'm kinda worried about my old photos and movies of my fiance stored on my Hard Drive which is not yet backed up on an external drive.   I converted a 900+MB xubuntu.iso to an img and used dd command to write it out to a flash disk, but accidentally type disk1 instead of disk2. I just noticed it after the dd was executed already      # command used in mac terminal     sudo dd if=/path/to/xubuntu.img of=/dev/rdisk1 bs=1m   EDIT: I also tried single user mode but it throws in error because the OS was already overwritten :(  EDIT2: Corrected Laptop Model and added specs


Proving $G\cong \Bbb{Z}_p$ if $|G|$ is prime.

For a group $G$, if $|G|$ is prime, then I have to prove $G\cong \Bbb{Z}_p$.  Take any element $g\in G$. As $G$ cannot have proper subgroups, and as it also has finite order, $|g|=p$. Hence, $G=\{1,g,g^2,\dots,g^{p-1}\}$. We know $\Bbb{Z}_p=\{0,1,2,\dots,p-1\}$. Hence, $f:G\to\Bbb{Z}_p$ defined by $f(g^r)=r$ for any $r\in\Bbb{Z}_p$ is a homomorphism.   If we can now prove that the kernel of this mapping is $\{1\}$, then we're done. Clearly, $1$ is the only element that maps to $0$ in the above homomorphism.    Is the above reasoning correct? What are some other ways of proving isomorphism between the two groups? Is proving that the kernel is composed of only one element the only way? I read somewhere that if provided you have proven $f$ is a homomorphism, and that $h$ is another mapping from $\Bbb{Z}_p$ to $G$, then proving $fg$ is injective and $gf$ is surjective is sufficient to prove isomorphism. But what are the properties of $g$?


System drive, OS is Windows 7 x64 SP1 Ultimate.    Windows Explorer shows 100GB of used space.  TreeSizeFree shows 75GB of used space.  Total Commander and FAR confirm TreeSizeFree's measurements (counting hidden files).  Shadow copy is using up to 5GB with the current usage of 1.36GB.  Running FAR from Win7 PE shows the same.  Checkdisk shows no bad sectors. Disk is an OCZ SSD.  SMART monitor suggests SSD condition is perfect.    Where is the rest of space gone?


Connect Ubuntu 16.04 Desktop to LDAP Server

I use Ubuntu 16.04 LTS desktopand read and tested a lot of documentation about configuring an LDAP client on Ubuntu but can't get it to work.  Is someone can share his experience and give me some good and working documentation?  My goal:   Centralize authentication via LDAP (Ubnutu desktop -> Synology Directory Server (LDAP)) Mount /home share Mount other common shares


understanding links in an asp classic site

I am working on an existing asp classic site and there are links that work but I don't understand how they are working. I have a link /shoponline/threads/threadreg and when I look at the site structure, there isn't a /shoponline/threads folder, but there is a /shoponline/thread.asp page and there is a /shoponline/threadT.asp page. There are a few examples like this on the site where the link ends in a plural like /shoponline/fabrics but the file it points to seems to be /shoponline/fabric.asp. Can someone explain how this link works?


Does Lubuntu use all the latest drivers etcetera?

I have a fast machine - let's say Intel Core i7, SSD drive, Nvidia GTX 560 card.  I don't need an eye-candy system. I still need to perform it properly, that meaning have latest drivers, use my hardware properly.   I think it's strange to say:      Well, this PC is so fast, let's install GNOME3 on it, it will handle,   so whatever.   Why wouldn't I install Lubuntu on it, just as I use it on my net-book? In other words is Lubuntu a good choice or not? I mean, does Lubuntu have any disadvantages to it when it comes to new hardware support, or whatever?   Note: This may look like an off-topic question leading only to a discussion, but bear with me for a second here. I don't mean to discuss which of the two is better or whatever, I'd rather hear facts.


Number of combinations of two numbers from a list with repeating numbers?

I've tried googling it and looking it up on this website but since I don't know the technical term for this calculation I ran out of luck. Basically, if I have a collection of numbers (each of which may have duplicates) how many unique combinations of $n$ numbers can I make by picking from that collection? () For example: $C = \{ 1, 2, 2, 3, 3, 3 \}$ and I want to know how many combinations of $2$ numbers I can make. Glancing over the collection, I can quickly see I can only make the following pairs: $P = \{ (1,2),(1,3),(2,2),(2,3),(3,3) \}$ Which gives me the answer $|P|=5$. But if I want to find the number of combinations of $4$ numbers, I can't just enumerate all the possible $4$-tuples because there's no way to make $(1,1,1,1)$ or $(1,2,2,2)$, for example. Is there a way to calculate this in general using combinatorics?


What size conductor do I need to bond water and gas piping?

What is minimum size ground do I need for a 200 amp panel? I need to bond the hot and cold in the water heater and already have a ground rod in the ground. I also need to bond the water and gas.


Ubuntu 20.04 dropped qt4 and all libqt4-* dependencies in its official repos. My knowledge about version conflict and install-breaking actions is limited, so before any unthoughtful action is taken, I would want the community's take about this.  Would it be possible to get qt4 to install on Ubuntu 20.04, and if so, which source would not end up breaking the install?  Alternatively, what container method would be the lightest for apps relying on qt4? My usecase for qt4 is solely for some Xilinx ISE components, nothing else, so the lightweight criteria is really important.


How do I get H.264 support in Opera in 20.10 installed via .deb from official site?

How do I make Opera in Ubuntu 20.10 to support H.264?  I tried following but H.264 videos on Opera still not playing: $ sudo apt install libdvdnav4 libdvdread8 gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly libdvd-pkg ubuntu-restricted-extras Reading package lists... Done Building dependency tree        Reading state information... Done gstreamer1.0-plugins-bad is already the newest version (1.18.0-2ubuntu6). gstreamer1.0-plugins-ugly is already the newest version (1.18.0-1). libdvdnav4 is already the newest version (6.1.0-1build1). libdvdread8 is already the newest version (6.1.1-2). libdvd-pkg is already the newest version (1.4.2-1-1). ubuntu-restricted-extras is already the newest version (67). 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.


A word that has the same meaning as its negation

Is there a pair of words in English, where one is a grammatical negation of the other, but they are synonyms? For the negation I'm thinking about a negative prefix or suffix, like de-, dis- or -less, but it can also be built in other way. For example for the word 'likely' the hypothetical pair would be 'likely' and 'unlikely' and they would mean exactly the same (i.e. 'likely'). This came to my mind because there are at least two such pairs in my native language.  Edit: IMO this is not a duplicate of auto-antonym. The auto-antonym examples from the linked pages don't meet my criteria. However I was unaware that list questions are automatically "too broad". Thanks Andrew Leach for explaining me that, I think I will try a community wiki question then.


Is it wrong to ask for a correct answer to be chosen?

Possible Duplicate:             Would it be against etiquette to politely ask someone (perhaps a newer user)—or at least remind them that it's possible—to select a correct answer for a question?  Particularly when it's quite obvious an answer helped, and they used similar code in another related question?


Position sticky always on bottom of viewport

I am looking for the simplest solution to have a div positioned sticky and always rendered at the bottom of the viewport. I don't want to use position: fixed because the element will be out of the document flow and when I have more content on the page it will hide part of it without triggering overflow. Sticky on the other hand is problematic when I have too little content on the page then it renders immediately after that content and not all the way on the bottom of the viewport. Is there a simple way to make sticky always be on the bottom of the viewport by using only HTML/CSS?


I am having difficulty in understanding whether fields store momentum and energy or particles store them or both fields and particles store them?    In the above source it mentions that energy is stored in system but in this source     they mention energy is stored in field. So which one is correct?  Please also give an explanation why?  I am trying to ask here if any of the choices I mentioned is correct, why is it correct? Why are other choices wrong? But I am not trying to ask if momentum and energy can exist together. So I feel it's not a duplicate of the question mentioned.


In multiple Harry Potter books/movies, there are a number of scenarios where a spell is cast or some magical event happens but the instigator did not use a wand:   In HP1, Harry removes the glass from the Boa Constrictor's enclosure allowing it to escape and then puts it back, trapping Dudley. In HP3, Harry becomes angry at Aunt Marge and she then inflates and begins to float away. In just about every scene he's in, Dobby doesn't brandish a wand, he mainly clicks his fingers. He doesn't recite the incantations, either.   This leads us to ask - is a Wand required for magic at all?


How can I find my building in a superflat world?

I made a superflat world and typed /tp ~ ~ ~-10000 or something similar a few times to have a separate area to build a house on, but i accidentally died and lost my house. What can I do to find it?  I have McEdit if that helps.


I have recently upgraded to Ubuntu 18.04. I used to update youtube-dl via youtube-dl -U, but now I get the error:  youtube-dl: error: youtube-dl's self-update mechanism is disabled on Debian.  Please update youtube-dl using apt.   So will I always get the recent (stable!!) update by going   sudo apt update && sudo apt dist-upgrade -y   as for everything else, or will I have to add a new repository?


On-shell and off-shell transformations in Noether's theorem

For any transformation of the fields,  $$\varphi\to\varphi'=\varphi+\delta\varphi$$ the change in the Lagrangian can be written as  $$\delta\mathcal L = \text{EoM} + \partial_\mu j^\mu\tag{1}$$where "EoM" represents the equations of motion (Euler-Lagrange equations) and all other terms can be written as a total derivative of some function $j^\mu$, which is a known function in terms of the Lagrangian.   I would like to distinguish the different realizations of transformations. Let's assume that the transformation (1) leaves the action invariant, $\delta S=0$.    $\delta\mathcal L=0$   EoM $=0$, "on-shell": Noether current is conserved, $\partial_\mu j^\mu=0$. EoM $=\partial_\mu b^\mu\neq0$, "off-shell": modified Noether current $J^\mu = j^\mu+b^\mu$ is conserved, $\partial_\mu J^\mu=0$.   $\delta\mathcal L =\partial_\mu a^\mu \neq 0$, "quasi-symmetry"   EoM $=0$, "on-shell": modified Noether current $J^\mu = j^\mu-a^\mu$ is conserved, $\partial_\mu J^\mu=0$.  EoM $=\partial_\mu b^\mu\neq0$, "off-shell": modified Noether current $J^\mu = j^\mu-a^\mu+b^\mu$ is conserved, $\partial_\mu J^\mu=0$.     Is this listing correct?      What roles do the terms "on/off-shell" and "(quasi) symmetry" play in Noether's theorem?   Related: , , , , .


Inverse of "every continuous function has a maximum over a compact domain"

Let $A$ be a subset of $\Bbb{R}^2$ with the property that every continuous function $f:A\to\Bbb{R}$ has a maximum in $A$. I have to prove that $A$ is compact.  Is $A$ were a subset of $\Bbb{R}$ then we could take a function that is monotone over the components of $A$ and show that each of the components is closed and bounded hence proving $A$ to be compact. But couldn't generalize this idea to a subset of $\Bbb{R}^2$ that easily.


Using awk to change an entire column of both positive and negative values, to just negative?

I use awk alot to manipulate xyz text files (lat,long,elevation). I have a specific file that has both positive and negative values in the z column, I would like all of these to be negative. So {$3*-1} wont work because it reverses the negatives to positives, I want all negatives. Seems like something that is possible but I haven't been able to figure it out.


Need a counter example for cycle in a graph

Could anyone give a counter example for that theorem :     A graph G has exactly one vertex of degree $1$, then it contains a cycle.   I am so confused. I wonder that may I give a counter example which considers trees.


What is the reason behind the extra vertical space between the superscript and the subscript in a grouping mode?

The distance between the superscript and the subscript for the character of parenthesis, for example, grows in group mode, while the equivalent behavior does not occur for the character of "x", for example, and the distance remains the same! Why is that?  I suppose it's possibly related to the character itself, but I want a convincing reason.  ${)}^{a}_{b}$\quad $)^{a}_{b}$\\ ${x}^{a}_{b}$\quad $x^{a}_{b}$     The output produced using the report class with no options.    I've depicted my investigations on the matter through the figure. The boxes for each character are drawn in red, and the blue lines are the baselines to the sub- and superscripts, and the green lines are the baselines.  Since the non-paired case, the following:  x^{a}_{b}   doesn't differ with the followings:  ^{a}_{b} {}^{a}_{b}   then, which one is more preferable to use?


My thinking:  Due to the axiom describing closure of a field we know that there are four possibilities for the result.  Thanks


What do i need to change in order to view my DXF

I am exporting my drawing from autocad into blender. The drawing is in 1:1. When i import the DXF into blender i get this cut off view of my drawing. How can i fix this?   Heres how this appears


Starting a Thread with run() instead of start()

I learned that to start a thread the recommended way is to invoke start() method on thread object. But this in turn invokes the run() method. So why not directly invoke run() method?  Here's what I tried but I fail to bring any conclusion :  public class Tester {       public static void main (String[] args) {         Runner r = new Runner();          Thread t1 = new Thread(r, "Thread A(runnable)");         Thread t2 = new Thread(r, "Thread B(runnable)");          Thread s1 = new Strider("Thread C");         Thread s2 = new Strider("Thread D");          t1.run(); // t1.start();         t2.run(); // t2.start();         s1.run(); // s1.start();         s2.run(); // s2.start();       }     }      class Runner implements Runnable {       private int counter;       public void run() {         try {           for (int i = 0; i != 2; i++) {             System.out.println(Thread.currentThread().getName() + " Runnable: "                    + counter++);             Thread.sleep(1000);           }         }         catch(InterruptedException e) {           e.printStackTrace();         }       }     }      class Strider extends Thread {          private int counter;       Strider(String name)    {         super(name);       }       public void run()   {         try {           for (int i = 0; i != 2; i++) {             System.out.println(Thread.currentThread().getName() + ": "                  + counter++);             Thread.sleep(1000);           }         }         catch(InterruptedException e)     {            e.printStackTrace();         }       }     }   OUTPUT (using start()) : varies  Thread A(runnable): 0 Thread C: 0 Thread B(runnable): 1 Thread D: 0 Thread B(runnable): 3 Thread D: 1 Thread A(runnable): 2 Thread C: 1   OUTPUT (using run()) : always remains same  main Runnable: 0 main Runnable: 1 main Runnable: 2 main Runnable: 3 main: 0 main: 1 main: 0 main: 1   Also kindly provide your opinion on why not to use run() directly ?


If $f:[0,1]\to (0,1)$ is a continuous mapping then which are NOT correct?   $F\subset [0,1]$ is a closed set implies that $f(F)$ is a closed set in $\Bbb R$. If $f(0)<f(1)$ then $f([0,1])$ must be equal  to $[f(0),f(1)]$. $\exists x$ such that $f(x)=x$. $f([0,1])\neq (0,1)$.   is false as continuous functions don't take closed sets to closed sets. is false as $f$ is not monotonically increasing.    3.Let $h(x)=f(x)-x\implies h(0)=f(0)>0;h(1)=f(1)-1<0\implies h(k)=0$ for some $k$ .hence true  4.true since continuous image of a compact set must be compact.  hence the correct options are 1,2.  But the answer is given to be 2 only .Please help.


first of all I am Karthik and I am new to Linux. I heared about Ubuntu and I switched to it from Windows 10. I liked the style and efficiency of Ubuntu. I am using Ubuntu 12.10.... I need to know more about Ubuntu. First of all my firefox web browser is outdated. How can I update it? and how can i install any other softwares? Any help will be thankful.


I have the following struct and a pointer to it.   struct abc   {      int val;  }; struct abc* ptr;   What is the best way to use sizeof() for this structure sizeof(struct abc) or sizeof(*ptr)    I understand both implies the same outcome in most cases, but I would like to know about the corner cases in which one would be better than the other.


java comboBox arrayList null pointer exception

At the moment im trying to create a GUI interface that can add and store departments via an arrayList and then later reference the department arrayList on an add lecturer form (comboBox) so the lecturer can be assigned to a department. the departments arrayList works for actually adding the departments to the arrayList. But i cannot reference the department arrayList onto my add lecturer form(comboBox) an error appears "null pointer exception"  (screenshot below) i have no idea what this error is or how to solve it!  please note the arrayList has been declared in the add lecturer form with the following syntax public ArrayList departments;.  Code is below apologies if i haven't been detailed enough.  submitDepartmentButton.addActionListener(new ActionListener() {     public void actionPerformed(ActionEvent e) {         department new_dept= new department(DepartmentNameText.getText(),              UserNameFeild.getText(), passwordLabel.getText());          departments.add(new_dept);                                      System.out.println(new_dept);          JComboBox SelectDepartmentTypeComboBox = new JComboBox ();         SelectDepartmentTypeComboBox.setBounds(211, 254, 187, 31);                for (int index = 0; index < departments.size(); index++) {             SelectDepartmentTypeComboBox.addItem(departments.get(0));              System.out.println("end");         }     } }   I expect the add lecturer form to be able to loop through the department arrayList onto the comboBox but instead a NULL POINTER EXCEPTION appears


I have the below files in directory new:  Dec 14 04:35 New_folder Dec 13 05:50 abc.sh Dec 13 06:33 ashutosh.txt Dec 13 06:40 delete.sh Dec 13 07:19 test.bat Dec 14 04:44 test.sh Dec 14 04:30 xyz.sh   And running the below command  find /test/new/ -type f -mtime +1   According to definition of this command I will get all files which are older than one day, on 14 Dec when I am running, but I am not getting any file in the output.  What is a command line that works?


How many phones can we take on a plane? I have 3 phones and an iPod. Would I be able to fly from England to Turkey and back?


What's all those users in the /etc/passwd file?

The /etc/passwd is supposed to have a line for every user on the system. Amongst the common username and root there is a bunch of other users. Some examples:  timidity:x:114:127:TiMidity++ MIDI sequencer service:/etc/timidity:/bin/false liquidsoap:x:115:128::/usr/share/liquidsoap:/bin/false statd:x:116:65534::/var/lib/nfs:/bin/false gdm:x:117:131:Gnome Display Manager:/var/lib/gdm:/bin/false mysql:x:118:133:MySQL Server,,,:/nonexistent:/bin/false    What's the purpose with all these users? How can I login as mysql or gdm? What will the password be?


How do you know what glyphs are in a font?  Is there a tool that shows them?


Windows domain - remove Win 10 Offer via GP

I'm struggling to remove the "Upgrade to Windows 10" Notification Area Icon on a bunch of Win 7 Pro machines on a 2008 R2 domain.  No WSUS server.  I've tried enabling "Turn off the upgrade to the latest version..." setting in my domain's Computer Configuration -> Administrative Templates -> Windows Components -> Windows Update, then gpupdating on my own PC to test.  Restart.  Update gp again.  Restart.  The icon is still there.  I need to install WSUS - it's a rainy day project that I've been planning on for a while.  But it's sunny right now and I have more important shit to triage.  Any ideas?  Thanks!  Edit: this question is not a duplicate, because these hosts are all part of a domain.  It's fundamentally a very different situation.  I'm looking for a GP-style fix; registry hacks one at a time on individuals' PCs are not something I have time to do.


Why cannot the word in the last column be centered

I have the following table:  \begin{tabular}{|p{3cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|} \hline \centerline {image}  &    \multicolumn{2}{c|}{ABC} & \multicolumn{2}{c|}{DEF} \\ \hline  & \centering A&\centering B&\centering C&\centering D  \\ \hline \centerline 1&&&& \\ \hline \centerline 1&&&& \\ \hline \centerline 1&&&& \\ \hline \centerline 1&&&& \\ \hline \end{tabular}   When I try centering D, I have a problem in the shape of the table. Why is that? How can I center it appropriately?  Thanks.


How to calculate $\int_0^\infty \left(\frac{\sin x}{x}\right)^2\,dx$

This is my exercise in Complex Analysis.  $$ \int_0^\infty \left(\frac{\sin x}{x}\right)^2\,dx = ? $$  I tried solving this by $(\sin x)^2=1-\cos(2x)$ but I realized that $\int_0^\infty \frac{dx}{x^2}$ does not converge.  Can someone help me? Thank you so much.


How do I punctuate the following sentence in parentheses: (Just stand up and say cancel that.)  Do I need to put the "cancel that" in quotes and a comma after say and a capital "C"? It is an instructional manual.


How do I match a string with symbols in a grep-kind of way?

I have a file with this contents (or similar):  # cat /var/www/htpasswd foo:$apr1$73wJ8tiQ$HdaRYe2pUMqBf0ZpMJz6h/   and I'm trying to verify the presence of an entry in it, by matching it, like this:  # grep --fixed-string "foo:$apr1$73wJ8tiQ$HdaRYe2pUMqBf0ZpMJz6h/" /var/www/htpasswd #   but it's not matching anything. Any ideas why and/or how to do it?  I first I thought it was the dollar sign, but this one works:  # grep --fixed-string "foo:$ap" /var/www/htpasswd foo:$apr1$73wJ8tiQ$HdaRYe2pUMqBf0ZpMJz6h/ #


I asked a question on meta SO for the first time since the split.   I received a couple of up votes (great), yet my rep hasn't changed.  Come to think of it, my rep appears to be my SO rep and my old Meta rep is no longer on SE Meta.  What happens when I'm upvoted on SO Meta?  I'm not really that bothered but some clarification would be nice.


Proving that a limit of piecewise function defined for rationals and irrationals does not exist

A function is defined as follows: $$  f(x) = \begin{cases}        x^2 & x \in \mathbb{R} - \mathbb{Q} \\       -x^2 & x \in \mathbb{Q}    \end{cases} $$ Show that $\lim_{x \to a} f(x)$ does not exist for $a \ne 0$. I'm really stuck on this problem. Is there a way to show this using epsilon-delta definitions or work with series? Thanks in advance!


why is the return keyword not required in expression bodied methods

Looking at expression bodied methods, I am trying to understand why the return keyword is not used. For example with public int GetAge() { return this.Age; }  I would have expected public int GetAge() => return this.Age;  as opposed to the correct public int GetAge() => this.Age;  Why is the return keyword not required/allowed in this case?


Border bottom alignment issue in trilogy site's account recovery page

There is some alignment issue in the following trilogy or  site's account recovery page. The Sign up link's border bottom is missing.   You can find the issue in the following links:            Can be able to reproduce this in the following browsers:  Firefox: 49.0.1 Chrome: 51.0.2704.103 m OS: Windows 8  Screenshot for reference:        Update: The border bottom issue is in Stack Apps account recovery page too. There extra border is displaying under the Login tab.


What is the proper way to notate the anti-derivative of x^-1

just a quick calculus question here. I'm a bit new to indefinite integrals and I was presented with this problem. Find $f(x)$ if $f''(x) = x^{-2}$. Naturally it is easy to realize that the first derivative $f'(x)$ is simply $-x^{-1}+C_1$, however, when calculating the anti-derivative of $-x^{-1}$ to find $f$, what is the proper way to denote $f(x)$? Because the natural answer is $-x^0$ due to the power rule but that obviously doesn't make any sense.


How to encode a list name for REST in sharepoint 2013

I created a list in the en site called   hello's~`!@#$%^&*(){}[]:;"'<>?/\|*-+.   What I am trying to do is figure out what exactly is the encoded version of the name if I am trying to target it by name in a REST url. I have this  http://mysite/en/_api/web/lists/getbytitle('hello's~`!@#$%^&*(){}[]:;"'<>?/\|*-+.')   but this doesn't work of course. I tried url encoding it to  http://mysite/en/_api/web/lists/getbytitle('hello%27s~%60!%40%23%24%25%5E%26*()%7B%7D%5B%5D%3A%3B%22%27%3C%3E%3F%2F%5C%7C*-%2B.')   but even then, doesn't work.  Does anyone know how to do it?


I currently do not have access to a computer and I want to edit my Stack Exchange profile.  Is this even possible on the mobile app? I can't find any button to edit or anything similar.


]  Weird Shading which also effects the sub d in a weird way. Maybe it's a bug but I have a feeling I screwed up somewhere :)


NullPointerException from course test code?

so the code that tests my exercises is giving me the fail test of:   "nullpointerexception, in call addPlayer(Player: Atro, 0). Code that caused the failure Team j = new Team("HIFK"); Player p = new Player("Atro"); j.addPlayer(p);  I've ran this code in my main and it works just fine so I dont understand why the testcode has a problem.  public class Main { public static void main(String[] args) {     Team barcelona = new Team("FC Barcelona");     barcelona.setMaxSize(16);     Player brian = new Player("Brian");     Player pekka = new Player("Pekka", 39);     barcelona.addPlayer(brian);     barcelona.addPlayer(pekka);     barcelona.addPlayer(new Player("Mikael", 1));      System.out.println("Total goals: " + barcelona.goals()); }   }  import java.util.ArrayList;  public class Team { private String name; private ArrayList<Player> playersOnTeam = new ArrayList<>(); private int maxSize;   public Team(String teamName) {     name = teamName; }  public String getName() {     return name; }  public void addPlayer(Player playerToAdd) {     if (playersOnTeam.size() == maxSize) {         return;     }     playersOnTeam.add(playerToAdd); }  public void printPlayers() {     String playerList = "";     for (Player i : this.playersOnTeam) {         System.out.println(i.getName() + ", " + "goals " + i.goals());     } }  public void setMaxSize(int setSize) {     maxSize = setSize; }  public int size() {     return playersOnTeam.size(); }  public int goals() {     int allGoals = 0;     for (Player i : playersOnTeam) {         allGoals = allGoals + i.goals();     }     return allGoals; }   }  public class Player { private String playerName; private int goals;  public Player(String name) {     this(name,0); }  public Player(String name, int score) {     playerName = name;     goals = score; }  public String getName() {     return this.playerName; }  public int goals() {     return goals; }  public String toString() {     return "Player: " + playerName + ", " + "Goals " + goals; }   }


$f:\mathbb{R}\rightarrow \mathbb{R}$ continuous and $f(\mathbb{R}$) is countable, then $f$ is constant.

Let $f:\mathbb{R}\rightarrow \mathbb{R}$ be a continuous function such that $f(\mathbb{R}$) is countable. Show that $f$ is constant.  Some ideas: proving the contrapositive. To suppose that $f$ is not constant and to use the intermediate value theorem to prove that $f(\mathbb{R})$ is not countable.  Any help?


The lower bound of the number of cubic residue mod n.

For arbitrary positive integer $n$ ,   Denote $a\sim_n b \iff a^3\equiv b^3 \mod n$,  and $P(n):=\mathrm{Card}\{\mathbb{Z}/\sim_n\}$,  How to calculate the value $\displaystyle\inf_{n\in\mathbb{Z}^+}\frac{P(n)}{n}$?


Story identification: Doomed soldiers spirited away to guard crop against last seasons soldiers

I read this in the mid '80's or early 1990's. A group of heavily armed elite Earth soldiers is kidnapped just as they were about to be overrun and annihilated. Given the choice of being returned to their certain doom, or taking part in an off world adventure, they get recruited to guard an alien crop from attack from the earlier, less technologicaly advanced bands of soldiers that were captured and recruited to guard the previous seasons of the alien harvest from earlier recruits. Oh yeah. (I think) They ride centaurs.


MacBook Air version 6,2  System using 70%  Is there a way to fix this? Been trying for hours


Scan folder size when some are "Access Denied"?

I want create a program that finds folder sizes on my servers, but...  I have several folders where I have no access (fx Roaming User Profiles - on the server), is it possible as an administrator to get size for these folders?  I guess since the backup system can access these folders, then I should too ... somehow.  EDIT:  I see people marking my question as duplicate, but ..   How can Impersonate help me? With impersonate, I run the process as another user, but which user should I run it as, to get folder sizes of all users profiles on the server (folder)? Already tried elevated UAC as in comments, that had no effect. Still getting Access Denied.   So I'm still not near a solution to my question.


What is the maximum number of users accounts I can have on Linux?


How can I rename the Desktop folder after changing the system language?

I just switched my Ubuntu system language from French to English. I have been asked if I wanted to create new folders (Desktop, Pictures, ...), I said yes. My old files were not moved, but now I have a Bureau (French for Desktop) and a Desktop folder. When I create a folder on my desktop using GUI, the folder is actually created in the old Bureau folder. What should I do to stop having the old French folders getting used (which I guess would also work for other folders)?  EDIT: it is not answered by  because it does not answer to why "When I create a folder on my desktop using GUI, the folder is actually created in the old Bureau folder"  It get fixed, probably when I restarted a second time. So I needed to restart once for getting the new folders, and another time to get the GUI Desktop to work as expected.


Unsuccessful attempts at sorting the bibliography alphabetically [natbib,plainnat,citep]

After consulting lots of posts here at tex exchange and other resources, I still can't figure out the problem. Everything looks fine, still alphabetical sorting in working for me. This is the last important step to finish my thesis, and wonder some of the experienced people can help me.  Linked posts:         \documentclass[fontsize=11.5pt,                headsepline,                BCOR=40mm, american, %paper=a4,ngerman,                bibliography=totoc]{scrbook}  # loading natbib \usepackage[round]{natbib}  # using plainnat to sort it alphabetically  \bibliographystyle{plainnat}  # using references from two different files \bibliography{Bibliography/introMethods,Bibliography/resultsDiscussion}   Entries from my reference files (all in bibtex format)  @article{roguev2001saccharomyces,   title={The Saccharomyces cerevisiae Set1 complex includes an Ash2 homologue and methylates histone 3 lysine 4},   author={Roguev, Assen and Schaft, Daniel and Shevchenko, Anna and Pijnappel, WWM Pim and Wilm, Matthias and Aasland, Rein and Stewart, A Francis},   journal={The EMBO journal},   volume={20},   number={24},   pages={7137--7148},   year={2001},   publisher={EMBO Press} }  @article{miller2001compass,   title={COMPASS: a complex of proteins associated with a trithorax-related SET domain protein},   author={Miller, Trissa and Krogan, Nevan J and Dover, Jim and Erdjument-Bromage, H and Tempst, Paul and Johnston, Mark and Greenblatt, Jack F and Shilatifard, Ali},   journal={Proceedings of the National Academy of Sciences},   volume={98},   number={23},   pages={12902--12907},   year={2001},   publisher={National Acad Sciences} }   I calling within text using citep ~\citep{roguev2001saccharomyces}  These entries look fine as someone mentioned in the other post, to reformat the author name.  I using TexLive beta for ElCaptain (MacOSX) complied via pdflatex using TexStudio. I have also deleted .bbl,.blg,.aux files before regenerating the bibliography. There are total of around 250 references in both the files. I mostly used google schlolar to export the citations of scientific papers in the bibtex format.  Please let me know, if I am missing any information and I will add up here. Thanks a lot and have a great day!  How the output looks like   Update:  Thanks to Ulrike for pointing out that the references are already sorted and problem with other references. First two entries have no author name, that's why they are not sorted. But for the third entry (Agger) I want it like this:    Minimal working example  \documentclass[a4paper]{article} \usepackage{amstext} \usepackage{makeidx} \usepackage{graphicx} \usepackage[round]{natbib} \usepackage[hmargin=3cm,vmargin=3.5cm]{geometry} \pagestyle{plain}  \begin{document} Lets cite this reference \citep{roguev2001saccharomyces} and this ~\citep{miller2001compass}. \printindex  \bibliographystyle{plainnat} \bibliography{temp.bib} % Insert the name of your bib file here  \end{document}   Contents of temp.bib  @article{roguev2001saccharomyces,   title={The Saccharomyces cerevisiae Set1 complex includes an Ash2 homologue and methylates histone 3 lysine 4},   author={Roguev, Assen and Schaft, Daniel and Shevchenko, Anna and Pijnappel, WWM Pim and Wilm, Matthias and Aasland, Rein and Stewart, A Francis},   journal={The EMBO journal},   volume={20},   number={24},   pages={7137--7148},   year={2001},   publisher={EMBO Press} }  @article{miller2001compass,   title={COMPASS: a complex of proteins associated with a trithorax-related SET domain protein},   author={Miller, Trissa and Krogan, Nevan J and Dover, Jim and Erdjument-Bromage, H and Tempst, Paul and Johnston, Mark and Greenblatt, Jack F and Shilatifard, Ali},   journal={Proceedings of the National Academy of Sciences},   volume={98},   number={23},   pages={12902--12907},   year={2001},   publisher={National Acad Sciences} }   Generates    I want to change the order of first name and last name and the first author name to be bold, for ex:


Regression based for example on days of week

I need a little help to move in the right direction.  It's a long time since I studied any stats and the jargon seems to have changed.  Imagine that I have a set of car-related data such as   Journey time from town A to town B Distance from town A to town B Engine size Driver's shoe size Make and model of car Day of week   I want to predict journey time.    I imagine there's a strong correlation between time and distance and probably a weaker one to engine size (and none to shoe size).  Presumably multiple regression analysis / ANOVA is the tool to use.  But how do I include day of week, since just coding it as Sunday=1, Monday=2 etc feels very wrong?  Having used Excel's regression tool, for example, how do I interpret the results?  Presumably if R is close to 1 this is good (although if there are many data items it seems as though it can be small yet still be significant).  But some sources refer to r-squared which seems to be the SD, so a value close to zero is good.  It also shows the t Stat, P-value, F and Significance F, whatever they may be.  Can anyone recommend a good reference source?


Why is a 1 added after the message input and before adding padding zeros (if necessary) when using SHA256 or RIPEMD160?

In preparing an input for SHA256 or RIPEMD-160 a single bit (1) is appended to the message before adding any necessary zero padding and before adding the bitlength (64 bits) to form 1 or more 512 bit blocks. What is the purpose of adding the single bit (1)?


Today I came across a scenario wherein an assignment was done inside a finally block, a similar code snippet as below     public static void main(String[] abc) {     System.out.println("Returned \t"+ testFinally()); }  public static int testFinally() {     int aVariable =2;     try {         System.out.println("value of aVariable inside try \t"+aVariable);         return aVariable;     } finally {         aVariable = 100;         System.out.println("value of aVariable inside finally \t"+aVariable);     } }  The output was bit strange to me  value of aVariable inside try     2 value of aVariable inside finally     100 Returned  2  Then I tried the same with StringBuffer and String  With StringBuffer      public static StringBuffer testFinallyStringBuffer() {     StringBuffer strBuffer = new StringBuffer("ABCD");     try {         System.out.println("value of strBuffer inside try \t"+strBuffer);         return strBuffer;     } finally {         strBuffer.append("EFGN");         System.out.println("value of strBuffer inside finally \t"+strBuffer);     } }  Output  value of strBuffer inside try     ABCD value of strBuffer inside finally     ABCDEFGN Returned  ABCDEFGN  Output was as expected.  With String      public static String testFinallyString() {     String str = "ABCD";     try {         System.out.println("value of str inside try \t"+str);         return str;     } finally {         str = str + "EFGN";         System.out.println("value of str inside finally \t"+str);     } }  Output  value of str inside try   ABCD value of str inside finally   ABCDEFGN Returned  ABCD  From this behavior, it seems as if variable(primitive/immutable objects/mutable objects) was passed from try block to finally block like parameters are passed to a method. Although, use of finally block is to do clean-up activities.But I want to know if my understanding is correct or there is something more to it.  Update  Though, I could not found anything satisfactory from the  Question with which this Question has been marked DUPLICATE with. However, there are few comments claiming that the evaluation of Return statement happens only once. Having said that, Still variables are local scope. Any change made to them should be visible on accessing these later on. Possibly, RETURN internally creates a copy of variable being returned(right before invocation of finally and actually returning to calling method) which is why primitive variable and immutable objects behaves different from mutable objects in this case.


The post  seem to suggest that it's possible to create 2 separate accounts using the same username and password. Is it a bug? Or is it supposed to work like this? Should it not ask the user to provide a new user ID as the one he's trying to create has an account linked to it?   Edit 1:  This is not a duplicate because the post I linked asked for a solution for the problem.    I am asking why it was allowed in the first place. I am asking about how the login engine works?  How is it possible to have two exactly same user ID?


Stack Overflow is great resource to learn. For both someone asking a question and answering a question. Posing a question let you reflect on your problem. A lot of the questions started are never submitted because the act of posing a question helps solving it. Answering a question helps to stretch your knowledge bit by bit. You may answer questions directly but sometimes you know only 75% of the answer. Now you have to stretch your knowledge a bit to be able to answer it and you'll learn something on the way.  This is the positive side of Stack Overflow; on the other hand Stack Overflow is not good enough for systematic learning: I want to learn more about X!. You'll find something about everything, but it's not efficient. The knowledge that is in Stack Overflow is not refined in a way to allow this.  This is unavoidable for a site that wants to help users with immediate answers to their problems. The knowledge amassed is only a by-product of this process. Nonetheless it can be put to another use with some extra effort.  This is the basic idea:  Select and revise Stack Overflow questions and answers to allow efficient learning.  Stack Overflow question and answers cannot replace text books, articles or blogs, but can provide exercises for a given topic. We learn by application of the ideas presented in these other formats. If you dust off your  there are always exercises after all the theory. The exercise part is where the learning starts by reflections. Before that it's just following a beaten path: "Oh yes it's this and that and O(n)".  Given some effort it is possible extract high quality exercises from Stack Overflow:   Select good questions (probably < 20% for this purpose) Select the best answers  Assign some grade of difficulty (to create some order) Add additional tags (when the tags are missing or to not fit into the structure of the anthology) Optional - Revise the question and answer Optional - Add missing questions and answers   The biggest advantage is that the posed questions are real world problems. This is a big factor to motivate learning.  There could be some feedback into Stack Overflow in later steps. Stack Overflow is really complicated enough but some form of quality improvements may be desirable. Wikipedia added some quality improvement measures later in the project after it gained a critical mass. It may be nice to see high quality content highlighted in Stack Overflow, but it is not essential to the anthology idea.  The best way to start and see if this idea works is to take a tag with few questions (less than 1000) and categorise all of these questions. The target would be to extract ~100 questions. Some software is needed to support this. Development could start with a limited set of edit tools to select questions, answers and add tags. For learners a page to browse the anthology with direct links to Stack Overflow is enough to get started.  Is this a bad idea or would you like to work on this project?


Can you deal commander damage with any players commander?

If I gain control of another players commander, does it still deal commander damage or does that only work with your own commander?


Here I want to filter numbers from asNum array  self.protocolArray = [{     protocol: "OSPF",     asNum: [0, "", undefined, null, 1, 2] }];  for (var j = 0; j < self.protocolArray.length; j++) {     self.protocolArray[j].asNum.forEach(function (asNumitem) {         if (asNumitem && (asNumitem !== "")) {             asNumStoreData.items.push({                 "name": asNumitem.toString(),                 "value": asNumitem.toString(),                 "selected": "false"             });         }     }); }   expected result {items:[0,1,2]}  Any idea?


How to customize title page in beamer so that it looks like

How can I modify title page so that it looks like it is in  video. Please seek to 16 seconds and watch title page. I do not have permission to post images. I liked this theme and I want to make a beamer theme that looks similar. I tried with beamercolorbox but I failed to position the box to the bottom.      Edit: Here is my minimum working example  \documentclass[xcolor=dvipsnames]{beamer} \defbeamertemplate*{title page}{customized}[1][] { \usebeamerfont{subtitle} \usebeamercolor[fg]{subtitle}  {\flushright \setbeamercolor{author}{bg=white,fg=Red} \usebeamerfont{author} \insertauthor\par \usebeamerfont{institute}\insertinstitute\par }  \vspace{0.2in}  \setbeamercolor{postit}{fg=white,bg=YellowOrange}  \begin{beamercolorbox}[sep=1em,wd=1.062\textwidth,ht=3cm,dp=3cm,right]{postit} \usebeamerfont{title} {\huge \inserttitle}\par \usebeamerfont{subtitle} {\insertsubtitle} \end{beamercolorbox} } \usecolortheme[named=YellowOrange]{structure} \useoutertheme{infolines} \setbeamertemplate{navigation symbols}{}  \institute{Harvard College Professor and\\ Johnstone Family Professor in Psychology, Harvard University}  \title{SAY WHAT?} \subtitle{Linguistics as a Window to\\ Understanding the Brain} \author{Steven Pinker}  \begin{document} { \setbeamertemplate{footline}{} \begin{frame} \titlepage \end{frame} } \end{document}


How do I know if I run on Amazon EC2 windows instance?

I try to figure out whether I run on regular computer or ec2 (from JVM based app). The simple method could be attempt to get , however that means I should wait until timeout, and it does not feel right. Is there a quicker way to know this?


Packet source not safe Xubuntu 18.04 64bits

When installing some apps (some with ppa:) I get a message like: "modifying/updating packet source is not safe and therefore standard turned off. (Own translation from Dutch text). How can I turn it on? I searched everywhere....


Why are these film photos brighter than digital photos taken at the same time with the same settings?

I took two photos - first one with Canon 5D Mark III and the second one with analog Canon EOS 500N. I used the same lens (Canon 50mm ƒ/1.4) and settings (ISO/shutter/aperture) for both of them. The company that developed my films is doing that everyday. They also scanned my analog negatives without any corrections. I noticed that the film is much more brighter than the digital image of the same scene. Left photo is scanned negative and right photo is digital. The digital photos were shot in RAW, opened them in ACR, and then saved them as jpeg. Ilford HP5+ (left), ƒ/1.8, 1/1000, ISO 400 (both):  Kodak Gold 200 (left), ƒ/1.8 1/1000, ISO 200 (both):  I didn't find any answers why this happened. Could there be problems with fixing time or maybe the ISO value of the film differs from the one on the description of the film? Or is film simply brighter?


Approximate the size of a set given random items from the set.

I'd like to know how would it be possible to approximate the size of a set that has no duplicate elements.  We can make a limited amount of requests. Each request gives us a random element from the set (Without removing it).  How do we approximate the size of the set given the amount of duplicate elements gotten from the set when doing $x$ requests?


How to work out sqft/m of land coverage?

I am currently self teaching myself on qgis whilst volenteering on a project on a river catchment and your help is hugely appreciated!  I need to be able to work out the percentage of land cover or sqft/m coverage. I have all the land uses on as a vector layer over my river catchment.   Many thanks and let me know what other info i need to give as a newbie!


How do I install Adventure Game Studio  Editor in Ubuntu 16.04 (Xenial Xerus) ? I am pretty sure it can be built for Linux too, I just am not very experienced in building things from source.


Is there a single word for when two people have the same name?

Note: I'm not looking for namesake.  I heard a friend use such a word in the context of the following sentence, and now I've forgotten it:     "Anna and my sister [Anna] may not have much in common, but they are [word]"   I am a hundred percent sure that the word wasn't namesakes, but I think it might have started with an n as well. I tried some reverse dictionaries, but couldn't find anything, so I turned here for help.  Are there any other single words to describe the situation of sharing someone's name (when not named after that person; or in a coincidental manner)? Thanks.


It's been too hot the last / the past few days

Is it grammatically  wrong  to say      It's been too hot  in the last / the past few days      It's been too hot for the last / the past few days     I saw this following sentence also, can we omit in it?     He's had two new cars in the last / in the past three years   as     He's had two new cars  the last / in the past three years     Is there a strict rule in using of preposition or non-preposition when we use the last/past ?  What is the structure when I refer to weeks, months ?


How to get two variables from the previous function in python?

I'm very new at python so I'm still learning some things. But I'm doing this code and I need to know how to get the x and y variables from the "getHumanMove" function so that I can use it in the "getPiles" function  def getHumanMove(x,y):     finished = False     while not finished:         x=int(input("Which pile would you like to take from?(1 or 2)"))         y=int(input("How many would you like from pile "+ str(x)+ "? "))         if pile1 and pile2<y:             print("pile " +str(x)+ " does not have that many chips. Try again.")         elif y==0:             print("You must take at least one chip. Try again.")         else:             print("That was a legal move. Thank You.")         finished = True     return x,y  def getPiles(pile1, pile2):     print("Here are the piles: ")     #################################Here is where I need to put the x, y variables      pile1= pile1     pile2= pile2     if temp_x == 1:         pile1= pile1- temp_y         print("pile 1: ", str(pile1))         print("pile 2: ", str(pile2))     elif temp_x == 2:         pile2= pile1- temp_y         print("pile 1: ", str(pile1))         print("pile 2: ", str(pile2))         return pile1, pile2  ##############################Main############################## move= getHumanMove(pile1, pile2)  pile= getPiles(pile1, pile2)


So I never really post questions in forums like these but this one has got me stumped. So I upgraded my windows 7 computer to Windows 10 and didn't like it plus things were messing up. I decided to go back to factory defaults because the one month grace period had expired. After restoring my system the only account that shows up when turning the system on is the user account which is password protected. I'm assuming the store we got the system from, Colortyme, had set up these defaults because the password hint was "STORE". Needless to say guess and check hacking meathods are very unreliable. I know about the exploit where you can rename the command prompt something accessible through the ease of access such as the sticky keys and then run it at the login screen with admin privileges which would allow me to change passwords but the only problem is the only way I know how to access those files before login is by crashing the computer and booting system repair. Unfortunately Windows has patched that... So my question is how should I go about this? I can only think of two options right now the first is to boot the system off a flash drive with a Windows iso file on it and change the settings that way. The other is reset the password using a password reset disk iso file on a flash drive. I don't have an actual password reset disk so yeah... Please help and let me know if any of those options would work or if there is a better option


Is it wrong to standardise a variable and then centre it for use in multiple regression?

Is it wrong to standardise a variable (e.g. polygenic risk score) and then centre it for use in multiple regression?


How do PyQt/PySide handle multiple constructors?

In PyQt5 there are many ways to instantiate a QSlider.  (1) With no arguments, it will construct the default vertically oriented slider with no parent.  slider = QSlider() # Equivalent to # slider = QSlider(orientation=Qt.Vertical, parent=None)   (2) With a Qt.Orientation argument.  slider = QSlider(Qt.Horizontal) # Equivalent to # slider = QSlider(orientation=Qt.Horizontal, parent=None)   (3) With both Qt.Orientation and QWidget arguments.  window = QWidget() slider = QSlider(Qt.Horizontal, window) # Equivalent to # slider = QSlider(orientation=Qt.Horizontal, parent=window)   This is all understandable, but then how is it also possible to pass just the second argument as a non keyword argument?  (4) With a QWidget argument.  window = QWidget() slider = QSlider(window) # Equivalent to # slider = QSlider(orientation=Qt.Vertical, parent=window)   Is this an ability available to PyQt classes because they are really C++ classes with overloaded functions, or can this be emulated just in Python? I suppose for this particular case you can check the type of the first argument, and the constructor might look something like this:  class QSlider(QAbstractSlider):      def __init__(self, orientation=Qt.Vertical, parent=None):         if isinstance(orientation, QWidget):             parent = orientation             orientation = Qt.Vertical         super().__init__(parent)         # do stuff   But if both arguments accept the same type of object, then it doesn't work. So must a different type of object be used for each argument, or is there another way that this is achieved? If I want to subclass QSlider with another optional argument, and still retain all the possible QSlider constructors above, then more type checks are needed. Is the type checking the best way to enable constructing the class with all those options? The more arguments added the more tedious this becomes.  class MySlider(QSlider):      def __init__(self, x=1, orientation=Qt.Vertical, parent=None):         if isinstance(orientation, QWidget):             parent = orientation             orientation = Qt.Vertical         if isinstance(x, Qt.Orientation):             orientation = x             x = 1         elif isinstance(x, QWidget):             parent = x             x = 1         super().__init__(orientation, parent)   And now there is a problem due to Qt.Vertical/Qt.Horizontal also being integers:  >>> Qt.Horizontal 1 >>> isinstance(Qt.Horizontal, int) True   Meaning QSlider(1) would result in a horizontal slider. So someone calling MySlider(1) might expect the same behavior, but in reality the 1 would be assigned to x, and the orientation would still be vertical.


Can I use the same account on a different phone?

I am playing Pokemon Go; However, I am going to stop using the phone that I use for the app and buy a new one. If I start playing Pokemon Go with a new phone using the same account, will the data and/or Pokemon that I have caught be saved in my same account with a new phone? I feel really worried for losing everything.


iPad is iCloud locked to a defunct address

I was gifted an iPad from a restaurant owner. This iPad was provided to the restaurant and used to relay orders from a third party service who would deliver their food outside their normal delivery range.  The third-party company that provided the iPad is now defunct, and the iCloud email address has been out of use for long enough to bounce emails back to me immediately.  I am aware of the concept of circumventing iCloud activation lock and that is not what I am looking for. I am looking to have Apple verify that the current account is defunct and to legitimately remove the account from the iPad.  What steps do I take to have Apple review and potentially remove an iCloud account from my iDevice?


I restarted my laptop and then I could not log into Ubuntu desktop or console even. I tried to login at console by pressing Ctrl+Alt+F3. But on console, it does not login as well. On desktop it takes password and after a blink returns back to login screen again. I have study data and everything and kind of stuck in this login issue. Please advise.  Thanks


How do I merge changes from a development copy of the site to the live site without losing new content?

What is the best procedure for merging work done on a development copy of a site to the live production copy? Often times there has been a lot of new content added to the site since development started on the newest features. And most additions to a site will involve database changes. So copying any new files is easy, but what about the database? How do you merge your changes with the existing production database without losing new content that was added since the last time you updated the production site? Are there any modules that help with this?


Drupal admin links broken for site when using WAMP (e.g. localhost/test2/admin/content)

I decided to try out the newly launched Drupal 8. After resolving some issues I finally got the installer up and running (using WAMP), and arrived onto clean homepage of my test site.  the problem here is that clicking on any Admin menu links at the top of the page takes me to a Page Not Found... Anyone know if this has been reported among other users and if there is a fix for this?


At any gathering of n people must have the same hair colour.  Step 1, if there is one person at the gathering then everyone at the gathering has the same hair colour.  Step 2,  Assume that k gathering of people must have the same hair colour.  Step 3, Some people are gathered. One is sent out of the room, the remaining k people must have the same hair colour. Now bring that person back and send someone else out. You get another k group of people, all who must have the same hair colour.   Therefore all must have the same hair colour.


Problem with projection in meters with ArcGIS 10.1

I hope you can help with the following problem. I have a shapefile and want to project it using a projected coordinate system with meters as unit. What I did was to change the projection from ArcCatalog and then importing the shapefile into ArcMap. But when I do this, there are two problems:   Distances are completely wrong. By using the Measure tool, houndreds of kilometers are measured as less than a meter! The numbers on the bottom-right which indicated the position and the units of the map are also wrong. When displayed in Decimal Degrees, are either 0 or 1. When I change this in meters, numbers are still very small.   The problem persists even after the projection is added to the dataframe. What am I doing wrong? Thanks for any help and suggestion.


Help with Proof: $Aut_{Grp}(\mathbb{Z}/2\mathbb{Z}\times \mathbb{Z}/2\mathbb{Z}) \cong S_3$

I need help improving my proof. It's a bit lacking in details, and I don't know how to phrase my reasoning.    For any homeomorphism, identities must map to each other. Therefore, any automorphism of $\mathbb{Z}/2\mathbb{Z}\times \mathbb{Z}/2\mathbb{Z}$ must map $(0,0) \mapsto (0,0)$.   This leaves three other elements, label them $1: (0,1), 2: (1,0), 3: (1,1)$.   Since all of these elements are order two, and the group action of any two will give the third, they can be interchanged with each other freely. So, any bijection of these three elements will result in an automorphism. Hence, there is a function between the automorphisms of $\mathbb{Z}/2\mathbb{Z}\times \mathbb{Z}/2\mathbb{Z}$ and the symmetric group $S_3$  To prove this is a homeomorphism, we show $\mu(g\circ h) = \mu(g)\cdot\mu(h)$. This is true because $g$ and $h$ are automorphisms, and the bijection above supports this property, and this is circular reasoning that I can't seem to articulate more clearly.  To prove this is a bijection, like before, the function maps the pairs to their labels. It's injective, because if two labels are equal, then their points are equal, and so it is with the functions inputs and outputs. It's also surjective because of labeling of inputs and outputs carrying over to functions.    Is "labeling" enough to prove bijection? I don't want to just enumerate all the functions, there has to be a better way. The reasoning for homeomorphism and bijection are both really lame, but I don't know what sort of reasoning I can employ to make this more concise.  This is in the "basic" Group Theory section of Paolo Aluffi's "Algebra: Chapter 0". I have not yet gotten to Rings, Fields, Modules, or any Linear Algebra.


I got back into Magic around the Return to Ravnica block. I'm familiar with the story from then until now.   They're traveling back to Dominaria, and I feel like I'm missing some of the story. It also seems like there's a lot of material to cover. What and how much do I need to know? Where should I start?


How to check if directory exists in %PATH%?

How does one check if a directory is already present in the PATH environment variable? Here's a start. All I've managed to do with the code below, though, is echo the first directory in %PATH%. Since this is a FOR loop you'd think it would enumerate all the directories in %PATH%, but it only gets the first one.   Is there a better way of doing this? Something like find or findstr operating on the %PATH% variable? I'd just like to check if a directory exists in the list of directories in %PATH%, to avoid adding something that might already be there.  FOR /F "delims=;" %%P IN ("%PATH%") DO (     @ECHO %%~P )


How do I stop my HDDs from showing in the safely remove hardware list?

I have just successfully switched from IDE mode to ACHI mode on my mobo, but now all my HDD's show up in the safely remove hardware list.  How do I stop this?


Cardinality of the union of an ascending chain of sets

Let $(A_\gamma)_{\gamma<\alpha}$ and $(B_\gamma)_{\gamma<\alpha}$ be two sequence of sets. They satisfy $|A_\gamma|=|B_\gamma|$ for all $\gamma<\alpha$, where $|\cdot|$ denotes cardinality. Also, whenever $\beta<\gamma$, we have $A_\beta\subseteq A_\gamma$ and $B_\beta\subseteq B_\gamma$.   My question is: is it always true that $$ \left|\bigcup_{\gamma<\alpha}A_\gamma\right|=\left|\bigcup_{\gamma<\alpha}B_\gamma\right|? $$ I am struggling quite a bit when trying to prove this, but I could not find any counterexamples either. This is not given in my book, and I come up with this myself, so I really do not know where to start.


Informed badge can be tracked on Stack Apps, even though it can't be earned

Is the Informed badge available for Stack Apps? I didn't see the badge on  or 's Other Badges section (normally on other sites the informed badge is showing in bronze - other badges section).  But the Informed Badge is showing as the Next badge in my  tab. If the badge does not exist, this need not be showing in the Next badge tracking.  Adding the screen shot of activity tab for future reference:


When another app execute, Occur NullPointerException on android

In Main app, When I execute another app, Occur NullPointerException.  this logcat here   java.lang.RuntimeException: Unable to start activity ComponentInfo{kr.co.iosystem.blackeyeonandroid/kr.co.iosystem.blackeyeonandroid.BlackEyeActivity}:  java.lang.NullPointerException android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184) android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) android.app.ActivityThread.access$800(ActivityThread.java:135) android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) android.os.Handler.dispatchMessage(Handler.java:102) android.os.Looper.loop(Looper.java:136) android.app.ActivityThread.main(ActivityThread.java:5001) java.lang.reflect.Method.invokeNative(Native Method) java.lang.reflect.Method.invoke(Method.java:515) com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) dalvik.system.NativeStart.main(Native Method)  Caused by: java.lang.NullPointerException android.app.Instrumentation.execStartActivity(Instrumentation.java:1417) android.app.Activity.startActivityForResult(Activity.java:3424) android.app.Activity.startActivityForResult(Activity.java:3385) android.app.Activity.startActivity(Activity.java:3627) android.app.Activity.startActivity(Activity.java:3595) kr.co.iosystem.blackeyeonandroid.BlackEyeActivity.netCheckAutoUpdate(BlackEyeActivity.java:479) kr.co.iosystem.blackeyeonandroid.BlackEyeActivity.onCreate(BlackEyeActivity.java:147) android.app.Activity.performCreate(Activity.java:5231) android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148) E/AndroidRuntime( 2678):     ... 11 more   and My code.  protected static Context mainContext =null;  @Override    protected void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState);  setContentView(R.layout.activity_main); netCheckAutoUpdate();   //NullPointerException  }    public void netCheckAutoUpdate() { ConnectivityManager connectivityManager = (ConnectivityManager)   this.getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo ethernet = connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_ETHERNET); NetworkInfo wifi = connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);  if (wifi.isConnected()) {         Intent intent = mainContext.getPackageManager().getLaunchIntentForPackage("package name");         startActivity(intent);    //NullPointerException  } else if (ethernet.isConnected()) {         Intent intent = mainContext.getPackageManager().getLaunchIntentForPackage("package name");         startActivity(intent);     //NullPointerException   } else {         Intent intent = mainContext.getPackageManager().getLaunchIntentForPackage("package name");         startActivity(intent);    //NullPointerException   } }   perhaps, I must use null check?  if this correct, how use null check?   mainContext is global variable   when I connect wifi. occur NullPointerException    this part     NetworkInfo wifi = connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);    if (wifi.isConnected()) {         Intent intent =         mainContext.getPackageManager().getLaunchIntentForPackage("kr.co.iosystem.be_update");         startActivity(intent);    }   in other word,    `startActivity(intent)` here occur NullPointerException.   I proper permission from manifest.  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/> <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>


I am new here. I am looking for a bi-directional editor that works with LaTeX system and supports Unicode. I need it in order to write Hebrew, Arabic, etc.


I came across this code I have no clue what it is doing  // ptr is a pointer to an int if (2[ptr] == 5){     // do something }   I did some of my tests but no matter what value I pass into ptr, 0, negatives, positives, 2[ptr] always evaluates to 0. I am surprised it actually compiles. Can someone explain what this expression is ?


Ubuntu 17.10 version gives black screen with TeamViewer access

I recently updated my Ubuntu version to latest one 17.10. Everything works fine but when I try to access my system through TeamViewer it gives me black screen not able to see anything apart from that.   When I was looking for the online solution I got this link .   As per the above link conversations TeamViewer needs to get the driver updated which can support the latest version of Ubuntu OS.  Any idea about this when can it be done or any other solution to get this sorted out?  Suggestions Please!


Im trying to install Django.  When I use sudo apt-get install pip, there is an error pip not found.  I used sudo easy_install pip, there is an error command easy_install not found.  I used sudo apt-get install python-virtualenv, even that is not working.


Find what values are not in multiple columns

I need to find what "Codes" from column "RMS_CODE" and column "RMS_ALT1_Cde" are not being used in the Child # (starting in position 6 for a length of 4) column within the "APC_Spec" number. I tried using the sql in the image provided, but it only looks in the row and doesn't check the whole column within the "APC_Spec" requirement. Can anyone suggest a method to check which codes are not being used per "APC_Spec" in the Child column #?


I have two submit buttons in a form. How do I determine which one was hit serverside?


See which methods of one class are used in another in IDEA

I have the same question as , but then with JetBrains Intellij IDEA 13.


So I have a  which I need to buy RAM for.  Now the specs say that it supports DDR3-L.  I am thinking of getting the following kit:  CORSAIR Vengeance (2x8) 16GB 204-Pin SO-DIMM Model CMSX16GX3M2B1600C9 DDR3 1600 (PC3 12800) Cas Latency 9 1.35V (also supports operation at 1.5V) Dual Channel Kit Timing: 9-9-9-24   My question is whether this will work for a slot that is specified as DDR3 L?


I read  about converting the alphabet to numbers but I don't understand how to convert the numbers back into letters. I would appreciate if someone could expand on that, especially and more specifically, the chr() function described in the thread. I've already tried searching for the chr function but there aren't many tutorials for it.


Correlation with non-normal distribution

I want to find the correlation between a continous variable with a non normal distribution, positively skewed, and a categorical variable with 4 categories. The only test I can find that fits these variable is the kruskal wallis test, but I am not sure how I can use this test to find the correlation or relationship between my two variables. Can anyone suggest how this relates to correlation or another test to use with my data? Rookie with statistics, so please let me know if any more information is required.


Can someone help me figure out what this TiKZ code does?

\documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.15}  \begin{document}     \newcommand{\xmax}{14}     \newcommand{\fmin}{(pi/3)}     \newcommand{\fmax}{(2*pi)} \begin{tikzpicture}[domain=0:\xmax, samples=500]  \draw[ultra thick, red] plot (\x, {sin(deg(exp(ln(\fmin)+\x/\xmax*(ln(\fmax)-ln(\fmin)))*\x))} );  \end{tikzpicture} \end{document}   I would understand if LaTeX repeat the code below this statement many times.


So I am reading the rulebook of magic the gathering. I haven't played it but I am curious about the game. In the rule book, I didn't see how much mana you start off with. For example .   If you have one forest land card on the field can you summon her? My understanding was that you had to have 2 land cards on the field since she requires two mana. Do you start off with a certain number and type of mana in your mana pool? How much mana does a land produce and how is that determined?


Could you help me understand the meaning of "be it practices" in the context below?     People will always find some aspect of another culture distasteful, be it practices, a way of treating friends or relatives, or simply a food that they can not manage to get down with a smile.


How should "midnight on..." be interpreted?

From what I understand, the word "midnight" is usually interpreted incorrectly.  Midnight is written as "12am" which would imply that it's in the morning.  Therefore, it should be at the start of the day.  On the other hand, both  and the  define it as "twelve o'clock at night".  Some examples:   "Midnight on the 10th of December" "Midnight Thursday" "Midnight tonight"   are usually interpreted as:   Straddling the 10th and the 11th of December Straddling Thursday and Friday Straddling today and tomorrow   but should they technically mean:   straddling the 9th and the 10th of December? straddling Wednesday and Thursday? This is much less clear. Technically is there a midnight "tonight", or is midnight "tomorrow morning"?   What do you think? How should "midnight" be interpreted?


I was given a laptop with a corrupted XP OS on it-- like to install Ubuntu

I was recently given a laptop with a "corrupted" XP OS on it, according to the old owner. From what he says, XP will start to boot and then completely crash.  I haven't seen the laptop yet, but I'd like to explore the possibility of wiping the OS and installing Ubuntu. Would this be a possibility?  Should I look at burning Ubuntu to CD and trying to boot from the CD, or is there a way to get rid of the OS mess first, and then try and boot from a blank laptop?  I am not sure how the XP system got corrupted (whether it's a virus or perhaps something wrong with the laptop itself).  Any advice or tips on how to approach this (or whether it's worth it) would be greatly appreciated.  Thank yoU!


We have C#.Net windows application and i need to know how to get the memory consumption details of my application. I already tried System.Diagnostics.Process to get the current process memory information. I need to know how many objects are in memory and also memory consumption details for each objects.