I am trying to mount my old windows hdd with ntfs filesystem. The hdd was partitioned in 3 partitions.  /dev/sdb1  *         2048     206847    204800   100M  7 HPFS/NTFS/exFAT /dev/sdb2          206848  614402047 614195200 292,9G7 HPFS/NTFS/exFAT /dev/sdb3       614402048 1465145343 850743296 405,7G  7 HPFS/NTFS/exFAT   I can mount sdb1 and sdb2 without problems, but not sdb3 (which contains the most important data).  I tried to run ntfsfix, but this was not working:  sudo ntfsfix /dev/sdb3  Mounting volume... NTFS signature is missing. FAILED  Attempting to correct errors... NTFS signature is missing. FAILED Failed to startup volume: Invalid argument NTFS signature is missing. Trying the alternate boot sector Unrecoverable error   Gdisk also returns strange errors:    sudo gdisk -l /dev/sdb3  GPT fdisk (gdisk) version 1.0.1 Partition table scan:   MBR: MBR only   BSD: not present   APM: not present   GPT: not present  ***************************************************************   Found invalid GPT and valid MBR; converting MBR to GPT format in memory.  ***************************************************************   Exact type match not found for type code F500; assigning type code for  'Linux filesystem' Exact type match not found for type code 9600;  assigning type code for 'Linux filesystem' Exact type match not found  for type code 9200; assigning type code for 'Linux filesystem' Exact  type match not found for type code 9900; assigning type code for  'Linux filesystem'   Warning! Secondary partition table overlaps the last partition by  4760393812 blocks! You will need to delete this partition or resize it  in another utility. Disk /dev/sdb3: 850743296 sectors, 405.7 GiB  Logical sector size: 512 bytes Disk identifier (GUID):  DBE028FB-546C-4EA6-A766-727D9F67E559 Partition table holds up to 128  entries First usable sector is 34, last usable sector is 850743262  Partitions will be aligned on 8-sector boundaries Total free space is  850743229 sectors (405.7 GiB)   Number  Start (sector)    End (sector)  Size       Code  Name    1      2914562731      5373511561   1.1 TiB     8300  Linux filesystem    2    2985685759      5326929304   1.1 TiB     8300  Linux filesystem    3    2559413164      4901128831   1.1 TiB     8300  Linux filesystem    4    1316225013      5611137074   2.0 TiB     8300  Linux filesystem   I also tried to use the windows chkdsk, but the sdb3 is shown in windows, but cannot be accessed by chkdsk or any other tool (and cannot be mounted, too).  I don't want to destroy the data, so I did not do anything else and I have no idea, what to do now. As I can read and write on the other partitions, I hope, that the HDD has no physical damage. It would be great, if somebody has an idea, what do do / how to recover the NTFS signature to rescue the data?  Thank you very much in advance  Edit: Windows is installed on partition sdb2 which can be mounted. Sdb3 only contains data. Sdb3 is not accessible in windows and is not encrypted.

About two weeks ago I had a problem with my PC that my brother wrote a question about at .  I still haven't solved the problem, so my PC is unusable now.  Now I think that it would be simpler to re-install both Win7 & Ubuntu than repair them, but there're some data on their partitions. I want to recover this data.  These partitions are not mountable for some reason. I don't know why.  sudo fdisk -l about the problematic partitions:     Device    Boot      Start         End      Blocks   Id  System /dev/sda1            2048     147912703    73955328   83 Linux /dev/sdb2            206848   174079999    86936576    7  HPFS/NTFS/exFAT   And in GParted:      And the error of the mount command:  Failed to mount '/dev/sdb2': Invalid argument The device '/dev/sdb2' doesn't seem to have a valid NTFS. Maybe the wrong device is used? Or the whole disk instead of a partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?   And the exact same message for /dev/sda1  How can I recover my data from those HDDs?  EDIT     I have tried to specify the type of the drive:  $ sudo mount -t ext4 /dev/sda1 /olddisk mount: wrong fs type, bad option, bad superblock on /dev/sda1,        missing codepage or helper program, or other error        In some cases useful info is found in syslog - try        dmesg | tail  or so $ sudo mount -t ntfs /dev/sdb2 /olddisk NTFS signature is missing. Failed to mount '/dev/sdb2': Invalid argument The device '/dev/sdb2' doesn't seem to have a valid NTFS. Maybe the wrong device is used? Or the whole disk instead of a partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?   EDIT     sudo ntfsfix /dev/sdb2 returns:  Mounting volume... NTFS signature is missing. FAILED Attempting to correct errors... NTFS signature is missing. FAILED Failed to startup volume: Invalid argument NTFS signature is missing. Trying the alternate boot sector Unrecoverable error Volume is corrupt. You should run chkdsk.


TL;DR: At what percent (if any) will alcohol dehydrate you more/faster than drinking nothing?  Let's contrive a situation for dramatic effect...  A human goes out on a boat for a nice sail in the sea. But oh, the sea was angry that day, my friends. The weather turns, and the sailboat is tossed asunder. Luckily, our survivor grabs hold of some debris and is washed onto a deserted island.   Lo and behold, the debris that floated with the survivor to the island is a cooler, and it is filled with beer! There are no other food or water sources on the island. What should our survivor do in regards to the beer to stay alive for as long as possible?  The crux of the situation and my question: will drinking the beer help hydrate the human, keeping them alive longer? Or would the effect of the alcohol as a diuretic actually dehydrate them, causing an earlier demise?  Details and follow up questions: Let's assume this is an average beer ~4% alcohol. However, I know there must be a breaking point. Some kombucha or ginger beer with .5% alcohol should surely be imbibed. But should this beer still be drunk? What if instead it was a 7% IPA? Or a 14% quadruple IPA like I have in my fridge? What about wine, whiskey, or gin?  How would the situation change for a caffeinated beverage like coffee? Or what if the cooler was filled with energy drinks?  I look forward to your answers!  EDIT: The linked question, while similar, does not answer my question. It links to one 1996 study that talks about the effect of alcohol on rehydration, but not the specifics of yes, probably ok to drink at about this percent ABV, and no don't drink at above this percent. It also doesn't discuss rate of intake, changes based on body weight, etc. which are all things I would surmise have an impact on this. I understand there isn't going to be a hard and fast STOP percent level, but I would like to understand more about the underlying mechanisms and factors that change things.

This question was inspired by watching one of the Pirates of the Caribbean movies; particularly where Jack Sparrow allegedly survives on a desert island by finding an unlimited supply of rum. I've heard alcoholic drinks dehydrate you more than hydrate you, so this seems like an unsustainable strategy.  My question is threefold.    How long can a human survive by drinking hard liquor (40% alcohol by volume) for their sole water intake (ignoring food)? If it's unsustainable, what will finally take you down? If the hard-liquor approach isn't viable, what % alcohol can keep you hydrated (beer, wine, etc.)?   Related: 1.  2.


When you let a tap run at a small flow (e.g. 5ml/s), and block the straight flow with your finger, beads form, almost like conjoined drops.  Is there a good explanation for this?   P.S. It may seem like a very noob question,  but I haven't done anything like this before.

This is a simple experiment that anyone can do at home. Open your tap so that the water maintains a laminar flow, and the cross section of flow is considerably thin. Place your finger 3-4 cm below the flow. A beautiful wave-like pattern is observed on surface of flowing water, near the region of your finger. Changing the position of finger changes the 'wave-length' of the wave.   The attached picture shows how to do this experiment, though the resolution is not clear.    What is the explanation for this phenomena? Probably a harder question would be if there is an intuitive explanation for it. Thanks!      ${\bf Edit:}$ I observed a similar phenomena in the swimming pool...when the water is still, move your hand slowly along the surface of the water. It causes a 'bump' in the water, which decays away in a wave-like pattern in front of your hand. Clearly they are the same phenomena: water falling on the hand or hand moving against the water.  The answers below are very interesting (Thanks!). And as far as I can see, they are still being debated, suggesting that the phenomena is more non-trivial that it appears to be. I had accepted an answer earlier, but I am now taking it back, as I did not completely understand it. Looking forward to further discussion on it. It would be most exciting to find an answer that is elementary: without resorting to complex terminologies of fluid mechanics.


How to make a scrollbar in the tabs in the 3D view sidebar using python ?


I'm trying to initialize a multi dimensional array in Python:  SIZE=3  onedimarray=[None]*SIZE  for i in range(0,SIZE):     onedimarray[i]="{0:d}".format(i)  print(onedimarray)  multdimarray=[[None]*SIZE]*SIZE  for i in range(0,SIZE):     for j in range(0,SIZE):         multdimarray[i][j]="{0:d},{1:d}".format(i,j)  print(multdimarray)   This code when run prints:  ['0', '1', '2'] [['2,0', '2,1', '2,2'], ['2,0', '2,1', '2,2'], ['2,0', '2,1', '2,2']]   So in the one dimensional case the * operator initialized the array correctly. In the multi dimensional case each row of the array is the same.  I'm fairly new to Python and don't understand this behavior. Can anyone explain what is going on?

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


I'm new to MAC OS.   Using MacOSX 10.9.1 (Mavericks).   My external HDD is formatted with NTFS.   I need some rock-solid, free solution for reading and writing to this HDD. Any suggestions?

What is the best, easiest, preferably cheapest way to make OS X write to NTFS-formatted drives in Mac OS X?


I'd like to know if in Python I can write something similar:  FILE *file = fopen(path, mode); char tmp[block_size] = {0};  while(ftell(file) < file_length) {     fread(tmp, 1, (file_size - fw.tell()) > block_size ?                      block_size : (file_size - ftell(file)), file);      // do something }  fclose(file);

If Python does not have a ternary conditional operator, is it possible to simulate one using other language constructs?


Why doesn't TeX have a debugger? And by 'debugger' I mean a dedicated application in which you can set breakpoints and watch the values of registers, macros, etc. as they change in real time, maybe even preview, say, what a box register would look like if it was rendered right now, and try out what an ad-hoc TeX expression would expand to right now, and step through a macro expansion one expansion at a time?

..and I don't mean finding out why it doesn't compile, I mean serious debugging: breakpoints, figuring out value of variables at a given moment during run/compile, stepping, examining a stack (is there one?), etc. All the things that we take for granted when debugging a "real" programming language. Since TeX is "turing-complete", I would like to be able to really see what is going on internally.   I'm guessing that a GUI interface for the debugger would be too much to ask, but if it exists, I'd love to hear about it.


