KML to shapefile will not convert attributes embedded in the description field

I have a point shapefile on which I used the "Layer to KML" tool on ArcMap. This tool successfully converted the shapefile into a KML containing all the attributes embedded in the "Placemark Description" field in Google Earth which serves my purposes. However when I try to go the opposite direction, namely from KML back to layer or shapefile using "KML to Layer" tool in ArcMap, all the attributes are lost and I cannot see them in the resulting Shapefile.  Is there any way to somehow expose these embedded attributes?   Or maybe export the shapefile such that the attributes are not embedded in the description in the first place?   I have third parties who need to edit my shapefiles in Google Earth and send them back to me to convert back to shapefiles. The back and forth from Arc to GE is quite paramount to my situation.


Replace Text with Comma in File With Python

#open file and rewrite (comma) to , with open('outputFile') as fo:     fo.write(line.replace("(comma)"," , "))   I'm trying to replace the text (comma) with a literal , within a file. When I run the above code, I get the following error: io.UnsupportedOperation: not writable   Any insight as to how to rewrite text within a file would be greatly appreciated.   I've used the below code, and it still won't replace (comma) with ,  #open file and rewrite (comma) to , with open('outputFile.txt', "a+") as fo:     fo.write(fo.replace('(comma)',',')) fo.close()


Do I need visas to travel from Pakistan to Cayman Islands via UK or Canada?

I am Pakistani and got an approved work permit from the Cayman Islands.  I am planning to travel next week but still confused about connecting flights and visa requirements in connecting flight countries like the UK or Canada (Toronto).  Do I need a visa for traveling through these countries?


Proof of whether a specific element is in a commutative, invertible monoid.

M is a commutative monoid with identity element denoted by e. U(M) is the set of all invertible elements of M. Let a∈M and b∈M. Prove that if ab∈U(M), then a∈U(M).  I'm not sure if the way I approached this question is legitimate or whether there's a clearer way to show it. Method: Let ab ∈ U(M). Hence $(ab)^{-1}$ ∈ U(M). ⇒ $b^{-1}a^{-1}$ ∈ U(M) ⇒ (ab)($b^{-1}a^{-1}$) ∈ U(M) ⇒ $aa^{-1}$ ∈ U(M) Similarly for ba ∈ M we have: $(ba)^{-1}$ ∈ U(M) ⇒ $a^{-1}b^{-1}$ ∈ U(M) ⇒ $a^{-1}b^{-1}$(ba) ∈ U(M) ⇒ $a^{-1}$a ∈ U(M). As a ∈ M has a right inverse and left inverse in U(M), we can conclude that a ∈ U(M).


Please let me edit my profile in Mobile theme

Just as the title says, I am unable to find the edit profile link in mobile view. It appears as though there isn't one. I think an edit profile link should be added somewhere beside the user's profile at least.


I have seen a lot of related questions/answers but it seems that there still isn't a working solution for it. So I have sum up all related info that I found and maybe we can find a solution to it.  So one of the way to do it is like in SIMBL's plugin for colored icons (google it) and like its done in Dropbox - inject code at mach_kernel. But I don't like this idea with code injection and it seems that there can be a simpler way with modification of system resources.  So all data for sidebar entries is stored in ~/Library/Preferences/com.apple.sidebarlists.plist (It's binary plist, open it with Xcode/PlistEditPro/etc) favorites -> VolumesList  icon for entry is defined with a pair of data: Icon and CustomItemProperties -> com.apple.LSSharedFileList.TemplateSystemSelector  that mean that it is possible to change Alias to custom for default entries, or adding Icon and CustomItemProperties -> com.apple.LSSharedFileList.TemplateSystemSelector to custom entry with data copied from default entries and it will work.  You need to log off -> log in to see changes.  But with that you only can change entry image that already is in system. So I looked more detailed to fields Icon and CustomItemProperties -> com.apple.LSSharedFileList.TemplateSystemSelector  Field Icon is hex encoded and decoded it looks like that:  ImgR��4����FBIL��(����������������ћЊщ��H+�����ю≤�€\��ћCW����     €ю��������€€€€���ю≤�юD�юC�з�^~�^{��@��T�o�o�l�b�a�r�D�o�c�u�m�e�n�t�s�F�o�l�d�e�r�I�c�o�n�.�i�c�n�s����M�a�c�H�D��_System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/ToolbarDocumentsFolderIcon.icns���/�€€   (default Documents field)  So it's pointing to normal, colored documents icons file. Changing data for another .icns file (even valid or from another default icon) make entry show default stock folder icon. But if change it to another default icon and then change com.apple.LSSharedFileList.TemplateSystemSelector like in that icon then it will show that another default icon.  com.apple.LSSharedFileList.TemplateSystemSelector looks like this:  1935819875   (default Documents field)  This means that Icon data and com.apple.LSSharedFileList.TemplateSystemSelector number are related and pair of them determines entry icon. I'm not figured yet what is this number and what it means, but for default entries it always begins with 19358**. I think it's related to CoreServices.framework header LSSharedFileList.h and it's number of entry in some kind of system resources list.  Is there someone know what to do next? I would be grateful if you could help me with it.  Here is list of default entries data   It will help you if you want to change your stock folder icons in sidebar to icons from default entries.


What's the intended use case for COMPLETE_ALIASES in zsh?

For some months now, I have had setopt completealiases in my .zshrc. I haven't the faintest idea why I added it - most other things have comments or can be understood from neighbouring settings. Because of this, I haven't had full tab completion for aliases for months, until I saw . I'm trying to understand why my idiotic past self would have added it without any explanation whatsoever1.  What's the intended use case for it? How is it commonly used?    1 My best guess is that I thought it enabled full completion for aliases and didn't bother to check the docs.


Linear Fit: why do we minimize the variance and not the sum of all deviations?

my question is about the linear fit and the least squares method.  Why do we decide to minimize the quantity   $$ S = \sum_{i=1}^n r_i^2 $$  instead of this one:  $$ r_i = y_i - f(x_i, \beta) $$  ?  Let's think at the least squares fit intuitively: I want to find a straight line which approximates the distribution of some points in the $xy$ plane. The first thing I think is that it is good to find a line such that its distance $(r_i)$ from each point is minimum, not necessarily the square of that distance. Why this choice?


trying to install ubuntu 18.04.3 desktop following directions but my laptop wont boot from usb

Ubuntu.com instructions say to press F12 or F10 or look for a brief message after switching on but none of these are applicable; laptop just goes to Windows.  When I try to open Ubuntu from the USB, it wants to know which Windows app to open it with, none of which work.  I have also installed something called Rufus under some weird instructions on this same site, but it just opens something called Hex Editor which shows the Ubuntu thingy as a page full of incomprehensible numbers. I've been at this for hours and it's doing my head in - can't even get past go.  I'm not a computer geek but I would've thought Ubuntu a tad more user-friendly after reading all the hype.


Suddenly the button for opening the toolbox is gone. I have searched really long already.  Do you have any idea how to get it back?


When passing all http and https traffic through squid3, is it possible if a user requests http://www.example.com I could redirect to a different url?  Would this only be possible for HTTP or HTTPS too?  Thanks


Bad GRE scores, but otherwise decent application to PhD program. Still worth it?

I just finished my MA in Global Affairs, and I am applying to several International Relations PhD programs, one of which is very competitive. I have a 3.9 GPA, 1 1/2 years of experience in research including an internship at a very respected research center, and very strong LORs. My writing sample was recently accepted to a conference, and I have received great feedback on it otherwise. However, my GRE scores suck. I took them before I applied to my MA program, and despite studying like crazy for close to 3 months, I bombed. My combined score, converted to the older system is 1020, and I somehow got a 3.5 on the analytical writing section. This last part really shocked me, since writing is one of my strongest skills, and any professor I've had can attest to that. I wanted to retake the test before applying, but my last semester was very hectic and I could not carve out the time to study. Admittedly, I have had very little guidance on the application process, so I told myself that the rest of my application would make up for it. Recently I have begun to worry that this assumption was wrong.  Since I have made it this far in the application process, I am still going to apply. However, I want to have realistic expectations. Am I doomed, or do GRE scores not necessarily make or break a holistic review?


Mac OS X Yosemite using too much RAM... Why?

I think its a problem probably because of this CleanMyMac 3 app that says i have got only 100mb from my 8gb and when I click on "Free Up" I get more than 3gb free RAM only to fill it again after a while. The only thing feels slow on my system is when I enable the Transparency effects the minimizing and dragging the apps windows seems utterly slow (lagging).   I tried to install fresh copy of Yosemite and it was smoother and the lag was gone but I have to use this system so restored it. That's why I think some apps are causing this issue?    As you can see only 100MB of RAM is free!    My Mac specs:    EtreCheck report as advised:


Two figures are arranged on top and bottom position

I want to arrage two figures in "side-by-side" (left-right). But the out put I got is like this (top-bottom):   My code is here.  \documentclass{article} \usepackage{graphicx} \usepackage{subcaption}  \begin{document}  This is sample latex code.  \begin{figure} \centering \begin{subfigure}{0.4\textwidth}   \includegraphics[width=0.4\linewidth]{linux.jpeg}   \caption{A subfigure}\label{fig1} \end{subfigure}  \begin{subfigure}{0.4\textwidth}   \includegraphics[width=0.4\linewidth]{latex.jpeg}   \caption{A subfigure}\label{fig2} \end{subfigure}  \end{figure}  \end{document}   Obviously, there is a large room to arrange the two figures left and right positions respectively. But latex does this space wasting arrangement. How can I fix it?  Note that I'm using TexLive 2018 installed on Mac.


How to get UTC time without SimpleDateFormat?

I'm currently working on timestamps that are converted from and to UTC. All articles that I found were based on conversion to and from String.   SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); simpleDateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); Date myDate = simpleDateFormat.parse(rawQuestion.getString("AskDateTime"));   But I wonder if there is a way to simply work with the Date instance/class or the calendar to convert the local Date into UTC and vice versa without converting it to String in between.


Log File Size near 100% - How to find Active Transaction

The transaction log file size is nearing 100% on one database. I run the below and both return 0 so no active transaction running.   The last query tells me that the database is in SIMPLE mode, but 'ACTIVE_TRANSACTION' is returned in log_reuse_wait_desc column.  However, I cannot see any running transaction! I have tried querying sys.dm_tran_database_transactions but do not see any transaction for this specific database.  How do I find this transaction?   SELECT @@TRANCOUNT;  SELECT XACT_STATE();  SELECT name, recovery_model_desc, log_reuse_wait_desc FROM sys.databases;


How should I model rotation caused by bounce friction?

In my Java2D simulation, I have a disc which, when it bounces off the boundary of a 2D region, begins to rotate, as if it had gotten some spin from the wall.     I'm having trouble relating the collision vectors and the angular velocity of the spin that should result.  How should I approach this?


complex number question involving modulus

Let $z, w$ be distinct complex numbers. Show that if $|z| = 1$ or $|w| = 1$, then $$\frac{|z − w|}{|1 − z^*w|} = 1$$ [Hint: Note that $|a|^2 = aa^*$.]  Hey guys, couldn't get my thinking cap on for this question. Any helpful input? Will appreciate it!


I have a Python script I recently wrote that I call using the command line with some options. I now want a very thin web interface to call this script locally on my Mac.  I don't want to go through the minor trouble of installing mod_python or mod_wsgi on my Mac, so I was just going to do a system() or popen() from PHP to call the Python script.  Any better ideas? Thanks in advance!


I have been trying to make a simple program in eclipse indigo, but kept getting the same problem, so I made this test to see the code in the simplest way. It looks like this:  import java.util.Scanner; public class test {      /**      * @param args      */     public static void main(String[] args) {         // TODO Auto-generated method stub  Scanner input = new Scanner(System.in);  System.out.println("Please enter a letter");  String answer = input.nextLine();  if(answer == "a"){  System.out.println("a equals 1");  }  else if(answer == "b"){  System.out.println("a equals 2");  }  else{  System.out.println("a is not 1 or 2");  }  input.close();     }  }   My problem seems to be in the line  String answer = input.nextLine();   I found this small piece of information after a lot of testing.  If I change the code so it will use integers it will work, but it seems to have some problems with the String.  Does anyone know what's wrong?


Windows Ctrl + V equivalent for Linux terminal

In windows I can paste the clipboard content using the key combination Ctrl + V  However if I try to achieve the same in Linux terminal using the same Ctrl + V key combination, I get the output:  ^V   How to paste clipboard content to terminal in Linux using keybord?


Whatsapp asks for too much free space during backup

I have an iPhone 6s, fully updated. Starting from 20 December, whatsapp complains that there is not enough space on the iphone to do a backup to icloud. Before this date, everything worked fine and I don't remember doing anything particular around that time.  The backup dimension is 2.37 Gb with 878 Mb of videos. Currently I have 8.2 Gb of free space on my phone (and 40 Gb on iCloud), but whatsapp complains that I should "free 512 MB of space on the phone to do chat backup".  So, I have two questions:  1 - Why does the backup require any additional space at all? The 2.37Gb are already stored locally inside the whatsapp app; why would I need any additional space for the icloud backup?  2 - Why does it require so much more space? Is there something wrong?


train_test_split() error: Found input variables with inconsistent numbers of samples


How to set roman font to make references to R?

I'm writing a thesis and I need to make references to R. I've read some other articles that cite "R" and they seem to use the roman font. I have no idea how to set this font :(


Equivalent of using (s) to indicate possible plural for words using "ies" for plural?

If I want to write how many of something I have that uses "s" to indicate plural, I can use (s), as in "Joe had X apple(s)". But say I want to write something like "The report contains 2 entries" or "The report contains 1 entry". Since the plural of entry isn't "entrys", it seems incorrect to write entry(s). What is the proper syntax for this?


Something like this. I would like to get only the second level menu items, not their parent items.  Home   Sub Menu Item 1 Sub Menu Item 2   About   Sub Menu Item 3 Sub Menu Item 4   For example, from this list I'd like an output of something like.

Sub Menu Item 1

Sub Menu Item 2

Sub Menu Item 3

Sub Menu Item 4

   I have been at this for weeks now, no answer I found on this site or any other has helped.


Why isn’t Middle-earth filled with elves?

We know Elves do procreate and have children. We know they do have sex. Immortal beings with normal reproduction would fill Middle-earth if left unchecked (like rabbits).  We see Elrond with 3 children in 3500 years which would be unlikely for a human.  I can only think of 3 reasons:   Reduced sex. Elves have a reduced sexual drive (similar to Vulcan Pon Farr) so that they have intercourse only every couple hundred of years (sad sad sad life). Reduced fertility. Elves have sex at the normal rate but it’s really difficult for them to get pregnant so you can literally spend 1000 years trying. Contraception. Not so unlikely as some contraception methods are documented going back to B.C. dates.   Is there any canon source as to why there are so few Elves in Middle-earth?


How much feedback should you get from a Supervisor?

My dissertation is due next month and I’m extremely stressed about it. I meet with my supervisor nearly every week but apart from being given papers to read I don’t feel like I’ve been supported enough regarding feedback. Whenever I sent drafts of my work they never gave any written feedback and just told me at the next meeting “I didn’t read it in detail but I thought it was good” - this has happened two or three times already. I submitted my most recent draft and after cancelling our meeting they said they would give me an email of written feedback and it never arrived. When I gave a draft of my work to another lecturer earlier in the year they gave a large and precise list of things that could be improved. Their level of feedback made me think if that’s what I should be receiving more often. I don’t know if I’m expecting too much from a supervisor or if this one is the norm.


Generating a list with foating point values

I wish to generate a list with these value:  [0,0.01,0.02...0.49]   and I though that this was the correct way to do it:  [0.01*i for i in range(50)]   But to my horror I observed the following:  >>> 35*0.01 0.35000000000000003 >>> float("0.35") 0.35   What am I doing wrong? If I understand correctly It seems 35*0.01 does not give the closest floating point representation of 0.35 but float("0.35") does.


Why am i get an error that says "Process finished with exit code 1" in android studio

This is the error thread that is output  "C:\Program Files\Java\jdk1.8.0_102\bin\java" -ea -Didea.launcher.port=7536 "-Didea.launcher.bin.path=C:\Program Files\Android\Android Studio\bin" -Didea.junit.sm_runner -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Android\Android Studio\lib\idea_rt.jar;C:\Program Files\Android\Android Studio\plugins\junit\lib\junit-rt.jar;E:\Program files\Android Studio Files\android-sdk\platforms\android-22\android.jar;E:\Program files\Android Studio Files\android-sdk\platforms\android-22\data\res;C:\Users\pcname\AndroidStudioProjects\projectname\build" com.intellij.rt.execution.application.AppMain com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 @w@C:\Users\pcname\AppData\Local\Temp\idea_working_dirs_junit2.tmp @C:\Users\pcname\AppData\Local\Temp\idea_junit2.tmp -socket51102 Exception in thread "main" java.lang.NoClassDefFoundError: junit/textui/ResultPrinter     at java.lang.Class.forName0(Native Method)     at java.lang.Class.forName(Class.java:264)     at com.intellij.rt.execution.application.AppMain.main(AppMain.java:122) Caused by: java.lang.ClassNotFoundException: junit.textui.ResultPrinter     at java.net.URLClassLoader.findClass(URLClassLoader.java:381)     at java.lang.ClassLoader.loadClass(ClassLoader.java:424)     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)     at java.lang.ClassLoader.loadClass(ClassLoader.java:357)


Error, command already defined - IOP article with mhchem

I am using LyX to prepare an article. The document class is 'IOP article' and I am using the mhchem package to typeset chemical formulae in the paper. I include \usepackage[version=3]{mhchem} in the LaTeX preamble.  I am thrown 11 errors when I try to preview the document:   LaTeX Error: Command \leftroot already defined. LaTeX Error: Command \uproot already defined. etc..   Suggestion/solutions much appreciated.


Equilateral triangle inscribed in an ellipse

An equilateral triangle of side length $ L\approx 6.14$ and one side inclination $ \approx 49.52^{\circ}$ is inscribed in an ellipse of semi-axes $(a,b) = (5,3)$. Drawn in Geogebra by Java mousing .. trial/error.     Are  $ (L,\alpha) = f(a,b) $ in this configuration unique? If so, what is the exact length and a side slope as a function of $(a,b)?$. If not, what are all equilateral triangles in a set that can be drawn on  parameter $\alpha$ or any other convenient parameter?   Thanking you in advance for helpful suggestions.  EDIT1:  Starting with a smaller ellipse $ (a,b)=(1.5,1) $ and a single point on it as equilateral triangle center locus $(u,v)=(1,0.74)$ on $(a,b)=(13.43,10.95)$ of a larger ellipse results in radius $11.94$ according to answer by achille hui. A single equilateral triangle (of such inverse procedure) is sketched here:


How to execute a command for each lines in a txt file

i'm trying to automate the research about a list of domain i have (this list is a .txt file, about 350/400 lines). I need to give the same command (that uses a py script) for each line i have in the txt file. Something like that:  import os  with open('/home/dogher/Desktop/copia.txt') as f:     for line in f:         process(line)         os.system("/home/dogher/Desktop/theHarvester-master/theHarvester.py -d "(line)" -l 300 -b google -f "(line)".html")    I know there is wrong syntax with "os.system" but i don't know how to insert the text in the line, into the command.. Thanks so much and sorry for bad english..


Suppose $a$ and $b$ are positive integers, and that $d=\gcd(a,b)$. Suppose we have found integers $x$ and $y$ such that $ax+by=d$. Prove that $x$ and $y$ are relatively prime.


Clicking duplicate question: different redirect across sites?

I clicked a question marked as duplicate on :  (Search , click on the one with title Tax consequences for moving funds from my U.S. account to wire cash proceeds to U.K.?)  This immediately brought me to the 'original' .  I then searched on SO for closed:yes questions ordered by date, and in the search results click on a dupe, and was NOT redirected. E.g. . Instead, it has a link refering to the question it is a dupe off.  Is this different behavior by design? There are two things that I can think of that are different:   I deliberately picked a SO question without comments and answers, thinking that maybe you would not be redirected if there is something to read under the duplicate. I cannot see if the dupe money question has comments/answers. (Note that I'm actually doing a reverse test here) I am not a registered user on Money as I am on SO.


Windows 8 won't boot via GRUB after installing Ubuntu with boot-repair

I've just purchased a new Acer Aspire V3-771G laptop which came pre-installed with windows 8.  I shrunk the main windows partition and installed Ubuntu 12.10. I then had to run boot-repair to be able to boot to Ubuntu. .  This worked and I could now boot Ubuntu and it provided me with 3 other entries which should supposedly allow me to boot back to windows 8. However when trying these menu entries I get the following errors:  Windows UEFI bkpbootmgfw.efi  /EndEntire file path: /ACPI(a0341d0,0)/PCI(2,1f)/UnknownMessaging(12) /HD(2,c8800,96000,fe030bf1430a6047,9a,9a)/File(\EFI\Microsoft\Boot) /File(bkpbootmgfw.efi)/EndEntire error: cannot load image.   Windows Boot UEFI loader  /EndEntire file path: /ACPI(a0341d0,0)/PCI(2,1f)/UnknownMessaging(12) /HD(2,c8800,96000,fe030bf1430a6046,9a,9a)/File(\EFI\Boot) /File(bkpbootx64.efi)/EndEntire error: cannot load image.   EFI/OEM/Boot/bootmgfw.efi  /EndEntire file path: /ACPI(a0341d0,0)/PCI(2,1f)/UnknownMessaging(12) /HD(2,c8800,96000,fe030bf1430a6046,9a,9a)/File(\EFI\OEM\Boot) /File(bootmgfw.efi)/EndEntire error: cannot load image.   I have looked in the /boot/efi partition and the .efi files listed in grub are there but I always get this error.


Convergence of $\sum_{n=3}^\infty \frac {1}{n \ln n}$

I know I have seen something similar and there is a telescoping trick to the convergence but it is eluding me.


Is there a single word or very short phrase to describe the act of contemptuously referring to someone by using a diminutive "nickname", with which that person is not normally associated?  For example, referring to Henry Wadsworth Longfellow as Hank Longfellow? Or William Penn as Billy Penn?


How to connect to my old account which was using OpenID

I've noticed today that users can't use OpenID for login anymore. I have an old account with linked only to OpenID.  How I can login into my old Stack Overflow profile now?


Restricting a Weil divisor to a local scheme

Apologies if the title is garbage. I couldn't think up anything more pertinent, as it's really just a notational question.  In Hartshorne, p.141, Proposition 6.11, it is shown that Weil divisors are Cartier (under some assumptions).  My question is what on earth does it mean for $\mbox{Spec } \mathcal{O}_x$ to be a local scheme; moreover, how does one induce a Weil divisor $D_x$ on it?  In my head this is supposed to be restricting $D$ to a given point; the construction then gives a local equation for $D$ at $x$.  However, I am struggling to see how the scheme $\mbox{Spec } \mathcal{O}_x$ corresponds at all to $x$: it's not even a point unless the stalk is a field.  Thanks for any help offered.


Bounds of $I=\int_0^1\frac{\sin x}{\sqrt x}$ and $J=\int_0^1\frac{\cos x}{\sqrt x}$?

How to find bounds of $$I=\int_0^1\frac{\sin x}{\sqrt x}$$ and $$J=\int_0^1\frac{\cos x}{\sqrt x}$$     A) $I>2/3$ and $J>2$   B) $I<2/3$ and $J>2$   C) $I>2/3$ and $J<2$   D) $I<2/3$ and $J<2$


Does multivariate regression produce the same results as multiple, single regressions?

I've read a variety of answers on this topic and as far as I can see, the consensus is that multivariate regression is different from multiple, individual linear regressions. I also understand that in multivariate regression, the results are estimated simultaneously, which in principle could result in different outcomes.  However, I believe I am missing something in my understanding because I can't reproduce an example where they produce different results.  For example, using R syntax, 3 regressions with correlated errors  error <- rnorm(100,0,1)  x <- rnorm(100,0,1)  y <- rnorm(100,0,1)  z1 <- 1*x + 2*y + error  z2 <- 1.5*x + 0.5*y + error  z3 <- 0.8*x + 1*y + error  Result:  lm(cbind(z1, z2, z3) ~ x + y)  gives the exact same results as:  lm(z1 ~ x + y) lm(z2 ~ x + y) lm(z3 ~ x + y)  The results here are the same for both methods and I cant think of an example where the results wouldn't be the same.  Simply, could you give an example where multivariate regression produces different results to multiple, individual regressions?


Why can't we easily see what answers were deleted when "User was removed" happens?

From time to time single users are “removed” for whatever reason together with their questions and answers, and also the reps of those who answered their questions. While the reasons for users being removed are not revealed, I don’t understand why I can’t easily see which of my answers were removed as a consequence.  -20   7 hours ago removed User was removed (learn more)  What is the reason for this? I am asking Why not how.


Prove the identity $1(1!)+2(2!)+3(3!)+...+n(n!)=(n+1)!-1$ without using induction

I was asked to prove this identity using two methods. I have already completed a proof by induction, but I don't know another method to prove this and the hint I was provided doesn't make any sense to me.  The hint provided was: For the other method, try to express $k(k!)$ as the difference of factorials.


Variations of earth's magnetic field strength among different geographical locations

Is it true that on average, people who grow up in a geographical location of the earth where the magnetic field strength is stronger than other geographical locations, develop more to their genetic potential and experience less degenerative medical problems and less cases of cancer compared to people who grow up in geographical locations where the earth's magnetic field is weaker (less)?  Is it true that during ancient times, intelligent beings used the placing of stones in various locations of some countries such as Scotland, England, Ireland, Egypt, America, or South America, to mark various locations where the Earth's magnetic field lines were the strongest in their particular location and / or, in different locations? This is a question pertaining to the physics of molecular biology and Earth's magnetic lay lines.  In general (on average) is there a stronger magnetic field in geographical areas below sea level more than geographical areas above sea level?


Is it proper usage to replace a comma in a list with a semi-colon in this situation (see details)?

While writing a proposal at work today I needed to mention a list of things and within that list were multi-part items. It seems like replacing the comma with a semi-colon in this situation would make the sentence easier to understand, but is it correct usage?  With standard punctuation this could get confusing:       Some of my favorite things to do are   camping, playing football and   baseball, watching Laurel and Hardy   Movies, and traveling.   Proposed alternative. Is this acceptable usage?       Some of my favorite things to do are   camping; playing football and   baseball; watching Laurel and Hardy   Movies; and traveling.


Why doesn't a block rotate due to friction?

In a  horizontal surface, a block (cube) is sliding due to a sudden push. When the block slides, there is frictional force which is acting on the block.     Frictional force will have a torque around the center of mass, so why does the block not rotate/roll around (a horizontal axis through) the center of mass instead of sliding?


Why isn't there a potential difference across a disconnected diode?

I know this question sounds silly, as if there was a potential difference a current would be created when the terminals are connected together and this would mean energy has come from somewhere.  The reason I ask this though is that from my understanding of the depletion region and built in potential of a diode it seems like if you connected a voltmeter across the whole diode it would show the value of the built in potential.  This is explained in the image below:    At first, electrons flow from the n type to the p type because there are a higher concentration in the n type, and holes do vise versa. This is called the diffusion current. The first electrons and holes to cross the pn boundary are the ones which are closest to it; these carriers recombine when they meet each other and are then no longer a carrier. This means there is a depletion region of no carriers near the pn boundary. because electrons have left the n type material, and holes have left the p type material, there is a surplus of positive and negative charge on the n and p side of the pn boundary respectively. This causes an electric field that opposes the diffusion current, and so no more electrons or holes cross the boundary and combine. In short, only the electrons and holes near the boundary combine, because after they have done that an electric field is formed that prevents any more carriers from crossing. The current due to this electric field is called drift current, and when in equilibrium this will equal the diffusion current. Because there is an electric field at the boundary (pointing from the positive charge to the negative charge) there is an associated voltage. This is called the built in potential.  If you sample the electric field at each point along the diode from left to right, you would start with 0 in the p region because there are an equal number of protons and electrons. As you approach the depletion region you would see a small electric field pointing back towards the p region, caused by acceptor impurities which now have an extra electron (due to recombination) and therefore now have a net negative charge. This electric field would increase in strength as you get closer to the boundary, and then die away as you get further away.  This electric field means there is a voltage, as shown in graph (d). The p side is at an arbitrary potential, and the n side is at a potential higher than this because there is an electric field between them. This means there is a potential difference across the depletion region; this is known as the built-in potential.  But why when I connect a volt-meter across the whole diode will I not see this built in potential?  Edit:  I've also asked this question on another  And they say that the reason is because the net potential difference across the diode once it has been connected to a wire or volt meter is zero, because a metal-semiconductor junction has an electric field between it, and the overall effect of the electric fields at the junctions of the m-p-n-m materials results in zero potential difference.  Regardless of the fact that voltage does not equal electrostatic potential difference, can you please confirm that there is also no net electrostatic potential difference across a diode connected to a wire or volt meter because of the m-s junctions? I'd like to get a physicists answer on this, to see if this is the truth or just a simplified explanation to make it easier to accept.


Regex displaying only first digits and ignoring the second digits

I am using Regex for the first time and I've stumbled upon something quite unpleasing... I'm looking for a format that is sometimes "two digits | four digits" or "three digits | four digits". The problem is that when called only first part of the digit string is displayed. And I'm having this problem because of the | separator between the digits, because if I put / in between instead of | everything is displayed normally. My code at the moment is like this: import re  string = '554 | 8888'  # Three digit number followed by | followed by two digit number  pattern1 = r"(\d{3}) | (\d{4})" pattern2 = r'(\d{2}) | (\d{4})'  # match variable contains a Match object.  match1 = re.search(pattern1, string) match2 = re.search(pattern2, string)  if match1:     print(match1.group())  elif match2:     print(match2.group()) else:     print("pattern not found")  And if i run the program I get: "554" instead of "554 | 8888" Any solutions and improvements are very welcome :)


Please pardon my ignorance, but...  I keep finding myself in a situation, where I'm faced with a bunch of new data I managed to find. This data usually looks something like this:  Date     Number1  Number2  Category1  Category2 20120125      11      101        Dog      Brown 20120126      21       90        Cat      Black 20120126      31      134        Cat      Brown (...)   Usually at first glance I can't really tell if there are any trends here. The correlations between the various columns may not be very significant, but I would be delighted if I didn't have to manually create a plot for every possible combination of columns/categories.  Is there a tool out there which would accept a table of data along with information which columns should be treated as numbers, dates and categories and then proceed to plot:   correlations between each two numerical columns correlations between each two numerical columns, with separate trend lines for each category each number column as a time series, each number column as a time series, separated by category, etc.   In the end this would generate a large number of plots, most of which would show only noise. Ideally, the tool could score the plots by correlation and in the end display a slideshow starting with the highest scoring plots. This would be a very imperfect, but useful first glance at the dataset.  So? Is there a tool everyone uses for this and I just don't know about it, or is this something we need to make?


Is there a way to flag a revision for a moderator?  The edit on this answer, , should be rolled back but I don't have that option and don't see a way to flag just the edit.


Which one is correct "Where I was or Where was I"?

I am little bit confuse to use Where I was or Where was I.  For Example I use -     My brother wanted to know where was I?   Please help


How to make everything run as root in ubuntu?

I have setup a virtual machine for compiling software for linux which I develop on Windows.  I setup to automount a windows folder, run compilation scripts and then just shutdown. The machine isn't even connected to a network.   I have read a few question to answer it myself but the only thing I can make happen is that I do not have to type in a password and auto login my user in ubuntu.  But what I want to do is: I want to execute a command in the terminal. I want it to execute with root privilidges, every command and always under any circumstances. I do not want to type "sudo" or "su" every time I go to the console to compile my programs (some scripts require root privilidges, some not, you don't know until you run it and a bunch of errors appear which makes it really frustrating).  So how do I do this?  Optional: How can I make everything in the default Ubuntu GUI also run as admin? Eg gedit when double clicking on a file?  Proclaimer I looked for   about this topic but they do not answer the question. Every answer denies an correct answer on a "it's not secure" basis (even though users state most of the times they are aware of the security risks)... and I do not care about a non-networked OS's security. It's just a matter of loading a previous snapshot of the compilation VM if anything breaks.


So, I just bought a laptop with Ubuntu on it at a pawnshop and I can't do anything since the person sold it had not written down his password or recovery key, did I waste my money or is there a way to fix this? Please help.


How to make an Android update for your own device?

I have  which the android version is 4.2. After read some articles about Kitkat, I'm really excited and want to try to experience it on my phone. However, it seems the manufacturer won't update it to Kitkat in the future. So I think I'll do it my own. I understand and accept the risks.  So, what should I do now? I read some articles about this but can't make a check list of things to do. Will it be  or I can re-use the old kernel? How can I extract the old driver?  If someone can provide me a guide or a check list, it will help me so much! Any idea will be appreciated!


Getting untrusted enterprise error with beta iOS app

I wanted to try the latest SE iOS app beta on iOS 9 (13A4325c).  After downloading v 1.3.2.229 via mobile safari, this modal dialog casts shade upon stack developers:    Have I missed a certificate to install?


What is wrong with my code? I get this error every time I run my code. Trying to download a .txt file, and then display the text in the toast. That is all I want!                                                                : FATAL EXCEPTION: main    Process: nnsoft.nsomuhtest, PID: 18706                                                                   java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference                                                                       at android.widget.Toast.<init>(Toast.java:138)                                                                       at android.widget.Toast.makeText(Toast.java:385)   code:   @Override     protected void onPostExecute(String unused) {         StringBuilder text = new StringBuilder();         try {             BufferedReader br = new BufferedReader(new FileReader(AnnouncementsDirectory));             String line;             while ((line = br.readLine()) != null) {                 text.append(line);                 text.append('\n');             }             br.close();             Toast.makeText(context, text, Toast.LENGTH_LONG).show();         } catch (IOException e) {             Toast.makeText(context, "error reading ver file", Toast.LENGTH_LONG).show();         }     }


Get just a class name without module, etc

I'm probably overlooking something simple.  Given an instance of a class, I'd like to get just the class name.  For example:  class Foooo: pass instance = Foooo()  print("instance.__class__ = "+str(instance.__class__)) print("Just the class name: "+str(instance.__class__).split(".")[-1][:-2])   This gives the following output:  instance.__class__ = <class '__main__.Foooo'> Just the class name: Foooo   Is there something simpler than  str(instance.__class__).split(".")[-1][:-2]?   I'm in Python 3.2 if that helps...


I have a simple question that i hope someone can answer.  Is there a way to show a preview pane that will give a "Preview" of whatever file you have highlighted within a document library. Windows has this feature so i was hoping that SharePoint does as well.  I am using Office 365 for Business with SharePoint Online.  Many Thanks,  Ethan.


I understand that there is a lot of similar questions, but I can't grasp on when to use a one tailed or two tailed test when reading a example such as the one below:  We suspect that test driven development is better than writing tests afterwards, i.e. results in fewer faults in the system we are looking at. Is this a one tailed or a two tailed situation? How do these two differ?  I understand that two tailed can test both if the mean is greater or less than X and that one tail only test if its less or greater than X and not both. So is one tail testing the best one?


Installing 12.04 from 12.10 with black screen issue

I recently upgraded from 12.04 to 12.10 and now have an issue with a black screen upon booting. Im having a lot of trouble with this issue and I dont care to fix it anymore. I still have the usb drive that I used to install 12.04 from windows 7. can somebody please, please run me through how to get back to using 12.04 it would be much appreciated.


I'm looking for the title of a short story by Ursula Le Guin about a scientist (?) who is given a drug that slows the timescale of his perception enormously, so that he can perceive that an alien (?) forest is actually behaving as a sentient being, reacting to current events, but at an enormously slow (from a normal human point of view) timescale. It might be in , but I don't remember the title (and it doesn't jump out at me from the list of titles) and don't have access to that collection right now. It is not "The Word for World is Forest", nor "Direction of the Road" (from ), nor "Vaster than Empires and More Slow", the latter two of which look at similar plant perception/time-scale issues. Update: it turns out that the description was right, but I had most of the details wrong: not Le Guin, not alien, not a scientist ...


Let $G, H$ be locally compact, $\sigma$-compact metric groups equipped with left Haar measures $m_G, m_H$ respectively. Let $\Phi: G \times H \to G$ be continuous such that $\phi: H \to Aut(G), \, h \mapsto \Phi( \cdot, h)$ is a group homomorphism. Denote $\Phi_h = \phi(h)$. Then, the semidirect product $G \rtimes_\phi H$ is defined as the topological space $G \times H$ equipped with $$(g_1, h_1) \cdot (g_2, h_2) = (g_1 \Phi_{h_1}(g_2), h_1 h_2)$$ for $g_1, g_2 \in G, \, h_1, h_2 \in H$. This is a topological group.  I would like to show that $$dm_{G \rtimes_\phi H}(g,h) = mod(\Phi_h) \,dm_H(h)\, dm_G(g) $$ defines a left Haar measure on $G \rtimes_\phi H$, where $mod$ is of course the modular function $mod: Aut(G) \to \mathbb{R}_{>0}$ defined by $$m_G(\varphi^{-1} B) = mod(\varphi) m_G(B)$$ for Borel sets $B \subseteq G$.  How can I do this without any explicit form for $\Phi_h$? The definition for the semidirect product on wikipedia uses conjugation instead of a general automorphism. Is it obvious from my definition that $\Phi_h$ must be some conjugation?


Prove that if $a$ and $b$ are odd, coprime numbers, then $\gcd(2^a +1, 2^b +1) = 3$.   I was thinking among the lines of:  Since $a$ and $b$ are coprime numbers, $\gcd(a,b)=1$. Then there exist integers $x$ and $y$ such that, $ax+by=1$.   Then, $a=(1-by)/x$, $b=(1-ax)/y$  So if I write $2^a+1$ as:  $2^{(1-by)/x}+1$  Then can I say that the above expression is equivalent to 0 (mod 3)?


A continuous, injective function $f: \mathbb{R} \to \mathbb{R}$ is either strictly increasing or strictly decreasing.

I would like to prove the statement in the title.  Proof: We prove that if $f$ is not strictly decreasing, then it must be strictly increasing. So suppose $x < y$.  And that's pretty much how far I got.  Help will be appreciated.


Can I make a redstone clock that detects certain words?

I made a vanilla minecraft server and I made a redstone clock attached to a command block with /testfor that detects players. Can I change the /testfor from detecting players to detecting certain words in the chat? For example if warp was found in the chat, that would trigger the comparator next to the command block and trigger another command block with /tp @p x y z.(This is equivilant to "warping" someone somewhere)


Does wp_query and query_posts affect website performance?

I've been aware about the difference of wp_query and query_posts. I just want to know what impact does both query methods to the performance of the page? Which query method makes the page load quicker or slower?


how to find a word in text files from a directory

Suppose that I have a directory with name _file and includes two sub directory like _1 and _2 and on each one I have some text files. I want to search a word like foo in one of these text files. How I can do that?  I want to know which text files in the whole directory contain that word?


How to transfer 0 V - 5 V across galvanic isolation barrier?

Similar to how optocouplers are used to isolated digital signals, how can an analog signal be transmitted across an isolation barrier?  I am looking at a signal between 0 V and 5 V. I want to read the signal, and output a signal with the same voltage at the other end.


Make package explicitly installed in pacman

I have a package that's installed on my PC as an dependency to another package.  I would like to have the package explicitly installed, but without actually re-installing it, or downloading any files.  Is this possible?  update:  I do not have any packages cached in /var/cache/pacman/pkg, which is one of the reasons I want to change the package detail without a re-install.  Even If I had the packages cached, running pacman -S  would mean the whole install proccess is run, which I also want to avoid.


Can you share a Wi-Fi connection using Personal Hotspot?

I have an iPhone 4 with iOS 6.1.3. I turn on cellular data + 3G and Wi-Fi constantly.  I was at a site office today and my iPhone automatically connected to the office's Wi-Fi. The tech guy was not around to provide me with the Wi-Fi password to use on my Windows laptop. I then connected my iPhone to my Windows laptop using the USB cable and turned on Personal Hotspot on my iPhone.  At that point, is my laptop using cellular data through iPhone, or the Wi-Fi access point my iPhone is connected to?  I noticed that my iPhone has the 3G symbol in the status bar. But when I disconnect the cable from my laptop, it switches to Wi-Fi.


How is the below question highlighted with a background shade?

When I was navigating to a question and entering comments, I incorrectly pressed some key near the Enter key and the question I was commenting in gets highlighted. When I inspect element the highlighted element block, I noticed the keyboard-selected class added to the question class div element. What is the use of the option and using which key I can make the div highlight like this,


How to get a thread and heap dump of a Java process on Windows that's not running in a console

I have a Java application that I run from a console which in turn executes an another Java process. I want to get a thread/heap dump of that child process.  On Unix, I could do a kill -3 <pid> but on Windows AFAIK the only way to get a thread dump is Ctrl-Break in the console. But that only gives me the dump of the parent process, not the child.  Is there another way to get that heap dump?


Generating prime numbers of the form $\lfloor \sqrt{3} \cdot n \rfloor $

How to prove the following claims ?  Let $b_n=b_{n-1}+\operatorname{lcm}(\lfloor \sqrt{3} \cdot n \rfloor , b_{n-1})$ with $b_1=3$ and $n>1$ . Let $a_n=b_{n+1}/b_n-1$ .   Every term of this sequence $a_i$ is either prime or $1$ . Every odd prime of the form $\left\lfloor \sqrt{3}\cdot n \right\rfloor$ greater than $3$ is a term of this sequence. At the first appearance of each prime of the form $\left\lfloor \sqrt{3}\cdot n \right\rfloor$ greater than $5$, it is the next prime of the given form after the largest prime that has already appeared.   A few first terms of this sequence can be found at  .  Implementation of this generator in PARI/GP can be found .


Does a Sri Lankan need a transit visa for Malaysia?

I am a Sri Lankan, travelling to Brunei from Colombo via Malaysia by Malaysian Airlines. I have a 6-hour layover in Kuala Lumpur. Do I need a transit visa?


I was watching a video on an app and a pop up message shows up saying that my iPad has a malware or something I'm really confused what do I do and how do I know that my device has a virus or not?


MTG reacting instant speed on creature entering game

When I play MTG, sometimes I can't kill creature which entered the battlefield under opponent's control right away. To give example  entered the battlefield but I could not kill him instant speed even when I had both mana and spell. But at other occasions (if I remember correctly) I could kill a creature which entered the game before it could activate its ability (not ability activated "When entered" but something like use mana to deal damage so similar to Lurrus). Should not I be able to react instant speed on Lurrus and since his ability is casting from graveyard which is not instant speed he should not even be able to react with it on my instant removal?


We have a busy SSRS Reporting server (SQL Server 2008 R2) on which we see frequent blocking between the below processes:   [dbo].[CheckSessionLock]  [dbo].[WriteLockSession]   We are aware that some reports are running unacceptably slow. What I need to know is whether the blocking in the ReportServer database is symptomatic of an overloaded server or whether the blocking is causing the reports to run slow.   I am inclined to believe it is the first case but haven't been able to gather evidence prove it definitively as such.   I have read the thread at  in which the issue is loosely acknowledged but I cant get to the link cited for addressing this issue.  Has some out there got to the bottom of same problem with blocking in the ReportServer database?


Allow code snippets to use more screen width

I understand, from reading other Meta questions on this topic, that the StackOverflow administrators have good reasons for keeping the site to a fixed-width layout. However, one disadvantage of this layout that regularly frustrates me is the poor readability it imposes on code snippets. Horizontal scroll bars are a terrible thing, especially when trying to read code, when I often need to see both ends of the text at once (as opposed to letting my view flow from the end of one line to the beginning of the next). And unless the author of a StackOverflow post has been very careful to cut their code down to 80 characters per line, code blocks nearly always have horizontal scroll bars because the fixed width of the post column is so narrow.  The horizontal scroll bars are even more frustrating when I consider that I have a nice big 1920x1080 monitor that can easily display 256-character lines in my IDE, and yet I'm forced to view the code in a tiny window with scroll bars, surrounded by empty space.  Sure, I know that 80 characters is a standard width for formatting code, and StackOverflow is trying to discourage posting huge chunks of code, but some code snippets simply can't conform to that width even when reasonably-sized. In particular, code in Java, C#, and Objective-C tends to force the scroll bars to appear simply because standard type names, identifiers, and function signatures are very verbose.   Since most people these days have a wider monitor than the 1024-pixel width the StackOverflow layout was designed for, can the site somehow enable code snippets to use more of this width when the user desires it? Possibilities include:   Code blocks can "pop out" into a separate, resizeable browser window Code blocks can temporarily (either with a toggle button or on-hover) expand dynamically to fill the width of the screen, pushing sidebar content out of the way if necessary The user can reduce the font size of text in code blocks relative to other text on the site (this would allow more characters to fit in the same fixed-width column, and the user could then zoom-in the page to maintain the same effective text size). The site has both the standard fixed width layout and a "wide" fixed width layout, where the "wide" layout is designed for at least 1440-pixel screen widths (yes, this is a much more heavy-weight solution).   EDIT:  I do not think this is a duplicate of  because that question is a request for one particular solution to this problem. I'm making a more general request for any solution to the problem, even if it isn't specifically "viewing code snippets in a new window."


'Have just finished' vs. 'Just finished': What is the difference?

I have just finished my homework.   I just finished my homework.      I think there must be a difference in meaning. Could anyone tell me the difference in meaning sentence 1 and sentence 2?


How to make IE11 detect events on dynamically generated elements?

I'm creating a learning module using html and jquery. It is a series of  situations that contain forms with dynamically generated 'select' elements and checkboxes. They are appended to id's on the dom on load through the following function:  For clarity: b=branch, s=situation, a=answers, t=type, l=label, f=form.  function appendAnswers() {   for (var i = 0; i <= data.length - 1; i++) {     if (data[i].b.indexOf(selectedBranch) !== -1 && data[i].s === situationToLoad) {       var checkBox = '' + data[i].l + '';       var select = '<option value="' + data[i].a[0] + '"> Select Answer </option><option value="' + data[i].a[1] + '">' + data[i].a[0] + '</option><option value="' + data[i].a[2] + '">' + data[i].a[1] + '</option><option>' + data[i].a[2] + '</option>';       (data[i].t === 'dropdown' ? $('#f' + data[i].f + data[i].q).append(select) : $('#f' + data[i].f + data[i].q).append(checkBox));     }   } }   The user selects their answers and then clicks on a check button to have their answers checked. This is an onclick even in the html that takes a form number as an argument.  Example: onclick="checkAnswers('3849')"  If correct, the background color is set to green, otherwise it is set to red using the classes 'correct' and 'incorrect'.  The check function is as follows:  function checkAnswers(formToCheck) {   for (var i = 0; i <= data.length - 1; i++) {     if (data[i].b.indexOf(selectedBranch) !== -1 && data[i].s === situationToLoad && data[i].f === formToCheck) {       var currentQuestion = data[i].f + data[i].q;       var selectedAnswer = $('#f' + currentQuestion + ' > option:selected');       if (data[i].t === 'dropdown') {         if (selectedAnswer.text() === data[i].c) {           $('#f' + currentQuestion).removeClass('incorrect').addClass('correct');         } else {           $('#f' + currentQuestion).removeClass('correct').addClass('incorrect');         }       } else if (data[i].t === 'checkbox') {         $('#f' + currentQuestion + '>.checkmark').removeClass('incorrect');         if ($('#f' + currentQuestion + '>input').is(':checked').toString() === data[i].c) {           $('#f' + currentQuestion + '>.checkmark').addClass('correct');         } else {           $('#f' + currentQuestion + '>.checkmark').addClass('incorrect');         }       } else {         console.log("Error: The answer's type is undefined!");       }     }   } }    My problem is that when I click the button to check my answers (only in IE, of course... :/) nothing at all is happening and I am getting no errors at all in my console. I logged incorrect/correct to the console and it seems that it working properly, but the 'correct/incorrect' classes aren't getting added to the elements. Have any of you dealt with an error like this before?  Thanks in advance!  *Edit was added variable for better legibility


I want to show that $R$ is Noetherian local ring and $S$ is Gorestein local ring s.t. $R=S/J$ and $f$ is an $R$-regular element, if for every $p\in\operatorname{Ass}_{S}(R),\operatorname{ht}_{S}(p)=\operatorname{ht}_{S}(J)$, then for every $p\in\operatorname{Ass}_{S}(R/f),\operatorname{ht}_{S}(p)=\operatorname{ht}_{S}(J)+1$.    But I am confused.     Let $R$ be a Cohen-Macaulay ring. Then for every ideal $I \subset R$, $p\in\operatorname{Ass}_{R}(R/I)$, $\operatorname{ht}(p)=\operatorname{ht}(I)$. Is this the unmixedness theorem?


Memory Usage of Python application in PyCharm

I'm trying to investigate high RAM use during the use of my Python application. The image below shows the high memory usage. Is there an option when using PyCharm to view memory usage? I have 16GB of system memory.


Free ISO Burner application uses up all the space on the disk when trying to burn the Ubuntu iso on a DVD

With Windows XP ending support next Tuesday, I was scrapped for time to find another replacement OS. I was told to install a Linux-based operating system as a replacement and I decided to try this version out. I didn't want to pay someone to install it for me, so I tried it on my own.  I downloaded "Ubuntu 12.04 LTS- 32-bit" () and waited about an hour for it to download the 730MB file. It was an image file (ISO file), so I used  "Free ISO Burner" to attempt to burn it. After three failed attempts to burn the file on a 4.7GB disk, I extracted the file with Winrar. I left the room and came back to find that the Ubuntu menu was up. The 730MB OS took up ALL of the disk space for the 4.7 GB DVD for some reason. Anyways, I clicked "Demo and Full Installation," then clicked on "Help Me Boot From a Live CD," since the computer didn't boot from the DVD after four attempts. It looked like it was working, but it stopped about the quarter of the way with the message:  An error has occurred: Permission denied. For more information please see the log file: c:\docume~1\hp\locals~1\temp\wubi-12.04.4-rev280.log   Link to Log ()  And that's my problem so far. Do I erase everything that was written on that disk and try to burn it over? Do I need an additional program to run it?   My specs:   HP (L2000) Windows XP Professional Edition (32-bit) Processor: AMD Turion(tm) 64 Mobile Technology ML-40 Hard drive: 93GB worth of space available (45GB used) RAM: 1024MB Display adapter: ATI Mobility Radeon Xpress 200 (Video RAM: 128MB)


I have this question:  Considering $$(1+x)^n(1+x)^n=(1+x)^{2n}$$ and show that: $${n \choose 0}^2+{n \choose 1}^2+{n\choose 2}^2+....+{n\choose n}^2={2n\choose n}$$  I have attempted so far: $$(1+1)^n={n \choose 0}+{n \choose 1}+{n\choose 2}+....+{n\choose n}$$ $$(1+1)^{2n}={2n \choose 0}+{2n \choose 1}+{2n\choose 2}+....+{2n\choose 2n}$$ $$\left({n \choose 0}+{n \choose 1}+{n\choose 2}+....+{n\choose n}\right)^2={2n \choose 0}+{2n \choose 1}+{2n\choose 2}+....+{2n\choose 2n}$$ and this is the part where I am confused about. Please help in where I got wrong and what I should do to show it in the correct method. The question here is to prove that $${n \choose 0}^2+{n \choose 1}^2+{n\choose 2}^2+....+{n\choose n}^2={2n\choose n}$$


Single word for thing which will never repeat in life

Consider:     Childhood never comes again in life.    What might be single word that means never come again in life?


I would like to create an Enum class in python. I need also some get_str() method, something like:  class Operation (object):     START = 0     STOP = 1     (...)      def get_str(self):         operation_dispatcher = {              Operation.START: "start",               Operation.STOP: "stop",              (...)               }     return operation_dispatcher[self]   But unfortunately that approach doesn't work. The objects are ints and I got error message that 'int' object has no attribute 'get_str'... Do you have any idea how to implement that functionality?  I tried to do something like:  Operation.get_str(operation_reference) as well as operation_reference.get_str()  UPDATE:  class EnumMeta(type):     def __getattribute__(self, name):         return self(super(EnumMeta, self).__getattribute__(name))  class Enum(object):     __metaclass__ = EnumMeta      def __init__(self, value):         super(Enum, self).__init__()          self.value = value[0]         self.repr = value[1]      def __eq__(self, other):         if isinstance(other, Enum):             return self.value == other.value         elif isinstance(other, int):             return self.value == other         else:             return object.__eq__(Enum, other)      def __repr__(self):         return str(self.repr)  class Operation(Enum):     START = (0, "start")     STOP = (1, "stop")     (...)  operation_dispatcher = {              Operation.START: start_method,               Operation.STOP: stop_method,              (...) }  # invoking operation_dispatcher[Operation.START.value]()


Force HTTP for a directory in server config file

I currently have enabled SSL for my entire site being hosted with Apache. Lets say my website is  hosted at the root /var/www/html. I would like to write a rule in my apache config file that redirects https for everything except . Can anyone help. I do not have a .htaccess file so this needs to be a rule that can be written in apache config, or my 000-default.conf file.


Tabularx table with multirows and multicolumns

Bundled images link:   I want to achieve this formatting of cells(incuding automatic linebreaks working or alternatively a good way to manually do it):  What I want to end up with(made in MS Word) :     However halfway in I saw that linebreaks apparently do not work within multirow cells:  What happens with the linebreaks?     Then I tried splitting the text up to the 2 different cells but couldn't find a way to move down the one cell down so the text looks as if it was inside one cell  What happens with split text:     Can you please provide me a working example for this table that includes automatic linebreaks? The last column really is relatively long.  I hacked something together but it isn't quite what I wanted:   Corrections are written in red. The very right column works great but the others don't quite do what I want them to do. Here is the code:      \documentclass[12pt,a4paper]{article}     \usepackage[utf8]{inputenc}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{multirow, tabularx, ragged2e}     \newcolumntype{C}{>{\Centering\arraybackslash}X}      \begin{document}      \begin{table}[!ht]     \begin{tabularx}{\textwidth}{|c|C|C|C|C}     \hline     \multirow{2}{*}{Text} & \multicolumn{2}{C|}{Text} & Very long text \\ \cline{2-4}     & \multicolumn{2}{C|}{Text} & Very long text \\ \hline      \multirow{1}{*}[-3.9em]{Text} & \multicolumn{2}{C|}{Text} & Very long text \\ \cline{2-4}       Text& \multicolumn{2}{C|}{Text} & Very long text \\ \hline      & \multirow{2}{*}{text} & text & text \\ \cline{3-4}      & & text & very long text \\ \cline{2-4}      Text & \multirow{1}{*}{Text} & Text & text \\ \cline{3-4}      & \multirow{1}{*}{Text} & text & Very long text \\ \hline     \end{tabularx}     \end{table}     \end{document}   THX in advance!


Navigate to a directory from a favorites list

Like everyone, I use the cd builtin command to navigate my directory-structure. Tab-completion comes in handy. Sometimes I use pushd and popd to jump between directories.  Some of those directories I use a lot. Is there a way to store them as a favorite, and then jump to that favorite by name?  I could easily shell-script this, and actually already did. But I want to know if there is a builtin, command or installable script for this.   I use bash 3.2 on macOS, but also bash 4.4 on Debian.


Installing software when Internet not working

The Internet is not working on my new HP Pavilion laptop (machine A). From what I read, I might be able to cure the problem by installing some extra packages on A. I'm now running on Machine B. On B I can do apt-get install blah. So how would I obtain and install blah on A, presumably using a memory stick to transfer it from B? Edit: My response to the ccomment below, the ifconfig output is: eth0 Link encap:Ethernet HWaddr 48:ba:4e:52:aa:7f 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)  lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:181 errors:0 dropped:0 overruns:0 frame:0 TX packets:181 errors:0 dropped:0 overruns:0 carrier:0 collisions:0  txqueuelen:1 RX bytes:12784 (12.7 KB) TX bytes:12784 (12.7 KB)  I've learned that on my machine, neither wireless nor wired works on Kubuntu 14.04.5. But on 16.04, wireless works but wired does not. From poking around I've learned that the problem has to do with the Realtek drivers, which probably need to be replaced. (I want to run 14.04.5, not 16.04; in brief, the reason for that is that 14.04 is the last version of Kubuntu that supports different wallpaper on different desktops.) Atleast I've ascertained that I don't have a hardware problem. Finding and installing the corrected Realtek drivers is a challenge by itself, but at least I have a path for installing them (I think).


So I'm trying to prove the following two inequalities: $$\frac{\sqrt{n}}{2} \leq \phi(n) \leq n.$$ The upper bound we get from simply noting that $\phi(n) = n \prod_{p | n}\left( 1 - \frac{1}{p}\right)$ and the fact that $(1 - \frac{1}{p}) \leq 1$. But how can we get the lower bound? I tried using the same expression for $\phi(n)$ but it seems to not really give me the inequality. Can you help?


I can not snap this two object precisely with direct selection tool also .What can I do?

I am trying to make a table like structure but the object i.e. a line segment which will connect both top and bottom pieces is not snapping perfectly.What can i do to resolve this issue ?


How to set the colorbar mapped to only one plot in pgfplots?

I have two plots in a figure, for example  \documentclass{article} \usepackage{pgfplots} \usepgfplotslibrary{colormaps} \pgfplotsset{compat=newest} \begin{document}   \begin{tikzpicture}     \begin{axis}[colormap/hsv,point meta rel=per plot,colorbar]       \addplot[mesh,domain=1:10,samples=20,] {20*x+10}; %positive value       \addplot[mesh,domain=1:10,samples=20,] {-100};%negative value     \end{axis}   \end{tikzpicture} \end{document}   The colorbar shows both the positive value and negative, but I want the colorbar only shows for the first plot. How can I do this?


Executable exists for everything but bash & file manager

I am running Debian.  I was trying to use truecrypt the other day. I downloaded and extracted the zip, and ran the installer. I just extracted the file, and did not install it. I then tried executing it, and apparently it does not exist.  First I just double clicked the file from thunar (xfce4 file manager), and it told me the file did not exist. I then tried the following:  ~$ cd /home/share/crypt/truecrypt/ /home/share/crypt/truecrypt$ ls -al truecrypt-linux_x86-64  -rwxrwxrwx 1 abstruselyarcane root 4873328 Feb  7  2012 truecrypt-linux_x86-64 #Its not a figment of my imagination /home/share/crypt/truecrypt$ file truecrypt-linux_x86-64  truecrypt-linux_x86-64: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), stripped # It is indeed an executable /home/share/crypt/truecrypt$ ./truecrypt-linux_x86-64  bash: ./truecrypt-linux_x86-64: No such file or directory # It doesn't exist? /home/share/crypt/truecrypt$ sudo ./truecrypt-linux_x86-64  [sudo] password for abstruselyarcane:  sudo: unable to execute ./truecrypt-linux_x86-64: No such file or directory /home/share/crypt/truecrypt$ ldd truecrypt-linux_x86-64      not a dynamic executable # file just said it is an executable!   I am very confused right now.   EDIT:  I has been suggested to be that I'm running a 64bit from a 32bit, I went to the other post, and tested my distro:  ~$ uname -m x86_64


I'm trying to sending email from nagios monitoring to some email addresses. But I have a problem with setup my from domain when I'm sending an email every time my from email address seems like this:    from=<root@patrik-VirtualBox>   and format like this some mail servers are rejecting.  so I need replace @patrik-VirtualBox to my domain @onedata.sk  here is my /etc.postfix/main.cf:  alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no config_directory = /etc/postfix home_mailbox = Maildir/ inet_interfaces = all mailbox_command = mailbox_size_limit = 0 mydestination = mail.onedata.sk, localhost.localdomain, localhost, yourdomain.com myhostname = onedata.sk mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 readme_directory = no recipient_delimiter = + relayhost = smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtpd_use_tls = yes   from log:  Feb  3 01:55:56 patrik-VirtualBox postfix/pickup[10655]: E2FFA66C36: uid=0 from=<root@patrik-VirtualBox> Feb  3 01:55:56 patrik-VirtualBox postfix/cleanup[10963]: E2FFA66C36: message-id=<20150203005556.E2FFA66C36@onedata.sk> Feb  3 01:55:56 patrik-VirtualBox postfix/qmgr[10656]: E2FFA66C36: from=<root@patrik-VirtualBox>, size=340, nrcpt=1 (queue active) Feb  3 01:56:35 patrik-VirtualBox postfix/smtp[10965]: E2FFA66C36: to=<patrik.kristel@onedata.sk>, relay=mailhub.nextra.sk[195.168.1.42]:25, delay=38, delays=0.03/0.01/30/8, dsn=5.0.0, status=bounced (host mailhub.nextra.sk[195.168.1.42] said: 517 Syntax error. (in reply to MAIL FROM command))   I have also tried to set up relayhost or , but it didn't help.  I have configured it in another server like this and there it works fine, so I don't understand why it doesn't work.


Can you add a colon before quotations instead of a comma?

Is it possible to add a colon instead of a comma before quotations?  Like this:  Person A said: "Blah Blah Blah."  Not as in theatrical performance, but as used in an story.


How can a group track database schema changes?

What version control methodologies help teams of people track database schema changes?


How can I derive an ed25519 key pair from a secp256k1 key pair?

Alice has a secp256k1 key pair that she used some time ago when she communicated with Bob. Bob can no longer user secp256k1 but he only uses ed25519 instead. Alice and Bob cannot exchange any messages.  Is there a secure algorithm that Bob can use to derive an ed25519 pubkey from original Alice's secp256k1 pub key and also Alice can derive the matching ed25519 private key from her original secp256k1 private key


Parametric equation of a circle on a 3D plane

How can I compute points along a circle that lays on a plane given the following:   center $P$ = $(a, b, c)$ radius $r$ plane equation $2x - 8y + 5z = 18$   I need to find points along this circle from $[0,2\pi]$ in $\frac{\pi}{4}$ increments. In 2D I would do this like:  $$x = a + r * \cos{\theta}$$ $$y = b + r * \cos{\theta}$$  But I am not sure how I would do this in 3D to include Z.  I've found this and this but I'm not fully understanding how they are getting their perpendicular vectors; I know that the normal vector to the plane $n$ is $\langle 2, -8, 5 \rangle$.


Why is the Absolute Value of $3-π$ equal to $π - 3$

Why if the absolute value is the distance from $0$ on the number line, is $\lvert 3-\pi \rvert = \pi - 3$ and $\left\lvert\sqrt{2}-1\right\rvert= \sqrt{2}-1$


What is the ring $\Bbb Z[x]/(x^2-3,2x+4)$?

How to describe an element of the Ring $\Bbb Z[x]/(x^2-3,2x+4)$?   Or is it isomorphic to any well known ring?    What is meant by quotienting $\Bbb Z[x]$ by a kernel like that?


Is there a combinatorial proof of the Taylor series $\frac1{\sqrt{1-4x}}=\sum_{n=0}^\infty{2n\choose n}x^n$?

I was recently reminded of the Taylor series $\frac1{\sqrt{1-4x}}=\sum_{n=0}^\infty{2n\choose n}x^n$ and got wondering whether this can be proven combinatorially.  Of course the standard proof would be to look at the derivatives of $f(x)=\frac1{\sqrt{1-4x}}=(1-4x)^{-1/2}$. \begin{align*} f'(x)&=2\cdot(1-4x)^{-3/2} \\f''(x)&=4\cdot3\cdot(1-4x)^{-5/2} \\f'''(x)&=8\cdot3\cdot5\cdot(1-4x)^{-7/2} \\f^{(n)}(x)&=2^n\cdot1\cdot3\cdot5\cdot...\cdot(2n-1)\cdot(1-4x)^{-(2n+1)/2} \\&=2^n\frac{(2n)!}{n!2^n}(1-4x)^{-(2n+1)/2} \\&=\frac{(2n)!}{n!}(1-4x)^{-(2n+1)/2} \end{align*} This gives $$f(x)=\sum_{n=0}^\infty\frac{f^{(n)}(0)}{n!}x^n=\sum_{n=0}^\infty{2n\choose n}x^n.$$  This is all great, but we can also look at it a different way. Note $(f(x))^2=\frac1{1-4x}=\sum_{n=0}^\infty4^nx^n$. But now note what this is saying about the Taylor series. $$\left(\sum_{n=0}^\infty{2n\choose n}x^n\right)^2=\sum_{n=0}^\infty\left(\sum_{k=0}^n{2k\choose k}{2(n-k)\choose n-k}\right)x^n=\sum_{n=0}^\infty4^nx^n$$ This gives us the identity $$\sum_{k=0}^n{2k\choose k}{2(n-k)\choose n-k}=4^n$$ which I find very curious.  My question is if there is a combinatorial proof of the final identity. This would then also give a combinatorial proof of the original Taylor series.  The way I look at the term ${2n\choose n}$ is as the amount of paths from $(0,0)$ to $(n,n)$ by only going right by one or up by one at every step. Then a product such as ${2k\choose k}{2(n-k)\choose n-k}$ would be the amount of such paths that cross the point $(k,k)$. This is because we can simply join the paths to $(k,k)$ and $(n-k,n-k)$. But this means that every path from $(0,0)$ to $(n,n)$ gets counted in the product ${2k\choose k}{2(n-k)\choose n-k}$ if and only if it crosses $(k,k)$.  In conclusion, the sum $\sum_{k=0}^n{2k\choose k}{2(n-k)\choose n-k}$ can be combinatorially seen as the sum over all paths from $(0,0)$ to $(n,n)$ of the amount of times it touches the line $y=x$. The goal is then to show that this exactly equals $4^n$.


I logged in for Realms Alpha but the Realms icon is not appearing. Why?


Changing font color in a table adding unwanted extra spacing

I haven't been able to find a solution, so I'm hoping for any suggestions.  When I try to change the font color in my table, I get extra spacing above and below the lines with the color-changed font.  Any way to work around this?   \begin{tabular}{>{\raggedright}p{0.5cm}>{\raggedright\arraybackslash}p{9cm}} \ding{47}                & Test 1 \\ {\color{new}{\ding{47}}} & {\color{new}{Test 2}} \\ {\color{new}{\ding{47}}} & {\color{new}{Test 3}}\\ {\color{new}{\ding{47}}} & {\color{new}{Test 4}} \\ \ding{47}                & Test 5\\ \end{tabular}\   An image of what's happening:


Assigning point IDs to respective start and end attributes of polyline?

I have two shapefiles, Point and Polyline. I'm trying to populate my polyline layer with the point data ID (systemID) where the lines start to where they end; eg. create two columns (from and to). The lines already have flow direction assigned to them. I am using ArcHydro tools but Arcpy is also fine.  In ArcHydro I have tried using Attribute Tools > Generate From/To Nodes for lines but it creates values for To and From that are not from my point data. My other alternative was using Feature to Vertices and joining the result to my point data table to get the systemID. But then I would have to update the polyline layer as well. I am sure there is a easier way of doing it.  Note: not all the lines have points at the vertices, blank values are fine for them.


Hi i'm using the code below to call post from a certain Category under certain post types, But how do i style it so that i can make the first post different from the rest of the post.  <?php $queryObject = new  Wp_Query( array(         'showposts' => 4,         'post_type' => array('pretty-little-liars', 'revenge', 'once-upon-a-time'),         'category_name' => celebrity,             'orderby' => 1,         )); // The Loop! if ($queryObject->have_posts()) { ?>  <?php while ($queryObject->have_posts()){     $queryObject->the_post();     ?>  <a href="<?php the_permalink(); ?>" title="<?php printf(__( 'Read %s', 'wpbx' ), wp_specialchars(get_the_title(), 1)) ?>">                     <?php the_post_thumbnail('video-post'); ?>                       <?php echo human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' ago'; ?>                 <a href="<?php the_permalink(); ?>"><?php the_title(); ?>   <?php } ?> <?php wp_reset_postdata(); } ?>


There Is No Media Output In A Specific Folder After Finishing My Render

As an absolute beginner I am just figuring things out. I was working on a project, which I rendered, but there is no output file in my output folder.  The Render Scene And Options:    My Project In Rendered View:


What does work function of metal exactly mean in photoelectric emission?

When a metal surface is illuminated with light of appropriate frequency so as to cause photoelectric emission, when does the work function of the metal come into play? Is it the energy required to bring an electron to the metal surface or is it the energy required to liberate the electron from the metal surface? Also, is it possible for any other substance( except metal) to emit photoelectrons?


Why cant I navigate to lightning component in communities?

Im on a lightning community, i have a lightning component and i want to open another component with this code:  navigateToMyComponent : function(component, event, helper) {     console.log('1');     var evt = $A.get("e.force:navigateToComponent");     console.log('2');     evt.setParams({         componentDef : "c:CompetenciaComponent"     });     console.log('3');     evt.fire();     console.log('4'); }   this its the console log:   NOTHINGS HAPPEND AND I DONT KNOW WHY


How do I add .e00 data into my QGIS project?


Where to install small programs without installers on Windows?

On the Windows platform, most large applications come with their own installer which sets up folders under C:\Program Files, possibly some other places, and perhaps adding some registry keys, etc.  But there's still quite a few tools around that consist of just an .exe or maybe also a README and a .dll or two.  How should I install such tools? Directly in C:\Program Files? All in one subfolder under C:\Program Files? Somewhere under C:\Users\Me? Somewhere totally different?  Or maybe different approaches for the tools with just an .exe to those that also have other files, or maybe only the ones with .dlls need to be treated differenty ...  Is there any standard accepted way to do this? A "best practice"? If the answer depends on the Windows version, I'm using Windows 7.  In particular, what might strike people as the obvious answer seems to have a catch:  I had tried to manually create new subfolders under C:\Program Files. In fact I thought I had done so before, but Windows puts up a dialog Destination Folder Access Denied. This caused me to think twice rather than just blindly click Continue.      On the assumption that greater minds than mine have come up against this many times over the years I'd like to ask the community if some kind of "best practice" has come to be accepted.


How can I solve the underfull \hbox (badness 1173) in paragraph?

This message of warning appears at the line 967, which says:  \begin{enumerate} \item Dac\u{a} $(a_{n})_{n \geq 1} \subseteq D$ este un \c{s}ir cu $\lim_{n \to \infty} a_{n} \in D$, atunci $\lim_{n \to \infty} f(a_{n}) = f(\lim_{n \to \infty}a_{n})$, adic\u{a} o func\c{t}ie continu\u{a} comut\u{a} cu limite de \c{s}iruri. \end{enumerate}   In the log file:  underfull \hbox (badness 1173) in paragraph


We know how to typeset the commonly used diagonal dots, i.e., \ddots, whose slope is -1.  Now I want to produce dots with slope 1, which is perpendicular to \ddots.   Does anyone know how to do it?


I noticed from a question about flagging vs closing (forgive me, I cannot find the link, please post it if you know it), that flags are CONVERTED into close votes for questions automatically. Can somebody confirm this?  If confirmed, I was wondering why the link (again, for questions only) is simply not removed to avoid confusion?


How to navigate from one lightning component to another Lightning component

I am new to salesforce Lightning component and I meet a problem about how to navigate from one lightning component to another Lightning component,I want to know what is the best practise for it?  Now I just build a desktop app, in one component named studys I have a button and when I click the button I want to show the studyDetail component, and the studys component is not on the page.  How can I do this?


Fancyhdr does not apply same header/footer on chapter and non-chapter pages

I have a problem with the fancy package: I use the report documentclass and I have a chapter, a lot of text and then a new page starting with a section (or the next page has no chapter starting on that particular page).  The problem be, that what I defined for my header and footer is NOT on the chapter-page but only on the non-chapter page. How come? What did I miss?  Minimal example:  \documentclass[]{report}  \usepackage{lastpage} \usepackage{fancyhdr} % for use of \pageref{LastPage}  \fancypagestyle{IHA-fancy-style}{% \fancyhf{} %Clear header and footer \fancyhead[LE,RO]{\slshape \rightmark} \fancyhead[LO,RE]{\slshape \leftmark} \fancyfoot[C]{\thepage of \pageref{LastPage}} %Custom footer \renewcommand{\headrulewidth}{0.4pt} %Line at the header visible \renewcommand{\footrulewidth}{0.4pt}} %Line at the footer visible  \title{A short example}  \begin{document}  \maketitle \tableofcontents  \pagestyle{IHA-fancy-style} \chapter{A chapter} Look at the footer  \newpage \section{A section} Look at the footer  \end{document}   Take notice: No line on page 2 at the bottom - a line on page 3 at the bottom.  Any clues?


If I add a comment but navigate (by mistake) to another page, I lose my unfinished comment (ok, depends on browser etc). On the other hand, when formulating a question, and I click on a link by mistake, I'm asked if I really want to leave.  It would be nice to have this warning for comments as well.


Sum of floor with irrational number multiplication $\sum_{k=1}^{n} \left\lfloor {k*\sqrt{2}} \right\rfloor$

As part of a Google foobar challenge I have been asked to calculate:  $$\sum_{k=1}^{n} \left\lfloor {k*\sqrt{2}} \right\rfloor$$  for numbers up to $10^{100}$  My attempt so far resulted in imprecise results:  Using the formula  $\sum_{k=1}^{n-1} \left\lfloor \frac{km}{n} \right\rfloor = \frac{1}{2}(m - 1)(n - 1)$  I made this calculation: $ \frac{1}{2} ((n+1)*\sqrt{2}-1)*n $  The results needed to be rounded (I suppose because of the irrationality of $\sqrt{2}$) and were incorrect in about 10% of test cases.  Thanks in advance!  Note: I've looked at many of the threads regarding sum of floors and wasn't able to find a closed form that yields better accuracy.


You can check the form .Click on the for 1 button . There is validation for submitting it blank but I am not able to add validation for email. When I get the email validation working it just stops after the first input. I have tried a lot of ways but there seems to be some contradiction I am creating.


What is the need of using the passive form, for instance:     These lines have been taken from the poem XYZ.    and     These lines have taken from XYZ.   What's the reason behind it?


Can't see * in shell variable shows files in folder

Content of my file named /tmp/tmp.txt is Allow - 's3:GetObject' arn:aws:s3::*:${dtddyuffjf}/* Allow - 'SQS:GetMessage' ${DocServiceQueue.Arn} Allow - ec2:CreateNetworkInterface - ec2:DescribeNetworkInterfaces - ec2:DeleteNetworkInterface *  I am passing this to a variable like below v1=  $(cat /tmp/tmp.txt)  echo $v1 showing Allow  's3:GetObject' arn:aws:s3:::${dtddyuffjf}/ Allow 'SQS:GetMessage' ${DocServiceQueue.Arn} Allow ec2:CreateNetworkInterface ec2:DescribeNetworkInterfaces ec2:DeleteNetworkInterface and instead of the * , it's showing content of the folder It does not show *


Dropping the /t/ sound in words like, "wanted"

In my experience, a lot of Americans, on many occasions, don't make the standard /t/ sound in words like "wanted," "twenty," "accidentally," "presented," "interview" etc. I feel like when they don't make the /t/ sound in words of that type, many of them kind of go by the /t/, or probably make a sound that's similar to the flap /d/ sound. I looked up videos on this occasion in American English on Youtube. In all of the videos I saw, the instructors say the /t/ is completely dropped when that happens, but when I hear Americans, mostly it doesn't sound like they completely ignore that consonant. It feels more like they go by it somehow or make a sound similar to the flap /d/ as I said. When I talk also, when I completely drop the /t/ in those kind of words, it sounds kind of off to me. I don't know if it sounds uneducated or totally wrong if I completely drop the /t/. I actually remember noticing that some Americans probably completely dropped the /t/ on some videos involving Americans that I saw before, but those moments were rare. It might depend on the region and education maybe?  is one of the videos on this topic. What do you think? Do you think Americans can completely ignore the /t/ sound in words like, "wanted"? Do you think it is wrong? What kind of sound should I make if I want to go by the /t/ sound like Americans? This is pretty important for me since I have been learning American English for some time.


Why does ANSI SQL define SUM(no rows) as NULL?

The  (chapter 6.5, set function specification) the following behaviour for aggregate functions on empty result sets:  COUNT(...) = 0 AVG(...) = NULL MIN(...) = NULL MAX(...) = NULL SUM(...) = NULL   Returning NULL for AVG, MIN and MAX makes perfect sense, since the average, minimum and maximum of an empty set is undefined.  The last one, however, bothers me: Mathematically, the SUM of an empty set is well-defined: 0. Using 0, the  of addition, as the base case makes everything consistent:  SUM({})        = 0    = 0 SUM({5})       = 5    = 0 + 5 SUM({5, 3})    = 8    = 0 + 5 + 3 SUM({5, NULL}) = NULL = 0 + 5 + NULL   Defining SUM({}) as null basically makes "no rows" a special case that does not fit in with the others:  SUM({})     = NULL  = NULL SUM({5})    = 5    != NULL + 5 (= NULL) SUM({5, 3}) = 8    != NULL + 5 + 3 (= NULL)   Is there some obvious advantage of the choice that was made (SUM being NULL) that I have missed?


how i can merge words from list to new list that in each index, store k content from old list

i try to do it on pyton, but i am new in this language.  lets say k=3 and we have split array like:   The, sky, is, blue, and, the, sun, is, bright   what i want to get is to put in each index on the new list k words from the original list.  index 0: The sky is index 1: blue and the index 2: sun is bright   this is what i do:  for i in range(len(mylist) - k + 1):   ren=i+k-1   for j in range(ren):      newListWithKLenOfWord.insert(i, mylist[j] + " ")   but i dont no why its not work for me. in java what i think for this problem is:  for i to n-k for j+i to i+k arr[i] =arr[i] + arr[j]   thanks.


How to calculate conflict into two git branches without needing to do the actual merge?

I have a repository in github, which main branch is named master and the following situation:   A contribution of code in a PR (let's name PR-A) from branch feature/pr-a to master. A contribution of code in a PR (let's name PR-B) from branch feature/pr-b to master.   Both PRs are independent so they could in theory to include incompatible changes that would cause a git conflict in some files.  Is there any simple or scripted way (*) of checking the potential conflict between both PRs/branches once merged in master? I mean, a way of answering the following questions:   If I merge first PR-A to master, would I get a conflict when I try to merge PR-B to master. Which files? If I merge first PR-B to master, would I get a conflict when I try to merge PR-A to master. Which files?   Thanks in advance!  (*) Of course, I can always get this information doing the actual merge in my local copy and check, but I wonder if there is any other mechanism that doesn't need to do the actual merges.


I'm studing a bit of probability and I  have a simple question about biased coins.    Is it possible, with an adequate numebr of tosses, to say that a coin is biased witha given probability?  In other words: how many toss are needed to say that the probability that a  coin is unbiased is less that a given value?    I think that my question is different from   because I have only one coin and I don't know what is the probability of a face of my biased coin. I can suppose that the answer to my question is linked to this probability, but how?


How does the Flash breathe while utilizing his super speed?

How do the Flashes breathe utilizing their super speed? The air pressure would be extreme. Do they run in a pressurized bubble?


How to show that for any abelian group $G$, $\text{Hom}(\mathbb{Z},G)$ is isomorphic to $G$

How do I show that $\text{Hom}(\mathbb{Z},G)$ and $G$ are isomorphic?  The method suggested by the book is to define a map $k$: $\text(\mathbb{Z},G) \to G$ by $f \to f(1)$.   I am stuck on how exactly to show that it is an isomorphism. Could anyone shed some light into this? Is $f(1)$ an element of G?  (For those who wanted to know, this is not homework)


Traveling Karachi Pakistan on Expired NICOP + online Renewal Slip

Does anybody have experience enter and exit on expired National Identity Card for Overseas Pakistanis (NICOP) + renewal Slip? Already ask PIA, they will let me board but question is   Can we come back to Canada same way with expired NICOP and renewal slip?    Toronto Consulate have no idea about coming back on renewal slip.


It's time to ask again this popular question: "Is it still valuable for the I/O performance to manage disk cluster size?" But this time I'm interested in a case with vSAN as storage. I've found this information:  Keep in mind that vSAN is optimized for 64K and smaller I/O sizes; configuring an I/O size >64K will result in increased guest I/O latency.   So, this is one step towards a Yes.


Why am I being redirected to meta when I want to log in at stackexchange.com

Since today, when I go to stackexchange.com and click the login button, I am being redirected to the login at meta.stackexchange.com.  When I login there, I am again being redirected to the main stackexchange.com site. This is new, why was it added?


Firefox application associations not working in the 'Downloads' window

No matter what changes i make to file associations (actions) in the 'Applications' tab in Firefox, they're totally ignored. For example, i set .wmv and .avi files to open with 'smplayer' but when i download a file and double-click on it (through the 'Downloads' window), it keeps opening with Totem player.    The default file associations through nautilus ('open with' tab) work fine, i.e. i've set smplayer as the default player and when i double-click a video file it open correctly.  I've tried to delete and recreate mimetypes.rdf but that didn't help.  Any ideas on what else should i check?


How much detail about mental health issues should one include in "Special Circumstances" section of graduate school applications?

This question is inspired by answers and comments to the question  on this website.  Suppose that an applicant to a graduate program suffered from some mental health issues during the completion of his previous degrees, and that this situation had a noticeable impact on his academic performance (for example, significantly lower grades or part-time status for one or several semesters).  Most graduate school applications have sections dedicated to providing explanations for such special circumstances, and it is of course strongly recommended that any applicant with unusual drops in academic performance should mention something about this in the special circumstances section. Otherwise, the admission committee will be left to guess what might have happened, which is likely to decrease the odds of being admitted (indeed, it seems a consensus that the more tangible information an admission committee has about an applicant, the more confident they can be about the fact that admitting him will be a sound investment).  Many answers/comments to the question  seem to recommend being very careful about revealing details on one's mental health conditions, given that there is still a lot of stigma attached to mental health conditions. However, in the case of PhD applications, not mentioning anything is not an option.  This then leads to the following question: If not making any mention of health issues is not an option (such as in PhD applications), how much details should one go into? To avoid stereotyping associated to any particular disease (such as depression=unreliable, learning disability=not smart) one could limit the description to "health problem", but could this lack of details be seen as suspicious and/or still a situation where the admissions committee will have to do guesswork?


Will I lose data in Windows if I upgrade from Ubuntu 16.04 to 18.04

I have an Aspire E14 with dual boot, first option Ubuntu and then Windows 10. I want to upgrade, the message appears on the start screen. But my concern is what can I hope with the dual boot and my files in Windows? Windows OS has some critical info for me and I don't want to lose it.


What is the difference between ps -ef | grep WDA and ps -ef | grep [W]DA?

What is the difference between   ps -ef | grep WDA    and  ps -ef | grep [W]DA   How exactly [] rids of the unwanted info?


Let $f : \mathbb R \rightarrow \mathbb R$ be a continuous function such that $f(f(x)) + f(x) + x = 0$ for all $x \in \mathbb R$. Find all $f(x)$.    I already proved that $f(x)$ is injective. But I didn’t know how to use the fact that $f$ is continuous. Can anyone give a hint or a solution to this problem? Thank you.


If $\Bbb R$ has the half-open interval topology. Then is $\Bbb R \times \Bbb R$ not normal?

Problem: Show that if $\Bbb R$ is given the half-open interval topology, then $\Bbb R\times\Bbb R$ is not normal.  I can't start solving this problem. Please help me.


I'm interested in learning physics. I do realize that the subject is large and that it would be easier if I had a specific area of interest. However, I do not. I suppose I want to learn about the fundamentals of it all; the axioms that combine all physics fields. Or, in other words, a high school physics class.   Specifically, a book or series of videos would be helpful. I looked over MIT and unfortunately the material wasn't for me. I don't mean to be "picky" so I am not completely ruling out any resource just yet.   Thanks in advance.


Why does POSIX require certain shell built-ins to have an external implementation?

From , comes .  The answer points out that the POSIX search sequence is to find an external implementation of the desired command, and then, if the shell has implemented it as a built-in, run the built-in. (For built-ins that aren't special built-ins.)  Why does POSIX have this requirement for an external implementation to exist before allowing an internal implementation to be run?  It seems...  arbitrary, so I am curious.


Is Hindawi journal credible and valuable publication?

I have received several times an email from the Hindawi journal to invite me for submitting my article to this journal. However, I do not know this journal and I afraid if this journal a credible, trust-able and valuable publication? Or I have to ignore it?  Here is the link I received by email:   Note: My question is not that if an open access journal, in general, is valuable or not, but also there are some "Fraudulent" peer reviews publications (open access or not). I read an article on this journal from here:  which causes I aske this question.


Surprising but simple group theory result on conjugacy classes

I have read that for any group $G$ of order $2m+1$ (odd) with $n$ conjugacy classes, it is always the case that $16$ divides the value $(2m+1)-n = |G|-n$.   This seems to me like an astonishing result: what on earth would $16$ have to do with every single odd group and its conjugacy classes? At any rate, I am wondering, assuming it is true, how would you go about proving it? I would like to show it in a reasonably simple way, but nothing whatsoever comes to mind, could anyone help? Many thanks - M.


The background of Area 51 ads is incorrectly sized

Now that , we need the Area 51 ads to be updated to the new size.   (source: )    Some appear to have the new size, but are not displaying correctly:   (source: )


I understand that one uses normal baking to bake the normals of a high-resolution (sculpted, in the millions-of-polys range) to an image, which are then set to the normals of the low-resolution (retopologized, in the thousands-of-polys range) mesh to create the illusion of higher resolution, as shown in the following image from Wikipedia:    To save the normal of each vertex to an image, the mesh would have to be UV-unwrapped. However, as I understand it, the entire purpose of retopologizing is to get good topology that can be used for UV-unwrapping. Even if you unwrap the high-resolution mesh, how do you unwrap the low-resolution mesh with the exact same configuration, such that the normals are projected properly?  Or, phrased more succinctly:  What exactly is the workflow for sculpting, retopologizing, and normal-baking?