I have a DisplayFormat attribute on my decimal property, to show it as a currency:  [DisplayFormat(DataFormatString = "{0:C0}", ApplyFormatInEditMode = true)] public decimal Price { get; set; }   This is how I print it in the view:  @Html.DisplayFor(x => x.Price)   If the value of Price is 3000, it displays as:  kr. 3.000   But I want it to show with the currency to the right of the amount, as:  3.000 kr.   How can I do this?

I'm trying to use String.Format("{0:c}", somevalue) in C# but am having a hard time figuring out how to configure the output to meet my needs. Here are my needs:   0 outputs to blank 1.00 outputs to $1.00 10.00 outputs to $10.00 100.00 outputs to $100.00 1000.00 outputs to $1,000.00   I've tried String.Format("{0:c}", somevalue) but for zero values it outputs $0.00 which is not what I want. I've also tried String.Format("{0:$0,0.00;$(0,0.00);#}", somevalue), but for 1.0 it outputs $01.00. String.Format("{0:$0.00;$(0.00);#}", somevalue) works for most cases, but when somevalue is 1000.00 the output is $1000.00.   Is there some format that will fit all 5 cases above? All of the documentation I've read only details the basics and doesn't touch on this type of scenario.


I want the address bar to be visible all the time and not only when I up scroll. How can I do this?

How can I make Chrome on Android always display the address bar? It autohides when I scroll and then I need to scroll back to show it.  Please. I have googled it for quite some time already.


Can the closed interval [0, 1] be expressed as the union of a sequence of disjoint closed subintervals each of length smaller than 1? Explain.  I have been trying to figure out this problem, and I do not know where to even begin.

According to , $[0,1]$ cannot be written as union of countable disjoint closed sets, is the same true about (uncountable) family of disjoint closed intervals ?


Let $(X,d)$ be a compact metric space. Let $f:X \to X$ be an isometric embedding, which means that for each $x,y\in X$, we have: $$ d(f (x),f (y)) = d (x,y). $$  Is then $f$ automatically surjective? In other words, is it true that $$ \inf_{y\in X} d (x,f (y)) = 0 $$ for every $x\in X $?  What I've figured out so far: this is clearly true if $X $ is finite, and clearly false if $X $ is not compact.

Possible Duplicate:                How to prove that isometry $f:X\to X$ is onto if $X$ is compact??  What about the case when $X$ is non-compact?  Any help would be appreciated.


I tried by induction but at induction step I struck.I am bad at proving statements which involve variables as exponents.I gladly appreciate any help

I'm trying to prove that $a^n+1$ can only be prime if $n$ is a power of $2$. Is there a general factorization of $a^n+1$?


Hi I have a pretty tough question it's because all my friends text with imessage and I feel kinda left out is there a way ANY WAY that I could get imessage on my iPod touch 3G     There is this boy at my school that has it on his touch 3

My itunes keeps on telling me that my iOS 5.1.1 iPod touch is up to date when I click Check for Update:   iTunes 11.0.2 OS X 10.8.2  iPod 3rd gen (MC008LL)      I recall that back in the day I used to get the prompt to update to 6.0.. and then I asked iTunes never to bother me about it again. But now I went to iTunes->preferences->advanced->reset all dialog warnings. that still doesn't work..   I also tried updating my software from within the iPod itself: Settings->General->Software Update, but I get the exact same message still.. Ideas?


I want to use color inside verbatim, so the answer here is exactly what I want to use: , however I would like to use more complex commandchars (from the answer to the question I just linked), so instead of having 1 character for each commandchar, I could use perhaps 3 consecutive characters to express 1 commandchar. This because the contents inside the verbatim will be programming code and I would like to make sure that it does not contain any character that LateX might interpret as a commandchar.  Is this possible?

Inside the verbatim environment, is it possible to use a different color, please? For example, I want a to be normal, i.e., black. But I want b to be red.  \documentclass[]{article}  \begin{document}  \begin{verbatim} a (black) b (I want this letter to be red) \end{verbatim}  \end{document}   Follow-up Question:  The solution provided by Ignasi was neat. However, there is a problem. If I need to write the entire verbatim in a non-black color, then it will not work.  \documentclass[]{article} \usepackage{fancyvrb} \usepackage{xcolor}  \begin{document}  I want the following to look exactly like the way I put, i.e., like an align. But it displays in one line. How to fix?  \begin{Verbatim}[commandchars=\\\{\}] \textcolor{red}{ a = b + 1   = x + y   = s + t   = c - d   = o * p } \end{Verbatim}  \end{document}


Is it possible to migrate AGs 2014 to 2016? We are currently on 2014.  Or we need to rebuild from scratch on 2016 with old backup files.  Anyone who have done it please suggest the pros and cons .  What things to consider for this change .

What is the recommended process of upgrading Availability Groups with one Sync Replica from SQL 2014 to 2016?  My understanding is that in-place upgrades are not really liked among database professionals. Is there a way to avoid in-place upgrades in Availability Groups? Is there a possibility to join a 2016 server into an existing 2014 availability group and to failover there, then "kill" one of the other instances and upgrade it? (e.g. by removing/re-installing SQL side-by-side on the same host)  Are there any other upgrade scenarios that we should consider?  The ideal solution would be that we always have 2 online replicas, and that we don't need to do any in-place upgrades.


If $$\text {I}=\int_0^{\infty} \frac {x}{1+e^x} \, dx $$ and $\sum _{i=1}^n \frac {1}{k^2}=\frac {\pi^2}{6} $  I am feeling that this integral need not be solved analytically but should be converted into sum so that we can use the next information given. The only step I have taken  is $$\text {I}=\lim_{n\to \infty} \int _0^n \frac {x}{1+\sum_{i=0}^n \frac {x^n}{n!}}\, dx$$

I've having some difficulty with finding this integral:  $$ \int_0 ^{\infty} \frac{x}{e^x + 1}$$  Now usually I would use the monotone convergence theorem to write (using geometric series):  $$f_n (x) = \sum_0 ^n (-1)^k x e^{-(k+1)x},$$  but this isn't a sequence of positive terms, so how do we justify moving the integral inside?  Thanks.


I have following html that is contained in my webpage.
      x      MY TEXT HERE
   How to extract 'MY TEXT HERE' from this html using jquery?  Note: I intend to convert this flashmessage to fancybox popup.

I would like to get all descendant text nodes of an element, as a jQuery collection. What is the best way to do that?


I'm writing a little batch script to backup all data for a project that I am currently developing. The script is currently just copying all project files to a new directory (named by the date when the backup was made) in my Dropbox folder (very simple, just using xcopy). Because I store them in my Dropbox folder, it would be great if it wouldn't take up all my storage space after making a lot of backups. Of course I could remove old backups, but I'm trying to make the backups small anyway. Therefore I'm thinking of packing each backup into a RAR-archive before moving them, but I wonder if it is really safe. I ask this because some of all RAR-archives that I download from the Internet are broken and can't be opened. I don't want broken backups, so I wonder if these RAR-archives that I download are just broken because they've been packed wrongly, or if there is a risk that a correctly packed archive can become broken too. Is it safer to store the backup in a folder than a RAR-archive?

I'm in the process of recovering files from an accidentally formated Ext4 partition using Photorec. It had about 300Gb of data, of which I've already got hold of about 30Gb.  So far, it seems to me that the recovery of RAR-compressed files has been much more successful than the recovery of individual uncompressed files and ZIP compressed files - in the sense that a lot of recovered files/zips were unreadable, and pretty much all of the RAR files were intact.  Is there such a relation? Are RAR-compressed files really less prone to corruption and thus easier to recover?


$$\sum_{k=0}^nq^k = \frac{1-q^{n+1}}{1-q}$$  I want to prove this by induction. Here's what I have.  $$\frac{1-q^{n+1}}{1-q} + q^{n+1} = \frac{1-q^{n+1}+q^{n+1}(1-q)}{1-q}$$  I wanted to factor a $q^{n+1}$ out of the second expression but that 1- is screwing it up...


I was recently gifted a computer and it has Ubuntu 11.10 and I was wondering how I update it? And how do I factory reset it once it updates?

Recently I have installed an older version of Ubuntu on my old machine. Whenever I try to install any software, I get an error saying it couldn't be found:  $ sudo apt-get install vlc Reading package lists... Done                Building dependency tree        Reading state information... Done     E: Couldn't find package vlc


On my  top tag scores seem to be in an old state. Or how does it work? Are these scores received reputations? What are scores there? And the votes? Questions and answers count equal?  The whole top tag section is not being updated. There is a similar , but this one is about the new profile main page, where the "scores" term appears. For me its meaning is unclear.

The tag scores script has not ran at the scheduled time of 03:00 UTC for a number of days.  Here are some other reports of this:      What's going wrong?   states I have a score of 0 across 1 question on :    But when I , it shows that I answered a 2nd question with a score of 2.    Update on 16/05/2013: The problem relapsed a few days ago and the tag scores are again stale. Can we get this fixed once and for all? Update on 14/05/2014: This has started receiving more upvotes over the last few days. My guess is this has relapsed again.