I need to capture several consecutive divs that I can recognize only with their start:
     something maybe with divs and more

     something else

     something else
   However if I do preg_match('#
.+?<div class="catched"#i',$html,$match) it will only capture the first one. I already did that, I think it's with a non-capturing group but I don't find how to do and I don't remember how I did.

For example, this regex  (.*)<FooBar>   will match:  abcde<FooBar>   But how do I get it to match across multiple lines?  abcde fghij<FooBar>


He came of a rich family.   He came from a rich family.      Which is correct?  came of or came from? Explain to me.

She is very arrogant because she comes of/from a rich family.  of is the correct preposition here. But how does using from here makes it grammatically wrong?


We have an U open set, where $U⊂\mathbb{R}^n$, and a convex function $f:U→\mathbb{R}$. We have to show that f is differentiable in a dense subset of U. I have found this exercise in a mathematics book, but there was no proof given. I tried to come up with a solution, I found that $f$ is continous, and in every compact subset of $U$, $f$ is Lipschitz. I can not move forward from this point.

If f: $\mathbb{R}^n \rightarrow \mathbb{R}$ is a convex function, i heard that f is almost everywhere differentiable. Is it true? I can't find a proof (n-dimentional).  Thank you for any help


Maybe this is a little bit crazy, and I have the suspicion that it is impossible, however here is the situation. I have an old Xbox which I don't use, and I think it's a shame that all that storage, GPU, and CPU is sitting there accumulating dust. I also have a laptop with whatever specs...  Before jumping to the final question there's a couple things I want to know and I don't know where to get the information:   If I have two identical computers, can I blend the specs of the two to make one computer? In case it is possible two do that, what do I need to learn to blend the hard disks, the GPU, and the CPU?   And the final question, formulated in the simplest way:   Is it possible to use my Xbox to compute with my laptop?

Here are a few questions, I wish you could enlighten me.   Is it possible to combine processing power of 2 computers? How do I do it?


Before the opening of the Sorcerer's Stone, when Voldemort attacked Harry and failed, was his body destroyed or only killed?

At the start of Harry Potter and the Philosopher's/Sorceror's Stone Voldemort's Killing Curse backfires      due to Lily's sacrifice protecting Harry from Voldemort.   leaving Harry with his scar      and a loose piece of Voldemort's soul   and Voldemort as a loose soul, self-described as "Less than a ghost".  Voldemort was not dead, but had no physical body (until he got better in book 4).  What happened to his body?  Did it disappear?  Or was it left in the rubble of the house, alongside the bodies of James and Lily?


I created a multivariate regression following the scheme $$y = \beta_0 + \sum^n_{i=1}\beta_i*x_i$$ and got an average deviation ofaround 5%.   When I tried the regression without the $\beta_0$ I got a more approximate accuracy now on ca. 3%.    I am creating a model where certain factors (in the 9th grade) have an impact on the students' performance (PISA Questionnaire).   Would it make sense to neglect the $\beta_0$ term? I could imagine it means something like starting performance in the beginning of the year, which is then impacted during the year. If one assumes such a starting point does not make sense, when setting it up as a 'total-school experience factors' meaning the factors have been present over the total in-school time, and thus one could say it does not make sense, to have some performance level before coming to school, as there is no entry performance test...  What do you think?

I am running linear regression models and wondering what the conditions are for removing the intercept term.   In comparing results from two different regressions where one has the intercept and the other does not, I notice that the $R^2$ of the function without the intercept is much higher. Are there certain conditions or assumptions I should be following to make sure the removal of the intercept term is valid?


Let $F$ be a finite field. Define $f : F \rightarrow F$ as $f(x) = x^3$ be a ring homomomorphism. I need to show that $F = \Bbb{Z_{2}}$ or char$F$ = $3$ I have attempted it like this Let $x, y$ in $F$ be arbitrary. Then $f(x+y) = f(x)+f(y)$ So $(x+y)^3 = x^3 + y^3$ or $x^3+3xy(x+y)+y^3 = x^3+y^3$ or $3xy(x+y) = 0$ Let $y = 1$ Then $3x(x+1) = 0$ This implies that order of $x(x+1)$ is $1$ or $3$. If it is 1, then $x$ is either $0$ or $1$. How should I proceed further?

Let $F$ be a finite field. If $f : F \to F$, given by $ f(x) = x^3$ is a ring homomorphism, then    $ F = \mathbb{Z} / \mathbb{3Z}$ $ F = \mathbb{Z}/ \mathbb{3Z}$ or  $ F = \mathbb{Z}/  \mathbb{2Z}$ $ F = \mathbb{Z}/  \mathbb{2Z}$ or characteristic of $F$ is 3. Characteristic of $F$ is $3$   For ring homomorphism, $f(x+y)= f(x)+ f(y)$ and $f(xy)= f(x) f(y)$ for $x,y \in F$. So, Charcteristic of $F$ must be 3 so that $ 3x^2y + 3xy^2= 0$, so $4$ option should be true but how to discard option 1?


I'm aware of the command for just the regular sigma:  \sum_{{a,b \geq1}}   How do I add the second line with   a \geqb?

I have the following equation, where there is a lot of stuff under the sum symbol:  \begin{equation} d(\vec{x},\vec{y})=   \sum_{Z_{xy}\in\vec{Z}_{xy},\forall x\in\vec{x},\forall y\in\vec{y}}      f(Z_{xy}) \end{equation}   In the resulting document, I find it kind of hard to read. Is there a way to write the equation to make the result more readable, e.g. putting the stuff under the sum symbol on different lines?


I'm doing a computer vision program in which I have three coplanar points and I want to know their position at all times. In other words, I want to realize when there is translation and when there is rotation.  For the translation I have no problems (at least for now), but the rotation to the sides (right and left) is driving me crazy, I can not figure out how to calculate it.  Being 3 points I work it as a triangle, I am able to know the distance between sides, angles, heights and area of the triangle. But none of this works for me since the rotation to the left and the rotation to the right are always symmetrical and therefore the computer is not able to detect what direction it is. Do you know any method for this calculation without adding more points? I'm sure this has been solved before but I don't know what else to think.  Thank you so much  EDIT  It's not a duplicate of  question because my triangles are 2D. That is the problem, I'm working with 2D coplanar points. That's what's difficult to know if the rotation is to the left or to the right because the behaviour is symmetrical.

I need to calculate the rotation matrix and the translation vector between 2 given triangles in Euclidean space.  This is really just a rotation and a translation, the lengths of sides of the triangle are equal.  Coordinates of the points are real. $P_1, P_2, P_3$ are the 3 points of the 1st triangle, $Q_1, Q_2, Q_3$ are the 3 points of the 2nd.  My idea was: I translate the center of the triangles to the point of origin with $t_1 := \frac{P_1+P_2+P_3}{3}$, $P'_i = P_i-t_1$ and  $t_2 := \frac{Q_1+Q_2+Q_3}{3}$, $Q'_i = Q_i-t_1$ and then I only need to solve the set of 9 linear equations with 9 unknown (the 9 entries of the rotation matrix $R$):  $$ Q'_i = R.P'_i $$ Afterwards I could calculate the translation with  $$ t = t_2 - R.t_1 $$ The problem is: after I translate the triangles to the point of origin the points are linearly dependent ($P_3 = -P_1 - P_2$)  So in fact I only have 6 equation with 9 unknown, which allows multiple solutions for $R$. But I need "one" precise solution, because the triangles are just parts of two identical models, which I need the rotation for.   I think the approach will work, if I use 4 points instead of 3.  But can I somehow calculate the rotation matrix with "only" 3 points?


(English is not my native language)  Today  on Russian Stack Overflow. Blocking justification:     Информация на странице вашей учетной записи вводит в заблуждение относительно вашей личности. Там размещён портрет и ссылки на учетные записи в социальных сетях совершенно другого человека. Это просто по-человечески плохо, а ещё явно запрещено пользовательским соглашением.   Я удалил всю подобную информацию. В будущем, пожалуйста, избегайте любой возможности того, что вас примут за кого-то другого.    Translate:     Information on the page of your account misleads concerning your personality. There the portrait and links to accounts on social networks absolutely of other person is placed. It simply is properly bad, and it is obviously forbidden by terms of service.    I removed all similar information. In the future, please, avoid any possibility of that you will be taken for someone another.   In my profile there was a  of my Beloved and the link to Her profile in a social network. Information was in my profile 3 months, my profile collected more than 200 viewings, anybody didn't say to me that my profile violates rules.  Well, I understand that, perhaps, photos and links to other people are forbidden. I would remove information if it is forbidden. But I wasn't warned that my actions are forbidden before blocked me.     of the moderator of Russian of Stack Overflow.     Если конфликт еще только назревает, участник получает устное предупреждение. Далее следует бан на неделю/месяц/год за первое/второе/третье серьезное нарушение соответственно. Иногда может применяться бан менее недели.   Translate:     If the conflict just becomes ripe, the participant receives the oral prevention. Further the ban for a week/month/year for the first/second/third serious violation respectively follows. The ban can sometimes be applied less than a week.    of that moderator which blocked me.     При первом случае нарушений мы часто ограничиваемся предупреждением.   Translate:     At the first case of violations we are often limited to the prevention.     But I wasn't warned about inadmissibility of my actions. If I was told that my actions violate the rules Russian Stack Overflow, I would remove the forbidden content from my profile. It is my first blocking, I respect and I don't want to violate the rules of the Stack Exchange projects.  The moderator blocked me without the prevention that contradicts words of moderators which I provided above in the text. Where projects Stack Exchange is the court where the contested decision moderators individual projects? Thanks.

One or more of the following things happened to me on a Stack Exchange site:   My post(s) were wrongly deleted or locked by a moderator A moderator posted a wrong comment on one of my posts I was suspended, but did not do anything wrong I asked a meta question, but the question was closed and/or deleted A moderator discredited me in public ...   I think a moderator has abused their power, but I feel powerless against them.  What recourse do I have now? What can I do when I feel that a moderator has abused their power, and has been repeatedly unfair in their dealings with me?


For numeric data, the basic/straightforward way to describe its distribution is to use some metrics like mean, min, max, std et al. What about tensor data (vectors and high dimensional data)? Of course, the mean, std still holds but it is a high dimensional data point. Is there any scalars that can help describe the data.

I am self-learning on linear model theory right now, and one thing I find surprising is that although $\mathbb{E}[\mathbf{Y}]$ is defined for a random vector $\mathbf{Y} = \begin{bmatrix} y_1 \\ y_2 \\ \vdots \\ y_n\end{bmatrix}$, there is no mention of further moments besides the covariance matrix.  Google searching hasn't turned up much. Are $k$th (raw) moments of $\mathbf{Y}$ considered, or is there a different idea I don't know about?  I am learning from the text  (the TOC starts in p. 17 of the linked file). By "considered," what I mean is is there such a thing as $\mathbb{E}\left[\mathbf{Y}^k\right]$, and if so, how would such a concept be defined? The book I have only covers the first raw moment, and I find it a bit strange that there is no mention of how to define $\mathbb{E}\left[\mathbf{Y}^k\right]$ given my experience in univariate probability, nor do I have the expertise to define it.  Furthermore, if $\mathbb{E}\left[\mathbf{Y}^k\right]$ isn't defined, is there perhaps a related concept that I don't know about that is used instead?


i have a point of sale program made with C#  when pressing submit button it submit the sale and print the invoice i want to make a shortcut for it so when i press a shortcut key on the keyboard it does the buttons work  here is my button Code:  private void btnCompleteSalesAndPrint_Click(object sender, EventArgs e) {     DialogResult result = MessageBox.Show("Do you want to Complete Sale and Print?\n\n -If you need any item [duplicate] (1 item  2 piece) \n -Please Increase item Quantity \n ----- by clicking + sign  ", "Yes or No", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2);      if (result == DialogResult.Yes)     {         if (txtPaidAmount.Text == "")         {             MessageBox.Show("Sorry ! you have not enough product \n  Please Purchase product or Increase Product Quantity");             // detail_info go = new detail_info();             // go.ShowDialog();         }         else         {             try             {                 sales_item();                  //Save payment info into sales_payment table                 payment_item();                  // 5 % Rewards Point add to customer Account for total Payable amount                  AddCredit();                  PrintPage mkc = new PrintPage();                 mkc.saleno = txtInvoice.Text;                 mkc.vat = txtVATRate.Text;                 mkc.dis = txtDiscountRate.Text;                 mkc.paidamt = txtPaidAmount.Text;                 mkc.subtotal = lblsubtotal.Text;                 mkc.ShowDialog();                  showincrement();                 ClearForm2();             }             catch (Exception exp)             {                 MessageBox.Show(exp.Message);             }         }     } }

I'm looking for a best way to implement common Windows keyboard shortcuts (for example Ctrl+F, Ctrl+N) in my  application in C#.  The application has a main form which hosts many child forms (one at a time). When a user hits Ctrl+F, I'd like to show a custom search form. The search form would depend on the current open child form in the application.  I was thinking of using something like this in the ChildForm_KeyDown event:     if (e.KeyCode == Keys.F && Control.ModifierKeys == Keys.Control)         // Show search form   But this doesn't work. The event doesn't even fire when you press a key. What is the solution?


Polytropic process has an equation $PV^{x}=k$.  But from this how can we conclude $C_v=\dfrac{R}{x-1}$ or $C_p=\dfrac{xR}{x-1} $ ?  I could'nt find any proof on the net.

I found this formula for a , defined by $PV^n = {\rm constant}$, in a book: $$C = \frac R{\gamma-1} + \frac R{1-n} $$ where $C$ is  and $\gamma$ is . I do not know how it was derived, can someone guide me?


In CLI interpreter id's for predefined range of integers -5..256 works as expected and integers outside of this range have different ids because they are different objects: a = -1024 b = -1024 id(a) == id(b) False  However in an actual script they behave in a way like they point to the same object: a = -1024 b = -1024 is_equal = id(a) == id(b) print(is_equal) --- True  I don't understand this behavior.

Why does the following behave unexpectedly in Python?  >>> a = 256 >>> b = 256 >>> a is b True           # This is an expected result >>> a = 257 >>> b = 257 >>> a is b False          # What happened here? Why is this False? >>> 257 is 257 True           # Yet the literal numbers compare properly   I am using Python 2.5.2. Trying some different versions of Python, it appears that Python 2.3.3 shows the above behaviour between 99 and 100.  Based on the above, I can hypothesize that Python is internally implemented such that "small" integers are stored in a different way than larger integers and the is operator can tell the difference. Why the leaky abstraction? What is a better way of comparing two arbitrary objects to see whether they are the same when I don't know in advance whether they are numbers or not?


Code:

TEST HEADER

test

test

test

test

test

test

test

test

   Css:  .RightAsideBlock {     width: 100%;     margin-bottom: 15px;     box-shadow: 0.2em 0.2em 2px rgba(122,122,122,0.5); }  .PopularTags {     color: #acacac;     background-color: #ededed;     border: 0px;     border: 1px solid #acacac;     padding: 4px 5px;     float: left;     margin: 0 5px 5px 0;     font-size: 12px; }   In result we have:    Tell me please why div.ForTags not get height auto and divs div.PopularTags move beyond the block boundary div.ForTags ?  And how make right?

Although elements like
s normally grow to fit their contents, using the float property can cause a startling problem for CSS newbies: If floated elements have non-floated parent elements, the parent will collapse. For example:

Div 1

Div 2

    The parent div in this example will not expand to contain its floated children - it will appear to have height: 0. How do you solve this problem? I would like to create an exhaustive list of solutions here. If you're aware of cross-browser compatibility issues, please point them out. Solution 1 Float the parent.

Div 1

Div 2

    Pros: Semantic code. Cons: You may not always want the parent floated. Even if you do, do you float the parents' parent, and so on? Must you float every ancestor element? Solution 2 Give the parent an explicit height.

Div 1

Div 2

    Pros: Semantic code. Cons: Not flexible - if the content changes or the browser is resized, the layout will break. Solution 3 Append a "spacer" element inside the parent element, like this:

Div 1

Div 2

    Pros: Straightforward to code. Cons: Not semantic; the spacer div exists only as a layout hack. Solution 4 Set parent to overflow: auto.

Div 1

Div 2

    Pros: Doesn't require extra div. Cons: Seems like a hack - that's not the overflow property's stated purpose. Comments? Other suggestions?


I watched a lot of videos that how to dual boot with ubuntu using Unetbootin but on the hard drive section there is only of option to select C: drive Even I have other drives too so is it possible to use another driver or not if not why. why there is only one option for C: drive only ubuntu

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


I wanted to follow this guide to avoid typing a password every time I want to use "sudo iwconfig" command    I tried the steps with "apt-get" command and it worked  sudo select-editor sudo visudo add %admin ALL=(ALL)NOPASSWD:/usr/bin/apt-get to the bottom line   but they didn't work with "iwconfig"  I believe the reason behind that is "iwconfig" source files are not stored in "/usr/bin/" directory because ls /usr/bin/ | less doesn't show anything named iwconfig  So, what is the directory I should enter before iwconfig?  Thanks in advance

On one particular machine I often need to run sudo commands every now and then. I am fine with entering password on sudo in most of the cases.  However there are three sudo commands I want to run without entering password:   sudo reboot sudo shutdown -r now sudo shutdown -P now   How can I exclude these commands from password protection to sudo?


Hyphenation of words with accents doesn't work. I'm writing my document in Portuguese so I have accents like '`~^ for some words but these words are not hyphenated. How do I solve this?  THIS WAS SOLVED BY:  (1) updating my texlive installation. (2) adding the lines   \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern}   to my document. Actually the last line is not necessary but the text font would be too ugly without it.

In this MWE, Latex doesn't hyphen the word "développement" and prefer to create a HUGE hbox.   \documentclass[a4paper,12pt,dvipsnames]{report} \usepackage[utf8]{inputenc} \usepackage[french]{babel} \usepackage{lmodern} \usepackage[a4paper, showframe]{geometry}  % Title Page \title{} \author{}   \begin{document} \section{Section}  \subsection{Subsection} \begin{description}  \item [Marhalie Toucse : ]  ingénieure de la plate-forme SORTATZ. Elle réalise   le développement du projet des tex écrit pour lipsum lagae legarc sgsi text text text text text text text text text.  \end{description} \end{document}


I'm looking to use Excel to look up and return multiple reference values for a given key. VLookup does something very similar to what I need - but only returns a single match.   I assume it'll involve array-returning and handling methods, though I haven't dealt with these before. Some Googling starts to lean on the if([lookuparray]=[value],row[lookuparray]) as part of a solution - though I can't get it to return a single match...  For example, if I have this reference data:  Adam    Red Adam    Green Adam    Blue Bob     Red Bob     Yellow Bob     Green Carl    Red    I'm trying to get the multiple return values on the right. (Comma separated, if possible)  Red      Adam, Bob, Carl Green    Adam, Bob Blue     Adam Yellow   Bob   (I already have the key value on the left - no need to pull out those values)  Any help as to how to approach handling multiple values in th this context is apprecited. Thanks.


I just don't want to reinstall it again, and I want to use it for testing only, no permanent use.

I searched here and see mention of Clonezilla and Remastersys - but nothing I found answered my question completely, so I ask:  My home PC is just a generic one, and now that I changed it to Ubuntu I really love how it's come out and how it runs better !  My office PC is a different generic set of hardware, and I'd like to 'clone' the exact same setup to it but not have to repeat all the tweaking and such that I did already.  Is there a program that will allow me to replicate/install my already customized setup from one to the other, easily ? Are there certain steps I must make before doing something like that so it'll be compatible with different hardware ?  Thanks !


I was trying to prove  $$d(xy) = x(dy) + y(dx)$$  earlier this morning and I used this  to help me understand the task.   I understood the entirety of the post for my calculus class, apart from one step.   Considering an area of a rectangle with dimensions $x$ and $y$ $xy$ makes sense.   Likewise, the area of a rectangle with dimensions $(x+\Delta x)(y+\Delta y)$ giving    $$A_1=(x+\Delta x)(y+\Delta y)=xy+x \Delta y+y\Delta x+\Delta x \Delta y$$  made sense too.   I was confused however about the subtraction of the two areas that gives  $$x \Delta y+y\Delta x+\Delta x \Delta y$$  but the small approximation of $\Delta x $ and $\Delta y$ very small, ensuring that  $\Delta x \Delta y$ is negligible afterwards made sense.  Why is there the need to subtract the areas as part of the proof for this differentiation property?

I've seen $d(xy) = y(dx) + x(dy)$, but I don't understand the principle behind it and memorizing it is lame.  Can anyone explain what is going on here?  For example from physics, $$F = {{dP} \over {dt}}$$ $$F = {{d(mv)} \over {dt}}$$ $$F = {{v(dm) + m(dv)} \over {dt}}$$ Since $$dm = 0$$  $$F = {{m(dv)} \over {dt}}$$ Since $$a = {{dv} \over {dt}}$$ $$F = ma$$


I just recently installed ubuntu and i really dont know much about it, i want to know how to easily install applications on ubuntu, cuz i have installed utorrent and teamviewer through terminal using tutorial online. but using terminal and watching tutorial of how to install applications too much, if there is any easy way like in windows double click and next next for tar.gz files or any other applications.  like i have downloaded a file   https://www.torproject.org/download/download-easy.html.en   and now i want to install it,but i dont know how cuz i will have to use terminal for this and i am not good in using terminal.

In Ubuntu 13.04 I used to use the ppa:upubuntu-com/tor64  PPA to install the 64-bit Tor Browser Bundle. However, in Ubuntu 13.10 it doesn't work anymore. How do I install the Tor Browser Bundle in Ubuntu?


I am referring to Rudin's definition 2.32 of compactness here: A subset K of a metric space X is said to be compact if every open cover of K contains a finite subcover.  Obviously X is a subset of X itself. We also knew that any metric space is both open and closed relative to itself. Then {X} is an open cover of X that contains a finite subcover which is also {X}. It seems to me that {X} is the only open cover X has.   If it really is the case that X is compact, it would follow that X is closed and bounded. Closed indeed, but being bounded would be troublesome.   I am sure one of the above statement is false, but I don't know which one.

Let $\mathfrak{C}$ be an open cover of a topological compact space $X$, and let $\mathfrak{B}\subseteq \mathfrak{C}$ be its finite subcover. Then every subset of $X$ also has the same cover and subcover! Shouldn't every such subset also be compact then?  Motivation: I read somewhere that every closed subset of a compact space is compact. I wonder why it shouldn't be the case for every subset of $X$, rather than just the closed ones.


I am a begginer in Android. I am a PLC programmer, but I would like to write application for my mobile phone. I would like to remote control RGB led via Arduino. But when I make any changes I have the error, and I don't know what is this.     E/AndroidRuntime: FATAL EXCEPTION: main                     Process: com.led.led, PID: 7790                     java.lang.RuntimeException: Unable to start activity ComponentInfo{com.led.led/com.led.led.ledControl}:   java.lang.NullPointerException                         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2412)                         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2470)                         at android.app.ActivityThread.access$900(ActivityThread.java:174)                         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1307)                         at android.os.Handler.dispatchMessage(Handler.java:102)                         at android.os.Looper.loop(Looper.java:146)                         at android.app.ActivityThread.main(ActivityThread.java:5593)                         at java.lang.reflect.Method.invokeNative(Native Method)                         at java.lang.reflect.Method.invoke(Method.java:515)                         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)                         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)                         at dalvik.system.NativeStart.main(Native Method)                      Caused by: java.lang.NullPointerException                         at com.led.led.ledControl.onCreate(ledControl.java:121)                         at android.app.Activity.performCreate(Activity.java:5458)                         at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)                         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2376)                         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2470)                          at android.app.ActivityThread.access$900(ActivityThread.java:174)                          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1307)                          at android.os.Handler.dispatchMessage(Handler.java:102)                          at android.os.Looper.loop(Looper.java:146)                          at android.app.ActivityThread.main(ActivityThread.java:5593)                          at java.lang.reflect.Method.invokeNative(Native Method)                          at java.lang.reflect.Method.invoke(Method.java:515)                          at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)                          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)                          at dalvik.system.NativeStart.main(Native Method)

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


Not that familiar with bug reports but I tried searching  for this error without success. Maybe you can help me identify if this is a duplicate of an existing bug or if a known solution exists. My question build on this previous question  that never received a solution.   My symptoms are similar but not the same, when hovering over or clicking menu button in Ubuntu 16.04, all open windows and menus crash and reappear again after a while. Same effect if I press the home button on my keyboard to open the menu. Also happens when I click Shutdown or Suspend from the top menu. This does not affect all menu items however, I am still able to open Firefox and the File Explorer from the menu. Shortcuts also work (ctrl+alt+T) and tty sessions (ctrl+alt+1-6).   Is this error the same as this perhaps? . Although My windows reappear again and as long as I use shortcuts and avoid alt-tab I can use my laptop.  An extract from syslog tells me this:  Jan  6 15:15:33 mofs kernel: [ 1294.824998] compiz[3930]: segfault at 0 ip 00007f6b31519c16 sp 00007ffc35380cc0 error 4 in i965_dri.so[7f6b30f3c000+82d000] Jan  6 15:15:38 mofs gnome-session[1590]: ** (unity-fallback-mount-helper:1803): WARNING **: Can't call IsLocked() on the Unity.Session object: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface 'com.canonical.Unity.Session' on object at path /com/canonical/Unity/Session   every new crash creates a new kernel segfault. The gnome warning line occurs sporadically.   I have tried installing Ubuntu fresh again from a USB image but after sudo apt-get update and upgrade it started happening again.  I have also tried reinstalling compiz to no effect.  This bug report  seemed promising although my screen does not turn blue, and I tried reinstalling libgdk-pixbuf-2.0-0 to no effect.   Any help would be appreciated. Let me know if you need more info.   Update: This issue is best reported and updated here  . It also provides workaround solutions until a bug fix is issued

The latest updates (4/1/2018) make my laptop constantly crash the GUI/Unity:  (Intel Pentium su4100 processor)  syslog:  Jan  5 11:38:53 1810 kernel: [ 1850.327738] compiz[11911]: segfault at 0 ip 00007f6c7baf0c16 sp 00007ffd5ec71c60 error 4 in i965_dri.so[7f6c7b513000+82d000]   After login I end up with an empty desktop, just a wallpaper, GUI/Unity are in a crash loop:   No panel.  No dash.  Can't start a program. Launcher disappears. Sidebar disappears. System crash. Windows key not working. The key combination Alt+Tab not working.   Simply, the computer is not usable. Same for guest login. The only thing working: open up a terminal CTRL+ALT+T to examine log files.  I somehow forced  to let me log in and file the bug, but still lots of problems:   Dash not working Alt+Tab not working Sometimes windows all disappear for a few seconds     Any ideas for a solution or workaround?   UPDATE     If you have the same/ very similar problems, follow the link to my    report and mark there that you're affected too. Or file your own. Please leave a comment   if you wish, or upvote - this is a nasty problem - but an answer should   offer a fix or a workaround so users can use their computer again.    Without , Ubuntu can't fix issues.


A person from the year 2250 goes back in time.  They go back 60 Million years, because they want to observe dinosaurs.  Imagine their surprise when they see T-Rex's running around like little chickens!!  That's because they neglected the Hubble Expansion that had occurred in the last 60 Million years.  So they are much larger than anything that existed so far in the past.  Is this correct?

I have looked at other questions on this site (e.g. "why does space expansion affect matter") but can't find the answer I am looking for.  So here is my question: One often hears talk of space expanding when we talk about the speed of galaxies relative to ours. Why, if space is expanding, does matter not also expand? If a circle is drawn on balloon (2d plane), and the balloon expands, then the circle also expands. If matter is an object with 3 spatial dimensions, then when those 3 dimensions expand, so should the object.  If that was the case, we wouldn't see the universe as expanding at all, because we would be expanding (spatially) with it.  I have a few potential answers for this, which raise their own problems:   Fundamental particles are 'point sized' objects. They cannot expand because they do not have spatial dimension to begin with. The problem with this is that while the particles would not expand, the space between them would, leading to a point where the 3 non-gravity forces would no longer hold matter together due to distance Fundamental particles are curled up in additional dimensions a la string theory. These dimensions are not expanding. Same problems as 1, with the added problem of being a bit unsatisfying. The answer seems to be (from Marek in the previous question) that the gravitational force is so much weaker than the other forces that large (macro) objects move apart, but small (micro) objects stay together. However, this simple explanation seems to imply that expansion of space is a 'force' that can be overcome by a greater one. That doesn't sound right to me.


How does one go about calculating the limit of the sequence $$a_n = \left(1 + \dfrac{1}{n^2} \right)^n.$$ I understand the cases of  $ b_n = \left(\alpha + \dfrac{\beta}{n}\right)^n, $ in terms of $e$, but I am missing the "trick" with regards to $a_n$.

Now this exercise looks like I need to use $$\lim_{n\to\infty} \left(1+\frac{1}{n}\right)^n=e$$ somehow, but I'm unsure of how. Bernoulli would give me $$\left(1+\frac{1}{n^2}\right)^n > 1+n\cdot\frac{1}{n^2}=1+\frac{1}{n}$$ for which the limit is $1$, but I'm not sure how that helps. Can anybody give me a tip on how to solve this elegantly?


My company asked us to set up and test remote connections to be able to work from home for the next weeks. They want me to install FortiClient for the VPN connection. I followed the steps here:  but got errors during the process. Can someone hint to what I can do? tmt@pallascat:~$ wget -O - https://repo.fortinet.com/repo/ubuntu/DEB-GPG-KEY | sudo apt-key add - [sudo] password for tmt: --2020-03-15 19:35:58--  https://repo.fortinet.com/repo/ubuntu/DEB-GPG-KEY Resolving repo.fortinet.com (repo.fortinet.com)... 208.91.114.61 Connecting to repo.fortinet.com (repo.fortinet.com)|208.91.114.61|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1020 Saving to: ‘STDOUT’  -                   100%[===================>]    1020  --.-KB/s    in 0s        2020-03-15 19:35:59 (182 MB/s) - written to stdout [1020/1020]   tmt@pallascat:~$ sudo apt-get update [sudo] password for tmt:  Hit:1 http://de.archive.ubuntu.com/ubuntu bionic InRelease Hit:2 http://de.archive.ubuntu.com/ubuntu bionic-updates InRelease              Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]     Hit:4 http://de.archive.ubuntu.com/ubuntu bionic-backports InRelease            Get:5 https://repo.fortinet.com/repo/ubuntu /bionic InRelease [1.916 B]         Err:5 https://repo.fortinet.com/repo/ubuntu /bionic InRelease   The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 18AC26395E54716D Reading package lists... Done W: GPG error: https://repo.fortinet.com/repo/ubuntu /bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 18AC26395E54716D E: The repository 'https://repo.fortinet.com/repo/ubuntu /bionic InRelease' is not signed. 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.

I added some extra repositories with the Software Sources program. But when I reload the package database, I get an error like the following:     W: GPG error:  trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8BAF9A6F   I know I can fix it using apt-key in a terminal, according to the official Ubuntu documentation. But I would have liked to do it graphically. Is there a way to do this without using a terminal?


I am trying to simulate an AR1 process which has a mean of $\mu $.  ie. $y_t- \mu = \Phi(y_{t-1}-\mu) + \epsilon_t$   says that we should do :-  arima.sim(list(order=c(1,0,0), ar=.8), n=53,sd=21) + 300   where $\mu = 300,\Phi= .8$, n = length of series  Can someone show me how this is working? How does adding $\mu$ to this equation:-  $y_t = \Phi (y_{t-1})+ \epsilon_t$   make it into :-  $y_t- \mu = \Phi(y_{t-1}-\mu) + \epsilon_t$

I need to simulate an AR(1) process with the following equation in R:   $$ X_{t} = 5 + 0.5X_{t-1}+Z_t $$  Where $Z_t$ ~ White Noise(0,1) and $T=500$.  I know I should be using the arima.sim function from the forecast package with parameters n = 500 and ar = c(0.5) but I do not know how to account for the $ \delta = 5$ or the fact that $Z_t$ is white noise with mean 0 and sd 1. I have been unable to find clear documentation on how to do this.


I get this error whenever I try to install programs using the terminal:  home@ubuntu:~$ apt-get install myunity E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   Also I'm unable to install updates using the terminal.


Base case: n=1. $1/1\le 2-1/1$. So the base case holds.  Let $n=k\ge1$ and assume   $$1/1^2+1/2^2+1/3^2+\cdots+1/k^2\le 2-1/k$$  We want to prove this for $k+1$, i.e.  $$(1/1^2+1/2^2+1/3^2+\cdots+1/k^2)+1/(k+1)^2\le 2-\frac{1}{k+1}$$  This is where I get stuck. Any help appreciated.


I am trying to find a word or short phrase that conveys the idea of reflected light, dancing light, flickering light. It is for an artistic project to name an artwork piece I am constructing where light throws patterns and colours onto a wall or surface through transparent colored film.

Is there an English equivalent of komorebi (木漏れ日), which means the sunshine filtering through the leaves of a tree (or trees)?  It is made up of three kanji and the hiragana particle れ. The first kanji 木 means ‘tree’ (or ‘trees‘), the second one 漏 refers to ‘escape’ and the last one 日 is ‘light‘ or ‘sun‘.  Komorebi can also be seen as a light curtain which is more visible after the rain because of the reflecting light from the water vapor:    Source:   It is also mentioned as the interplay between the light and the leaves which is observed especially on the ground. Additionally, there is a rare phenomenon when the light of the crescent sun during a partial solar eclipse is dappled on the ground in crescent shapes (which is circular normally):   Source:   Sunray and sunbeam come to mind but they are too general. Of course, the word is the result of Japanese culture and aesthetics influenced by the nature. But there might be a colloquial usage or scientific term regarding the phenomena related to komorebi.


Let's look at the sentence. I am bored. Now what does the sentence mean? If I consider 'bored' as an adjective it means I am bored right now. And if I consider the sentence as a passive voice of present Indefinite tense then it means someone bores me. Right? Now which meaning do I have to take? Which meaning is suitable?

In a sentence taken from the Oxford Dictionary:     ‘The inscription on his tombstone in Groombridge Church, where he is buried alongside his three children, bears his original name and no reference to his nom de plume.’   Is ‘buried’ an adjective, a , or a   because it follows the copular verb is?      Predicate nominatives complete only linking verbs. The linking verbs include the following: the helping verbs is: am, are, was, were, be, being, and been; the sense verbs: look, taste, smell, feel, and sound; and verbs like become, seem, appear, grow, continue, stay, and turn.   Or is it a past participle because the clause is in the passive voice?   Does “he is buried” mean currently his body lies in a coffin covered with soil, or  does it mean he has been buried by someone?  If we say ‘he was buried’ it clearly refers to an event that happened and ended sometime in the past. It might even suggest that the burial ground has since been changed.


We are running a Java 5 EE web app on Weblogic 10.3.6 and are having issues with the dev environment that doesn't show up in our local, near-identical environment.  The issue is that we are trying to incorporate a 3rd party library called CSRFGuard, and it works fine locally but fails to deploy on the dev server.  I put in some debugging code and the line where it fails is this:  String fileName = context.getRealPath(resourceName);   resourceName in this case is the string 'WEB-INF/Owasp.CsrfGuard.properties' which corresponds with a file named Owasp.CsrfGuard.properties located in the WEB-INF folder.  Locally, the call returns "C:\deployment\myapp.ear\mywebapp.war\WEB-INF\Owasp.CsrfGuard.properties" but on the dev server it returns null.  I unpacked the EAR file on the dev server, and sure enough, the file is there.  What am I doing wrong?

getRealPath() is returning the actual path in the local system, but returns null when deployed with a .war file.  <%@ page import="java.io.*" %> <%@ page contentType="text/html;charset=ISO-8859-1" %>  <% int iLf = 10; char cLf = (char)iLf; String a= application.getResource("/"); //String myfile = application.getRealPath("/")+ "generate.xml"; //String myfile = request.getContextPath()+"generate.xml"; //String myfile = request.getRealPath("/")+"generate.xml";  out.println(myfile);     File outputFile = new File(myfile); outputFile.createNewFile(); FileWriter outfile = new FileWriter(outputFile); outfile.write(" <?xml version='1.0' encoding='UTF-8'?> "+cLf); outfile.write(" <playlist version='1' xmlns = 'http://xspf.org/ns/0/' > " +cLf); outfile.write(" <title>My Band Rocks Your Socks</title> "+cLf);  outfile.write("<trackList>"+cLf);  %>  <%! String[] sports; %>  <%     sports = request.getParameterValues("sports");      out.println("
hello
");      if (sports != null)     {           for (int i = 0; i < sports.length; i++)          {                // outfile.writeln (sports[i]);                String total=sports[i];               String[] sa=total.split("[,]");               // String[] sub=new String();               outfile.write("<track>"+cLf);               for (int j=0;j<sa.length;j++)               {                 // outfile.writeln(sa[j]);                 // outfile.writeln("sa["+j+"]="+sa[j]);                 if( j == 0)                 {                      outfile.write("<location>" + sa[0] +"</location>"+cLf);                  }                 else if (j == 1)                      {                         outfile.write("<image>" + sa[1] +"</image>"+cLf);                       }                      else if( j==2)                           {                             outfile.write("<title>" + sa[2] +"</title>"+cLf);                           }                 }// end of inner for loop()                       outfile.write("</track>"+cLf);          //outfile.writeln();       }// end of outer for()     }      //else outfile.writeln ("none");    outfile.write(" </trackList> "+cLf);   outfile.write(" </playlist> "+cLf);   outfile.close();    %> <object type="application/x-shockwave-flash" width="400" height="170"           data="xspf_player.swf?playlist_url=generate.xml">           <param name="movie" value="xspf_player.swf?playlist_url=generate.xml" />  </object>   Can anyone provide me with an alternative for this? It would be very helpful if you showed some sample code too.


You can apply Subdivision Surface modifier to round all corners but it will result in all corners being rounded.    How do I make it such that only ONE corner is rounded?  Is it possible?

How can I cut an arc into a square plane? The gif above shows what I want to do, but, in another software.


I've often seen this property used when dealing with covariance matrices, which have just have every desirable property imaginable (e.g. they are symmetric, contain only real numbers, and are positive semi-definite), but I don't recall every seeing any use of this property outside of this context. Is it just a useful property of covariance matrices? Or is it a result of some of their non-unique properties, and if so, which properties?

I have a very simple question that can be stated without proof. Are all eigenvectors, of any matrix, always orthogonal? I am trying to understand Principal components and it is cruucial for me to see the basis of eigenvectors.


I have been trying to grid a point cloud, version1.2, LiDAR datasets which are intended to be used for hydraulic simulation of flood propagation. Already, I have used Arc* to work on the traditional (.las) format, to create lasdataset. Then, a raster dataset was created from the lasdataset and finally interpolated by means of a nearest neighbour algorithm.  The interpolated raster data were exported as txt files.   Having gone through this routine, I expected a result with header file as well as regular values in X, Y and Z orthogonality. Instead, the result I got was distorted sets of (real) numbers I could not make sense of.  I tried using Surfer* to grid txt files created from (.las) point clouds, by means of lastools*, but the result was a binary file and I couldn’t read it. Lastools* gave a reasonable result when used to grid the point clouds, only that the cell size varies inversely with the number of cells that result in the output grid.   My challenge is how to grid the point cloud LiDAR and specify the number of rows and columns to be contained in the resulting gridded data, giving a fixed cell size.

I was wondering if there is an option to convert LiDAR data (.las) to a  (DEM/DSM) format that ArcGIS 10.0 can read?


Will I really not come off as rude even if I don't say thanks in the comments? The comment box prompts me to not write thanks, but I often see people with several 100 reps say thanks in their comments? Is upvoting or checking as solved without saying thanks really enough and is the norm here?

There have been a number of cases where I would like to thank someone for providing me with a thorough response and give them feedback beyond the vote up. Often I wish people would tell me why they voted me up. Not that the thank you part is necessary but it sets it apart from the other comments related to answering the question itself.  In this type of situation is a "Thank you" acceptable in a comment?     For more information, see  in the .


how to add android-studio/bin/ to my PATH environmental variable?

How do I add a directory to the $PATH in Ubuntu and make the changes permanent?


It is almost two days that the print of your web pages (faces of solved problems) is not possible.  The problem is that only the first page, for example  comes in "print view window" and the other pages could not be printed ( but this only happens in Firefox).  Why is this and can this be fixed?  (This doesn't happen on Chrome)

I used to print Q&A pages to keep a base of PDFs. I used either the 'print edit' addon or simply the print function of Firefox, which both allow to print a webpage in a file.  Usually the printed file for a webpage extends on 2 or 3 pages. But I'm not able to print more than one page on this site expressly anymore. No matter the method. I just get the top of each discussion.


Determine the largest number in the infinite sequence $1,\sqrt{2},\sqrt[3]{3},\sqrt[4]{4},....\sqrt[n]{n}$.  I found $3^{\frac{1}{3}}$ is largest. I am confused how to start the question. Please help me

I have seen this problem in a book .   But I don't know what should be the solution . Question is   There is a sequence defined by $$\sqrt[1]{1},\sqrt[2]{2},\sqrt[3]{3},\sqrt[4]{4},\cdots,\sqrt[n-1]{n-1},\sqrt[n]{n}$$  We have to find the largest number in this sequence.  What I did is as usual what I do when comparing two irrational numbers  I compared $\sqrt[1]{1} $ & $\sqrt[2]{2}$ and found that $\sqrt[2]{2}$ is greater.  Then I compared $\sqrt[3]{3} $ &$\sqrt[2]{2}$ and found $\sqrt[3]{3}$ is greater.  Then I compared $\sqrt[3]{3} $& $\sqrt[4]{4}$ and found $\sqrt[3]{3}$ is greater.  And then I compared  $\sqrt[5]{5}$&$\sqrt[4]{4}$ and found $\sqrt[4]{4}$ is greater.  And finally I compared $\sqrt[5]{5}$&$\sqrt[6]{6}$ and found $\sqrt[5]{5}$ is greater.  I cannot guarantee will it work up to infinity or not and found $\sqrt[3]{3}$ is greatest term.  And now I have to prove my result.  More generally I have to prove that $\sqrt[n]{n}\gt \sqrt[n+1]{n+1}$ for all $n\in\mathbb N$ and $n\gt 2$  I applied induction to prove it but didn't got the solution.  Please help me in proving this .  Or please tell me an alternative way to tell which number is largest in the sequence.


Prove that $\mathbb{Z}_8$ is not an internal direct product of two proper subgroups. I'm really struggling to get the wheels turning on this one. I know what it means for group to be an internal product of two subgroups, I'm just not sure how to get started in showing that $\mathbb{Z}_8$ is not.

I'm trying to solve this question of Hungerford's Algebra book:     $S_3$ is not the direct product of any family of its proper subgroups.   The same is true of $\mathbb Z_{p^n}$.   The first claim is easy: we note that every subgroup of $S_3$ is of order $2$ or $3$ by Lagrange, since its subgroups are of prime order, they are cyclic, then abelian, but $S_3$ is not abelian, contradiction because $S_3$ is not abelian while the direct product of abelian groups has to be abelian.  My problem is with the second claim, I need help.


I have been studying all day.    This is the normal (and most common) way to say that I have been studying all day and now I am tired etc.   However I often meet with sentences like:      I have studied all day.   The two sentences above are perfectly normal however the thing I am struggling with is that sometimes present perfect simple "version" is not acceptable and I don´t know why. For example "I have written letters all day" is the sentence which I was told was not correct - don´t really understand what makes that huge  difference compare to the sentence "I have studied all day".   I´ll give you another examples I did with my teacher:     I have used this racket (tennis racket) for 10 years.   ( Now I will start using a new type) - in her opinion this sounds ok and could be used     I have used this phrase for months and nobody has ever told me it   wasn't correct English.    Here,for some reason, my teacher definitely wouldn't use present perfect simple and would prefer to use present perfect continuous - again - I don´t see much difference between this sentence and the one above.   Would it be possible to explaing me, please, why sometimes one sentence is possible and another is not even though they are very similar to each other. I´d really like to learn to use this "strange" use of  present perfect simnple.  Thank you very much!

What's the difference between      I have been playing tennis for five years.   and   I have played tennis for five years.   Are they grammatically correct? If yes, how are they different in meaning/nuance?


When I use the package \usepackage{euler} with the package \usepackage{unicode-math} then the Euler font is not used but the default math font is used instead. If I remove the unicode-math package then the Euler font is used as it should. So what is the problem with using both euler and unicode-math? Moreover I can only assume that this will happen with other math fonts too, so I have to guess it is an issue of unicode-math package and thus I have to ask, what is happening?

% What to do here   \begin{document}   This is good integration.   $$\displaystyle \int x dx = \frac{x^2}{2}$$  \end{document}    I don't know much about LaTeX so I am going to need some spoon feeding.   I want text to appear in normal font. But math to appear in AMSEuler Font.  I don't want to make any changes inside the document.


I was given a question to find a bijection $f$ from $[0,1]$ into $(0,1)$.I have no idea of how to do this.Can any one please help me to solve this?

I need help with this question.  Construct an explicit bijection from [0,1] to (0,1) over the real numbers.  I have one that works over naturals but however I cannot not figure it out over the reals. Any and all help is appreciated.


I have collected a series of photos approximately 1 week apart using a drone. Thus, the photos are slightly different.  I want to transform each photo using a series of hard points so that those points align. I don't want to merge the photos, just align all of the photos so that they don't "jump" around when I toggle through them. I assume I choose a base photo that I'll match the others to and then crop them all to have the same frame size.

Do you know any open source tool to automatically align images, similar to the auto align feature in Photoshop?


In complex analysis textbooks $\mathrm{Aut}\,(\mathbb C)$  frequently serves as an example of conformal automorphism groups, which is said to consist of all linear functions $az+b$ with $a\neq0$. Equivalently it means that any biholomorphism $\mathbb C\to\mathbb C$ is of the form $az+b$ where $a\neq0$.   However, all textbooks that I have say this fact is obvious but I cannot see it, so I want to ask how to prove it?

How can it be shown that $$Aut(\mathbb{C})=\{f|f(z)=az+b,a\neq 0\},$$ where an automorphism of $\mathbb{C}$ is defined as a bijective entire function with entire inverse?  If $f$ is of the form $f(z)=az+b$, with $a\neq 0$, then obviously $f$ is in $Aut(\mathbb{C})$. How can I prove the converse?


Possibly in the search for a grand unified theory, it seems trendy at the moment for some writers and commentators to claim that space-time is grid-like and discrete rather than continuous.  I wonder what research is being done to see if the Standard Model etc. could be replaced or superseded by a model based on cellular automata? Is this idea even plausible?  EDIT added: this question is not a duplicate of "is space-time discrete or continuous" because I'm mostly asking whether or not a model based on cellular automata could plausibly replace existing models, under the assumption that space-time is discrete and grid-like.

Is the spacetime continuous or discrete? Or better, is the 4-dimensional spacetime of general-relativity discrete or continuous? What if we consider additional dimensions like string theory hypothesizes? Are those compact additional dimensions discrete or continuous?   Are there experimental evidences of continuity/discreteness?  When particles move inside space do they occupy spacetime by little chunks? What would imply if spacetime is discrete on continuous theories?  I've found little information on the web and books.  Probably my question is ill-posed and I apologize for this.


Avatars from all nations have their eyes glowing when entering the avatar states. No nation, beside the air nomads, has any extra special visual effect.  Why do the tattoos glow? I know the tattoos are very spiritual and an air nomad will get his/her tattoos only when they master airbending, but it is still only cosmetics.  We can assume that The Legend Of Korra ended in modern time (according to technology on the show), Will any avatar that gets a tattoo should have it glowing while in the avatar state?

In Avatar: The Last Airbender, Aang's eyes glow when he goes into the Avatar State. This seems to be the case with all Avatars, but Aang and the other airbending Avatars tattoos glow too.      Is there any reason for why airbending Avatars tattoos glow as well as their eyes?


My Nikon D3100 not taking pictures when its switch to "A" mode of 18-55mm lens, but it take pictures when it's to "M" mode of 18-55 lens, but zoom in is very blur its clear in zoom out?

So I just got this Nikon D3100 Camera.  And I am trying to take a picture using autofocus with the kit lens(18-55mm).    The system is in Auto mode, AF-A, single frame and the lens A-M switch is on "A",  VR is "ON".  When I press shutter half way down, focus confirmation light in lower left corner of viewfinder neither lit nor blinks(hear clicking). When I press the shutter all the way down, the shutter seems locked (hear clicking, but shutter not released).    The manual says the shutter will lock itself if it can't get focus. But the place is well lit and have distinct color and I can easily focus using my old Canon.    The camera works fine in manual focusing, but I can't get it to take picture under auto-focusing.  I wonder is there something wrong with the setting that I don't know or is that I got a lemon?  Thanks


$$\sin(x)^{200}\over x^{199}\sin(4x)$$ as x approaches zero. I applied three times l'Hopital rule but i do not know if it is right. Any help appreciate. $$200(199(198(\sin^{197}(x)\cos^{3}(x)-\sin^{198}(x)\sin(2x))-200\sin^{199}(x)\cos(x))\over -64x^{199}\cos(4x)-9552x^{198}\sin(4x)+472824x^{197}\cos(4x)+7762164x^{196}\sin(4x)$$  And if it is right what next?Again l'Hopital rule?

I'm practising solving limits and the one I'm currently struggling with is the following: $$\ell =\lim_{x\to 0}\frac{\sin^{200}(x)}{x^{199}\sin(4x)}$$  What I've done:   Since this is an obvious $0/0$ , I tried using de L'Hospital's Rule consecutively only to see both the numerator and the denominator grow so much in size that each couldn't fit in one row. $$ \begin{align} l & =\lim_{x→0}{{\sin^{200}(x)}\over{x^{199}\sin(4x)}}\\ & = \lim_{x→0}{{200\sin^{199}(x)\cos(x)}\over{x^{198}\left(199\sin\left(4x\right)+4x\cos\left(4x\right)\right)}}\\ & = \lim_{x→0}{{39800\cos^2\left(x\right)\sin^{198}\left(x\right)-200\sin^{200}\left(x\right)}\over{x^{198}\left(800\cos\left(4x\right)-16x\sin\left(4x\right)\right)+198x^{197}\left(199\sin\left(4x\right)+4x\cos\left(4x\right)\right)}} \end{align} $$ Another solution I tried was through manipulation and the use of trigonometric identities and formulae but to no avail. I tried substituting:   $\color{red}{\sin(4x)}$ with $\color{blue}{4\sin(x)\cos(x) - 8\sin(3x)\cos(x)}$ and then $\color{red}{8\sin(3x)\cos(x)}$ with $\color{blue}{4\sin(4x)+4\sin(2x)}$. $$ \begin{align} l & =\lim_{x→0}{{\sin^{200}(x)}\over{x^{199}\sin(4x)}}\\ & =\lim_{x→0}{{\sin^{200}(x)}\over{x^{199}(4\sin(x)\cos(x) - 8\sin(3x)\cos(x))}}\\ & =\lim_{x→0}{{\sin^{200}(x)}\over{x^{199}(4\sin(x)\cos(x) - 4\sin(4x)+4\sin(2x))}}\\ \end{align} $$    No matter what I try, the limit remains $0/0$.  Question:  Does the above limit exist? If so, what I path should I follow to work out a solution?


In my \lstset I have:  \lstset{ language=Java,                    % the language of the code basicstyle=\sffamily\large,        % the size of the fonts that are used for the code %numbers=left,                      % where to put the line-numbers %numberstyle=\footnotesize,         % the size of the fonts that are used for the line-numbers %stepnumber=1,                      % the step between two line-numbers. If it's 1, each line                                      % will be numbered %numbersep=10pt,                      % how far the line-numbers are from the code %backgroundcolor=\color{white},      % choose the background color. You must add \usepackage{color} showspaces=false,                   % show spaces adding particular underscores showstringspaces=false,           % underline spaces within strings showtabs=false,                   % show tabs within strings adding particular underscores frame=single,                      % adds a frame around the code tabsize=2,                        % sets default tabsize to 2 spaces captionpos=t,                     % sets the caption-position to bottom breaklines=true,                  % sets automatic line breaking breakatwhitespace=false,           % sets if automatic breaks should only happen at whitespace %title=\lstname,                   % show the filename of files included with \lstinputlisting; caption=grail.sablecc,             % also try caption instead of title escapeinside={\%*}{*)},            % if you want to add a comment within your code morekeywords={*,...}               % if you want to add more keywords to the set }      taken from a wikibook. The problem is that when the source code is really long and requires 2 or more pages, I would like that the frame would close on every page instead of having the bottom of the listing open. Is that possibile?

When I use the listings package with frame in my code the frame "breaks" when the page ends and it is open in the end of the page. I want the frame to be complete with four sides and continue in the next page again with all four frame sides complete. How can I do this? Why does the frame "breaks"?


There are many inactive user profiles on SO that were clearly registered by spammers. The spam posts (if there were any) are already removed but the profiles remain. Some of them put their spam text into the "about me" field, see for example  and . If you google this text, it has been spammed all over the web. I guess that the purpose is manipulating search engines - when searching for particular keywords a website with a link to the spammer's site will likely come up as a result. Is that something that we need to worry about? I can see why the answer would be "no": unlike spam in questions, this isn't a problem for SO - nobody sees these profiles. So this isn't really worth investing effort into. Then again, I hate spam and don't like making spammer's life easy. If the answer to the previous question is "yes", what can be done about it? Obviously, anything requiring much effort from the community or the devs isn't going to work. One solution I can think of: stop displaying "about me" text for profiles that have neither answers nor questions and that have been inactive for at least a month. Maybe stop displaying the webpage link as well. Edit: I found many dozens of user profiles (now all deleted) when searching the user database by the keywords "sms", "market", "website", "free", "cheap", "gift", "flower" and "florist". If you then sort by all time reputation score and concentrate on accounts with reputation 1 to 11 it isn't hard to find lots of spammer accounts. (Some of them have the necessary keywords in their user name, they don't use the "about me" text then.) Still, combing through the user database like this requires far too much effort and I definitely don't think that it is a viable solution. As staticbeast notes in the comments, the Data Explorer is great for .

I think the community does a great job policing questions/answers, etc. and the community has some good tools available to do this.  Between flagging questions with some reasons behind it and editing posts, closing them, and deleting them, the only thing that seems to be missing to me is the ability to flag a user.  Reasons to flag a user as abusive:   Duplicate User Abusive Behavior Offensive user name or profile User profile consists of spam Others?


I have python 3.6.7 installed on Ubuntu Server. When I install pip with   apt install python3-pip   I get an SSL error. How can I install pip 1.2.1 avoiding such errors?  This what happens when I try to install anything with pip3:     Retrying (Retry(total=3, connect=None, read=None, redirect=None,   status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL:   CERTIFICATE_VERIFY_FAILED] certificate verify failed   (_ssl.c:847)'),)': /simple/opencv-contrib-python/

Recently I have faced with the issue that on Ubuntu 18.04 pip3 does not work properly:  :~$ pip3 install jinja2 Traceback (most recent call last):   File "/home/redra/.local/bin/pip3", line 7, in <module>     from pip import main ModuleNotFoundError: No module named 'pip'   Then I have tried to reinstall pip3, seems like it is due to it and faced with another issue:  :~$ sudo -H python3 get-pip.py pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting pip   Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/   Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/   Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/   Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/   Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/   I guess it is stucking ... I cannot install openssl due to bad pip3 and cannot install a new pip3 due to openssl ... Seems like it is cycle (  Any suggestion ? Has anybody faced with the same issue ?


Do electrons acquire some electromagnetic 'mass'as they have so much slow acceleration in the coil due to obviousely electromagnetic field acting on them or it is just the net voltage that drops down because of the induced voltage in that coil...?In simple words is the action that decreases or the reaction that increases or both.

I studied electromagnetism and I am currently working with Inductors.  I could not figure out the physical reason based on electromagnetics on why inductor current lags the applied voltage by 90 degrees?  Everywhere I find the Formula as the starting point of explanation which is partially satisfying.    Induced EMF =L di(t)/dt    From the above equation, I understood that when there is a change in current there will EMF induced in the coil terminals. But How this induced EMF makes the current to lag the supply voltage V(t) = Vm*sin(wt)? (Please don't just differentiate and say there is a lag, I am looking for a physical sense on why this happens)  Lets us consider the AC voltage is applied across the terminal at time t=0; At this time there is almost no current. From this transient state how the steady-state is reached where the current is delayed with respect to the voltage?  Can someone help me to figure out why the current lags the Supplied voltage by using electromagnetism, the motion of Charges or any other basic concepts?


if earth is a magnet and there are conductors moving in it why do we not get a current from them, seeing as it is a conductor moving in a magnetic field

Since the Earth has a magnetic field, can it, in theory, be run through a conductive metal coil to create electricity?


I was reading something and found this line. I just want to know whether the word 'equal' should be 'equals' or 'equal'? Which sentence is grammatical?  At the time of settlement the cash value plus the amount at risk equal the death benefit.  OR  At the time of settlement the cash value plus the amount at risk equals the death benefit.

I remember somebody correcting me once when I said, "Two and two makes four", since the conjunction and would imply the use of a plural verb. They would prefer I said:     Two and two make four.   I've been thinking about it and wondering if one or the other is correct, or if both are. It would seem that using the plural verb is grammatical. However, I've heard the singular verb being used more often and feel that it is correct. Is there some exception about using the singular verb in logical statements and mathematical formulae?


I am trying to include a SAVE button as a footer which sticks to the bottom of the page, but moves down whenever there is 'below the fold' content. This content I have generally fits on one page, however goes beyond when using a select check box element.  Example of the issue:    When I click the select check box element:    Current code  style:  .bottom {         position:absolute;         bottom:0px;         height:40px;         width:100%;         background:#E8E8E8;           text-align:center;         font-weight:bold;     }   html:

SAVE

I have a simple 2-column layout with a footer that clears both the right and left div in my markup.  My problem is that I can't get the footer to stay at the bottom of the page in all browsers.  It works if the content pushes the footer down, but that's not always the case.


I've read that Lambda Expressions are an incredibly powerful addition to C#, yet I find myself mystified by them. How can they improve my life or make my code better? Can anyone point to a good resource for learning such expressions?  They seem cool as hell, but how do they relate to my day-to-day life as an asp.net developer?  Edit: Thanks for the examples, and thanks for the link to Eric White's articles. I'm still digesting those now. One quick question: are lambda expressions useful for anything other than querying? Every example I've seen has been a query construct.

I have quickly read over the  documentation.  This kind of example has helped me to understand better, though:   delegate int del(int i); del myDelegate = x => x * x; int j = myDelegate(5); //j = 25   Still, I don't understand why it's such an innovation. It's just a method that dies when the "method variable" ends, right? Why should I use this instead of a real method?


Let $X$ and $Y$ be independent variables, uniformly distributed in the interval $[0,1]$. Find the CDF of $|X-Y|$.   I tried the following:  $$P(|X-Y|\le z) = P((X-Y)\le z) + P((X-Y)\le -z) = 1 - P((X-Y)> z) + P((X-Y)\le -z).$$  Comparing with solution, it seems I have something extra. (I got $1-(1-z)^2)+...$ (not figured out what $P((X-Y)\le -z)$ is yet ). What have I done wrong?

Let $X$ and $Y$ be independent random variables, uniformly distributed in the interval $[0,1]$. Find the CDF and the PDF of $|X - Y|$?  Attempt Let $Z = |X - Y|$, so for $z \geq 0$, the CDF $F_{Z}(z) = \mathbf{P}(Z \leq z) = \mathbf{P}(|X - Y| \leq z) = \mathbf{P}(-z \leq X - Y \leq z)$, which is where the algebra becomes confusing. Since they are independent, the joint pdf of $X$ & $Y$ is simply 1, as long as $(X,Y)$ belong to the unit square. The solution suggests a plot the event of interest as a subset of the unit square and find its area. Any hints?


TL;DR: Is there a way for Siri to create an item in a specific list, and add a timed reminder to it?    iOS 9 Siri is able to  add an item to a specific Reminders list in this fashion:     Hey Siri; Add bread to my shopping list   However, I am struggling to find a 'syntax' that will add an item to a list, and set a timed reminder. Here is one example of my attempts:     Hey Siri; Add book laundry time to my todo list and remind me in one hour   Siri doesn't seem to understand the "latter part" about the timed reminder. It also happens that that Siri will not place it in the correct list, but instead interpret the whole sentence as the string content of a reminder placed in the Inbox.

I can say " Add call friend to my Work list " and Siri will add that reminder to the specific reminder list WORK. However, if I imply any time, it will add it as a calendar entry. Yet when I say " remind me to call friend on Thursday ", Siri will add the reminder on that day and at 9AM ...   But I would like to choose my own date and time for reminders while specifying which reminder list it goes in, how can I accomplish this ?  EDIT  I managed to find this method :   Me : Remind me to call friend on thursday at 11am Siri : Here is your reminder, shall I create it ? Me : Move it to my name list   And then the reminder is moved to your specific list. However, I would rather avoid having to do this longwinded method, is there a way to skip step 2 and combine them all in one sentence ?


We have a company website, let says it's http://www.mycompany.com. URL without the www (http://mycompany.com) is working and displays the same website.  When Googling mycompany, first result is the website, with no site links.  When Googling mycompany.com, first result is the website, with site links.  When Googling www.mycompany.com, first result is the website, with different site links.  Why is there no site links for "mycompany" keyword?

The name of our company is G2 Builders - What is happening is that if you go to google and type in "G2 Builder" with no "s" at the end, our website has sitelinks.   When you type in our name with the "s" G2 Builders, we do not get sitelinks. My question is, does anyone know how I can fix this?


In Chamber of Secret Fawkes pecks out the Basilisk's eyes, thus preventing its gaze from killing Harry. But Fawkes wouldn't be able to close his eyes because he need to aim where the Basilisk eyes are and how did Fawkes escaped from its Gaze ?

Was there no effect of the basilisk's deathly stare on Fawkes as it flew into the chamber of secrets? After all, we know a basilisk has a fatal effect on animals too (Mrs. Norris).  Agreed that it will respawn, but shouldn't there be any effect on Fawkes?


IQueryable<MyModel> myList = GetListMyModel().AsQueryable(); myList = myList.Where(m => m.Name.Contains('John'));   I want to return everything with Name = 'John' or 'john' or 'JOHN' (case-insensitive)

Is there a way to make the following return true?  string title = "ASTRINGTOTEST"; title.Contains("string");   There doesn't seem to be an overload that allows me to set the case sensitivity.. Currently I UPPERCASE them both, but that's just silly (by which I am referring to the  issues that come with up- and down casing).  UPDATE This question is ancient and since then I have realized I asked for a simple answer for a really vast and difficult topic if you care to investigate it fully. For most cases, in mono-lingual, English code bases  answer will suffice. I'm suspecting because most people coming here fall in this category this is the most popular answer.  answer however brings up the inherent problem that we can't compare text case insensitive until we know both texts are the same culture and we know  what that culture is. This is maybe a less popular answer, but I think it is more correct and that's why I marked it as such.


I have a HP EliteBook 2540p laptop. I have a ubuntu 16.04 and Windows 10 dual boot. In Linux whenever I press the M button the mouse stops working on all of the other pages except the one I'm at. I noticed that in windows this happens if I enable the round button in the middle of keyboard and the two right and left click on top of the touchpad. how can i disable these in ubuntu.

I have a laptop with a full keyboard (it has numpad), but the laptop is not that big, and because of that the keys are relatively small, which means I am constantly finding myself pressing keys accidentally on the numpad part.  Is there a way to disable specific keys that I simply don't want?


algebraic demonstration $\arg(𝑧𝑤)=\arg(𝑧)+\arg(𝑤)$  Proving algebraic demonstration $\arg(𝑧𝑤)=\arg(𝑧)+\arg(𝑤)$

This is my attempt I know this is incomplete or may even be wrong.   Let $θ_1 \in \arg(z)$ and $θ_2 \in \arg(w)$. Then, $θ_1+θ_2 \in \arg(z)+\arg(w)$. Also, $θ_1+θ_2 \in \arg(zw)$. Is this sufficient for the proof or correct at all? Hope someone could help me out. Thanks.   EDIT: Just to avoid any confusions I will add how $\arg z$ is defined.   $\arg z=\{\text{Arg}\, z+2\pi k\mid k\text{ is an integer}\}$


Hi I'm having a lot of trouble with this: I need to find the limit of the following sequence: $$ k \in \mathbb{N}, \lim _{n \rightarrow \infty} \frac{1}{n^{k+1}}\left(k !+\frac{(k+1) !}{1 !}+\cdots+\frac{(k+n) !}{n !}\right) $$ There's a hint that I should use the following formula: $$ (1-q)\left(1+q+\cdots+q^{N}\right)=\left(1-q^{N+1}\right) $$

this it the limit to evaluate: $$\mathop {\lim }\limits_{n \to \infty } {1 \over {{n^{k + 1}}}}(k! + {{(k + 1)!} \over {1!}} + ... + {{(k + n)!} \over {n!}})$$  I've given an hint which is: $$(1 - q)(1 + q + ... + {q^N}) = (1 - {q^{N + 1}})$$  I tried to use Cesaro theorem but got to sort of a dead end.. I also noticed a similarity to the , is that going to help me?  Any help will be appreciated


What is the difference between:     Here he comes!   and     Here comes the bus!   Why in the first sentence "comes" is placed after the subject "he", but in 2nd one before the subject "the bus"?

It's very common to say:   "Here he comes."  "Here comes the man."    But what about:   "Here comes he."  "Here the man comes."    Is there a rule about the order of noun and verb in inversion? It will be too much if all the inversions are considered, so let us talk about adverb inversions only, such as:   "Here comes the rainbow."  "Off we go."  "In the room is the man lying."


I can't find anywhere an action to this. I need to remove the name of a dead person in my Hangouts contacts. I can only seem to Block or Hide a name.  Does anyone know how to remove the name altogether? Any advice please on how to do this?

My question is related to .  So I have a person added to my , with phone number and e-mail. Person's e-mail is on gmail.com.  Every Gmail account is not just e-mail, but also is Google Hangouts account. So this person could be reached via hangouts.  Out from the box, when adding person to Google contacts, you don't really add him or her to your Hangouts contact list (I have 500+ at-gmail-contacts in my google contacts, but only 10-20 of them are in hangouts contacts). But when you start hangouts chat with this person (from Gmail web-page, or from Android Hangouts app, etc.), person's contact get added to hangouts contacts.  Then, you could use hangouts via "classical" XMPP, using your favourite client app (I use Kopete). When connecting to Google via XMPP with your Gmail login and password, your Jabber client get contact list, which is the same as your Hangouts contact list. So, it contains every person you ever chat via Hangouts.  My question is: how to delete person from Hangouts (or from XMPP, in certain case) contact list, not deleting it from ?  The only option I  is to "block" this contact in Hangouts, but I don't want to: blocking is useful, when you want to get rid of annoying companion or spammer, but sometimes you want just to clean-up your contact list form persons which are not active for the long time, but you don't really mean you don't want them to write you in the future.


I need some advice for the output settings in Blender 2.8...  When I render an image with 2000px x 2000px the output has the resolution of 72x72.    Now when I render the same image with 3000px x 3000px the output resolution is... still 72x72. When zoomed in the image shows ugly pixels...     So: Is there a chance / way to have the resolution output at 300x300 (ppcm)? The only solution I came up with is to increase the image size massively... and therefore the rendertimes insanely.   Let's see if you guys can come up with an answer. Thnx

Is there a way to output for Print. I want to save in a higher DPI than the default 72dpi say 300dpi that's a good quality for printed pieces. I tried downloading an add-on but don't know if I am installing it correctly it isn't showing up but the bar in python is green. I'm using the 2.69 version of Blender. If no such feature exists what size have any of you found best for print quality. Thank you


I try to stand on water surface but I just drown. A book resting on the table because of the W(gravitational Force)  and normal force of the table acting on the book oppositely in equal magnitude being canceled out.  When it comes to a fluid (air, water, oil etc)  If I put my two feet on the surface I will simply drown. Why that?  See,  the weight of my body is acting on the surface and according to the third law at that instant there will be an equal and opposite force acting on me from the surface. So should not I be able to stand?  If you are about to say that fluid molecules have surface tension and they are not steady then I would like to say the little portion of weight of any point of my body that pushes the tiny fluid molecule, that tiny part should cancel that little amount of weight. By this each and every point of my body (along with my Centre of gravity) part should have a net 0 force which should make stand on the fluid surface theoretically. But in practical case it doesn't happen. Why that?  I can stand on frozen Lake but can't stand when it is not frozen.

Newton's third law of motion states that every action has an equal and opposite reaction. That is the reason we do not sink into the earth, because when our weight exerts a force on the earth it also exerts an equal and opposite force on us.  But when we stand on quicksand or on fluids we can sink in. How is this possible? Does it not exert an equal and opposite force on us? Or are Newton's laws different in the case of fluids and substances of low densities?


Lately, I have been trying to find which font is used in most of the "In a Nutshell" books in the Princeton press. However, the font used appears not to be on The Latex Font Catalogue nor be a KpFont or Bitstream Charter font. For example:  or:  What font is used in the images above?

Is it possible to identify the font used in a specific document/picture?  Answers to this question should identify:   Possible methods to do this (perhaps one answer per method) and adequately describe how to use it (as opposed to merely stating it); Ways of finding the identified fonts, if possible (free or not); and Any prerequisites associated with the method used, if required (for example, "In order to use method X, your document has to be in format Y").   This question is meant as an FAQ, based on an . Its aim is to facilitate the community with the general procedures involved in font identification. Similar cases are solved on a per-usage basis on 's  tag.


Why people die of infection from microorganism, when germs can keep breeding for longer if they dont kill host? Would not millions of years of evolution make germs evolve to not to kill human but feed on them just enough to not to kill them ?

It's bothered me for a while now. I understand why a parasitoid would do this, as it only temporarily requires the host, and that not all parasites kill their hosts.  There seems to be no evolutionary advantage in killing a host, because the parasite relies on the host for resources. Yet some organisms, usually microscopic pathogens, seem to fatally damage the host with no immediate benefit to themselves. Why is this?   I know this is asking for a broad soft answer, but I don't want the question to get bogged down by a specific species, although bonus points for using examples.


When I click on Problem, both check boxes must select/deselect. I want to select and deselect check boxes for multiple time. It works only for selecting and then deselecting (2 times) and then is not working any more.    My code:    $(document).ready(function() {         $('#CHECK-ALL').click(function() {             if ($(this).is(':checked')) {                 $('#P').attr('checked',true);                             } else {                 $('#P').attr('checked',false);                             }         });     });

I'd like to do something like this to tick a checkbox using jQuery:  $(".myCheckBox").checked(true);   or  $(".myCheckBox").selected(true);   Does such a thing exist?


I know this question has been asked before (many years ago), and there have seen suggestions for programs, but some don't exist anymore and none of them seem to do what I want to do. Octagon doesn't seem to work. VisiPics searches for any and all duplicates. What I want to do is point the program at a sample image, then have it search through my hard drive and find similar images to that image. Maybe a different size, or a slightly different crop, or a slightly different color balance, or maybe even a slightly different (but still quite similar) view of the same subject. I've found several programs that attempt to search the entire drive for similar/duplicate images. On a large drive with lots of images this takes forever and the matches aren't flexible enough. So I'm basically looking for a local version of Tineye or Google Image search that's smart enough to find similar (but non identical) images on my hard drive. I have an image which is small and possibly slightly cropped from a much larger image.  I'm pretty sure the larger image is somewhere on a 1TB drive, but as yet I have not been able to find it. Is there now a tool that can help me? I don't really care how long it takes to do the search.

I'm looking for a desktop search engine for finding images on my local hard drive with high visual similarity. I've only found paid for ones so far. It could be Linux or Windows software; either would be helpful. A Google Desktop plugin would be nice!  My first use case is being able to organise all the processed versions of a photo based on it's original, or finding the original of a processed image.


In C#, how can I match any/every character (",[,],{,}, ,Az-Zz,0-9,-,+,*,\,\,/,//,...) between the first starting '{' and the last '}'?  Sample String: test{abc123-.//"\"\t+*(E  WB"T":) {@}[3]$#@}test  Result: {abc123-.//"\"\t+*(E  WB"T":) {@}[3]$#@}  all characters before the first and last {} is removed.

Unfortunately, despite having tried to learn regex at least one time a year for as many years as I can remember, I always forget as I use them so infrequently. This year my new year's resolution is to not try and learn regex again - So this year to save me from tears I'll give it to Stack Overflow. (Last Christmas remix).  I want to pass in a string in this format {getThis}, and be returned the string getThis. Could anyone be of assistance in helping to stick to my new year's resolution?    Related questions on Stack Overflow: