When using URL inspection and Live Test in the new Google Search Console the Googlebot does not load most resources (Javascript, CSS and Images). This results in the Search Console telling me my pages are not mobile friendly (because the CSS is not loaded).  When looking at the Live Screenshot the pages look like plain, unstyled HTML.  I tested multiple websites, some created by strangers, others created by me, some hosted on my server, others hosted on servers of major hosting services. On all of these websites the problem occurs.  For every website multiple Live Tests were performed. Sometimes all resources were loaded perfectly, but most of the time (>90%) nearly all of the resources (including resources hosted by Google, e.g. Analytics or Google Fonts) did not get loaded. The Search Console simply marks it as "Other Error"    When using the old Search Console, the websites get marked as "mobile friendly" and are rendered normally. PageSpeed Insights and the new  also render the pages perfectly fine.  The resources are not blocked by the Robots.txt. I also tried explicitly allowing the Googlebot to access CSS, JS and images. It did not help.  I've read speculations, that the new Search Console simulates a very slow mobile connection, but I've created very lightweight dummy-websites whose resources are not getting loaded as well.  How can I get the new Search Engine Console to load my resources?

I'm currently analysing some landing pages with the URL inspection tool of the Search Console, and most of them look to be not loaded (script and css). The main reason announced by Search Console is: other error (without any more information).  I was thinking the problem might be that the scripts are too complex, but some of them are very simple.


How can I show that $n(n^2-1)$ is divisible by 24, if $n$ is an odd integer greater than $2$?  I am thinking that since odd numbers have the form of $2n-1$ in which if it is to be more than $2$, it will be $2n-1+1 = 2n+1$. So would it be correct to use this and try solving through induction?

At our college, a professor told us to prove by a semi-formal demonstration (without complete induction):   For every odd natural: $24\mid(u^3-u)$   He said that that example was taken from a high school book - maybe I din't get something, but I really have no idea to prove that without using complete induction.  Any idea of smart demonstration?  Thanks for your help. (Excuse my bad English.)


Good afternoon! I have a button, when clicked, QFileDialog opens. I select the file. The path is written in the LineEdit and variables. But the variable does not change the value  path = None def get_file_dbf():     if ui.file_dialog.exec_():         file_name = ui.file_dialog.selectedFiles()         ui.lineEdit.setText(file_name[0])         path = str(file_name[0])  ui.toolButton.clicked.connect(get_file_dbf)  def go_transfer():     print(path) #None  ui.pushButton.clicked.connect(go_transfer)

How can I create or use a global variable in a function?  If I create a global variable in one function, how can I use that global variable in another function? Do I need to store the global variable in a local variable of the function which needs its access?


Recently I've been unable to connect to my Minecraft server which I play on with a friend. It seems my friend has been able to access it just fine, but every time I try to connect I get the error:     connection lost: timed out   The strange thing is, this happened seemingly out of nowhere while I was playing two days ago. I lost my connection to the server while I was playing, and then when I tried to reconnect, I got this error. I've looked all over the internet for a solution, but I've tried everything that was suggested: my firewall is completely turned off, and I have set both inbound and outbound rules for hamachi. Resetting the server doesn't seem to help, nor does restarting my machine. Does anyone have a solution to this problem?  I've seen a somewhat similar problem raised in , but all of its answers either don't work for me, or are not applicable because I'm using Hamachi instead of port forwarding. My firewall settings have not changed since I was previously able to connect--same for my router/modem settings. IPconfig is not applicable because I'm using the IP address given to me by Hamachi, not the IP address of my machine. I didn't specify a port when I was initially able to connect. Additionally, the IP address of the Hamachi network I'm using hasn't changed since I was able to connect. And I can confirm that I do indeed have a working internet connection. Therefore I conclude that my problem is an entirely separate one from the one raise in .

My friend had hosted a Minecraft server before and brought it back up today with my help. He and anyone in his LAN can connect. However we have had a few people try to connect, including me, and when we try to connect it gives the message:  Failed to connect to the server Connection timed out: connect  What does this exactly mean? How do we fix this?


I am Unable to close current asp.net page using C# code. I tried:  ClientScript.RegisterClientScriptBlock(Page.GetType(),                                         "script",                                         "window.close();",                                         true);   I am not getting any error, but it doesn't work.

What is the best way to close an ASPX page from the code-behind?    I have a button event handler that I want to close the page after the user has clicked an ASP.NET button on the page.  I have tried to programmatically add a JavaScript method that contains a window.close() command to the OnClientClick event to close the page but it does not work.  The button is also a asp:AsyncPostBoskTrigger for an AJAX Update Panel.  The application uses .NET Framework 3.5.


My friend just bought payday 2 yesterday, and he doesn't want to download it because it will take a long time.   Let's pretend that there are two subject here, A and B. Both have payday, but only B has downloaded it.  A takes the game data from Steam/SteamApps/common on B's computer and copies it to the same location on his own. He doesn't know about the appmanifest so he doesn't copy it.  I asked him "Did you copy the appmanifest too?". He said no, so I uploaded my appmanifest (for Payday 2) so he can download it. I told him to place it in the steamapps file and he did.   When he restarted steam, the game was still not installed. How can he install it?

Yesterday I purchased GTA V for the PC via Steam and downloaded it onto my laptop at work. When I got home to transfer the 65 GB worth of files to my main computer, I cleared up 65 GB of space on my SSD and have just enough room to fit those downloaded files onto a Steam folder that I created. However, Steam won't recognize the game as installed. I tried to click the "Install" button for the game where it's currently pointed to the folder where I've copied all of this data, but after exiting Steam and opening it again, it's saying that there isn't enough room to install the game. I spent several hours looking up ways to solve this, but I haven't been able to so far.  Also, Is 65 GB enough space for this game, or will I need to clear up more room for it?  Edit: After following Ross's guide below, everything worked fine with the backup process!


I have installed a version of GNOME after which the text in terminal appears garbled like this!

I installed Oneiric as a guest OS in VirtualBox using the Mini CD. I installed the ubuntu-desktop package and everything seems to work fine - well, except for a font issue with the terminal:    As you can see, some of the letters overlap and it's difficult to read. I checked the settings and it the checkbox "Use the system fixed width font" is checked with "Monospace | 12" selected underneath it.    Edit: running the commands mentioned in the comments:  $ fc-match "Monospace" DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book" $ gconftool --get /desktop/gnome/interface/monospace_font_name Monospace 10 $ debsums ttf-dejavu-core /usr/share/doc/ttf-dejavu-core/AUTHORS                                        OK /usr/share/doc/ttf-dejavu-core/BUGS                                           OK /usr/share/doc/ttf-dejavu-core/NEWS.gz                                        OK /usr/share/doc/ttf-dejavu-core/README                                         OK /usr/share/doc/ttf-dejavu-core/changelog.Debian.gz                            OK /usr/share/doc/ttf-dejavu-core/copyright                                      OK /usr/share/doc/ttf-dejavu-core/langcover.txt.gz                               OK /usr/share/doc/ttf-dejavu-core/status.txt.gz                                  OK /usr/share/doc/ttf-dejavu-core/unicover.txt.gz                                OK /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf                      OK /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf                           OK /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf                  OK /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf                       OK /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Bold.ttf                     OK /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf                          OK


I am writing an article, and I am having some trouble making my equations large enough to stand out on the page.  Does anyone have a suggestion on how to best resize this?  Thanks  \documentclass[11pt]{article} \usepackage[margin=1in]{geometry} \usepackage{amsfonts, amsmath, amssymb,} \usepackage[none]{hyphenat} \usepackage{fancyhdr} \usepackage{tikz} \usepackage{pgfplots} \usepackage{pst-eucl} \usepackage[nottoc, notlot, notlof]{tocbibind} \usepackage{bm,nicefrac}  \begin{document}  \subsection{My Text Begins Below} Text Here Text Here Text Here Text Here Text Here Text Here Text Here Text Here Text Here Text Here Text Here Text Here Text Here Text Here Text Here Text Here Text Here Text Here Text Here Text Here Text Here Text Here Text Here Text Here Text Here Text Here Text Here Text Here Text Here Text Here Text Here Text Here.     \begin{center}      \boldmath          \[     \underbrace{ \mathit{}   \frac{x_n({A^{x+y}})}{b} }\unboldmath_{\text{{\begin{huge}$=c$\end{huge}}}} \]     \unboldmath      \underbrace      Figure 1: My equation above.      \unboldmath      \end{center}  \end {document}

I would like to typeset a simple-to-medium-difficulty math formula on an A4/letter paper. It needs to be huge and preferably centered and portrait.   I can take care of the paper size, the orientation — but not the centering and font size.  Any resources you can recommend?


I want to know if there is no risk to install ubuntu 18.04 in Lenovo Z50-70, dis you test the new distro in that model of lenovo? Remember ubuntu 17.04 crashed the Bios of this model,  I wanna install this release (18.04) but I am afraid of crahs my laptop Lenovo Z50-70, becuase I nees dual boot with win 10.

I have a device on which I would like to install Ubuntu. How do I find out if Ubuntu will work on it?


I want to install hadoop in my Ubuntu 14.04 system. Following the instruction of a blog, I need to update the "source list". But when I input the command: sudo apt-get update I get errors: E: Type '--2016-08-04' is not known on line 1 in source list /etc/apt/sources.list       E: The list of sources could not be read. E: The package lists or status file could not be parsed or opened.  At the same time, a stop sign shows in the upper right of the menu says that: An error occured. Please run Package Manager from the right-click menu or run apt-get in a terminal to see what is wrong. The error message was: 'Unknown error: '<class 'SystemError' E:Type '--2016-08-04' is not known on line 1 in the source list /etc/apt/sources.list. This usually means that your installed packages have unmet dependencies"  /etc/apt/sources.list: --2016-08-04 21:29:00-- (try: 1) http://pastebin.com      /raw.php?i=uzhrtg5M Resolving pastebin.com (pastebin.com)...      104.20.63.56, 104.20.64.56 Connecting to pastebin.com   (pastebin.com)|104.20.63.56|:80... connected. HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers. Retrying.  This is the beginning of the sources.list.

Every once in a while I see users having issues to update due to errors like this:  E:Type 'ain' is not known on line 1 in source list /etc/apt/sources.list.d/some-ppa.list'   with varying types/line numbers/source list files (often after removing a PPA).  How can such an error be fixed?


Given the function   $$ f(x) = \left\{\begin{array}{cc} e^{- \frac{1}{x^2}} & x \neq 0 \\ 0 & x = 0 \end{array}\right. $$  show that $\forall_{n\in \Bbb N} f^{(n)}(0) = 0$.  So I have to show that nth derivative is always equal to zero $0$. Now I guess that it is about finding some dependencies between the previous and next differential but I have yet to notice one. Could you be so kind to help me with that?  Thanks in advance!

Let $f$ be defined on $\mathbb{R}$ by $f(x) = e^{-1/x^2}$ for $x$ not equal to $0$. and $f(0)= 0$. Prove that $f^{(n)}(0)=0$ for all $n = 1, 2,3$ ...  Do I need to use Taylor expansion from calculus class?  Any hint would be appreciated.


I want to download files from torrent to my ubuntu server. I want to install utorrent and download files using torrent. I wanna know if it is possible? I want to download that files on my server directly so I can share them with download link directly.   If it is possible then how will I be able ti get link for that file to share it for downlaod?   Can we do the same using any contropanel? Don't think so. I just want to save those file downloaded from torrent to my server and share their download link to people. Please tell me ow is it possible. I am asking this because I don't want to download the files first on my computer than upload it to server.

Yesterday one of my friends asked me if there is some torrent client that runs on the command-line.  I had no answer for him, but I think that you have some.


My DSLR camera (with its lenses) got stolen and I want to buy a digital camera: more precisely, a mirrorless camera. I would like to make:   street photography above all head shots, full body shots, panoramic shots, travel shots some effects such as panning, light-painting, infrared photo and high-speed photos.    I have a model in mind, but I won't write it here because I understand that's frowned upon. Sensor must be APS-C. Any suggestions how could I make up my mind about which camera to buy? It would be ok to spend more on the body and buy only lens for now, postponing the purchase of the second one to a later time.  Also, it's been many, many years since I last bought a camera, so any advice on which lens to buy together with the body would be appreciated. Again, I understand you cannot recommend a specific set, but suggestions such as focal lenght, f-ratio, etc. would be great.  EDIT: I'm not sure whether my question is an exact duplicate of the mentioned question, because I specified the applications: the other question is more open-ended (it's about "my first mirrorless camera", but I'm specifically looking for a street-photograpy camera, APS-C, capable of high-speed photos, so maybe that translates on some requirements on the lens? or only the motor?).

I'm looking to buy a new camera. I've looked at  and decided that mirrorless is right for me. But what next?   What should I be looking for when shopping for a mirrorless interchangeable lens camera (and what should I not be concerned with)?


I have looked into the documentation of enumitem but couldn't figure out how to handle this.  I just want a list that aligns the item names to a standard indent from the left and then aligns the item texts according to the longest item name. Isn’t this the natural way you would put a list in typesetting?  But enumitem does something else wihtout configuration: It aligns the item’s text to a standard indent and then puts the name left from it, so that long item names produce overfull boxes to the left.  \documentclass{article} \usepackage{enumitem}  \begin{document}  \begin{enumerate}  \item[QuiteLongItemName] Item text... \item[OtherItem]  \end{enumerate}  \end{document}   How do you change this?

I am trying to learn how to use enumitem's keys to adjust a description list.  In this case, I would like to have my list items and description text both left aligned, but the description text should all start at the same horizontal position.  What I have below comes pretty close, but it seems that the setting of \labelwidth is being ignored, and that there is some other thing I need to add to get the correct value of leftmargin.  The tabular version produces that output I want, but would prefer to use the description list from enumitem.  \documentclass{article} \usepackage{enumitem} \usepackage{calc}  \newcommand*{\LongDescription}{This is a  long sentence to check that when it gets wrapped it is indented properly on the next line, but doesn't seem to when used in the list.}% \newcommand*{\ShortDescription}{A very short description.}%  \begin{document} \newcommand*{\LargestItem}{The Largest Named Item}% \newlength{\MaxWidth}% \settowidth{\MaxWidth}{\LargestItem}% \newlength{\MaxWidthPlusLabelSep}% \setlength{\MaxWidthPlusLabelSep}{\labelsep+\MaxWidth}%  \begin{description} [leftmargin=\MaxWidthPlusLabelSep,labelwidth=\MaxWidth] \item Small Name:     \ShortDescription \item The Largest Named Item: \LongDescription \item Larger Name:     \ShortDescription \end{description}   \hrule\medskip  I want something like this, but should be able to do this with a list:  \bigskip \begin{tabular}{l@{ }p{\linewidth-\MaxWidthPlusLabelSep}} Small Name:     &\ShortDescription\\\\     The Largest Named Item:     &\LongDescription\\\\     Larger Name:     &\ShortDescription \end{tabular} \end{document}   I have tried the solutions on how to  and  but have not been able to adapt them to what I want.


This is my script  cd /opt/product/vinoth -- some operations -- cd -   While executing this command cd - the old path get displayed in the console.  is there is any way to block this from displaying in console.  The same can be avoided in make files by using @ infront of the command.  By surfing i understood that this can be achieved using cmd=$(cd -)  The command was not executing and path was not changed.

This  gave me cd - as shorthand to change to my previous directory in Bash. It does have a major problem: it prints the directory it changes to, wasting my screen space, as that directory is then repeated in the prompt on the next line.  I know I can do cd $OLDPWD, also mentioned in that answer, and cd - >/dev/null but that is much more typing.   In the bash man page it says:     ... or if - is the first argument, and the directory change is successful, the absolute path name of the  new  working  directory  is written to the standard output.   How can I make - not to be the first argument? By using any of the cd optional arguments? Any other way to suppress the echo or minimise typing without the need for defining functions/aliases on every machine I work with?


We all know that derivative of $e^x$ is $e^x$. Is exponential function only function that has such property? If yes how to prove that there are no other functions. If no, what are other functions? Help me please

I was wondering on the following and I probably know the answer already: NO. Is there another number with similar properties as $e$? So that the derivative of $\exp(x)$ is the same as the function itself. I can guess that it's probably not, because otherwise $e$ wouldn't be that special, but is there any proof of it?


My intended goal is to create a script that when run, will check the state of a setting, then change it to the opposite state. The setting in question is regarding the manual or disabled state of proxy settings in Ubuntu's settings.  I can manually obtain the state of this setting with the command:  gsettings get org.gnome.system.proxy mode   This will return auto, manual, or none. I don't use the first state, so let's ignore that from here on. Now, once the state is returned, my goal with the script is to then run either one of the following commands:  gsettings set org.gnome.system.proxy mode 'manual' gsettings set org.gnome.system.proxy mode 'none'   The command it runs will be the state not currently set. To that end, I have attempted the following in a script:  if [ 'gsettings get org.gnome.system.proxy mode' = 'none' ] then gsettings set org.gnome.system.proxy mode 'manual' notify-send "Manual" else if [ 'gsettings get org.gnome.system.proxy mode' = 'manual' ] then gsettings set org.gnome.system.proxy mode 'none' notify-send "Disabled" fi fi   This is saved in a file with chmod +x applied. When run from the terminal, nothing happens. I just get a new line to await a new command.  Where have I gone wrong?  In addition, is it possible to get this to work on a single line, like so:  sh -c "if [ $(gsettings get org.gnome.system.proxy mode) = \"'none'\" ];then gsettings set org.gnome.system.proxy mode 'manual' && notify-send \"Manual\";elif [ $(gsettings get org.gnome.system.proxy mode) = \"'manual'\" ];then gsettings set org.gnome.system.proxy mode 'none' && notify-send \"Disabled\";fi"   Again, same (lack of) results.

I want to monitor the output of a command and whenever it contains a certain string I want to run another command.  Example: when command1 outputs 1234 I want to run command2


I have tried all the steps listed at . This is the "Not enough free space" message I get:    The upgrade needs a total of 107 M free space on disk /boot. Please free at least an additional 22.3 M of disk space on /boot. Empty your trash and remove temporary packages of former installations using sudo apt-get clean.   This is all I have in my /boot partition:  dpkg -l "linux-image*" | grep "^i"   ii linux-image-4.10.0-24-generic 4.10.0-24.28 amd64 Linux kernel image for version 4.10.0 on 64 bit x86 SMP  ii linux-image-extra-4.10.0-24-generic 4.10.0-24.28 amd64 Linux kernel extra modules for version 4.10.0 on 64 bit x86 SMP  ii linux-image-generic 4.10.0.24.26 amd64 Generic Linux kernel image   This tells me my /boot partition is 64% full:  sudo df -h Filesystem   Size Used Avail  Use% Mounted on udev  1.4G 0    1.4G   0%   /dev tmpfs  276M 8.8M 267M   4%   /run /dev/mapper/ubuntu--vg-root  914G 16G  853G   2%   /tmpfs  1.4G 1.8M 1.4G   1%   /dev/shm tmpfs  5.0M 4.0K 5.0M   1%   /run/lock tmpfs  1.4G 0    1.4G   0%   /sys/fs/cgroup /dev/sda1 236M 143M 81M    64%  /boot tmpfs  276M 172K 276M   1%   /run/user/1000   I have emptied my trash and uninstalled old kernels. Do you have anything else I can try to remove excess content from /boot?

My /boot partition is nearly full and I get a warning every time I reboot my system. I already deleted old kernel packages (linux-headers...), actually I did that to install a newer kernel version that came with the automatic updates.  After installing that new version, the partition is nearly full again. So what else can I delete? Are there some other files associated to the old kernel images?  Here is a list of files that are on my /boot partition:  :~$ ls /boot/ abi-2.6.31-21-generic         lost+found abi-2.6.32-25-generic         memtest86+.bin abi-2.6.38-10-generic         memtest86+_multiboot.bin abi-2.6.38-11-generic         System.map-2.6.31-21-generic abi-2.6.38-12-generic         System.map-2.6.32-25-generic abi-2.6.38-8-generic          System.map-2.6.38-10-generic abi-3.0.0-12-generic          System.map-2.6.38-11-generic abi-3.0.0-13-generic          System.map-2.6.38-12-generic abi-3.0.0-14-generic          System.map-2.6.38-8-generic boot                          System.map-3.0.0-12-generic config-2.6.31-21-generic      System.map-3.0.0-13-generic config-2.6.32-25-generic      System.map-3.0.0-14-generic config-2.6.38-10-generic      vmcoreinfo-2.6.31-21-generic config-2.6.38-11-generic      vmcoreinfo-2.6.32-25-generic config-2.6.38-12-generic      vmcoreinfo-2.6.38-10-generic config-2.6.38-8-generic       vmcoreinfo-2.6.38-11-generic config-3.0.0-12-generic       vmcoreinfo-2.6.38-12-generic config-3.0.0-13-generic       vmcoreinfo-2.6.38-8-generic config-3.0.0-14-generic       vmcoreinfo-3.0.0-12-generic extlinux                      vmcoreinfo-3.0.0-13-generic grub                          vmcoreinfo-3.0.0-14-generic initrd.img-2.6.31-21-generic  vmlinuz-2.6.31-21-generic initrd.img-2.6.32-25-generic  vmlinuz-2.6.32-25-generic initrd.img-2.6.38-10-generic  vmlinuz-2.6.38-10-generic initrd.img-2.6.38-11-generic  vmlinuz-2.6.38-11-generic initrd.img-2.6.38-12-generic  vmlinuz-2.6.38-12-generic initrd.img-2.6.38-8-generic   vmlinuz-2.6.38-8-generic initrd.img-3.0.0-12-generic   vmlinuz-3.0.0-12-generic initrd.img-3.0.0-13-generic   vmlinuz-3.0.0-13-generic initrd.img-3.0.0-14-generic   vmlinuz-3.0.0-14-generic   Currently, I'm using the 3.0.0-14-generic kernel.


