A Profile Page for all the StackExchange accounts - from account owner's POV

I think its good if we have one user account for all the SE sites(i.e. a StackExchange Profile).   Profile page should facilitate (from account owners pov):   List all the SE sites we have subscribed and we can visit the site account by clicking on the link. A summarized status of each account (e.g. whether there are new replies and comments) List SE sites we have not subscribed and instant subscription capability to any SE site.  Facility for grouping and using separate names.(It seams, some users don't like the idea of one profile . If a user doesn't want others to see all his/her accounts, then user can use separate names per group or account and set-up visibility settings so only the accounts with a similar screen names will be shown together. Yet account owner can manage them at one place )   Having a SE profile page will allow users to have separate accounts for each site, still managing them will be much easier. I am not suggesting to remove the profile pages we have at SE Q&A sites, I think separate profiles should be there since each site serves a different cause. Adding a link on each SE Q&A profile page, which will direct the user to SE main profile will be sufficient.  In the prevailing system visiting a SE site, which we don't use often, is a 3 step process. Lets say one wants to visit SE TeX but he/she has bookmarked StackOverflow only. Then steps should be StackOverflow > accounts > SE TeX. But if we have a Profile page at StackExchange, then it will be a 2 step process SE Profile > SE TeX.  If we have a SE site that we visit very often then we can bookmark it in our computer. But bookmarking all the SE sites we have signed up is pretty messy thing to do. So if SE provides a "StackExchagne Profile" page we simply can bookmark our profile page instead of bookmarking everything.  From StackExchange's point of view, enabling grouping facility will reduce the size of the user database.  Similar ideas were discussed in following pages, but I opened a different Question since the facilities I am requesting are different to them.   (1)  (2)  (3)


is it possible to convert the code using list comprehension

I am trying to convert the display the content of the list such that only three elements print in each line, and able to write the below code using if/else, which is working as expected.. lst = ["s1","s2","s3","s4","s5","s6","s7","s8"]  cnt=0 var4=""  for i in range(len(lst)):     if (cnt%3) == 0:         var4 = var4 + "\n" + lst[i]     else:         var4 = var4 + ", " + lst[i]     cnt +=1       print(var4)  Output: s1, s2, s3 s4, s5, s6 s7, s8  Trying to find if the same result can be achieved using List Comprehension or some other efficient possible way. thanks..!!


eclipse tells me my project has errors, nothing is red-highlighted

This happened to two programs of mine now and makes absolutely no sense. It usually comes about when I'm adding a resource file (in this case, a menu). In the package explorer: -the project name has a small red x, indicating that there is an error in one of its files -none of the sub-folders or files have an x or show any red highlights  None of my code has errors! Ocasionally, I see this:  [2010-09-02 16:09:20 - FallDown] 'default' is not a best match for any device/locale combination. [2010-09-02 16:09:20 - FallDown] Displaying it with 'Normal, Not Long, Landscape, Medium Density, Finger, Soft, Qwerty, Trackball, 480x320'   What is going on?


Catan: Cities and Knights: "Using" progress cards to get them out of your hand

Can you "use" a mining card without being adjacent to ore, or an irrigation card without being adjacent to wheat, in order to get them out of your hand and prevent opponents from spying them? You will get 0 cards from them but I'm mainly asking if you can use them up in this case. Can you "use" a medicine card when you can't actually build a city with it or already have the max 4 cities? Or can you "use" an engineer card when you have no city to place it on or already have the max 3 city walls? Same notion. I thought the answer was no, as you can't do it online. But I can't find anything in the rules specifically disproving it. Maybe I'm not looking hard enough. Thanks


How to derive the standard symplectic form on a 2-sphere in cylindrical polar coordinates?

I have already know that at a point $p\in S^2$ with $u,v$ the tangent vectors at $p$. Then the standard symplectic form is $\omega_p(u,v) :=\langle p,\,u\times v\rangle$ where $u\times v$ is the outer product. My question is: How can one deduce from this that the symplectic form is $dz\wedge d\theta$ in the cylindrical polar coordinates $(z,\theta)$ on $S^2$? Here, $z$ is the height and $\theta$ is the angle. Thanks.


Wrap text at any point if normal hyphenation not possible

I have data (generated from a database, not manually typed in) that mostly fits into a table cell with fixed width, but sometimes overflows because there are long words for which no hyphenation is found.  The problem can be demonstrated with the following example:  \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} \begin{tabular}{|p{1cm}|p{4cm}|} 1 & Cell where normal hyphenation is possible ÄÖÜ \\ 2 & CellwherenormalhyphenationisnotpossiblebutshouldwrapinsteadofoverflowÄÖÜ \end{tabular} \end{document}   My requirements are:   Text never overflows the cell (assuming some minimum width such that at least a handful characters have place) First priority measure to achieve 1. is the normal hyphenation If 2. fails, it is allowed to break the word at any character, so fill the line and break just before overflow would happen (disregarding normal hyphenation rules)   In the example, the overflow in cell 1 is prevented by measure 2., the normal hyphenation. The second cell overflows. I would like to have this cell treated by measure 3.  For the answer please consider:   Package seqsplit didn't help me The custom macro \wrap proposed in the answer to  comes near my wish, but can't handle the non-ascii characters ÄÖÜ (independent if they are input with utf8 input encoding or with \"A\"O\"U) As the text comes from a database, no manual editing of the cell content is wanted.   One of my ideas was to insert \linebreak[0] after every character, to tell LaTeX that a break can be made if no better opportunities exist. But this doesn't work like intended.  Thanks for your suggestions!


Determine whether the series $\sum_{n=1}^{\infty }\left ( \frac\pi2-\arctan n \right )$ converges or not.

I want to know whether the series $\displaystyle{% \sum_{n=1}^{\infty }\left[{\pi \over 2} - \arctan\left(n\right)\right ]}$ converges or not.  Some series such as $\sum_{n=1}^{\infty}\sin \frac1n$, $\sum_{n=1}^{\infty}\tan \frac1n$ are solved by the comparison test with $\sum_{n=1}^{\infty}\frac1n$. But the given series is not compared with $\sum_{n=1}^{\infty}\frac1n$. Is there another way to determine whether the series converges or not?


We are attempting to speed up the installation of oracle nodes for RAC installation. this requires that we get ssh installed and configured so that it doesn't prompt for a password.  The problem is: On first usage, we are prompted for  RSA key fingerprint is 96:a9:23:5c:cc:d1:0a:d4:70:22:93:e9:9e:1e:74:2f. Are you sure you want to continue connecting (yes/no)? yes   Is there a way to avoid that or are we doomed to connect at least once on every server from every server manually?


Possible Duplicate:          I am trying to insert a matrix inside a table, and I am looking for a good way to do this. Usually when I write matrices in equations, I use array environment, so I naively defined an array inside tabular, and it sort of works. The only problem is that the matrix itself seems to take up a huge amount of space inside the cell. An example is   \begin{tabular}{|c|c|} \hline \textbf{EKF} & \textbf{UKF}\\ \hline $Q = \left[ \begin{array}{cc} 0.1 & 0 \\ 0 & 0.1 \end{array}\right]$ & $Q = left[ \begin{array}{cc} 0.01 & 0 \\ 0 & 0.01  \end{array}\right]$\\ \hline $R = 5 \times 10^{-3}$ & $R = 5 \times 10^{-5}$ \\ \hline \end{tabular}   Is there any way to increase the spacing in the cell containing the matrix without that matrix taking up all the space?


How do I find out my Mac OSx admin password without changing it?

Please help me as I do not want to reset the password. I inherited this mac and I do not know the admin password but i aslo dont want to change it


Analytic continuation of a power series 2

Another Qual question here,  For the function $$\sum_{n=0}^\infty z^{2^n}$$,  Prove the following:  i) $f$ converges to a function analytic in the open unit disk $D$,  ii) $f(z) =z+f(z^2)$ and  iii) $f(z)$ can not be analytically continued past any point on the unit circle.  I can even see (ii) very easily, but I can not see how can I prove rigorously (i) and  (iii). Help please.


Spring STS not loading environment variables but running maven works

I'm using Mac OS Mojave with Spring STS version 3.9.7.  So I'm trying to load some environment variables such as database username & password into my application.properties file but Spring fails to load them into.  I'v used this command to set the username environment variable:  export ABC_DB_UNAME=some_username   and when I do echo $ABC_DB_UNAME or printenv I can see the value.  In my application.properties file I set the username as below:  spring.datasource.username=${ABC_DB_UNAME}   Now when running my spring sts from the IDE itself, it is not able to pick up the values and it throws an exception that      access is denied for ABC_DB_UNAME@database_endpoint.    It clearly shows that spring sts is not picking up my environment variables.  What makes it more twisting for me is that when I run the spring app via maven using the below command, it picks up the environment variables and it works just fine.  mvn spring-boot:run   but using the mvn command I don't know how I can make the IDE to trigger the breakpoints for me to debug as well.  EDIT: Testing and trying to print the environment variable using the code System.getenv("ABC_DB_UNAME") and System.getProperty("ABC_DB_UNAME") also returns null but maven still works.


I give an example below.   "They've got the kind of weapons that can zap the enemy from thousands of miles away."  How to determine here that "away" is adjective or adverb?


How can I resolve a repeatable skill check when there's no time constraint or clear drawback from repeating it?

and  seem to lean towards the idea that if an ability check can be repeated indefinitely given enough time, a drawback should occur on each failed attempt to offset that. But how can I resolve a repeatable skill check when there's no time constraint or clear drawback from repeating it? For example, making a History check in a library, lockpicking a safe that you've already stolen and brought back to your hostel, or making an Investigation check on an emptied dungeon, etc. Basically, it feels like they are going to succeed in both cases, and the roll looks useless.


How do you set the alt attribute with the Media module widget?

I've tried both 7.x-1/7.x-2 branches of the Media module and can't find a way to set the alt-attribute on a image field using the media-widget.  When I change to the image widget it's possible to set title/alt.


I am unable to figure out the output of the following program  big_num_1   = 1000 big_num_2   = 1000 small_num_1 = 1 small_num_2 = 1 big_num_1 is big_num_2 # False small_num_1 is small_num_2 # True   What is happening above? Why is one False and other True.  Source:


How to implement a save/load system in Unity?

Many game allows the player to save progress at any time and load the save back at any time (like Minecraft and Doom 3).  I would like to implement it in Unity.  I think I will need to put the value of every variable in every script into a save file, but how? Or maybe not?


Can I keep 1 specific backup on an external hard drive as it fills up and deletes older backups?

