In Linear Algebra by Friedberg, Insel and Spence, the definition of span (pg-$30$) is given as:     Let $S$ be a nonempty subset of a vector space $V$. The span of $S$,   denoted by span$(S)$, is the set containing of all linear   combinations of vectors in $S$. For convenience, we define   span$(\emptyset)=\{0\}$.   In Linear Algebra by Hoffman and Kunze, the definition of span (pg-$36$) is given as:     Let $S$ be a set of vectors in a vector space $V$. The subspace   spanned by $S$ is defined to be intersection $W$ of all subspaces of   $V$ which contain $S$. When $S$ is finite set of vectors, $S = \{\alpha_1, \alpha_2, ..., \alpha_n  \}$, we shall simply call $W$ the   subspace spanned by the vectors $\alpha_1, \alpha_2, ..., \alpha_n$.   I am not able to understand the second definition completely. How do I relate "set of all linear combinations" and "intersection $W$ of all subspaces"? Please help.  Thanks.


sudo apt-get update failing - "could not open" list file due to "permission denied"

For the last week or more, running sudo apt-get update culminates in error:  Reading package lists... Done E: Failed to fetch http://au.archive.ubuntu.com/ubuntu/dists/xenial/main/dep11/Components-amd64.yml   Could not open file /var/lib/apt/lists/partial/au.archive.ubuntu.com_ubuntu_dists_xenial_main_dep11_Components-amd64.yml.gz - open (13: Permission denied) [IP: 202.158.214.106 80] E: Failed to fetch http://au.archive.ubuntu.com/ubuntu/dists/xenial-backports/main/dep11/icons-64x64.tar  Could not open file /var/lib/apt/lists/partial/au.archive.ubuntu.com_ubuntu_dists_xenial-backports_main_dep11_icons-64x64.tar.gz - open (13: Permission denied) [IP: 202.158.214.106 80] E: Some index files failed to download. They have been ignored, or old ones used instead.   Entering either of the 2 specified urls into a browser address bar results in a 'File not found' (404) error - but if I append .gz to both addresses, then the respective files can be downloaded.  However, having downloaded the 2 files, I then don't know how (or if) I can utilize them.  Seeking advice on how best to proceed.


Real numbers equipped with the metric $ d (x,y) = | \arctan(x) - \arctan(y)| $ is an incomplete metric space

I have to show that the real numbers equipped with the metric $ d (x,y) = | \arctan(x) - \arctan(y)| $ is an incomplete metric space.  Certainly, I have to search for a Cauchy sequence of real numbers with respect to given metric that must not be convergent. But I am unable to figure out that.  Can anybody help me with this.   Thanks for helping me.


Redirect apache configuration not working

I'm a newbie at this server stuff so please be patient. What I want to do is very simple. I have the following subdomain that points to my server  (this is a dummy, not a real link). However this points to my server and I'd like it to redirect to . In order to do this I'm modifying the virtual host configuration for my server with the following lines:      RewriteEngine On     # This will enable the Rewrite capabilities      RewriteCond %{HTTP_HOST} ^register.example.com$     RewriteRule /(.*) http://register.example.com/registration  [R,L]   When doing this I get the following error fromo both Firefox and chrome:  Firefox has detected that the server is redirecting the request for this address in a way that will never complete.   Can anyone tell me what I'm doing wrong and how to fix it?  EDIT:  I saw my infinite mistake loop. But my problem is still not solved. I still need to send  to  and I have not I idea how to do it as everything that I have tried has either failed or simply done nothing.   Here is my lastest attempt (which does nothing)  RewriteRule ^http://register.conference.com$ http://register.conference.com/lascas  [R,L]   I've read the supposed post with the duplicate answers but I still don't see a way to do what I need.


I want Ubuntu for my Laptop? Should I Use the PC version?

I am not sure if i should use the PC version. I am downloading it anyway.


Transparent image planes near each other are black

i am making a plant and i have run into some problems. I have here some grass blade texture:     And since i want the whole pot to be filled with grass blades, i duplicated them until it filled the whole pot:     but as you can see, some of the image planes look like they have a black background:     Here is my node setup:


Does value passed to JavaScript function is value type (sometimes)

While using a delay in a loop i am passing the loop index like below  for (var t = 0; t < 3; t++) {     var t1 = {};     t1['a'] = String(t);     setTimeout(function () {         console.log("Step ", t1);     }, 1000); }   Edit : Here t1 is a local variable i.e. it is scoped for one iteration only.  And the console output is   Step  Object {a: "2"} Step  Object {a: "2"} Step  Object {a: "2"}   And when i wrap the for loop content with a function like below  var func = function (index) {         var t1 = {};         t1['a'] = String(index);         setTimeout(function () {             console.log("Step ", t1);         }, 1000);     }; for (var t = 0; t < 3; t++) {     func(t);    }   The console output is   Step  Object {a: "0"}  Step  Object {a: "1"}  Step  Object {a: "2"}   So, in first example the value is passed by reference and in second it is not.   Can anyone like to explain this behavior.


Do I need a visa to visit Hong Kong for less than 7 days if I'm a Chinese citizen flying to and from the US?

I am a Chinese citizen (US permanent resident) planning on going to Hong Kong for 7 days, flying to and from Chicago, and originally had found this stipulation:      Chinese passport holders who are in transit through Hong Kong from   another country, region or territory may be granted a stay of 7 days   without the prior need to obtain an entry permit, with the condition   of possession of valid Chinese passport and confirmed onward air   tickets for the overseas journey. If Chinese passport holders will go   for mainland China or Macau via Hong Kong, onward air tickets are not   compulsory.   Seeing this, I assumed I would need a visa because I am not going to a third country, and hence would not be considered transit. However, after sending in my visa application to a travel agency, they sent it back saying it was returned by the Chinese consulate who claimed I do not need it if staying for 7 days or less. I am a little skeptical because of previous questions here that indicated I would need it for entry, and that I don't have anything in writing for the actual consulate.  Does anyone here have this experience and can confirm or deny that I do NOT need a visa? And what documents do I need to bring? Just my flight back home to the US?


Prove that the intervals (0, ∞) and [0, 1] have the same cardinality

Help with this question would be greatly appreciated. At the moment, I cannot find an f(x) to map these sets.  Also I'm just wondering to solve this problem, since '[]' brackets are used, do the numbers 0 and 1 have to be mapped to from the set (0, ∞), because that really makes the question quite tough, otherwise something like 1/Squareroot(x+1)  p.s. can someone link me the MathJax formatting, cant find it  edit: (0, ∞) is not the reals as it does not go to negative  Thanks!


Replace hyphenation character by a backwards arrow

I am setting e.g. directory names in a typewriter font. These names can become long. With the hyphenat package, I enabled hyphenation. Now, what is missing, is that the hyphenation character is replaced e.g. by a backwards oriented arrow.  Thus, what I want to do is something like  \usepackage[htt]{hyphenat} \newcommand{\origttfamily}{}% \let\origttfamily=\ttfamily % \renewcommand{\ttfamily}{\origttfamily \hyphenchar\font\ensuremath{\hookleftarrow}} \begin{document}   \texttt{/etc/really/long{\fshyp}directory{\fshyp}name/} \end{document}   However, \ensuremath{\hookleftarrow} does not work in this case - it is not a single character.  Can somebody point me towards a solution? Thanks a lot!  (moved from )


Can anyone help me out in writing batch apex that will create or update records.I never worked on batch apex so struggling here I have two objects  1) SIS_Staging__c  2) Contact  Both objects are having same field Siscode__c, so on inserting records in SIS_Staging__c, I need to check if any contact records are having same Siscode__c or not, if yes then I need to update else I need to create Contact.  I tried below code but when I run batch apex in anonymous window then I am getting below error.  "Constructor not defined: [BatchSISstagingObject].()"  My code is below.  global class BatchSISstagingObject implements Database.Batchable<sObject>{ List <SIS_Staging__c> mapSisobject = new List <SIS_Staging__c> (); List <Contact> contactlist1 = new List <Contact> ();  global BatchSISstagingObject(List <SIS_Staging__c> sisobjectUpdate) {     mapSisobject=sisobjectUpdate;  }  global Database.QueryLocator start(Database.BatchableContext BC) {     return DataBase.getQueryLocator([SELECT Id, SIS_Student_ID__c                                      FROM Contact                                     ]); } global void execute(Database.BatchableContext BC , List <Contact> contactlist) {     for (SIS_Staging__c acct : mapSisobject){          for (Contact con : contactList){             if (con.SIS_Student_ID__c == acct.Name){                     contactlist1.add(new Contact(                         Id = con.Id,                         FirstName = acct.First_Name__c,                         LastName = acct.Last_Name__c                        ));                 }         }        }       update contactlist1; }  global void finish(Database.BatchableContext BC){  }   }


Why do I have Apple Developer tools in /private/var/folders? Can it be removed?

Some time ago I went through cleaning of my mac and I have removed old developer tools from Library, which were for old iOS versions. I no longer need them, nobody uses them, I have removed them and reclaimed some space.  Today, however, I cam across the com.apple.DeveloperTools located in /private/var/folders. It's around 40GB of uselessness.   How come it ended up there? Can I safely remove it?    Thanks


Why does Van Kampen Theorem fail for the infinite earring space?

space has notoriously complicated fundamental group, and is essentially not as simple as the wedge sum of countably many circles whose fundamental group is straightforwardly given by Van Kampen Theorem. However, I'm still struggle to understand why Van Kampen fails in this case. I can, however, largely grasp the topological difference between the two. For instance, the wedge point of countably many unit circles is locally contractible while that of the Hawaiian earring is not. But, when checking the Van Kampen Theorem given by Allen Hatcher, I really can't find anything wrong with the earring:  Path-connectedness is trivial. It really suffices to check the red-boxed condition. Of course, for each circle, say $C_n:=\{(x-1/n)^2+y^2=1/n^2\}$, in the earring space, we can always find an open subarc $L_n$ that deformation retracts onto $(0,0)$, the wedge point. So why isn't the theorem applicable?


Visa requirement for Bahamas Cruise for L1 Visa holder

We hold an L1 visa (Citizens of India) and are planning a cruise to the Bahamas this summer. Are there any Visa requirements to enter Bahamas.


How to have a new recalculated random pattern? This one is the same translated everywhere.  Edit  I perfectly understand that the pattern is calculated once and drawn several times after.  My question is, how to change this: use the mechanism of the pattern to paint an area with, but to force a recalculation of the pattern at each drawing. For an usual pattern it is useless, but in this case one could extract the code and switch the order and insert the pattern calculation and drawing inside the loop that fill the area: a sort of pattern-bis that one could use as normal pattern syntax.  I don't know TeX programming enough to do that if it possible. Of course such a work will deserve a bounty !    \documentclass[tikz,margin=3pt]{standalone} \usetikzlibrary{patterns}  \pgfdeclarepatternformonly{Rnd} {\pgfpointorigin}{\pgfpoint{1cm}{1cm}} {\pgfpoint{.5cm}{.5cm}} {\foreach \i in {1,...,100} {%     \pgfpathcircle{%         %\pgfpoint{.25cm}{.25cm}}{.4pt}         \pgfpoint{rnd*.5cm}{rnd*.5cm}}{.25pt}}     \pgfusepath{fill} }  \begin{document} \begin{tikzpicture}  \draw[pattern=Rnd] (0,0) rectangle (5,5) ; \end{tikzpicture}  \end{document}