I'm doing this java homework of finding the tax income based on marital status using the if else statements and joptionpane. The issue is after getting the tax and marital status inputs the output doesn't show up it just terminates the program. There no errors also.  I tried putting a semicolon after the first if statements and it somehow works but it shows 2 different outputs instead of 1   public class Program_4_2 {  public static void main (String[] args) {  String status; String tax; double tax_income;  status = JOptionPane.showInputDialog("Please enter s for single, m for married: "); tax = JOptionPane.showInputDialog("Enter Your Tax Income: "); tax_income = Double.parseDouble(tax);  // SINGLE TAX; if (status == "s") {     if (tax_income > 0 && tax_income < 8000)         {         tax_income = tax_income * 0.1 + 0;         JOptionPane.showMessageDialog(null, "Your Tax is " + tax_income);         }      else if (tax_income > 8000 && tax_income < 32000)         {             tax_income = (tax_income - 8000) * 0.15 + 800;             JOptionPane.showMessageDialog(null, "Your Tax is " + tax_income);         }     else if (tax_income > 32000)         {             tax_income = (tax_income - 32000) * 0.25 + 4400;             JOptionPane.showMessageDialog(null, "Your Tax is " + tax_income);         } }  // Married Tax if (status == "m") {     if (tax_income > 0 && tax_income < 16000)         {             tax_income = tax_income * 0.1 + 0;             JOptionPane.showMessageDialog(null, "Your Tax is " + tax_income);         }      else if (tax_income > 16000 && tax_income < 64000)         {             tax_income = (tax_income - 16000) * 0.15 + 1600;             JOptionPane.showMessageDialog(null, "Your Tax is " + tax_income);         }     else if (tax_income > 64000)         {             tax_income = (tax_income - 64000) * 0.25 + 8800;             JOptionPane.showMessageDialog(null, "Your Tax is " + tax_income);         } }  } }   An example output would be :     user input status -> "s" -> user then inputs tax -> "9000" -> output should show -> "950" or "900" if the status input is m

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


Let $a,b$ in a group $G$, where $ab=ba$. $|a|=k, |b|=s,$ where $k,s$ are finite  Prove that $|ab|=$  LCM $(|a|,|b|)$  we say $k,s$ in $N$ are co-prime numbers GCD$(k,s)=1$

Let $G$ be a group and $g,h \in G$. I need to prove that if $g$ and $h$ commute and their orders are coprime, then $|gh| = |g||h|$, that is, the order of their product is the multiple of their orders.  Since $gh = hg$, then $(gh)^{ lcm(|g|, |h|)} = e$, so, $|gh|$ divides $lcm(|g|, |h|)$. Since $\gcd(|g|, |h|) = 1$, then $lcm(|g|, |h|) = |g||h|$.  So, $|gh|$ divides $|g||h|$.


Let's say a set $S$ has $n$ elements, and it needs to be partitioned into $3$ different, unordered partitions. How do I obtain a general formula for this?  I think I can calculate it if I know the value of $n$.   For example, if $n=3$ then it's partitioned as $1,1,1$ so there's only $1$ way.   If $n=4$ then it's $2,1,1$ so there's ${4\choose2}=6 $ ways.  If $n=5$ then it's $2,2,1$ or $3,1,1$ and there's $15+10=25$ ways.  I can't figure out $n$ in general though. My latest attempt was summation: $$\sum_{a=1}^{n-2} \quad \sum_{b=1}^{n-2-a} \quad {n\choose a}{{n-a}\choose b} $$ but the partitions won't be unordered (and the summation is probably wrong too).  I have a hint to regard the first $x$ elements in the first partition, and the $x+1$-th element in the second, but I'm not sure where to proceed from this.

A partition of a set $S$ is formed by disjoint, nonempty subsets of $S$ whose union is $S$. For example, $\{\{1,3,5\},\{2\},\{4,6\}\}$ is a partition of the set $T=\{1,2,3,4,5,6\}$ consisting of subsets $\{1,3,5\},\{2\}$ and $\{4,6\}$. However, $\{\{1,2,3,5\},\{3,4,6\}\}$ is not partition of $T$. If there are $k$ nonempty subsets in a partition, then it is called a partition into $k$ classes. Let $S_k^n$ stand for the number of different partitions of a set with $n$ elements into $k$ classes.     Find $S_2^n$.   Show that $S_k^{n+1}=S_{k-1}^n+kS_k^n$.     --   My work: From the definition of $S$, $S_2^n=2^n$. I think I am wrong somewhere, because when I put this formula into the second part to prove, I get, $$k^{n+1}=(k-1)^n+k \cdot k^n.$$ Please tell me where I am wrong. I think this problem cannot be solved by star-and-bar method as that method finds value for $k$ but does not prove it. Please help!


After upgrading my wife's iMac to macOS Sierra 10.12.0, she chose to disable Siri from the System Preferences for her own reasons. Now, every time we press the play/pause button on one of the , the following dialog appears:    Is there a way to prevent this from displaying, even if it means somehow nuking Siri altogether?

I have installed macOS Sierra.  I often work on my Mac while on the go, and then I play music using iTunes over my EarPods connected via the mini-Jack plug.  The button allows me to pause the music, but now in Sierra, every time I press it, I am asked whether I want to allow Siri.  Refusing will simply bring the window up again when I press the button.  I don't want to use Siri on Sierra.  At all.  How can I prevent it from trying to activate when I press play/pause on my EarPods?  Added after reading comments: When I enable Siri, Siri doesn't activate when I press the button, unless I press it really long.  But when I disable Siri entirely, it asks whether it's allowed to activate every time I press the button, even if it's just a short click.


I installed VMworkstation on a fresh Windows 10 operating system. When I tried to create any machine I got the following error:     VMware Workstation and Hyper-V are not compatible. Remove the Hyper-V role from the system before running VMware Workstation.   I checked the "Windows Features" and I found that Hyper-V is disabled. Also I used the following CMD shell and power shell commands to disable Hyper-v.  CMD Shell  bcdedit /set hypervisorlaunchtype off   CMD Shell  dism.exe /Online /Disable-Feature:Microsoft-Hyper-V-All   PowerShell  Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All   Then I restart the machine, then I reinstall the Vmware workstation again and still it doesn't work.  Update: The operating System is windows 10

I have successfully installed VMWare Workstation 10 on my laptop running Windows 10. The virtualized system is CentOS.  Could install guest system and run it  I could successfully install the system and all, but after upgrading to Windows 10 Anniversary Update, I get this:    Removed Hyper-V  I have uninstalled everything from the system concerning Hyper-V. I removed it from my computer and restarted several times. No luck.


I have created an s3 GeoTIFF bucket to show raster data via GeoServer, now I'm looking to create a front end so that user can upload GeoTIFF, I am able to do the task halfway ( i.e. uploading tiff to s3 and creating s3Geotiff store using the rest API), how can I now create layer via rest API?

As part of a possible solution to   I want create a layer in GeoServer via REST that supplies a SQL statement along with a userid. I think i would  and publish it. I need to do this all in REST. Does anyone have any code examples?


I have noticed that the environment align appears to do everything that the environment equation accomplishes, plus the additional features of aligning equations and arranging them in an organized manner on the page.  I have started writing up some lecture notes and have noticed that I use align so often that I now use it in place of equation!  Are there any reasons why I should not do this? ie; why I would want to use the equation environment when I don't need all the features of align? or is it acceptable to use align throughout my document?

I always use align in my documents, and avoid equation. Is there anything wrong with that? My reasoning behind this: align > equation, so why not use it?


I have a remote Ubuntu server without any internet access. I can access it shell and fileSystem (ssh and sftp).  How can I install it? Is there any possible way to install it without root access?

I have a friend who has got a computer that is not connected to the Internet. Is there any way to install software offline easily?


Can I leave the Schengen point of entry in less than one day to travel to another Schengen country? This is my first time.

In case, if I get a multiple-entry Schengen visa in one of the embassies in Ukraine, Kyiv - should my first trip be to the country which issued the visa?  Any there any requirements of this sort? Does this condition vary depending on embassy which issued the visa?  What are the possible consequences on not visiting that country first? Does it somehow depend on country where the embassy is (i.e. non-Schengen and not EU members)?


I've found some manufacturers have front-only or rear-only tire models. What is the actual difference between front and rear tires? Why specific tire supposed to be used only on front/rear wheel?  UPDATE  Very good answer to my question can be found here:

I was looking through a bike catalogue at one of the high-end road bikes (a ) and I couldn't help but notice that this bike is advertised with specific tyres for front and rear wheels.  This was a new one to me, I've not known any other bike to have this and, as far as I can see, tyre manufacturers don't make front and rear tyres - they're just tyres! So my next question was, "what's the difference?"  The two tyres are the same size (700x23) and it turns out that the difference is in the tread patterns [edit: I now realise this is incorrect]. The front tyre is described as sticky 60/64/60 durometer. The rear described as durable and fast 64/70/64 durometer.  I was just wondering if anyone knew what these values actually mean? (left/centre/right thickness?) Or is it something proprietary to Giant?  Just to be clear, I understand why you might put different tyres on front and back, I understand that the difference between these two might be unnoticeable to all but the best cyclists, its those numbers I'm interested in understanding.


I have a web server with a paid domain and all and I would like to create a subdomain for it. How can I do this and install wordpress onto it?

I have a server at mysite.no-ip.org. Everything is working fine and I have a blog and owncloud that I access writing mysite.no-ip.org/blog and mysite.no-ip.org/owncloud. Now, I want to create subdomains so that I can write blog.mysite.no-ip.org and owncloud.mysite.no-ip.org.  I have looked a lot into it and the simplest tutorial was this one which I followed.   Except that I am not on my server but ssh into it remotely so if I use localhost I cannot see if this works I believe. This is my first obstacle, can I follow this tutorial without being present next to the server?  I also just discovered CNAME records which (I am not completely sure) seem necessary to what I want to do. I use no-ip.org and I have tried to follow something like this but this is not really clear either   Does anyone have any pointers? This is quite shady to me and I have no idea if I am far from the solution or really close (at least if I could try localhost that would be a first step in order to check my Apache conf but I can't even do it since I ssh).  Anyways, thanks for your help in advance. Any help, link is welcomed.


I have a Dell Latitude e6410 what has i5-520M processor.  It's running between 1.2-2.4 GHz. I think my turbo is switched off. How could I turn on to achive ~3 GHz? In my previous laptop I simply used that command to turn on the turbo, but now I don't have that directory.  echo 0 > /sys/devices/system/cpu/intel_pstate/no_turbo    about my computer.

I have a kubuntu 14.04 with the latest HWE kernel (3.16.0-31-generic), and a Xeon 1246v3 processor (which is basically an i7 4770 with ecc support). The processor has base frequency of 3.5 ghz, and max turbo frequency of 3.9 ghz.  I have the following questions:  1) I have intel p-states enabled by default, which is fine, but you know that with p-states you only get two governors: performance, and powersave. How can I manually set the maximum allowed cpu frequency?  2) As stated above, the cpu should be able to run at 3.9 only with one core loaded. With full load on all cores, it should not be able to go over 3.5 ghz. But if I issue the command watch -n 0 "cat /proc/cpuinfo | grep -i mhz" , I see that ALL four cores are constantly at 3.9 ghz, which should be impossible. How's that?  Thanks!


I have a static util method that I am calling with some values being null.  Here is the method signature that I am calling:  public static void logAndDisplayError(@Nullable Shell parentShell, String dialogTitle, String exceptionMessage, @Nullable Exception e, @Nullable Integer statusCode, boolean is1CD)   Here is the call to the method:  EclipseError.logAndDisplayError(getShell(), "Error Occured On Finish", message, null, null, true);   Inside the method, I am making a MessageDialog which is causing a null pointer.  Here is the MessageDialog creation:  MessageDialog dialog = new MessageDialog(parentShell,                  dialogTitle,                  MessageDialog.getImage(Dialog.DLG_IMG_MESSAGE_ERROR),                  getErrorMessage(e.getMessage(), e, statusCode),                  MessageDialog.ERROR,                  new String[]{"1CD Help", "Ok"},                  1);   The null pointer is occuring on this call in the MessageDialog:  getErrorMessage(e.getMessage(), e, statusCode)   So we know that e and statusCode are null. But I have Nullable defined in the getErrorMessage method...  private static String getErrorMessage(String exceptionMessage, @Nullable Exception e, @Nullable Integer statusCode)   Why is it throwing the null pointer?  Also, here is the @Nullable I am using:  org.eclipse.jdt.annotation.Nullable

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?


Php, isn't really made for multithread but do you have any workarround to deal with threads in php.

Is there a realistic way of implementing a multi-threaded model in PHP whether truly, or just simulating it. Some time back it was suggested that you could force the operating system to load another instance of the PHP executable and handle other simultaneous processes.  The problem with this is that when the PHP code finished executing the PHP instance remains in memory because there is no way to kill it from within PHP.  So if you are simulating several threads you can imagine whats going to happen.  So I am still looking for a way multi-threading can be done or simulated effectively from within PHP. Any ideas?


when I use recycler adapter then no Error will be Displayed but when I use recyleroption then error display when I searched then result will display fragment uses . //code  @Override protected void onBindViewHolder(@NonNull myViewHolder holder, int i, @NonNull Itemmodel itemmodel) {     String quantity=itemmodel.getPquantityet();     String id=itemmodel.getProductid();     String priceavailable=itemmodel.getPriceavailable();     holder.titletv.setText(itemmodel.getProductname());     holder.descriptiontv.setText(itemmodel.getPdescription());     holder.quantitytv.setText(quantity);     holder.pricetv.setText(itemmodel.getPprice());    /*        if(priceavailable.equals("true"))        {        holder.pricetv.setText(modelitem.getPprice());       }else {      holder.pricetv.setVisibility(View.GONE);     }*/     if(Integer.parseInt(quantity)<=5){         holder.dangerpic.setVisibility(View.VISIBLE);     }else {         holder.dangerpic.setVisibility(View.GONE);     }     holder.itemView.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {              // Error is on Intent             Intent intent=new Intent(context,BilActivity.class);             intent.putExtra("id",id);             context.startActivity(intent);         }     }); }


I want to describe a character who thinks that the world revolves around him, thus he believes he is the center of the universe.   Is there a single word having the meaning of center of (one's) universe?

I was trying to convey my opinion about a person I knew, when I faced this question. I had to describe a person who cared only about himself: his personal well-being, wealth, luxury, happiness are his only priorities in life. He does not really care for his family members, or spare some time or thought to alleviate their problems.  What adjective is best suited to describe such a person? My instantaneous choice was along the lines of self-important or egotistic, but these adjectives intend “thinking highly of oneself ”, which is not what I meant.   Nouns describing such a person are also welcome. I am looking for a word as little disparaging as possible.


I've been working on setting up clustered environment with a two new DTC roles, DTC1 and DTC2. I set up DTC1 which allows both clustered VM's and SQL Server Instances to function correctly. However, when I disable DTC1, DTC2 will remain online but no DTC transactions will work. I'm actually going through this issue with a Microsoft tech right now (without much luck). Both DTC services are set up with similar configurations. Anyone here have an idea as to what might be going on?  Here's my setup,  One clustered environment Two DTC Roles Two Separate ISCSI disks, one for each role Two VM's (same configuration) Two SQL Server Instances, on on each VM  Networking configuration is allowed, everything looks to be set up properly.

I've been working on setting up clustered environment with a two new DTC roles, DTC1 and DTC2. I set up DTC1 which allows both clustered VM's and SQL Server Instances to function correctly. However, when I disable DTC1, DTC2 will remain online but no DTC transactions will work. I'm actually going through this issue with a Microsoft tech right now (without much luck). Both DTC services are set up with similar configurations. Anyone here have an idea as to what might be going on?  Here's my setup:   One clustered environment Two DTC Roles Two Separate ISCSI disks, one for each role Two VM's (same configuration) Two SQL Server Instances, on on each VM   Networking configuration is allowed, everything looks to be set up properly.


I am setting my JAVA_HOME in my ~/.bashrc file.  Now, I need to create a script that will change the JAVA_HOME just for the current terminal, so that I can start an app that needs java 5.  I have created this script to do this task, but after finishing, I can see that JAVA_HOME is not updated  export JAVA_HOME=/usr/lib/jvm/java-5-oracle/ export PATH=$PATH:$JAVA_HOME       Here is the result  $ ./javaHome5.sh $ echo $JAVA_HOME /usr/lib/jvm/java-6-oracle/   I think that the reason this is not being applied, is that a script is executing in it's own terminal, so when the script ends, the current terminal will not be affected.  Currently, the only way I've found around this is:   Edit my ~/.bashrc and change the JAVA_HOME var Run source ~/.bashrc to apply the changes in current terminal. Which again cannot be applied in a script, as the source command needs to be run in the current window.   Needless to say, this change applies to all new terminal windows, so I practically need to do this twice: One before starting my app, and one more time right after this, just to restore the environment vars to their default. That's not really convenient.  Do you have any ideas how can I change this var using a script?

I've written the following script to set some environment variables when needed.  #!/bin/sh export BASE=/home/develop/trees echo $BASE export PATH=$PATH:$BASE echo $PATH   Below the command and the results I can see on my terminal: the script runs, but the variables are not set at the end.  ~$: ./script.sh /home/develop/trees /bin:......:/home/develop/trees ~$: echo $BASE  ~$:    What's wrong? Thanks in advance. Mirko


I apparently have a massive memory like on my upgraded Windows 10 system. I have seen "System" (PID 4) slowly use more and more RAM. My "NT Kernal & System" has already used more than 5GB of RAM. Attached I have my poolmon data, however I do not know how to interpret it.

Since I upgraded to Windows 10, my system has been consuming RAM excessively    I've been reading a bit and determined it's likely a driver leaking memory. So I got myself the Windows Driver Kit and tracked memory usage with poolmon:    However, I don't really know how to proceed from here. Is the item tagged "smNp" the culprit in this issue? How do I go from there to actually identifying the driver?  I tried some stuff like "C:\Windows\System32\drivers>findstr /s smnp ." but it returned no results. I also took a look at the pooltag.txt file and this is the description I found for it:      So yeah, any help would be appreciated. Thanks in advance.


my site was ranking almost around 1-2 link 1 month ago for major of the post search terms like "alan walker - Faded Mp3" but now when i search for my latest post or my old post the site is not even showing in the google search result.

There has been a significant drop (90%) in traffic from Google to one of my well-established sites (6+ years) in the last week. Searches show that the top 3 wide keywords all dropped 4 spots. Searches for other keywords do not show ANY results in the first 10 to 25 pages of results, while previously one 1st or 2nd page at most.  Since there are , the question really is:  What steps are necessary to figure out what caused such a drop?  There have been no major changes during this period or the last month on the site and certainly not in the homepage which has dropped in rank. Over all the years of running this site and plenty of others, I have never experienced this. There are is duplicate content on my site and I have rigorously used canonical links for the last few years to ensure it is not misinterpreted as such.


In javascript you can have multiple methods to pass string to a function. But which one is the most correct way?  eg 1 1 eg 2  1   Edit I dont consider this is a duplicate question deserving a downvote. That question is dealing with code inside a javascript. This is regarding calls from html to code.

console.log("double"); vs. console.log('single'); I see more and more JavaScript libraries out there using single quotes when handling strings. What are the reasons to use one over the other? I thought they're pretty much interchangeable.


In the end of Captain America, Tony Stark's father retrieves the Tesseract.  In Captain Marvel we are shown that Lady Marvel was working with the Tesseract.  How does the Tesseract go from Mr.Stark to Lady Mar Vell?   EDIT: What I'm looking to find out is how does she take the Tesseract out of the Earth and stow it away on a space station without anyone knowing. Is there any clue that could tell us how Mar Vell gained so much clearance to Project Pegasus, that she could relocate the Tesseract without anyone in S.H.I.E.L.D knowing?

At the end of Captain America: The First Avenger we see Howard Stark's team recover the Tesseract from the ocean floor.   in Captain Marvel we learn that the power source to the Lightspeed Engine Mar Vell was developing was the Tesseract found in Mar Vell's lab which was a Kree Impiral Cruiser in orbit of Earth.  Since Howard Stark was a founding Member of S.H.I.E.L.D after Captain America: The First Avenger S.H.I.E.L.D has the Tesseract, but given Fury was detained when looking into Project Pegasus (what Mar Vell was working on) this means Project Pegasus wasn't a S.H.I.E.L.D project.  So how did S.H.I.E.L.D lose ownership the Tesseract to Mar Vell?


I wan't to format my windows(7) pc and install Ubuntu 16.04 , But I have 4 partition that I can't format anyhow. How can I Install ?

I would like to install Ubuntu alongside Windows 7 on a HP G62 Notebook. Although I have installed  Ubuntu in a dual-boot many times before, I found out that this model has already four partitions.    Partitions:   SYSTEM (NTFS, 199MB, used 66.59MB) Partition without any tag: NTFS (579GM, used 129GB)  RECOVERY (NTFS 16.74 GB, used 2.42GB)  HP_TOOLS (FAT32, 103.34 MB, used 13.23MB)   Since I am not an expert with partitions I would like to get advice on how to do this.  My first idea is this one:   Free some space from /dev/sda2 (I don't know if could also free some other space) delete the HP_Tools partition (I have already created a backup) create an extended partition with the free space in #1 containing three parititions: swap (1gb); / (EXT4, 30GB);  /home (EXT4, 120GB)   Another option is to use wubi instead.  What do you think? Is there any other way to achieve this?  PS: I really think this HP policy of using 4 partitions is not a coincidence  PS: I tried using gparted from the live CD and I got a warning message saying that if I freed some space from /dev/sda2 I could create serious issues in the system


I want to express all intervals as countable union or intersection of intervals of the form $[a, b)$.   This is what I have.  $$ (a,b) = \bigcup_{n} [a - \frac{1}{n}, b)$$  $$ [a,b] = \bigcup_{n} (a, b - \frac{1}{n})$$  $$ (a,b] = \bigcup_{n} (a+\frac{1}{n}, b - \frac{1}{n})$$

Write the closed interval $[a,b]$ as the union of semi-intervals.  Attempt:  $$[a,b] = \bigcup_n^\infty\ \left[a,b-\frac{1}{n}\right)$$


I got vector points on a map. I already have the elevation information in the table for each vector point and the point-id. Now I want to get the GPS coordinates for each point stored in this attribute table. How can I do that?  Overall my aim is to get to know the gradient on this line which I divided into those points.

How do I easily calculate the lat/long of points using the QGIS Field Calculator? I saw a previous related question (), but it deals with a more advanced approach. In ArcGIS Desktop this is similar to the Calculate Geometry function; I just can't find where do this in QGIS.


I have in my account 54 reputation and 18 questions - 17 of them were answered and accepted.  4 of these questions were voted up, others didn't get votes up or down, and 2 question were voted down. These 2 questions are among the ones I got answers to and accepted them - There's nothing else to add or edit in them. Another question that I asked was deleted because of being opinion based. Therefore, even if I undelete and edit it, the question is still irrelevant to the forum because of being opinion based. Another question was deleted by me some time ago.  I'm not sure what else I can do in order to be unbanned? I've seen in the Help Center the suggestion "Begin by fixing your existing posts", but as I mentioned, the problems were already solved.

If you are reading this, you may have been affected by one of our post quality bans. If so, it is important that you  to understand what has happened and how to regain the permissions that you lost. While trying to ask a question, one could see:  We are no longer accepting questions from this account. See  to learn more.  Likewise, for answers:  We are no longer accepting answers from this account. See  to learn more.   Why am I getting this message? Are deleted posts taken into account too? Is a question/answer ban the same as a suspension? How do I avoid getting a question ban? How long do I have to wait before I can post again? What can I do to release the ban? How can I reactivate my account? Can I simply create a new account? I'll just ask somewhere else on the SE network, and they'll migrate my question to the correct site! Will a ban on one Stack Exchange site affect my standing on other sites in the network? Does this apply to meta sites too? My account is in good standing. Why am I still blocked?


I'm using Ubuntu 14.04 LTS, with a brand-new graphics card, GTX 750 Ti. I have even updated the drivers, but for some reason Blender (2.75a) doesn't seem to be allowing Cycles to render with my GPU. Even under User Preferences > System > Compute Device it says "None", with the only option in the drop-down menu being "CPU".   I'm pretty sure I purchased a decent graphics card because I bought this specially for Blender's Cycles. How can I resolve this? How do I get Blender to work with the card?   EDIT: It looks like I managed to find the answer by referring to this thread:   It seems Blender won't detect the card even if I switched to proprietary drivers. In this case, I did this:   Switch to proprietary drivers,  Installing nvidia-modprobe by typing sudo apt-get install nvidia-modprobe Then, in the same way, I installed nvidia-cuda-toolkit   I did not need to restart the system. Just restarted Blender, and it works!

I know that nobody likes duplicate questions, but I haven't found my answer on any of the other questions with this topic.  I built a computer with a  (made by Gigabyte).  It supposedly has 512 CUDA cores.  I followed  tutorial, (which enabled the Nvidia proprietary drivers) and was able to enable dual monitors and all the desktop graphics that are needed.  Unfortunetly, the GPU processing option still doesn't show up in Blender.  I've tried installing nvidia-cuda-toolkit, and that didn't make a difference.  I also tried to update my drivers from nvidia-346 to nvidia-349, and this had no apparent effect either.  What can I do to enable GPU rendering?  (I've tried both blender installed and just downloaded from the site).


Professional interests continue to expand, Virgo, and you're managing to keep very busy. Your income is rising, and you could be achieving a certain prominence in your field. Nonetheless, you could be looking for new opportunities. The field you're in now may not be one that you want to continue for the next 20 years. This is therefore a good day to put out a few feelers and test the waters. You might be surprised at the opportunities out there.    I think it should be "are continuing to expand."

Please tell me is there any fundamental difference between the two sentences:   Even today, people continue to use cheques.  Even today, people are continuing to use cheques.    I mean is there a difference as in time period (i.e when the action starts and when it ends). Or are the two sentence just the same and interchangeable?


I am running Ubuntu as a guest on an iMac with VirtualBox version 4.1.8.  What is the easiest way to resize the virtual drive?  Please provide as much detail as possible including the correct format for any commands.

I have run out of space on my WinXP virtual machine, which I only gave 10 GB space for when I created it.  Is there an easy way to increase it to, say, 20 GB?  I can't see any obvious option in VirtualBox settings.    The suggestion below gives this error  wim@wim-ubuntu:/media/data/winxp_vm$ VBoxManage modifyhd wim.vdi --resize 20000 VBoxManage: error: Cannot register the hard disk '/media/data/winxp_vm/wim.vdi' {46284957-2c09-4e70-8a49-bfbe0f7f681d} because a hard disk '/home/wim/VirtualBox VMs/winxp_vm/wim.vdi' with UUID {46284957-2c09-4e70-8a49-bfbe0f7f681d} already exists VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component VirtualBox, interface IVirtualBox, callee nsISupports Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, AccessMode_ReadWrite, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 210 of file VBoxManageDisk.cpp     Removing the .vdi from VirtualBox before calling VBoxManage command, then adding it back in, was successful.  But now I can't boot the virtual machine, I get this worrying screen:    By the way, it says FATAL: Could not read from the boot medium!  System halted.    The vdi must be reattached to the VM after VBoxManage command.  Further, the partition will need to be resized from WITHIN windows, because you will have this empty space:    I was able to resize the partition easily using a bit of freeware called .


I am a member of many SE sites, and I have limited mod powers on some of them. It seems as though every negative action taken by a mod (vote to close, etc.) must be justified. Why then can any random user^ unaccountably downvote any question or answer?    I think downvotes should be explained, and bad downvotes should themselves be downvoted into oblivion, or good ones upvoted to show consensus. Otherwise it's difficult or impossible for the OP to know what to improve unless someone also posts a comment, which is rare. Having a few defaults (such as with vote to close) gets around the problem of people just typing "dfkjjf" into a comment box.  That said, is downvoting the only negative unaccountable feature? If so, why?  ^ with 125 reputation or more

Note: If you're looking for a simple explanation as to why comments aren't required on downvotes, see .   I used to get "upset" (though that is too strong a term) when I got downvoted without comment. If my answer isn't good enough then I'd like to know why. Not only does it improve the answer for the OP but it improves my knowledge too.  Where the down-vote has been explained I've found it useful & it has improved my answer, or forced me to delete the answer if it was totally wrong.  So is there any way we can encourage people to leave a comment? Perhaps they don't lose rep if they explain their down-vote?  I must admit though that I haven't always explained my down-vote either so you could call me a hypocrite. I've also grown a thicker skin over the months of using SO (it seems to have come with the higher rep score ;-)), so I'm less bothered about this now.


Crypto schemes normally use discrete logarithm instead of normal logarithm. I think this has to do  with the fact that discrete logarithm is hard to solve while normal logarithm isn't. Can someone explain why discrete logarithm is hard to solve and normal one isn't?

I've already read  question about the difference between discrete and non discrete logarithms. But I still have problems to clarify my mind about why the Discrete Logarithm Problem is computationally hard while the NON Discrete Logarithm Problem is not, as I read in my Cryptography and Security book.  What are the computation differences? Why can I, for example, easily break a non discrete logarithm cipher but not a discrete one?


I am trying to create a Cholorpleth map using Processing and geoJSON. I am having difficulty cycling through my HashMap to check the property that will dictate the intensity of the polygons color.  Currently this is my code:  void draw() {   map.draw();   for (int i = 0; i < countyMarkers.size(); i++) {    Marker county = countyMarkers.get(i);    String pop = countyData.get("pop").toString();    println(i + "pop: " + pop);    }   What I would like to do is loop through my HashMap countyData and get the population of each entry. Use an if statement to compare it to a value and then assign it the color based on the statement that is true.  My HashMap can be seen here:  {name=Carlow, pop=54,612} {name=Cavan, pop=73,183} {name=Clare, pop=117,196} {name=Cork, pop=519,032} {name=Donegal, pop=161,137} {name=Dublin, pop=1,273,069} {name=Galway, pop=250,541} {name=Kerry, pop=145,502} {name=Kildare, pop=210,312} {name=Kilkenny, pop=95,419} {name=Laois, pop=80,559} {name=Letrim, pop=31,796} {name=Limerick, pop=191,809} {name=Longford, pop=39,000} {name=Louth, pop=122,897} {name=Mayo, pop=130,638} {name=Meath, pop=184,135} {name=Monaghan, pop=60,483} {name=Offaly, pop=76,687} {name=Roscommon, pop=64,065} {name=Sligo, pop=65,393} {name=Tipperary, pop=158,754} {name=Waterford, pop=113,795} {name=Westmeath, pop=86,164} {name=Wexford, pop=145,320} {name=Wicklow, pop=136,640}   I am relatively new to working with this type of data so I am at a loss as to where I am going wrong. I think my logic is correct I am just not sure how to implement it.  I'd appreciate any help on the issue.  Currently this line -> println(i + "pop: " + pop);   Outputs the last entry of the hashmap over and over.  This is the output I am getting  0pop: 136,640 1pop: 136,640 2pop: 136,640 3pop: 136,640 4pop: 136,640 5pop: 136,640 6pop: 136,640 7pop: 136,640 8pop: 136,640 9pop: 136,640 10pop: 136,640 11pop: 136,640 12pop: 136,640 13pop: 136,640 14pop: 136,640 15pop: 136,640 16pop: 136,640 17pop: 136,640 18pop: 136,640 19pop: 136,640 20pop: 136,640 21pop: 136,640 22pop: 136,640 23pop: 136,640 24pop: 136,640 25pop: 136,640   I populate my HashMap using this method.  void getCountyDetails(List<Marker>m) {     countyData = new HashMap();   for (Marker county: countyMarkers) {     countyData.putAll(county.getProperties());     println(countyData);   } }   Modified code here      Set<String> keySet = countyData.keySet();   for(String pop : keySet){      String value = countyData.get(pop).toString();      println("population:" + value);    }   Now It is outputting:  population:Wicklow population:136,640 population:Wicklow population:136,640 population:Wicklow population:136,640 population:Wicklow population:136,640 population:Wicklow population:136,640 population:Wicklow population:136,640 population:Wicklow population:136,640 population:Wicklow population:136,640 population:Wicklow population:136,640   It still does not seem to be iterating through each entry in the HashMap  New way Of populating HashMap  void getCountyDetails(List<Marker>m) {     countyData = new HashMap();   int i = 0;   for (Marker county: countyMarkers) {     countyData.put(i,county.getProperties());     i++;   } }

If I have an object implementing the Map interface in Java and I wish to iterate over every pair contained within it,  what is the most efficient way of going through the map?  Will the ordering of elements depend on the specific map implementation that I have for the interface?


i'm trying to find a regex for allowing only greek characters to pass. But as you know greek language supports an emphasis tote for the most worlds:  For example the world χρήμα which means money has ' character above η How to detect this char with a regex? My current regex is this:  /^[\sΑ-Ω0-9α-ω!$@#*+=._%,-/]*$/

How can I use Unicode-aware regular expressions in JavaScript?  For example, there should be something akin to \w that can match any code-point in Letters or Marks category (not just the ASCII ones), and hopefully have filters like [[P*]] for punctuation, etc.


So I'm trying to build my first game loop and yes, I've watched a tutorial on this but can't seem to find what's wrong.   Every time I run my program, the image doesn't show on frame and also, it keeps telling me errors in the render method and where I called the draw method in my Ship class. Please help.  (This is my first game project)   This is the Game class which is my main class  package main;  import java.awt.Canvas; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.image.BufferStrategy; import java.awt.image.BufferedImage; import javax.swing.JFrame;  public class Game extends Canvas implements Runnable{  public static final int WIDTH = 600; public static final int HEIGHT = 800;  private boolean running = false; private Thread thread;  private BufferedImage image = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_INT_RGB);   Ship ship;  public void init() {     ship = new Ship(0, 500);  }    private synchronized void start() {     if (running) {         return;     }      running = true;     thread = new Thread(this);     thread.start();   }    private synchronized void stop() {     if(!running) {         return;     }      running = false;     try {         thread.join();     } catch (InterruptedException e) {}      System.exit(1); }    // Game loop public void run() {      long lastTime = System.nanoTime();     final double amountOfTicks = 60.0;     double ns = 1000000000 / amountOfTicks;     double delta = 0;      int updates = 0;     int frames = 0;     long timer = System.currentTimeMillis();   while (running) {         long now = System.nanoTime();         delta += (now - lastTime) / ns;         lastTime = now;            if(delta >= 1) {             tick();             updates++;             delta--;         }          //This render method right here tells me it has an error everytime I run the program         render();          frames++;          if (System.currentTimeMillis() - timer > 1000) {             timer += 1000;              System.out.println("Ticks: "+updates+", Fps: "+frames);             updates = 0;             frames = 0;         }      }     stop(); }  // where everything updates  private void tick() {     ship.tick();  }  // where everything renders/draws private void render() {      BufferStrategy bs = this.getBufferStrategy();      if(bs == null) {         createBufferStrategy(3);         return;      }      Graphics g = bs.getDrawGraphics();     //////////////////////////////////////////////////      g.setColor(Color.blue);     g.fillRect(0, 0, getWidth(), getHeight());      // This has an error too whenever I run the program     ship.draw(g);            ////////////////////////////////////////////////     g.dispose();     bs.show();    }    public static void main(String[] args) {      Game game = new Game();      game.setPreferredSize(new Dimension(WIDTH, HEIGHT));     game.setMaximumSize(new Dimension(WIDTH, HEIGHT));     game.setMinimumSize(new Dimension(WIDTH, HEIGHT));      JFrame frame = new JFrame();       frame.add(game);     frame.pack();     frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);     frame.setResizable(false);     frame.setLocationRelativeTo(null);     frame.setVisible(true);     game.start();  }      }   This is the Ship Class  package main;  import java.awt.Graphics; import java.awt.Image; import java.awt.Toolkit;    public class Ship {  private int shipX; private int shipY;  Image character = Toolkit.getDefaultToolkit().createImage("D:\\user's-ship-fast-speed.gif");   public Ship(int x, int y) {     shipX = x;     shipY = y; }   public void tick() {  }  public void draw(Graphics g) {     g.drawImage(character, shipX, shipY, null); } }

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?


Let's assume I have two variables which both are of type Dictionary<int, int>.  Dictionary<int, int> d1 = new Dictionary<int, int> { ... }; Dictionary<int, int> d2 = new Dictionary<int, int> { ... };   Both dictionaries could potentionally contain the same keys.  I want them to combine into a single Dictionary<int, int> combinedDictionary.  What would be an elegant way to do this?   I've tried the following:  var combinedDictionary = d1.Concat(d2.Where(x => !d1.Keys.Contains(x.Key)));   But unfortunately, when trying to return this combined variable I get the following error:     Cannot convert expression type 'System.Collections.Generic.IEnumerable>' to return type 'System.Collections.Generic.Dictionary'.   Is it possible to safely cast it like this?  return (Dictionary<int, int>) combinedDictionary;   thanks in advance!

What's the best way to merge 2 or more dictionaries (Dictionary<T1,T2>) in C#? (3.0 features like LINQ are fine).  I'm thinking of a method signature along the lines of:  public static Dictionary<TKey,TValue>                  Merge<TKey,TValue>(Dictionary<TKey,TValue>[] dictionaries);   or  public static Dictionary<TKey,TValue>                  Merge<TKey,TValue>(IEnumerable<Dictionary<TKey,TValue>> dictionaries);   EDIT: Got a cool solution from JaredPar and Jon Skeet, but I was thinking of something that handles duplicate keys. In case of collision, it doesn't matter which value is saved to the dict as long as it's consistent.


Let $X_1(x),X_2(x),\ldots ,X_n(x)$ be iid random variables. They are non-decreasing, piecewise linear, convex and they depend on a parameter $x\in \mathbb{R}$. We know that for all $x\in \mathbb{R}$  $$\mathbf{P}\left(\lim_{n\to\infty}X_n(x)=X(x)\right)=1,$$ where $X$ is a constant for each $x\in\mathbb{R}$, meaning it can be thought of as a function $X\colon \mathbb{R}\to\mathbb{R}$. I want to prove that then $$\mathbf{P}\left(\lim_{n\to\infty}X_n(x)=X(x), \ \text{for all }x\in \mathbb{R}\right)=1.$$ Problem is that $\mathbb{R}$ is not countable. My thought is to choose a dense countable subset $\mathbb{Q}$ and from countable additivity we get $$\mathbf{P}\left(\bigcup_{x\in\mathbb{Q}} \lim_{n\to\infty} X_n(x)\neq X(x)\right)=\sum_{x\in\mathbb{Q}}\mathbf{P}\left(\lim_{n\to\infty}X_n(x)\neq X(x)\right)=0+0+\ldots =0.$$ Since the limit of convex functions is continuous, we know that $X$ is continuous. Hence the convergence must also happen in $\mathbb{R}\setminus \mathbb{Q}$. Is my explanation correct? Any ideas on how to improve it?  It is different from  as $X_i$ are continuous.

Let $X_1(x),X_2(x),\ldots ,X_n(x)$ be $n$ iid random variables. I know that  $$\mathbf{P}(\lim_n X_n(x)=X(x))=1$$ for each $x\in \mathbb{R}$. We also know that the limit random variable $X$ is a.s. constant and considering $X\colon \mathbb{R}\to\mathbb{R}$, it is continuous. I want to show that  $$\mathbf{P}(\lim_nX_n(x)=X(x)\ \text{ for all }x\in \mathbb{R})=1.$$ I thought about using countable additivity of probability on $\mathbb{Q}$ and then applying continuouty to extend the result to the whole $\mathbb{R}$. Since $$\mathbf{P}(\lim_nX_n(x)\neq X(x)\ \text{ for all }x\in \mathbb{Q})=\sum_{x\in \mathbb{Q}}\mathbb{P}(X_n(x)\neq X(x))=0+0+\ldots.$$ Is there anything else I should add to this explanation? Ideas?


I don’t understand the theorem:     $A$ and $B$ are similar if and only if they represent the same linear transformation.   I know one direction "If $A$ and $B$ represent the same linear transformation then they are similar", but why is the other direction also true?  (I did only basic linear algebra so could you please give an easy proof if possible! Or any intuitions for this theorem! Thank you!)

There is a theorem in the course notes but the lecturer didn't given the proof:   If $A,B\in M_n(K)$, where $K$ is a field. Then $A\sim B$ if and only if they represent the same linear transformation $T$ of an $n$-dimensional vector space $V$ over $K$ with respect to bases $\mathcal{B}$ and $\mathcal{C}$. i.e.,  $$ A\sim B\iff A=[T]_\mathcal{B},\ B=[T]_{\mathcal{C}}. $$  I know how to prove the '$\Leftarrow$' but I dont think I can prove the other direction '$\Rightarrow$'.   Could please somebody help me?


I'm trying to solve the exercise 6.7 of Miles Reid's Undergraduate Commutative Algebra (pag 93).      How can I prove that if $B$ is a finite ring extension of $A$, there are only finitely many prime ideals of $B$ whose intersection with $A$ is a given prime ideal of $A$?    Thank you!

Let $A$ be a commutative ring with identity and $B$ a finitely generated $A$-algebra that is integral over $A$.  If $\mathfrak{p}$ is a prime ideal of $A$, there are only finitely many prime ideals $P$ of $B$ such that $P\cap A=\mathfrak{p}$.   Let me say that I am aware of  answer, but I can't follow through the hint.  Also, I don't know how to extend to work for algebras rather than extension rings.


Define $\lambda^*:\wp\left(\mathbb R\right)\to\left[0,\infty\right]$ by  $$\lambda^*\left(E\right)=\inf\left\{\sum_{n\in\mathbb N}\left(b_n-a_n\right):E\subseteq\bigcup_{n\in\mathbb N}\left(a_n,b_n\right)\right\}.\tag{$\star$}$$  In other words, $\lambda^*$ is the Lebesgue outer measure.  Clearly, $\lambda^*\left(\left\{q\right\}\right)=0$ for every $q\in\mathbb R$. Therefore, since outer measures are countably subadditive, $\lambda^*\left(\mathbb Q\right)=0$;  $$\lambda^*\left(\mathbb Q\right)=\lambda^*\left(\bigcup_{q\in\mathbb Q}\left\{q\right\}\right)\leq\sum_{q\in\mathbb Q}\lambda^*\left(\left\{q\right\}\right)=0.$$  However, how does this follow from $\left(\star\right)$ alone? I am having a hard time coming up with a sequence of collections of intervals whose unions contain $\mathbb Q$ and whose sums approach zero since $\mathbb Q$ is dense in $\mathbb R$.

I have an intuition problem regarding a certain claim.  I've learned that since $\mathbb{Q}$ is measurable than  $$\lambda(\mathbb{Q})= \inf\left\{\sum_{n \ge 1} \lambda([a_n,b_n)) : \mathbb{Q} \subset \bigcup_{n \ge 1} [a_n,b_n)\right\}$$  This is because Lebesgue measure is the Caratheodory extension over the semiring whose elements are $[a,b)$.  But it seems so false, since as we know $\lambda(\mathbb{Q}) = 0$, But I can't even imagine a countable family of sets such that $\mathbb{Q} \subset \bigcup_{n \ge 1} [a_n,b_n)$ and  $\sum_{n \ge 1} \lambda([a_n,b_n)) < \infty$.  How can the infimum of the above set be $0$?


Suppose $f\colon\mathbb{R}\to\mathbb{R}$ is differentiable function and satisfies $$\forall x \in \mathbb{R}, \vert f'(x)\vert \leq \vert f(x)\vert, \quad f(0)=0.$$  Prove or disprove $f(x)=0$  How can I approach this problem?

$f:\Bbb R \to\Bbb R $ is differentiable, $f(0)=0$ and $|f'(x)|\le|f(x)|$ for all $x$ then prove $f$ is identically zero.  I tried to use mean value theorem and end up in $|f(x)|\le |x||f(c)|$ for some constant $c$ which depends on $x$. Can you help me little bit...


Is it worth it to migrate off-topic questions that already have an accepted answer?

I posted a question which was closed as off-topic and it seems like it could fit on another site in the network. How can I go about moving it there?   What is migration? When can a question be migrated, and who can migrate it? When should I consider migration, and when is it inappropriate? What causes a migration to be blocked and what happens after? What causes a migration to be rejected and what happens after? Anything else I should know about migration?


In what basis a micro controller or a microprocessor is classified as 8bit and 16bit?

Right, so we have 8-bit, 16-bit and 32-bit microcontrollers in this world at the moment. All of them are often used. How different is it to program 8-bit and 16-bit micrcontrollers? I mean, does it require different technique or skill? Lets take microchip for example. What new things does a person need to learn if they want to transition from 8-bit microcontrollers to 32-bit microcontrollers?


I am currently taking a course where my final mark is determine by 2 papers worth 50% each. I really hoped to get at least a B on my first paper. Unfortunately, I got a B- (71%?). I worked for 2-3 weeks on this very short paper and got help from both my TA and the writing clinic. I am in my final semester of undergrad (have not applied to grad school yet) and now I am considering dropping this course. If I drop this course, I will not be able to graduate in June and will have to take a course in the summer. This also means that I will only have 3 courses on my transcript this semester (if I drop it). This is a philosophy course and thus there is no positive correlation between how hard one studies and their mark (professors have told my class this many times). I will need a B+ on my second essay. I want to graduate in the top 10% of my class and, in order to do that, I need at least a 75% in this class. However, I am not sure how possible this is no matter how much I study or how much help I get. My other marks on my transcript are good, especially the ones that relate to the program I am interested in doing graduate work in. I am not studying philosophy in graduate school. My cGPA is a 3.5 and my GPA for the past 2 years of study is a 3.6-3.7. Graduate schools usually require at least a 3.3 for the last 2 years and a 3.0 overall.   I am not sure whether or not to drop this course. Will a low mark (high 60s/low 70s) in my last year affect my chances for grad school?  EDIT: "Good" GRE scores will not be able to "make up" for an discrepancies in my transcript since I am not required to take the GRE (nor is it accepted by most places).

When applying to a PhD program in the US, how does the admissions process work? If an applicant is weak in a particular area, is it possible to offset that by being strong in a different area?  Note that this question originated from this . Please feel free to edit the question to improve it.


Currently, I am trying to parse out all the files inside a directory. I have a find function, but it appears to not be able to parse in file directories with whitespaces into a loop. Here, "$DIR" is the directory I wish to search in. Does anyone have any ideas how I can modify it to work? thanks.  for file in $(find "$DIR" -type f) do    echo "$file" done

This question is inspired by    I see these constructs  for file in `find . -type f -name ...`; do smth with ${file}; done   and  for dir in $(find . -type d -name ...); do smth with ${dir}; done   being used here almost on a daily basis even if some people take the time to comment on those posts explaining why this kind of stuff should be avoided... Seeing the number of such posts (and the fact that sometimes those comments are simply ignored) I thought I might as well ask a question:  Why is looping over find's output bad practice and what's the proper way to run one or more commands for each file name/path returned by find ?


According to what I have learnt, when we take a decision of permanent redirect, the SEO is impacted like in the folowing example:   Redirect www.example.net to www.example.com Redirect www.example1.com to www.example2.com Redirect www.example.com/category1 to www.example.com/category2   The best thing to do is to take a solid and immutable decision from the beginning.  My question:  I am not prepared yet for https URLs, but it's programed in the midlle term, will I incure some SEO loss when I will redirect all http URLs to https ? Or bots are so smart to handle sush situations.

Following the recent Google announcements about  we have a number of clients asking about this. Is it safe to just 301 redirect all pages to their SSL equivalent, for example in a common PHP include file:  if($_SERVER['HTTPS']!="on"){     $redirect= "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];     header("Location:$redirect",true,301);     exit(); }   Obviously I'm aware this is also possible within a .htaccess file but that cannot be modified in our case.  Obviously all internal links would be switched to https:// links but obviously we need to sort out incoming links from Google and elsewhere.   Is this a sound approach? Are there any other gotchas to be aware of?


I have a problem similar to others that have posted: balancing heating/cooling throughout the house. I have already played with adjusting the vent's air flow as well as the manual dampers in the basement runs.... nothing seems to work sufficiently.   So I am trying to figure out how to add both an extra thermostat for the bedrooms and electric dampers to control the air flow to just the bed rooms when needed. My thought is to install electric dampers on the main level HVAC branches off the main run.   The trick is I need something to help with the very simple logic:    When both thermostats on are, all vents are open.  When The Main is on but bedroom off, all vents remain open.  But when just the bedroom thermostat calls for heat and the main doesn't, the dampers close to redirect the heat to those rooms only.   I have 7 vents in the main house and 5 in the bedrooms. I figure I can install a mechanical damper to control overpressurization if that becomes a problem. The real trick is something to control the logic. The electric dampers will run me around $400 for the 7 that need controlling so even another few hundred would be worth it for comfortable rooms. Any ideas?  EDIT: I have been thinking about this a lot the last few days and have bounced it off some especially handy family members. I think I may have some solutions...  I was thinking about it backwards. I would install dampers that are usually closed vs open. When power is applied, they would open. So when the main house calls for heat, the dampers open and heat goes all over the house (although mainly on the first floor). When the second thermostat in the bedroom calls for heat and the main doesn't the dampers would be closed and heat would pump towards the bedrooms.  It turns out wiring two thermostats in parallel isn't such a big deal as long as they are both set to heat or cool and if I install a backflow damper, I can ensure I don't do damage to the hvac system.  So I just need to wire the main thermostat to not only the furnace but also to a power panel that opens up the dampers  No computer controller needed, right? What am I missing?

The residential forced-air HVAC systems I have seen are controlled by a single thermostat in one room.  One has to manually adjust the vents in order to adjust the temperature in other rooms.  Is there such a think as thermostat-controlled, automatically-adjustable vents so that one can have multiple heating/cooling zones without having multiple furnaces and air-conditioners?


I want to redirect all requests from example.com to www.example.com.   Preferably, this should happen at DNS level. I tried using PTR records, but that simply fails, returning a 404.  wwww.example.com is an ALIAS for an Elastic Load Balancer.  What’s the simplest way to achieve this?

I host my site at domain.com.  My DNS entries in Route53 are as follows:  domain.com      A       xxx.xxx.xxx.xxx      300 domain.com      NS      stuff.awsdns-47.org  172800 domain.com      SOA     stuff.awsdns-47.org  900   I would like to redirect traffic from www.domain.com to domain.com, as currently this just returns a 404.  suggested a PTR record, and I added that:  www.domain.com  PTR     domain.com           300   but it didn't work. What should I be doing?


I'm trying to wrap my head around the recent events of , that  the short interest to be 140.3%. I have not been able to find any satisfactory explanation as to how this is possible or calculated. Especially since most sources simply state that:  Short interest is a measure of the number of shares that are currently being shorted compared to the number of tradable shares in the market (the float).    How can you short more shares than what is available?  UPDATE: 2021-02-01 I've since found some relevant info that relates to how large hedge funds can force stocks into pennies and eventually zero. It explains in more detail how the (shorted) stock borrowing scheme is working.     DISCLAIMER: I am not able to determine the veracity of this info.  Other Related Questions:

"Short positions currently make up an impossible 140% of GameStop’s float, which is the result of a flaw in how short interest is calculated, a flaw that’s getting greatly magnified in the case of GameStop, ." Where is the additional 40% coming from? Outstanding - restricted = float = max can borrow [Am I misunderstanding something here?] Update: So I got some validation from someone credible, I want to give special thanks to Dan Caplinger, the writer of  The following is the email conversation:  During my research I also learnt that there are ways to prevent your long positions from being borrowed 1) you do not agree to it when signing up with the brokers 2) set up impossible GTC orders (but you should still confirm these conditions with your actual brokers)


I wonder if it's a good idea to put LEDs in parallel, as below:    I've heard that it might not be because the voltage threshold won't be exactly the same for each LED, so they'll shine all with very different brightness and you don't have a way to balance that. Is that true? So does it mean it's a bad idea?

Why can't you use a single resistor for a number of LEDs in parallel instead of one each?


I am unable to figure out the problem with this proof. Is it that the associative law does not apply for negative numbers.

I know there must be something unmathematical in the following but I don't know where it is: \begin{align} \sqrt{-1} &= i \\\\\ \frac1{\sqrt{-1}} &= \frac1i \\\\  \frac{\sqrt1}{\sqrt{-1}} &= \frac1i \\\\  \sqrt{\frac1{-1}} &= \frac1i \\\\  \sqrt{\frac{-1}1} &= \frac1i \\\\  \sqrt{-1} &= \frac1i \\\\  i &= \frac1i \\\\  i^2 &= 1 \\\\  -1 &= 1 \quad !!? \end{align}


My asus laptop suddenly stuck at UBUNTU loading screen, it keeps on loading for ever. It flashes after 1 or 2 seconds with black screen and with some writing.  It has AMD graphics card.  So all the other solutions that I tried didn't work as they were for NVidia.  Seeking help

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


i have to solve this double series. i tried it, but i am not sure, that it is enough. $$\sum_{i=1}^{\infty} \sum_{k=1}^{\infty} \left(\left(\frac{1}{k+1} \cdot \left(\frac{k}{k+1}\right)^{i}\right) - \left(\frac{1}{k+2} \cdot \left(\frac{k+1}{k+2}\right)^{i}\right)\right)$$ $$= \sum_{i=1}^{\infty} \sum_{k=1}^{\infty} \frac{(1)^{i}}{k+1}  - \frac{(1)^{i}}{k+2} $$ $$= \sum_{i=1}^{\infty} \sum_{k=1}^{\infty} \frac{1}{k+1}  - \frac{1}{k+2} $$ this is a telescoping series. Because of that, the Series is convergence to $\lim_{n\to\infty} \frac{1}{2} - \frac{1}{n+2} = \frac{1}{2}$ Is this solution right and enough?

I have to show that the double serie $$\sum_{k=1}^{\infty} \sum_{i=1}^{\infty} ((\frac{1}{k+1} \cdot (\frac{k}{k+1})^{i}) - (\frac{1}{k+2} \cdot (\frac{k+1}{k+2})^{i}))$$ convergence to $-\frac{1}{2}$. Wolfram Alpha also says this series convergence to $-\frac{1}{2}$. Unfortunately, I don't know the calculation route.


I know that $$\sum_{i=1}^ni=\frac{n(n+1)}{2}$$ can be proved using Gauss method , and  $$\sum_{i=1}^ni^2=\frac{(n^2+n)(2n+1)}{6}$$ can be proved using induction method,  what is the value of $$\sum_{i=1}^ni^m$$

Is there explicit formula for the expression $1^n + 2^n + \dotsc + k^n\,$?  I know that for $n=1$ the explicit formula becomes $S=k(k+1)/2$ and for $n=3$ the formula becomes $S^2$. But what about general $n$?  I know there is a way using the Taylor expansion of $f(x)=1/(1-x)=1+x+x^2+\dotsc\;$, by differentiating it and then multiplying by $x$ and then differentiating again. Repeating this $n$ times, we get  $$\frac{d}{dx}(x\frac{d}{dx}(\dots x\frac{d}{dx}f(x))\dots )=1+2^nx^n+3^nx^n\dots.$$  Now do the same process but with the function $g(x)=x^{k+1}f(x)$. Then subtract them and we get $1+2^nx^n+\dots k^nx^n$. Because we have the explicit formulas $f(x)$ and $g(x)$ we can find the explicit formula by this process for arbitrary $n$. A big problem is that as $n$ grows, it is going take a lot of time finding the explicit formula. My question is therefore: are there other ways?


I have a hard time understanding how the world lines of tachyons in a space-time diagram imply the violation of causality. Can you explain why that is?

Let's say I have two planets that are one hundred thousand lightyears away from each other. I and my immortal friend on the other planet want to communicate, with a strong laser and a tachyon communication device.  I record a message on the tachyon communication device and release the message at exactly the same time as I activate the laser, both of which are directed to the other planet which is one hundred thousand lightyears away. Say it is the year 0 for both of us at the time I did this.  If tachyons existed, then the message would arrive to my friend before the photons in the laser. It would arrive, say, a thousand years earlier. From my vantage point, that message will arrive to her at year 99,999; the same would be true for my friend's vantage point. However, she will only see the laser at year 100,000.  So since she got the message at year 99,999, she immediately sends me a reply back going through the same procedure as I did. She records a message and releases it at the same time as the laser. The tachyons will arrive 1,000 years earlier than the laser, so for me, I will receive the message at year 199,998. I will receive the laser, however, at year 199,999.  It seems to me that communication this way does not violate causality. I will still have received the message after I had sent it.   If tachyons truly violated causality, though, I realize it should arrive at year -1 for her, and so she can reply to me at year -2, which would mess me up by year 0 as I will ask her how she knew I was planning on sending her a message before I sent it. I could send her a different message, which she would end up receiving at year -1, and will end up confusing her as she would have received one message asking her out, and the other asking her how did she know I was asking her out. She then decides I am crazy and sends me a message at year -2 that she does not want to date me, and so she will have both turned me down and entertained me before I have even asked her out.  On the other hand, let's go back to year 0 and add a third device to our list: an Alcubierre drive. After I send out the message and the laser, I get impatient and do not feel like waiting 99,999 years, so I get on my Alcubierre drive spaceship and arrive on her planet at the same year 0. My friend is not in her office, so I leave a note to her also immortal secretary saying I dropped by and that she should expect a message for her in year 99,999.  I then get back on my Alcubierre drive and land back on my planet, still on year 0. Meanwhile, the tachyons and photons I sent out are still racing to arrive to her. By year 99,999, she receives the message just as I Alcubierre drive back to her, and I pick her up for dinner.  But the point of my question is, it seems to me that just going faster than light, if that alone was what you had, would not violate causality. It must be something else. I understand time dilation and that things with mass cannot travel at the speed of light, but using the Alcubierre drive, hypothetically speaking, I was still able to outpace the photons while also having mass. It still did not produce causality problems. Alcubierre drives are also valid solutions to GR.  It seems circular to me to say that what makes traveling faster than light violate causality is because it violates causality (if faster than light communication was divorced from causality problems, then the causality problem would cause itself -- thereby violating causality and, hence, we would scrap it and conclude that there is no causality problem after all).  What is it that I am missing? If someone could help me out, that would be excellent. I've been itching to ask my friend out for a few millenia now. :)


I want to detect a golden armor that has a yellow name, prot 26 and fire prot 20.  /give @s minecraft:golden_helmet{Unbreakable:1,Enchantments:[{id:"minecraft:protection",lvl:26},{id:"minecraft:fire_protection",lvl:20}],HideFlags:1} 1  Edit: I don't know if it matters, but i used /itemrename &eShinee Glowstone Chestplate. I tried using /data get entity @s SelectedItem.tag.display.Name.

I am working on a command block contraption on my server that involves armor giving you certain potion effects.  /execute if entity @p[nbt={Inventory[{Slot:100b,id:"minecraft:leather_boots",tag:{display:{Name:"{\"text\":\"Frog Boots\"}"}}}]}] run effect give @s jump_boost 1 1 true  However, it only works if the boots are named in an anvil. How would I write the command if I wanted to test if the player was wearing boots named "Frog Boots" in bold and green text?


My files app is not on my home screen and don't know how to find it because I am sure it was there and don't know how or why it disappeared so I really hope someone can help me please. Thanks Sue

After updating to Android 5.0, I can no longer find the 'My Files' application. Has this feature been disabled? If not, where is this now located?


I have a previously school-owned iPad that I would like to restore but in order to do that I need to turn off 'Find my iPad.' I can't figure out my Apple ID password to do this and I can't reset it because it requires that I use my school email which no longer works and I can't answer the security questions correctly. Is there a way to turn off 'Find my iPad' without an Apple ID password or is there a way to reset my iPad without turning off 'Find my iPad?'

I bought a used iPhone 4.  The previous owner re-set the phone, but did not remove the device from their iCloud.  It is asking me for their iCloud information when I try to set-up the phone.  I don't have contact with the previous owner anymore.  Is there a way to remove the device from their iCloud so I can use a new one?


I would to know where can I find free 3d models like the following:   cyclette   monitor   piano  My goal is to make a very large render, where these parts are only small details, so I don't need (if I can find a faster way) to learn how to model them by myself. In other words, my render is an "architecture render" and these are only parts to enrich the render.  Some advice? In your opinion, should I learn how to build them or is there a website where I can take and import them to enrich my render? This question is because I am afraid of spend too much time to model them, when they are only details, not important how they are, I don't know if I am explaining well what I want to say. Thank you and sorry for my bad english!

Since asking for tutorials, videos, resources, links to other content or downloads is considered off topic here, this is a specifically created Community Wiki which gathers resources for Blender and it has been approved by the .  Just write in the appropriate answer/section. If you have concerns, questions, post a  question, so we don't clutter the comments, but you can link your meta question from the comments.  Questions regarding such resources are not allowed anymore, except for very specific and on topic requests (ask on  if you're unsure about your question). Follow the instructions made in the question about how to post, what can be posted, etc.  Learning             Assets    (also see: )   Reference Images/Blueprints (also see: )    Tools    (also see: )      Other   Special Interest ()     Also see the .


He is taller than I. He is taller than me.  I saw both sentences on an official website of a famous university in Indiana, USA. On the grammar page, sentence one is an example of how personal pronouns are used. While sentence two is considered negative and ungrammatical. In the Oxford Dictionary, sentence two is correct because " than" is defined as a preposition. So, I'm wondering, which should I trust.

Consider the sentence "I can run faster than 15 miles per hour." Its meaning is clear and to my eyes obviously grammatically correct. Now let me present some variations that have given me trouble for a long time.  I am faster than 15 miles per hour. – To me this is clearly incorrect. Directly comparing me to a speed doesn't seem right. We need to compare my speed to a speed, or me to another person.  I can run faster than him. – Compared to the base sentence, there is a distinct shift in meaning of the comparison. While before I named a speed faster than which I can run, now I am naming a person. It doesn't seem quite right. I realize the parts of speech can change, but my initial objection is that "him" is not a speed.  I can run faster than he. – This seems most correct to me, but still somehow feels objectionable. Is this in fact the correct way to say it? And if so, is it proper as is or need I say "... faster than he can" or even "... faster than he can run?"  I am faster than him. – With "am" instead of "can run" it now seems slightly more correct. But is it?  I am faster than he. – I'm in doubt here. It doesn't seem wrong to me to say, "I am faster than he is" or even "I am faster than he is fast." (Though I suppose that is a given since I could hardly properly compare to some other category as in "I am faster than he is smart.")  My speed is faster than his. – Hmm. This seems more proper as "my speed is greater than his."   So which of these constructions is correct and which is incorrect? Is there a general rule that I can follow? UPDATE The scholarly article  may be of great interest to some readers!  Once we accept that the elided constituent and its antecedent can differ in form, it becomes reasonable to ask how large this difference can be. The answer in Rooth (1992), Fiengo and May (1994), Chung et al. (1995) and subsequent work is that the wiggle room is actually quite small: the elided constituent and its antecedent are allowed to differ only in the realization of inﬂectional morphology. Other than that, both constituents have to be syntactically and lexically isomorphic.


I'm considering learning blender as my first foray into animation. Before I commit to learning it, however, I would like to know if the Blender workflow will lend itself to efficiently complete the tasks I have in mind. To illustrate what functionality I'm looking for, say you created a TV Series that revolves around a girl. Say that in episode 70, I decide I want her father to die for some reason. Perhaps she remembers then that her father was always saying she should read a particular book, but she never did. And now she wants to. When creating episode 1, I didn't know that I would have episode 70 play out in this way. Now, I'd like to go back and change the girl's bookshelf to include a book that stands out so as to foreshadow that it may be important in the future. If I was doing all this in blender, would I have to go back through all of the episodes separately and change the bookshelf manually? My hope would be that the construction of the girl's room could be written into a separate script, so that each episode sources it and builds the room. Therefore, I could change that one source script, and every episode gets updated at once. Does Blender have this sort of functionality? Or is there some other software that is more suitable? I imagine that animated TV shows have addressed this sort of issue already, how have they done it?

I have created several designs for a particular project and they are related, but I don't want to have to keep recreating any similar elements, such as shared materials or textures.  How can I use the existing data in a new Blender file?


I am writing my thesis and everything is working grat except the quoting from the bibliography. I have to say that I am more or less a newbee in this topic - so far I did with the normal bibliography "thebibliography", but I would like to use BibLaTex instead in order to have a better overview over all citations. Also it would be nice to use the abreviations including the first letters of the author and the latter two numbers of the year, e.g. "Fe02".  What I have so far is the following bib-file (only one element shown) saved under the name mylibrary.bib in the same location as the other tex-files.  @BOOK{fernholz02,     AUTHOR = {Fernholz, E. Robert},     YEAR = {2002},     TITLE = {Stochastic Portfolio Theory},     EDITION = {1st edition},     ISBN = {978-1-4419-2987-7},     PUBLISHER = {Springer Science + Business Media New York}, }   Now I have inserted the library in my tex-file in the following way (neglected the other things in the preamble):  \documentclass[a4paper]{report} \usepackage[ngerman,english]{babel} \usepackage[backend=biber]{biblatex} \usepackage{csquotes} \bibliography{mylibrary}    \begin{document}      \section{introduction}      This is the introduction and \cite{fernholz02} is such a nice book that it is often-cited in this thesis.     \printbibliography \end{document}   When running the compiler with PDFLaTeX, it gives the following error messages. Mainly, he couldn't find the bibliography.  Citation 'fernholz02' on page 1 undefined Empty bibliography There were undefined references. Please (re)run Biber on the file.... and rerun LaTeX afterwards.   I have already searched in other questions for the solution. Suggested was for example to run first PDFLaTeX, then BibTeX and then twice PDFLaTeX again. But this ends by the second time of compiling in an error message related to BibTeX:  This is BibTeX, Version 0.99d (TeX Live 2014/W32TeX) The top-level auxiliary file: test_biblio.aux I found no \citation commands---while reading file test_biblio.aux I found no \bibdata command---while reading file test_biblio.aux I found no \bibstyle command---while reading file test_biblio.aux (There were 3 error messages)   What I am doing wrong? I appreciate any help - thanks already!

Is there a 'biblatex in a nutshell' guide out there? I'd like if someone explained to me the essentials on how to use biblatex (what lines I have to write in my document, which files I have to have, how many times and what I have to compile), so then I can go to  to customise it further.


I want to define a set    $S= \left\{   \left[\matrix{ a &b \cr a^2 & b^2\cr }\right] \left| \right.  a, b  {\rm \  real \  numbers}  \right\} $   How do I make the separating bar |  same size as the  matrix delimiter?

After browsing through related threads, I am now of the understanding (please correct me if I am wrong) that the rule of thumb is to use the \bigl,\bigr pair with brackets, parentheses, etc. for operators like sums, products, and integrals, and \left,\right in all other cases.  I only recently found out about \middle , which has solved what had been a vexing problem for me: delimiters for function arguments (slashes, bars) not scaling properly. Leafing through my cheatsheet has not been of much help, so I wish to ask: is there an equivalent of \middle for \bigl and \bigr, or would the use of \middle along with that pair not be gauche?


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

I am using the natbib package, in the text I need the citation like      (Oganov 2010a, Oganov 2010b, Oganov 2011)   but i am getting the output      (Oganov 2010a,b,2011)   How to disable the compression in the natbib package  \documentclass{book}  \usepackage{natbib}  \begin{document}  examples for systems that have been studied successfully \citep{Oganov-2010c,Oganov-2010b,Oganov-2011}.   \begin{thebibliography}{} \bibitem[\protect\citeauthoryear{Oganov, Ma, Lyakhov, Valle and Gatti}{Oganov {\em et~al.}}{2010{\em a}}]{Oganov-2010c} Oganov, A.R., Ma, Y.~M., Lyakhov, A.~O., Valle, M., and Gatti, C. (2010{\em   a}). \newblock Evolutionary crystal structure prediction and novel high-pressure   phases. \newblock In {\em High-Pressure Crystallography: From Fundamental Phenomena to   Technological Applications} (ed. E.~Boldyreva and P.~Dera), NATO Science for   Peace and Security Series B: Physics and Biophysics, pp.\  293--323. Springer   Netherlands.  \bibitem[\protect\citeauthoryear{Oganov}{Oganov}{2011}]{Oganov-2011b} Oganov, A.~R. (ed.) (2011). \newblock {\em Modern Methods of Crystal Structure Prediction}. \newblock WILEY-VCH Verlag \& Co. KGaA. \newblock ISBN: 978-3-527-40939-6.  \bibitem[\protect\citeauthoryear{Oganov, Lyakhov and Valle}{Oganov {\em   et~al.}}{2011}]{Oganov-2011} Oganov, A.~R., Lyakhov, A.~O., and Valle, M. (2011). \newblock How evolutionary crystal structure prediction works -- and why. \newblock {\em Acc. Chem. Res.\/},~\textbf{44}, 227--37.  \bibitem[\protect\citeauthoryear{Oganov, Ma, Lyakhov, Valle and Gatti}{Oganov {\em et~al.}}{2010{\em b}}]{Oganov-2010b} Oganov, A.~R., Ma, Y.~M., Lyakhov, A.~O., Valle, M., and Gatti, C. (2010{\em   b}). \newblock {Evolutionary crystal structure prediction as a method for the   discovery of minerals and materials}. \newblock {\em Rev. Min. Geochem.\/},~\textbf{71}, 271--298.  \end{thebibliography}   \end{document}


I have no calculations, I just converted, I need to send data in numeric type, but after conversion is not normal, why java python kotlin conversion is no problem, swift has a problem? I know the problem of computer storage accuracy, is there a way for swift to correctly convert string?   How can I make a string to a number without distortion?

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


Is there a hidden setting or an external utility that would enable moving windows on Windows like on GNOME?  I'm particularly thinking of moving windows using Alt + Drag and drop (which can be changed to Win + drag and drop).  I have machine with Windows (7) and two big monitors at work, and I tend to use multiple smaller windows.  Moving them quickly around is essential, so I'm always missing this GNOME feature.

In most Linux window managers, one can use the Alt key while clicking and dragging to rearrange windows. This is one of my favorite features of Linux window managers.  Is there a way to do this in Windows 7?


I am learning SR, and don't understand the difference between the following notations of a Lorentz transformation $\Lambda$ $$\Lambda_{\mu\nu} , \Lambda_{\mu}\ ^\nu , \Lambda^{\mu\nu}$$  I know that they are related to the size of the tensor, but I am not sure how they are different

I have some open-ended questions on the use of staggered indices in writing Lorentz transformations and their inverses and transposes.  What are the respective meanings of $\Lambda^\mu{}_\nu$ as compared to $\Lambda_\mu{}^\nu$? How does one use this staggered index notation to denote transpose or inverse?  If I want to take any of these objects and explicitly write them out as matrices, then is there a rule for knowing which index labels row and which labels column for a matrix element? Is the rule: "(left index, right index) = (row, column)" or is it "(upper index, lower index) = (row, column)" or is there a different rule for $\Lambda^\mu{}_\nu$ as compared to $\Lambda_\mu{}^\nu$?  Are there different conventions for any of this used by different authors?  As a concrete example of my confusion, let me try to show two definitions of a Lorentz transformation are equivalent.  Definition-1 (typical QFT book): $\Lambda^\mu{}_\alpha \Lambda^\nu{}_\beta \eta^{\alpha\beta} = \eta^{\mu\nu}$  Definition-2 ($\Lambda$ matrix must preserve pseudo inner product given by $\eta$ matrix): $(\Lambda x)^T \eta (\Lambda y) = x^T \eta y$, for all $x,y \in \mathbb{R}^4$. This implies, in terms of matrix components (and now I'll switch to linear algebra notation, away from physics-tensor notation): $\sum_{j,k}(\Lambda^T)_{ij} \eta_{jk} \Lambda_{kl} = \eta_{il}$. This last equation is my "Definition-2" of a Lorentz transformation, $\Lambda$, and I can't get it to look like "Definition-1", i.e., I can't manipulate-away the slight difference in the ordering of the indices.


I use \usepackage{natbib} and \bibliographystyle{apalike} for producing the bibliography in my book. Here is a sample for the items @collection built in my lib.bib file:  @incollection{MABh,     Booktitle = {The Tibetan Tripitaka - Peking edition},     Date-Added = {2016-10-01 20:30:51 +0000},     Date-Modified = {2017-11-15 13:34:00 +0000},     Editor = {Suzuki, Daisetz T.},     Key = {MABh},     Pages = {for Peking 264b8-408b7 (p.108-166) And for Derge 220b1-348a7},     Publisher = {Tokyo : Suzuki Research Foundation, 1962},     Title = {Candrak{\=\i}rti's Dbu Ma La 'Jug Pa'i Bshad Ba Shes Bya Ba (Tibetan translation of Madhyamak{\=a}vat{\=a}rabh{\=a}{\d s}ya)},     url = "https://www.tbrc.org/#library_work_ViewByOutline-O1GS60111GS36115%7CW23703",     Volume = {for Peking (Q 5263) dbu ma, 'a (vol.98) and for Derge (D 3862) dbu ma, 'a},     Year = {1962}}   However, when this item is printed in the bibliography, it shows as follows:   AS you see, the real book name is not printed in every first letter capital style. Please tell me how can I get such book name just as what I write in the "title". Thanks.

Titles of articles I'm about to cite contain upper case letters and when using BibTeX it converts them to lower case ones. This happens only in the title and only the first letter conserves its case. For example, when I cite an article about HF, the reader won't know if it is about Hafnium (Hf) or fluorine acid (HF).  I know that I can fix it manually in the .bbl file but I would like to avoid it, or fix it automatically.


How can I keep photos on icloud that I want to delete from my phone?  If I delete a photo from my phone after I have backed it up to iCloud will it stay in iCloud the next time I back up my phone?

Can you delete pictures from an iPhone and still have it saved in iCloud? If so, how?


I watched a tv show, a quiz program, the name of the program is "Who wants to be a millionaire". Well I don't want to be a millionare, at least not right now, but the title always makes me curious somehow, I thought the correct sentence would be "Who does want to be". What are their differences then ?

Possible Duplicate:                 What is the difference between does have and has? For example, compare she does have a car and she has a car.


I want to declare a list in python 2.7 and initialize it with 10 lists, each containing 10 elements, all initialized to 0. So its a list which contains 10 lists. I do it as shown below.  l = [[0] * 10] * 10   After doing this, when I try to assign a value to any element within any of the 10 lists, the assignment is reflected across all other lists. i.e  l[0][0] = 1 print l[0] --> 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 print l[1] --> 1, 0, 0, 0, 0, 0, 0, 0, 0, 0   As seen above, the assignment of 1 to the first element of list at index 0 is reflected in the list at index 1 too. This is case for all the other 10 lists.  However, if I do the below  for i in range(10):     l.append([0] * 10)   This does not happen. I think this has got to do with the "*" operator, but I do not know the exact reason. I would appreciate it if anybody can help me understand this behavior.

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?


Charged pions $\pi^\pm$ decay via an intermediate $W$ to (e.g.) a lepton-neutrino pair.   The pions being scalar (spin-0) particles and the intermediate $W$ having spin 1, how is spin conserved in this interaction?

I have seen the charged pion decay $$\pi^{-}~\to~ \bar{\nu}_{\ell} +\ell^{-}$$ represented with diagrams containing a $W^-$ in the $s$-channel.  The $\pi^-$ and $W^-$ have angular momentum $0$ and $1$ respectively, though. How does this process conserve angular momentum?  I see that this question has been asked before, but I haven't found an answers.


I have this function call after importing foo.py. Foo has several methods that I need to call e.g. foo.paint, foo.draw:  import foo  code  if foo:     getattr(foo, 'paint')()   I need to use a while loop to call and iterate through all the functions foo.paint, foo.draw etc. How do i go about it?

I have a Python module installed on my system and I'd like to be able to see what functions/classes/methods are available in it. I want to call the help function on each one. In Ruby I can do something like ClassName.methods to get a list of all the methods available on that class. Is there something similar in Python? eg. something like: from somemodule import foo print(foo.methods)  # or whatever is the correct method to call