I am currently reading Einstein's relativity book and trying to wrap my head around the time dilation.   I know about some implications of the twin paradox and wanted to ask a few questions that don't make any sense in my mind, obviously because of the ignorance. Please explain.   So let's assume, that we have two people. One is inertial at a certain point in space, not affected by any massive objects. Let that point be A. The second person is moving from this point A at 99.999999999% of speed of light, assume no acceleration. The trip one-way destination is 4 light-years away and let's say that's point B.   Now we know that the $t_{moving} = \frac{t_{standing}}{\gamma}$. So the time for stationary person will go slower. Time dilation in effect.   The moving person travels from A to B and back to A. Classic problem. Comes back. In his reference $t$ is 8yrs. For a stationary person $8*\gamma$ years. The moving person factually traveled to the future and came younger.  But my problem is that the only way the stationary person observed time dilation is if for her either the moving person's speed was slower or the overall distance was larger. We know that for inertial observers the speed of light will always be constant. So it has to be the distance that becomes larger and larger for the moving person with the speed approaching to the speed of light. Which doesn't make any sence.   The $D = 8yrs * c$. If nobody is moving. For the moving person it stays the same since their clock is at 8yrs precisely when they hit the A on the way back. However, for the stationary person the distance would have to be $D = 8yrs * \gamma *c$ or the c should be smaller, which is impossible.  Please help me out.


JavaScript: How '' == '0' // false and 0 == '' //true?

I am curious how   '' == '0'  // false   left side is a blank string and right side has string with value 0 so its fine its is false.  But   0 == ''    // true   how blank string equals to zero, both are typed different as well as value.  similar  false == 'false'   // false   left is false , but we are not equating (===) type of value , its just has value false so it should be true ? but why it is false.   Could we explain the same ?


How can I upgrade to Kubuntu 19.04 from 18.10?

Nothing is showing up when I use the usual way of upgrading.  Why?


During Windows installation I accidentally typed an accented name for my user name and my profile name is named after it. I already renamed my user to not have an accented character, but the profile folder is an other topic.  Basically I want this because I have some applications what have a problem with the accented character.  Is there a way to rename it? I know I have to make a copy from my profile, but how can I perform a relocation itself? I wouldn't like touch any other profiles on the machine just mine.


How does Cantor's diagonal argument work?

I'm having trouble understanding Cantor's diagonal argument.  Specifically, I do not understand how it proves that something is "uncountable".  My understanding of the argument is that it takes the following form (modified slightly from the  article, assuming base 2, where the numbers must be from the set $ \lbrace 0,1 \rbrace $):  \begin{align} s_1 &= (\mathbf{0},1,0,\dots)\\ s_2 &= (1,\mathbf{1},0,\dots)\\ s_3 &= (0,0,\mathbf{1},\dots)\\ \vdots &= (s_n \text{ continues}) \end{align}  In this case, the diagonal number is the bold diagonal numbers $(0, 1, 1)$, which when "flipped" is $(1,0,0)$, neither of which is $s_1$, $s_2$, or $s_3$.  My question, or misunderstanding, is: When there exists the possibility that more $s_n$ exist, as is the case in the example above, how does this "prove" anything?  For example:  \begin{align} s_0 &= (1,0,0,\mathbf{0},\dots)\ \ \textrm{ (...the wikipedia flipped diagonal)}\\ s_1 &= (\mathbf{0},1,0,\dots)\\ s_2 &= (1,\mathbf{1},0,\dots)\\ s_3 &= (0,0,\mathbf{1},\dots)\\ s_4 &= (0,1,1,\mathbf{1},\dots)\\ s_4 &= (1,0,0,\mathbf{1},\dots)\ \ \textrm{ (...alternate, flipped } s_4\textrm{)}\\ s_5 &= (1,0,0,0,\dots)\\ s_6 &= (1,0,0,1,\dots)\\ \vdots &= (s_n \text{ continues}) \end{align}  In other words, as long as there is a $\dots \text{ continues}$ at the end, the very next number could be the "impossible diagonal number", with the caveat that it's not strictly identical to the "impossible diagonal number" as the wikipedia article defines it:     For each $m$ and $n$ let $s_{n,m}$ be the $m^{th}$ element of the $n^{th}$ sequence on the list; so for each $n$,      $$s_n = (s_{n,1}, s_{n,2}, s_{n,3}, s_{n,4}, \dots).$$      ...snip...      Otherwise, it would be possible by the above process to construct a sequence $s_0$ which would both be in $T$ (because it is a sequence of 0s and 1s which is by the definition of $T$ in $T$) and at the same time not in $T$ (because we can deliberately construct it not to be in the list). $T$, containing all such sequences, must contain $s_0$, which is just such a sequence. But since $s_0$ does not appear anywhere on the list, $T$ cannot contain $s_0$.      Therefore $T$ cannot be placed in one-to-one correspondence with the natural numbers. In other words, it is uncountable.   I'm not sure this definition is correct, because if we assume that $m = (1, \dots)$, then this definition says that "$s_n$ is equal to itself"&mdadsh;there is no "diagonalization" in this particular description of the argument, nor does it incorporate the "flipping" part of the argument, never mind the fact that we have very clearly constructed just such an impossible $T$ list above.  An attempt to correct the "diagonalization" and "flipping" problem:  $$s_n = (\lnot s_{m,m}, \lnot s_{m,m}, \dots) \quad \text{where $m$ is the element index and} \quad\begin{equation}\lnot s_{m,m} = \begin{cases}0 & \mathrm{if\ } s_{m,m} = 1\\1 & \mathrm{if\ } s_{m,m} = 0\end{cases}\end{equation}$$  This definition doesn't quite work either, as we immediately run in to problems with just $s_1 = (0),$ which is impossible because by definition $s_1$ must be $ = (1)$ if $s_1 = (0)$, which would also be impossible because...   Or more generally, with the revised definition there is a contradiction whenever $n = m$, which would seem to invalidate the revised formulation of the argument / proof.  Nothing about this argument / proof makes any sense to me, nor why it only applies to real numbers and makes them "uncountable". As near as I can tell it would seem to apply equal well to natural numbers, which are "countable".  What am I missing?


Half my house disappeared for no reason at all why?

I was playing normally, and for fun I went to the nether in creative. I spent about half a Minecraft day there and when I returned I went to my house. I realised that I couldn't see the other half of my house. I went to the other side and I just saw half of my house cut off. It was like a cliff and when I flew to the edge of it all I could see was the inside of my house and a lot of stone. The sky sort of went black and I couldn't fly up or down I was stuck there. And at that moment I heard music playing. Weird music.   If you have experienced this and know a solution, can you please give me any suggestions on how to solve this problem as I am sort of freaked out...


making a cross-thread call to hide a form visual c#