How to keep directory in git but not track its changes?

Ok, so I'm new to git. I've just created a project, initialized it as a repository and linked it to bitbucket. I'm using NetBeans, and whenever I create a project with NB, it includes a directory called nbproject. I added the directory to .gitignore but the thing is, when a collaborator clones the repo, NB doesn't recognize it as a project because of the missing nbproject folder. Now, this folder, because is specific to each developer, shouldn't have changes tracked. Even when I tried to clone the repo from my laptop I couldn't open the project (I had to copy the nbproject folder from another project into the cloned repo and this is a waste of time). How can I initially push a directory so everybody can open the project without problems but then not track its changes? Sorry for my english. Also, if you could recommend a book, course, tutorial or any resource to learn git, that would be really helpful, thanks. EDIT: I also read that if i write to .gitignore myfolder/ then it will ignore all folders with that name at any level. What if i want a specific myfolder folder to be ignored?


What is the latex code for writing a condition under the subscript of a sum?

Can anyone give me the latex code for writing a condition under the subscript of sum as in the following image?


How to prove that this graph is non-planar?

I'm having trouble proving that  is non planar, I think that I have to look for a subdivision of the graph $K_{3,3}$ using Kuratowski's theorem, can someone give me any tips to find this?


Combining neighbor polygons (NOT touching) making one using JTS/GeoTools?

This question is similar to:    and    but need to do this programmatically with JTS.  This question is not for overlapping polygons or touching polygons but for adjacent polygons that is the difference when they don't touch but next to each other. the answer to this question  , worked for intersecting..but not for adjacent.  I am trying to  implement this using JTS/GeoTools.. i found the .dissolve(..) thinking that would do the trick but it is not working.  The original GeoJson( //loadAdjacentGeoJson() )     Updated Solution:   for (GeoJsonPolygon geoJsonPolygon : geoJsonPolygonList) {                 Coordinate[] coordinates = toCoordinateArray(geoJsonPolygon);                 SimpleFeatureBuilder simpleFeatureBuilder = new SimpleFeatureBuilder(simpleFeatureType);                 simpleFeatureBuilder.add(inflate(geometryFactory.createPolygon(coordinates)));  //add inflated polygons                  SimpleFeature simpleFeature = simpleFeatureBuilder.buildFeature(Integer.toString(index));                 simpleFeature.getUserData().put("zipcode", postal.getZipCode());                 index = index + 1;                 geometryList.add((Geometry)simpleFeature.getDefaultGeometry());             }          Object obj = geometryFactory.buildGeometry(geometryList);          GeometryCollection geometryCollection = (GeometryCollection) obj;          Geometry union = geometryCollection.union();  //perform union          LOGGER.info(new GeoJsonWriter().write(geometryCollection)); //shows inflated polygons with overlap          LOGGER.info(new GeoJsonWriter().write( deflate( union ))); //deflate back.   inflated polygons so union will work.:    inlate/deflate methods:  private Geometry deflate(Geometry geom) {         BufferParameters bufferParameters = new BufferParameters();         bufferParameters.setEndCapStyle(BufferParameters.CAP_ROUND);         bufferParameters.setJoinStyle(BufferParameters.JOIN_MITRE);         Geometry buffered = BufferOp.bufferOp(geom,-.0001, bufferParameters);         buffered.setUserData(geom.getUserData());         return buffered;     }      private Geometry inflate(Geometry geom) {         BufferParameters bufferParameters = new BufferParameters();         bufferParameters.setEndCapStyle(BufferParameters.CAP_ROUND);         bufferParameters.setJoinStyle(BufferParameters.JOIN_MITRE);         Geometry buffered = BufferOp.bufferOp(geom,.0001, bufferParameters);         buffered.setUserData(geom.getUserData());         return buffered;     }   results:


Why array subscription operator works both ways?

Why does C++ allow the following statement?     int a[10] = { 0 };   std::cout << 1[a] << std::endl;   std::cout << a[1] << std::endl;   Both lines print zero and no compiler warning is generated. Shouldn't 1[a] be illegal as 1 is not an array and a is not an integer type.   Code example :


What should downhill technical stance look like?

Today I was riding a XC mountain bike down a semi-steep mountain with some big bumps and tight turns. I had me seat all the way down, was standing with knees bent, and correct stance like it should be. It worked for a little bit until I came to a turn and I felt I was leaning way too far back so I pulled myself forward to fix my stance but for some reason I went flying somewhat sideways off the bike. I was also braking a little throughout the ride but I'm pretty sure I use them correctly. What was I doing wrong? How can I prevent this. This has happened before and it's really hard to recover from while riding.


Given two disjoint closed sets, prove that there exist disjoint open sets containing the closed sets

Given two disjoint closed sets, $F_1$ and $F_2$ in $\mathbb{R}$, prove that there exist disjoint open sets $G_1$ and $G_2$ such that $F_1 \subset G_1$ and $F_2 \subset G_2$    The answer is not trivial in that the distance between $F_1$ and $F_2$ could be going towards zero.


What is the correct hyphenation of the sequence: "diffusion time dependent"?

The sentence in which I use it similar to the following:  From this, it is possible to define a diffusion-time-dependent dimension.  I am not sure if the double hyphenation is correct or not, but I cannot rephrase the sentence with other words, so, please, don't suggest particular changes. Furthermore, "diffusion time" is often found in literature without a hyphen, so maybe "diffusion time-dependent" is the correct choice, but it seems a bit wrong to me... Could you explain what are the general rules for cases like this?


pgfplots stacked bar plots with too little space for some "nodes near coords"

When creating stacked bar charts with pgfplots, how can I avoid printing those (and only those) "nodes near coords" if there is too little space? The following MWE illustrates the problem:  \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{width=7cm,compat=1.12} \begin{document} \begin{tikzpicture}  \begin{axis}[   ybar stacked,ylabel={participants},   symbolic x coords={tool1, tool2},   xtick=data,x tick label style={rotate=45,anchor=east},   nodes near coords,clip mode=individual] \addplot+[ybar] plot coordinates {(tool1,1) (tool2,4)}; \addplot+[ybar] plot coordinates {(tool1,5) (tool2,0.2)}; \legend{never,rarely} \end{axis} \end{tikzpicture} \end{document}   There is too little space for the node "0.2", so how could I avoid printing it, but keeping all the others?


Associativity of addition in integers modulo $n$.

My proof that addition in $G =\mathbb{Z}/n\mathbb{Z}$ is associative is as follows: Proof：Before taking (mod $n$), we add members of $G$ in the same way as members of $H=(\mathbb{Z}, +)$ where we know that addition in $H$ is associative. Since taking (mod n) does not affect this addition, the addition in $G$ is also associative. Does this proof seem like enough? I think I'm right but I often risk falling short in my proofs at times.


Should I really pay off my entire credit card balance each month or should I maintain some balance?

I've heard two conflicting things: One is that you should pay your entire credit every month, and the other that you should maintain roughly %30, %50 (it varies by who you ask) of your available credit still indebted, but pay off the minimum amount every month.  Is one of those answers universally true? Does it depend on the credit card?  And two more tangentially related questions: I've heard that if you're late in paying bills that are unrelated to the credit card (for example electricity or cable) then it doesn't affect the credit history. Is that right?  And -- do you have to ask for more available credit or does it happen automatically? I currently have $500 (and have had for over a year); is there a special thing they're looking for take to me from $500 to $1000?


Is it proper to use math-mode inside of table cells?

When making a table, should number values inside of table cells be entered in the math environment? Or is that unnecessary?


I have a SWF on SkyDrive in public folder. How can I get the link to this file so that using  tag it will be directly rendered on the webpage. I was unable to get such link that will allow to render the file. I tried Embed link. It showed the file icon instead of rendering. When clicked it redirected to the SkyDrive folder.  However I was able to do this on DropBox since it provides direct link to the file instead querying with resource id as in case of SkyDrive:  <html>    <head>    </head>    <body>       <embed src="https://dl.dropbox.com/u/93470848/helloworld.swf" />       <embed src="https://skydrive.live.com/embed?cid=B9A9203330B6DFFE&resid=B9A9203330B6DFFE%211085&authkey=AIRyW-raOQXH2-g" />     </body> </html>


Completely validate URL with or without http or https

I've done some researching on validating URLs in PHP and found that there are many different answers on StackOverflow, some better than others, and some very old and outdated.  I have a field where users can input their website's url. The user should be able to enter the URL in any form, for example:  example.com www.example.com http://example.com http://www.example.com https://example.com https://www.example.com   PHP comes with a , however, it marks the URL as invalid if it doesn't have http://.  How can I validate any sort of URL, with or without http:// or https://, that would ensure the URL is valid?  Thanks.


Is it possible to change the animation length of many Rigid Bodies?

I have made a scene with many Rigid Body objects (1500 rectangular solids), which all operate correctly. However I now want to lengthen the animation period from the default 250 frames to a more reasonable range of around 2000. The issue I am having is the timeline continues like normal, but the Rigid Body animation hangs on the 250th frame. Is it possible fix this issue, and preferably be able to to change all of these objects at once?


$A \setminus B \cup C = A \setminus (B \cup C)$?

$A \setminus B \cup C$ or $A \setminus (B \cup C)$?  Sorry as this is a very soft question, but I couldn't find the answer anywhere. Are these two things generally considered the same?


What's the difference between this:  List<String> list = new LinkedList<String>();   and this?  LinkedList<String> list = new LinkedList<String>();


I'm trying to calculate the following series: $$ \sum_{n=1}^\infty \frac{1}{3^n-2^n}=\frac{1}{3-2}+\frac{1}{9-4}+\ldots $$ or the general case: $$ \sum_{n=1}^\infty \frac{1}{(x+1)^n-x^n} $$ I have tried some methods but still have no idea, is there any way to solve such series?


Is it possible to know how many competing answers I upvoted?

I am trying to achieve the . I wonder if it's possible to know how many times I upvoted competing answers until now?


What DPI should be used for what situations?

I've been seeing the word 'DPI' pop up quite a lot when I export my work out in Photoshop and Illustrator. While I know that DPI stands for 'dots per inch', and that if you have too low of a DPI on an image, heavy pixellation occurs if you try to zoom in, what would be the optimal DPI for what situations?  For example (Situations):   Exporting a print A4 design Website layout Logo (Website only - Roughly smaller than the current SE Graphic Design one.) Logo (Scaling up and down - From business cards to large banners.)