How can I solve this sum?  $$S_{n} = \sum_{k=1}^{n} k \Big( \frac{3}{2} \Big)^{k-1}$$  Worth noting: I can use lower index $k = 0$ instead of $k = 1 $, because the result does not change.  I have tried using "perturbation method".      Perturbation method:      $$S_{n} + x_{n+1} = x_{0} + \sum_{k=1}^{n+1} x_{k}$$      $$S_{n} + x_{n+1} = x_{0} + \sum_{k=0}^{n} x_{k+1}$$   My attempt:  $$S_{n} + (n+1) \Big( \frac{3}{2} \Big)^{n} = \sum_{k=0}^{n} (k+1)\Big(\frac{3}{2}\Big)^{k}$$  $$S_{n} + (n+1) \Big( \frac{3}{2} \Big)^{n} = \underbrace{\sum_{k=0}^{n} k \Big(\frac{3}{2}\Big)^k}_{\text{stuck here}} + \sum_{k=0}^{n} \Big(\frac{3}{2}\Big)^{k}$$  I have tried perturbing the "stuck here" sum, but it leads to infinite loop of perturbations, I think.  I'm new to sums and sequences so I don't know the tricks yet, and I think I am missing something simple to solve it.   WolframAlpha gives result:  $$\sum_{k=1}^{n} k \Big( \frac{3}{2} \Big)^{k-1} = 2 \Bigg( \Big( \frac{3}{2} \Big)^n (n-2) + 2 \Bigg)$$ Thanks for tips.

I want to know the general formula for $\sum_{n=0}^{m}nr^n$ for some constant r and how it is derived.  For example, when r = 2, the formula is given by: $\sum_{n=0}^{m}n2^n = 2(m2^m - 2^m +1)$ according to   Thanks!


Since Dumbledore can understand parseltongue without being a parselmouth, and Ron can mimic enough parseltongue to open the Chamber door without being a parselmouth,  it seems logical that someone like Dumbledore who has deliberately studies parseltongue enough to be able to understand conversations between parselmouths, should be able to mimic the sounds enough to be able to speak it, at least better than someone like Ron    However, through out the books there is no indication that Dumbledore could do any more than understand parseltongue spoken in the pensieve memory. Going through questions about parseltongue through this site gives me a similar impression. Is there any indication of whether Dumbledore could speak parseltongue or not? Is there anything preventing someone from learning to speak parseltongue? Could Dumbledore have a conversation with Harry or a snake entirely in parseltongue?    An answer at any level of canon is welcome

In Harry Potter, it says that Dumbledore can speak Parseltongue. Where is this proved, and where does he learn it?


I am stuck in a hole in minecraft 50-125 bricks deep and I only have flint on full game! I can't kill myself and I am very stuck. Please tell me how to get up as soon as possible

I'm stuck underground.   I can't mine any further to reach lava. There is no water nearby, and zombies can't reach me.  I can't see to find any blocks to suffocate my character.  NBTEdit and similar programs don't work on Mac, so I can't edit my save file to escape. I have hardly any blocks so cannot jump and lay my way up. I can't see, and do not have any torches, so can't make a staircase back up. I don't want to make new save as I have an awesome house filled with stuff that took me ages to find.    How can I get back to the surface?


How could I prove that $x^2+1$ and $x^4+1$ are irreductible over $\mathbb{Z}/2 \mathbb{Z}$ and $\mathbb{Z}/3 \mathbb{Z}$?  Theorem : Let $A$ an integral domain and $I$ a proper ideal of $A$. If $f(x) \not \equiv a(x)b(x) (\mod I)$ for any polynomials $a(x)$, $b(x)$ $\in A[x]$ of degree $\in [1, \deg(f))$, then $f(x)$ is irreductible in $A[x]$  I think I have to use this theorem, but I am not certain. Is anyone could help me at this point?

How could it possible to factorize $x^8-1$ in product of irreducibles in the rings $(\mathbb{Z}/2\mathbb{Z})[x]$ and $(\mathbb{Z}/3\mathbb{Z})[x]$?  I'm having a hard time starting the problem. Could anyone help me at this point?


I am using a Dell Vostro 1440, with Intel(R) Celeron(R) CPU P4600 processor size: 1995MHz,capacity: 1995MHz, 2GB RAM.  I have installed Ubuntu 14.04 LTS 64-bit. It is running too slow. I want to know whether I am using the right OS for my system specification, and if so, how I can improve performance.

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


Can i sweep the storage. Is this data i don't want or the data that runs my phone. Not sure exactly what my huawei phone stores in storage. Whats miscellaneous?

If you're not used to seeing the 'low on internal storage' notification, what is it that you're doing to keep your phone's internal memory from filling up so quickly?   The 'SD Card and Phone Storage' menu in the settings doesn't really tell me much other than how much is free. And, I don't really have that many applications installed. The top 5 storage hogging apps on my phone are Gmail (18.6 MB), Twitter (17.5 MB), Facebook (12.55 MB), Maps (9.63 MB), and Swype (6.06 MB).  So, are there apps out there (besides your normal file manager ones, like Astro) that will help monitor internal phone storage? Is there something I should be doing to keep my phone storage use to a minimum?


In the context of a convex optimization problem I came across with the following function:  $$f_1(\textbf{x})=(\textbf{x}-\textbf{x}_k)^T\textbf{A}(\textbf{x}-\textbf{x}_k) - t^2$$  EDIT $f_1$ is a real-valued function and $t$ is a positive real number. Also $\textbf{A}$ is positive definite.  and I am trying to take its gradient following the rules I found .  Starting from the given form I get: \begin{eqnarray*} f_1(\textbf{x})&=&\textbf{x}^T\textbf{A}\textbf{x}-\textbf{x}^T\textbf{A}\textbf{x}_k-\textbf{x}_k^T\textbf{A}\textbf{x}+\textbf{x}_k^T\textbf{A}\textbf{x}_k-t^2\\   &=&\textbf{x}^T\textbf{A}\textbf{x}-2\textbf{x}_k^T\textbf{A}\textbf{x}+\textbf{x}_k^T\textbf{A}\textbf{x}_k-t^2\\ &=&\textbf{x}^T\textbf{A}\textbf{x}-2\textbf{q}^T\textbf{x}+\textbf{x}_k^T\textbf{A}\textbf{x}_k-t^2\\ \end{eqnarray*}  where in the last line I have considered a row vector $\textbf{q}^T=\textbf{x}_k^T\textbf{A}$  So what I get is: $$\nabla f_1(\textbf{x})=\textbf{A}\textbf{x}-2\textbf{q}=\textbf{A}\textbf{x}-2\textbf{A}\textbf{x}_k=\textbf{A}(\textbf{x}-2\textbf{x}_k)$$  But looking at my notes I see that the result is: $$\nabla f_1(\textbf{x})=2\textbf{A}(\textbf{x}-\textbf{x}_k)$$  Am I doing something wrong? Also, does it matter if $\textbf{A}$ is positive definite or not?

It's stated that the gradient of:  $$\frac{1}{2}x^TAx - b^Tx +c$$  is   $$\frac{1}{2}A^Tx + \frac{1}{2}Ax - b$$  How do you grind out this equation? Or specifically, how do you get from $x^TAx$ to $A^Tx + Ax$?


In Skyrim, where is a good place to sell dragon bones and scales.  I'd like to know of a city and store that will take them.  I'm having trouble finding one.

There's a great question on , and there's even a question on , but the question I'm after:  Question: Where can one sell those blasted Dragon Bones and Scales? Is there a list of merchants that will buy them?  Edit: I'm not looking for just a vendor, but preferably a list of vendors (as I've collected about 25 of the them). The ultimate answer would also have an indication of (approximate) amount of gold available on the merchant.  After some searching I found  on the Skyrim Wiki, but that doesn't answer my question. The  gives a little bit of info on selling them, but no clue on where to sell them.  My follower would certainly be very thankful for any answer to this question, as she's probably getting tired of hauling this loot around...


I am a beginner programmer so this is a beginner question/project. I have a class called Screen which is a simple GUI made with a JTabbedPane and all of the tabs are blank. In the first tab, "actionPanel", I have a simple JLabel that contains the text "THIS IS A TEST." This JLabel is called dA, and there is a second empty one called dB.  I also have a class, Character, for an object with parameters name, HP, and a URL for the location of that character's corresponding image.  I want to be able to call a method, setupDialogueEnvironment(), which so far is only supposed to change the JLabel created by Screen to contain a character's corresponding image instead of "THIS IS A TEST." However, I keep getting null pointer exceptions when I try to do this. I believe it has something to do with the java.net.URL's I am using, or the ImageIcons perhaps. I am not sure. I know that the JLabel does appear when it just says "THIS IS A TEST", soo when it has nothing to do with images.  I wonder if I am not using the repaint() method correctly. You will see in my code that I tried calling repaint() on just about every JComponent I could to see if it would help, but it does not. My screen, after calling the method setupDialogueEnvironment(), still just displays "THIS IS A TEST."  Thank you in advance for help. Here is my code, and I will clarify a couple of points about the code below.    package Package1; import javax.swing.*; import java.awt.*; import java.net.URL.*; public class Screen {      // Global declaration of GUI elements     JFrame frame;     static JPanel actionPanel, onPerson, wt, mats, craft, quests, notes;     static JTabbedPane mtp, inventory;      // Image URLs and their corresponding ImageIcons and JLabels     static JLabel dA = new JLabel("THIS IS A TEST");     static JLabel dB = new JLabel() ; // dialogue member A's and B's JLabels     static ImageIcon diA = new ImageIcon();     static ImageIcon diB = new ImageIcon(); // ImageIcons for dialogue members A and B      public Screen()     {         // Set up the frame          // Create tabbed panes and panels          // Add tabs to JTabbedPanes          // Finalize some JFrame things, like setDefaultCloseOperation      }      // the method in question     public void setupDialogueEnvironment(URL urla, URL urlb)     {         diA = new ImageIcon(urla);         diB = new ImageIcon(urlb);          dA.setBackground(Color.RED);         dB.setBackground(Color.BLUE);          dA = new JLabel(diA);         dB = new JLabel(diB);          actionPanel.add(dA);         actionPanel.add(dB);          dA.setSize(300, 300);         dB.setSize(300, 300);          dA.setLocation(100, 100);         dB.setLocation(600, 100);          dA.setVisible(true);         dB.setVisible(true);          //repaint-- how do I get it to work?         frame.repaint();         actionPanel.repaint();         mtp.repaint();         dA.repaint();         dB.repaint();      } }      I have a class called HomesteadRunner which contains my main method and creates a Screen object In HomesteadRunner I have an object DialogueState, which calls a method whose only purpose is to call setupDialogueEnvironment() on the Screen object. I have made two Character objects, each with a correctly copied file path for their corresponding image. The code for this is below.  import package1.*; public class HomesteadRunner { public static void main(String[] args) {     // Create characters and attack. See if HP adjusts properly.     Skills skiller = new Skills();      Screen screen = new Screen();      Character ca = new Character("Bob", 100, Screen.class.getResource("C:\\Users\\jleekas\\IdeaProjects\\HomesteadV1\\src\\Resources\\imgres.jpg"));     Character cb = new Character("Billy", 100, Screen.class.getResource("C:\\Users\\jleekas\\IdeaProjects\\HomesteadV1\\src\\Resources\\imgres-1.jpg"));      // Create a dialogue state     DialogueState ds = new DialogueState();     ds.setup(ca, cb, screen); }   }   Thank you very much for your help & advice in advance.

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


Problem:   How to find the following limit :   $$\lim_{n \to \infty}[(1+\frac{1}{n})(1+\frac{2}{n})\cdots(1+\frac{n}{n})]^{\frac{1}{n}}$$ is equal to   (a) $\frac{4}{e}$  (b) $\frac{3}{e}$   (c) $\frac{1}{e}$   (d) $e$    Please suggest how to proceed in this problem thanks...

I'm supposed to calculate: $$\lim_{n\to\infty} e^{-n} \sum_{k=0}^{n} \frac{n^k}{k!}$$ By using WolframAlpha, I might guess that the limit is $\frac{1}{2}$, which is a pretty interesting and nice result. I wonder in which ways we may approach it.


Let's first talk about simple present tense. John : "I have a fever." John said that he has a fever. Here no change in tense because John still has a fever.  Now take an example of present perfect tense. John : "I have lost my keys." John said that he has lost his key. Here no change in tense because the effect of losing key (he can't get into his home) can still be seen, heard at the time of reporting.  First tell me is this 'has lost' correct in indirect speech under the condition that effect of loosing key can still be seen at the time of reporting ?  Now my question is something which is not an example of reported speech. 1) "I noticed that the clock has stopped." And 2) "The president learned that the earthquake has caused havoc all across the country.  Are these two sentences grammatically correct under the condition that clock has recently stopped and its effect can still be seen ? And under the condition that earthquake has recently come and its effect such as havoc all across the country can still be seen ?  You see my take on it is, if the simple present tense is not back shifted under the condition that words are still true at the time of reporting then present perfect tense can also be left unchanged under the condition that situation is still relevant at the time of reporting even if the main verb is in the past tense.   And I also feel that grammar rule is quite logical and correct but if the situation is still relevant then I believe that back shifting of present perfect tenses become optional. So what do you think about this. Did I get it right?