I've just moved 262GB of photos to a new external hard drive (1 TB), freeing up my MacBook Pro, 1 year old, which was dangerously low on space. I first backed them up on an existing external hard drive (also 1 TB). But now I see that this hard drive is getting full and Time Machine has started deleting older backups. That's ok. Currently the backups go to Jan 2015. But I need to keep the backup dated 2015.06.11 because that has all the photos I just deleted from the computer: these images are now on my new HD called "Photos" (and not formatted for Time Machine) and backed up in 2015.06.11 on the original ext. hard drive. So for now I'm okay, but in order to keep 2015.06.11 will I have to replace my backup ext. HD? Or is there some way I can tell Time Machine not to delete that one backup? Thanks.


Mac XAMPP Drush 'needs a higher bootstrap level to run'

I have installed Drush on a Mac and can use it to download modules for the drupal projects I have in XAMPP. However serveral drush commands like drush up give a needs a higher bootstrap level to run error message. How do I get around this issue?  Pauls-iMac:mysite Trotter$ drush up Command pm-update needs a higher bootstrap level to run - you will   [error] need to invoke drush from a more functional Drupal environment to run this command. The drush command 'up' could not be executed.                        [error] Drush was not able to start (bootstrap) the Drupal database.         [error] Hint: This may occur when Drush is trying to:  * bootstrap a site that has not been installed or does not have a configured database. In this case you can select another site with a working database setup by specifying the URI to use with the --uri parameter on the command line. See `drush topic docs-aliases` for details.  * connect the database through a socket. The socket file may be wrong or the php-cli may have no access to it in a jailed shell. See http://drupal.org/node/1428638 for details.  Drush was attempting to connect to:   Drupal version        :  7.38                                        Site URI              :  http://default                              Database driver       :  mysql                                       Database hostname     :  localhost                                   Database port         :                                              Database username     :  root                                        Database name         :  mysite                               PHP executable        :  /usr/bin/php                                PHP configuration     :                                              PHP OS                :  Darwin                                      Drush script          :  /Users/Trotter/.composer/vendor/drush/dru                        sh/drush.php                                Drush version         :  7.0.0                                       Drush temp            :  /tmp                                        directory                                                            Drush configuration   :                                              Drush alias files     :                                              Drupal root           :  /applications/xampp/xamppfiles/htdocs/mysite   Site path             :  sites/default    The drupal sites work fine, just not with Drush. I have tried .   I notice that my issue is very similar to . The answer supplied by  sounds promising, but does not include enough information more me to be able to try it. For example I cannot find my .bashrc file which , and if I needed to create it myself I'm not sure what should be in it.


Multirow and Multicolumn with missing lines

I am trying to create a table which uses both multicolumns and multirows, and I am getting some graphical problems.   As you can see on below image, the top right corner is missing a line and the second horizontal line cuts off in the middle of a cell)    Find the code below.  \documentclass{article}  %Used to create Macro 1 \usepackage{array}  \usepackage{multirow}  %Used for \textsubscript \usepackage{fixltx2e}  %Macro \newcolumntype{"}{@{\hskip\tabcolsep\vrule width 1pt\hskip\tabcolsep}} \makeatother  \begin{document}   \begin{table}        \centering        \begin{tabular}[ht]{|c"c|c|c|c|}                \hline                \multirow{2}{*}{\textbf{Change}}          & \multicolumn{2}{c}{\textbf{Main}}       & \multicolumn{2}{c}{\textbf{Sub}}        \\ \cline{2-5}                       & \textbf{P}                & \textbf{A}                & \textbf{P}                & \textbf{A}         \\ \hline                   1      & U                         & R\textsubscript{ef}       & R\textsubscript{ef}       & U                  \\ \hline               2      & U                         & U                         & R\textsubscript{ef}       & R\textsubscript{ef} \\ \hline               3      & G                         & P                         & P                         & G                  \\ \hline               4      & P                         & P                         & G                         & G                  \\ \hline               5      & A                         & A                         & N/A                       & N/A                \\ \hline               6      & E                         & E                         & N/A                       & N/A                \\ \hline               7      & E                         & E                         & N/A                       & N/A                \\ \hline               8      & E                         & E                         & N/A                       & N/A                \\ \hline               9      & E                         & E                         & N/A                       & N/A                \\ \hline               10     & E                         & E                         & G                         & G                  \\ \hline               11     & E                         & E                         & G                         & G                  \\ \hline               12     & E                         & E                         & G                         & G                  \\ \hline               13     & R\textsubscript{ed}       & R\textsubscript{ed} &     N/A                         & N/A                \\ \hline          \end{tabular}        \caption{X }        \label{table:X} \end{table}   \end{document}   If you need any additional information, please leave a comment and I'll add info.


Check statistical significance of one observation

I have got a dataset and I need to check if one specific observation within the dataset is significantly different from the dataset's mean.      set.seed(1) data = rnorm(20) #this is my dataset  my_ob = 1.59528080 #this is my observation taken from the dataset   What kind of statistical test can I use to check if my_ob is significantly different from the mean of data?  Any suggestion? Thanks