$$\tt{tan x =tan(x+10^0)tan(x+20^0)tan(x+30^0)}$$ This equation asked from a genius student of my class . I think and solve it  like below . My idea based on $cot(x+30) tan(x)=tan(x+10)tan(x+20)\\15=\dfrac{0+30}{2}=\dfrac{10+20}{2}\\so $   $u=x+15^0$ and substitute $u$ in equation . Then my genius student asked for a other Idea to work with this .I show my work , but I can't go on ...  please  help me to find an Idea . thanks in advanced .


How to ask a question when you want to answer yourself?

I have seen a few times that this website encourages asking questions for which you already have an answer and to post this answer also. I did exactly this on stack overflow providing the code for a certain function.  I must admit that my question was not perfect as "I was not showing what I had tried". Obviously what I had tried was already the solution to the problem, so I posted it only in the answer itself.  Some people have downvoted the question probably because of not being the kind of question of somebody who has really made an effort to find a solution by himself. Therefore my prize for trying to share my code is losing reputation and I feel that discouraging.  Could you point me towards any successful example of somebody answering his own question to see how to do it? Could you point me out what is so awful about mine?   Finally, what do you think about somehow locking the voting of the question in the situation in which the user is also answering by himself? I mean that in order to downvote such question the voter is forced to notice that the asker has answered by himself, not trying to get an advantage out of other users in exchange for nothing.


If both radio waves and gamma rays can travel through walls

and they are on opposite ends of the electromagnetic spectrum, then why can't light travel through walls which is right in the middle of the spectrum?    This question has already been asked . However, I am not entirely satisfied by the answer given on that page which relies on fanciful analogies and metaphors of ants, elephants etc. I am looking for a better explanation.    I think the crux of the matter, and my dilemma, relates to formula for . This is a well known formula used to explain the fact that low frequency waves have more penetration than high frequency waves.     But then how come gamma waves have such high penetration?     Are there some assumptions behind derivation of this formula which break when we consider very high frequency waves?    Or, are there some new factors that need to be taken into account as we move into the high frequency regime?     If given a radio source and a gamma source of equal intensity, then will the radio source have more penetrability than the gamma source per formula for ? If not, why not?  Thanks for all those who posted answers to this question. The answer being proposed is that light waves have the right energy to interact with atoms and electrons in the matter and thus get absorbed. This is a quantum mechanical explanation. The skin depth, on the other hand, is derived purely on basis of classical electrodynamics. So I see there are two mechanisms at work here? Does anyone agree with this? If so, the net absorption will be the sum of absorption due to skin effect + absorption due to atomic physics. Now if we take gamma rays - agreed there will be no absorption due to atomic physics but there should be absorption in accordance with skin effect. And so I come back to original problem.


How to check if $n^2$ will square root evenly without square rooting $n^2$

How can I easily check if the square root of a number is a whole number and not a decimal without computing the square rood of said number. I could square root the number ((n^2)^1/2 or sqrt(n^2)) but I do not want to.


Uneven movement on camera following a path.

I render a short movie. I set the camera to the circle curve to make it fly in circle. The problem is after render, the camera is a little shaky. Can anyone help me? Thanks first.


What is the Fourier Transform of $f'(x)/x$?  Is this even possible to find? It's deceptively simple looking.


Will the topbar be added to the old User Profile page?

I use the following page as my 'home page' for Stack Exchange  I believe this is the user profile page - but in any case, it seems to be a good page for people to link to when they want to know about my over SE "creds." My question is this - is the new topbar scheduled to go to that page, or is this profile page heading towards deprecation?  If it is scheduled to go, what is the ETA? (Not pushing the schedule, just curious what it would be.)


I can't solve this problem; it may be easy though.  Is the number $2^{1093} -2$ a multiple of $1093^2$?  I do appreciate any kind of help.


Switching from Ubuntu 18.04 to Windows 10 messes with clock

When I reboot from using Ubuntu 18.04 (dual-installed with Windows 10) and load into Windows, the clock will almost always be 1 hour behind, irrespective of daylight savings. Sometimes it's 13 hours behind instead, showing AM when it's PM and vice-versa. Any idea what could be wrong here? If I turn the auto-set feature off and back on again it corrects itself, but I frequently forget, which has led to some awkward situations.


not knowing how(Linux command) to restart oracle database 12.1.0 server

Our developers got below error:  PGA memory used by the instance exceeds PGA_AGGREGATE_LIMIT" ERROR LOG: Job aborted due to stage failure:  Aborting TaskSet 0.0 because task 0 (partition 0) cannot run anywhere due to node and executor blacklist. Most recent failure: Lost task 0.2 in stage 0.0 (TID 2, w3.cdhnode1.modak.com, executor 7): java.sql.SQLException: ORA-04036: PGA memory used by the instance exceeds PGA_AGGREGATE_LIMIT ORA-06512: at "SYS.XMLTYPE", line 138   I am using below commands to increase PGA_AGGREGATE_LIMIT but it needs to restart the oracle database. I am not knowing how to do it I checked all the content in google but couldn't find any. QL> show parameter pga  NAME            TYPE                      VALUE ----------------------- ------------------------- ----------------------------- pga_aggregate_limit     big integer               2G pga_aggregate_target    big integer               120M SQL> alter system set pga_aggregate_limit=1G scope=spfile; System altered. SQL> alter system set pga_aggregate_target=1G scope=spfile; System altered.  Please guide me to restart oracle database.


When I use ß in headings - which I want to be in small caps - it gets replaced by a double S. Is there a way to still have a ß there, which is also the same height as the other letters?  Just to clarify: I've modified the \sectionlinesformat this way so that I get small caps in the headers while displaying the text normal in the toc.  MWE:  \documentclass[10pt, oneside, numbers=noenddot]{scrbook}  \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{microtype} \usepackage[osf]{newpxtext} \usepackage[ngerman]{babel}  \setkomafont{chapter}{\huge\fontfamily{qpl}\selectfont\normalfont\lsstyle\scshape} \setkomafont{section}{\large\fontfamily{qpl}\selectfont\normalfont\lsstyle\scshape}  \renewcommand*{\sectionlinesformat}[4]{#3 \MakeLowercase{#4}}  \addtokomafont{chapterentry}{\normalfont\lsstyle\scshape}  \begin{document}     \tableofcontents     \chapter{größe}     \section{Größe} \end{document}   EDIT: I've already tried the solution from , but this didn't work.


EU flight compensation distance for connecting flight

I recently had a flight from Valencia to London, going through Düsseldorf, cancelled. According to EU regulations there are different levels of compensation for flights below and above 1500 km in distance. I assume that this distance refers to start and end airport regardless of connection. Is this the case? I haven't found a proper definition online. Here, it would make a difference as VLC to LHR is around 1350 km, but the complete itinerary is above the 1500 km threshold.


what is the purpose of the -I option of the xargs command?

I looked into the integrated manual of the xargs command, where the -I option is explained. And though I read the few lines repeatedly, I can not make any sense of it:     -I replace-str                 Replace  occurrences of replace-str in the initial-arguments with names read from standard input.  Also, un‐                 quoted blanks do not terminate input items; instead the separator is the newline character.  Implies -x  and                 -L 1.   Could you explain this to me with other words or give me a jump start by an example, which shows the importance of this option?


Generate a custom formated string with python

I have a Javascript code that generates a string (similar to uuid) string  Here it is the js code:    var t = "xxxxxxxx-xxxx-xxxx-xxxx-xxxx-xxxxxxxx"   , i = (new Date).getTime(); return e = t.replace(/[x]/g, function() {     var e = (i + 16 * Math.random()) % 16 | 0;     return i = Math.floor(i / 16),     e.toString(16) })   How can I generate this string with python?


Is there a way to align the view to a face normal?

Often when I am modeling I would like to align the view straight on to a face, perpendicular to the normal.  Is there a way to do this?


Probability question with interarrival times

(Why did the chicken cross the road?) A chicken wants to cross a single-lane road where the cars arrive according to a Poisson process with rate $\lambda$. She needs at least $k$ minutes to cross the road safely, so she will have to wait until she sees a gap of at least $k$ between the oncoming cars. If the gap between the car that just arrived and the next one is at least $k$ then she starts crossing the road immediately. Let $T$ denote the random time she needs to wait by the road.  Find the expected time needed to cross the road.


Show all $n\times n$ matrices which $AB=BA$ have a common eigenvector

If $S$ is the set of all complex $n \times n$ matrices and for any two arbitrary $A$ and $B$ in $S$ we have $AB=BA$ then all matrices in $S$ have a common eigenvector. I can show the result for two digonalizable matrix. But I don't know how to show that for all matrices in $S$. Also there is no condition of being digonalizable in this question.


$\gcd (ca, cb) = \gcd (a, b)c$ if $c > 0$

Let $\gcd (a, b) = d$. So, $ax + by = d$ for some $x, y$. Then $(ca)x + (cb)y = cd$. Thus, $\gcd (ca, cb) = cd = \gcd(a, b)c$.  Does it work?


Firstly, I apologise if my thinking is completely incorrect - I am by no means a physicist (yet!), I have included layman illustrations to hopefully assist in explaining my thinking.  I am imagining the big bang to be, for lack of a better word, an explosion, thus the universe to be progressively expanding:    Therefore, to me it seems logical to suggest that there is an edge.  If this is the case, then is it reasonable to suggest that explosion + edge = 'bright edge'? Where light projects in all directions at the edge, not just outwards into the 'nothingness'.     So, this brings me to my question: why, when someone looks deeply enough 'at the edge' do they see an absence of light?   Again, apologies if I'm jumping to irrational conclusions & am way off.


Problem  Prove that if $f \in C^1([0, \pi])$ with $f(0)=f(\pi) = 0$, then  $$ \int_0^\pi |f|^2 dx \le \int_0^\pi |f'|^2 dx.$$  I want to prove it using Fourier sine series of $f$. Let $f \sim \sum_{n=1}^\infty A_n \sin nx$ be Fourier sine series of $f$. (obtained over $(-\pi, \pi).$) By Parseval's theorem, $ \int_0^\pi |f|^2 dx = \frac{1}{\pi} \sum_{n=1}^\infty |A_n|^2$. If $\sum_{n=1}^\infty |A_n| < \infty$, series converges uniformly so  $$f' = \sum_{n=1}^\infty n A_n \cos nx.$$ Thus, $\int_0^\pi |f'|^2 dx = \frac{1}{\pi}\sum_{n=1}^\infty |A_n|^2 n^2$ so the inequality holds. However, there is no assumption that $\sum_{n=1}^\infty |A_n| < \infty$. My question is that whether the series of $f$ converges uniformly. Is the equation $f' = \sum_{n=1}^\infty n A_n \cos nx$ valid? At least, I want to know that whether applying Parseval's theorem to conclude $\int_0^\pi |f'|^2 dx = \frac{1}{\pi} \sum_{n=1}^\infty n^2|A_n|^2$ is possible.


For $a,b,c>0$. Prove that $$\frac{1}{\left(2a+b\right)^2}+\frac{1}{\left(2b+c\right)^2}+\frac{1}{\left(2c+a\right)^2}\ge\frac{1}{ab+bc+ca}$$    Outside $a=b=c$ I can't exploit what from it