Update: Solution arrived since and is now accepted. Due to the clarity of the pseudo codes on this question the solution took only a few seconds. Trying to figure out the solution from the other seemingly "duplicate" questions took a lot of time already. I had the solution in 20 minutes from the moment I asked this question. So it is not a duplicate, probably the clearest of them all to date.  While several similar questions have been asked on this, I was still not able to put together a working code from them. My main application is not on a form, but in a separate class that is a plugin and executed by a host application.  So while it seems a duplicate question it is not. Please read on.  I have my main class doing stuff. Then I have a form that displays information to the user. I need to hide this form when the user switches away from the application (host application loses focus).   I am using very limited APIs so the only methods I have at my disposal events triggered by the host application.   I created a timer that fires every 100ms and checks whether the user had the application in focus. And if not a command is sent to the form to hide itself.  The reason for this approach is because the host application loosing focus is just one of the many scenarios that I need to hide the form and I need to channel all these through the same exact method.  All works from within the rest of the classes (the Hide() method is called from the rest of the application no problem.  But it does not work when the timer calls the Hide() method, because the timer is on a different thread when it fires. So the call becomes a cross-thread call.  The very specific question is that I need an exact sample code how to make this call from the timer event handler to the form's Hide() method thread-safe with Invoke.  Thanks.  This is the timer:  private void Controllel_Opened(object sender, EventArgs e) {     myTimer.Elapsed += new System.Timers.ElapsedEventHandler(DisplayTimeEvent);     myTimer.Interval = 50;     myTimer.Start(); }  public static System.Timers.Timer myTimer = new System.Timers.Timer(); // This method checks different scenarios when the tool tip should be hidden and calls the hiding method public static void DisplayTimeEvent(object source, System.Timers.ElapsedEventArgs e) {     FormHandler.Hide(); }   Then the "FormHandler" class:  public static class FormHandler {     private static Form1 frm1 = new Form1();      public delegate void Form1HideEventHandler();     public static event Form1HideEventHandler Form1Hide;      public static void Hide()     {         if (Form1Hide != null)         {             Form1Hide();         }      } }   Then the form's code:  public partial class Form1 : Form {        public Form1()     {         InitializeComponent();         FormHandler.Form1Hide += FormHandler_Form1Hide;     }      private void FormHandler_Form1Hide()     {         Hide();     } }   I would like to get a solution with exact code if possible. Thanks.


How to make a function that calls different classes depending on key?

I need a function (def check) to make an instance of a class and take a list from that class. but there are many classes and the 'key' argument passed is the number of the class I want to make an instance of.     # if the 'key' passed is 1 then it should make an instance of Class1     # if the 'key' passed is 2 then it should make an instance of Class2           def check(self, key):                 list1 = Class1().list1.    # it should call Class1().list1 if the key is 1 and Class2.()list1 if the key is 2         list2 = Class1().list2         list3 = Class1().list3  so how can I make the check() function change the class it makes an instance of? I don't think I could make a if statement and change the class it calls depending on the key because there are many classes and it would be very repetitive to make 'if' statements for each class. here are the classes: class Class1:     def __init__(self):         self.quiz_name = 'Cities and Countries - part 1'        self.list1 = []        self.list2 = []     # the three lists        self.list3 = []         self.list1.append('Select the European City: ')        self.list2.extend(['Abu Dhabi', 'Washington DC', 'New York', 'Rome'])        self.list3.append(4)        ...  class Class2:     def __init__(self):          self.quiz_name = 'Cities and Countries - part 1'    # the data in the lists here are different by each class, but I'm just giving an example of the classes         self.list1 = []         self.list2 = []         self.list3 = []          self.list1.append('Select the European City: ')         self.list2.extend(['Abu Dhabi', 'Washington DC', 'New York', 'Rome'])         self.list3.append(4)         ...       # there are more classes


Get a generic method without using GetMethods

I want to get the method System.Linq.Queryable.OrderyBy<T, TKey>(the IQueryable<T> source, Expression<Func<T,TKey>> keySelector) method, but I keep coming up with nulls.  var type = typeof(T); var propertyInfo = type.GetProperty(group.PropertyName); var propertyType = propertyInfo.PropertyType;  var sorterType = typeof(Func<,>).MakeGenericType(type, propertyType); var expressionType = typeof(Expression<>).MakeGenericType(sorterType);  var queryType = typeof(IQueryable<T>);  var orderBy = typeof(System.Linq.Queryable).GetMethod("OrderBy", new[] { queryType, expressionType }); /// is always null.   Does anyone have any insight? I would prefer to not loop through the GetMethods result.


How to extends multiple classes, in php?

I would like to create a form in my "contactus" page. I'm following . I have to extends the sfFrom class to use sfWidget, but in my code I've already extends BaseController.  Is there any solution to do this without making a new class?  class InfoController extends BaseController {     /**      *      * @Route("/contactus", name="info_contactus_page")      * @Template()      */     public function contactusAction()     {         return array();     } }


All files erased after installing Ubuntu

Yeah, I know I should have backed up my files before proceeding, I completely forgot. Well, the thing is that I had a dual-boot system with Windows 7 and Ubuntu 10.10. Yesterday, I installed Ubuntu 11.04 alpha 3 (through live USB). I chose that 11.04 would install over 10.10 on the installation wizard, where I have no important files. However, it overwrote Windows too, and its data, meaning that I can't find Windows as a grub entry and I can't find the corresponding NTFS partition. Is there some way to recover it? Thanks!  Here is the sudo fdisk -l output.  > > Disk /dev/sda: 160.0 GB, 160041885696 >     > bytes 255 heads, 63 sectors/track, >     > 19457 cylinders Units = cylinders of >     > 16065 * 512 = 8225280 bytes Sector >     > size (logical/physical): 512 bytes / >     > 512 bytes I/O size (minimum/optimal): >     > 512 bytes / 512 bytes Disk identifier: >     > 0x0004f536 >     >  >     >    Device Boot      Start         End  >     > Blocks   Id  System /dev/sda1   *      >     > 1       19327   155241472   83  Linux >     > /dev/sda2           19327       19458  >     > 1046529    5  Extended /dev/sda5       >     > 19327       19458     1046528   82  >     > Linux swap / Solaris >     >  >     > Disk /dev/sdd: 3965 MB, 3965190144 >     > bytes 255 heads, 63 sectors/track, 482 >     > cylinders Units = cylinders of 16065 * >     > 512 = 8225280 bytes Sector size >     > (logical/physical): 512 bytes / 512 >     > bytes I/O size (minimum/optimal): 512 >     > bytes / 512 bytes Disk identifier: >     > 0x00007732 >     >  >     >    Device Boot      Start         End  >     > Blocks   Id  System /dev/sdd1   *      >     > 1         482     3871633+   c  W95 >     > FAT32 (LBA)   And the cat /proc/partitions output too  major minor  #blocks  name     7        0     676440 loop0    8        0  156290904 sda    8        1  155241472 sda1    8        2          1 sda2    8        5    1046528 sda5    8       48    3872256 sdd    8       49    3871633 sdd1


If $A^3 = A$, prove that $\operatorname{Ker}(A - I) \oplus\operatorname{ Im}(A - I) = V$

I just can't wrap my head around this proof. How to do it? Here is what I tried:   $$A^3 = A$$ $$A^3 - A = 0$$ $$A(A-I)(A+I) = 0$$ Matrix $A$ satisfies the polynomial $p(x)=x(x-1)(x+1)$. Zeroes of $p$ are $-1, 0 ,1$. Minimal polynomial of the matrix $A$ has at least one root, which can only take value  of roots of $p$. Maximum multiplicity of that root in the minimal polynomial is one.   One can then take a look at the eigenspaces that correspond to the specific eigenvalues. What then...? Is that the path that can lead to a solution? Is there a better solution? I don't really get it... Please, be kind and explain this if you can spare the time.  I found  question, but there seems to be a leap of logic in the question, and the accepted answer.   $$A^3 = A$$ doesn't imply $$A^2 = I$$  For instance, take matrix $$ \begin{bmatrix} 1 & 0 \\ 0 & 0  \end{bmatrix}  $$  Also, if we take a linear operator $L:V \to V$, it is obvious that $Ker(L) \cap Im(L) = \{0\}$ ? Do I also need to prove that sum of kernel and image is direct sum?


Is the current obtained using Ohm's law that which passes through the resistor or that which passes through the circuit?

Shouldn't the current passing through a resistor be lesser than that which passes through a circuit? My understanding is that since Current = Charges/Time. If there exists a resistance to the flow of charges, then that must mean the charges slow down, meaning that more time is required to pass through a point. So, the current should then decrease. But, since this opposition to the flow of charges doesn't exist in the ENTIRE circuit, it should really only decrease the current in the resistor, right? Am I confusing the resistance of the resistor with the resistance of the wire? Any help will be appreciated! Thanks a bunch for lending me some of your time :D


Kafka, discovered in the 1920s by the Expressionists, damned by the Nazis in the 1930s and by the Marxists at more or less the same time, was reinvented after World War II by the French Existentialists. They saw in him the father of Angst and the Angst for the father: an Albert Camus before his time.   Can you tell me what the purpose of using the indefinite article before the proper name is in the sentence above. What it be a mistake to write just "Albert Camus" without the article?


Novel about two princesses in a fantasy world, one falls sick and the other travels to find a cure

I'm looking for a story that I read back when I was a child. Around 2005, maybe? I recall the book seeming pretty old, but it was from a public library, so it could be simply deteriorated by usage.  The world is being afflicted with a mysterious sickness that has no cure and no one knows where did it come from (it is called gray fever, gray plague or something like that).  The story narrates two young princesses, the elder one would be brave and adventurous, while the younger one would be shy and more delicate. They both fantasized with a future where the younger one would fall sick and the elder one would depart trying to find a cure to save her.  But in reality, the elder one falls sick and the young one is forced to depart. I recall some sort of mage/warlock that helps her giving her a pair of boots that would let her walk big distances almost instantaneously. I also recall the younger one being trapped by a dragon, and in the end the elder one dies from the sickness, but is saved being transformed in a fairy. I also think the sickness is eradicated in the end.


UK Visa rejected twice. Whom can I complain to?

Please advice-is there an office to which a Visitor Visa Rejection complaint can be sent to? It's for a UK Visitor Visa rejection.


Website ranks on google and disappears again

I've created a website with WordPress about two months ago. The website mainly focuses on content writing services with up to 5 pages for different writing services & also a blog with more than 10 blog posts till now. I've started to create backlinks and also doing some on page SEO since the first week. I've also added Sitemap to google webmaster tools, everything looks fine. Anyway, after about two months, I expected to see some serp improvements, so I've searched for the query and checked google results up to page 15 and yay! I was there. It was a good feeling as I was expecting to get better and better positions everyday. Because my website was mainly focused on the topic, whereas so many results on pages after 7, was not even 1% related to the topic. But, suddenly my website have completely gone from the results, even not on page 20! So I tried to figure out what is happening. I reviewed every section in webmaster tools, fixed crawl some crawl errors and started a live page test, and after that, requested indexing. In less than an hour, I was again on page 15, for a few days actually. Again, I'm not on any pages. And this cycle continues...  I wonder if is something wrong here. I don't think that google is punishing me for building backlinks soon or something like this, because I'm on page 5 on a longtail keyword (based on the main keyword). So what do you suggest? Should I wait? Or continue to live test & request indexing...


Why doesn't hydrostatic pressure glue objects to the seafloor?

Consider a cement block of the same density as sea-water resting on the (perfectly polished) seafloor. I also assume the side-faces of the cement block are highly polished, so that no vertical hydrostatic forces can attack on them. A cable is attached to the top of the block.  My question ist: How much force must one apply to the cable before the cement block begins to lift off the seafloor?  The normal response would be to say that only a negligible force is needed - as the block is practically suspended in the water.  However, as the bottom surface of the cement block is not in contact with the water, it is NOT experiencing the hydrostatic pressure from below - only from above.  Before the crane starts lifting, the (zero-sum) forces on the cement block are:  $$F_{Seawater Pressure} +F_{Gravity on Cement Block} - F_{Seafloor Resistance} = 0$$  as the crane starts applying Force, the Seafloor will reduce its Resistance in the same measure, leaving the forces on the cement block zero:  $$F_{Seawater Pressure} +F_{Gravity on Cement Block} - (F_{Seafloor Resistance}+F_{Crane}) = 0$$  Just before the Cement block lifts, the Seafloor will stop applying Force and the Crane will be applying the only upward Force:  $$F_{Crane} = F_{Seawater Pressure} +F_{Gravity on Cement Block}$$  Once the Cement block lifts off the sea-floor, hydrostatic pressure kicks in on the lower cement surface, suspending the block, but before that - boy does it take a lot of force to lift it!  What is wrong with this reasoning?


Is there a new fix to restart redstone clock

I think everyone in this section knows about redstone clocks, and that sometimes when you log in and out, the repeaters get stuck. Sometimes they get stuck when you are just a little but far away or in another dimension. This is really annoying if you have stuff that is depending on your clock to work.  Now we are a few updates later, and there have been a lot of updates, and new stuff added to the game. Does anyone know of a new solution to have your clock automatically restarted when it gets stuck.  There are a few methods when I do a YouTube search, but they are all a but messy. Even I did an attempt with a mine cart system, but I think it's messy as well.


PyQGIS script works in QGIS console but produces no error or output as standalone

I'm trying map rendering with stand alone script, so I have small script which works fine in python console provided QGIS, however when I run same code in stand-alone script it executes without error, but output is not produced.  Here is my standalone script:  from qgis.core import * from qgis.gui import * from qgis.utils import * from PyQt4.QtCore import * from PyQt4.QtGui import * from PyQt4.QtXml import *  QgsApplication.setPrefixPathddd("C:\Program Files (x86)\QGIS Valmiera", True)  QgsApplication.initQgis()  mapinstance = QgsMapLayerRegistry.instance() mapinstance.removeAllMapLayers()  layer = QgsVectorLayer("F:\scripts\map\wb.shp", "test", "ogr")  if layer.isValid():     print "shplayer succesfully loaded - adding to mapinstance"     mapinstance.addMapLayer(layer) else:     print "shplayer failed to load!"  print mapinstance.mapLayers()  # create image img = QImage(QSize(800,600), QImage.Format_ARGB32_Premultiplied) # set image background color color = QColor(255,255,255) img.fill(color.rgb()) # create painter p = QPainter() p.begin(img) p.setRenderHint(QPainter.Antialiasing) render = QgsMapRenderer() # set layer set lst = [ layer.id() ] # add ID of every layer render.setLayerSet(lst) # set extent rect = QgsRectangle(render.fullExtent()) #rect.scale(1.39800703) rect.scale(1.1) render.setExtent(rect) # set output size render.setOutputSize(img.size(), img.logicalDpiX()) # do the rendering render.render(p) p.end()  # save image img.save('F:\scripts\out.png',"png")      QgsApplication.exitQgis()


How to hide javascript file of your website?

I have written a lot of functions which use ajax to call PHP functions in my main.js file. The problem is that anyone can see my logic and internally called php file names of website by viewing the page source. How should I prevent the people from viewing my javascript file?


Do I have to have defeated Plantera in that world? Because when I try and use the Lihzahrd Altar that's supposed to summon the Golem, it doesn’t work and I can’t activate the Golem!


Errors when incorporating a plot into a Beamer document

When I take the plot from this question  and try to incorporate it into a Beamer presentation, the PDF generates, but there are lots of errors.  Am I missing anything that is requried to make the plot compatible with Beamer?  \documentclass[11pt]{beamer} \usetheme{default} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{tikz,pgfplots} \usepackage{xcolor} \usepackage{xstring} \pgfplotsset{compat=newest}  \newcommand*{\diff}{}% Ensure it is not already defined \newcommand*{\clr}{}% Ensure it is not already defined  \author{Me} \title{Stuff} \subtitle{More stuff} \logo{Logo} \institute{School} \date{Today} \subject{Math stuff} \setbeamercovered{transparent}  \begin{document}     \maketitle      \begin{frame}         \frametitle{Multicolor chart}          \begin{tikzpicture}[font=\tiny]             \begin{axis}[                 axis x line=center,                 axis y line=center,                 restrict y to domain=-50:50,                 legend entries={$d=-2$,$d=-1$,$d=0$,$d=1$,$d=2$},legend pos=north west]%or north west, ... ,outer north east             ]             \pgfplotsinvokeforeach{-2/orange, -1/red, 0/green, 1/blue, 2/brown}             {                 \StrBefore{#1}{/}[\diff]%                 \StrBehind{#1}{/}[\clr]%                 \edef\AddPlot{\noexpand\addplot[thick,smooth,color=\clr,domain=-6:6                     ] {(x-\diff)^3};}%                 \AddPlot             }             \end{axis}         \end{tikzpicture}     \end{frame} \end{document}   Errors:  line 47: Illegal parameter number in definition of \test. \end{axis} line 47: Illegal parameter number in definition of \test. \end{axis} line 50: Illegal parameter number in definition of \iterate. \end{frame} line 50: Illegal parameter number in definition of \iterate. \end{frame} line 50: Illegal parameter number in definition of \iterate. \end{frame} line 50: Illegal parameter number in definition of \iterate. \end{frame} line 50: Illegal parameter number in definition of \beamer@doifinframe. \end{frame} line 50: Illegal parameter number in definition of \beamer@doifinframe. \end{frame} line 70: Illegal parameter number in definition of \test. \end{axis} line 70: Illegal parameter number in definition of \test. \end{axis} line 73: Illegal parameter number in definition of \iterate. \end{frame} line 73: Illegal parameter number in definition of \iterate. \end{frame} line 73: Illegal parameter number in definition of \iterate. \end{frame} line 73: Illegal parameter number in definition of \iterate. \end{frame} line 73: Illegal parameter number in definition of \beamer@doifinframe. \end{frame} line 73: Illegal parameter number in definition of \beamer@doifinframe. \end{frame} line 27: Font shape `T1/cmss/m/n' in size <4> not available(Font) size <5> substituted : Size substitutions with differences(Font) up to 1.0pt have occurred.


I have a polygon layer in a PostGIS database and connected it with GeoServer. When I publish the layer using a WFS service, the polygons are deformed, vertices are lost. Where can I change GeoServer settings so that the layer is published complete?  In the image, the blue outline layer is the layer that is generated with the WFS service and the green layer is the original layer. What GeoServer settings should I change for the WFS service layer to be published as the original layer?


When I see $PATH it seems like following . /bin:/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin /bin is duplicated in path, my question is how to drop duplicate these in path ? Are there any good way to achieve this? Thanks


For some reason, my flagging summary isn't showing me what's happened with any of the flags I posted since the end of October. In other words, none of the flags that I've posed in November are showing up in my flag summary. Am I doing something wrong?  Here's what I am seeing:


What influences fluctuations in my Val accuracy figure?

This is the output figures for some machine learning experiments I'm doing. What are the factors that influence the entity of the fluctuations in my validation accuracy?


'find' with '-o' and '-exec chown' not working as expected

I'm trying to run the following:  find . -user user_name -o -group user_group -exec chown root. {} \;   But after running the command it doesn't alter the ownership of any files. If I run without the -exec it produces a list of all the files I expect to be modified correctly.  If I use:  find . -user user_name -exec chown root. {} \; find . -group user_group -exec chown root. {} \;   The files are updated as expected. I see in the man page that:  expr1 -o expr2           Or; expr2 is not evaluated if expr1 is true.   expr1 -or expr2           Same as expr1 -o expr2, but not POSIX compliant.   However, the files are owned by user_name:user_group. The first case should evaluate to true and run the exec command unless I'm misunderstanding something here. Can someone explain why this is working this way?  Some system info if needed:  find (GNU findutils) 4.4.2 CentOS release 6.8 (Final)


I am transition from Windows to OS X: Can one configure the Safari browser with a socks to tunnel through a SSH tunnel (Putty in MS-Windows).  Can a SSH tunnel be configured from the command line and command the Safari browser to direct request / responses through the tunnel?  If yes, an example is appreciated.


Why does string[-1:0] return '' in Python?

>>> sample = "asdf" >>> sample[-1:0]   I thought it would start with the last character up to the first position (but not including). However, it returns '' when I expected f. Why is this happening?


Efficient computation of $\sum_{k=1}^n \left\lfloor \frac{n}{k}\right\rfloor$

I realize that there is probably not a closed form, but is there an efficient way to calculate the following expression?  $$\sum_{k=1}^n \left\lfloor \frac{n}{k}\right\rfloor$$  I've noticed $$\sum_{k=1}^n \left\lfloor \frac{n}{k}\right\rfloor = \left\lfloor\frac{1}{2}\sum_{k=1}^{\left\lfloor\frac{n}{2}\right\rfloor} \left\lfloor\frac{n}{k}\right\rfloor\right\rfloor + \sum_{k=1,\ odd(k)}^n \left\lfloor \frac{n}{k}\right\rfloor$$  But I can't see an easy way to let the second term enter in a recursion.


How do I get Ubuntu to ask me for a password at login again?

I just installed Ubuntu 12.10 and afterwards, I accidentally set the administrator account password to empty/null. This gave me problems when trying to do administrative tasks in the GUI, so after reading up on askubuntu I used the passwd command to set the password for the account anew.  However, at the login screen when clicking on the account, I'm not asked to enter the password; but, instead, I log in directly as if there is no password set for the account.  When doing administrative tasks in the GUI, I will be asked for a password.  What do I do to be asked for the password at login time?  I did already try, several times, in the User Account settings window to set a new password for the account. That is, in the settings window it does not say "login without a password" for my account and it shows that there is a password set for the account.


I'm new to making any electrical desings that don't have a manual.  I have six 12 V 20 Ah Lead-Acid batteries connected in series.  Can a 12 V 14 Ah or/and a 12 V 6.5 Ah battery(ies) be connected in any manner in which it won't harm the life span of the "original" six batteries?


I am confused about using 'being' in the middle of the sentences. For example I saw in an article in which 'being' was used like this:     However, the evidence points to placebo effects being more important than any neuro-pharmacological ones.   In that sentence why 'to be' was not used? What is the gramer rule used there? Is this a special structure?   Another sentence:     ...... and we feel that incorporating them can help to broaden the scope of questions being examined.   In this sentence, 'being examined' seems to be reduction of relative clause, if so, why not used just 'questions examined'.  Any response would be appreciated.


Tangent bundle of $S^2$ not diffeomorphic to $S^2\times \mathbb{R}^2$

I am trying to show that the tangent bundle of $S^2$ not diffeomorphic to $S^2\times \mathbb{R}^2$. This is from an exam, where there is a hint stating that this is more than showing that $TS^2$ is non-trivial.  I know how to show the hairy ball theorem, according to which $TS^n$ is non-trivial iff n is even.  I also know that a vector bundle $\pi:E\rightarrow M$ of rank $m$ on a smooth manifold $M$ is trivial (by definition) iff there exists a diffeomorphism $f:E\rightarrow M\times \mathbb{R}^m$ such that for every $p\in M$, $f$ induces a vector space isomorphism $f:\pi^{-1}(p)\rightarrow \{p\}\times \mathbb{R}^m$.  So I see that showing that $TS^2$ is non-trivial only guarantees that $TS^2$ is not diffeomorphic to $S^2\times \mathbb{R}^2$ via a diffeomorphism satisfying the property above, but it is not enough to conclude that there isn't any diffeomorphism.  How can I show this then?


Use Regex to remove RTF formatting in Android

I am trying to obtain the plain text from a string containing RTF formatting. For example, I have:    originalText = {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Tahoma;}} \viewkind4\uc1\pard\f0\fs20 the temp is forty degrees\par}   and I want to obtain:  plainText = the temp is forty degrees    I found the following Regex online: ({\)(.+?)(})|(\)(.+?)()  So I tried this but it just gave me back the original expression:           pattern = "({\\)(.+?)(})|(\\)(.+?)(\b)";         plainText = originalText.replace(pattern,"123");