What's the difference between the following examples:   I noticed that the clock had stopped.  I noticed that the clock has stopped.    Some of them say that if the emphasis is laid on the subordinate clause then present perfect tense can be used, while some say if the emphasis is laid on 'noticing' then past perfect tense is to be used. How correct is this explanation?


A script that should look out for texts with a date inside the file thats 30 days older than the current date then move to another file like the $ awk '$NF <= "2018-05-01"' ip.txt but need a command to get text with dates 30 days older than the system current date automatically without having to manually change the script everyday

I have a log file like Blah blah blah 2018-12-13.  Now I want to grep the log files with a date before 2018-05-01.  My intention is to filter the Log files lesser than 2018-05-01


I have a PHP array and after array_filter my array start in key [2]  Example  $words = "  Test1 test2  test3 ";  $arrWords = explode("\n", str_replace("\r", '', $words)); $arrWords = array_filter($arrWords);   What is solution for reindex after filter please ? Thanks you

I have the following array, which I would like to reindex so the keys are reversed (ideally starting at 1):  Current array (edit: the array actually looks like this):  Array (  [2] => Object     (         [title] => Section         [linked] => 1     )  [1] => Object     (         [title] => Sub-Section         [linked] => 1     )  [0] => Object     (         [title] => Sub-Sub-Section         [linked] =>      )  )   How it should be:  Array (  [1] => Object     (         [title] => Section         [linked] => 1     )  [2] => Object     (         [title] => Sub-Section         [linked] => 1     )  [3] => Object     (         [title] => Sub-Sub-Section         [linked] =>      )  )


I am stuck on trying to prove this combinatorics question. The question reads:  Prove that for any positive integer n, $$ 3^n = \sum_{k=0}^n\binom{n}{k}2^k $$ Does anyone know how to begin/prove this? Thank you!

Why is $\sum_{k=0}^n (_k^n) 2^k$ simplified as $3^n$ and not just $2^n$ ? The answer uses the binomial theorem as a solution: let $a=1$ and let $b=2$. So $1+2 = 3$. But since $1+2 = 3$ why do we not use $1+1 = 2$?


Confirmation for Save As is logic but for Save is absurd. No other program that I use has this. How can I disable it?

I'm accustomed to saving frequently using Ctrl+S in Blender. Each time I do this, Blender pops up the "Save Over?" button, which I have to click (or press Enter).  This gets in the flow of things. Is there a reasonably simple method to disable this behavior and just Save Over without prompting. (Reasonably simple meaning without modifying Blender's source code.)


Let $G$ be a finite group of order $n$. Suppose $k$ is a positive integer such that $k|n$, then there exists a unique subgroup of order $k$.   Is it necessarily cyclic?  If $G$ is Abelian, then I can prove it, but if $G$ is nonAbelian, then it is difficult to me to prove or disprove.

Suppose we have a finite group $G$ of finite order $n$. For every $d\mid n$, $G$ has at most one subgroup of order $d$. Show that $G$ is cyclic.


I have only Ubuntu operating system in my DOS system.  I have only one partition which is around 475 GB. I want to make three partitions of 150 GB, 100 GB, and the rest. How can I do that?

Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?


I'm running Ubuntu 12.10 on a MacBook Pro 9,2 (Mid-2012). I was able to successfully install and configure wifi using . Great! However, when I reboot, the wireless card is recognized, but no wireless networks are detected.  That is, however, until I close the lid and the computer is suspended. When I reopen the lid, networks are detected normally.  Here is the output from dmesg | greb b43:  [   20.542046] b43-phy0: Broadcom 4331 WLAN found (core revision 29) [   20.681680] Registered led device: b43-phy0::tx [   20.681697] Registered led device: b43-phy0::rx [   20.681714] Registered led device: b43-phy0::radio [   22.563187] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07) [  299.971510] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)   Here is the output from lspci | grep BCM:  01:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM57765 Gigabit Ethernet PCIe (rev 10) 01:00.1 SD Host controller: Broadcom Corporation NetXtreme BCM57765 Memory Card Reader (rev 10) 02:00.0 Network controller: Broadcom Corporation BCM4331 802.11a/b/g/n (rev 02)   And b43 is included in my /etc/modules.   Any suggestions? Thank you.

Been having some issues with the STA drivers from bcrmwl-kernel-source. While the drivers do function, they only seem to function after putting the laptop to sleep, by either closing the lid, or manually putting it to sleep, and waking it up. The laptop here is a MacBookPro7,1 (Mid 2010 13-inch MacBook Pro), running Ubuntu 17.04.  While the issue isn't bad enough to deter me from using the laptop, it is not an elegant solution, and I believe that there can be a solution found somewhere.  For reference, here are the outputs from the Wireless Info script for both before and after: , . Hopefully these are of some use. If you need additional information about the computer, I will be happy to answer.


I have web service which returns xml as plain string. I need to format it like xml . I expect it to be performed on client side by JavaScript. How can I do that? What libraries is better fitted for this task?