Change edit approval threshold to (# approve − # reject ≥ N)

Currently, the threshold for approving or rejecting a suggested edit is , whichever is reached first.  This means that, when  or just  edits get approved, it's often with a vote count of something like 1 reject / 2 approve (or 2 reject / 3 approve on SO).  Typically, these edits manage to get one or two very quick approve votes from, um, , after which it's very hard for the slower and more careful reviewers to accumulate enough votes to catch up before the edit is approved.  Conversely, when a valid edit gets wrongly rejected, this very rarely happens unanimously either.  More often, you'll see something like 3 votes to reject / 2 to approve, but that single last vote, no matter how well or poorly considered, is enough to tip the scales.  So I'd like to propose a simple change to the approval / rejection threshold:        Suggested edits should be approved when S = (# of approve votes − # or reject votes) ≥ N, where N = 3 on SO and N = 2 on other sites.   Similarly, suggested edits should be rejected when S ≤ −N.      No, this change is not going to magically fix all the problems with suggested edit review.  But I believe that it would be a simple and conservative improvement over the current behavior:   For obviously good or bad edits that get approved / rejected unanimously, this suggestion would not change the current behavior in any way. For edits that get one mistaken or careless reject / approve vote (as happens pretty often), an extra approve / reject vote would be required to balance it.  This would slightly slow the review process for such edits, but not excessively so.  Further, I would argue that these are precisely the kind of edits that deserve that little bit of extra attention to make sure the eventual decision will be correct. Edits that are truly controversial, and for which the reviewer community is nearly exactly 50–50 split between voting to approve and reject, might stay in the review queue significantly longer (maybe twice as long on average) than under the current system.  However, this is a trade-off for the increased likelihood that the eventual decision will actually reflect the majority opinion among reviewers, rather than mere random chance.  In any case, even if reviewers are exactly 50–50 split, the  under the proposed scheme is only N², i.e. 4 votes for other sites and 9 votes for SO.  Even a slight bias in the voting will further reduce this.  Besides, the longer the suggestion remains in the queue, the more likely it gets that someone will short-circuit the process by casting a binding vote (mod / post owner) or by choosing to improve the edit.     Ps. If it is felt that there's an issue with , a simple further chance to address that could be to make each reject vote count as, say, −2 rather than just −1 approval votes (and change the rejection threshold to S ≤ −2 × N to compensate).  This still wouldn't help with bad edits getting unanimously approved (which isn't really something that can be fixed, except maybe by slugster's cattle prod), but it would mean that each reject vote would now effectively cancel out two approve votes, titlting the balance for disputed edit suggestions in favor of rejection and making it easier for more careful reviewers to counter the "robo-approvers".


I have already created a Trial User on Salesforce but I can not access into Marketing Cloud. How can I have a Trial User on Marketing Cloud?


database connection is not recognized in my functions

I'm having a problem regarding my database connection not recognized on my functions.php even though i have included it already. here's the code.  dbconnect.php  <?php define ("DB_SERVER","localhost"); define ("DB_USER","root"); define ("DB_PASS",""); define ("DB_NAME","hookdb");  $conn  = mysqli_connect(DB_SERVER,DB_USER,DB_PASS,DB_NAME); //test connection if(mysqli_connect_errno()){     die("Database connection failed: " .mysqli_connect_error() . "( " . mysqli_connect_errno(). ")"); }?>   functions.php  <?php require_once("dbconnect.php"); function check_query($result_set){         if(!$result_set){             die("Database query failed. ");                  }    }  function random_banner(){     $query = "SELECT COUNT(*) as total FROM manga_name";     $result = mysqli_query($conn, $query);           check_query($result);     $data = mysqli_fetch_assoc($result);     return($data);     //echo $data['total'];   }?>   im still getting the "Notice: Undefined variable: conn" error when i use the function on my page.


$2730=2\cdot3\cdot5\cdot7\cdot13$  $n^{13}-n=n(n-1)(n+1)(n^2+1)(n^8+n^4+1)$  Divisibility by $2$ and $3$ follows from the product of two and three successive terms.  Divisibility by $5$ follows from Fermat's little theorem: $$n^{5-1}\equiv1(\mod 5)\Rightarrow 5|(n^{13}-n)=(n^4-1)(n^8+n^4+1)$$  How to prove divisibility by $7$ and $13$?


Required server capabilities for a video platform?

I'm a programmer and I have made a video playing platform. But I'm not sure about hardware requirements for such a system. I think this platform will have some 10000 customer in the beginning. I do not know how to calculate but let's take these 10000 people will spend at least one hour watching videos there. What are server requirements for such a platform or how to calculate these specifications?


The Player's Handbook says that Action Surge grants one additional action on your turn, once per short or long rest.     The Extra Attack section of the PHB says that at level 11 (for example) when you use the "Attack action", you can attack three time per turn.   If Action Surge grants one additional action, and I choose the "Attack action", does that mean I would get three more attacks with Action Surge?    In other words, if I use the "Attack action" for my normal action (3 attacks) and use "Attack" again for my Action Surge action (3 attacks), would I get 6 attacks on that turn?


Free idempotent semigroup with 3 generators

On  I asked examples of finite free objects. I got answer "The free idempotent semigroup satisfies $x^2=x$ for each element $x$. And I confirm it is finite if it is finitely generated." with reference to a paper.  If I understood correctly the concept of free object, then elements of free idempotent semigroup of three generators can be seen as strings like "abaca" with "non-repeating" property: do not count for example "abcbc" because has "bc" repeats. Well, on  it is said that there is infinitely many strings of three letters with that property.  So either at least one of the answers is wrong, or then I have understood this wrong.  If given semigroup is finite, how many elements it has?


I know that the participle can be part of a verb to express continuous tense, perfect tense, passive voice. And it also can has a separate line as an adjective. The participle adjective have either active meaning or passive meaning. Ex : I am tired. ( I receive the adjective ) The book is interesting. ( I think the book is interesting, so I'm interested in reading the book.)  Recently, I have been learning the participle phrase which includes the participle and the object of the participle or any words modified by or related to the participle. The participle phrase does the whole job as an adjective. It can have either active meaning or passive meaning( like above ). Ex : Shocked at the size of the giant, she quickly ran for her life. ( she was shocked ) Having realized there is no hope for his job, he gave up. ( He had realize ) Looking at the hills, she remembered her childhood. ( she was looking at the hills )  Question 1 : Is there amy relation between participle adjective and participle phrase? (Though a participle phrase looks like a verb with object, it can function as an adjective.)  Question 2 : When do we use the present participle phrase? (at the same time as the action in the main part of the sentence?)  Question 3 : What can the present participle phrase reduce? (the continuous or simple tense? Or all of the active verbs can be reduced? )   Don't tell me it can reduce the relative clause. I know that.  Question 4 : Why do some grammar books and websites say that the participle phrase can also function as an adverbial? (Such as : After he had passed the exam, he went to study English abroad. > Passing the exam, he went to study English abroad.) What is that? It seems like an adverb being reduced to a gerund phrase with "after".  Question 5 : It is obvious that I'm confused. I wonder that either participle phrase or participle adjective do not show any tense right? (A phrase is a group of words without a finite verb, so I suppose that it does not show any tense as a non-finite.)


When Should I Use PHP mysqli_real_escape_string() Function?

I know that mysqli_real_escape_string Function can be used to prevent SQL injections. ( However, mysql_real_escape_string() will not protect you against some injections)  My question is when should I use mysqli_real_escape_string() function?  Situation 01   I have a registration form with 4 fields called First Name, Last Name, Email, Password.  Should I use mysqli_real_escape_string() to insert query also? All four fields?  Or is it enough to use in login form?  Situation 02  I have a profile page like profile.php?user_name=damith  I have used $_GET['user_name'] in many functions in this page.   Should I use mysqli_real_escape_string() in all those functions?


I wrote this element with HTML and Bootstrap.

 My Projects

                           Rects Fight!

   What should occur is that the image and link should appear inside the div, therefore inside the borders of the div when rendered.  Instead for some reason it ends up like this, with the elements outside of the div instead of the inside:    Ive checked the HTML code and everything seems syntactically correct, what could I be doing wrong?


$\mathcal{K}(L^2(\mathbb{R}^m \times \mathbb{R}^n)) = \mathcal{K}(L^2(\mathbb{R}^m)) \otimes \mathcal{K}(L^2(\mathbb{R}^n))$?

QUESTION: Is it true that for the algebra of compact operators:  $\mathcal{K}(L^2(\mathbb{R}^m \times \mathbb{R}^n))$ is as a $C^{\ast}$-algebra isomorphic to  $\mathcal{K}(L^2(\mathbb{R}^m)) \otimes \mathcal{K}(L^2(\mathbb{R}^n))$?  The latter tensor product is any $C^{\ast}$-tensor product (because the compact operators are nuclear it doesn't matter). On $L^2$ we use the ($\sigma$-finite) Lebesgue measure, but of course the algebra $\mathcal{K}(L^2)$ no longer depends on the measure. Clearly, $L^2(\mathbb{R}^{m} \times \mathbb{R}^n)$ can be identified with $L^2(\mathbb{R}^m) \otimes L^2(\mathbb{R}^n)$ by Fubini's theorem. This makes me think that $L^2$ has a better chance than other Hilbert spaces to make $\mathcal{K}(\mathcal{H}_1 \otimes \mathcal{H}_2) = \mathcal{K}(\mathcal{H}_1) \otimes \mathcal{K}(\mathcal{H}_2)$ hold.  Thanks for your help.  EDIT: Of course $\mathcal{K}(\mathcal{H})$ denotes the compact operators on the Hilbert space $\mathcal{H}$.


Proof that $K\otimes_F L$ is not noetherian

Let $F$ be a field and $K$ and $L$ be extension fields of $F$ such that  $\mathrm{tr.deg}_F(K) = \infty$ and $\mathrm{tr.deg}_F(L) = \infty$.  It seems to be proved that $K\otimes_F L$ is not noetherian by the following paper.     P. Vámos, On the minimal prime ideals of a tensor product of two fields, Mathematical Proceedings of the Cambridge Philosophical Society, 84 (1978), pp. 25-35.   However, I don't have an easy access to a university library. I would appreciate if someone would post the proof (which needs not be that of Vámos).


What is an adjective for someone who cannot make their own decisions? Like a follower?

For example, suppose Dave always did whatever his brothers would do. He would join sport teams which his friends joined and would root for whatever team the majority of the crowd would root for. He is...?


In grade school we learn to rationalize denominators of fractions when possible. We are taught that $\frac{\sqrt{2}}{2}$ is simpler than $\frac{1}{\sqrt{2}}$.  says that "there is a bias against roots in the denominator of a fraction". But such fractions are well-defined and I'm failing to see anything wrong with $\frac{1}{\sqrt{2}}$ - in fact, IMO it is simpler than $\frac{\sqrt{2}}{2}$ because 1 is simpler than 2 (or similarly, because the former can trivially be rewritten without a fraction).  So why does this bias against roots in the denominator exist and what is its justification? The only reason I can think of is that the bias is a relic of a time before the reals were understood well enough for mathematicians to be comfortable dividing by irrationals, but I have been unable to find a source to corroborate or contradict this guess.


Issue Passing an Optional Argument through Theorem Name with thmtools

I am using thmtools to create theorems, and I sometimes want the theorem name to include math symbols. In this particular project, I have used xargs to create a command that uses an optional argument, however, an error compiles whenever I attempt to pass the optional argument through for the theorem name.   I have included a MWE below:  \documentclass{article}  \usepackage{amsfonts} \usepackage{thmtools} \usepackage{xargs}  \declaretheorem{thm}  \newcommandx{\R}[1][1]{\mathbb{R}^{#1}}   \begin{document}  \begin{thm}[$\R$]     This theorem works. \end{thm}  \begin{thm}[$\R[n]$]     This theorem does not work. \end{thm}  \end{document}   Any ideas about what is causing this problem and how I can pass the argument through the theorem name?  In the log file, I get the following report:  ! Argument of \\R has an extra }. <inserted text>                  \par  l.21 \begin{thm}[$\R[n]                        $] ?


How to write a Cover Letter for applying to a PhD program in the USA

I have completed my BS and MS in physics and I want to apply at different US universities for graduate program. What I have heard from my seniors that, I should mail the program coordinator to confirm if my profile is good enough to get admitted. For that I need to write a cover letter.    Am I in the right direction?    Who should I contact, my potential adviser or the graduate coordinator, to know if my profile is strong enough for getting admitted?


In particular, I have to find the exact value of the minimum distance from $P(- \frac {15}{4},1)$ to the ellipse $ \frac {x^2}{4} + \frac {y^2}{9} =1$  Therefore, if $ \frac {x^2}{a^2} + \frac {y^2}{b^2} = 1$ is an ellipse, with the parameterization $x(θ)≔(a \cos θ,b \sin θ ),$ I have to find the value of $θ$ giving the minimum distance from $P(p,q)$ (not on the ellipse) to the ellipse is given by a quartic in $t= \tan( \frac {θ}{2}).$ A necessary condition for $x$ to be the closest point to $P$ is that $P-x$ is perpendicular to the tangent vector in $x ,$ i.e. $(P-x(θ) ). x' (θ)=0$  I can't handle the above condition to make an fuction (e.g. $f(θ)$) to find the minimum value by calculating the derivative $f'(θ)=0$ for example. Then I have to prove that rational, non-zero values of $a, b, p, q$ can be found such that the quartic factorises as the product of two quadratics with rational coefficients. Any help? Thank you


Installing Ubuntu 18.04 in ASUS Vivobook S530

I can't install ubuntu 18.04 on my ASUS Vivobook S530 . How do i install ? N.B. i have a SSD and HDD running on my laptop... will it effect anything ? I want to install ubuntu in My ssd ..


Bone Heat Weighting Failed, no solution works

I've been trying to get the headband connected to the bone. The selected piece I used Vertex Cleanup but it did nothing and deformed my mesh so I'm trying to find some solutions


How can we prove soundness property if it's possible for our assumption set to contain false assumptions?

Soundness property, to my knowledge is the property that:   $\Gamma \vdash \varphi \implies \Gamma \vDash \varphi$   If $\varphi$ is provable (a syntactic consequence) from $\Gamma$ then $\varphi$ is also a semantic consequence of $\varphi$, which I believe is saying $\varphi$ is "true".  But what if, for example, $\varphi \in \Gamma$ and $\varphi = \bot$? It appears conceivable that some of the assumptions in $\Gamma$ are false, and then we might be able to prove things from it, but semantically they would be false.  It's possible I just have the definition of soundness wrong but how is this accounted for? We would normally say that the Hilbert system is both complete and sound but is this still the case even if we begin with a $\Gamma$ that contains some false premises? Or is it "sound only in certain cases"? How does this work?


Translated content: Are they considered as duplicate or unique?

I saw some blogs in Turkish that contain translated content from English blogs. They are translated by humans not by automatic software.   I wonder if Google counts those pages as duplicate content or not? In reality, the content is duplicate clearly but is there a way for Google to detect this?


Best way to include table (of data) in a question

I would like to ask a question on Stack Overflow which includes a table of data from a MySQL database. What is the best way to include a table of data in a question?


python list.append messes up decimal places of numbers

I am taking in the values from a manifest.json file, the ranges of a variable as (4, 4.4, 0.1). This has 5 values now. In my code, I am trying to append these 5 values into a list but when I print the list, the decimal places are a little messed up      def frange(start, end, step):         tmp = start         while(tmp <= end):             yield tmp             tmp += step       core_er_val = make_tuple(config_vars['core_er_val'])     core_er = (core_er_val[0], core_er_val[1])      for i in frange(core_er_val[0], core_er_val[1], core_er_val[2]):         print i         core_er_list.append(i)     print core_er_list   So now if i print i, I get:   4 4.1 4.2 4.3 4.4  But when I print core_er_list, I end up getting:  [4, 4.1, 4.199999999999999, 4.299999999999999, 4.399999999999999]   Is there someway I can fix this as later on when I try to compare the value with the index:  indexval = core_er_list.index(core_er)   I get an error saying that the element is not found.


We currently have tempdb (8 files) on solid state drive.  We know that primary mdf and transaction log ndf are recommended to be on different drives, to reduce contention. Should tempdb files be on different drives to have consistent principle, or can they all be on the same drive?   The following article stated they are all on same drive, however looking for a background technical explanation.   ALTER DATABASE [tempdb] ADD FILE ( NAME = N'tempdev2', FILENAME = N'G:\tempdb2.ndf' , SIZE = 12288000KB , MAXSIZE = UNLIMITED, FILEGROWTH = 0 ) GO ALTER DATABASE [tempdb] ADD FILE ( NAME = N'tempdev3', FILENAME = N'G:\tempdb3.ndf' , SIZE = 12288000KB , MAXSIZE = UNLIMITED, FILEGROWTH = 0 ) ....


In what situation can I post a similar question without it being closed as a duplicate?

I came across two different situations which seem to require a reasonable duplication of a question:  Is it allowed to post the same question related to the same issue, but in two different languages? For example, I don't live in an English speaking country and I have a laptop that may require country specific model information or I want to make the search for my answer more efficient, making it visible to a greater number of people.  Is it allowed to post the same question (but maybe with different emphases) when the question requires a multidisciplinary approach? As an example, I want to make a question about bio programming languages which lies in a tiny line between two subjects involved.   To be more general, when can asking a duplicate question be considered acceptable? Edit The first situation is the point that I want to consider with more details, since this question was flagged as a duplicate and I read all answers of the original question but it doesn't seam to be clear about the different languages and countries issue. I have an Inspiron 14R 5437, which I think appears only in Brazilian market, its default ps/2 keyboard keeps pressing its keys randomly. I followed the most voted answer of this question:  I ended up with both, my touchpad and keyboard disabled and I don't have an external mouse to plug-in and the cursor wasn't showing up anyway. I applied the previous configuration and the touchpad, cursor and default keyboard are back, with the same problem back indeed. I am posting this here before to do it at Super User, because I want to be sure that it won't be flagged as a duplicate there (it happens to be a question with many duplicates) and to address more general cases of non-English speaking users.


Singlet and Triplet states: Why is the $S=0$ state defined as it is?

I'm working on some exercise regarding the spin coupling of two electrons. There we have the wavefunctions corresponding to the S values as  $$\begin{align} S = 1: &\begin{array}{c}\uparrow\uparrow \\ \dfrac{1}{\sqrt 2}(\uparrow\downarrow+\downarrow \uparrow) \\ \downarrow\downarrow\end{array} \\[5mm] S = 0: &\ \frac{1}{\sqrt{2}} (\uparrow\downarrow-\downarrow\uparrow) \end{align}$$  I understand that the three wavefunctions for $S=1$ are symmetric and the one for $S=0$ is antisymmetric. My question is, why is the combination with the minus sign is the one for $S=0$?  My thinking is that in a $\uparrow \downarrow$ or $\downarrow\uparrow$ combination the $S_z$ components would already add up to $0$ so that the minus sign would not change anything in the fact that $S=0$.   Or is it that $\downarrow\uparrow$ or $\uparrow\downarrow$ each represent a state with $S=1$ and $S_z = 0$ so that subtracting the one from the other gives $S=1-1=0$?


How to create a launch icon for anaconda-navigator in Ubuntu 18.04

I do not have so much experience in Ubuntu and I configured a environment with Anaconda. But every time I need to open anaconda-navigator I need to do this using terminal. I would like to have a launch icon for that. Could someone help me saying how can I do it?


Is there any formula for this sum of power of positive integers?

I wonder if there is any formula for this sum. $$k^\gamma+(k-1)^\gamma+\cdots+1^\gamma,$$ where $k$ is positive integer and $\gamma\in(0,1)$. And how about $\gamma<0$? Or is there any known asymptotic when $k$ tends to infinity?


How do you get large prevews of files like with Apple Finder?

I have a Macbook Pro and I search for files using Finder and Finder shows large previews of the first page of each file as I scroll through the list. I have not found that feature with Nemo or Nautilus on my Ubuntu desktop computer.   When I have to find files in a hurry I cannot afford to open them up one at a time to see if it might be the correct file.  Does Ubuntu have this feature or do I need to buy another Apple computer?


$\lim_{n\to \infty} \sqrt n(A_{n+1}-A_n) $ when $ A_n = \frac{1}{n}(a_1+a_2+\cdots+a_n)$ and $|a_n| \leq 1$

Let $a_n$, $n \geq 1$ be a sequence of real numbers satisfying $|a_n| \leq 1$ for all $n$. Define $$ A_n = \frac{1}{n}(a_1+a_2+\cdots+a_n)$$  for $n\geq 1$. Then $\lim_{n\to \infty} \sqrt n(A_{n+1}-A_n) $ is  A. $0$  B. $-1$  C. $1$  D. None of them  ATTEMPT  I tok sequence $a_n=1$ and answer came out to be 0. But how do i choose between A and D.  Thanks


When we look at parallel rail tracks, it appears to converge at a certain angle. Let us say the width of the tracks is d and the height of the eye is h. Assuming one stands in the middle of the tracks, what is the angle at which the tracks appear to converge at infinity?


I've googled and also searched the answers here but couldn't find my problem so here goes:  I know how to bevel a curve using another object and when I try it with a normal circle it's fine. But I'm trying to use this flat oval shape to bevel a larger curve of the same shape and it's not following the curve at the correct rotation. I've tried everything, rotating the bevel object, clicking random options in the object data menu.. I can't seem to budge it from looking how it is in the screenshot. In the screenshot you can see the curve I've failed to bevel correctly and also the bevel object in the bottom right.  Basically, I want the flat part of the oval to be above and below the curve, not on the sides as it is. I hope that makes sense. Anyone know what I need to do?


Java, How do I get current index/key in "for each" loop

In Java, How do I get the current index for the element in Java?  for (Element song: question){     song.currentIndex();         //<<want the current index. }   In PHP you could do this:  foreach ($arr as $index => $value) {     echo "Key: $index; Value: $value"; }


Copy the contents of a file into the clipboard without displaying its contents

How to copy the contents of a file in UNIX without displaying the file contents. I don't want to cat or vi to see the contents.  I want to copy them to clipboard so that I can paste it back on my windows notepad.  I can't copy the file from that server to another due to access restrictions.


Calculating percentage of overlap between two different layers using ArcMap

I have two different layers (Layer 1 and Layer 2) both made up of many thousands of polygons. Many of the polygons in Layer 1 overlap to differing degrees with Polygons in Layer 2. I need to calculate how much (percentage) each polygon in Layer 1 overlaps with the polygons in Layer 2.


Evaluate $\int_{-\infty}^{\infty}\frac{\sin x}{x}\mathop{}\! \mathrm dx$

I am trying to evaluate the following:  $$\int_{-\infty}^{\infty}\frac{\sin(x)}{x}\, dx$$  My first approach was to find the antiderivative but I can't seem to express it as I have not yet learnt about $\text{Si}(x)$. I then tried replacing the $\sin(x)$ with $(e^{ix}-e^{-ix})/(2i)$ but I just ended something even more complicated. Does making it go from $0$ to $\infty$ by multiplying by $2$ help?   Please help me in evaluating this integral.  By the way, I am familiar with substitution and integration by parts but not complex analysis or contour integration. However, if this question requires something I don't already know, I am willing to try and understand it.   Thanks.


Why do you have to wait 8 minutes before you can accept an answer?

A user wants to , but he can't, because of a delay of 8 minutes. Why must he wait?  See the comment at the bottom of my answer, please.


Migrated questions with a nonexistent author should still show the author's name in the questions list

I just noticed . Its author doesn't have an account on this site, which makes it show up like this on the homepage:        It looks like a simple thing - but it gets in the way of the 'flow' of the page:        Couldn't we somehow get the author's name, so that migrated questions with authors that don't have an account here still show up, like this:        Much better. Please?


Let's say I have a SVD of a matrix $A = U \Sigma V^T$, $A \in \mathbb{R}^{n \times m}$, and I'm using top-k components corresponding to $\sigma_1, ..\sigma_k$, the k largest values on the diagonal of $\Sigma$. They are also square roots of k largest eigenvalues of $A^T A$.   I encountered the sum of $$\frac{\sum_1^k \sigma_i^2}{\sum_1^n \sigma_i^2}$$ being interpreted as "preserved variability". This makes sense if $A^T A$ were the variance - but it's not, not unless the mean along the rows of A is zero. What am I missing here? Is there an inherent assumption that SVD is only applied to "normalized" $A$?


What is the meaning of the symbol "@" Before A String Literal?

What is the concept @ Before coming to select this code?  SqlDataSource2.SelectCommand = @"SELECT tblstore.storname,tblproduct.pid, tblproduct.pname, tblproduct.pprice, tblproduct.publisher, tblproduct.writer FROM tblproduct INNER JOIN tblstore ON tblproduct.storeid = tblstore.storeid WHERE tblproduct.pname LIKE @likeText"; SqlDataSource2.SelectParameters.Add("likeText", "%" + txtName.Text + "%");


Help finding a combinatorial proof of $k {n \choose k } = n {n - 1 \choose k -1}$  I have expanded it this far:  $$\frac{k \cdot n!}{k!(n-k)!} = \frac{n \cdot (n-1)!}{(k-1)!(n-k)!} $$  but then I am stuck from where to go from there.


How many network switches can I daisy chain together

We have a number of custom computer systems that need to be networked and temporarily installed around a football stadium - each computer has it's own network switch.  These computers all need to be networked to a central computer.  Up to this point, we've been daisy chaining the switches so as not to exceed cable length limits and putting the server in the middle of the chain with 5 computers/switches going off on one chain, and 5 going off in another chain and everything has worked great.  I checked network utilization on the server when looking at the network traffic from one computer, the utilization was about 0.13% of the gigabit connection, and all of the switches at each computer located throughout the stadium are gig switches.  We're running into some situations where we need to increase the number of computers/switches and possibly move the server to the end of the chain, meaning the server could be at the end a chain of 20 switches.  Home-runs are not an option due to exceeding gig network cable lengths (300ft) and fiber would be much too costly.  So, I know that it's not recommended to daisy chain network switches, but I haven't read anywhere hard and fast that says you can't do it.  Further, there is no other traffic on this network other then those computers which send small amounts of data over the network to the server.  Besides not being recommended for a standard office network (which this is not), will we run into any major issues?  When daisy chaining multiple switches, is it just a matter of excessive traffic on the uplinks closest to the server, or are there other switch routing/timing/processor issues that we would run into?  Thanks! Mike


I was trying to find a global minimum for the function $$(a + b) z + (a + c) y + (b + c) x $$ according to the following constraint: $$(xy + xz + yz)(ab + bc + ac)=1.$$ By lagrange multipliers I found $2$ as a critical point, but how  calculating the  Bordered Hessian?Please help me to calculate a  Bordered Hessian.


How can I strengthen an extra wide desk?

I am planning to build a desk that is nearly 12 feet wide to support 3 computers. There will be two cabinets on both ends, and if possible I would prefer to not need a 3rd cabinet or post in the middle to support it from sagging. Below is a picture similar to what I would like to accomplish.  What techniques could I use to strengthen the top of the desk?


I couldn't find a straight answer anywhere, so I'm asking here.  I simply want to go from my current OS, Linux Mint, to Ubuntu.  I recently left Windows 10 for this, but I very much regret it.  Ubuntu was probably what I was looking for.  So, what can I do?


I'm reading a relatively old text on Linux partitions and file systems (the LPIC 1 Certification Bible). It says:     Some versions of the Linux boot loaders cannot access a kernel that is   outside the first 1024 cylinders on a disk. By putting the /boot   partition at the beginning of the drive you can be assured of not   having a problem when accessing the kernel at boot. This problem shows   itself most often in cases of dual booting Linux along with another   operating system that is on the first partition.   Why would a boot loader have "no access to the kernel outside the first 1024 cylinders on a disk"?  Also, what does "putting the /boot partition at the beginning of the drive" mean?


Add ubuntu repository command fails to run

Sorry for the newb question. I'm trying to add a repository to my ubuntu machine:  $ sudo curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -  <<EOF >/etc/apt/sources.list.d/kubernetes.list deb https://apt.kubernetes.io/ kubernetes-xenial main EOFE: This command can only be used by root. (23) Failed writing body $ cat <<EOF >/etc/apt/sources.list.d/kubernetes.list > deb https://apt.kubernetes.io/ kubernetes-xenial main > EOF^C  But the command is 'breaking' in half when I try to run it by pasting it into the terminal. I'm having trouble with the cat EOF part of the command. This is the command that I want to run: sudo curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - cat <<EOF >/etc/apt/sources.list.d/kubernetes.list deb https://apt.kubernetes.io/ kubernetes-xenial main EOF  This is on Ubuntu 20.04 LTS (Focal Fossa). cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"  How can I get this working?


Incorrectly created file in /etc/sudoers.d file with visudo, but broke things

I tried to do what I thought the comments in /etc/sudoers was telling me:  # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file.   Then:  : ~ ; visudo --help visudo - safely edit the sudoers file  usage: visudo [-chqsV] [-f sudoers] [-x file]   But I didn't read the bit after that more carefully, so I typed:  sudo visudo -x /etc/sudoers.d/dci   Instead of  sudo visudo -f /etc/sudoers.d/dci   Now, I'm stuck. Any command I try to do with sudo gives me:  >>> /etc/sudoers.d/dci: syntax error near line 1 <<< >>> /etc/sudoers.d/dci: syntax error near line 1 <<< >>> /etc/sudoers.d/dci: syntax error near line 2 <<< … >>> /etc/sudoers.d/dci: syntax error near line 58 <<< sudo: parse error in /etc/sudoers.d/dci near line 1 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin   And without sudo, unsurprisingly:  : ~ ; rm /etc/sudoers.d/dci rm: remove write-protected regular file ‘/etc/sudoers.d/dci’? y rm: cannot remove ‘/etc/sudoers.d/dci’: Permission denied   How do I fix this?  Update:  After trying the solution from , I got the following result:  : ~ ; pkexec visudo ==== AUTHENTICATING FOR org.freedesktop.policykit.exec === Authentication is needed to run `/usr/sbin/visudo' as the super user Authenticating as: DCi Admin,,, (dci) Password:  polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie ==== AUTHENTICATION FAILED === Error executing command as another user: Not authorized  This incident has been reported.   I was guessing this was because I was supposed to be using root password, but that's possibly a wrong guess.   then fixed that problem.


Are there any real examples of Infinite, or possible infinite, in our universe?

infinite small or large, infinite slow or fast, infinite long time or short, any kind of infinite counts. Are there any real-life example out of Math, that is infinite? This is the whole knowledge I know now: size: I know Planck length is the observation size limit, so, are there 0 point particles exist? Electrons don't have size, but is it the same to say "don't have size " and "size is 0"? Observable universe have a 45 Billion light year radius, so there is a maximum size limit, right? time: Planck time is the shortest time; the life span of the universe is the longest time. speed: Light speed is the fast limit; 0 kelvin does not exist, so 0 speed does not exist. mass: The energy of our universe is finite so the mass is finite, information is finite too. difference: not only 0 speed does not exist. all rational number are not exist, all number are not constant, in real life. Can you find exactly 3 apples? no matter how did you define what is "a apple" you always get more or less amount of your definition in real world. Did I made mistakes? Are there any examples that are infinite? P.S. I don't know which tag this question belongs to. help me to add them please. P.S. help to Solve the question, not Block the question, please.


How can too much Virtual Memory negatively impact performance?

In Java, I have heard time and time again that too much memory can impact performance negatively. When I state memory, I am referencing virtual memory. Specifically I hear this more often than not when it comes to java -xmx.   I understand assigning too much virtual memory and systems with a low amount of RAM, but other engineers I have talked with have told me that even on higher-powered machines, you still want to ensure xmx is not overzealous. Is there a standard calculation everyone uses to determine this information such as on a 16GB machine you only use 1/4 for xmx? 1/8th for page file? I ham having a hard time grasping why too much memory is a bad thing.   I have been searching all over the internet and so far my google-ninja skills have not been sufficient to find a good answer.  I have looked at  and this does not really appear to answer my question (or I am just slow and need to re-read it a couple of times). I understand that systems will pull a chunk of memory and reserve it for themselves and I understand increasing xmx if out of memory errors are appearing.   My understanding is that xmx should not just be given a higher memory number (ex. 8096) unless the application requires it. I fail to understand what is so bad about assigning (ex. 8096), even if the application runs fine with (ex. 4096) etc.


I have recently read in a script about statistical methods in a chapter about linear regression that:  Given an $n \times k$-matrix $A$, we have $$A^T A = \sum_{i=1}^{n} a_i^T a_i$$ where $a_i$ denotes the $i$-th row of $A$.  Unfortunately, the author doesn't give a proof of that and I can't figure out one myself. Maybe someone can help me. source:  on page 10


What is the difference between `a[bc]d` (brackets) and `a{b,c}d` (braces)?

What is the difference between a[bc]d and a{b,c}d? Why do people use a{b,c}d when there is already a[bc]d?


Story about magic/programming with some Greek mythology

In this story magic is done by writing command-line sort of programs.  In the story the main guy ends up using some magic and ends up making his grandmother or something mad and ends up in hiding.  The whole story ends up with their “familiars”, constructs or AI's that they have created, kinda rebelling.  The main character's name was something like Raven.  There are a couple of characters that are semi-related to some greek mythology gods, but i can't think of which.  Oh, the main character and his family are gods, or something like that, and that's why they can do magic.


How to access a rar file without password

So I have this very, very old rar file that my uncle compressed. And now he has passed away. So the problem is, it has a password. He told me that the file is for me but he never told me the password. It is the only thing I have that reminds me of him and I would like to know if there is a way to bypass the password from the rar file.  I would love some help.  :|


I can't upgrade through do-release-upgrade due to a slow internet connection, so I downloaded the iso file, and mounted it:  sudo mount -o ro ~/kubuntu-14.04-desktop-amd64.iso /media/emcdrom  It's mounted, ok, But there is no any autorun or *.sh's, so what I should do next?  p.s. i know, in old (10., 11.) distributives it will be done by kdesudo "sh /media/cdrom/cdromupgrade" command, but, like i already said - there is no cdromupgrade.sh or any other *.sh. Only wubi.exe and grub boot core.


Does the suffix -gate necessarily refer to a political scandal? Can it refer to a scandal involving large businesses but no government officials?   Could burgergate refer to a scandal in which a company passed horse meat off as beef for burgers?  I'd appreciate your help.


is it possible to use hillshade function in ArcMap to calculate shadow areas of buildings or simulate shadows of buildings, using DSM of the buildings and the sun angle and azimuth?


Black screen after boot in Ubuntu 15.04 (x86_64), Intel HD5500 (i915 driver)

I know this question has been asked so many times (since 2011 from what I found out), but none of the responses seem to resolve the issue in my laptop, so apologies for the repetition.  I tried appending "nomodeset" to the grub boot and it no only doesn't work, but also it disables hardware acceleration, rendering X11 unusable.  I also tried some other configurations ("vga=773", like the different "video:"), but nothing seems to work.  $ lspci | grep -i vga 00:02.0 VGA compatible controller: Intel Corporation Broadwell-U Integrated Graphics (rev 09)   I installed packages grub2-splashimages and grub2-themes-ubuntu-mate, assuming it could be that just there was nothing configured, but nothing makes any difference.  Booting on text by adding "set gfxpayload=text" works, and it shows the textual booting process. But I didn't get anything useful from that ... (but that it takes a minute to start the cryptswap thing, the longest part of the boot process apparently)  I didn't see anything in dmesg that stand out, but then I wouldn't know what to look for.  Also I get random blanking of the screen during normal work: the computer is still working (even sound works), but some times the screen suddenly goes black while I'm typing. I recover from that by pressing the power button (going to suspend mode) and then coming back. I've seen reports of this also elsewhere, but it is a different graphics card.  Any ideas ? Many many thanks in advance for any help!  ps: let me know if any other information I can post here would help  Some references I looked and tried already:      After trying the answer to the apparently duplicated question:    It seemed to have worked for a week, but I think it was only a coincidence, it's now randomly happening again. I've tried repeating the same commands and it doesn't have an effect.  It even happened once in the session manager, while i was typing my password to log in.  Any ideas ? Thanks in advance!


Can we capture click activity of links in landing pages and generate reports based on the click activities of these links?

Can we capture click activity of links in landing pages that are used in emails ? Is there a way to generate reports based on the click activities of these links ? I can see Reports for landing pages in SFMC but these are opens/clicks activity of overall landing pages and not the links present in them.


Which is right? After school vs after the school?

I wonder which sentence is the right one.     What are you going to do after school?   vs     What are you going to do after the school?   To me, I feel like "after the school" is the right one, but I might saw "after school" on the TV before.


Formula for determinant of block matrix with commuting blocks

On , I saw the following formula  $$\det\begin{bmatrix}A & B\\ C & D\end{bmatrix} = \det(AD-BC)$$  if $C$ and $D$ commute. Is this always true?   Or is there a good counter example for each $2 \times 2$ block matrices?


i'm building a website to convert PSD files to PNG and i have two options to choose a domain:   convert-psdtopng.com convertpsdpng.com   I need the word convert to be there too.  Which one do you think is better to rank on "convert psd to png" keyword?  Thanks!


How to delete keyboard shortcut ubuntu 18.04

I set CTRL+ALT combination key to change language, but now I want to delete it due to conflict with others.  I tried doing the reset from settings->Devices->Keyboard but it still  remains.  Can someone help?


Why Can't I shrink log file in full recovery mode

I have a log file that is 302MB.  I have done a log backup which has left the log file mostly free (I can see this through the Disk Usage standard report)  If i try to run   DBCC SHRINKFILE (N'AdventureWorks2014_Log' , 0, TRUNCATEONLY)   or   DBCC SHRINKFILE (N'AdventureWorks2014_Log' , 0)   the file is still showing as 302MB.  I know I can change the database to simple recovery, then run one of the commands above and set back to full recovery (and then do a full backup to make sure the database is not in )  However, why can I not shrink the file in full recovery mode?  I know shrink isn't something you should do, but in my real world database, since no one had ever backed up the transaction log it had grown to 30GB and now regular log backups have been put in place to prevent growth of this level


Should i disconnect my windows 10 drive before installing a dual boot ubuntu

I'm planning installing ubuntu gnome to a fresh ssd and setting up a dual booting system with an existing windows 10 install.  From what I can tell, windows is installed in legacy bios mode.  I've seen some conflicting advice around whether it would be best to disconnect my windows 10 drive when performing the install, and then restart with the windows 10 drive back in and set up a bootloader (like grub) via the command line.   Is this neccesary, or will ubunutu be smart enough to detect the windows 10 install when I set up from a live usb and set up the dual boot for me?   Thanks for any advice - I appreciate this may be a matter of opinion if both are viable options.   Pete


How much money can an Indian tourist carry to London. Is there a regulation by the Indian government or Uk Govt.


Keep author name in multiple citations with common author

I am using bibtex and natbib. The default style is to drop the name of the author when citing multiple works with a common author, e.g.:  [Author et al., 2001,2002,2003]  but I want it to read:  [Author et al., 2001; Author et al., 2002; Author et al., 2003]  % tex file \documentclass{article} \usepackage{natbib} \begin{document}  Blah blah blah \citep{author01,author02,author03}. \bibliographystyle{plainnat} \bibliography{refs} \end{document}  % bib file @misc{author01, author = {Author, A.}, year = {2001}, title = {blah}, } @misc{author02, author = {Author, A.}, year = {2002}, title = {blah}, } @misc{author03, author = {Author, A.}, year = {2003}, title = {blah}, }


Can I export a maintenance plan without using Integration Services?

I'm trying to export a simple maintenance plan from an SQL Server instance.  I want to check the export into source control, and apply the exported maintenance plan to functionally identical instances.   and  recommend using Integration Services to export the maintenance plan.  When I try to connect to Integration Services on the Export target, I receive the following error:     Connecting to the Integration Services service on the computer   "WEBSERVER" failed with the following error: The specified service   does not exist as an installed service.   We chose to disable Integration Services on WEBSERVER because we use this box only for serving data to consumer applications. All data on WEBSERVER is replicated from a backend instance. Integration Services is used heavily for processing data on the backend instance.  Is there a documented way to export a maintenance plan without using Integration Services? Does Microsoft support it?


exit ssh and still have a command running?

I am running a command on a server. It comes with this library .  Basically I have a for loop that does image procession on a lot of files.  Command  runs for hours and will run for hours. I am wondering, can I exit ssh and still have those commands running on remote machine? Does exiting ssh sends some signal to end current command execution?  The other thing that I noticed..Although I am running command remotely, my laptop is overheating. Activity monitor shows bash is using 70% of cpu. I am on macbook pro  Now this is strange. How can remote command cause strain on local machine?


What is the maximum runs allowed to take by running between the wickets?

What is the maximum number of runs allowed to take by running between the wickets per ball including overthrows in international cricket?  If a batsman doubted that he or his partner didn't get reach any of the runs, are they allowed to run more than the maximum number?


Bitbucket: forgot to put data folder in gitignore. Now repos contains 1GB of temp storage data. How to clean it?

So, it's in the title pretty much.   The code creates a temp folder Data with loads of intermediate output in it.   I forgot to put that folder in .gitignore, then hit pushed to master and went to sleep. Now the repos is too big by about 1GB. How can I remove these files?


How to put the axis definition in the preamble?

I have to create a presentation with lots of diagrams. I do this with the beamer class and pgfplots. I'm tired of copying the axis definition in every single diagram and I'm looking for a way to put it in the preamble of the presentation file.  Tried to create a newcommand \axisdefintion but this didn't work.  Is there a way to have the axis definition in the preamble (except for the title)?  This is what such a diagram would look like:  \begin{tikzpicture} \begin{axis}[     title={Some Title here},     every axis label/.append style={font=\sffamily\footnotesize},     width=\textwidth,     axis line style=thin,%Achsenstärke     filter discard warning=false,     axis line style={gray!30},     axis y line = center,     axis x line = center,     y tick label style={font={\sansmath\sffamily\fontsize{4}{4}\selectfont}, anchor=east},     x tick label style={font={\sansmath\sffamily\fontsize{4}{4}\selectfont}, anchor=north},     x label style={at={(axis description cs:1.0,-0.03)},anchor=north, font={\tiny}},     y label style={at={(axis description cs:-0.08,.5)},rotate=90,anchor=south, font={\tiny}},     xlabel=Zeit in ms,     ylabel=Sensorwerte,     every y tick/.style={gray!30},     ytick={-550,-500,...,1350},     xtick={0,1000,...,12840},     no markers,     every axis plot/.append style={thin},     every axis/.append style={font=\sffamily},     axis on top=false,     font={\sffamily},     xmin=0, xmax=12900,     ymin=-550, ymax=1360,     legend style={fill=none, draw=none, at={(1.1,0.05)},anchor=east,font={\fontsize{4}{2}\selectfont}, /tikz/column 2/.style={column sep=5pt},},     legend columns=2,     legend cell align={left},     every node near coord/.append style={font=\sansmath\sffamily\fontsize{4}{2}\selectfont, color={DarkRed}},     ]     %%Plots     %%add some plots here \end{axis} \end{tikzpicture}


Recently I was looking through developer options on my Moto X and I was interested by the option to do runtime in either dalvik or ART. After doing some research I decided to change my runtime to ART. I was wondering if this was a good choice or if I should continue running my phone on Dalvik. Let me know what you think.


If I say "here's some tips", is that correct? Doesn't sound right to me. I would have thought it should be "here are some tips".


no wifi after upgrade to 15.04 (no interface showing) bcm4313

I just upgraded to 15.04 and now the network connection icon shows but there is no wifi in the network options. This is on a hp dm1 bcm4313.   ifconfig only shows "eth1" and "lo"  iwconfig says no wireless   running kernel 3.19.0-17  I tried this:  HP-Pavilion-dm1-Notebook-PC:~$ lshw -C network  WARNING: you should run this program as super-user.   *-network UNCLAIMED             description: Network controller        product: BCM4313 802.11bgn Wireless Network Adapter        vendor: Broadcom Corporation        physical id: 0        bus info: pci@0000:03:00.0        version: 01        width: 64 bits        clock: 33MHz        capabilities: bus_master cap_list        configuration: latency=0        resources: memory:f0200000-f0203fff   *-network        description: Ethernet interface        product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:07:00.0        logical name: eth1        version: 06        serial: 80:c1:6e:5a:45:30        size: 10Mbit/s        capacity: 1Gbit/s        width: 64 bits        clock: 33MHz        capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8168e-3_0.0.4 03/27/12 latency=0 link=no multicast=yes port=MII speed=10Mbit/s        resources: irq:41 ioport:2000(size=256) memory:f0104000-f0104fff memory:f0100000-f0103fff WARNING: output may be incomplete or inaccurate, you should run this program as super-user.   then I followed this thread :    and the adapter now recognizes wifi networks BUT the connection is extremely slow.  Any ideas?


Sublime regular expression to match wx.data.xxx but not wx.data.yyy

I want to find all instances where   wx.data.xxx  but not  wx.data.update OR wx.data.get  I tried (wx.data.)[^update][^get] but it doesn't work.


Are all multiplicative functions additive?

Suppose $cf(x)=f(cx)$ and $f:\mathbb{R}\to\mathbb{R}$. I believe it follows that $f(x+y)=f(x)+f(y)$.   Proof: There is some $c$ such that $y=cx$. Then  $$f(x+y)=f\left((1+c)x\right)=(1+c)f(x)=f(x)+cf(x)=f(x)+f(cx)=f(x)+f(y)$$  QED.  I wonder if the same thing holds for when $f:\mathbb{R}^n\to\mathbb{R}^n$? I can't use the same trick, because all vectors are not scalar multiples.  I tried thinking of it in terms of basis units, but didn't get anywhere.


How can you make explosives snowballs in 1.15.1 java edition?

For a map my friend was making, I was trying to make grenades but they failed. I need a data tag that can make it so that as soon as it touches the ground it explodes.


How to save battery on Moto G 2nd generation without installing third party apps?

How do I save battery life on my Moto G 2nd generation phone without installing third party apps ?


Maximize and Minimize a 12" piece of wire into a square and circle

A wire of length 12" can be bent into a circle, a square or cut into 2 pieces and make both a circle and a square. How much wire should be used for the circle if the total area enclosed by the figure(s) is to be: a) a Maximum b) a Minimum  What I've got so far is that the formula for the square is $A_s=\frac{1}{16}s^2$ and the circumfrance of the circle to be $P=12-c$ and area to be $A_c = \pi(\frac{P}{2\pi})^2$ where $c$ is the length of the wire for the circle and $s$ is the length of the wire for the square. Now I know I need to differentiate these formulas to then find the max and min they both can be, but what am I differentiating with respect to? The missing variable in each of the formulas? Also, once, I find the derivitives, what would my next steps be to minimizing and maximizing these? And did I set the problem up correctly? Thanks for any help


What prevents this magnetic perpetuum mobile from working?

As a child, I imagined this device, which may seem to rotate indefinitely. I have two questions.   Is this perpetual motion machine already known? If it is, could you please give some references? What is the exact mechanism that makes it stop? By this, I mean an explanation, not simply "because it would break law of energy conservation". Of course energy conservation is true and this machine cannot work indefinitely. But for any known (presumed) perpetual mobile, there was an explanation, usually based on showing that the force generating the motion is . For example, Stevin obtained the laws of the inclined plane from the perpetual motion device     I would like to make some observations.   I don't try to convince anyone that it will move forever because I don't believe in breaking the energy conservation. It is true that , and nowadays some who think that there may be  in MWI believe, but I don't. But I don't consider an enough explanation simply to refer to the energy conservation. I am interested in an explanation showing exactly how the magnetic forces making it rotate, are balanced.  If the forces are balanced, only then friction will make it slow down and stop. I don't think that we can explain only by referring to friction, which in principle can be made as small as needed. There has to be a balance of forces. Why spending time trying to understand or explain something that admittedly can't work? Well, even though perpetual motion machines cannot actually work, I think they may be interesting as puzzles.


What is a good choice of letters for serial numbers?

When creating serial numbers, one could use only numbers, 0-9.  This causes serial numbers to be quite long.  To save space, one could also user letters A-Z, resulting in shorter numbers, by a factor of 1.56 (log 36 / log 10).  But this can cause trouble reading those serial numbers, since 0 and O are quite similar.  Also l and 1, and mayby I and 1, or even J and 1. So a first approximation seems to be to use the digits 0123456789ABCDEFGHKMNPQRSTUVWXYZ for serial numbers.  That is 32 digits and hence serial numbers are still 1.51 times shorter than in base-10. Is there any well-known best practice for issuing serial numbers?


How do I get console output in C++ with a Windows program?

If I have a native C++ windows program (i.e. the entry point is WinMain) how do I view output from console functions like std::cout?


Installing Google Maps without an Apple ID?

Is it possible to install Google Maps without an Apple ID?


In  there is this Statement:       shall take Care that the Laws be faithfully executed     Now I want to know whether "be" can or should be replaced by "are", and why is it not in the said Statement.


changing spotlight default to search file names, not contents

Does anyone know if it's possible to change the Spotlight default search behavior to search file names, not contents? Right now, bringing up the Spotlight field and typing "terrible" brings up a bunch of documents that have the word "terrible" somewhere in them. If you use the Finder search dialog, of course it's possible to select the 'Filename contains "terrible"' option manually, but I'd like to make this the default.


When looking at questions on StackOverflow these days I can't help but notice that most questions don't get a "proper" answer anymore. Instead, they are lots of comments to the question which try to answer it. I even had it that when I wrote a "proper" answer I was getting downvotes because I could have written a comment. Now I don't really mind the downvotes, as everyone can vote as he or she pleases, however it got me thinking if I'm doing things the wrong way.   As far as I understand the system, comments are for asking clarification questions and answers are where you put your answer in. The whole reputation system works around this assumption. Also from a usability point of view burying the answer in a thread of comments which is only shown after some clicking doesn't seem right either.  So are there some guidelines on when to put answers into comments instead of doing a "proper" answer that I just missed or did I just happen to see a pattern where no pattern exists and the majority of questions is still getting "proper" answers?


Sharepoint 2010 how to get all items in a folder contained in a list?

I have a list that contains folders.   Using c# and object model, how can I see if the folder contains any items, or return a collection of all the items in that folder.


How to get the distances (shortest path) between all pairs of points in the river network?

I have 2 vector shapefiles (one line, one point), and I have tried at least 4 ways to try to get the distance matrix at one time (and most concern the directions of each river segment)   quantum navigator GRASS tool - v.net.allpairs pgrouting roadgraph plugin   In the end I think that roadgraph plugin is the one which is the closest to my goal, and it also can set the directions of the river, but I can't modify it to get the distances between all pairs of points(and I want to get this in matrix form).  What/How could I do? Is there any other way to get this distance matrix on qgis？


Problem with solving systems of linear congruence of two variables

The problem I am given is finding a solution to the following pair of equations:  $3x + 4y$ $\equiv$ $5$ $mod$ $13$  $2x + 5y$ $\equiv$ $7$ $mod$ $13$  By reading the methodology here:   Since the modulos in my problem are also the same, I am able to use substitution, but this leaves fractions in my expressions.  I then used matrix multiplication as follows:  $\begin{bmatrix} 3 & 4\\ 2 & 5\end{bmatrix}$ $\begin{bmatrix}\ x\\ y\end{bmatrix}$ = $\begin{bmatrix}\ 5\\ 7\end{bmatrix}$   And solving this also gives me a matrix with fractions, so I am a bit lost on how to solve this problem.  Any help is appreciated. Thank you very much.


What do we call someone who's in between -a friend and an enemy!

He's a friend of mine   The message is clear. He's my friend. He wishes all good for me and helps me whenever I need one.      He's an enemy of mine   The message is clear again. He's my enemy. He wishes all bad for me and never helps me whenever I need!     He's ...... of mine!   The message is clear. He's neither friend nor enemy. He's in between. At times, he may help me but then I cannot always rely on him. He's not a friend of mine.   Other times, he does really bad to me but maybe, there was no any other go for him. He's not an enemy of mine! :)


Prove that the square of an integer $a$ is of the form $a^2=3k$, or $a^2=3k+1$, where $k\in \mathbb{Z} $

Here's my attempt to prove this. I'm not sure about it, but i hope i'm correct.  Let $a=λ, λ\in \mathbb{Z}$. Then $a^2=λ^2=3\frac{λ^2}{3}$. When $λ^2$ is divided by 3 there are three possible remainders $0,1,2$. So  $$ λ^2=3k \lor λ^2=3k+1 \lor λ^2=3k+2   $$   $ λ^2=3k \rightarrow a^2=3\frac{3k}{3}=3k $ $ λ^2=3k+1 \rightarrow a^2=3\frac{3k+1}{3}=3k+1 $ $ λ^2=3k+2 \rightarrow a^2=3\frac{3k+2}{3}=3k+2=3μ, μ\in \mathbb{Z} $   Therefore $$a^2=  \begin{cases}        3k \\       3k+1    \end{cases} $$ where $k$ is an integer.  Can someone verify this? Any help will be appreciated. Thanks in advance!


Dynamic Braking resistor chopper circuit

I want to design a standalone dynamic braking circuit for AC motor driver , because to deal with regenerative energy that the AC source cannot handle causing a DC bus voltage Rise . The concept is well established in many resources online that senses the DC bus voltage and dissipates the access energy in a " Brake Resistor ".    I want to know what is usually used circuit that is called in the diagram as "chopper module" and design it without micro controller if possible.  I donot know of an IC that is designed for this purpose solely , so what comes to mind is comparator with hysteresis with a low side gate driver to open/close Braking mosfet. but no so sure if this is a decent choice until i test in reality and see how well it will work.  My concept test circuit :      So I would like to know your comments on the subject, and corrections if i am missing something here .


Why are files duplicated in my home folder and desktop?

Files in my SSD get duplicated on my Desktop. When I delete any folder/file it gets automatically deleted from the second location (Home) and when I create a folder in any of the locations it gets created in both places.  Take this screenshot for reference:    I am running Ubuntu 19.04 LTS.


How much damage should a beholder take if my character jumps onto it and slams it into the ground?

I was wondering how to rule something in my friend's campaign.  We were fighting a modified beholder boss as a level 13 druid and a level 12 warlock. The fight was at a large summoning circle at the bottom of a 250-foot hole with a diameter of 15 feet. I, the druid, was at the top of the hole and the warlock was levitating up the hole after getting the beholder's attention.  I proceeded to use the move earth cantrip to drop 5 feet of stone on top of the beholder as it was rising up. How much damage should this do?  After a couple rounds, the beholder started to go back down after taking a lot of damage. I noticed this and polymorphed into a T-Rex and jumped in the hole. How much damage should the beholder take on impact if the T-Rex hits it, and slams it into the ground?  We then proceeded to fight the beholder which summoned 3 devils and eventually won.  TLDR: I fought a beholder in a 250-foot shaft and jumped in as a T-Rex and smashed it into the ground. How do you rule that for damage to the beholder?


$\forall n\in \mathbb N$, Let $$f_n (x)=\underbrace{\cos(\cos(\cos(\cdots (\cos}_n(x\underbrace{))\cdots)}_n$$ It is known that $$\forall x\in\mathbb R,\space \lim_{n\rightarrow\infty}f_n(x)=0.7390851332\dots$$Does the convergence uniform?


Are there ways to build mathematics without axiomatizing?

Every time I read about a theory in mathematics, it usually starts with axiomatizing the most fundamental concepts that are going to be treated.  Recently, I have started finding this troubling. In the foundational crisis, we tried to root all of mathematics on set theory and build it up from there. I believe this is a supremely elegant idea, but I have to ask myself why.  I understand why axioms are the brick wall against which all infinite regressions crash. We cannot, after all, ask why something is indefinitely. There must come a time when we simply say: because it is.  But why? What happens if we throw logic out of the window and attempt to start everything from scratch?   I have read about model and category theory and all types of order logics, but none of them seem to be enough because they are all rooted in something that eventually leads to a so-called "self-evident truth". What if infinite regressions are similar to infinite series: something that at first we assumed was non sensical but actually turns out to be really useful?  My question is: are there ways to build mathematics without axiomatizing? If no, is there a proof?


...none of them was going to Malory Towers.  This is taken from a story book, Enid Blyton - Malory Towers I think, and a pupil at school queried this with me. I can see her point, "were" sounds better (instead of was) but which is correct?


I am trying to write that the trace is the pushforward of the determinant, and so I would like to have * as a subscript beside \det in mathmode. But when I type $\det_*$ then instead the * appears below \det. Can I change this somehow?


Is there a way to completely start the game over?  Some things in the game are altered between runs and are permanently changed.  For example, there is a broom closet in the left hallway that has interesting dialogue.  If you enter it a second time on another play-through, you get more dialogue.  From then on, the room is boarded up and cannot be entered.  Is there a was to start clean without reinstalling the game or anything?


Lock or disable connections to Postgres while performing maintenance

I never have this issue with MySQL, but PostgreSQL is always a pain when trying to do any kind of maintenance. I am trying to truncate and load new data into databases on a PostgreSQL server, but there are usually active connections, and this messes up things. There is also one particular database I need to drop and create, and current active doesn't allow me to drop it. All these are setup in a script that should run. My issue is active connections is killing me and not letting the script work. Do I lock connections to the DB or block connections? How do I do this? Not as familiar with PostgreSQL as I am with MySQL.


What's a good book for an advanced undergraduate/early graduate student to learn about symmetry, conservation and Noether's theorems?

What's a good book (or other resource) for an advanced undergraduate/early graduate student to learn about ,  and ?   has a  that makes me wary of it, but something like it would be great.


How to show line numbering in nano when opening a file

Is there a way to tell nano to automatically show line numbering each time I open a file?


How to set a scoreboard that senses a certain item?

So I want to make a scoreboard that makes it so when you hold a certain item it changes to 1 and when you're not holding it the score becomes 0 again?


What is the name of this plot using vertical lines to show a distribution?

Is there an official name for this extremely simple plot, in which vertical lines indicate the distribution of some samples in a range?


How to print a date in a regular format?

This is my code:  import datetime today = datetime.date.today() print(today)   This prints: 2008-11-22 which is exactly what I want.  But, I have a list I'm appending this to and then suddenly everything goes "wonky". Here is the code:  import datetime mylist = [] today = datetime.date.today() mylist.append(today) print(mylist)   This prints the following:   [datetime.date(2008, 11, 22)]   How can I get just a simple date like 2008-11-22?


Is there any conceivable advantage of using the CLR types (e.g. `System.String` or `[String]`) over the Visual Basic keywords (e.g. `String`)?

We all know that in C# it makes no difference whatsoever whether you use String (the CLR class) or string (the C# keyword). See the following question for details:      So far, I was under the impression that the same is true for VB.NET. The  even says (emphasis mine):     The primitive types are identified through keywords, which are aliases for predefined types in the System namespace. A primitive type is completely indistinguishable from the type it aliases: writing the reserved word Byte is exactly the same as writing System.Byte.   Thus, I was very surprised to see Visual Studio 2015 make a difference: Visual Studio allows you to specify your preference (Tools/Options/Text Editor/Basic/Code Style) of Framework names (Int32/Int64/DateTime/...) over the native VB keywords (Integer/Long/Date/...).  The thing is: Once you tell Visual Studio that you prefer the Framework names, auto-generated code uses [String] (using the [] VB keyword escape, similar to C#'s @) instead of String (same for Object, Single, and all the other types where the VB keyword matches the Framework type name). I think this is wrong (and have filed a ), since the brackets clutter the code and, as demonstrated above, it does not make a semantic difference whether you use [String] (effectively referencing System.String due to VB's automatic System import) or String (the VB keyword aliasing System.String).  However, since the Visual Studio developers are very smart guys, it is entirely possible that I just overlooked something and that it actually makes sense to use [String] rather than String, hence my question:  Is there any conceivable advantage of using [String] instead of String in Visual Basic or is the Visual Studio editor just "doing the wrong thing" and uselessly cluttering auto-generated code?


Choosing subsample size (helping a friend analysing a smaller data set)

A friend of mine is working analysing 2000 twits per day and categorize them as postive, negative or neutral.  This is a really boring task but the algorithms that do this classification are not very good because they can't detect sarcasm. A simple solution to make more easy this task is to do a subsample of the original $N = 2000$ data points.   Doing some tests we saw that with $30\%$ of the data the normalized histograms of the subsample and the original data points look very similar but we need to know a better estimation of the error of doing this subsample.  Theoretically the data points are an i.i.d. sequence $(X_i)_{i=1}^N$ (big assumption) in the space $A = \{0,1,2\}$ (positive,negative,neutral). Let $(X_{(i)})_{i=1}^n$ be a subsample  of size $n \leq N$  (draw $n$ elements uniformly without replacement). In some sense I want to characterize the distribution of $(X_{(i)})_{i=1}^n$ in order to choose a $n$ such that the empirical distribution of $(X_{(i)})_{i=1}^n$  is close to the empirical distribution of $(X_i)_{i=1}^N$.   Any help will be appreciated


board = [['a']*3]*2 board[0][0] = 'b'   ...then board becomes [['b','a','a'],['b','a','a']]  Is there a way to mutate it such that it becomes... ?  [['b','a','a'],['a','a','a']]?   Thanks.


The repository ''http://dl.google.com/linux/chrome/deb bionic Release'' does not have a Release file

I am using ubuntu 18.04 LTS with Oracle VM virtual box in my Windows 10 system.   After executing this command  sudo apt-get update   I get this error  E: The repository 'http://dl.google.com/linux/chrome/deb bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.   How can I fix the problem?


Start ubuntu without a desktop environment but start an X application

I want to do a small computer just for internet browsing. I dont want to load a desktop environment to keep RAM, CPU and GPU ussage as low as possible. The computer is going to run on a ARM CPU. I dont care with Distro I use, I thought about good old plain Debian.


How does one properly define the derivative of one operator-valued function?

In Quantum Mechanics we usually consider operator-valued functions: these are functions that take in real numbers and gives back operators on the Hilbert space of the quantum system.  There are several examples of these. One of them is when we work with the Heisenberg picture, where we need to consider functions $\alpha : \mathbb{R}\to \mathcal{L}(\mathcal{H})$ such that $\alpha(t)$ is the operator at time $t$.  Another example is when we deal with exponentiation of operators, like when building the time evolution operator:  $$U(t,t_0)=\exp\left(-i\frac{H}{\hbar}(t-t_0)\right),$$  Here, the $\exp$ is usually understood as being defined via the eigenvalues of $H$.  The point is, the idea of a function $\alpha : \mathbb{R}\to \mathcal{L}(\mathcal{H})$ appears quite often in Quantum Mechanics, and sometimes one needs to differentiate these. In practice we do it formally, using all the properties we would expect, but I'm curious about how one would properly define this.  If we were dealing with bounded operators, then we could use the operator norm, which is available for this kind of operator, and define the derivative as we can usually we do when there's some norm around.  The point is that in Quantum Mechanics most of the time operators are unbounded.  So in the general case, how can one define the derivative of one operator-valued function?


Number of integers containing every digit atleast once

I have to find out number of integers that have every digit $(0-9)$ in it where integer starting with zero doesn't count i.e leading zero shouldn't be there.  So this makes the length of an integer $ \ge 10$.  For eg - for $10$ length $1234567890,9876543201,4567891023$ and so on   For 11 length = $12345678900, 12345678009$ and so on..  For $19$ length =$1122334556677889900,99887766554433220011$ and  so on..  Now given a range $L,R$ I need to find out how many such integers falls in between them.  Now I was trying out all combinations and checking if it lies within range. Is there a way to apply permutation and combination to do so efficiently and smartly ?


Difference between Ubuntu and Linux Mint

Just did a live usb of Linux Mint 11 (DVD edition) and couldn't find major differences bar unity in 11.04. Are there any major differences?


Multiline spoiler tags break with spaces between them

! If you have a multiline spoiler, you get a post that looks like this.      ! The spoiler tag does not work and breaks on a line break. Neither spoiler works and it immediately converts to a normal "quote."   The expected behavior would be similar to a multiline quote:     Hello      World   except the entire block being converted to a spoiler.    The following also behaves... weird:           Line 1         ! Line 2   Converting it to:          ! Line 1          ! Line 2      Also causes more unexpected behavior (but more expected than the previous example).


Where i can download Ubuntu 13.04 ISO torrents?

i want to download ubuntu 13.04 desktop using torrent because speed is faster than normal download, where i can download iso torrent for ubuntu 13.04. My torrent client is Utorrent.


very new to python so sorry for the silly question I've created a user input interface fn=input()  #Where the user will input version32 for instance so effectively fn=Version32  I've then imported a template word document using docx, which has been heavily modified based upon user input. I then want the file name output to be saved as "fn" or in this case Version32 output.save(r"C:\Users\XXX\XXX\XXX\'fn'.docx")  Where fn is a variable? Is this even possible, or am I barking up the wrong tree? Kind Regards!!


How do I create a custom role capability?

I wish to create a custom capability for accessing the interface of my plugin.    Should the plugin manage adding this capability to all the administrator accounts on activation? If so: Does WordPress manage adding the capability to all administrators of sub blogs and super administrators in multisite installations, or does that function need to be handled by the plugin?


Today, I used math.log() function to get the logarithm of 4913 to the given base 17. The answer is 3, but when I ran the code below, I got 2.9999999999999996.  1) Is it because math.log(x, b)'s calculation is log(x) / log(b)?  2) Is there any solution to get the correct answer 3?  import math print(math.log(4913,17))


How to get big \{ and \} braces for an equation

How to type big \{ and \} braces in this sentence:  $$P_{n,k}=\{\{x,y\}\in [X]^2: n=\min \{m\in \omega: B_m(x)\cap B_m(y)=\emptyset\}; (x,y)\notin G_k\}$$   Could somebody help me?


Have search engines recognise multi-lingual sites

I have organised my site by language using the following structure:  www.domain.com    #spanish language version homepage www.domain.com/en #english language version homepage   The site is of Spanish subject matter hence Spanish language takes priority at root of domain. Although the site is new at this stage I would hope searching for the domain from google.com and google.es would return English and Spanish versions respectively.  Are there any particular steps I need take to separate the two. Should I add them both as individual sites in Google's webmaster tools and also should I submit individual site maps for each 'site' or as a whole?   Thanks in advance.


Get hours difference from the Start Monday and End Monday from Business hours

I am still not able to get the correct difference, really struggling to make it working. The business hour set from 10 AM to 7 PM  BusinessHours bh = [SELECT FridayEndTime,FridayStartTime,Id,MondayEndTime,MondayStartTime,                     FROM BusinessHours where Name='Test Business Hour'                     LIMIT 1]; Time startTime = bh.MondayStartTime;        Time endTime = bh.MondayEndTime;  Date d = Date.today(); Datetime monTodaystart = Datetime.newInstance(d.year(),d.month(),d.day(),startTime.hour(), startTime.minute(),startTime.second()); Datetime monTodayend = Datetime.newInstance(d.year(),d.month(),d.day(),endTime.hour(), endTime.minute(),endTime.second()); System.debug('monTodaystart :: '+monTodaystart);     System.debug('monTodayend :: '+monTodayend);   Long diff = BusinessHours.diff(bh.Id, monTodaystart, monTodayend); System.debug('diff  :: '+diff);   I tried this simple example, but still its not working why ? How we can manipulate it ?  Datetime monTodaystart = Datetime.newInstance(2017,8,20,10,0,0); Datetime monTodayEnd = Datetime.newInstance(2017,8,20,17,0,0); System.debug('ID : '+bh.Id);  Long diff = BusinessHours.diff(bh.Id, monTodaystart,monTodayEnd); System.debug('diff  :: '+diff);   I dont think I should used the API here, instead I should use my custom logic, looks like some bug in the API still exists.


Prove existence of disjoint open sets containing disjoint closed sets in a topology induced by a metric.

Question: Let $(X, d)$ be a metric space. Let $A$ and $B$ be disjoint subsets of $X$ that are closed in the topology induced by $d$. Prove that there exist disjoint open sets $U$ and $V$ such that $A\subset U$ and $B\subset V$.   Is this proof correct? : By assumption, $A\cap B=\emptyset$, so there is no pair like $(x_A,x_B)$ (i.e., $x_A\in A$ and $x_B\in B$), such that $x_A=x_B$. Because every metric space is Hausdorff, so for every pair $(x_A,x_B)$ there are two disjoint open sets $U_A\ni x_A$ and $V_B\ni x_B$; and thus union of all $U_A$s (which is an open set containing A) are disjoint from union of all $V_B$s (which is an open set containing A).   Thanks a lot for any help.    PS In special case of standard metric topology on $\mathbb{R}$, if $[a,b]$ and $[c,d]$ are disjoint (say $c>b$), intuitively it is apparent that there is a 'space' between $c$ and $b$ so we can have two disjoint open sets, each of them containing $[a,b]$ or $[c,d]$.