What about the 'geometry' in 'geometric progression'?

Every time I have come upon a discussion of the geometric sequence, I have often wondered (in vain) about the qualifier 'geometric' since such sources never explained the origin of the term. Naturally, I have wondered about the related terms 'arithmetic' and 'harmonic' in the name of their respective sequences too; while I have been able to find some plausible explanation of the origin of these latter two terms, I have however wondered on end about the historical origin of the 'geometric' in the term geometric progression, without appreciable success.  You might have come across, or thought of, a plausible connection between exponential sequences and geometry that gave such sequences their collective name. Please share these below.  Thanks plenty.


Can a fighter/sorcerer cast four spells in one round?

So we all know that if a fighter action surges he can cast an additional leveled spell, but can a fighter multiclassing as a sorcerer in a sense cast 4 spells by quickening spell twice?


Give an example of a finite extension of fields that is neither separable nor normal.

The title says it all. This is not homework. Haven't made much progress - I know that with $K=F_2(t)$, $L=K(\sqrt t)$ (i.e. adjoining the square root of $t$ to the function field with coefficients in the finite field on two elements), $L/K$ is not a separable extension. This suggests looking at extensions $M$ of $L$ that are not normal over $K$. Does such an extension exist? Or is there a better example?


The upgrade from 18 to 20.04 LTS finished with some issues. After restarting the laptop, I got this frozen screen:


Every Stack Exchange 2.0 site has a meta. So many metas! Which one should I post my bug report, feature request, or discussion in?


Why query string processing regexp not working properly