I have a string that represents a non indented XML that I would like to pretty-print. For example:  <root><node/></root>   should become:  <root>   <node/> </root>   Syntax highlighting is not a requirement. To tackle the problem I first transform the XML to add carriage returns and white spaces and then use a  tag to output the XML. To add new lines and white spaces I wrote the following function:   function formatXml(xml) {     var formatted = '';     var reg = /(>)(<)(\/*)/g;     xml = xml.replace(reg, '$1\r\n$2$3');     var pad = 0;     jQuery.each(xml.split('\r\n'), function(index, node) {         var indent = 0;         if (node.match( /.+<\/\w[^>]*>$/ )) {             indent = 0;         } else if (node.match( /^<\/\w/ )) {             if (pad != 0) {                 pad -= 1;             }         } else if (node.match( /^<\w[^>]*[^\/]>.*$/ )) {             indent = 1;         } else {             indent = 0;         }          var padding = '';         for (var i = 0; i < pad; i++) {             padding += '  ';         }          formatted += padding + node + '\r\n';         pad += indent;     });      return formatted; }   I then call the function like this:  jQuery('pre.formatted-xml').text(formatXml('<root><node1/></root>'));   This works perfectly fine for me but while I was writing the previous function I thought that there must be a better way. So my question is do you know of any better way given an XML string to pretty-print it in an html page? Any javascript frameworks and/or plugins that could do the job are welcome. My only requirement is this to be done on the client side.


ifconfigvar=$(ifconfig eth0) && echo $ifconfigvar   You can see that output of the above command has no formatting:   eth0 Link encap:Ethernet HWaddr 00:1f:16:ef:5b:c0 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

I've got a script 'myscript' that outputs the following:  abc def ghi   in another script, I call:  declare RESULT=$(./myscript)   and $RESULT gets the value  abc def ghi   Is there a way to store the result either with the newlines, or with '\n' character so I can output it with 'echo -e'?


I am a beginner at O365 Sharepoint Online and I have to add an organization chart representing the organizational hierarchy of the members of the society but I cannot find a solution for this. Help me please!

I would like to make a flowchart representing the organizational structure of the members of the company in SharePoint Online. I tried using Plumsail Org Chart Web part. I followed the installation steps, but I encountered an error at end.  Please, help me solve this problem or suggest other solutions.   This is the link for the Plumnsail Org chart:


Currently I have only three views appear is there a way for all the view names to appear or more then three?

I have 4 views "All Documents" "Agreements" "Permits" "Deeds" I want to display all 4 of them above my document library but only 3 get displayed and the fourth gets placed in the "..." section. I believe this modification is possible through sharepoint designer, but I was curious if anyone knew how to achieve this through the web environment.   Thank you


I have below code in my batch file   echo >"%temp%\%~n0.vbs" s=DateAdd("d",0,now) : d=weekday(s) echo>>"%temp%\%~n0.vbs" WScript.Echo year(s)^& right(100+month(s),2)^&  right(100+day(s),2) for /f %%a in ('cscript /nologo "%temp%\%~n0.vbs"') do set "mydate=%%a" set dd=%mydate:~6,2% set mm=%mydate:~4,2%  set yyyy=%mydate:~0,4%  set mytime=%time::=%  set mytime=%mytime: =0%  echo %dd%%mm%%yyyy%%mytime:~0,4%  del "%temp%\%~n0.vbs" /Q   This code works ok i run batch file manually. But this batch file is run by Jenkins while deploying code and Jenkins runs it from c:\windows\system32 So i get weiered output like tInpu0815  How to fix this?

Update: Now that it's 2016 I'd use PowerShell for this unless there's a really compelling backwards-compatible reason for it, particularly because of the regional settings issue with using date. See @npocmaka's     What's a Windows command line statement(s) I can use to get the current datetime in a format that I can put into a filename?  I want to have a .bat file that zips up a directory into an archive with the current date and time as part of the name, for example, Code_2008-10-14_2257.zip. Is there any easy way I can do this, independent of the regional settings of the machine?  I don't really mind about the date format, ideally it'd be yyyy-mm-dd, but anything simple is fine.  So far I've got this, which on my machine gives me Tue_10_14_2008_230050_91:  rem Get the datetime in a format that can go in a filename. set _my_datetime=%date%_%time% set _my_datetime=%_my_datetime: =_% set _my_datetime=%_my_datetime::=% set _my_datetime=%_my_datetime:/=_% set _my_datetime=%_my_datetime:.=_%  rem Now use the timestamp by in a new ZIP file name. "d:\Program Files\7-Zip\7z.exe" a -r Code_%_my_datetime%.zip Code   I can live with this, but it seems a bit clunky. Ideally it'd be briefer and have the format mentioned earlier.  I'm using Windows Server 2003 and Windows XP Professional. I don't want to install additional utilities to achieve this (although I realise there are some that will do nice date formatting).


Today I was at a bike shop looking at single speed bikes. I rode one, but didn't buy it because I like to bike fast, and this bike must have weighed 2x more than my aluminum road bike (the bike was steel).  The store owner told me that the bike weight will not have as great of an effect on my top speed as many other things both on the bike and things I could change about how I ride.  Is he right or wrong? Does bike weight make a big difference or is it just very good marketing?

Naturally, carrying a light bike up the stairs is much more enjoyable compared to a heavier bike. Are there any other aspects of a bike which are affected by its weight?  For example, would the weight affect handling at low speeds? Higher speeds? Turning? Stability in strong crosswinds, heavy rain or other adverse weather conditions?  What does the weight say about a modern bike's components? About its durability or dependability? Maintenance? Wear and tear?  Are lighter bikes always better? What would be a reasonable weight threshold below which gains are diminishing?  As an inexperienced cyclist looking for a new bike, I'm unsure how much I should be paying attention to its weight.  UPDATE: what specific weight ranges should I be looking for these days? What would be considered very heavy, reasonable, and at what weight do we enter the multi-thousand-dollar pro racing bikes?  I found a cheap made-in-China fixie in Singapore (where I live); when I learned it weighs 17kg I realized why it's so cheap!


I have a problem with NullPointerException when i try to access variables from object i initialized in inner class.But inside the inner class it has all the elements set,and everything is fine.  public class FirebaseConnectionStream extends FirebaseConnection {      private Object DownloadResult;     public void publish(String path,Map<String,Object> map){         try{        DatabaseReference ref = database.getReference(path);        ref.updateChildren(map);      }     catch(Exception e){         e.printStackTrace();     }  }  public <T> PortfolioInfo download(String path,final T object){      try{         DatabaseReference ref = database.getReference(path);         ref.addValueEventListener(new ValueEventListener(){              @Override             public void onCancelled(DatabaseError arg0) {                 // TODO Auto-generated method stub              }              @Override             public void onDataChange(DataSnapshot arg0) {                  try{                 DownloadResult = arg0.getValue(object.getClass());                 PortfolioInfo p = (PortfolioInfo) DownloadResult;                 System.out.println(p.getId()); // This line here works?                 }                 catch(Exception e){                     e.printStackTrace();                 }             }            });     }     catch(Exception e){         e.printStackTrace();     }     return (PortfolioInfo) DownloadResult; // But this one does not?      }  }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


It is common that people use regional TLDs with a fake meaning to register a good-looking website. A famous example is .me, which is popularly offered by most of registrars alongside generic domains.  As far as I know, search engines somehow weight the regional websites. For example, a .ca is supported to be targeted in Canada. I understand that search engines are adjusted to the market popularity, but I am curious, if a regional TLD such as .me is considered as a generic TLD when targeting globally?  In general, my question is that how much TLD affects the SEO for global audience?

If I am thinking about using one of the 'fancy' top level domains such as .me or .tv should I be worried about how Google treats such domains?  Or to put it another way, if all other things are equal (good content, links etc.), will Google regard a .tv or .me as equal to a traditional .com or co.uk site?


I don't think it can be difficult to understand the question. Thanks in advance

On a windows 7 computer how might one set the desktop to be a webpage. I want to have a local html file that I can edit as needed. Then windows should show that file as the background for the desktop but I should be able to click on links and interact with the page. Certain links would launch certain programs.   So I want to go this route because there is no way that I know to corral a group of icons to a certain part of the screen. When I disconnect and reconnect monitors and such things move around. No icons are forced to stay in part of the group they are supposed to be a part of. At this point I just have folders on the desktop with the app links in those folders. This means I have to open multiple folders to get where I want.   Any ideas on the html angle or other ideas on how to accomplish this?  thanks,  bye.


I searched Google for my title match website is not there in the first 300.  Domain age close to 9 years. The website has been live since then, though I have actively started maintaining it from November of last year.  The domain is an exact match for the title search.  When I look for site:example.com I see results with https:// but my website is http:// and I don't plan to migrate to https://  Any ideas what could be wrong?

What are the best ways to improve a site's position in the Google search results?


In some media, mass-carrying particles can go faster than light:     Cherenkov radiation, ... is electromagnetic radiation emitted when a charged particle... passes through a dielectric medium at a speed greater than the phase velocity of light in that medium   How does this happen? I would imagine that light faces the least resistance to motion and that other charged mass-carriers have more stuff to impede their speed.  Why are the particles allowed to exceed the speed of light for other media when they are not allowed to in a vacuum?

While the speed of light in vacuum is a universal constant ($c$), the speed at which light propagates in other materials/mediums may be less than $c$. This is obviously suggested by the fact that different materials (especially in the case of transparent ones) have a particular .  But surely, matter or even photons can be accelerated beyond this speed in a medium?  If so, what are the effects?


Prove that if $\sum |a_n|$ converges, then $\sum a_n^2$  also converges.  Attempt:  $\sum |a_n|$ converges $\implies \sum |a_n|<M$.  If $\sum |a_n|$ converges, then $\sum a_n $  also converges.  Could anyone please tell me on how to proceed ahead with regard to this problem.  Thank you very much for your help

I'm trying to re-learn my undergrad math, and I'm using Stephen Abbot's Understanding Analysis. In section 2.7, he has the following exercise:  Exercise 2.7.5 (a) Show that if $\sum{a_n}$ converges absolutely, then $\sum{a_n^2}$ also converges absolutely. Does this proposition hold without absolute convergence?  I'm posting about this here because my answer to that last question about whether the proposition holds without absolute convergence is "Yes", but my suspicions are raised by him merely asking the question. Usually questions like this are asked to point out that certain conditions are necessary in the statement of propositions, theorems, etc. I just want to see if I'm missing something here.  Anyway, here's how I prove the absolute convergence of $\sum{a_n^2}$, and note that I never use the fact that $\sum{a_n}$ is absolutely convergent:  Proof: Let $s_n = \sum_{i=1}^n{a_n^2}$. I want to show that $(s_n)$ is a Cauchy sequence. So, let $\epsilon > 0$ and $n > m$, and consider, \begin{equation}   \begin{aligned}     |s_n - s_m| &= |(a_1^2 + a_2^2 + \cdots a_n^2) - (a_1^2 + a_2^2 + \cdots a_m^2)|\\                 &= |(a_{m+1})^2 + (a_{m+2})^2 + \cdots + a_n^2|\\                 &= |a_{m+1}|^2 + |a_{m+2}|^2 + \cdots + |a_n|^2\\   \end{aligned} \end{equation} Now, since $\sum{a_m}$ converges, the sequence $(a_m)$ has limit 0. Therefore I can choose an $N$ such that $|a_m| < \sqrt{\epsilon/n}$ for all $m > N$. So for all $n > m> N$,  we have, \begin{equation}   \begin{aligned}     |s_n - s_m| &= |a_{m+1}|^2 + |a_{m+2}|^2 + \cdots + |a_n|^2\\                 &< \left(\sqrt{\frac{\epsilon}{n}}\right)^2 + \left(\sqrt{\frac{\epsilon}{n}}\right)^2 + \cdots + \left(\sqrt{\frac{\epsilon}{n}}\right)^2\\                 &< \left(\sqrt{\frac{\epsilon}{n-m}}\right)^2 + \left(\sqrt{\frac{\epsilon}{n-m}}\right)^2 + \cdots + \left(\sqrt{\frac{\epsilon}{n-m}}\right)^2\\                 &= \epsilon   \end{aligned} \end{equation} Therefore $(s_n)$ is Cauchy and $\sum{a_n^2}$ converges. And since $\sum{a_n^2} = \sum{|a_n^2|}$, the series $\sum{a_n^2}$ is absolutely convergent. ∎  Am I doing something wrong here? Am I right in thinking that $\sum{a_n}$ need not be absolutely convergent for $\sum{a_n^2}$ to be absolutely convergent?


Is it the right way to ask if someone is asking for your help?

1a. "Can you please tell me what is the food choice for a vegetarian?"  Why is there no inversion in the example above? I mean, why did the native English speaker who wrote the example not do it like this:  1b. Can you please tell me what the food choice for a vegetarian is? or 1c Can you please tell me what the food choice is for a vegetarian?  I have been taught that, whenever we ask an indirect question, we have to switch the inverted word order in the direct question to normal sentence order as follows:    Where is the nearest hospital?(direct question)   2a. Can you please tell me where the nearest hospital is? (indirect question)   So could you please explain to me why this change in the order of words doesn't happen in the original example (written by a native speaker)?


I'm getting NullPointerException in unbindDrawables whenever I run my app on the emulator   This is the code I'm using in MainActivity :        @Override         protected void onDestroy()         {                 super.onDestroy();                  unbindDrawables(findViewById(R.id.rootView));                 System.gc();         }      /**      * Not used for now but useful if any bitmap based drawable will be added      * @param view      */       private void unbindDrawables(View view) {             if (view.getBackground() != null) {                 view.getBackground().setCallback(null);             }             if (view instanceof ViewGroup) {                 for (int i = 0; i < ((ViewGroup) view).getChildCount(); i++) {                     unbindDrawables(((ViewGroup) view).getChildAt(i));                 }                 ((ViewGroup) view).removeAllViews();             } }     This is the logcat     02-27 23:41:41.034: D/MainActivity(1365): chartBoost for more buttons 02-27 23:41:41.034: D/AndroidRuntime(1365): Shutting down VM 02-27 23:41:41.038: W/dalvikvm(1365): threadid=1: thread exiting with uncaught exception (group=0xa617e908) 02-27 23:41:41.050: E/AndroidRuntime(1365): FATAL EXCEPTION: main 02-27 23:41:41.050: E/AndroidRuntime(1365): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.bomsn.fitnessquiz/com.bomsn.fitnessquiz.MainActivity}: java.lang.NullPointerException 02-27 23:41:41.050: E/AndroidRuntime(1365):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180) 02-27 23:41:41.050: E/AndroidRuntime(1365):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230) 02-27 23:41:41.050: E/AndroidRuntime(1365):     at android.app.ActivityThread.access$600(ActivityThread.java:141) 02-27 23:41:41.050: E/AndroidRuntime(1365):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234) 02-27 23:41:41.050: E/AndroidRuntime(1365):     at android.os.Handler.dispatchMessage(Handler.java:99) 02-27 23:41:41.050: E/AndroidRuntime(1365):     at android.os.Looper.loop(Looper.java:137) 02-27 23:41:41.050: E/AndroidRuntime(1365):     at android.app.ActivityThread.main(ActivityThread.java:5041) 02-27 23:41:41.050: E/AndroidRuntime(1365):     at java.lang.reflect.Method.invokeNative(Native Method) 02-27 23:41:41.050: E/AndroidRuntime(1365):     at java.lang.reflect.Method.invoke(Method.java:511) 02-27 23:41:41.050: E/AndroidRuntime(1365):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 02-27 23:41:41.050: E/AndroidRuntime(1365):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) 02-27 23:41:41.050: E/AndroidRuntime(1365):     at dalvik.system.NativeStart.main(Native Method) 02-27 23:41:41.050: E/AndroidRuntime(1365): Caused by: java.lang.NullPointerException 02-27 23:41:41.050: E/AndroidRuntime(1365):     at com.bomsn.fitnessquiz.MainActivity.onCreate(MainActivity.java:168) 02-27 23:41:41.050: E/AndroidRuntime(1365):     at android.app.Activity.performCreate(Activity.java:5104) 02-27 23:41:41.050: E/AndroidRuntime(1365):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080) 02-27 23:41:41.050: E/AndroidRuntime(1365):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144) 02-27 23:41:41.050: E/AndroidRuntime(1365):     ... 11 more 02-27 23:41:42.886: D/Volley(1365): [119] u.a: HTTP response for request=<[ ] https://live.chartboost.com/api/config 0x64ca17da HIGH 1> [lifetime=3152], [size=404], [rc=200], [retryCount=0]   It was working without a problem before I added more drawables to the xml file.