I would like to execute the command gedit file.txt as a root with sudo e.g.:  sudo gedit file.txt   should ask me for a root password.  Currently, typing sudo gedit file.txt results in:  [sudo] password for currently_logged_in_user:   After typing the password, it results in:  currently_logged_in_user is not in the sudoers file. This incident will be reported.   So I have to use su root gedit file.txt instead which is inconvenient.


I found the solution of series on Wolfram Alpha   for $\alpha = 1$  $\sum\limits_{k=1}^{n/2} \left(\frac{1}{\left(2k-1+2^{1/\alpha}\right)^\alpha} - \frac{1}{\left(2k+2^{1/\alpha}\right)^\alpha}\right)=\frac{1}{2} \left(-H_{\frac{n}{2}+1} + H_\frac{n+1}{2} -1 + \text{ln}(4)\right)$  Can someone tell how to prove this in the form of Harmonic numbers?


What is the proof of permutations of similar objects? I know the formula, but I cannot figure out how to derive it!  permutations of similar objects The number of permutations of $n=n_1+n_2+\dots+n_r$ objects of which $n_1$ are of one type, $n_2$ are of a second type, $\dots$ , and $n_r$ are of an $r$th type is  $$\frac{n!}{n_1!n_2!...n_r!}$$


How to find specific file between specific date ranges in a directory and its subdirectories

parameters=$# # # #Error Conditions Error=1 Success=0 if [ $parameters = 0 ] || [ $parameters  -lt 2 ] then    exit $Error fi  # get the parameters pattern=$1 filepath=$2  day=`date +%d` month=`date +%m` year=`date +%Y` echo $day echo $month echo $year   enddate=$year$month$day  echo $enddate day1=01 month1=`date +%m` year1=`date +%Y` startdate=$year1$month1$day1 echo $startdate  cd $filepath # check for the file  # create the date variabe DATE_DIR=`date +%Y%m%d_%H%M%S`  while [[ $startdate -le $enddate ]] do   test=`find . -maxdepth 2 -name $1` if [ "$test" = "" ] then     echo 'files are found'           exit 0 else         echo 'files are not found'         exit 1 fi  done


How to find the closure of $M=\{(x,\sin(1/x))|x\in(0,1]\}$

Hello I'm trying to find the closure of $$M=\{(x,\sin(1/x)|x\in(0,1]\}$$ I think the closure is $$K=\{(0,\sin(1/x))|-1\le \sin(1/x)\le 1\}$$ but I've no idea how to proof it. Can someone help me?


In linux, how do I create/restore an image snapshot of my entire drive?

I'm too spoiled by Windows utilities that take a digital snapshot of your entire drive, which you can then restore from in the event of a drive crash.  (e.g. like Time Machine for Mac OS X).  Is there a similar way of doing this in Linux?


Have downvotes cost more, to be refunded when a comment on that question/answer gets an upvote

This is an idea I have seen around, but I have not seen a feature request for it, so here it is.  Downvotes that have no comments are frustrating and difficult to manage.  This is a way to help improve that:   Have a downvote initially cost more to cast for the downvoter (5 points for example) When a comment (from the downvoter) on the downvoted question/answer gets an upvote, you get your points back.   All points (ie all 5) could be refunded or just up till the traditional -1 that is in place now (ie 4 points refunded).    This would encourage good comments and downvotes for real reasons.  (Because comments for questions/answers that are bias related will not get the upvotes as readily.)  This could/should be limited to non-subjective tags.  (ie tags where a downvote just because you "don't like it" is not appropriate.)


How to handle multiple exceptions in a java method?

I've read It isn't a best practice to handle multiple Exceptions like this:  public void myMethod() throws ExceptionA, ExceptionB, ExceptionC {     //more code here }   And then to call myMethod():  try {     myObject.myMethod(); } catch(Exception e) {     //More code here }   Despite Exception is the parent class of all the other exceptions, it is consider a bad practice. But, in my application I'm using java SE 6 and I need to:   Do File operations that can imply a FileNotFOundException and IOException Marshal objects (in order to create XML files) JAXBException Create a pdf file (using pdfbox library) COSVisitorException Send an email using JavaMail, MessagingException   The easiest way is to add a throws statement in method declaration, but what could be the proper way to write the client method?  Is it OK to add 6 or 7 catch blocks to handle all the possible exceptions?


Unable to install Anaconda on Ubuntu 16.04

I am trying to install Anaconda on my Ubuntu 16.04. I downloaded the .sh file from . I ran bash Anaconda2-4.3.1-Linux-x86_64.sh as the page says and I got this error   ./Anaconda2-4.3.1-Linux-x86_64.sh: line 493: /home/anantha/anaconda2/pkgs/python-2.7.13-0/bin/python: cannot execute binary file: Exec format error ERROR: cannot execute native linux-64 binary, output from 'uname -a' is: Linux anantha-X556UQK 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:06:14 UTC 2016 i686 i686 i686 GNU/Linux   How do I move forward from here? I did this a couple of times and each time, I deleted the folder(named anaconda2) in which I think this was getting installed. I hope that won't conflict with any future installations.


iTunes update keeps reappearing even after several updates

iTunes software update keeps appearing in the app store even after several updates of the same. Has anyone faced a similar issue? When I try to update it, the download begins and installs and again reappears on the App store. Moreover this is happening in my new mac. I'm unable to find the root cause for this issue.


As you saw in the title, parentheses inside parentheses don't look too good. But, gramatically speaking, is it correct to do this? For example:     Go to this site (you should probably check it out, it's great (in case you didn't already notice) and gives you great information) to find out more about the solar system.


Is there a technical reason Android update story is so bad?

Is there a technical reason why Android phones general lag a lot behind the stable released version of Android?    This applies to both new phones, for example a recent trip to the phone shop everything was 4.0 to 4.2.1, KitKat could not be seen. And also old phones, my girlfriend's iPhone 4 had an OTA update to the latest OS, this is a July 2010 phone, whilst a July 2010 Android is basically a paperweight.    Presumably Android itself doesn't concern itself with the actual hardware, and thus talks to the OS via abstractions? I guess then the handset maker just provides the drivers for the specific hardware, thus I can't see the issue with pushing OTA updates if the ABI remains stable (my phone doesn't grow new hardware features).


Is it possible for a particle to orbit a singularity inside the event horizon

Event horizon just means a distance from singularity, where there is no "going-away" from the black hole. But is it possible, that there are particles with enough momentum to actually orbit the singularity under the event horizon?


How do I inflate this bicycle tire valve?

I inherited this bike with this funny looking stem. Is this broken? How do I inflate it?


Is there a construction of an order preserving hash function that keeps the preimage property of a crypto hash function? By order preserving hash function (OPHF) i mean for $x<y$ then $OPHF(x) < OPHF(y)$


Is there a way to have all open programs restored after a restart?

Is there a way to have all open programs restored after a restart exactly where their open windows were on-screen before the restart?    I have about 22 programs and/or files open, each day all day — this is the way I work most efficiently, flitting between them all constantly.  I like to backup and restart every night, but it is a pain to have to initiate them all one-by-one the next morning into their unique positions for quick, easy, one-click access.    Is there a solution now?  Or is one coming in the future?


How to test if there is any significance difference between the areas under under two curves

I am trying to test if there is any significant difference between the areas under two curves.  x-axis: length of stay (los) y-axis: percentage curve1: control group curve2: intervene  Any idea how can I do it?  Thanks!


Ubuntu installation freezes - Pavilion Gaming Laptop 15-cx0058wm

I'm trying to install Ubuntu 18.04 on my HP Pavilion Gaming laptop but the installation freezes every time.   Safeboot is disabled and also legacy support is enabled.   Also I have tried other releases and the same thing is happening.  I hope someone can help me out..


Terminal: Rename multiple files to be in numerical order

I have a lot of files that I need to rename in numerical order. So what I have is this  Getting Started 1.jpg Getting Started 10.jpg Getting Started 100.jpg Getting Started 101.jpg Getting Started 102.jpg   and what I want to do is rename them so that they are ordered like  Getting Started 001.jpg Getting Started 002.jpg Getting Started 003.jpg Getting Started 004.jpg   is there a simple way to do this?


How to compute classification accuracy of PCA?

How to check classification accuracy for principal component analysis (PCA)? In order to compare it with different methods, for example with random forest classification, how can I compute accuracy?  E.g. for random forest the accuracy can be computed as follows:   pred1 <- predict(iris.rf,x,type="response") pr<-table(pred1,testset[,1]) confusionMatrix(pr)   But what about PCA?


When is it correct to use "scissors" as a singular noun?

In the , the following example for scissors is given:     A small suture scissors was used to "fish" for the deeply embedded   hair.   However I find weird that it treats scissors as singular, being a plural noun.  Shouldn't it be Small suture scissors were used...?  Why is it correct to treat scissors as singular in that case (assuming it's indeed correct)?  Please note that I'm only interested in the use of the noun scissors, the ones that are used to cut, not any other meaning of the word. Thank you!


Traffic handling capacity for 1 EC2 instance for t3.2xlarge

Protocol exchange between phone server and IOT device(inter regional). say there are 100000 users and each are requesting or using 12 - 20 times a day may be approximately at the same time(protocols are very small less than 1 KB), so I need to create instances for protocol exchange and auto scaling, each transfer is stored as a log and a backup up-to 1000 GB  here is my instances purchasing idea user -> Route53 -> Elastic Beamstalk - > I am -> RDS -> S3 -> cloud front  I need the traffic handling capacity for 1 EC2 instance for t3.2xlarge - vCPU's 8 - Memory - 32GB i.e I need to know how many request at a time it can handle to estimate the cost by calculating how many EC2 instances I'll be using and also need someone to rectify my instance purchase if any


i used a tp command on a clock and am trapped

Is there a disable all command setting or command or any suggestions on how to move, I am 1600 blocks away from the command but I know the coordinates.


Android how to provide SharedPreferences wrapper via dagger?