Pattern subsetPattern = Pattern.compile("select(.*)from.*");   Pattern resourcePattern = Pattern.compile(".*from(.*)(where|limit|;).*");   Pattern filterPattern = Pattern.compile(".*where(.*)(limit|;).*");       public Query(String queryString) {          System.out.println(queryString);          // removes all the newlines in query.         queryString = queryString.replace("\n", "").replace("\r", "");         queryString = queryString.toLowerCase();          Matcher subsetMatcher = subsetPattern.matcher(queryString);         Matcher resourceMatcher = resourcePattern.matcher(queryString);         Matcher filterMatcher = filterPattern.matcher(queryString);          if (subsetMatcher.matches()) {           subset = subsetMatcher.group(1).trim();         }         if (resourceMatcher.matches()) {           resource = resourceMatcher.group(1).trim();         }         if (filterMatcher.matches()) {           filter = filterMatcher.group(1).trim();         }          System.out.println(subset + "\n" + resource + "\n" + filter + "\n" + limit);         System.out.println("===========");       }   Above code prints out the following output  SELECT col_x, col_y FROM table_name WHERE col_z = 'yello'  LIMIT k; col_x, col_y table_name where col_z = 'yello'  limit k col_z = 'yello'  limit k null ===========   why does the resource group matcher do not stop at the where ?


According to my ICT textbook, BIOS checks if the hardware is working properly and is necessary for loading up the Operating System; System software is programs that allow the hardware to work properly and allow the user to communicate with the computer. Firmware is software hard-coded on a hardware device. Then does it mean that BIOS is a type of firmware and firmware is a type of system software? or is BIOS just one of them, either firmware or system software?


Concept clarification regarding functions

I'm currently learning about functions and I need a clarification regarding some basic concepts since every book I read seems to change something here and there.  The concepts of domain and codomain are quite clear and I have no issues about them. I have issues understanding the range and the image set.  First, I used to believe the range and the image set were much like the same thing. Now, after more reading it seems that range and image set are not exactly the same thing.  From what I have understood, the range is the image set of the domain. But I can have image sets of subsets of the domain (not equal to the domain) which will not be the range but just image sets of these subsets. Saying the same but differently, the range is always an image set, but an image set does not necessarily has to be the range.   My question is simple, is this understanding of the topic correct?


Is “-th” still a productive suffix in English?

The main question here is whether using -(e)th to create ordinals out of cardinals1 is still considered a productive suffix in English. Is it?    If so, then does it matter whether we are in a formal or informal register?  Is it accepted in some contexts but not in others?  Is it blocked by certain circumstances?  Consider these sorts of formations, arranged by least to most shocking; are they legal, illegal, or suspect?   the nth or nth item the zeroth element googolth for which item is number googol epsilonth and  ¹⁄epsilonᵗʰ (¹⁄epsilonth) alphath or perhaps alphath calculating the (1−alpha)th percentile three-halfth for ³⁄₂ᵗʰ (³⁄₂th) two-thirdth for ²⁄₃ᵗʰ (²⁄₃th     Footnotes:   Such as we do with four > fourth, fifty > fiftieth, and  billion > billionth


This is the my json:  [ {"name": "John Smith","date":"2017-02-02T23:07:09Z","id":"1223234"} {"name": "John Doe","date":"2015-07-03T21:05:10Z","id":"3242342"}, {"name": "Jane Fan","date":"2016-12-22T13:27:19Z","id":"2123444"} ]   I have already converted the above to hashmap. Now I want to sort the items on the date value.  Are there inbuilt functions that can help me achieve this? Like e.g. sorted in Python


Let $a,b,c,d$ be positive real numbers. Prove that $$\dfrac{a}{b+2c+3d}+\dfrac{b}{c+2d+3a}+\dfrac{c}{d+2a+3b}+\dfrac{d}{a+2b+3c} \geq \dfrac{2}{3}.$$   I was thinking of trying $a \geq b \geq c$ since the inequality is cyclic. I am not sure how to use this, though, or if this would help simplify the inequality. It also doesn't look like I can really use AM-GM or Cauchy-Schwarz.


What is the function __construct used for?

I have been noticing __construct a lot with classes. I did a little reading and surfing the web, but I couldn't find an explanation I could understand. I am just beginning with OOP.  I was wondering if someone could give me a general idea of what it is, and then a simple example of how it is used with PHP?


Background goes transparent when png UV map is applied

I have a png logo-label I want applied to a section of the display. Problem is when I set up the label material and apply it the background of the display goes transparent too.


$[G : H] < ∞$ and$ [G : K] < ∞$ then $[G : H ∩ K] < ∞$ where $H$ and $K$ be subgroups of $G$

Let $H$ and $K$ be subgroups of a group $G$. Then is the following true ?      If $[G : H] < ∞$ and $[G : K] < ∞$, then $[G : H ∩ K] < ∞$.   I think this's false because there's still a case that $H ∩ K$ could be empty. But the textbook requires to prove this statement. So I am a bit confusing on this point.. any help?


Let $k\in\mathbb{N}$ and $a>1$. Show that $\lim_{n\to\infty} \frac{n^k}{a^n}=0$.

I think what I need to do is find the value of $n$ where $n^k<a^n$. I know that this value occurs whenever $n>k\log_an$, however I don't understand how to interpret this result into a general $N$ to pick as a maximum for the sequence convergence. What am I missing here?


Getting stuck in a rut while writing a thesis

I'm to write my MSc thesis soon, and am a bit worried that I will get stuck in a rut. By that I mean that I will have very little variety in my daily (work) life, and that it will not only be stressful, but also that I will sort of stare myself blind on the same problems every day.  Any advice? Do I even need to worry about this?  EDIT:  I probably didn't explain myself very well, because everyone seems to have misunderstood my question (don't get me wrong, I really appreciate the feedback, it's useful nonetheless).  I'll be working on the same problems for about 6 months. I'll probably get so tired of it. I'm wondering what I can do to avoid that making me crazy. RasterImage mentioned changing the work environment once in a while, that might do some good.


how to produce a RASTER representing X coordinates?

In a journal article I have read that two rasters, representing X and Y coordinates respectively (see attached figure), have been entered as predictors in a GIS-based Logistic Regression for a given reason (namely, in order to reduce possible auto-correlation issues).  I was wondering how such rasters can be produced in ArcGIS (10.1). The reference is:     Hu, Z., & Lo, C. P. (2007). Modeling urban growth in Atlanta using   logistic regression. Computers, Environment and Urban Systems, 31,   667–688.    @Luke pointed out an earlier thread. I read it, and I see that different approaches have been suggested, mainly outside arcGIS. I would rather prefer to stick with the latter. I saw something that could fit my need, but I do not understand one thing: in the suggested workaround: xmap = (FlowAccumulation(1) + 0.5)*cellsize + xmin, what that (1) stands for? The same applies to the (64) in the suggestion for the ymap (namely, ymap = (FlowAccumulation(64) + 0.5)*cellsize + xmin)


Export to COLLADA with textures using Cycles renderer

I'm trying to export a Blender model which is created using the Cycles renderer in Blender. The problem is that it does not successfully export as a .dae file. The image references and images are missing. What is the correct way to export a Blender model to a COLLADA file?


Genitive - singular/plural noun after genitive

In the phrase "the boys' rackets", is it implied that each boy has one racket or more than one racket?  Should each boy have one racket, how would this be expressed/written?  Should each boy have more than one racket, how would this be expressed/written?  Another doubt regarding a similar phrase would be:  "the boys' mind/minds" - only one mind is possible per boy, but were we to use the plural word "minds", would this imply (grammatically) that each had more than one?


How do I enable Parallel Data Warehouse on my Microsoft SQL Server. I am trying to run this SQL statement below and received this error.  ERROR:  Msg 11305, Level 15, State 10, Line 2 The Parallel Data Warehouse (PDW) features are not enabled.   CODE:  select A.gender, A.firstname, A.weight,        SUM(a.weight) over (partition by a.gender                            order by a.weight) as 'New Column'  from ChildStat A  order by a.gender, a.weight;


Problem with building/compiling a driver for Edimax wireless adapter EW-7822UAC in Kubuntu 13.10 64-bit

I have a USB wireless adapter EW-7822UAC from Edimax, and I used to be able to build/compile a Linux driver from the source that the vendor provided just by installing build-essential package on a fresh installation of Ubuntu, even without updating the system.   Now, I have installed Kubuntu 13.10 64-bit, and when I try to build the driver, I get a bunch of repeated errors and warnings and eventually the build process fails.    The kernel is 3.11.0-12-generic and I didn't need to install anything other than build-essential in (K)ubuntu 12.04.   The following are the block of repeated warning and error that I got after I invoked make command:    /home/xxx/build/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:601:8: warning: assignment makes pointer from integer without a cast [enabled by default] entry = create_proc_read_entry("bw_mode", S_IFREG | S_IRUGO,       ^ /home/xxx/build/rtl8812AU_8821AU_linux_v4.2.2_7502.20130517/os_dep/linux/os_intfs.c:607:7: error: dereferencing pointer to incomplete type entry->write_proc = proc_set_bw_mode;     Any help will be greatly appreciated, but please go easy on the jargon. Thanks.


Strange behavior of re.match function in Python 3

In the following code, I expect the program to print "Match", because "\D+\d" matches the "x4" part of the string. But it does not print anything. What is the problem?  import re pattern = r"\D+\d" if re.match(pattern, "1x4"):     print("Match");   Thanks


Is ubuntu available in Tamil?  If yes give me the link to download the language interface


What are the RSS capabilities of SE and SE chat rooms?

Are there any ways to get an Android RSS feed specifically for chat?  Related question:


Existence of limit of the sequence $x_n=\sqrt{n^2+1}-n$

I need to find the limit of the following sequence  $x_n=\sqrt{n^2+1}-n$.  I am having trouble on where to start for this question. Any help would be appreciated.


How can I determine the IP of my router/gateway in Java? I can get my IP easily enough. I can get my internet IP using a service on a website. But how can I determine my gateway's IP?  This is somewhat easy in .NET if you know your way around. But how do you do it in Java?


To find eigenvalues of matrix with all same element

How many distinct eigenvalues are there in the matrix.  $$     \begin{bmatrix}     1 & 1 & 1 & 1 \\     1 & 1 & 1 & 1 \\     1 & 1 & 1 & 1 \\     1 & 1 & 1 & 1 \\     \end{bmatrix} $$  I was wondering that is there any specific eigenvalues for matrices like this??  I hope I wouldn't have to find the determinant of this 4×4 matrix.


MySQL replication - create two slaves but later make one of them master

We're migrating the DB to a new DataCenter. As a result we need to create a new master and slave on the new DC. I have the dump from the Old Datacenter master DB (still in production use). I need to use this dump to create two databases. Both will be initially slaves but one of them will become the master and then the other slave needs to replicate from new master.  DB_old_dc     - Master DB DB_new_dc_001 - Slave replicating from DB_old_dc - Later this will become master. DB_new_dc_002 - Slave replicating from DB_old_dc but later needs to replicate from DB_new_dc_001.  Can I just change the master IP on DB_new_dc_002 to point to DB_new_dc_001 and will it start working? Or Do I have to wait till DB_new_dc_001  becomes master, then take a backup and create DB_new_dc_002   slave?


45 and wanting to start Ed.D am I too old?!

I am in my 23rd year of teaching at the public schools.  I love what I do and as some refer... I am a 'lifer.'  I am 45 yrs. old and wanting to start my Ed.D. The program is estimated to be completed in 3yrs as I already have an MA and 18 additional graduate course work hours that some will likely transfer.  I believe I will be 48 or 49 when I finish.  My goal is to take the Ed.D.  and my 26/27 yrs public education and move into a university setting and apply and pour into aspiring students who wish to become teachers as well as be a supervisor of student teachers.  I have thought of other ideas too like working more at a district level within a school district where my Ed.D. in Educational Leadership with the emphasis in curriculum and instruction or special education could be of value.  My greatest concern is I will do all this work for nothing and be considered too old and overlooked.  Anyone have any wisdom to impart as I ponder this decision????


Can the second 'I' be omitted in 'I am ... and I am ...'

For example, if I want to say      I am grateful to have been offered a place on the program and I am very happy to accept the offer.   Is it better or not to omit the second 'I'?     I am grateful to have been offered a place on the program and am very happy to accept the offer.   Omitting the second 'I' looks a bit strange for me..


How to know what function called another in JavaScript?

Is there a way to automatically know who called a specific function in JS?  Let's say I have this code:  function1() { function2(); }  function2() { console.log('the function who called me is ...' + <magic code here>); }   When function1 calls function2, is there any magic way for function2 to know that function1 called it, without passing any additional parameters?


I found some typos (or errors) in my thesis, one formula, the label of one figure, and one citation. My thesis is done. What should I do? I know some students faked data and their degree were revoked. I did not fake data, but I am not sure how serious these typos are.   UPDATE  I cited and used 5-6 statements from an online report A and changed a little of them. They looks similar. But citation is wrong. I cited B in reference. What should I do? Is it Plagiarism?


Proving or disproving inequality $ \frac{xy}{z} + \frac{yz}{x} + \frac{zx}{y} \ge x + y + z $

Given that $ x, y, z \in \mathbb{R}^{+}$, prove or disprove the   inequality      $$ \dfrac{xy}{z} + \dfrac{yz}{x} + \dfrac{zx}{y} \ge x + y + z $$   I have rearranged the above to:  $$ x^2y(y - z) + y^2z(z - x) + z^2x(x - y) \ge 0 \\ \text{and, } \dfrac{1}{x^2} + \dfrac{1}{y^2} + \dfrac{1}{z^2} \ge \dfrac{1}{xy} + \dfrac{1}{xz} + \dfrac{1}{yz} $$ What now? I thought of making use of the arithmetic and geometric mean properties:  $$ \dfrac{x^2 + y^2 + z^2}{3} \ge \sqrt[3]{(xyz)^2} \\ \text{and, } \dfrac{x + y + z}{3} \ge \sqrt[3]{xyz} $$ but I am not sure how, or whether that'd help me at all.


Do Aunt Beru and Uncle Owen know that Anakin Skywalker is Darth Vader?

In  in Star Wars: A New Hope, Luke speaks with Owen about his father:     Luke Skywalker: But what if this Obi-Wan comes looking for him?      Uncle Owen: He won't. I don't think he exists anymore. He died about   the same time as your father.      Luke Skywalker: He knew my father?      Uncle Owen: I told you to forget it.   Uncle Owen told Luke that Obi-Wan died at the same time as Anakin but do Uncle Owen and Aunt Beru know the truth? That Anakin Skywalker is actually      Darth Vader


Is "an" still used in front of acronyms?

For example,     The school has just started an SLA program.   (SLA is second language acquisition.)  Should I use "a" instead of "an" here? Technically, following the rules of "an", I should use "an" here since the acronym starts with a vowel's sound. However, I'm not sure if acronyms are even considered words, which means these rules might not apply to them. If I expand the acronym, I realize I should use "a", which leaves me a little confused. Do I have it right or should it be "a"?


How to use arguments passed to a custom environment in the end code of the environment?

I want to save some typing when I use a comon style for my tables.   But because \caption and \label have to be used inside the float, I want to pass the values for these macros via arguments into my envrionment.  I want to keep these inside the end code of my environment, to easily keep the caption at the bottom of the table.  Here is the MWE to my problem:  \documentclass[     fontsize=12pt,     a4paper ]{scrreprt}   \newenvironment{bordertab}[2]     {         \begin{table}             \centering             \begin{tabular}{| l c r |}                 \hline     }     {                 \hline             \end{tabular}             \caption{#1}             \label{tab:b:#2}         \end{table}     }   \begin{document}     \begin{bordertab}{A table with a border}{ex1}         1 & 2 & 3 \\         4 & 5 & 6 \\         7 & 8 & 9 \\     \end{bordertab} \end{document}   and the errors which LaTeX throws at me when using it:  ! Illegal parameter number in definition of \reserved@a. <to be read again>                     1 l.28 ^^I\end{bordertab}  You meant to type ## instead of #, right? Or maybe a } was forgotten somewhere earlier, and things are all screwed up? I'm going to assume that you meant ##.  ! You can't use `macro parameter character #' in restricted horizontal mode. <argument> \ignorespaces ##                            1 l.28 ^^I\end{bordertab}  Sorry, but I'm not programmed to handle this case; I'll just pretend that you didn't ask for it. If you're in the wrong mode, you might be able to return to the right one by typing `I}' or `I$' or `I\par'.  ! You can't use `macro parameter character #' in restricted horizontal mode. <argument> \ignorespaces ##                            1 l.28 ^^I\end{bordertab}  Sorry, but I'm not programmed to handle this case; I'll just pretend that you didn't ask for it. If you're in the wrong mode, you might be able to return to the right one by typing `I}' or `I$' or `I\par'.  ! Illegal parameter number in definition of \reserved@a. <to be read again>                     2 l.28 ^^I\end{bordertab}  You meant to type ## instead of #, right? Or maybe a } was forgotten somewhere earlier, and things are all screwed up? I'm going to assume that you meant ##.


Create a shortcut to a batch file with args

I need to create a shortcut to a batchfile say start.bat, with  some arguments.   Can I do it like "D:\Jboss\start.bat" arg1 arg2


How do I install the latest Mesa release?

Which is the preferred way to install the latest stable version of Mesa on Ubuntu? I believe that would be a PPA, but not the bleeding-edge one like .  I would like to see a PPA that contains the latest stable release. Right now , so the latest stable version is 10.2. Soon 10.3 will become the latest stable version and I'd like a PPA that would follow that. For comparison,  contains 10.3.0~git20140821 and  has 10.4~git1408211930.


If A and B are ideals of a ring, show that A + B = $\{a+b|a \in A, b \in B\}$ is an ideal  I have the ideal test but no clue as to what to do with it:   $a-b \in A$ whenever $a,b \in A$ $ra$ and $ar$ are in A whenever $a \in A$ and $r \in R$


Can't connect Android 4.1.2 device to Ubuntu 13.10

I'm having problems to connect my android 4.1.2 device to my recently installed Ubuntu 13.10. The system just don't recognizes the device to mount, but when I run dmesg it's pretty clear than the system catch all info about the attached device, see:  [  336.008777] usb 1-1.2: USB disconnect, device number 5 [  363.119059] usb 1-1.2: new high-speed USB device number 6 using ehci-pci [  363.212290] usb 1-1.2: New USB device found, idVendor=22b8, idProduct=64b5 [  363.212294] usb 1-1.2: New USB device strings: Mfr=2, Product=3, SerialNumber=4 [  363.212297] usb 1-1.2: Product: X91x [  363.212299] usb 1-1.2: Manufacturer: Motorola [  363.212301] usb 1-1.2: SerialNumber: (DEVICE_SERIAL_NUMBER) [  363.213303] cdc_acm 1-1.2:1.1: This device cannot do calls on its own. It is not a modem. [  363.213339] cdc_acm 1-1.2:1.1: ttyACM0: USB ACM device   I also tried to install programs like gMTP but without any success... So, what's going on? How can I make that stuff to work?  Thanks!  P.S.: Sorry my (terrible) english, I'm from Brazil.


Show, using the definition of derivative, that $f:\mathbb{R}^2\rightarrow\mathbb{R}$ defined by $f(x,y)=xy$ is differentiable everywhere.

This question has the following hint:     Find a linear function $L(x,y)$ such that $f(x+h,y+k)-f(x,y)-L(h,k)=hk$. Note that $|hk|\leq l^2$ where $l:=max\{|h|,|k|\}$. Does this help you establish that a certain limit is zero? To establish that the limit is zero, provide an $\epsilon-\delta$ proof.   My initial post questioned the linear function part; hence the first couple comments. I'm now adding my proposed solution that I'd like to have critiqued.     Let $h,k\in\mathbb{R}$ such that $|hk|\leq l^2$ where $l:=\mbox{max}\{|h|,|k|\}$, and suppose $L(h,k)=kx+hy$. Thus,   $$\frac{|f(x+h,y+k)-f(x,y)-L(h,k)}{||(h,k)||}=\frac{|(x+h)(y+k)-xy-(kx+hy)|}{\sqrt{h^2+k^2}}=\frac{|hk|}{\sqrt{h^2+k^2}}.$$   Then, note that   $$|h|^2\leq h^2+k^2\Rightarrow|h|\leq\sqrt{h^2+k^2}\Rightarrow\frac{|h|}{\sqrt{h^2+k^2}}\leq1\Rightarrow\frac{|hk|}{\sqrt{h^2+k^2}}\leq|k|.$$   Hence,   $$\frac{|f(x+h,y+k)-f(x,y)-L(h,k)}{||(h,k)||}=\frac{|hk|}{\sqrt{h^2+k^2}}\leq|k|.$$   So,   $$\lim_{(h,k)\rightarrow(0,0)}\frac{|f(x+h,y+k)-f(x,y)-L(h,k)}{||(h,k)||}=0.$$   Therefore, by the definition of derivative, $f$ is differentiable everywhere.   It seems to me that an $\epsilon-\delta$ proof is unnecessary, but maybe I'm implicitly making an assumption that needs proved?


This morning I happened to disagree with some newbie user on the best way to resolve a question. He suggested that it is absolutely the best way to directly access a static field in another class; where I told him that this would be bad practice; and that a good design would avoid using fields directly, and static fields even more.  In the end, the newbie-questioner accepted the answer by that other newbie.  Now to my question: checking my reputation right now, I see that I got like 20 "-2" downvotes on some different recent answers. And you know, not only one downvote, but two. And surprise: that question/answer from those two newbies ... vanished too.  My gut feeling is something like: I upset some sock puppet and his master; and now he is pulling the big "revenge" trigger by downvoting stuff of mine.  Long story short: can I do something about that? If so, what could I do about it?  I don't think that this is a duplicate of , as it talks about getting single downvotes as revenge. Mine is about downvotes in plural. Even plurals!


How do filters and hooks really work in PHP

How does filters and hooks actually work in WordPress?  I'm asking about something advanced. How is it implemented in PHP? E.g how does it collect all the hooks from the different plugins and "attach" them to the core hooks etc.


What is a partial upgrade and when is it necessary?

Sometimes when I am running a development version of Ubuntu, the Software Updater will tell me that a partial upgrade is needed when I check for updates.  What is a partial upgrade, and why are they necessary? Sometimes users run into problems when doing them, so when should I run a partial upgrade, if ever?


\rightsquigarrow with the text above and below it

is it possible to write a text above and below the \rightsquigarrow? I am trying \xrightsquigarrow[\text{b}]{\text{a}}, but it is not working.


Did + multiple bare infinitives in a question

What is the proper way to combine past tense of do (did) with multiple bare infinitives in a question:   Did you go to vacation or stay at home? Did you go to vacation or stayed at home? Did you go to vacation or did you stay at home?   The last one is always correct, but I assume shorter form is more desirable, especially if more than two verbs are involved: Did you go to vacation, stay/stayed at home, go/went to work, or do/did something forth?  Also, if the second form is not correct, could it be transformed to Did you go to vacation or you stayed at home? I assume that this form has a little bit different meaning, because the emphasis is on vacation, and staying at home is just mentioned as one of the alternatives. Basically, this form can be answered with Yes or No, while the aforementioned three ones cannot (I offered two equally probable alternatives in the question). Does my reasoning on this make sense?  I am not a native English speaker and I caught myself using the second form occasionally (although it seems to clearly break the rule auxiliary verb + bare infinitive).


How can I bypass the android FPR on a ZTE Blade after hard reset?

Phone belonged to my brother and he can't remember what email the phone was set up with. He did the hard reset from power off and it still has the prompt for Google sign in. How can I bypass this ?


We know that atom is ninety nine percent empty and all matter is made up of matter then why matter is mostly empty ?


What is the reason of java.lang.StackOverflowError with proper termination condition?

There was a similar coding question at hacker earth. The challenge ends now. I don't have that question now but my code looked like this. I passed the test cases but my code was not accepted due to large input gives this error.  I have written the following code.  import java.util.*; class TripleStep{     public static void main(String[] args){         Scanner in=new Scanner(System.in);         int n=10000;         long[] memo=new long[n+1];         Arrays.fill(memo,-1);         long ans=StairOpr(n,memo);         Arrays.fill(memo,-1);         System.out.println(ans);     }     public static long StairOpr(int n,long[] memo){         if(n<0){             return 0;         }         else if(n==0){             return 1;         }         else if(n==1){             return 2;         }          else if(n==2){             return 3;         }         else if(memo[n]>-1){             return memo[n];         }         else             memo[n]= (StairOpr(n-1,memo)%1000000007+StairOpr(n-2,memo)%1000000007+StairOpr(n-3,memo)%1000000007+n*n*(n+1)%1000000007)%1000000007;             return memo[n];     } }   The code gives me the following error for the input value 10000.  Exception in thread "main" java.lang.StackOverflowError     at TripleStep.StairOpr(TripleStep.java:31)     at TripleStep.StairOpr(TripleStep.java:31)   What is the reason and what would be the solution? Since I write dynamic programming code but due to error the answer is not Submitted and I face the rejection.


One of my friends teaches mathematics in primary school. He was asked a question that Why $(-1)\cdot (-1)=1$ ... At higher level we can answer this question saying that it is a definition and we want different things such as associative and distributive law to hold but how we convince a primary level student.  I don't want any proof as I know very well how to prove..I want an intuition for a primary level student. I know how to prove it.


I'm trying to burn an ISO to a thumb drive

I tried this using a terminal with the disk dump command. After everything was done the thumb drive appears to have everything there. But I'm trying to go from Ubuntu 14.4 32x to Ubuntu 18.4 64x and it is not booting. Can someone please help?


Can anyone explain this problem? I am wondering what it means for evaluate $g'(x^∗)$, isn't that zero?  Newton's method can be viewed as a way of transforming a root-finding problem $f(x)=0$ into a fixed-point problem $x=g(x)$, where $$g(x)=x−f(x)/f′(x).$$ Recall that for simple roots, Newton's method has a quadratic convergence rate since $g'(x^∗)=0$, where $$g′(x)=f(x)f''(x)/(f'(x))^2.$$ When there is a root with multiplicity, $f'(x^∗)= 0$ which leads to a division by $0$ in $g'(x^∗)$. We will study how this affects the convergence rate of Newton's Method. Consider the function $$f(x)=(x−x^∗)^m * h(x),$$ where $m$ is an integer greater than $1$ and $h$ is arbitrary function such that $h(x^∗)≠0$  Please answer the following:  What is the fixed point problem obtained by applying Newton's Method? Please give the formula for $g(x)$.  Evaluate $g'(x^∗)$. Based on that value, what can you conclude about the convergence rate of Newton's Method for a root of multiplicity $m$?  Based on the previous result, can you propose a modified Newton's method that recovers quadratic convergence rate? What is the formula for $g(x)$ in this modified version? Prove that your new method achieves quadratic convergence.


Easiest way to write the single char よ in math mode

I'm looking forward to use よ () in math mode, to denote the . Is there a way to typeset just this char, without importing a whole Japanese font?


Rounding a double variable that is supposed to be returned, as opposed to printed

I am writing an average function that takes the average of an array, and returns the answer to 2 decimal places. The only way I found online to do this, however, is by using printf() or cout().   But I do not want it to be printing out each time this function is called because it is used in other functions such as a variance equation and standard deviation equation that shouldn't be displaying the average function.   If anyone could tell me a way to do this, I would be eternally grateful. I think my question is broad enough that code isn't really needed, but here it is anyway just in case. It just continues for quite a few decimal points. Not sure if that's the exact value or a cut off point.  double avg(int a[],int n) // compute the average of n data storing in the array a {     double addsum = (double)sum(a,n)/(double)n;     return addsum; }


How to build a single virtual machine on top of multiple computers?

Is there a way to run Linux operating system on a virtual machine which aggregates the resources of physical machines on the local network and acts as a single super-computer? If possible, how?  Thanks.


How to make every first letter of a word in uppercase?

How to get every first letter of a word in uppercase and others are in lowercase only. For example, when typing "LATEX FOR DOCUMENT SETTING" or "latex for document setting" or "LateX foR Document SeTTing", LaTeX should produce "Latex For Document Setting" in every case.


Please stop this suggested edit annoyance

has suggested a ridiculous number of re-tag edits in the last few minutes.   Changing [internet] [explorer] to [internet-explorer]  Normally I wouldn't mind some one going on a cleaning spree, but the majority of the posts in question have several issues that went unchecked.   Most of the ones that I rejected had obvious "thanks" and signature lines.  I've already burned through my 20 Suggested Edit reviews for the day, please help.


The great tree sat upon the cliff. "Alien, I die soon."

As a teenager I read a story about a great tree that sat upon the eroding cliff of an alien world. A party of human explorers arrived upon this world, and one of their number, a man of intellect, but physically weak, is endowed with special powers by the tree shortly before it dies. At the moment the conscience of the man and the tree combine, the tree urgently told the man, "Alien, I die soon." I've never forgotten that line, and would like to read this story again. What is the story's name and by which author ? Thank you.


CUPS webservice does not ask for authentication in Chrome

When accessing  in Firefox and selecting particular printer, then Administration->Modify Printer, the Firefox provides username and password popup. In Chrome, the webservice does not show the popup at all and goes straight to the error page:     Unauthorized    Enter your username and password or the root username and   password to access this page. If you are using Kerberos   authentication, make sure you have a valid Kerberos ticket.   I am in lpadmin group. How do I make Chrome behave properly with CUPS webservice?


Reading, writing and saving data Android app

So I am trying to make an app that saves a text file sa device and uses the timestamp as the file name then yung same file would be sent to the computer to a specific folder. I am trying to start off by having the file saved and read in my device. My code runs but when I enter the data and press the save button to save the file, the app crashes.  Posted is the logcat of the app. Can't seem to find what's wrong. Any help would be useful. Thanks.


In the M.M. (Monster Manual), it says that PC (Player Characters) can become vampires. I'm not good at all with mythology, so I'm asking for a little help here.  How can a PC get turned into a vampire?


I can reverse list order by using the reversed iterator or by using ::-1, as shown in this code: li=[1,2,3]  print(list(reversed(li))) print(li[::-1])  However, I have not understodde the meaning of the :: addressing, and I have not found any documentation on this feature (possible due to the fact that searching for :: creates problems). Can anyone help? Thank you.


Does it really matter if the default storage engine is InnoDB? My default storage engine is MyISAM


What is the proper name for a "river plot" visualisation

In a famous plot, Charles Minard visualised the losses of the French Army in the Russian campaign of Napoleon:    (another nice example is  xkcd plot)  Is there a canonical name for this type of visualisation? I'm actually looking for an R package to create such plots, but I don't even know how to look for it.  EDIT:  As I could not find a good package in R do do this type of plots, I have created my own, called "riverplot" -- you can download it . Here is a simplified version of the above diagram:    And an example of what other diagrams can be created with the package:


I've only recently started learning about imaginary numbers, and there is one thing I cannot really wrap my head around:  $i^2 = i*i = {\sqrt{-1}} * {\sqrt{-1}} = {\sqrt{(-1) * (-1)}} = {\sqrt{1}} = 1$  I'm aware that by definition $i^2 = -1$, but as far as I know, even definitions have to obey mathematical rules.  So where is the mistake? :)    EDIT:  Thank you all, seems like the wrong bit is ${\sqrt{-1}}*{\sqrt{-1}}$  Cheers :)


Differences between Cortex-M4 Cortex-M7 and Cortex-A5

I want to make a simple IOT project for my home and I'm searching for a mcu to start with. I was raffling through the web site of a few popular distributors and I found that some Cortex-M4 are much more expensive than Cortex-M7 which are more powerful though. Also I saw that some Cortex-A5 are cheaper than some Cortex-M7.   I can understand the differences in terms of performance and architecture, but if someone wants to start developing a board based on some of the MCUs that mentioned above for building its own projects, what statements must be considered to match our demands?  To be exact, why not choosing a Cortex-A5 if it's more cheaper and powerful instead of a Cortex-M7?


Comparing the integral of a histogram and its distribution function

I asked a question  but I did a rather poor job of explaining my problem the question was poorly formed.  If I have some histogram with $N_{total}$ number of total data points, and $N_{bins}$ number of bins. If I integrate across the maximum bin and the minimum bin, then I just get back $N_{total}$, likewise if I integrate between two bins on the histogram, I simply sum the counts within those two bin points.  Now I can fit a function, $f(x)$, that describes the histogram. If I Integrate the function $f(x)$ between two points - which correspond to two bins, what I want to get back is a value which is close to the total counts in the region between the two bins.  Is there a relation that I need to use which scales with the number bins, such that the result of the integral $\int_{max\ bin}^{min\ bin}f(x)\ \ dx \approx N_{total}$  I hope this is clearer than my first attempt!


Site issues and issues with banning users

This site has many issues. Even though they have very good things for asking a good question / good answering, but here are some experts who have gained some privileges to ban any person.   This is not good. There are some people who do this very constantly, so experts, I can say, if you have knowledge, share and correct question of users. Users can ask anything, don't forget you were on same stage when you say to the user, what kind of question is this, or downvote the question or ban it.  So take it easy and let users ask the questions they need.  I have seen this, I asked one question and I was banned, same question was asked by another person and his was answered.   So help with this all, especially for ColdFusion developers.


"Put me in touch with whomever created it"?

He created it.  Put me in touch with him.   So which is correct and why:   Put me in touch with whomever created it. Put me in touch with whoever created it.


You can't use `macro parameter character #' in horizontal mode

I am trying to define a new command representing a ternary operator \newcommand{\ternary}[1][2][3]{\textbf{if} \quad #1 \quad \textbf{then} \quad #2 \quad \textbf{else} \quad #3}  Do you see why this error occurs and how it could be fixed?


Starting around 2012, Timothy Gowers had  about the practices of Elsevier. Very roughly speaking, he argued that Elsevier made research articles expensive to access and profited heavily from the volunteer work of peer reviewers. Sympathetic individuals established a website called "", which hosts the electronic signatures of over 15,000 academics who have agreed to boycott Elsevier to some degree.  Things are relatively quiet now compared to the flurry of activity that followed Gowers' series of posts. The most recent information I can find is  from the editorial board of Elsevier's "Journal of Number Theory", which was posted to Gowers' blog in May of 2013. In it, Martin writes (emphasis mine):     As far as I can tell, Elsevier’s responses to our concerns ended up being limited to a slight easing off of support for legislation limiting access to our research, together with a nominal reduction in individual journal prices. Regarding the latter, however, Elsevier’s “bundling” practice remains in place, making individual journals’ prices essentially irrelevant. Their (aggressively defended) lack of pricing transparency from one institution to another also speaks volumes, in my mind, to the limits of their desire to seriously address our pricing concerns.   My feeling is that not much has changed in the past two years, particularly since I would expect to hear an update from Gowers if any major victories had been won.   Can anyone provide more up-to-date information about Elsevier's pricing, bundling, and access practices?


I just add a figure but the caption starts on the middle, how can I fix it? I tried with \captionsetup{justification=raggedright,singlelinecheck=false} but it did not move the caption. I want it to start more on the left side Here there is a minimal reproducible example \documentclass[a4paper,fleqn]{cas-dc} \usepackage{float} \usepackage[numbers]{natbib} \usepackage{caption} \captionsetup{justification=raggedright,singlelinecheck=false} \usepackage{blindtext}  \begin{document}      \begin{figure*}[pos=h!]     \centering         \includegraphics[scale=0.7]{example-image}     \caption{Change in number of trips respect to first week of each year, treatment vs. control.}     \label{FIG:1} \end{figure*} \blindtext[2]   \end{document}   Thanks Edit: Fixed the example


String conversion contrasting output for primitive and string value

In the below mentioned program, Contrasting output for string and primitive value. How is this internally working??  public class Test {      public static void main(String[] args) {          String s1 = String.valueOf(99);         String s2 = String.valueOf(99);         System.out.println(s1==s2); //returns false, why??           s1 = String.valueOf("99");      s2 = String.valueOf("99");         System.out.println(s1==s2);  //returns true, why??   } }


How do I stop Illustrator from snapping to pixel increments?

I am working in Illustrator (15.0.2 (CS5) or 16.0.0 (CS6)) and when I try to move objects small distances, they snap to the nearest two pixels on some invisible grid. I can't find anything in the preferences. Here are some screen shots:


Is there an application other than Adobe Digital Edition that will work with the e-book .ascm format my library provides?

The library provides a .ascm file for e-books. I need to get it into .epub format for my e-reader.


Handling "illegal data type (Float64)" error when trying to convert .tif to .bil?

Each time I try to convert (in QGIS 2.2) an elevation model from .tif to .bil format a get this error:     ERROR 1: Attempt to create ESRI .hdr labelled dataset with an illegal    data type (Float64).   The same error occurs when I use the clipper with .bil as output file format.  What does the error message mean?


What does the "see" mean in expression like "The deal will see..."?

This are some specific examples:        The deal will see first-quarter exports cut by 270,000 tonnes.   South Korean farmers are worried that the deal will see US produce pour into the country, threatening their livelihoods.


I have a simple scene where I have simple planes and textures using the alpha channel of the PNG as transparency.    The way I created the files makes the Alpha channel 000 black and 255 pure white. Here is one texture if you want to examine it.      When I prepare a scene using cycles, it works fine.    I can add more planes this way.    But when I add a third one, the intersection of the planes begin to form a shadow.    Stacking 4 planes make the shadow obvious. It is rendered on the spot where the images are combined.    Here is .  What settings can I change? I changed bounce samples... but this is not about bouncing...  Any tips?


Upload firmware to many controller ICs at once

I have some 100 Atmega328 IC boards. I want to upload firmware in all of them at one go and I have the final firmware code. Is there any method by which this can be done? I was reading somewhere that it is called firmware loading, but not the process.


Finding a string in a varaible with if statement

I am currently trying to find a string within a variable that outputs something like this:     one,two,three   My code:  echo "please enter one,two or three) read var  var1=one,two,threee  if [[ "$var" == $var1 ]]; then     echo "$var is in the list" else     echo "$var is not in the list" fi   EDIT2:  I tried this but still not matching. Yo uwere correct about it not matching the exact string from previous answers as it was matching  partial.       groups="$(aws iam list-groups --output text | awk '{print tolower($5)}' | sed '$!s/$/,/' | tr -d '\n')" echo "please enter data" read "var"  if [ ",${var}," = *",${groups},"* ]; then     echo "$var is in the list" else     echo "$var is not in the list" fi   Trying this its still not matching the exact string as i need it to.


I need to install old firefox 57 so I can use my listen on repeat app. Won't work in quantum firefox. Trouble is I have NEVER understood how to extract tar files. Instructions from any site just don't ring my bell. Any suggestions. I'm using ubuntu 18.04.


So the vending machine tore my $5 in pieces. What now?

The vending machine swallowed half of my $5 bill, and the other half remained in my hand. Can I get my $5 back, or is it all lost forever?


Has anyone ever used the Force to deactivate an opponent's lightsaber during combat?

Are there any canon sources of a person using the Force to deactivate an opponent's lightsaber during combat?  There's  because somebody could just use the Force to activate it. There's even a comment there about somebody using the Force to deactivate a weapon,      If a lightsaber was only activated by the Force, how would that stop a Sith from deactivating a Jedi's lightsaber?   but as far as I can tell there's no question of deactivating one during combat as suggested by the comment above.  There's also . (Different from activating one using the Force.)  And there's .  But no question that I found about merely deactivating one to disarm an opponent. Seems like a fairly simple way to win a lightsaber duel. Has anyone done this during combat?


If $a,b,c \in \mathbb{Z}$ and $a^2+b^2=c^2$ show that $abc \equiv 0 \pmod{60}$.  I once read, on a number theory textbook - forget the title, in one of the problems list that all Pythagorean triplets when multiplied are divisible by 60


Can't install linux-headers-amd64, Ubuntu 18.04

I am trying to install Mediatek MT7630E driver ,  When I try   sudo apt install build-essential linux-headers-amd64   I get this:  Reading package lists... Done Building dependency tree        Reading state information... Done Package linux-headers-amd64 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source    E: Package 'linux-headers-amd64' has no installation candidate   How can I resolve this?


Ubuntu-18.04.2-desktop-amd64 installation fails on Lenovo p52: watchdog: BUG: soft lockup CPU#0 stuck for 22s1 (Worker/0:2:86]

I downloaded the Ubuntu-18.04.2-desktop-amd64 version and trying to install via USB key image on the following Lenovo P52 notebook. The notebook has been preformatted so no Windows on it.   Notebook ThinkPad P52 Processor: Intel Core i9-8950HK MB 32GB(16+16) DDR4 2400MHz SODIMM NVIDIA Quadro P3200 6GB HDD Config: 2x1TB Solid State Drive, PCIe, TLC RAID Setting: RAID0 Pointing device: 3+3BCP, Fingerprint Reader WiFi wireless LAN adapters: Intel Wireless-AC 9560 2x2 AC, Bluetooth Version 5.0 vPro TPM Setting: Hardware dTPM2.0 Enabled  After beginning the installation I got the following log (left truncated, OCR generated below):    ...)4 1-Libuntu ... oc/sys/kernel hun_ldsk_timeout_-_,ecs" disables this message. ...ker/9 :1: ] i h tuLI ed for more than 120 seconds. ...    4.18.0-15-generic #16A18.04.1-Ubuntu ...s/J erne hung_t ask _A imeout_secs" disables this message. .../9: 2 : 270 blocked f or more than 120 seconds. ...d: G               L    4.18.0-15-generic WI6#18.04.1-Ubuntu ...iproc     /kerne 1/hung_t askt imeout_secs" disables this message. ...task WC.1 er/5:     35 blocked for more than 120 seconds. ...4iiinted G                L    4.18.0-15-generic 1#16"18.04.1-Ubuntu ...IF> /proc /sys/l<erne 1/hung, t ask 2. imeout_secs" disables this ...message. ...task wpa_supp I icant : 1432 blocked for more than 120 seconds. ...Tainted: G               L       18.0-15-generic #16"16.04.1-Ubuntu ...0 / /proc/sys/k erne 1 /huq_t ask_t imeout_secs" disables this message. ...tasi/ Xorg. mr ap 2191 blocked f or more than 120 seconds. ...Tainted: G               L    4.18.0-15-generic #16"11.04.1-Libuntu ...0 > /procisys/Verneistmeg_taskiimeautsecs" disables this message. watchdog: BUG: soft lockup     CPU#10 stuck for 22s1 Isystemda] watchdog: BUG: soft lockup     CHAO stuck for 22s1 [[ worker/0:2:86] watchdog: BUG: soft lockup     CPU#10 stuck for 23s1 (systemd:1) watchdog: BUG: soft lockup     CPU#0 stuck for 22s1 [kworker/0:2:86) watchdog: BUG: soft lockup     CP010 stuck for 23s1 Esystemd:11 watchdog: BUG: soft lockup     CPU#0 stuck for 22sI [Worker/0:2:86] watchdog: BUG: soft lockup     CPUW3 stuck for 22s1 (snapd:2578] watchdog: BUG: soft lockup     CPU#10 stuck for 23s1 isystemd:11 watchdog: BUG: soft lockup    CPU#0 stuck for 22s1 (Worker/0:2:86] ........ (and repeat and repeat...)


I can't use terminal: Malformed entry * in list file /etc/apt/sources.list

I have this problem, what to do?  E: Malformed entry 4 in list file /etc/apt/sources.list.d/google-chrome.list (Component)  E: The list of sources could not be read.


SPWeb dispose after crashing powershell ISE

I built a powershell script that connects to sharepoint and adds items to a list. This script caused the PowerScript ISE editor to stop responding and crash before disposing.  The SP server logs display an unexpected error stating "Detected use of SPRequest for previously closed SPWeb object.  Please close SPWeb objects when you are done with all objects obtained from them, but not before."  I think previous open SPWeb object is from the crashed instance, how do I know for sure and how do I close all open SPWeb object instances? And how do I know which instance is the one I opened upon crashing?


I have a field that contains data like this:  1763_250116_0_040 1763_250132_4_030 1763_250132_99999_030   I need to get out:  0 4 99999   How could I accomplish this with TSQL?


Canon-LBP2900 printer not working on ubuntu 14.04

I could not get cannon lbp printer to work on ubuntu (14.04) after trying everything possible on the internet.  Packages intsalled - cndrvcups-capt_2.60-1_i386.deb and cndrvcups-common_2.60-1_i386.deb  The Printer adds job the queue and fails to print silently.  Here is the cups error log -   ipt@ipt-G41D3C:~$ tail -f /var/log/cups/error_log E [12/May/2014:11:33:22 +0000] [Client 19] Returning IPP client-error-document-format-not-supported for Print-Job (ipp://localhost/printers/Generic-text-only) from localhost E [12/May/2014:12:01:30 +0000] **Canon-LBP2900**: File "/usr/lib/cups/filter/pstocapt" not available: No such file or directory E [12/May/2014:12:01:30 +0000] Canon-LBP2900: File "/usr/lib/cups/filter/pstocapt" not available: No such file or directory E [12/May/2014:12:01:30 +0000] Canon-LBP2900: File "/usr/lib/cups/filter/pstocapt" not available: No such file or directory E [12/May/2014:13:59:53 +0000] [Job 13] Unable to send data to printer. E [12/May/2014:14:04:53 +0000] [Job 13] Stopping unresponsive job. E [12/May/2014:14:06:37 +0000] [Job 14] Unable to send data to printer.


The comments in  on E.S.E leave an issue unresolved: What does one call the situation in which a taboo concept is referred to as being a specific case of a more general nonvulgar concept?  The specific example that I would like to address is the Hebrew verb לדעת. This verb has several meanings. One meaning is to have knowledge of. Another meaning is to have sexual relations with. One could argue that the latter is a what for the former?


What is an example of a non standard model of Peano Arithmetic?

According to , there is the "standard" model of Peano Arithmetic. This is defined as $0,1,2,...$ in the usual sense. What would be an example of a nonstandard model of Peano Arithmetic? What would a nonstandard amount of time be like?


pdfTeX error (font expansion): auto expansion is only possible with scalable fonts even with \usepackage[T1]{fontenc}

According to this question: , to get rid of the error, a scalable font must be loaded.   Package lmodern no longer seems available in MikTeX; all the "lm-something" package my repository offers are shown below:   Given that I install cm-super font family and add \usepackage[T1]{fontenc} to my document. But the error is still there.   MWE (excerpt from ):   \documentclass[12pt,letterpaper]{moderncv}        % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')  \usepackage[T1]{fontenc} %\usepackage{lmodern}  % modern themes \moderncvstyle{banking}                            % style options are 'casual' (default), 'classic', 'oldstyle' and 'banking' \moderncvcolor{blue}                                % color options 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black' %\renewcommand{\familydefault}{\sfdefault}         % to set the default font; use '\sfdefault' for the default sans serif font, '\rmdefault' for the default roman one, or any tex font name %\nopagenumbers{}                                  % uncomment to suppress automatic page numbering for CVs longer than one page  % adjust the page margins \usepackage{geometry}  \usepackage{import}  % personal data \name{My}{Name} \title{Curriculum Vitae}                               % optional, remove / comment the line if not wanted \address{my address, line 1, line 2, line 3, postcode}{}{}% optional, remove / comment the line if not wanted; the "postcode city" and and "country" arguments can be omitted or provided empty    %---------------------------------------------------------------------------------- %            content %---------------------------------------------------------------------------------- \begin{document} %\makecvtitle  Undergraduate electrical and electronic engineer completing the final year of a master's degree.   \end{document}   What do I do to make the error go away? Thanks. Your help is appreciated.   Update: I followed the step Ulrike Fischer suggested in  . Now it seems cm-super is not correctly installed (I see a .pk rather than a .pfb in the log) even though I do have it in MikTek Package Manager   I have refreshed FNDB and updated formats in MikTek Options (Admin) after installing cm-super.  Googling leads me to  , but I don't know how to follow the advice. Could someone please tell me how to execute M.A. solution "updating pdftex.map by running initexmf --mkmaps" in Windows MikTek 2.9? And what else have I missed?


Trying to upgrade to 18.04 from 16.04, no free space in boot partition. Tried to expand boot size according some instructions searched from the web but failed. See attached Gparted report and advise how to resize the boot.


I have to use implicit differentiation to find $\frac{dy}{dx}$ given:  $$x^2 \cos(y) + \sin(2y) = xy$$  I don't even know where to begin, I missed the class where we went over implicit differentiation, and because of that, I am completely stuck.   Thank you everyone.  Edit: I don't know how to make the equation look all nice and whatnot, so sorry about that


What am I doing wrong with my /give command?

I am working on an adventure mode map on the Nintendo Switch Bedrock Edition, and so I am trying to give myself a diamond pickaxe which can only break mob spawners and is unbreakable. I have currently:  /give @s diamond_pickaxe 1 0 {CanDestroy:["minecraft:mob_spawner"],Unbreakable:1}   and whenever I enter the command I get:      Line 1, Column 2 missing '}' or object member name.   I have gone off of a couple tutorials and this is the closest I can get to having it work.  Can anyone please tell me where the error is?


Upgrade from lubuntu version 4.13.0-46-generic to higher versions - how?

I have an old lubuntu system (4.13.0 update (see comments) 17.10), and I can hardly update any software, nor install new, because most repos are not there anymore. I simply want to upgrade, version by version, walk the long way to some modern version. When I try this:  sudo apt-get dist-upgrade   I get the answer  The following packages will be upgraded:   snapd waterfox   This is certainly not what I expect. I assume that I have made some mistakes, but I am clueless.  Is there any way to upgrade the system from this state of affairs?   I know that questions about old systems are not wanted here, but I hope this is treated as an obvious exception. If not, please tell men where I can get help other than here. Thanks!  update because asked to clarify why this question is not a duplicate: I do not want to install old versions of software on an old system. I simply want to upgrade the system. In the comments, I got a helpful answer (link to another question) of how to start the process. The information given below is, to my understanding, certainly helpful for others with similar questions.


What do superheroes with laser vision/sight see when using their ability?

Heroes such as Superman and Cyclops can produce lasers from their eyes (typically red). But I'm wondering what exactly do they see when their abilities are active. My guesses are:   A black void/complete whiteness (unlikely as they wouldn't be able to aim). They don't actually see the lasers produced, but they feel their effect and can thus easily focus it. A colorful overlay with the laser's color overlaps the entirety of their view.   So far I've not found evidence to support any of these. In fact I can't seem to find any medium where we have a character project beams from their eyes in first person.  EDIT: Just to clarify why this is different than the question exclusively regarding Superman's vision. Superman's ability is officially called "heat vision", and there's an implication that it's not even visible to other people, but is drawn simply to show readers. This is usually how it's depicted in older comics, and the only reason I'm even mentioning Superman in my post is because in modern comics he projects full red lasers, including in the movie, which are definitely visible to the naked eye.


**Show that $S_n$ is isomorphic to a semidirect product $C_2\ltimes A_n$ ($n\geq2$).**$$\text{---------------------------}$$     The solution boils down to showing that $S_n=A_nC_2$, $A_n\unlhd S_n$ and that $C_2\cap A_n=e$.  I show this below.   Assuming we can do that, then by definition, we have $S_n\cong C_2\ltimes A_n$.$$$$     By the index 2 theorem $A_n\unlhd S_n\implies C_2A_n\le S_n$.  By the fact that all of $A_n$ consists of even functions and the identity and the fact that $\# C_2=2$ therefore can contain at most a transposition which is odd we get $C_2\cap A_n=1$.  Finally $C_2\cap A_n=1$ gives $\#C_2A_n=2n!/2=\#S_n\implies S_n=C_2A_n$.  $$$$Does this seem correct?


I have a late 2013 27 inch iMac with a 3 TB Fusion Drive with macOS Sierra installed.  I partitioned my drive right down the middle, so 1.5 TB on either side.  When I went into Disk Utility mode to unpartition it, there was no minus sign to do so. I've tried resizing it, booting in Recovery Mode and erasing and restoring the whole drive and nothing works.  I'm currently trying Internet Recovery Mode while unmounting with the terminal but when my "diskutil list" shows up with 19 drives!  Not sure where all these are from but I just want my drive back to the whole 3 TB drive if possible.  I've tried diskutil unmountDisk command as well as Force unmount... it will unmount a few of them, but then crash after I force one that doesn't unmount regularly...  And yes, if you haven't guessed it, I am completely new to all this terminal stuff  ...


Accepted way to abbreviate cities that have "Saint" in their name

My first question here, so I'm not sure if this OT or not, so please bare with me.  Background: I don't live in US. I'm working with some data that I'm pulling from . Sometimes, I'm getting a city name as St. John and sometimes as Saint Ann.   So my question is, is there an accepted way on how people write a US city names which starts with Saint or is this just some random thing (or just specific to AdWords maybe)?  I'm asking this, because if for example I'll get both St. John and Saint John in the same file, should I consider them the same or should I be suspicious?


What does the syntax "int x = (2, 3);" mean ? Any special usage?

I was just doing some small C problems and came up with this,  #include <stdio.h> void main() {     int k = (3, 4);     printf("%d\n", k); }   Could someone explain where is the syntax, (3, 4) used for ? Since when does it come from ? I think the problem should be asked before but I don't know how to google for it.  BTW, the above is my simplified version. The origin code is below  #include <stdio.h> void main() {     int a = -5;     int k = (a++, ++a);     printf("%d\n", k); }


How can I play user-provided music stored on the phone inside my game?

I am creating a car game. Is any way to play the music stored on the phone inside the game? I'd like the player to choose files that are already on their device and hear them played in the game.  For example, in GTA Vice City game there was a folder named Music, and if we placed songs in there they would play on the car radio while we're driving around inside the game. If we want to switch the songs around, we can do so. how can I do the same in Android and iOS?  I am using unity 5.2, C#.


Find an irrational number $n$ such that $n^n$ is a rational number.

Find an irrational $n$ such that $n^n$ is a rational number.   I have some tries to find this... I have tried so much numbers but no success. How can I find them.


What can be said about the number of topologies on an infinite set?

I read somewhere that for $\mathbb{R}$, the number of topologies is indeed the same as the obvious upper bound, namely $2^{2^{|\mathbb{R}|}}$. Does the same hold for all infinite sets $X$, i.e. is the cardinality of the set of topologies on $X$ equal to $2^{2^{|X|}}$? How would one prove it?


How could Emperor Palpatine afford having such a massive fleet of Star Destroyers?

How could Emperor Palpatine afford having such a massive fleet of Star Destroyers built on Exegol? One could theorize that it was done for free by The Sith Eternal (his fan club) but there's the price of the parts they need. Is there an in-universe explanation of the origin of such immense resources?


Place/spawn objects along curve with randomized scale and rotation?

Is possible to place/spawn objects along curve with randomized scale and rotation? I'm looking for lazy way to create flowers and randomized procedural patterns. Thanks