inc = 0 for i in range(100):   for j in range(5):       print("before",inc)     inc = inc + 1     print("after",inc)     if inc == 1:       break  This is the minimum code. I want to break the all the loops at once and yes I do know a method that I found on this site the method I found inc = 0 done = None for i in range(100):   for j in range(5):       print("before",inc)     inc = inc + 1     print("after",inc)     if inc == 1:       done = True       break   if done:     break  But the above method would be too long and tedious if there is a more than 4 loops or code is a bit more complex. Is there a function/library that can help?

Given the following code (that doesn't work):  while True:     #snip: print out current state     while True:         ok = get_input("Is this ok? (y/n)")         if ok.lower() == "y": break 2 #this doesn't work :(         if ok.lower() == "n": break     #do more processing with menus and stuff   Is there a way to make this work? Or do I have do one check to break out of the input loop, then another, more limited, check in the outside loop to break out all together if the user is satisfied?


I know that the Ubuntu names follow alphabetical order.  Example: 12.04 was precise pangolin; 14.04 was trusty tahr; 16.04 is xenial xerus; 16.10 is yakkety yak.  My question is, what's coming after we pass 'Z'?  What will they do for 17.10 and 18.04 LTS?  P.S.:  I did read .  If you want to dupe this, go ahead, but the remember that the answers back then were totally speculative.  One person even suggested the world might have ended by then.  Is this really a duplicate?

The last release was Natty Narwhal (Letter N) for the 11.04. Then it was Oneiric Ocelot (Letter O) for the 11.10. This time, the newest one will be Precise Pangolin (Letter P) for the 12.04.  At this pace, what will happen when Ubuntu gets to Z? Will it start with numbers (007 Edition), will it start with double letters (AA Battery), or will it start from the beginning (Amazing Apple)? What will happen?


I have a small program.  I wanted to get the number of elements of the array p1. When I debug, I get 0. But I think it should be 6.  // ConsoleApplication3.cpp : Definiert den Einstiegspunkt für die Konsolenanwendung. //  #include "stdafx.h" #include <iostream> #include <stdio.h> using namespace std;  double array_concat(double p1[], double p2[]) {     double ans[2][6];     int i, j;     i = 0;     printf("%d\n", sizeof(p1) / sizeof(p1[0])); //is this wrong?     for (j = 0; j < sizeof(p1) / sizeof(p1[0]); j++){         ans[i][j] = p1[j];     }     i = 1;     for (j = 0; j < sizeof(p1) / sizeof(p1[0]); j++){         ans[i][j] = p2[j];     }      return ans[2][6]; }   int _tmain(int argc, _TCHAR* argv[]) {     cout << "Hello\n";     int i;     double c[2][6];     double p1[6] = { 0, 1, 0, 0, 0, 0 };     double p2[6] = { 1, 1, 0, 0, 0, 0 };      c[2][6] = array_concat(p1, p2);      for (i = 0; i < 12; i++){         printf("%lf\n", c[i]); //is this wrong?     }      return 0; }   What was wrong?  Edited code, so the p1,p2 and the return value of the function should better be poiters. I made it as in the example , but somehow it doesn't work.             // ConsoleApplication3.cpp : Definiert den Einstiegspunkt für die Konsolenanwendung.         //      #include "stdafx.h"     #include <iostream>     #include <stdio.h>     using namespace std;      double **array_concat(double *p1, double *p2)     {     double** ans = 0;     //ans = new double*[2];         //double ans[2][6];         int i, j;         i = 0;         printf("%d\n", sizeof(p1) / sizeof(p1[0])); //is this wrong?         for (j = 0; j < sizeof(p1) / sizeof(p1[0]); j++){             ans[i][j] = p1[j];         }         i = 1;         for (j = 0; j < sizeof(p1) / sizeof(p1[0]); j++){             ans[i][j] = p2[j];         }          return ans;     }       int _tmain(int argc, _TCHAR* argv[])     {         cout << "Hello\n";         int i;         //double c[2][6];         double p1[6] = { 0, 1, 0, 0, 0, 0 };         double p2[6] = { 1, 1, 0, 0, 0, 0 };          //double *c;         double **c = array_concat(p1, p2);          for (i = 0; i < 12; i++){             printf("%lf\n", c[i]); //is this wrong?         }          return 0;     }

First off, here is some code:  int main()  {     int days[] = {1,2,3,4,5};     int *ptr = days;     printf("%u\n", sizeof(days));     printf("%u\n", sizeof(ptr));      return 0; }   Is there a way to find out the size of the array that ptr is pointing to (instead of just giving its size, which is four bytes on a 32-bit system)?


As I'm learning C# and my budding interest in embedded devices, I wondered If I can use C# in an embedded environment. How is C# going to help us in the realm of the Internet Of Things.  Note: The only question I found that resemble  this is this one:   But this question has been asked 3 years ago. Obviously many things have changed since then.

"C# is intended to be suitable for writing applications for both hosted and embedded systems, ranging from the very large that use sophisticated operating systems, down to the very small having dedicated functions."      Although it greatly depends on how embedded is "emebedded",  How well do you think C# has reached this goal?  Do you consider C# to be just as good if not better tool for the job than C/C++?


I see user name in the title when it shouldn't be showed. Steps to reproduce:  Select any site on the left panel  Tap on the title and select users  Select any user (e.g. Shog9)     Select any site where user has activity     Select any site on the left panel     User name doesn't disappear from the title        App Version: 1.0.89 Device Manufacturer: samsung Device Model: Nexus 10 OS Version: 5.1.1 (2640980)

When selecting a new site in the app, the user name remains displayed in the bar above.       How to reproduce:   Look at a user's profile. Click "All (number) sites" Click one of the icons that are displayed in the left.   The user name at the top remains displayed.     App Version: 1.0.89 Device Manufacturer: asus Device Model: K011   OS Version: 4.4.2 (JP_K011-JP_user_3.1.23.189_20141124-user-20141124)


There is a company with $n$ workers. The company is making subdivisions, and distributes the workers among those subdivisions. Workers can work in more than one subdivision. In each subdivision, there must be an odd number of workers. The intersection of workers from two subdivisions must be even, and it can be 0 (so there can be disjoint subdivisions). What's the maximal number of subdivisions possible?  My original answer was $n$ subdivisions, each worker in a subdivision of his/her own. I'm not sure if that's correct anymore.  Thanks in advance!

Let n be an even integer. How many different ways can I choose subsets of the set {1,2...,n} if they all have to have odd size, but the intersection of any two of them has to have even size?  Please help me answer this question or lead me in the right direction. Thank you :)


Method onClack() in ActivityForm activity must pass a variable newRowId to another DonosInfo activity:  public void onClack(View view) {                                                                                Intent intent = new Intent(ActivityForm.this, DonosInfo.class);           intent.putExtra("RowId", newRowId);                                                         startActivity(intent);                                                }    In body of new activity the variable donosId takes the passed value:  public class DonosInfo extends AppCompatActivity {      long donosId = getIntent().getLongExtra("RowId", 0);   But in result i get an error caused by:      java.lang.NullPointerException: Attempt to invoke virtual method   'long android.content.Intent.getLongExtra(java.lang.String, long)' on   a null object reference   What's the problem?

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I have upgraded from Ubuntu 12.04 to 14.04 LTS but after upgrading errors appear after installing any software. I tried to install icedtea-netx. Generally following error comes  Setting up tex-common (4.04) ... Ignoring /etc/texmf/texmf.d/05TeXMF.cnf during generation of texmf.cnf, please remove manually! Ignoring /etc/texmf/texmf.d/15Plain.cnf during generation of texmf.cnf, please remove manually! Ignoring /etc/texmf/texmf.d/45TeXinputs.cnf during generation of texmf.cnf, please remove manually! Ignoring /etc/texmf/texmf.d/55Fonts.cnf during generation of texmf.cnf, please remove manually! Ignoring /etc/texmf/texmf.d/65BibTeX.cnf during generation of texmf.cnf, please remove manually! Ignoring /etc/texmf/texmf.d/75DviPS.cnf during generation of texmf.cnf, please remove manually! Ignoring /etc/texmf/texmf.d/80DVIPDFMx.cnf during generation of texmf.cnf, please remove manually! Ignoring /etc/texmf/texmf.d/85Misc.cnf during generation of texmf.cnf, please remove manually! Ignoring /etc/texmf/texmf.d/90TeXDoc.cnf during generation of texmf.cnf, please remove manually! Ignoring /etc/texmf/texmf.d/95NonPath.cnf during generation of texmf.cnf, please remove manually! Running mktexlsr. This may take some time... done. Running updmap-sys. This may take some time...  updmap-sys failed. Output has been stored in /tmp/updmap.K0LdoKUQ Please include this file if you report a bug.  Sometimes, not accepting conffile updates in /etc/texmf/updmap.d causes updmap-sys to fail.  Please check for files with extension .dpkg-dist or .ucf-dist in this directory  dpkg: error processing package tex-common (--configure):  subprocess installed post-installation script returned error exit status 1 E: Sub-process /usr/bin/dpkg returned an error code (1)   What should I do?

I upgraded to Ubuntu 14.04 from 12.04 and every time I use apt-get install for any package it ends with a bunch of errors about processing some of my latex packages. Including a snippet below:  Sometimes, not accepting conffile updates in /etc/texmf/updmap.d causes updmap-sys to fail.  Please check for files with extension .dpkg-dist or .ucf-dist in this directory  dpkg: error processing package tex-common (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of lmodern: lmodern depends on tex-common (>= 3); however: Package tex-common is not configured yet.   Reproduced by using sudo dpkg --configure -a and a total list of packages with this error is included here:  Errors were encountered while processing: tex-common texlive-publishers tex-gyre texlive-latex-extra-doc texlive-fonts-extra-doc texlive-lang-english texlive-luatex texlive-generic-recommended texlive-pstricks-doc texlive-fonts-recommended latex2html latex-xcolor texlive-pictures texlive-fonts-extra texlive-pictures-doc asymptote texlive-bibtex-extra texlive-latex-recommended-doc texlive-latex-recommended doxygen-latex texlive-pstricks tipa texlive-latex-base texlive-fonts-recommended-doc latex-beamer texlive-font-utils texlive-latex-base-doc texlive-latex-extra texlive-extra-utils texlive texlive-publishers-doc lmodern   Any ideas on how to fix this?   Edit 1: Adding the result of trying sudo apt-get install -f:  Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 32 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up tex-common (4.04) ... Ignoring /etc/texmf/texmf.d/05TeXMF.cnf during generation of texmf.cnf, please  remove manually! Ignoring /etc/texmf/texmf.d/15Plain.cnf during generation of texmf.cnf, please remove manually! Ignoring /etc/texmf/texmf.d/80DVIPDFMx.cnf during generation of texmf.cnf, please remove manually!  Running mktexlsr. This may take some time... done. Running updmap-sys. This may take some time...  updmap-sys failed. Output has been stored in /tmp/updmap.DJoQcW7n


When I call this method sometimes it's shows exception   public static long getTimestampFromDate(String date, String format) {     DateFormat formatter = new SimpleDateFormat(format, Locale.ENGLISH);     //formatter.setTimeZone(TimeZone.getTimeZone("UTC"));     Date d = null;     try {         d = formatter.parse(date);     } catch (Exception e) {         e.printStackTrace();         Crashlytics.logException(e);     }     Calendar calendar = Calendar.getInstance();     calendar.setTime(d);     calendar.set(Calendar.HOUR_OF_DAY, 0);     calendar.set(Calendar.MINUTE, 0);     calendar.set(Calendar.SECOND, 0);     calendar.set(Calendar.MILLISECOND, 1);     return calendar.getTimeInMillis(); }      My error :   Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'long java.util.Date.getTime()' on a null object reference        at java.util.Calendar.setTime(Calendar.java:1197)        at com.utils.Utils.getTimestampFromDate(SourceFile:105)        at com.fragment.MyProfileFragment.onViewClicked(SourceFile:768)        at com.fragment.MyProfileFragment_ViewBinding$4.doClick(SourceFile:79)        at butterknife.internal.DebouncingOnClickListener.onClick(SourceFile:22)        at android.view.View.performClick(View.java:5205)        at android.view.View$PerformClick.run(View.java:21162)        at android.os.Handler.handleCallback(Handler.java:739)        at android.os.Handler.dispatchMessage(Handler.java:95)        at android.os.Looper.loop(Looper.java:148)        at android.app.ActivityThread.main(ActivityThread.java:5453)        at java.lang.reflect.Method.invoke(Method.java)        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:781)        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:671)      Date format :    public static String SLASH_MM_DD_YYYY = "dd-MMM-yyyy";      Any solutions for this?


I failed to find a rental company that allows me to rent a car in the UK with a German license that is less than one year old.  Is there a solution? Are there any rental companies allowing a less than 1 year old licensee to rent a car in London?

I'm a UK citizen visiting the UK over the Christmas period. If possible, I'd like to rent a car - but I've only had a full UK driver's license for less than a year. I gather that there is no longer a legal requirement that car rental drivers have had a license for more than 12 months, but every car rental company I can find enforces a 12-month minimum anyway.  I understand that as a new license holder I'd be viewed as a riskier customer. I don't mind paying extra.  Is there any UK car rental company who'll accept customers who held their license for less than a year?  I'm well over any age limits (over 25) and have no blemishes on my license. I have another international license, but I've held that for even less time than my UK license.


I'm very new to Blender, and I've been watching the Blender Guru tutorials. I've gotten to the materials episode, and the person in the video has a dropdown menu to change the texture from Diffuse to Glossy or any number of others. I can't seem to find a way to change from Diffuse, and I'm very confused.   I'm in Blender 2.79 if that helps, thanks.

Complete beginner here.  I'm trying to follow  tutorial on Anisotropic shaders, but my property panel looks nothing like the property panel in the tutorial.  For example, when creating a material, this is what his property panel looks like:    But this is what mine looks like, if I follow the same path:    I'm sure I'm missing something obvious.  How can I see the property panel shown in the tutorial?


How did "sinister" migrate from the Latin for "left" to English for "evil"?

Sinister is the Latin word for left-handed.  What evolution of meaning turned left-handed into evil and threatening?


Assume you want to put a green screen overlay at the end of a longer video clip. Blender doesn't allow to do this in the compositor mode, because the overlay is placed at the beginning.  Is it possible to easily add the overlay at the end of the video?

When I use "Movie Clip" node in Blender 2.7, it always starts at Scene Frame 1. How can I change it in order to make it start at Frame 6, for instance? The movie clip I am using is a Movie FX for another video, and I want to use it with the Mix node.   Thanks


I'm going through one code, Its below. Here Runnable is an interface and implemented by Anonymous class and Interface's method is being implemented here. Upto here it sounds correct. But How this syntax is possible "new Runnable" ?  public class Library extends JFrame {     static Library frame;     private JPanel contentPane;      public static void main(String[] args) {         EventQueue.invokeLater(new Runnable() { //Why its not giving error here ?             public void run() {                 try {                     frame= new Library();                     frame.setVisible(true);                 } catch (Exception e) {                     e.printStackTrace();                 }             }         });     }   if I do like this   public interface MyInterface {  } public class Test implements MyInterface{     public static void main(String[] args) {         MyInterface object  = new MyInterface(); // Error Here "Cannot instantiate the type MyInterface" Its a right Error ...!     }   May I know please what is the difference between above two approaches ? Both are doing the same thing. Class is Implementing interface, Is there any difference ?  My Understanding say, Interface type can only reference to the objects of class which implements them. Is it correct ?  Can anyone help me to understand this ?

What is the use of anonymous classes in Java? Can we say that usage of anonymous class is one of the advantages of Java?


For testing purposes I need to set up three Azure Windows VMs to each run an instance of SQL Server 2008 R2 each holding one DB of approx 100GB. There will be quite a few complex stored procedures/queries/joins running against each database, but there won't be more than 2 connections at any given time.  Ideally I would like to do this as cheaply as possible, but I don't want to compromise performance. I'm not a DBA or very knowledgeable about machine performance, so I was wondering if anyone had any advice as to which tier would be a safe choice?

This is a  about capacity planning for databases. Related:      I'm looking to create a canonical question of tools and methods of capacity planning for databases. This is intended to be a canonical question. Obviously, the general workflow is:  Put your scenario in place Add monitoring Add traffic Evaluate results Remediate based on results Rinse, repeat until reasonably happy  Please feel free to describe different tools and techniques for different web-servers, frameworks, etc., as well as best-practices.


I want to tap in into a wall outlet that I don’t use and add a outside outside. I’m using it for a electric grill that requires 110 volt, 60hz, 275w, 5 amp service but I don’t know if I will overload it. What should I do before?

Can I tap in a outlet not being used that is behind a bed and add a outlet behind it outside? Using it for a electric bbq grill. The grill specs are: 110 volt, 60hz, 275w, 5 amp service.


I have never came across a state that allows "working" (in the meaning of a "doing a job") in its vicinity for tourist visa holders but I have came across many countries that don't allow it.  And yet, when someone works with a laptop for customers outside that country, I don't think it really reflects the meaning of "working" or "doing a job" in that country and therefore a place for interpretation becomes existent.  Is working from a laptop when travelling to countries with a tourist visa formally illegal all over the world?

I found several questions about inbound travelers to the US in this scenario, but little about other countries: I work for a company in my home country (USA) who are open to me working remotely while traveling.   Which countries allow me to legally work remotely for a company in my home country (USA) while traveling in their country? The work has absolutely no connection to the destination country, it would take place identically entirely within the USA if I weren't traveling.


My daughter has a 5s that was submerged in salt water and then attempted to power-up prior to the phone fully drying out. The phone shows no signs of life even when plugged into a power source and no computer recognizes the device. My question is whether data (specifically information in the Notes file) can be retrieved and, if so, by whom? These data are not backed-up anywhere; they only exist on the phone. Thanks in advance for any guidance.

My sister dropped her iPhone into water and made the fatal mistake of turning it on just a few hours later, thinking it was already dry. I put it into a bag with rice for days. She had taken a lot pictures within the last few weeks but neither connected it to her PC nor is she using iCloud/Photostream, so we wanted to save the pictures somehow.  The problem is, the phone only turned on when connected to a power socket - and only in the inital setup mode ("connect to itunes"). And even then it would restart after about half a minute.  Assuming the battery got fried, I ordered a new one from iFixit (the phone's out of warranty since a long time) and replaced it; of course I also cleaned the logic board in the process. Though I couldn't see any corrosion despite the water indicators being pink. The only difference now is that when connected to a PC, the Apple logo appears, but the phone reboots infinitely after several seconds.   iTunes recognized it when entering DFU mode, but shows no additional data besides "iPhone" (capacity, iOS version, serial number).  Getting the phone to work again is secondary, we just want to save the pictures. Is there any way to get my data including all the pictures from iPhone?


Here in northern Tanzania we are experiencing a huge  - originally those of us who saw it thought it was local but it turns out that it's very widespread. We're getting informal reports from all over, but would like to (quickly!) set up a way for people to report sightings:   A clickable map on a web page that lets people show the location of a sighting; A form that collects some other basic data; Logging of spatial points and the form data.   Ideally this could be done through a Facebook page as social media will spread this like ... well, like a butterfly migration in a high wind ;).   Any ideas?    Here's the .

I am looking at collecting spatial information from a range of stakeholders to identify opportunities within a landscape.  However, the data that we are collecting are not presently mapped and so we wish to use an interactive method to get this information onto a map.  Which online websites/methods would people recommend for circulating to a non-technical audience to try and get them to map what they know?    Where the emphasis is on ease of use by the stakeholder.


I make a glossaries with the following snippet of code,  \documentclass{article}  \usepackage[toc,nonumberlist]{glossaries}  \makeglossaries \newacronym{NGI}{NGI}{Next-Generation Internet} \newcommand{\NGI}{\gls{NGI}} \newacronym{LEO}{LEO}{Low Earth Orbit} \newcommand{\LEO}{\gls{LEO}} \newacronym{MEO}{MEO}{Medium Earth Orbit} \newcommand{\MEO}{\gls{MEO}}  \begin{document}  Just for test.  \printglossaries  \end{document}   But the output document only contains Just for test, not glossaries. I checked with  and can't see any problem with my code.  Here is a part of compilation info.  $ latex main.tex  This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)  restricted \write18 enabled. entering extended mode  ....  (/usr/share/texlive/texmf-dist/tex/latex/glossaries/base/glossaries-compatible- 307.sty) (/usr/share/texlive/texmf-dist/tex/latex/glossaries/styles/glossary-hypernav.st y) (/usr/share/texlive/texmf-dist/tex/latex/glossaries/styles/glossary-list.sty ) (/usr/share/texlive/texmf-dist/tex/latex/glossaries/styles/glossary-long.sty (/usr/share/texlive/texmf-dist/tex/latex/tools/longtable.sty)) (/usr/share/texlive/texmf-dist/tex/latex/glossaries/styles/glossary-super.sty (/usr/share/texlive/texmf-dist/tex/latex/supertabular/supertabular.sty)) (/usr/share/texlive/texmf-dist/tex/latex/glossaries/styles/glossary-tree.sty)) (./main.aux) (./main.glsdefs) No file main.gls. [1] (./main.aux) ) Output written on main.dvi (1 page, 232 bytes). Transcript written on main.log.     As pointed by @NicolaTalbot, there is still nothing after running makeglossaries main.  $ makeglossaries main makeglossaries version 2.12 (2014-01-20) added glossary type 'main' (glg,gls,glo) Warning: File 'main.glo' is empty. Have you used any entries defined in glossary 'main'? Remember to use package option 'nomain' if you don't want to use the main glossary.   PS: my platform is Ubuntu + Texmaker.

I am trying to make a glossary list using xindy in TexStudio. I have already installed Perl but it does not work. Here is my MWE  \documentclass[a4paper,openright,12pt]{book} \usepackage{vmargin} \usepackage{fancyhdr} \usepackage{emptypage} \usepackage{xpatch} \usepackage{float} \fancypagestyle{plain}{\renewcommand{\headrulewidth}{0.5pt} \renewcommand{\footrulewidth}{0.5pt}} \pagestyle{fancy}  \usepackage{afterpage} \usepackage{blindtext} \fancypagestyle{chapterfirstpage}{% \renewcommand{\headrulewidth}{0pt}% \renewcommand{\footrulewidth}{0.5pt}% \fancyhf{}% \rfoot{\thepage}% } \xpatchcmd{\chapter}{\thispagestyle{plain}}{\thispagestyle{chapterfirstpage}}{\typeout{Success}}{\typeout{Failed}}   \usepackage{epigraph}  \newcommand\blankpage{% \null \thispagestyle{empty}% \addtocounter{page}{-1}% \newpage} \usepackage[utf8]{inputenc} \setcounter{secnumdepth}{3}  \setcounter{tocdepth}{3}  \usepackage[spanish, es-tabla]{babel}  \usepackage{graphicx}  \graphicspath{{./figuras/}} \usepackage{setspace} \usepackage[backend=bibtex,bibencoding=ascii,style=chem-angew,citestyle=numeric-comp,sorting=none,]{biblatex}  \addbibresource{biblio}   \usepackage{csquotes}  \usepackage{titlesec}  \usepackage{tocloft}  \usepackage{tabu}  \usepackage{color}  \usepackage{epsfig}\usepackage{multirow}  \usepackage{colortbl}  \usepackage[table]{xcolor}  \titleformat{\chapter}{\normalfont\huge\sffamily}{\thechapter.}{0.1em}{\Huge}  \renewcommand\cftchapaftersnum{.}  \makeindex  \usepackage[labelfont=bf]{caption}  \usepackage{bm}  \usepackage{textcomp}  \usepackage{upgreek}  \usepackage[xindy]{glossaries}  \GlsSetXdyCodePage{duden-utf8}  \usepackage{translator}  \setacronymstyle{long-sc-short} \makeglossaries  \newacronym{DRX}{DRX}{Difracción de Rayos X}  \raggedbottom  \definecolor{lightgray}{gray}{0.9}  \begin{document}  \printglossary[letter]  \end{document}   I get the following error:  Warning: File 'acronyms prueba.glo' is empty. Have you used any entries defined in glossary 'main'? Remember to use package option 'nomain' if you don't want to use the main glossary.   Thanks!


I have a list a = ['A', 'B', 'C']  and from that list, How to get all the 2 by 2 combinations? Like this: A, B A, C B, A B, C C, A C, B

How do you generate all the permutations of a list in Python, independently of the type of elements in that list?  For example:  permutations([]) []  permutations([1]) [1]  permutations([1, 2]) [1, 2] [2, 1]  permutations([1, 2, 3]) [1, 2, 3] [1, 3, 2] [2, 1, 3] [2, 3, 1] [3, 1, 2] [3, 2, 1]


I use this oil for baking cup cakes, and I add this oil to the whole wheat dough meant for preparing parathas on the gas stove?  My mother uses it for frying vegetables on the gas stove.  Hence the question in the title. Should I be vary of anything here?

Indian cooking basically uses oil from the beginning of the process, typically starting with sautéing ginger and garlic, then adding shallots, chillies and onions. So the oil is on the fire for quite some time.    I would like to know whether any type of olive oil will be suitable for this type of cooking. Extra virgin olive oil seems to be out of the question from what I have read.


The OP of a post should be able to see the +1's and -1's of the post so that they can see if it is an overall accepted or 'hated' post, and what to do to fix it, even if they don't have 1000+ reputation.

I know once you get a certain amount of reputation, you can see the total up and down votes for questions. Well, my proposal is to always be able to see this on your own questions and answers. You can see it by going to your user page anyway, so why not make it possible to do by simply clicking on the number of votes (like you can when you have the rep)?


I have a dataframe with many observations and many variables. Some of them are categorical (unordered) and the others are numerical.  I'm looking for associations between these variables. I've been able to compute correlation for numerical variables (Spearman's correlation) but :   I don't know how to measure correlation between unordered categorical variables. I don't know how to measure correlation between unordered categorical variables and numerical variables.   Does anyone know how this could be done? If so, are there R functions implementing these methods?


For duplicates that cross main sites, there exists .  However, I think the rules might be different for meta.  Is there a reason for not allowing cross-site duplicates on meta?   seems to be the central point for certain Stack Exchange things, such as general policies.  So, when a question  comes up (or the same thing on , , and ), it would be nice to mark as duplicate of .  At the very least, if "linked", the cross-site duplicates should probably show up in the sidebar.

Now that we have one central cross-network Meta, we have a core place where network-wide issues can be discussed. There are a lot of great frequently asked questions and answers here, ones that will come up time and again on child Metas (like the new Meta.SO).  It would be great to be able to close these child Meta questions as duplicates of canonical entries here. This has come up a few times on Meta.SO already (such as for  on Meta.SO, which is a duplicate of  on Meta.SE), and we're ending up repeating ourselves by copying the answers from Meta.SE to answer the child Meta questions.  I know that there typically has not been an interest in allowing closing of cross-site duplicates as such, but this is a special case where I think there could be some benefit. It would both preserve one central repository of common canonical network-wide questions and answers and inform people of the presence of this site.   Otherwise, we'll be fragmenting the same questions across all of the child Metas, and in particular on Meta.SO we'll need to build up another set of canonical responses to the weekly "comments required for downvoting" and "why am I question banned" posts that we will certainly see so that we can close them properly.


How do I ground a new overhead light fixture?  I'm replacing a 2 wire fixture with no grounding wire with a new 3 wire fixture which includes a ground wire.  The new fixture is suspended not flush mounted, per the instructions.


I'm having some problems with my user authentication system, what am I doing wrong?  I'm trying to query the database for a password stored on there, check if the password on the database is the same as the one entered on the login page and then I'll add functionality from there.  But it just doesn't work. It repeatedly fails and prints out "Sorry, try again."  login.php  $email = $_POST['email']; $userpass = $_POST['password'];  // Create connection $conn = new mysqli($servername, $username, $password, $dbname);  // Check connection if ($conn->connect_error) {     die("Connection failed: " . $conn->connect_error); }  $getpass = "SELECT password FROM users WHERE email = $email"; $hash = mysqli_query($conn, $getpass);   if(password_verify($userpass, $hash)) {     echo "You're in."; } else {     echo "Sorry, try again."; }   register.php   // Create connection $conn = new mysqli($servername, $username, $password, $dbname);  // Check connection if ($conn->connect_error)  {     die("Connection failed: " . $conn->connect_error); } echo "Connected successfully
";  $email = $_POST['email']; $userpass = $_POST['password'];  $options = [     'cost' => 12, ];  $hash = password_hash($userpass, PASSWORD_BCRYPT, $options);  $register = "INSERT INTO users (registered_on, email, password) VALUES (CURRENT_TIMESTAMP, '$email','$hash')";  if ($conn->query($register) === TRUE) {     echo "New record created successfully"; } else  {     echo "Error: " . $register . "
" . $conn->error; }  // Closes connection $conn->close();   I have a hunch it is to do with how I am querying the database.  note from comment: The  function is a built-in PHP function

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


I have trouble with mounting my hard disk:  Error mounting /dev/sda5 at /media/quetzalcroix/DataSave: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda5" "/media/quetzalcroix/DataSave"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda5': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.   I forgot to restart my windows 8 before I'm installing Ubuntu and format my C:\ drive. Is there any other options that I could do to mount this? Or I should backup my entire volume to other media and then I format my hard drive?

Whenever I boot Ubuntu, I get a message that it cannot mount my windows partition, and I can choose to either wait, skip or manually mount.  When I try to enter my Windows partition through Nautilus I get a message saying that this partition is hibernated and that I need to enter the file system and properly close it, something I have done with no problem so I don't know why this happens.    Here's my partition table, if any more data is needed please let me know.     Device Boot      Start         End      Blocks   Id  System /dev/sda1            2048    20000767     9999360   83  Linux /dev/sda2        20002814   478001151   228999169    5  Extended /dev/sda3   *   478001152   622532607    72265728    7  HPFS/NTFS/exFAT /dev/sda4       622532608   625141759     1304576   82  Linux swap / Solaris /dev/sda5        20002816   478001151   228999168   83  Linux