I've created SharedPreferences wrapper for ability of using it in whole application via dagger. After running app this recieved error that poins my context is null: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference Here is my wrapper class (I've commented string that causes error): class SharedPrefWrapper constructor(private val context: Application) : LocalStorageProvider {  private var preferences: SharedPreferences = context.getSharedPreferences(     context.getString(R.string.shared_preference_name), // <--- error points on this string     AppCompatActivity.MODE_PRIVATE )  override fun saveServiceStatus(status: Boolean) {     val editor = preferences.edit()     editor.putBoolean(context.getString(R.string.preference_service_param), status)     editor.apply() }  override fun getServiceStatus(): Boolean {     return preferences.getBoolean(context.getString(R.string.preference_service_param), false) }  } And here is how I'm trying to provide it: @Module class BaseModule constructor(private val app: Application) {     @Provides     fun provideApp(): Application = app      @Provides     fun provideLocalStorage(context: Application) : LocalStorageProvider = SharedPrefWrapper(app) }  class MainApp : Application() {     private lateinit var appComponent: MainAppComponent      fun getComponent(): MainAppComponent {         if (!this::appComponent.isInitialized) {             initDaggerComponent()         }         return appComponent     }      private fun initDaggerComponent() {         appComponent = DaggerMainAppComponent             .builder()             .baseComponent(DaggerBaseComponent.builder().build())             .baseModule(BaseModule(this))             .build()     } }  Please, help to figure out what's wrong and how to provide context correctly?


How to make child process die after parent exits?

Suppose I have a process which spawns exactly one child process. Now when the parent process exits for whatever reason (normally or abnormally, by kill, ^C, assert failure or anything else) I want the child process to die. How to do that correctly?    Some similar question on stackoverflow:   (asked earlier)  (asked later)      Some similar question on stackoverflow for Windows:


What is the difference between Anyways, Anyway and Any way?

I have seen these words which looks pretty much the same in three different forms, why? what are the differences?  Which one is correct between anyway and anyways? Are they spoken English or can I write those in my essays are they formal words?     We're going to do it anyway!      Great, the service was terrible, but anyways the meal was gorgeous.      So, she's all "Anyways, let's go shopping at Target! "      I do not know any way to fix it.


This is a follow-up to . My next question is what to do when the question is bad, but the answer is not.  Here is an example of . The question is closed as "too localized", and the answer is flagged as "not an answer". On one hand, I would agree that the answer is not definitive in any way; on the other hand, it has a decent probability of sending a reader in the right direction - after all, it helped the OP. That is why I would be hesitant to remove the answer.  What is the preferred course of action in this situation? Should I disregard the potential helpfulness and second the flag, or would it be better to dispute it?


Using HashMap to store and retrieve objects in Java

I am trying to use a HashMap in my Java game to store Entity's in a Stage class and update them all. I am doing this so I can hopefully identify exactly what object is where with a key. I want it to find the key itself as well though, here is my code.  public class Stage {      private HashMap<String, Entity> entityHash = new HashMap<String, Entity>();      public Stage(){      }      public void addToStage(Entity e){         entityHash.put(e.getKey(), e);      }      public void test(){         for(int i = 0; i < entityHash.size(); i++){             //Line to be discussed about             System.out.println(entityHash.get("player").getPosition());         }     } }   In the line of code I marked above to be discussed, is there a way for the code to find the key by itself. Every entity has a method called getKey() and I want to know if I can get it somehow.  Note: I could easily do this by having an ArrayList of strings for the keys and loop through that way, but I am hoping someone has an easier way of doing this that maybe I am missing. Thanks!


Why a sufficient statistic contains all the information needed to compute any estimate of the parameter?

I've just started studying statistics and I can't get an intuitive understanding of sufficiency. To be more precise I can't understand how to show that the following two paragraphs are equivalent:  Roughly, given a set X of independent identically distributed data conditioned on an unknown parameter θ, a sufficient statistic is a function T(X) whose value contains all the information needed to compute any estimate of the parameter. A statistic T(X) is sufficient for underlying parameter θ precisely if the conditional probability distribution of the data X, given the statistic T(X), does not depend on the parameter θ.  (I've taken the quotes from ) Though I understand the second statement, and I can use the factorization theorem to show if a given statistic is sufficient, I can't understand why a statistic with such a property has also the property that it "contains all the information needed to compute any estimate of the parameter". I am not looking for a formal proof, which would help anyway to refine my understanding, I'd like to get an intuitive explanation of why the two statements are equivalent. To recap, my questions are: why the two statements are equivalent? Could someone provide an intuitive explanation for their equivalence?


Import variable from another .py without running the module

I two .py files: file_1.py file_2.py file_1.py contains code that will open an raster and split it into sections. Similar to creating a grid and clipping to each grid within QGIS. I have a variable x set as my file that I want to use "raster.tif". I would like import this variable into file_2.py. I found this  by @Ashwini Chaudhary (import file_1 then file_1.x). The problem I am facing is when I run file_2.py, file_1 is executing first. I simply want to access the variable and not execute the file. Is that possible to do?


We know that gravitational, electrical and magnetic forces are conservative in nature. We also know that friction is fundamentally Electromagnetic in nature. How is it then a non-conservative force?


Is it gramatically correct to omit the preposition "on" when talking about events occuring on a certain day?

I'm taking  on technical writing. It  that you can omit "on" from     The meeting happened on Monday   to turn it to     The meeting happened Monday   The second one seems wrong to me, and I haven't seen it being commonly used either.


Something strange happens while keypress

I have meka g-unit keyboard. This keyboard has 12 additional keys. I found scancodes of this keys via evtest and mapped these codes to f13-24 key codes. Everything works fine, but some keys(F20,21,22,23) have strange behavior. I used xev to test this. So, if i press any normal key, i have in output only keypress/keyrelease events, but these 4 keys gave me strange result:  FocusOut event, serial 40, synthetic NO, window 0x8200001,     mode NotifyGrab, detail NotifyAncestor  FocusIn event, serial 40, synthetic NO, window 0x8200001,     mode NotifyUngrab, detail NotifyAncestor  KeymapNotify event, serial 40, synthetic NO, window 0x0,     keys:  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0               0   0   0   0   0   0   0   0   64  0   0   0   0   0   0   0     KeyRelease event, serial 40, synthetic NO, window 0x8200001,     root 0x126, subw 0x0, time 28272076, (407,392), root:(2331,421),     state 0x4010, keycode 198 (keysym 0xffd1, F20), same_screen YES,     XLookupString gives 0 bytes:      XFilterEvent returns: False   evtest gives me this output: normal key(f13):  Event: time 1502817652.419417, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700cc Event: time 1502817652.419417, type 1 (EV_KEY), code 183 (KEY_F13), value 1 Event: time 1502817652.419417, -------------- SYN_REPORT ------------ Event: time 1502817652.455412, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700cc Event: time 1502817652.455412, type 1 (EV_KEY), code 183 (KEY_F13), value 0 Event: time 1502817652.455412, -------------- SYN_REPORT ------------   Broken key(f20):  Event: time 1502817690.387065, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700d3 Event: time 1502817690.387065, type 1 (EV_KEY), code 190 (KEY_F20), value 1 Event: time 1502817690.387065, -------------- SYN_REPORT ------------ Event: time 1502817690.491038, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700d3 Event: time 1502817690.491038, type 1 (EV_KEY), code 190 (KEY_F20), value 0 Event: time 1502817690.491038, -------------- SYN_REPORT ------------   xmodmap -pke output:  keycode 191 = F13 F13 F13 keycode 192 = F14 F14 F14 keycode 193 = F15 F15 F15 keycode 194 = F16 F16 F16 keycode 195 = F17 F17 F17 keycode 196 = F18 F18 F18 keycode 197 = F19 F19 F19 keycode 198 = F20 F20 F20 keycode 199 = F21 F21 F21 keycode 200 = F22 F22 F22 keycode 201 = F23 F23 F23 keycode 202 = F24 F24 F24   My 70-keyboard.hwdb:  evdev:input:b0003v060Bp5253e0111-e0*  KEYBOARD_KEY_700cc=f13  KEYBOARD_KEY_700cd=f14  KEYBOARD_KEY_700ce=f15  KEYBOARD_KEY_700cf=f16  KEYBOARD_KEY_700d0=f17  KEYBOARD_KEY_700d1=f18  KEYBOARD_KEY_700d2=f19  KEYBOARD_KEY_700d3=f20  KEYBOARD_KEY_700d4=f21  KEYBOARD_KEY_700d5=f22  KEYBOARD_KEY_700d6=f23  KEYBOARD_KEY_700d7=f24   How to fix that? As i see, evtest gives right result for every key, but something happens with action, while system parses this event.  showkey shows correct press/release events and keycodes. Only showkey works fine with these keys, another apps like firefox works like xev shows.


What is the best way to parse (big) XML in C# Code?

I'm writing a GIS client tool in C# to retrieve "features" in a GML-based XML schema (sample below) from a server. Extracts are limited to 100,000 features.  I guestimate that the largest extract.xml might get up around 150 megabytes, so obviously DOM parsers are out I've been trying to decide between  and  generated bindings --OR--  and a hand-crafted object graph.  Or maybe there's a better way which I haven't considered yet? Like XLINQ, or ????  Please can anybody guide me? Especially with regards to the memory efficiency of any given approach. If not I'll have to "prototype" both solutions and profile them side-by-side.   I'm a bit of a raw prawn in .NET. Any guidance would be greatly appreciated.   Thanking you. Keith.    Sample XML - upto 100,000 of them, of upto 234,600 coords per feature.  <feature featId="27168306" fType="vegetation" fTypeId="1129" fClass="vegetation" gType="Polygon" ID="0" cLockNr="51598" metadataId="51599" mdFileId="NRM/TIS/VEGETATION/9543_22_v3" dataScale="25000">   <MultiGeometry>     <geometryMember>       <Polygon>         <outerBoundaryIs>           <LinearRing>             <coordinates>153.505004,-27.42196 153.505044,-27.422015 153.503992 .... 172 coordinates omitted to save space ... 153.505004,-27.42196</coordinates>           </LinearRing>         </outerBoundaryIs>       </Polygon>     </geometryMember>   </MultiGeometry> </feature>


Let $A \in M_{nxn}(\mathbb{C})$, and assume $A^5=\mathbb{O}_{nxn}$ (A zero matrix). Prove that $(I_n-A)^{-1}$ exists and what does it equal to? So the property that $A^5=\mathbb{O}$ is useful here, and to prove that the inverse exists, should I use the determinant method (calculate that the determinant cannot be $0$?). To find what it is equal to, I have an intuition that it is the identity matrix + $A^1 + A^2$ and such. What would be the exact answer?


To automate some Business process either i can go for  Trigger/ Process Automation which include:- workflow, Approval Process, Process Builder, Visual Workflow.  Both Trigger and Process Automation help me to achieve this. so My Question is:- "when should i use Trigger and when to use Process Automation" ?


FGLRX won't install: Unable to correct problems, you have held broken packages

When I run sudo apt-get install fglrx, I get the following output:  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help resolve the situation:  The following packages have unmet dependencies:  fglrx : Depends: xorg-video-abi-11 but it is not installable or                   xorg-video-abi-12 but it is not installable or                   xorg-video-abi-13 but it is not installable or                   xorg-video-abi-14 but it is not installable or                   xorg-video-abi-15 E: Unable to correct problems, you have held broken packages.   Unfortunately I am used to working on windows servers and am not familiar with Ubuntu.


A subset of a transitive set is transitive

Given a transitive set$$a,$$ I can prove that $$\bigcup a$$ is also transitive, but I don't quite like my method because I must first prove $$a \subseteq \mathcal{P}(\bigcup a)$$ to get at $$\bigcup a\subseteq \mathcal{P}(\bigcup a).$$ Could you please show me a smarter proof?


Replace a character(s) in array of a string

I would like to replace special characters from the user input with other characters.  Currently, I have the following which does not work. Any help would be appreciated.  $(document).ready(function(){          $("#text_box_id").change(function () {             /*var name = $(this).val();             var dname_without_space = $("#text_box_id").val().replace(/ /g, "");*/              var specialCharList = ["Á","É","Í","Ó","Ú","á","é","í","ó","ú","ñ","Ñ"];             var replaceChar = ["A","E","I","O","U","a","e","i","o","u","n","N"];              var inputUser = $("#text_box_id").val();             var splitInput = inputUser.split(" ");             console.log(splitInput);              for(var i = 0; i < inputUser.length; i++){                 for(var x = 0; x < specialCharList.length; x++){                     if(splitInput[i] == specialCharList[x]){                         splitInput[i] = replaceChar[x];                     }                 }             }              var modInputUser = splitInput.join(" ");             console.log(modInputUser);              /*var name_without_special_char = $("#text_box_id").val().replace(/[^a-zA-Z 0-9]+/g, "");              $(this).val(name_without_special_char);             console.log(name_without_special_char)*/         });     });


Let $f:S^1\to\mathbb{R}$ be any continuous function where $S^1=\{(x,y)\in \mathbb{R}^2:x^2+y^2=1\}$ . What is the cardinality of this set $T=\{(a,b),a\in S^1,b\in S^1$ and $a\neq b:f(a)=f(b)\}$??    $S^1$ is connected and compact and continuous image of connected and compact is also connected and compact .I think it would be use here but don't know ...


Same author and year - second entry in bibliography missing author

I have a problem which I can't solve by myself or haven't found anywhere:  I'm citing the same author (and year) with two different sources. In the bibliography the second entry only has a big dash instead of the author again, which I would prefer. Any suggestions to get the same author being displayed again there?  Code example:  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{blindtext} \usepackage[style=authoryear,maxnames=2,sorting=nyt,isbn=true,url=true,block=space,natbib=true]{biblatex} \addbibresource{bib.bib} \title{Hi} \author{MM} \date{November 2019}  \begin{document}  \maketitle  \section{Introduction}  \blindtext\citep{bundesregierung_klimaschutzgesetz_nodate}\citep{bundesregierung_klimaschutzprogramm2030_2019}  \printbibliography  \end{document}   In the bib.bib file there are these two entries:  @misc{bundesregierung_klimaschutzprogramm2030_2019, title = {Klimaschutzprogramm 2030}, url = {https://www.bundesregierung.de/breg-de/themen/klimaschutz/klimaschutzprogramm-2030-1673578}, language = {de}, urldate = {2019-11-04}, author = {{Bundesregierung}}, year = {2019}, }  @misc{bundesregierung_klimaschutzgesetz_nodate, title = {Klimaschutzgesetz}, url = {https://www.bundesregierung.de/breg-de/themen/klimaschutz/kimaschutzgesetz-beschlossen-1679886}, urldate = {2019-11-05}, author = {{Bundesregierung}}, year = {2019}, }   The output looks something like this:


If catch statement is returning ,then why it is going to finally block?

package com.ami.practice; public class UnrechebleStatement { public static void main(String[] args) {     System.out.println(m());         }  public static int m(){     try{         int x=0;         int y=10/x;         return y;     }catch(Exception e){         return 1;     }finally {         return 2;     }   } }


Left the US by plane. Still have my US Visa Waiver (I-94 A)

I regularly travel from Canada to the US by bus and get a US Visa Waiver attached to my passport, which I hand back to the Canadian customs officer when returning to Canada (by bus).  This time I entered the US by bus as usual, but left the country by airplane. When I tried to surrender the visa waiver to the Canadian customs officer upon arrival at the airport in Canada, he informed me he had never seen this before, and did not take the waiver out.   I understand that usually when flying to/from the US these records are handled through ESTA. Does that mean there is a valid record of me leaving the US, and that I can take out the waiver myself? Are there any additional steps I should be taking?


Showing multiple badges awarded in help center

Recently, the  in the help center was upgraded. Although it shows nice and clear which badges were earned by me, it does not show how many badges were awarded. For instance, if I have earned two "nice question" badeges, it only shows the badge was awarded to me, but it does not show that I have earned it twice.  Is it possible to add a counter on the badges help center to show how many badges were earned?  For example:                         ^                    |                    +-- like this


I have just installed Grammarly and it showed up something which i am not sure of.  It corrected '13 month old' to '13-month-old'.  The context is      I ask because my 13-month-old God daughter seemed like she was a little resentful towards another child who was visiting at the same time.   Which would be correct, and why?


A word for someone who fakes interest in listening to something they already know

Often times we encounter people who will fake an interest in what you have to say even if they know everything about what you are about to say. For instance someone who is relating an article they may have come across on the internet and you pretend to have not read it only to elicit their opinion about the said article.  The intentions for why they do this might be positive (just being nice) or negative (to see if one speaks truthfully)


Why for...in and for...of behave differently in the same case?

I read the explanations of for...in and for...of but then faced this situation where in the same case they behave differently.    //case1 function avg(...args) {    var sum = 0;    for (let value of args) {      sum += value;     }     return sum / args.length; } console.log(avg(2,3,4,5));  //case2 const people = function(param1, param2, ...rest) {    console.log(param1);    console.log(param2);    for(let i in rest) {        console.log(rest[i]);    } } people('Foo', 'Bar', 'Catz', 'Dogz');     So, the ...args & ...rest are arrays (object) right? I think the case1 is correct and behave as it explained in many sources (e.g. )  What is their difference, why in case2 for...in works instead of for...of ?


Why was the imaging of M87 black hole easier than imaging the Milky way's Sagittarius A*?

In the recent EHT press release of the image of the super massive black hole at M87, I am curious to know why the super massive black hole at the centre of milky way has not been imaged yet.


Python sending files from a user directory to another user directory

I am very new to Python. I am curious to how I would be able to copy some files from my directory to another Users directory on my computer using python script? And would I be correct in saying I need to check the permissions of the users and files? So my question is how do I send files and also check the permissions at the same time


I'm creating a quiz activity in which when the user inputs his or her answer into the EditText and presses 'Next' button, it will generate the next random word and also check if you are correct or wrong.   However, for some reason, even though my code was kind of able to detect both the EditText and the correct word answer, it returns back to me the 'wrong answer' code. Can anyone help me please? Thanks! (I'm still new at this...)  *Edited: This is not a duplicate question people. I seriously need someone to look at my code specifically and tell me exactly what is wrong because I don't know. It's not a general question which can be solved (for me anyway) just by looking at other people's questions because I'm still very new at this. Thanks a lot.*  btnNext.setOnClickListener(new OnClickListener(){           @Override         public void onClick(View v) {             EditText etGuess= (EditText) findViewById(R.id.editTextGuess);              etguess2 = etGuess.getText().toString();              //these two above were actually placed outside but no luck. didnt work here either              String etg2str = etguess2; // the users edittext input             String tgstr = theguess; // the correct answer, the guess is from outside              if (myCD > 0 && etg2str.toString() == tgstr.toString()){              myCD--; //this is a countdown of the number of qns             Toast.makeText(getApplicationContext(), "correct answer"+ myCD + rantitle + " now",                        Toast.LENGTH_LONG).show(); // this has nvr appeared for me             savePreferences("countDown", myCD);             RandomTitle(); //calling for random word on next load             Intent iNext = new Intent(QuizActivity.this,                      QuizActivity.class);             iNext.putExtra("dataR", rantitle); //inputting random word for next load             startActivityForResult(iNext, 1);             finish();             }              else if (myCD > 0 &&  etg2str.toString() != tgstr.toString()){                  myCD--;                 Toast.makeText(getApplicationContext(), "wrong answer " + myCD + rantitle + etguess2 + theguess + " now",                            Toast.LENGTH_LONG).show();             //now this one above appears for me everytime yet even tho etguess2 and theguess appears the same, I get wrong number                   savePreferences("countDown", myCD);                 RandomTitle();                 Intent iNext = new Intent(QuizActivity.this,                          QuizActivity.class);                 iNext.putExtra("dataR", rantitle);                 startActivityForResult(iNext, 1);                 finish();              }              else{                  Intent iScore = new Intent(QuizActivity.this,                          ScoreActivity.class);                 startActivityForResult(iScore, 1);                 myCD = 10;                 savePreferences("countDown", myCD);             finish();              }         }           });              }


$f: \mathbb{R}^{+}  \rightarrow \mathbb{R}^{+}$  $f(x^2)=xf(x)$  $f(x+1)=f(x)+1$  Can this functional equation be solved ?


We remember the definition of strong convergence of a sequence in $B(H)$ for $H$ a Hilbert space: $a_n\rightarrow a$ iff $\left\|a_nx-ax\right\|\rightarrow0$ for all $x\in H$. In general norm convergence implies strong convergence, but the converse isn't true in general. But it seems to be special cases: Let $(a_n)$ a sequence in $B(H)$ which converges strongly to an operator $a\in B(H)$. Furthermore assume that $b$ is a compact operator. The claim is that the sequence $(a_nb)$ converges in norm (operator norm) to $ab$. I can't find a good reason of estimation to conclude that this should be true. Moreover if we take the sequence $(ba_n)$ then the conclusion that this converges to $ba$ isn't true. I think you have to use projections to find the counterexample, but more interesting is the question why $(a_nb)$ well converges. Can someone help me with this problem? Thank you very much.


How can GMs quickly calculate the effects of level drain?

I've GM'ed a few Pathfinder games, and while I really enjoy the setting, I just can't wrap my head around some of the crunchy mechanics. In particular, how do you (quickly) deal with effects like drain level in a pen and paper system - doesn't each player have to COMPLETELY recalculate their character sheet (feats, spells, skills, BAB) each frickin' time the mummy lord hits them? It seems like that would just grind the game to a smoking halt. How do other GM's handle this?


Don't Have A .minecraft Folder on Windows 10 PC

I downloaded a map for my Minecraft game (I have Minecraft Windows 10 Edition) but it won't show up in the actual game. I looked up how to download maps onto Minecraft Windows 10 and it said that the .minecraft file would be in %appdata%. I searched that in the file explorer in downloads but it's not there!


I have been asked to shoot a wedding for one of my co-workers. I am not a professional but the bride to be has see some of my pics from parties and such and she really liked my style. This will be an outdoorsy in a barn type wedding. I live in SW Florida and plan to make 2 trips (about 50 miles each way) to the venue - one before the wedding to scope it out and take casual family and bride & groom pics, then the 2nd time for the actual wedding. My thought is that I will give them everything I shoot on DVDs and will touch up a few of their favorites if they need touching up. As I'm not a professional and have no intention to do any other weddings - what are people's general thoughts of what to charge? I was thinking $500. Is that too much?


I have a curiosity. I would like to know if it is more efficient this code  int a(0); for(int i=0;i!=10;++i){     a=0;     for(int j=0;j!=10;++j){         // perform some operations on a     } }    or this code  for(int i=0;i!=10;++i){     int a(0);     for(int j=0;j!=10;++j){         // perform some operations on a     } }    or it is exactly the some in term of performance. I understand that the answer may depend on the compiler and its inner optimization technique but I am curios to understand if there is any difference.  Thank you, Marco.


Bash: Access parameter passed to last command

This is a situation I often find myself in:  mkdir /Some/really/long/path/to/a/directory/ cd /Some/really/long/path/to/a/directory/   I know that ideally you would cd /Some/...etc.../a/ and then mkdir directory, but I've often performed mkdir first and then had to cd to the end of the same lengthy file path I just created.  Short of doing...  var="/Some/...etc.../a/" mkdir $var/directory; cd $var   ...which is even worse, is there some way to reuse the parameter passed to the previous command? I'm aware of course of tab completion, but in a series of nested directories with similar names this doesn't always help that much. Ideally, I'm hoping for a shortcut like $# or $@.  Failing this, the next best time-saving solution would be equally appreciated!


What is the actual behavior of compatibility level 80?

Could somebody provide me with a better insight about the compatibility mode feature? It is behaving different than I expected.  As far as I understand compatibility modes, it is about the availability and support of certain language structures between the various versions of SQL Server.  It does not affect the inner workings of the database engine version. It would try to prevent use of features and constructs that were not yet available in earlier versions.  I just created a new database with compat level 80 in SQL Server 2008 R2. Created a table with a single int column and populated it with a few rows.  Then executed a select statement with a row_number() function.  My thought was, since the row_number function was only introduced in 2005, this would throw an error in compat 80 mode.  But to my surprise this worked fine. Then, surely, the compat rules are only evaluated once you 'save something'. So I created a stored proc for my row_number statement.  The stored proc creation went fine and I can perfectly execute it and obtain results.  Could someone help me to better understand the working of compatibility mode? My understanding is obviously flawed.


Casting variables - java.lang.ClassCastException [on ArrayCollection example]

I'm trying to implement Collection interface for study purpose. My add() and toArray() method looks like:  public class ArrayCollection<T> implements Collection<T> {  private T[] m = (T[])new Object[10];  private int size = 0;  @Override public boolean add(final T t) {             m[size++] = t;     return true; }  @Override public Object[] toArray() {     T[] array = (T[]) new Object[size()];     int i = 0;     for (T item : ArrayCollection.this) {         array[i++] = item;     }     return array; }   But when I perform testing:  @Test public void testToArray() throws Exception {     final Collection<Integer> testInstance = new ArrayCollection<>();     testInstance.add(1);     testInstance.add(2);     testInstance.add(3);      final Integer[] result = testInstance.toArray();      assertEquals((Integer)1, result[0]);     assertEquals((Integer)2, result[1]);     assertEquals((Integer)3, result[2]);     assertEquals(3, result.length); }   I get error:   ArrayCollectionTest.java:32: error: incompatible types: Object[] cannot be converted to Integer[] final Integer[] result = testInstance.toArray();   I completelly don't uderstand how to fix this problem and what I'm doing wrong.


Isn't there a way to unsubscribe from already answered questions (and badge notifications)?

I would like to stop receiving notification from questions which I already accepted an answered questions. Talking about the website's inbox notification (not e-mail, that I already cancelled).  The same for the badges notifications, something I'm really not interested, and the number of notifications keep growing every year...  Is there a way?


What's the difference between INNER JOIN, LEFT JOIN, RIGHT JOIN and FULL JOIN?

What's the difference between INNER JOIN, LEFT JOIN, RIGHT JOIN and FULL JOIN  in MySQL?


Is there a way to hide the Panel and keep the clock somewhere else in Gnome?


When is it acceptable to use "I've" by itself?

I have a friend from a foreign country who for years has used "I've" in a way that sounds funny to me. He often writes sentences like "I've an exam tomorrow." Is he correct in this usage?  I have always used "I've" but only when speaking in the past. For example: "I've never seen someone like that." Basically, I don't use "have" as the lone verb in the sentence. Thanks!


Correct and simple way to convert PNG to SVG?

What would be the best way to convert this type of image to SVG?


Methods defined as TestMethod do not support getContent call in test class

public static workOrderRecordFormApex SAPgetPicklistValues(string recordTypeId, string objectName,string fieldApiName){         Map<String, String>  piclistValues=new Map<String, String>();         workOrderRecordFormApex objs = new workOrderRecordFormApex();         Httprequest req = new HttpRequest();         String SESSION_ID_START = 'SESSION_ID_START';         String SESSION_ID_END = 'SESSION_ID_END';         String pageContent = Page.SessionId.getContent().toString();         Integer startIndex = pageContent.indexOf(SESSION_ID_START) + SESSION_ID_START.length();         Integer endIndex = pageContent.indexOf(SESSION_ID_END);         String sessionId =pageContent.substring(startIndex, endIndex);           req.setEndpoint(             URL.getSalesforceBaseUrl().toExternalForm() +             '/services/data/v50.0/ui-api/object-info/' +             objectName +             '/picklist-values/' +             recordTypeId +             '/' +             fieldApiName         );         req.setMethod('GET');         req.setHeader('Content-Type', 'application/x-www-form-urlencoded');            req.setHeader('Authorization', 'Bearer ' + sessionId);         Http http = new Http();         httpresponse response=http.send(req);         picklistWrapper obj=new picklistWrapper();         obj=(picklistWrapper)JSON.deserialize(response.getBody(), picklistWrapper.class);         String JSONstr = response.getBody();         JSONParser parser = JSON.createParser(JSONstr);         Map<String, Object> defaultValueMap = (Map<String, Object>)JSON.deserializeUntyped(JSONstr);         for(piclistValues pickVal:obj.values){                          piclistValues.put(pickVal.value, pickVal.label);         }         objs.defaultSAPOrderType = defaultValueMap.get('defaultValue');         objs.sapOrderTypeValues = piclistValues;         system.debug('objs' + objs);         return objs;     }       private static List<PicklistEntryWrapper> wrapPicklistEntries(List<Schema.PicklistEntry> PLEs) {         return (List<PicklistEntryWrapper>)             JSON.deserialize(JSON.serialize(PLEs), List<PicklistEntryWrapper>.class);     }     public class picklistWrapper{         @AuraEnabled public piclistValues[] values;     }     public class piclistValues {         @AuraEnabled public String label;             @AuraEnabled public String value;     }     public class PicklistEntryWrapper{         public String active {get;set;}         public String defaultValue {get;set;}         public String label {get;set;}         public String value {get;set;}         public String validFor {get;set;}         public PicklistEntryWrapper(){                     }              }     @AuraEnabled     public object defaultSAPOrderType {get; set;}     @AuraEnabled     public Map<String, String> sapOrderTypeValues {get; set;}   In my apex class I want to get the picklist value of a field, where the valus is based on the recordtype.The code is working fine, but need to write test class for the same.Above is the apex class. And test class is @isTest private class QuoteComponentCtrl_Test {     @isTest      static void myTestmethod1() {         QuoteComponentCtrl.SAPgetPicklistValues(salesRecordTypeId, 'WorkOrder', 'SAP_Order_Type__c');     } }   In this Im getting error like "Methods defined as TestMethod do not support getContent call". Kindly help me to resolve this


If $∫_0^{π/2} \cos ^nxdx=I_n$, prove that $nI_n=\left(n-1\right)I_{n-2}, \left(n>1\right)$  I took $\cos ^nx$ as $\cos ^{n-2}x\cos ^2x$ and replaced $\cos ^2x$ with $1-\sin ^2x$. Then integrated using by parts. Could not arrive at the given result


What is the sum of the power series: $\sum_{k=2}^\infty\frac{x^k}{k(k-1)}$?

What is the function represented by the power series $$ \sum_{k=2}^\infty\frac{x^k}{k(k-1)}\quad? $$  It looks like $\dfrac1{1-x}$ but I don't know.


My question is what is the difference among these three sentences.   He is big enough to do such  heavy works. He is not big enough to do such heavy works. He is small enough to do such  heavy works.   I am so much confused between 2 and 3.Also, I don't get what the 3rd one means.


MySQL - Batch Delete vs Individual Delete

I have two processes that run using Python and SQlalchemy.  One process runs continously and inserts or updates certain rows in a MySQL table.  Another process runs once every day, reads the rows from the table, moves data into a CSV and deletes the rows. It deletes all the rows through one delete statement  Once in a while I get "Lock Wait Timeout Exceeded" error from MySQL.  What are the advantages and disadvantages to delete one row at a time vs deleting all through one statement ?  In my process that runs once every day, I dont care if it takes more time.   Thanks


Correct format to specify the ipv6 address in '/etc/hosts' file

I have configured a server with Gentoo 64 bits that it has IPv4 and IPv6 and they are working well. But I don't know how specify the IPv6 of the server in /etc/hosts file. With or without "/64" final?:  ... ipv4.XXX.XXX.XXX nsXXXXXXX.ip-XXX-XXX-XXX.eu  ipv6:XXxX:XX:xxxX::/64 nsXXXXXXX.ip-XXX-XXX-XXX.eu ....   or  .... ipv4.XXX.XXX.XXX nsXXXXXXX.ip-XXX-XXX-XXX.eu  ipv6:XXxX:XX:xxxX:: nsXXXXXXX.ip-XXX-XXX-XXX.eu ....   ?


Installing Ubuntu over Windows 10 on a drive with only a few gigs of free space?

I bought a cheap HP laptop just for the internet. Well, the hard drive is only about 30 gigs. Big problem, because so is Windows 10 with new updates. In fact there's not enough room on the drive to even update the operating system.  I thought, well, Ubuntu is much smaller. But I read I need 25 free gigs of disk space to install. Windows took up all that.  Is there a way to install over Windows or use an external drive, or USB?  Incidentally, I detest Windows 10 and want to move to an all-free platform with all free programs. That's something I can really believe in.


I was browsing badges right now, and saw that the Analytical badge has been retired. I tried searching how to get one, but found out that it cannot be obtained now - thanks to  question.   Well, I was shocked to see that on clicking on that badge, there were several users who had obtained the badge recently - as recently as 3 hours ago. Is that a bug, or is there some hidden way to obtain the badge still?


How do I apply a python function by name?

I have a list containing the activation function names to apply to each of the hidden layers of a NN.  I want to modify the following command so that instead of relu, the command calls activation[i]:  #activation = ['relu','softplus','softsign'] for i in range (1,hidden_layers+1):     W_dmd[i] = tf.Variable(tf.initializers.GlorotUniform()(shape=[input_shape,code_length]))     b_encoder_dmd[i] = tf.Variable(tf.initializers.Zeros()(shape=[code_length]))     x_dmd[i] = tf.compat.v1.nn.relu(tf.compat.v1.nn.xw_plus_b(x_dmd[i-1], W_dmd[i], b_encoder_dmd[i])) #Instead of relu, same command but with the name in activation[i]   The commands should then be:  x_dmd[1] = tf.compat.v1.nn.relu(tf.compat.v1.nn.xw_plus_b(x_dmd[0], W_dmd[1], b_encoder_dmd[1]))  x_dmd[1] = tf.compat.v1.nn.softplus(tf.compat.v1.nn.xw_plus_b(x_dmd[1], W_dmd[2], b_encoder_dmd[2])) x_dmd[3] = tf.compat.v1.nn.softsign(tf.compat.v1.nn.xw_plus_b(x_dmd[2], W_dmd[3], b_encoder_dmd[3]))   From this , I can come up with:  x_dmd[i] = getattr(tf.compat.v1.nn, activation[i])(tf.compat.v1.nn.xw_plus_b(x_dmd[i-1], W_dmd[i], b_encoder_dmd[i]))   Is this correct? Thanks!


winterba.sh redirects to 2012 Winter Bash

Visiting  redirects to . This domain should be reused, and should redirect to . Why did I think this would happen? The use of this domain was announced in the original email to moderators, which read in relevant part:  This event will run from 16 December 2013 to 3 January 2014. Users will be able to see their entire hat collection on . That site will also have a landing page, explaining the rules and other details of the event.


How common is it to have a Muggle-born in Muggle families in Harry Potter?

How common is this and how quickly would the magical ancestry show in a Muggle family?


I wonder how can calculators or Wolfram evaluate such expressions as $2^{1.35}$ or $3^\pi$.   Do they use Taylor series for $2^x$ and $3^x$ or do they employ other means?


Ubuntu 14.04.5 can't install proprietary drivers

I'm unable to install my AMD proprietary Drivers in Ubuntu 14.04.5, as fast as I select the "apply changes" in the software properties it reverts back to the open-source drivers.  I opened the the software properties menu through the terminal and this happens when I select fglrx-updates:  unity-control-center: Depends: libpulse-mainloop-glib0 (>= 1:0.99.1) but 1:4.0-0ubuntu11.1 is not installed                       Depends: libpulse0 (>= 1:0.99.1) but 1:4.0-0ubuntu11.1 is not installed                       Depends: libxi6 (>= 2:1.2.99.4) but 2:1.7.1.901-1ubuntu1.1 is not installed   and the same happen when fglrx is selected.  My system is a DELL INSPIRON 15-5555 with an APU A10 8700P. It has Windows 10 installed by default and secure boot. I don't know if this is important but I added anyway.


How to \draw a path between several nodes with some segments dotted?

I would like to do something like  \draw (node1) -- (node2) {[dotted] -- (node3)} -- (node4) {[dotted] -- (node5)} -- (node6);   There is no error message but the path comes out without any dotted parts, just everything same plain path.  Of course I could make several separate paths but in the "real" case there are about twenty segments that I would like to make alternatingly solid and dotted.  Is there a way to do it?


In Simple Linear Regression $\hat \beta_1$ and $\bar Y$ are independent

I want to show that, in simple linear regression $\hat\beta_1 $ and $\bar Y$ are independent.  My attempt: I have calculated the $\mathcal Cov(\hat \beta_1,\bar Y)$ and it turns out to be $0$.I also notice that $\hat \beta_1$ and $\bar Y$ both are normally distributed(Simply because, they are linear combination of $Y_i's$ and each $Y_i $ is normally distributed.). But if we have two uncorrelated normal random variables,that does not imply that they are independent. So  I don't know how to show that they are actually independent? Any help would be appreciated.Thanks in advance.  My intuition is that somehow i have to calculate the joint pdf of $\hat \beta_1$ and $\bar Y$ and then the joint pdf simply splits into two independent functions of Single variables.Can anyone help me find the joint pdf?


If I have a cubic Bezier segment specified by two endpoints and two  control points, how can I find an offset curve which is "parallel" to  the original at some given distance, after i have determined the other 2 endpoints?     The red dots in the image are the endpoints, and the red squares are the control points of the initial bezier segment. Everything red is known, and i need to find the blue squares, that is, the control points of the second curve, such that the second curve is parallel to the first one(must also take into account that the dimension varies, as if it was below the original bezier, the second curve would be smaller).   I am sorry for the graphics of the image, it has only a illustrative purpose and i am not good at drawing. Thank you for the help!


How to enable split view for a LWC or Aura CustomTab?

I'd like to enable split view support for my CustomTab but I don't find any information regarding how to do that. Salesforce seems to have been able to do that internally with High Velocity Sales but I haven't been able to retroengineer it.


in a principal ideal domain ring let be lcm (a,b) = e , prove that theres a gcd(a,b) that exists in any ring

I need to prove that let R be an PID ring every pair of nonzero elements of R has a lcm and a gcd. I already proved that theres a lcm(a,b)=e  , I am missing finding the gcd. someone told me that the answer might be proving that e*gcd(a,b)=ab, but I am a little lost on this


How to print multiple lines to a .txt file (external) in Java?

I'm fairly new to Java programming so this might be a noob question, but I have developed a movie ticket reservation program for a coursework of mine and one of the requirements for it is to allow the user to print out a receipt for the purchase. I have succeeded in getting to print the output to the .txt file but the problem is that all the information prints in a single line but I want them to print in different lines. Can someone please help me out with this?   private void printReceiptActionPerformed(java.awt.event.ActionEvent evt) {                                                  try {         // TODO add your handling code here:         showMessageDialog(this, "Your receipt is printing!");          //print receipt to a text file called Receipt         FileWriter fw = new FileWriter("Receipt.txt");         PrintWriter pw = new PrintWriter(fw);          //calculation of prices         float adultPrice = (float) (countA * 9.00);         float studentPrice = (float) (countSt * 8.00);         float seniorPrice = (float) (countSe * 7.00);         float childPrice = (float) (countC * 5.00);          //total price for tickets         float totalPrice = adultPrice + studentPrice + seniorPrice + childPrice;          try {             String queryString = "SELECT title, movietheatre FROM movies WHERE movieid = " + movieID;             ResultSet results = myStatement.executeQuery(queryString);              NumberFormat formatter = NumberFormat.getCurrencyInstance();              StringBuilder strBuilder = new StringBuilder();             while (results.next()) {                 strBuilder.append("\t Cinema Ticket Receipt");                 strBuilder.append("\n");                 strBuilder.append("Movie Title : ").append(results.getString(1));                 strBuilder.append("\n");                 strBuilder.append("Time : ").append(time);                 strBuilder.append("\n");                 strBuilder.append("Date : ").append(date);                 strBuilder.append("\n");                 strBuilder.append("Movie Hall : ").append(results.getString(2));                 strBuilder.append("\n");                 strBuilder.append("\n");                 strBuilder.append("Adult ticket price : ").append(formatter.format(adultPrice));                 strBuilder.append("\n");                 strBuilder.append("Student ticket price : ").append(formatter.format(studentPrice));                 strBuilder.append("\n");                 strBuilder.append("Seniors ticket price : ").append(formatter.format(seniorPrice));                 strBuilder.append("\n");                 strBuilder.append("Children ticket price : ").append(formatter.format(childPrice));                 strBuilder.append("\n");                 strBuilder.append("\n");                 strBuilder.append("Total price : £").append(formatter.format(totalPrice));                 strBuilder.append("\n");             }                                          results.close();             //String formatStr = strBuilder.toString();             //out.write(String.format(formatStr));               pw.print(strBuilder.toString());             pw.close();         } catch (SQLException sqle) {             out.println(sqle);         }     } catch (FileNotFoundException ex) {         ex.printStackTrace();     } catch (IOException ex) {         Logger.getLogger(Receipt.class.getName()).log(Level.SEVERE, null, ex);     }     showMessageDialog(this, "Receipt printing complete."); }


Can I get into Montenegro with a 34 day validity multiple-entry Schengen visa?

I asked  about entry into Montenegro on the basis of a Schengen visa. One of the answers I received said:     Holders of travel documents containing a valid Schengen visa, a valid   visa of the United States of America, United Kingdom and Northern   Ireland and the Republic of Ireland, or a permission to stay in these   countries, may enter and stay, or pass through the territory of   Montenegro up to 30 days, and not longer than the expiry of visa, if   the period of validity of the visa is less than 30 days.   As per my trip across Europe, I will be applying for a Schengen visa with a validity of 34 days since my itinerary goes like this (in the same sequence):  - Milan, Italy                 (4 days) - Budapest, Hungary            (6 days) - Dubrovnik, Croatia           (5 days) - Mostar, Bosnia & Herzegovina (3 days) - Kotor, Montenegro            (3 days) - Brussels, Belgium            (6 days) - Paris, France                (7 days)   So I only intend to spend three days in Montenegro. Also, by the time I would have reached the entry point of Montenegro, I would have already utilised 10 days out of my validity of 34 days.  Will I get entry into Montenegro (since the paragraph on the visa page specifies that if the period of validity of the visa is less than 30 days)?  I already have my flight out of Montenegro booked to Belgium and hotel accommodation booked. Plus, I am really excited about visiting Kotor so I do not want to give up on the opportunity to visit Montenegro.  Do I need a separate visa or can I go in with a multi-entry Schengen visa with my itinerary?  Also, worst case if I do have to apply for a visa, the embassy for Montenegro is not present in my country (India) and they have said on their website to apply to the "Republic of Serbia" Embassy which is in Delhi. I live in Mumbai. It is not possible for me to go to Delhi just to apply for a Montenegro visa.  Are there alternatives?


Blender Nodes in Editor doesn't show preview Image

I have a small problem with my blender lately. I want to make some compositing with my compositing nodes but the problem is, blender won't show me the preview Image. I have a Screenshot for you guys.    The preview Image itself is enabled, but it just won't show.  Thanks for your help in advance!  -Marten


Find linear subsets in a 2D point (xy) data

My problem is the very idea of how to start the analysis of 2D point patterns, specifically how to find linear trends within their spatial pattern.   I have XY data points which are organized like in the plot, which I have manually marked with red lines in order to highlight what should be determined:     suggests the use of kernel density estimation (which is the usual method I guess), but I would like to find out if there is any simpler way of doing this, avoiding the use of spatial statistics. R solution is preferred.  UPDATE:  When using the solution suggested by whuber (Hough transform) I get these lines as the most frequent ones in my scatterplot:    Obviously these are not the lines I was searching for, but nevertheless it would be interesting to determine the very points that lie on the red line, for example.


Remove white spaces from properties in list of the objects?

I have this list of object:  public class Location {     public string area { get; set; }     public string sensorId { get; set; }     public string address { get; set; } }  List<Location> items = List<Location>(){ new Location(){area = "london ", address ="king road", sensorId ="2134"}, new Location(){area = "moscow",  address ="george str", sensorId ="2134"}, new Location(){area = "york ",   address ="johnson str ", sensorId ="2134"}, new Location(){area = " tokyo",  address ="king road 5", sensorId ="2134"}, new Location(){area = "paris",   address ="elitom road", sensorId ="2134"} }   how can I remove white spaces in area and address properties in items variable using linq?