How to detect color-named armor? (1.15.2)

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.


Mothballs in the pantry: is it safe to keep food there?

My roommate put some mothballs in the pantry and when I came home and saw them, I took them out.  They were probably only there for a few hours, but is it safe to store food in there?  Should I throw out the food that was in there together with the mothballs?  I'm leaning towards 'when in doubt throw it out' but I'm unsure whether that is overkill in this case.


Reputation chart on profile page is cut off on right side

The chart to display the reputation of a user in its profile is cut off on the right side, so that the last bar is smaller than the others bars in the chart.    I check this with Chrome 25.0.1364.172 and FireFox 19.0.2.


How to recover clash of clans account that was not on Google+

I didnt connect on google+ and then my phone was wiped so how do I recover my old base?


**How** harmful is a hard disk spin cycle?

It is conventional wisdom¹ that each time you spin a hard disk down and back up, you shave some time off its life expectancy.  The topic has been discussed before:       Common explanations for why spindowns and spinups are harmful are that they induce more stress on the mechanical parts than ordinary running, and that they cause heat variations that are harmful to the device mechanics.  Is there any data showing quantitatively how bad a spin cycle is? That is, how much life expectancy does a spin cycle cost? Or, more practically, if I know that I'm not going to need a disk for X seconds, how large should X be to warrant spinning down?  ¹  But conventional wisdom has been wrong before; for example, it is commonly held that hard disks should be kept as cool as possible, but the  shows that cooler drives actually fail more. This study is no help here since all the disks surveyed were powered on 24/7.


Limit of the sequence $\{n^n/n!\}$, is this sequence bounded, convergent and eventually monotonic?

I am trying to check whether or not the sequence $$a_{n} =\left\{\frac{n^n}{n!}\right\}_{n=1}^{\infty}$$ is bounded, convergent and ultimately monotonic (there exists an $N$ such that for all $n\geq N$ the sequence is monotonically increasing or decreasing). However, I'm having a lot of trouble finding a solution that sufficiently satisfies me.  My best argument so far is as follows,  $$a_{n} = \frac{n\cdot n\cdot n\cdot \ldots\cdot n}{n(n-1)(n-2)(n-3)\dots(2)(1)} = \frac{n}{n}\cdot \frac{n}{n-1}\cdot  \ldots \cdot \frac{n}2\cdot n$$  so $\lim a_{n}\rightarrow \infty$ since $n<a_{n}$ for all $n>1$. Since the sequence is divergent, it follows that the function must be ultimately monotonic.  This feels a little dubious to me, I feel like I can form a much better argument than that, or at the very least a more elegant one. I've tried to assume $\{a_{n}\}$ approaches some limit $L$ so there exists some $N$ such that  $|a_{n} - L| < \epsilon$ whenever $n>N$ and derive a contradiction, but this approach got me nowhere.  Finally, I've also tried to use the fact that $\frac{a_{n+1}}{a_n}\rightarrow e$ to help me, but I couldn't find an argument where that fact would be useful.


How can I test programmatically if a path/file is a shortcut?

I need to test if a file is a shortcut. I'm still trying to figure out how stuff will be set up, but I might only have it's path, I might only have the actual contents of the file (as a byte[]) or I might have both.  A few complications include that I it could be in a zip file (in this cases the path will be an internal path)


I have a small one person s-corp in USA. It's now almost first day of summer; however, I still haven't filed my corp taxes due to some personal issues. What do I do at this point? Should I just fill my taxes using TurboTax? What is the late fee?


Non-EU citizen Schengen visa via French Embassy

Me and my Filipina wife want to go home to Transylvania, Romania.    Since early 2014, Romania is now a part of the Schengen area. If she has a non-immigrant visa from France, will she be allowed to arrive in Romania?    How much time would it take for the visa processing?


As we know, American film industry is referred as Hollywood. The American film industry is called so because the film industry emerged at the place called (Correct me if I am wrong). The place adopted the name Hollywood which is informally known as Tinseltown.  But my question is not about Hollywood but the . This is widely referred as Bollywood.   From the  page of Bollywood:      Bollywood is the sobriquet for India's Hindi language film industry, based in the city of Mumbai, Maharashtra. It is more formally referred to as Hindi cinema. The term "Bollywood" is often used by non-Indians as a synecdoche to refer to the whole of Indian cinema; however, Bollywood proper is only a part of the larger Indian film industry, which includes other production centres producing films in many other Indian languages. There is no place in India called Bollywood like the Hollywood.    Many people prefer calling it as Hindi film industry and against naming film industries with wood. There are other film industries in India too in other languages. Eg: Telugu film industry is named as Tollywood, Tamil industry is named Kollywood etc.,   is the list of Hollywood inspired nicknames.  My question:   Who is the creator of the word Bollywood? Since when did the word become popular?


How to drill a grommet hole through a desk?

I have a wall desk that hides away 2 power outlet on the wall.  How do I drill a grommet hole that is wide enough to run cables through and cover it with plastic wire cover.  What sort of tool do I need? Can this be done with a hand held electric drill and the right drill bit?


Is the Command spell's "one-word command" the only verbal component of the spell, or is there more?

The  spell states, in part, that:  You speak a one-word command to a creature you can see within range.  The spell also requires a Verbal component. When I cast the command spell, is the "one-word command" the only verbal component?


I saw this symbol recently used in the TeXworks user manual, I'd like to know how to insert it. I found it in the manual on GitHub (), it was on page 7 at the bottom. I have never seen it before and was wondering if there is a command for it.


Fibonacci Numbers $F_n$ and $F_{n + 1}$ are relatively prime for all $n \geq 0$.

I have looked a bunch of solutions of this problem on the web. But I want to know that whether my solution is correct or not. My solution is as follows  Proof(By Induction)  $P(n)$:The Fibonacci numbers $F_n$ and $F_{n + 1}$ are relatively prime.  Base Case: $P(0)$ is true because $F_0 = 0$ and $F_1 = 1$ are relatively prime.  Inductive Step:   Assume $P(n)$ to be true. Now to show that for $n \geq 0$, $P(n) \implies P(n + 1)$  $\implies \gcd(F_n, F_{n + 1}) = 1$  $\implies s(F_n) + t(F_{n + 1}) = 1$  $\implies s(F_{n + 2} - F_{n + 1}) + t(F_{n + 1}) = 1$  $\implies (t - s)(F_{n + 1}) + s(F_{n + 2}) = 1$  $\implies \gcd(F_{n + 1}, F_{n + 2}) = 1$  $\implies P(n + 1)$ is true  Thus, by induction $P(n)$ is true for all $n \geq 0$.


Refer to a file under the same directory of a script found in $PATH

I have a bash script file, which is put under some directory added to $PATH so that I can call the script from any directory.  There is another text file under the same directory as the script. I wonder how to refer to the text file in the script?  For example, if the script is just to output the content of the text file, cat textfile won't work, since when calling the script from a different directory, the text file is not found.


$x \in  Z$. Prove, that all prime divisors of $x^{16}+1$, which are not equal to 2, are equal $1 \pmod{32}$.


Find $a$, $b$ and $c$ that satisfy the following equations

Find all integers  $a$,$b$ and $c$ that satisfy the following equations  $a^2=bc+1\tag{i}$  $b^2=ac+1\tag{ii}$    I tried solving came out with following results:  $(i)-(ii)$ gives $a+b+c=0$ which implies, $a^3+b^3+c^3=3abc$  Multiplying equation $(i)$ with $a$ and multiplying equation $(ii)$ with $b$ and then subtracting $(i)-(ii)$ we get  $a^2+b^2+ab=1$ which can be written as  $(a+b)^2-ab=1$ , which can be further written as $c^2-ab=1$.


Bash - For loop not working with variables in the declaration

for i in {0..3} do    echo $i done   returns  0 1 2 3   but  firstNumber=$1 lastNumber=$2  for i in {$firstNumber..$lastNumber} do    echo $i done   returns, for example,  {0..3}   What can I do to use variables in a For loop declaration?


Authenticate to send a GET request to a lighting page

i would like to ask if it is possible to get a token that allows you to receive the html of a lightning or visualforce page given the url. The REST api token doesnt seem to work. For example get the /home page as html in curl. Thank you


The Civic Duty badge description in the queue statistic doesn't fit the modal window on Russian Stack Overflow

Probably, the problem could be also on other localized sites.


Time complexity with for loop nested in while loop

What is the time complexity of this algorithm? while len(array) > 0:    for item in array:       do stuff to determine which item to pop    array.pop(item_to_pop)  My first instinct is O(N^2).  However, if I were to reduce the array size by half each time the while condition executed it would be O(n).  I'm guessing reducing my array size by 1 each iteration does not have the same effect?


For example in  shows changes I did not make, attributed to my suggested edit. I did not change contents of database examples (Qty columns). Similarly, I did not add "(with how many times it occured)". Same thing happened while editing  (revision 2). See .  That is a bit problematic, as it now attributes those changes to me.  Did I do something wrong, is that a bug in stack exchange, or should it work that way?


I'm looking for different approaches to proofs for the security of CBC mode encryption. What are the best sources of information about this subject?


Is there a way of muting sound from my computer everytime I unplug my headphones (Like a phone does) to stop sound then playing out of my speakers?


Does a battery 'excites' current to flow in a superconductor?

If yes, how is it possible since a closed circuit with no resistance means 0 voltage, how does the electrons flow initially if there's no potential difference? Any simple explanation or analogy would be very helpful.


Principal component analysis (PCA) vs. method of principal components for factor analysis (FA)

I have just read  as follows:     One of the biggest reasons for the confusion between the two [principal component analysis (PCA) and factor analysis (FA)] has to do with the fact that one of the factor extraction methods in Factor Analysis is called "method of principal components". However, it's one thing to use PCA and another thing to use the method of principal components in FA. The names may be similar, but there are significant differences. The former is an independent analytical method while the latter is merely a tool for factor extraction"   Can anybody explain a little more about this, especially about PCA and method of principal components in FA?


So really the difference between Ubuntu Desktop and Ubuntu Server is one minus servers and the latter minus a GUI, is that correct?  So if I install Desktop, I could just remove the GUI and install a web server if I wanted to?  Not trying to be funny, just trying to understand.


How to copy files into root directory using GUI

I am trying to get permission access to get root access for copying files to root directory using Graphical user interface.  I have tried   gksudo nautilus   but I got an error      (gksudo:5334): Gtk-WARNING **: cannot open display:   I have also tried   export DISPLAY=:1   but I got the same error ...I am using ubuntu 17.10. Kindly help me out. Thanks


Given that 𝑓 ◦ 𝑓 is a bijection, prove that 𝑓 itself must be a bijection

Does this proof work to show that 𝑓 is a bijection if the composite 𝑓 ◦ 𝑓 is a bijection? We are given that 𝑓 is a function from A → A. Injective: Let x, y ∈ A. Assume 𝑓(x) = 𝑓(y). By the composite function being a bijection, if 𝑓(𝑓(x)) = 𝑓(𝑓(y)), x = y. Then each z = 𝑓(𝑓(x)) = 𝑓(𝑓(y)) ∈ A has a y = 𝑓(x) = 𝑓(y) ∈ A, which has x = y ∈ A. Thus, when 𝑓(x) = 𝑓(y), x = y. Surjective: Let x, y ∈ A. Since the composite function is a bijection, each z = 𝑓(𝑓(x)) ∈ A has a corresponding x ∈ A such that 𝑓(𝑓(x)) = z. Then each z = 𝑓(𝑓(x)) also has a y ∈ A = 𝑓(x) ∈ A for which y = 𝑓(x). Thus for the function 𝑓, each y ∈ A has an x such that y = 𝑓(x), and 𝑓 is a mapping onto A. Since 𝑓 is both injective and surjective, it is a bijection. Does this proof make sense?


A* Pathfinding Finding One of Many Goals

I have my A* pathfinding algorithm right now working such that given a graph it can find the route from one starting node to one goal node.   This works well for many problems, but sometimes I find that multiple goal nodes are valid.  For example, in a game, an NPC might have to go to a switch to shut a door. If there are multiple switches that shut the door in question, it doesn't matter which switch it goes to - it just needs to go to one of them.  How can I augment my pathfinding algorithm to find the path to the best goal (the shortest path)? As in, the algorithm searches for multiple goals and when it finds just one, it returns the path to that one.  One solution would be to run the algorithm as many times as there are valid goals, but you can guess why that might be inefficient.


Add document preview to Document library form

I need to create form to enter metadata for newly uploaded document in document library in SharePoint Online. In that form user should be able to see preview of uploaded document. Actually, user should see document in preview and write down necessary data into fields. Documents could be Office or PDF files.  Should I create new EditForm.aspx in SharePoint Designer? What code should I write there? Where should I place that code?


I'm pretty new to blender. I can't explain what's happenin, but look. Visualy longer edge is (according to blender) much shorter (83mm) than visualy shorter edge(4628mm). What may be helpful is that edges belong to different meshes and that in front was copy pasted from another .blend file. The project is for 3D printing and I would like to avoid problems with measurement. Thanks in advance. Any ideas?


Ping is a a program owned by root with the user id bit set.  $ ls -l `which ping` -rwsr-xr-x 1 root root 35752 Nov  4  2011 /bin/ping   As I understand it, if a user runs the ping process, then the effective user id will change from the real user id (i.e. the user id of the person who launched the process) to the user id root. However when I try this and look at the output of ps to see if the ping process is running as the root user, I still get the real user id showing.  ps -e -o user,ruser,euser,cmd,args | grep ping sashan   sashan   sashan   ping -i 10 -c 1000 www.goog ping -i 10 -c 1000 www.google.com


Labeling lines that are not within polygons using field calculator

I have two features. One line feature and another polygon feature. I want the line feature label not to appear when it is within a polygon similar to the one in the figure. That is, I want the label to only appear when the line is outside the polygon. Is it possible to do this in QGIS 3?  I tried the field calculator with the within function but it didn't work very well.    Below is the code I tried to do in the QGIS field calculator:  CASE    WHEN within('Lines_4e1a1089_ba02_495e_8c79_d32b79cf3b54','polygon_406a7fae_06b4_45a1_a20e_d64b8682e501') THEN " "    ELSE "Label" END


Rainbow Six Siege Insane Load times? Computer or Internet?

I have a high-end computer with decent ethernet yet whenever I join a game in Siege everyone finishes loading and it takes me 1-5 minutes. Is this because of my internet or computer?   Specs:  CPU - i7-7700k GPU - GTX 1080 16GG RAM 5900 RPM 4TB Hard drive


Insert character at the beginning of specific lines

Let's say I have file:  % This is first line % This is second line  This is content  % This is the end   How can I insert a % character at the beginning of every line which already starts with %?  Result:  %% This is first line %% This is second line  This is content  %% This is the end


Fitting a logistic regression using lassoglm in matlab

I am fitting a logistic regression model using lassoglm in matlab. I issued the following command  [B,FitInfo] = lassoglm(ec50,Y,'binomial','Lambda',0.0001,'CV',10);   Now once I get the coefficients B, how am I supposed to use it. I mean do I have to do  $P(y=1) = \frac{e^{(\theta^tx)}}{1 + e^{(\theta^tx)}}$ where $\theta$s are obtained from B. Is it the case?


Write the expression in terms of a single sin $-\sqrt{3} \sin x + \cos x$

Write the expression in terms of a single sin   $$ -\sqrt{3}\sin x + \cos x$$  So this was a question on my test today. I used a cofunction identity to solve it. Can someone tell me what the correct answer is. I think mine was something like $1-\sqrt{3}\sin x +1$ or something like that.


In a group ring $R(G)$ is the center $R(Z(G))$?

If $R(G)$ is a group ring, is $Z(R(G))=R(Z(G))$?  $R(G)=\{g:g=\sum_{i=0}^n a_iz_i, a_i\in R,z_i\in G\}$ Then if $R(G)$ is a group ring and $z\in Z(R(G))$ we get $zgz^{-1}=z(\sum_{i=0}^n a_iz_i)z^{-1}$ for all $g\in R(G)$ When looking at examples it seemed like this should be true, take $G=C_4$, cyclic group of order $4$ and $R=\mathbb{R}$ Then it seeems for an arbitrary $g_0+ag_1+bg_2+cg_3\in R(G)$, taking $zg_0z^{-1}+zag_1z^{-1}+zag_2z^{-1}+zag_3z^{-1}=g_0+ag_1+bg_2+cg_3$ It seems like $z$ needs to commute with every $g_i$, so its exactly the center.


Why doesn't read command work with echo and piping?

With regard to the below commands:  $ unset a $ echo 12 | read a $ echo $a  $   I was expecting that a would be set the value of 12 in the second statement. But it turns out that a is still unset.


What is the difference between "in March" and "by March". Is there any ?


How to show gratitude to all the people who posted great answers to my question?

I have posted a  and I liked all the comments and specially both answers that were given to my question.  Both answers were very good, I just chose the one I did on the grounds of the links provided were more to my liking but I appreciated both of them answers and both are correct too, basically there were no legions stationed in London, but a fort was there.  I wanted to show my gratitude to the people who wrote those answers, other than upvoting those answers, is there anything would be proper(according to the rules of the site) to do?


Oneboxing does not work for simple.wikipedia.org

According to  Wikipedia pages are among the links that will be oneboxed. I tried to onebox  but it did not work. The progress meter flashed for some seconds and then the link was shown like a truncated inline link. Then I tried with  and it neither worked. Thus, it seems that oneboxing does not work for . Is this a bug? Here is a screenshot showing what happened:  And here is .


If $U$ is a bounded domain in $\mathbb R^n$ whose boundary is smooth, and $f$ is a smooth function on $U$ whose partial derivatives of all orders have a continuous extensions to $\bar U$. For an arbitrary domain $V \supseteq \bar U$, is there a smooth function $\tilde f$ on $V$ extending $f$?


Create the home directory while creating a user

I have added user using the adduser command, but a directory with is new user name is not created in /home, and I'm also not able to run any command with this user. After logging from this user it's only showing($) on the screen using a cli


Strange granulated black triangles after texturing

Im rather new at Blender and i have a little issue when i render my model. As you can see in the next image:   When i render my model after applying textures, only these two parts of the complete model (villager7_eyes and villager7_mouth) show strange granulated triangles and some of them are black. I've checked the normals and all of them are pointing outside the triangles, so what am i doing wrong?  Thanks in advance for replying


Is there any simple analytic method for solving $\sqrt{x}+y=7$ and $x+\sqrt{y}=11$ simultaneously.

I am thinking of a nice and simple analytic method to solve the following equations simultaneously:  $$\sqrt x+y=7;\\x+\sqrt y=11.$$  To my suprise I can't. But, I solve the system numerically using Newton's method and the solution is $4$ and $9$.  Is there any simple way of solving the above system analytically?


Gnome Software is eating RAM even when inactive

It's closed, but there is probably some daemon waiting for the updates. Why it's even there? And why so much RAM?


I'm new in LaTeX and I'm searching for solution to highlight verbatim text inside paragraph (for example, it is like on this page, where code is highlighted). Can anyone help me with this?   Let say, that I have a paragraph and inside is some words where I use \verb|| to show some code parts, but I'd like that this is highlighted or it has background color, juts like it is highlighted in this page. For normal text I can use \newcommand{\hilight}[1]{\colorbox{gray!10}{some text}}, but this command doesn't work with \verb, so I can't use it. I'm trying to find solution and searching over the internet, but I didn't fid so far.   Thanks for your help.


Why "==" or equals method doesn't work ?           String levelSetting = ManageLogFile.getLevel();          if (levelSetting != Log.Level.DEBUG.toString()) {             System.out.println(Log.Level.DEBUG.toString());             System.out.println(levelSetting);             log.setData(null);             }   With Result displayed :   DEBUG DEBUG   It's the same String... But != doesn't work... I have also tried with equals method.. and same problem I have compare lenght and it's 5 for both.


Why is my localhost not 127.0.0.1 but ::1, and what notation is that?

When I use the Ping command against my localhost (on Windows Vista), it doesn't show up as 127.0.0.1.     C:\Windows\system32>ping localhost   Pinging GIGA [::1] from ::1 with 32 bytes of data:     Instead, it shows up as ::1 (pair of colons and a one). What kind of notation is this? And why is it not showing up as 127.0.0.1?  Here's what I see in the c:\windows\system32\drivers\etc\hosts file.   ::1             localhost 127.0.0.1       localhost   As suggested by  I have already tried changing this order.   127.0.0.1       localhost ::1             localhost   The expected result is that 127.0.0.1 would take precedence over ::1 but that was not the case.  As I have learned now, this can be done by  a prefix policy instead. To force cmd to use IP version 4 the option -4 can be used. To force Windows to always use IP version 4, IP version 6 or some of its components can be disabled through the properties dialog for the network adapter or through a  tweak.


How to plot this integral function with PSTricks?

I have to plot something like that (the function I have to integrate is more complicate than this)   How can I do that? Which pst package do I need?  Thanks!


Is it wrong to use "never" for a specific time period?

I usually come late to the daily scrum meetings (but I do compensate, by working late!). For the last 6 working days, I have been coming on time, or even slightly earlier.   At lunch, I told my manager this      I have never been late for the daily scrum for this sprint (last 6 working days).   He told me that my usage is incorrect because, I cannot use never and restrict it to a time period. Never, apparently, is for eternity, e.g, I have never drunk Russian vodka.   What is the correct usage?


Units in gravitational $N$ body simulations

I am trying to write a code in Python to simulate $N$ bodies interacting through gravity. In particular I am trying to see whether a system of particles with random initial positions and zero velocity will fall into a viral equilibrium.  I understand that in $N$ body simulations, it is advisable to set $G=1$ and $M=1$. However, having done this what then are my units of time or length or energy?


What if do not use any activation function in the neural network?

or, for example, is it good to use activation function only for a last layer?  As I know, if there are no activation functions in neural network, feedforward will be like simple matrix multiplication, but I don't understand why this is bad.


I have a old macbook running Manjaro and a PC running windows 10. Is there any way to use the laptop as a second screen for my main computer?  EDIT: Please do not mark as duplicate or link the other thread because the solution to that thread requires installing an unsigned driver and does not solve my problem.


Real function that has a taylor series of zero convergence radius in some point

Is there any example of a real valued function $f$ defined on an open interval $I$(possibly the real line) that satisfies the following property?  There is an $a\in I$ such that the Taylor series expansion of $f$ relative to $a$ has zero radius of convergence. (The function doesn't have to be equal to its Taylor series in some interval, just thinking about the convergence radius of the Taylor series itself.)


What are Tom Banks's arguments against a QFT of QG cont..?

I do not feel that the answer given here includes all of his arguments. The answer given in the other question only included his argument for BH entropy, but as you can see by reading pages 1-9 in the link paper, he give lots of arguments that I would like to have an explanation to (on a laymen level).  Can someone go through each of the arguments he gives and just give a detailed explanation of what he is saying?


macOS Mojave - The great disappearing disk space mystery

I have a 512GB SSD in my Mac. When cleanly installed from a TimeMachine backup, it shows as being about 120GB. Over time, the disk usage steadily increases. Today About My Mac Storage shows just 44GB free and 403GB of "System".  I've read through all the related questions and (I think) tried everything, but given low level Un*x tools show nothing, and none of the solutions I've read worked (including flushing Time Machine snapshots. None have worked.  Here's the weird thing: df shows me 94% full, but du says 118GB used. Where is the rest?  I've cleaned out TimeMachine snapshots using tmutil, all the disk utilities like OmniDiskSweeper confirm the 118GB of actual files.  Creating a CarbonCopyCloner image on another disk is 118GB as indicated by du, so apparently somehow APFS thinks there is an additional huge chunk of space used.  (base) Mnementh:private alastair$ sudo du -d 1 -x -c -g / 1   /home 1   /EFI-Backups 1   /usr 1   /.Spotlight-V100 1   /net 0   /.PKInstallSandboxManager-SystemSoftware 1   /bin 1   /sbin du: /Library/Application Support/Cylance/Desktop/q: Permission denied 40  /Library 0   /.Trashes 6   /System 1   /.fseventsd 4   /private 1   /.DocumentRevisions-V100 0   /.vol 23  /Users 45  /Applications 1   /opt 1   /dev 1   /Volumes 0   /.TemporaryItems 118 / 118 total  (base) Mnementh:private alastair$ df Filesystem     512-blocks       Used   Available Capacity  iused               ifree %iused  Mounted on **/dev/disk2s1    999805536  930152088    66129504    94%  2216997 9223372036852558810    0%   /** devfs                 693        693           0   100%     1200                   0  100%   /dev /dev/disk2s4    999805536    2099232    66129504     4%        1 9223372036854775806    0%   /private/var/vm /dev/disk0s4    934512880  312083512   622429368    34%   459251          4294508044    0%   /Volumes/Windows map -hosts              0          0           0   100%        0                   0  100%   /net map auto_home           0          0           0   100%        0                   0  100%   /home /dev/disk4s2   7813390288 5615807616  2197582672    72% 10158039          4284809240    0%   /Volumes/Thyme Machine /dev/disk3s2  15627315120 3533581776 12093733344    23%   207942          4294759337    0%   /Volumes/8TB USB /dev/disk4s3   7813128160 2320179456  5492948704    30%   134145          4294833134    0%   /Volumes/Media HD /dev/disk5          49896      39432       10464    80%      328          4294966951    0%   /Volumes/OmniDiskSweeper   Where is all the rest?


How to prove $\lim_{n\to\infty}\frac{a^n}{n!}=0$

Prove that limit of sequence $x_n = {a^n \over n!}$ is $\lim_{n \to \infty} x_n = 0$   Let $\epsilon > 0$ So we need to prove: $|x_n - a| < \epsilon$  $$\implies\left|{a^n \over n!}- 0\right| < \epsilon$$ $$\implies{a^n \over n!} < \epsilon$$ $$\implies n\log{a} - \log n!< \log\epsilon$$  I don't know how can I isolate $n$ in this inequality.  Please provide hints, so that I can work the answer on my own. Thanks.   EDIT:- I think my question is not duplicate because, the answers  does not contain $\epsilon$ proof.


I needed an algorithm to generate all possible partitions of a positive number, and I came up with one (posted as an answer), but it's exponential time.  The algorithm should return all the possible ways a number can be expressed as the sum of positive numbers less than or equal to itself. So for example for the number 5, the result would be:   5 4+1 3+2 3+1+1 2+2+1 2+1+1+1 1+1+1+1+1   So my question is: is there a more efficient algorithm for this?  EDIT: Question was titled "Sum decomposition of a number", since I didn't really know what this was called.  that they were called "partitions," so I edited the question title accordingly.


I am a Perl coder and I would like to ask Stack Overflow to fix code color highlights for # comments.  It works properly for real comments, such as  # this is a comment   but when $# is in code, such as  print $#variable;   it should not be highlighted as comment, but as a code.  I believe it is pretty easy fix. Can be that done?


Run a command within an existing shell window from a second shell window

I have a program that is running on a shell window. I would like to input command into that shell (using a script) to make the program behave in a certain way. What would be the command to send a command from one shell to another.  Thank you


Cannot change login screen background in 18.10

I changed both the desktop and login screen background photos. However,only desktop photo is changed. The one on the login screen is still the purple Ubuntu one. Is this a bug?


How to immediately send input to program in C?

I would like to setup the input stream so that each character is sent immediately to the program instead of pressing enter every time. I've tried setting stdin to unbuffered mode with setvbuf(), and used getchar(), which I know isn't an unbuffered character input function but I had trouble with getch() since there's some sort of random character appearing on the screen without me touching the keyboard. And after I choose a valid option, the program just freezes, and I only changed getchar() to getch() when that happend, nothing else. I've been trying to figure this out for a while by asking small questions that lead me to the answer but I think I should just ask for help on my end goal. So does anyone know a way to send input to a C program immediately after pressing a key that's not enter?


Print all authors in \citename when maxnames=N is set

What I would like to do, is to print the full author list for a reference,  in a document where I've set maxnames to a small number. I'd like the names printed as Firstname Lastname. The list of authors can be printed with \citename{<ref>}{author}, but it will be truncated with et al. when maxnames is in effect.  I guess I need to define a new format for use with \citename, but I haven't quite been able to wrap my head around how that should be done.  MWE:  \documentclass{article} \usepackage[style=authoryear,maxnames=3]{biblatex} \addbibresource{biblatex-examples.bib}  \begin{document} This should print Aks\i{}n et al. (2006): \textcite{aksin}  \bigskip  Here I would like to print all the authors, not just `Özge Aks\i{}n et al': \citename{aksin}{author} \end{document}


How to detect Windows-1251 encoded characters

Is there a proper way to detect the Windows-1251 encoded characters ?   IMO, unlike multiple-byte native characters, Windows-1251 is an 8-bit character encoding, so it's impossible to distinguish it from other 8-bit native characters like latin1. If I am wrong on this, please correct me.  The first clue to me is locale, I take all the non-ascii characters as Windows-1251 if the locale is ru.  Are there any better ways ?   UPDATE:  Here is the context of my question, there are some Windows-1251 encoded characters in the ID3 info of a MP3 files, I have to detect the Windows-1251 encoded characters and then convert them to UTF-16 using icu4c , otherwise those Windows-1251 encoded characters will represented unreadable on my system(Android). I deem maybe some of you have better ways.


Sometimes no space between LaTeX logo and adjacent word

Sometimes I get a space between the LaTeX logo and the adjacent word and other times I don't see any spacing. How to fix this?


Trouble with proving $A$ is an integrally closed domain $\Rightarrow$ $A[t]$ is integrally closed domain

This problem has been bugging me for a while.  As was stated in the title, I wish to prove:     $A$ is an integrally closed domain $\Rightarrow$ $A[t]$ is integrally closed domain   Here's what I have so far...  Suppose $f \in k(t) = Frac(A[t])$ is integral over $A[t]$.  Then, trivially, it is integral over $k[t]$.  However, $k[t]$ is a PID, hence a UFD, and is thus integrally closed.  So $f \in k[t]$.  So the problem is reduced to:     $A$ is an integrally closed domain $\Rightarrow$ $A[t]$ is integrally closed in $k[t]$.   Now, $f$ is integral.  We may (with no loss of generality) assume $f$ is monic by adding a high power of $t$.  (Since $t^n$ is integral, $t^n + f$ is integral if and only if $f$ is.)  We write $$f^n + a_{n-1}f^{n-1} + \ldots + a_1 f + a_0 = 0$$  $$f (f^{n-1} + a_{n-1} f^{n-2} + \ldots + a_2 f + a_1 ) = -a_0$$  Now I'd like to be able to use the Gauss lemma and win, but every time I try to do that it beats me.    Attempt 1: $f$ is monic, so I'd like to make $f^{n-1} + a_{n-1} f^{n-2} + \ldots + a_2 f + a_1$ monic as well.  However, if I divide by the leading coefficient $q$, I have to divide $-a_0$ by $q$.  Unfortunately, there's no guarantee (that I know of) keeping $-a_0/q$ in $A[t]$.  Attempt 2: Add a really high power of $t$ to $f$.  But there is no bound on the degree of the coefficients, so again there's no guarantee this will be monic.  I think I'm in the right direction, but this problem is getting into my head.  Any thoughts are welcome! Thanks  (For those who are interested, this is a question from Neukirch's Algebraic Number Theory Chapter 1, Section 2, Question 2)


I want to understand the meaning of super(Example, self).__init__() function

#!/usr/bin/python  import sys from PyQt4 import QtGui  class Example(QtGui.QWidget):      def __init__(self):         super(Example, self).__init__() # what the meaning of this line          self.initUI()      def initUI(self):          lbl1 = QtGui.QLabel('ZetCode', self)         lbl1.move(15, 10)          lbl2 = QtGui.QLabel('tutorials', self)         lbl2.move(35, 40)          lbl3 = QtGui.QLabel('for programmers', self)         lbl3.move(55, 70)                  self.setGeometry(300, 300, 250, 150)         self.setWindowTitle('Absolute')             self.show()  def main():      app = QtGui.QApplication(sys.argv)     ex = Example()     sys.exit(app.exec_())   if __name__ == '__main__':     main()


Why does the Newton-Raphson method always work?

Why does the Newton-Raphson method for solving equations always work?   What I know:   I know that if $f(x) = 0$, then the Newton-Raphson method may be applied. It states that $$x_{n+1}=x_n-\frac{f(x_n)}{f'(x_n)}$$ where the solution to $f(x) = 0$ is $x_\infty$ I also know that you can select a point on the graph of $f(x)$ (your first estimate $x_1$), and Newton-Raphson takes the gradient of that point, and where that gradient meets the $x$-axis, and the x value is where $x_2$ is.      I know how it works, but why the $$\frac{f(x)}{f'(x)} ?$$  It seems that the curve is divided by the gradient, but what does this give?   I would just like an explanation of why this works.


How do I get the full XML or HTML content of an element using ElementTree?

That is, all text and subtags, without the tag of an element itself?  Having
blah bleh blih
   I want   blah bleh blih   element.text returns "blah " and etree.tostring(element) returns:
blah bleh blih


Searching for a short story from the point of view of alien alone at an outpost

In my English class - 7 years ago - we had Isaac Asimov as topic, but this little story was not one of his.  It was about a single guy on a outpost. He tells about how normal his live is and how nice his lifestyle seems, and the end of story was that he was an alien with more than two arms.  He finds a human and says something like "and this creature has only two arms" or similar.  Can someone help me? I searched this story for my scout in a lesson of "point of view" but haven't found it on the internet so far.


How do I minimize the chances of TSA agents confisticating liquids larger than 3 ounces?

I know as a fact that I've gotten liquids larger than 3 ounces through the TSA scanner systems (such as sunscreen). I was scolded one time for bringing a shampoo container, but I was still ultimately allowed to bring that container through.  In any case, how often are liquids larger than 3 ounces ultimately confisticated, if I put them in a ziploc bag where they can be clearly seen?


Moment generating function of the natural sufficient statistics of Gamma distribution

I have $X_1,X_2 ... X_n$ Gamma-distributed r.v with density:    First of all I showed, that Gamma distribution belongs to exponential family and can be represented in form     I found, that for Gamma distribution $B(\theta) = log(\theta)$ where $\theta$ is $\alpha/\beta$  Then we know, that moment generating function of the random variable $T(X)$ is given by $$M(t)=\exp\{B(\theta+t)-B(\theta)\}$$  Natural sufficient statistics for Gamma distribution is:    But I didn't understand what should I do next? Because Natural sufficient statistics is two dimensional it confuses me:  $M(T) = exp[log(\theta + T) - log(\theta)]$  and $T = [s,t]^\intercal$


Which one of these two is grammatically correct?  1. I taught him how to drive.  2. I taught him to drive.  If both are correct, do they mean the same?


Entering Romania with a two entry Schengen visa

Let's say I have a two entry Schengen visa from Greece, that is valid and both entries are unused, and I want to visit Romania.  Can I fly directly to Romania or do I have to go to Greece first, then from Greece to Romania?


Evaluating $\prod_{k=1}^m \tan \frac{k\pi}{2m+1}$

How to evaluate this? $$\prod_{k=1}^m \tan \frac{k\pi}{2m+1}$$  My work I couldn't figure out a method to solve this product. I thought that this identity could help. $$\frac{e^{i\theta}-1}{e^{i\theta}+1}=i\tan \frac{\theta}{2}$$ By supposing $z=e^{\frac{2k\pi}{2m+1}i}$, then, $$i\tan \frac{k\pi}{2m+1}=\frac{z-1}{z+1}$$ So, the product $$\displaystyle\prod_{k=1}^m \tan\frac{k\pi}{2m+1}=\displaystyle\prod_{k=1}^m \frac{z-1}{i(z+1)}=\displaystyle\prod_{k=1}^m \frac{e^{\frac{2k\pi}{2m+1}i}-1}{i(e^{\frac{2k\pi}{2m+1}i}+1)}$$ which is getting more complicated. Answer is $\sqrt{2m+1}$. Any help is appreciated.


If we fail to reject the null hypothesis in a large study, isn't it evidence for the null?

A basic limitation of null hypothesis significance testing is that it does not allow a researcher to gather evidence in favor of the null ()   I see this claim repeated in multiple places, but I can't find justification for it. If we perform a large study and we don't find statistically significant evidence against the null hypothesis, isn't that evidence for the null hypothesis?


How can I make an expect script prompt for a password?

I have an expect script that connects to a few routers through ssh.  All these routers have the same password (I know, it's wrong), and the script needs to know that password in order to be able to connect to the routers.  Currently, the password is passed to my script as an argument on the command line, but this means that there's a trace of that password in my .bash_history file as well as in the running processes.  So instead I would like the user to be prompted for a password, if possible silently.  Do you know whether or not it's possible to prompt the user for a password with expect?  Thank you.  Edit: if I was connecting to servers instead of routers, I would probably use ssh keys instead of passwords.  But the routers I'm using just support passwords.


how to find hard drive brand name or model?

I am using xubuntu 14.04. I need to know the manufacturer name of the internal hard drive or similar information.   For example when using windows we can see the manufacturer information of the hard drives and other devices in the device manager. Is something similar available in Ubuntu for hard drives ?


I have question on the methods of performing meta analysis. I have data that consists of multiple Randomized Control Trials (RCT) with different dose levels and observational studies with different dose level as well.  The responses are brain pressure measured as continuous random variable.  So my understanding is that I have to perform meta analysis on the studies that share same level of treatment (same dose) and I can include both RCT and observational studies in that treatment level analysis.  Is there any thing I can do as a whole study? What kind of answer should I provide to my client?


Automatically Create regular bridge between cylinders

I want to create bridge automatically between two long objects like cylinders. Does anyone know how to create bridge as the screenshot shows easily(Figure 1)? I know by union and remesh, it can create something similar, but the mesh will be irregular(Figure 3). Any hint will be appreciated. Thank you. Here is my files:


Unable to remove languages from Region & Language on windows 10

I am unable to remove languages from windows.  I have the following list of 4 languages installed   I want to keep only English (United States) and Hebrew  The other 2 languages I want to remove but the "Remove" option is disbaled.  Things I tried: The internet is full of suggestions like: editing: Computer\HKEY_USERS.DEFAULT\Keyboard Layout\Preload which had no effect  There are suggestions to try using the control panel to edit the languages but the control panel simply links back to the Settings app  There are suggestions to set some language as a default. but the default option simply does not exist  There are suggestion to use the options and remove the keyboard from the installed language. Each language has a single keyboard installed and the option to remove there keyboards is disabled as well.  This is very frustrating and any help would be appreciated.


Use the get_terms slug as a term for tax_query

Update:  ?>
         <?php if (have_posts()) : ?>             <?php while (have_posts()) : the_post(); ?>
                     <?php                     if (has_post_thumbnail()) {                         the_post_thumbnail();                     }                     else {                         echo '';                     }                     ?>

<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?>
             <?php endwhile;                 genesis_posts_nav();             else: ?>
Sorry, there are no recipes available.
              <?php wp_reset_query(); ?>         <?php endif; ?>

         <?php get_sidebar(); ?>

 <?php


Prove that any two nontrivial subgroups of $\mathbb{Q}$ have nontrivial intersection

I need to prove that any two nontrivial subgroups of $\mathbb{Q}$ have a nontrivial intersection as part of a larger proof that $\mathbb{Q}$ cannot be represented as a nontrivial direct product.    (Yes, I realize that there are other ways to prove that $\mathbb{Q}$ cannot be represented as a nontrivial direct product, but I am not interested in those, and will not accept answers showing me how to do that).  Based on the density of the rationals, I guess this idea kind of makes sense, but I am doing this proof for an abstract algebra class, and I don't think real analysis proofs would be accepted.   Everywhere I've looked online has said this is "trivial" or "easy to see" without bothering to actually prove it for those of us mere mortals who don't see it as such. As for myself, I have literally no idea where to even get started proving this. Could somebody help me figure this out (without giving me cutesy examples that aren't really all that related with the expectation that I should be able to figure it out from looking at those - that's not really how my brain works)?  Thank you.


Subring of Gaussian integers has no greatest common divisor property

Problem is:     Produce elements a and b in the domain $R := \{x+2y\sqrt{-1} \mid x, y \in \mathbb{Z}\}$ having no gcd.   How can produce this? Actually I use norm function, and brute force, but what I found is that, except in case of y = 4, so many values of norm function are prime. So I can't handle it. Do you have any idea?


Uncaught type error when looping through objects

My code is like  var persons = []; function Person(id, name) {     this.id         = id;     this.name       = name; }   When I am trying to loop throught all persons, I'm getting an uncaught TypeError: Cannot read property "name" of undefined.  for (var person in persons) {    console.log(persons[person]); }   I noticed that my console is logging all persons and adding an property values after them  [Person, $family: function, $constructor: function, each: function, clone: function, clean: function…]   I'm pretty sure that that the code is breaking after looping the first person.  I'm using jquery-1.11.1.js  Any ideas how to get rid of this error? Thank you in advance.


I was reading this book "Rational points on Elliptic curves" by J.Silverman, and J.Tate, 2 prominent figures in Number theory and was very intrigued after reading the first couple of pages.  The connection between Algebra and Geometry is displayed in a professional manner in that book. One can generally ask this question:     It's clear that the Mathematicians had to develop some laws in order to make the points on an Elliptic curve to a group. The first axioms of adding 2 points on an elliptic curve is clear. But i would like to know how does one come up with the mechanism of the remaining axioms(like associativity) which are actually intricate in nature. What is the motivation behind it. Can we define an axiom in an other way so that the point on the elliptic curve still forms a group? Also why to define the group axioms only on for this type of curves.    A very much related question was asked in MO link:  but i actually expect more about the mechanism of the intricate axioms.


Find the sum $\sum_{j=0}^{n}j$  for all $n=0,1,2,3,\dots$.  How do I find/evaluate this sum?


Cannot Compare Strings Android Studio after get response from PHP

this is a basic knowledge but I get frustrated after 3 hours of trying. I am running codes in Android Studio and I just want to compare the result of 2 strings This is my codes  String result=stringBuilder.toString();         String wanted="SUCCESS";          if(result.equalsIgnoreCase("SUCCESS"))         {             Log.d("RESULT","FINALLY 1");         }         else if(result.equals("SUCCESS")) {             Log.d("RESULT", "FINALLY 2");         }         else if(result=="SUCCESS")         {             Log.d("RESULT","FINALLY 3");          }         else if("SUCCESS".equals(result))         {             Log.d("RESULT","FINALLY 4");         }         else if(result.equals(wanted))         {             Log.d("RESULT","FINALLY 5");         }         else         {             Log.d("RESULT",result);         }   I have tried every options available on webs but I got the same results and you can see that var "result" is "SUCCESS"    11-11 23:31:01.477    8116-8152/com.example.asus.ucomm D/RESULT﹕ SUCCESS   What did I do here that get errors from just comparing strings? Am I too tired until I missed something? Please help.  //EDIT I get stringBuilder.toString() to get the response from my PHP file. This is the last code that checks the database  if(isset($_GET['user'])) {     $findFriend=$_GET['user'];     $sql = "SELECT * FROM username WHERE pin='$findFriend'"; } $result = $conn->query($sql);  if ($result->num_rows > 0)  {     echo "SUCCESS"; } else echo "NOT FOUND";   //EDIT 2 The result before trim() is   11-12 00:07:56.057    6000-6036/com.example.asus.ucomm D/RESULT﹕ +SUCCESS +   I thought that it ran out of space. But it had /n


How to deal with this kind of geometry after a boolean operation?

FIXED: I'm going to put it up here, because people keep don't seem to read all the way down and keep telling me this is an exact duplicate of another thread while the solution proposed there (using edge split or auto-smooth) did not fix my issues. In the end I reconstructed the model using the shrinkwrap modifier to cut holes and then manually merge and readjust the vertices of the outside hole for perfect smoothing. Thanks @Cegaton for the video that featured the shrinkwrap modifier.  Images of the reconstruction:       [ORIGINAL POST]  After two Boolean difference operations the model's geometry looked like this:    I guess it won't be a surprise that it resulted in this kind of crappy shading:    I know it's because of the ngons, but I don't know how to best fix or prevent matters. I've tried by making the geometry more complex, by subdividing existing edges and faces, and I've tried by making the geometry simpler, by snapping and joining dead-end vertices onto other ones, while respecting the shape of the model and keeping faces planar. Both these methods still left me with bad shading. I also tried doing the boolean operation with simpler objects, with fewer subdivisions, but that gave me similar issues. Or is my whole approach wrong-headed from the start and I need to go about creating the shape in another way?  PS: the issue is not fixed by using edge split modifier, to be clear.


Fully justification with indent paragraph

I am using the package ragged2e and then \justify to get fully justification of my text but it's seems that is avoiding the indentation.  My code:  \documentclass[a4paper,12pt,onecolumn]{report} \usepackage[utf8]{inputenc} \usepackage[portuguese]{babel} \usepackage{ragged2e} \usepackage{indentfirst}  \begin{document}  \maketitle % Utilizando a página de capa padrão  \begin{chapter}{Introdução}   \begin{justify}  \begin{setlength}{\parindent}{4cm}  \fontsize{10pt}{1pt}\selectfont  Os problemas inversos de transferência de calor (IHTP) dependem de medições de temperatura e/ou   fluxo de calor para a estimativa de quantidades desconhecidas que aparecem na análise de problemas físicos em engenharia térmica.   Como exemplo, problemas inversos que lidam com a condução de calor têm sido geralmente associados à estimativa de um fluxo de calor   limite desconhecido, usando medições de temperatura feitas abaixo da superfície do limite. Portanto, enquanto no problema   clássico de condução direta de calor a causa (fluxo de calor limite) é dada e o efeito (campo de temperatura no corpo) é   determinado, o problema inverso envolve a estimativa da causa a partir do conhecimento do efeito. Uma vantagem do IHTP é   que ele permite muito mais colaboração entre pesquisadores experimentais e teóricos, a fim de obter o máximo de informações   sobre o problema físico em estudo.  \end{setlength}  \end{justify}  \end{document}     But I want all the text justify and with the indentation, some like that:


I have a URL that looks like:  url.com/show.php?id=abc  url.com/show.php?id=xxx  How would I go about converting that URL to url.com/abc url.com/xxx  How do I go about making friendly URLs in PHP?


Which comes first - Flooring or Kitchen Remodel?

My wife and I are going to upgrade multiple parts of our house but we really want two key areas completed first, but we're not sure where to start or if we should do then at the same time, which is why I'm here.   We want to install hardwood flooring throughout our house, but we also want to upgrade our kitchen (where hardwood will also be). The kitchen is a galley kitchen that will be remodeled with a new IKEA organization cabinet system/etc and we will also want that new hardwood floor in the kitchen.   Being that I'm a construction noob, which should come first? Hardwood flooring or kitchen? Or does it not matter? Or, is it best done at the same time?   Any tips or help would be appreciated. I just want to make sure I don't open Pandora's box unknowingly by attempting one without doing the other first.


$2^4 = 4^2$ are there any other solutions to $x^y = y^x$?

How would I go about solving $x^y = y^x$?  $$\frac{y}{\ln y} = \frac{x}{\ln x} $$  Is trivial to find, but I'm not sure where I'd go from here.   Thanks in advance


Prevent Excel from clearing copied data for pasting, after certain operations, without Office clipboard

Whenever you copy a cell or a range of cells in Excel (my version is 2010 on Windows 7), and then do something else like insert new sheet row or simply edit another cell, Excel removes the clipboard data. For me this seems to me so utterly stupid and it's very frustrating (probably it has some logic behind it like preserving references or something like that, but I don't think it would be rocket science to make it work like any other program that has Copy-Paste available).   The only workaround is to use the Office clipboard, but I don't want to (uses space on the screen and it's a lot less comfortable than CTRL+V) and I don't think I should be forced to use it.  Here's a reference to some posts also complaining about this problem:      Is there any way I can force Excel to keep my data into the clipboard until I decide I don't need it no more instead of it, without using the annoying (to me) Office clipboard? Maybe using the Windows clipboard.  Or at least you could explain to me why this is happening (I know this is normal behavior, but why?)


My phone (Nokia XL) did not come with Google Play application. How do i install it (i've already tried with some weird .apk files)? If my phone cant use Google Play can you at least tell me if there is some way i can download the apps on my computer and then send them to my phone through USB. Thanks


Compiling the following code with pdflatex:  \documentclass{article} \usepackage{tikz}  \begin{document} \begin{tikzpicture}[remember picture, overlay]      \draw (current page.center) node {         \begin{itemize}             \item test         \end{itemize}     };  \end{tikzpicture} \end{document}   ... throws the compiling error:  ! LaTeX Error: Something's wrong--perhaps a missing \item.   The pdflatex version I use (Debian Wheezy) is the following:  pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian) kpathsea version 6.1.0 Copyright 2012 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX). There is NO warranty.  Redistribution of this software is covered by the terms of both the pdfTeX copyright and the Lesser GNU General Public License. For more information about these matters, see the file named COPYING and the pdfTeX source. Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX). Compiled with libpng 1.2.49; using libpng 1.2.49 Compiled with zlib 1.2.7; using zlib 1.2.7 Compiled with poppler version 0.18.4   What can I be doing wrong?


Is there any way to make flexible brackets around some text?  So I tried to use fancyvrb and got something like this:    \documentclass{article} \usepackage{fancyvrb} \usepackage{color}  \definecolor{darkblue}{rgb}{0.1,0.3,0.5}  \DefineVerbatimEnvironment%     {MyVerbatim}{Verbatim}     {gobble=0,label=\hspace{.85\textwidth},labelposition=all,      frame=single,framerule=3pt,framesep=5mm,rulecolor=\color{darkblue}}  \begin{document} \begin{minipage}{6cm} \begin{MyVerbatim} some text some text some  some text some text some  some text some text some  \end{MyVerbatim} \end{minipage} \hfill \end{document}   However, I am unhapy with it, because of the misuse of fancvrb.  I want to be able to define the thickness of the rule, the size of the corners or the spaces. A good candidate would be a package similar to dashedbox.  Any hint would be appreciated.


Books in German on some subjects related to advanced algebra

Can I get names of German books, published after 1990/2000 on following subjects with some light on recent developments?    Representation theory of finite groups Finite reflection groups / Coxeter groups Finite simple groups Finite Groups of Lie type     (I like to see different books on above subjects, and my Library contains almost English books on above subjects; only one book in German I found was Huppert's Endliche Gruppen. At the same time, I would like to move into some recent progresses on different topics in above subjects, so I mentioned books after 1990/2000.   Apologize if this is not good; but since I don't have any other idea to get books on above subjects in German, so, hope that some Experts from Germa or familiar with German may help!)    Since each of these subjects have been independently developed and becoming rich; it is certainly difficult to find a single book devoted to all these subjects with recent developments (1990/2000); so this question is not about books of Group Theory as posted in another question on mathstack. The book of Huppert contains only some part of above four subjects; I am expecting some books fully devoted to only one of these subjects.   I hope this justifies difference between earlier question on german references for Group Theory and this question on German references on Advanced topics in algebra


I know I use them, and my peers use them, but how much does the average user actually use tooltips to figure out functionality?


Why is Collections::addAll slower than ArrayList::addAll but faster than LinkedList::addAll?

I set out to test the following claim in the Javadoc for Collections::addAll:     The behavior of this convenience method is identical to that of c.addAll(Arrays.asList(elements)), but this method is likely to run significantly faster under most implementations.   I've used the following code to test the runtime of addAll for ArrayList and LinkedList (as well as Collections on the current collection):  public static void main(String[] args) {   final String LIST_STRING = "ArrayList::addAll";   Tracker arrTracker = new Tracker(LIST_STRING);   Tracker colTracker = new Tracker("Collections::addAll");   final String GREEN = "\u001B[32m";   final String END_GREEN = "\u001B[0m";   TimeMeasurer elapsed = new TimeMeasurer();   Integer[] ints = new Integer[2_000_000];   for(int i = 0; i < ints.length; i++)   {     ints[i] = Integer.valueOf((int) (Math.random()*50_001)-25_000);   }   System.out.println("Array filled! "+elapsed);   List<Integer> collection = new ArrayList<>(List.of(1, 2, 3));   List<Integer> list = new ArrayList<>(List.of(1, 2, 3));    System.out.println("Created initial lists. "+elapsed);   for(int i = 0; i < 4; ++i)     Collections.addAll(collection,ints);   System.out.println(GREEN+"Collections::addAll. "+elapsed+END_GREEN);   collection.clear();   collection = null;   for(int i = 0; i < 5; i++)     System.gc();   System.out.println("Garbage collected. "+elapsed);   for(int i = 0; i < 4; ++i)     list.addAll(Arrays.asList(ints));   System.out.println(GREEN+LIST_STRING+". "+elapsed+END_GREEN);   list.clear();   list = null;   for(int i = 0; i < 5; i++)     System.gc();   System.out.println("Garbage collected. "+elapsed);    //redoing   for(int iter = 0; iter < 100; iter++)   {     System.out.println();     collection = new ArrayList<>(List.of(1, 2, 3));     list = new ArrayList<>(List.of(1, 2, 3));     System.out.println("Recreated initial lists. "+elapsed);     for(int i = 0; i < 4; ++i)       Collections.addAll(collection,ints);     System.out.println(GREEN+"Collections::addAll. "+colTracker.on(elapsed)+END_GREEN);     collection.clear();     collection = null;     for(int i = 0; i < 5; i++)       System.gc();     System.out.println("Garbage collected. "+elapsed);     for(int i = 0; i < 4; ++i)       list.addAll(Arrays.asList(ints));     System.out.println(GREEN+LIST_STRING+". "+arrTracker.on(elapsed)+END_GREEN);     list.clear();     list = null;     for(int i = 0; i < 5; i++)       System.gc();     System.out.println("Garbage collected. "+elapsed);   }   System.out.println();   System.out.println(colTracker.average());   System.out.println(arrTracker.average()); }   I ignore the first run for the purposes of warming up the JVM, and change = new ArrayList<>(...) to = new LinkedList(...) when testing for LinkedList runtimes. Each addition consists of 2 million random integers, repeated 4 times, for a total of 8 million integers being appended. Here are the final outputs from the time testing code for LinkedList:     Average milliseconds per run for Collections::addAll: 3586.153   Average milliseconds per run for LinkedList::addAll: 6900.910     Here are the final outputs from the time testing code for ArrayList:     Average milliseconds per run for Collections::addAll: 354.337   Average milliseconds per run for ArrayList::addAll: 272.990     So, here's what I'd like to know:   Controlling for List type, why is LinkedList::addAll so much slower than Collections::addAll? Controlling for List type, why is ArrayList::addAll faster than Collections::addAll?


How come the first condition is false and the second is true?  I was sure they were both true. System.out.println(Integer.toString(3) == "3"); System.out.println(Integer.parseInt("3") == 3);


how to delete the nodes of the original tree? cannot delete it by passing the object reference and making it null in another method, anyway?

Here is the code for a BST ,traversing in bottom-up manner and trying to delete the  leaf nodes if its value is equal to "k", so if the leaves are deleted and the new leaf formed  has the value "k", i am also deleting them.  So this is the reasonI i am traversing in bottom-up fashion. To delete the leaf I am just assigning the Node reference to null but which actually does not delete it because java is pass by value, is there anyway that i can make changes to the original tree in the following part of the code:         if(l==null&&r==null&&n.k==k){            n=null;            return n;        }   but after printing the tree values its showing up the same tree as before, but when I change the node value n.k=0 the values are changing, but its not taking the null reference.  Why is null not assigned to the nodes?  below is the code, running this code prints the same tree again after the **************************:     class Node{         Node(int k){             this.k = k;         }         int k;         Node right;         Node left;     }  public class Testing {     static void preOrder(Node n){         if(n==null);          else{             preOrder(n.left);             preOrder(n.right);             System.out.println(n.k);         }     }      static Node del_leaves(Node n,int k){        if(n==null)            return null;        else{            Node l=null,r=null;            if(n.left!=null)                l = del_leaves(n.left,k);            if(n.right!=null)                r = del_leaves(n.right,k);            if(l==null&&r==null&&n.k==k){                n=null;                return n;            }            else                return n;        }     } public static void main(String args[]){     Node root = new Node(10);     Node a = new Node(5);     Node b = new Node(5);     Node c = new Node(5);     Node d = new Node(5);     Node e = new Node(5);     root.left=a;     root.right=b;     a.left=c;     a.right=d;     b.left=e;     preOrder(root);     Node ret_root = del_leaves(root,5);     System.out.println("*****************************");     preOrder(ret_root); }  }


Customize section numbering from Springer templates

I really like the style of Springer book (which is available ), so I decided to customize it for my own book.   In that template, the section in chapter is labelled as : 1.1 (1st section in chapter 1), x.y(xth section in chapter y).  I want to change numbering the section in each chapter by arabic, start with 1,....  So, how can I do it ?


I wish to turn several of my blog article series into a PDF e-book but I have never used LaTeX before for creating books.  For example, I want to take my  article series, improve it and turn it into a book.  I'll probably start with this guide that I found -  But that is just a small template. Any other tips, tricks and suggestions for doing it?


Howto wildcard SELECT * to query all fields of objects in APEX?

I have created sObject and I need all the fields and I have many. Is there a way I can directly get all of them rather then typing each one of them.


Does a mathematical definition have necessary and sufficient condition hidden in it?

Let us assume the following definition: `` S is said to be A if S satisfies the condition C. ''  -----------(P) Can it mean that: `` S is A if and only if S satisfies the condition C. ''  ---------- (Q) From the statement (P), I have the following argument: If S satisfies condition C, then S is A. Conversely, if S is A, it means S has already satisfied the condition C, so the converse also holds. And thus, the statement (P) means the statement (Q). Many times I have seen that something is defined in some book, and the same definition has been written as a theorem/result containing the phrase `if and only if'. My query is: Does the statement (P) mean the statement (Q)?


I downloaded Ubuntu 16.04.1 LTS today and I tried to dual boot it with window 7, but when I start installing Ubuntu there is no option to install Ubuntu alongside window 7.  I have 119 gb allocated. How can I install as dual boot?


Make bounty award color blue in summary tab

Accepts are green, that's good.        But why is the color of bounties green in summary, recent rep?        Bounties are blue everywhere, so make them blue there!        So can we change the color of bounties from green to blue? It would make a whole lot more sense and better to differentiate rep earned from accepts and bounties.


Microsoft's documentation often makes use of ^ in places where I would expect either a * or &.   Example:  public: event UnhandledExceptionEventHandler^ UnhandledException {     virtual void add(UnhandledExceptionEventHandler^ value) sealed;     virtual void remove(UnhandledExceptionEventHandler^ value) sealed; }   The use of ^  really puzzles me.


Best way to call command within a shell function having the same name

I like to encapsulate commands within shell-functions using the same name. But to avoid the shell-function calling itself recursively, I specify the complete path of the command as the following example:  less() {     test 0 -lt $# && echo -ne "\e]2;$@\a\e]1;$@\a"     # Window title     /usr/bin/less -i -rS --LONG-PROMPT --shift 5 "$@" }   But for some commands, I do not want to specify the path because it may change. I would prefer to use $PATH.  For instance, my following attempt failed to call mvn command using backslash: \mvn  mvn()  # colorizes maven output {         \mvn "$@" 2>&1 | #here: the shell-function recursively calls itself indefinitely         sed -u '                                                  s/^\[ALL\].*/\o033[1;37m&\o033[0m/   s/^\[FATAL\].*/\o033[1;31m&\o033[0m/   s/^\[ERROR\].*/\o033[1;31m&\o033[0m/ s/^\[WARNING\].*/\o033[1;33m&\o033[0m/    s/^\[INFO\].*/\o033[1;37m&\o033[0m/   s/^\[DEBUG\].*/\o033[1;36m&\o033[0m/   s/^\[TRACE\].*/\o033[1;32m&\o033[0m/' }   What is the best way to bypass this issue?   Please do not suggest to use a different shell-function name.  (I usually use bash but I am interested about other shell solutions.)


Why does copy rotation constraint invert after 180 degrees

I'm try to rig a low poly clock for blender, so I added a copy rotation constraint so the minute hand would automatically spin with the second hand, but when I rotate the second hand 180 degrees, the minute hand reverses its rotation.


I'm refactoring some old JavaScript code and there's a lot of DOM manipulation going on.  var d = document; var odv = d.createElement("div"); odv.style.display = "none"; this.OuterDiv = odv;  var t = d.createElement("table"); t.cellSpacing = 0; t.className = "text"; odv.appendChild(t);   I would like to know if there is a better way to do this using jQuery. I've been experimenting with:  var odv = $.create("div"); $.append(odv); // And many more   But I'm not sure if this is any better.


Bug in the look of side bar- 4 digit post score is not fitting in the box but 3 digits are fitting correctly

I know some related  have been asked before but all are 3 digit score related and in my question, three digit scores are correctly fitting in the side bar but 4 digit scores are not fitting and it exceeding the box. Why we can't fix this bug?


┌──(badoukone㉿LAPTOP-6GSFE4DV)-[~] └─$ apt update Reading package lists... Done E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission de E: Unable to lock directory /var/lib/apt/lists/ ┌──(badoukone㉿LAPTOP-6GSFE4DV)-[~] └─$ apt upgrade E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permissio E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), ar ┌──(badoukone㉿LAPTOP-6GSFE4DV)-[~] └─$


How do I create a download link knowing the uploaded file ID?

I've a column in database containing the IDs of the files uploaded using a managed file form field.  How do I create a link to the uploaded file knowing its file ID?  EDIT :  The obvious solution doesn't work for me , i'm using another table where i put my Fids .  this is the warning i got everytime : Notice: Trying to get property of non-object in Affichage_form() (line 188 of C:\wamp64\www\Gestion_tickets_licences\sites\all\modules\Recherche\Recherche.module). << 188 : $uri= $file->uri; >>  Solution : Thank you for you help . my solution for my problem is , Once I upload the file , I create the url. Instead of saving Fid , I save the url , It worked .For the download link , I used Alen syntax and it worked great .


Prove that $f(7) = 56$ given $f(1)$ and $f(9)$ and $f' \le 6$

Let $f(x)$ be continues function at $[1,9]$ and differentiable at $(1,9)$ and also $f(1) = 20 , f(9) = 68 $ and $ |f'(x)| \le 6$ for every $x \in (1,9)$.  I need to prove that $f(7) = 56$.  I started by using the Lagrange theorem and found that there exist $ 1<c<9$ such that $f'(c) = 6$ but I'm not sure how is this relevant and how to proceed.


What is the point of limiting bounties to a maximum of 500 reputation?

I have looked at the  and do not understand why there is a maximum on the amount of reputation you can offer as a bounty.


Vertigo Scene Explanation - Did Hitchcock Cheat the Audience?

In Hitchcock's Vertigo, there is one part of the film that has never made sense to me and I believe that it was a cheap ploy to mislead the audience until the ultimate reveal (I won't spoil it here).    In this scene Jimmy Stewart watches Kim Novak enter a rooming house and afterwards sees her standing by the window on the 2nd floor.  When he enters the house and talks to the inn-keeper, she tells him that Kim Novaks's character positively never came in and even shows him her room key that is still behind the front desk.  They go up to the room and find it empty.   This scene seems to imply that the Kim Novak character may have had a ghost like quality. But given the reveal at the end she clearly does not and there was no way for her to enter the room without a key and without being seen by the inn-keeper.  If this was done by some other director I probably wouldn't have given this much thought but Hitchcock was a perfectionist (especially for this film) so I never understood the significance of this scene other than to mislead the audience (with a cheap ploy IMO).  Does anyone who is familiar with this film have a different explanation/perspective about this scene in an otherwise brilliant movie.


I've tried animating the , but get the "property cannot be animated" message. Is there a way to animate the time of a scene?


Know someone who can answer? Share list broken

The list has several empty strings in it for me right now:


I have a network wired connected heatpump with a static IP address on my LAN, my son's Nintendo Switch has an identical MAC address. Even though it connects via Wi-Fi from an access point, it refuses to connect to the internet. I can get it to see the local network and it appears briefly in the access point log but will not connect out to the internet. It would seem impossible to alter either bit of kit's MAC address.   Any ideas how I can get them working?    I have turned off MAC filtering but all that achieved was enabling the Switch to connect to the network, it could not make the next step to the internet.  Update: The MAC in question is 98:e8:fa:53:c1:01 and is the same on both the Nintendo Switch and the Nibe Heat pump. I keep all my permanent devices locked on static IP addresses (from a reserved list) and hardwired back to the router, there is a uplink to my wireless Access point (Ubiquiti) which then serves both main and guest WiFi networks with its own DHCP server function using a specified range not used anywhere else on my networks. I had thought that giving the switch its own static IP address might work but although it appears in the WiFi log it refuses to connect and it looks like the MAC id takes precedence over the static IP address I assigned it.   @Tonny, the VLAN option might work as the Ubiquiti has this capability, although I have never explored it before - so will give that a try, wish me luck. Otherwise I agree with you about changing the NSwitch although it is over three months since we got it (this Christmas was the first time we tried the internet connected aspect of it) so Currys may not play ball. (Sorry for the duplication of the question but the original was not showing up on my account and was very hard to search for every time.)


What is the probability of a random graph being connected?

Suppose $G$ is a random simple graph, that has $n$ vertices, and edges, that are present independently with probability $p$. What is the probability of $G$ being connected?  It is quite easy to calculate the probability for small $n$ (as for small $n$ we can classify all connected graphs with $n$ vertices). Thus for $n = 1$ the probability is $1$, for $n = 2$ it is $p$, and for $n = 3$ it is $3p^2 - 2p^3$. However, I do not know, how to calculate it for arbitrary $n$.  Any help will be appreciated.


While I was playing Minecraft, I pressed F2 to take some screenshots, then when I logged off of Minecraft, and checked my Minecraft file to see my screenshots, they weren't there, so then I went back to Minecraft, went on a world, took a screenshot, then logged off again to check the folder that had all the screenshots again. And when I looked, the screenshot I had just taken was not there. So I have no idea what happened to the screenshots can you guys help me out and tell me how to find the screenshots or if their delayed.


JavaScript RegExp matching group takes unwanted parentheses

I got text like: do[A]and[B]  I want to extract all words that are wrapped by [ and ]. I am using the match method:    var text = "do[A]and[B]"; var regexp = /\[(\w+)\]/g; var result = text.match(regexp);   So I am saying that I want to match all words wrapped by [ ], but only the wrapped part should be in group/memory. I keep getting the [ ] parentheses in result:  ["[A]", "[B]"]   expected result is:  ["A","B"]   I thought this is a piece of cake to do, but I must be missing something.


How can i calculate the limit $\lim_{x \to \infty}\frac{\ln x}{x}$ without the use of delhospital rule. I have tried using the fact that $\ln x \leq x-1$ but i couldnt solve this, any help?


Buying a canon 5d Mark II with 120 000 shutter actuations?

Would you consider buying a used canon 5d Mark II in mint condition with 120 000 shutter actuations for 500$? The seller is a nice lady, she is a professional phototographer. Here are some photos of the camera that she has sent me.


How to save the currently opened tabs (URLs) of Firefox into a text file?

Is there a way to save the currently opened tabs (URLs) of Firefox into a text file?


I use a square curve to be the bevel. With default settings. The result is like this.  More description: My purpose is to make a bunch of foot line all around room. I want to use poly spline type curve to achieve this. Without bevel object the curve geometry looks like this. The cross section is twisted at the corner which causes a shrink in the middle. Any way to prevent this?  samplefile:


How to change Sun strength/specular/angle value via python without using nodes?

I found bpy.types.SunLight(Light), but I don't know how to use it.  Can someone explain please?  I need to change some of the Sun's settings (strength/specular/angle) with python  Not a duplicate of how to GET a lamp, as this is a completely different question


Let A be a commutative ring with 1.   1) Prove that a sum of a nilpotent element and an invertible element is invertible.   2) Prove that if $f=a_0+a_1x+\dots+a_nx^n \in A[x]$  a) $\exists f^{-1}\in A[x] \Leftrightarrow a_0$ is invertible and the other coefficients are nilpotent.  b) f is nilpotent $\Leftrightarrow $ all its coefficients are nilpotent.  p.s. Those are the first two in a series of problems. The rest easily follow from each other. I'm only struggling with the first two.


At what point is the Shield (p. 275 phb) spell put into effect?

At what point is the Shield (p. 275) spell put into effect?  The Shield spell description states “Casting Time:  1 reaction, which you take when you are HIT by an attack...”   Does this mean that at the point when an attack is determined to have hit (in other words, after an enemy’s attack roll)  I’m able (should I choose) to use my reaction to cast Shield and thusly add +5 to my AC?   This being the case, I would wait to determine if a strike hit, consider their roll number and engage Shield if the +5 would be helpful.  Otherwise, just take the hit. I can sense that my inexperience is causing me to miss something obvious...


Which is the lightest thing in this universe? Is that a photon or neutrino?

I hear a lot of people saying that neutrino is the lightest subatomic particle but according to me a photon must be the lightest as nothing can travel faster than light because it gets heavier and heavier and bends time.


Why the representation in the form of $Z'X(X'X)^{-1}X'Z$ can not be simplified into $Z'Z$

Representation similar to $Z'X(X'X)^{-1}X'Z$ frequently appear to e.g. 2SLS.  I think that $Z'X(X'X)^{-1}X'Z = Z'XX^{-1}X'^{-1}X'Z = Z'(XX^{-1})(X'^{-1}X')Z = Z'Z$. So why it seems that in the context of e.g. 2SLS, the representation can not be simplified? What is the mistake I made?


OK, so I haven't upgraded to 14.04 yet. The update service has said nothing about a new LTS and I'm confused ...  Updates keep coming. Some things are working just a little different. I'm trying to deal with longstanding system projects so I'm not tempted to upgrade quite yet.  But should I? Are these piddly updates going to steer me wrong? Will Ubuntu 12.04 LTS just degrade and degrade an degrade? Why isn't update suggesting I go for the newer, brighter, shinier LTS?  Oh, and what is the meaning of life?  Cecilieaux


I am unable to install testdisk in Ubuntu 13.10 from Live Disk. I am using USB drive to run ubuntu 13.10. I want to recover some data from Windows partition.  I am unable to install testdisk. It is a tar.bz2 file. I have extracted it in a directory.  Can someone help me with the steps to install the application.


Does plant growth's 8 hour effect stack?

If you cast  for its 8-hour version to  [...] enrich the land. All plants in a half-mile radius centered on a point within range become enriched for 1 year. The plants yield twice the normal amount of food when harvested.  and then come back the next day and cast it again the same way for the third time, would the total crops harvested be doubled, and then, quadrupled, and then octupled? The campaign I am in is measured in years, so the impact of a druid (or in this case, nature cleric) who can spend 8 hours to double a 1/2 mile radius circle of food would be super helpful, but I need to know if I can prioritize one spot to make the growth exponential, vs going and casting in a different spot every day to just have a net double.


Meaning and etymology of "twirling waxed mustaches"

Today, the New York Times online edition  The review contains the following sentence:     The filmmakers don’t villainize anyone, though a few participants come awfully close to twirling waxed mustaches, like an American manager who jokes to a Chinese colleague that it would be a good idea to duct-tape the mouths of talky American workers.   It's clearly nothing positive, but I have never heard of it, cannot deduce the exact meaning from context and could not find anything online, partly because most hits concern physical mustaches.


Is there any group such that $o(a)$ and $o(b)$ is finite for some elements $a,b$ in a group, let's say $G$, but order of $ab$, i.e., $o(ab)$ is not finite.


Definition of linear/ affine/ etc transformation

A linear transformation is a function $f:V\to W$ from vector space $V$ to vector space $W$ such that linear combinations (alternatively vector addition and scalar multiplication) are preserved.  An affine transformation is similarly a between from an affine space to another such that all affine combinations are preserved.  Could we use this as an alternate definition: A linear(/ affine/ etc) transformation is a function from one l(/a/e) space to another such that the image of the function is also a l(/a/e) space?


List all XML files in directory, from newest to oldest

A mix between:   ls -rtl | more   and   find . -type f -name '*.xml' | more   Just filtering XML files.


How understand the stored energy due to magnetic field?

I'm confusing because in this book introduces the magnetic energy as mechanical work done by forced magnetic, but if magnetic force doesn't  work, besides do who done work?     Teruo Matsushita - Electricity and Magnetism New Formulation by Introduction of Superconductivity.  Preface's book says this       Usually students learn about static magnetic energy after they study electromagnetic induction. One of the appreciable advantages of using a superconductor is   the direct derivation of magnetic energy as mechanical work done by magnetic   force, similar to the electric energy resulting from the electric force. This is because   the magnetic flux is conserved in a superconducting circuit disconnected from any   electric sources. As a result, the electromagnetic induction can be predicted for a   usual electric circuit using the relationship between the energy and magnetic force.   In electromagnetism the magnetic moment of a magnet caused by spins and   orbital motions of electrons is described using a virtual magnetizing current.   However, the magnetic moment of a superconductor comes from a real current   flowing in it. Hence, the introduction of the superconductor is also beneficial with   regard to persuasion of the appropriateness of the virtual magnetizing current.


Expectation of any function of X, a nonnegative integer valued random variable

How to show that if X is a nonnegative integervalued random variable with distribution F,then  $$E(X)=\displaystyle\int_0^\infty \overline{F}(X)dx$$  and  $$E(X^n)=\displaystyle\int_0^\infty n*X^{n-1}\overline{F}(X)dx$$  where $F(X)=P(X\leq x)$ and $\overline{F}(X)=(X > x)$.  My attempt:  I am working on this question.  Meanwhile if any member knows the answer to this question may reply with correct answer.


I'm starting a very long quest to learn about math, so that I can program games. I'm mostly a corporate developer, and it's somewhat boring and non exciting. When I began my career, I chose it because I wanted to create games.  I'm told that Linear Algebra is the best place to start. Where should I go?


64-bit Windows guest in VirtualBox impossible without VT-x support?

I have successfully installed Windows Vista 32-bit in a VM with VirtualBox. Now I'm trying to do the same with Windows Vista 64-bit and it just isn't working. I have created the VM but it seems that it won't boot off of the 64-bit Vista ISO image. It spits out this boot manager error.    The host OS is Windows 7 64-bit on a 64-bit Intel Core 2 Duo processor. Now, I have done the same thing and installed the same VirtualBox version on another computer, also running Windows 7 64-bit, created the VM, and then... during the VM setup process I noticed that it had additional options to choose from when I pick the guest Os. Here's a screenshot.    You can see those options in-between where it says 64-bit, I don't have those options on that other computer. Now, this one runs an Intel Core 2 Quad, a higher end model. It supports Intel virtualization technology, while the other one does not.  This is what the same dialog looks like on the Core 2 Duo computer. Here's a screenshot.    Could this be the reason why? Does that mean that you can't emulate a 64-bit Windows guest OS at all with VirtualBox, unless your processor supports Intel virtualization technology? I understand that this technology makes things much faster, but not letting you emulate that OS at all... that's a bit extreme, no?  If so, what do you suggest I use instead?


Plot data file `test_tkz_fct.tkzfonct.table' not found

I always get this message when using tkz-fct. I have tried a lot of things but I don't find the solution. Can somebody help me? Best regards, Philippe Legrand


NullPointerException when validtion object

I get NullPointerException when validating object. I send to controller dto, and when validating it. I cant understan where is the problem because product that goes into validate method is not null, Validator code :  @Override public void validate(Object o, Errors errors) {      Product product = (Product) o;      if (product.getTitle().isEmpty() || product.getTitle() == null) {         errors.rejectValue("title", "product.title", "Product title cant be empty");     }     if (product.getDescription().isEmpty() || product.getDescription() == null) {         errors.rejectValue("description", "product.description", "Product description cant be empty");     }     if (product.getPrice().isNaN() || product.getPrice()<=0 || product.getPrice() == null) {         errors.rejectValue("price", "product.price", "Product price is not valid");     }     if (product.getCategory()==null) {         errors.rejectValue("category", "product.category", "Product category is not valid");     }  }   and i get this      java.lang.NullPointerException     com.shop.validator.ProductValidator.validate(ProductValidator.java:27)     com.shop.controller.ProductController.createProduct(ProductController.java:82)     com.shop.controller.ProductController$$FastClassBySpringCGLIB$$c0d382c4.invoke()     org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)


Why is the surface area of a sphere equal to $4\pi r^2$

I have absolutely no idea where that formula comes from, considering the fact that I am a fifteen year old.  According to me, one way to think of it is to arrange $4$ circles having radius equal to that of the sphere on it,  but the curvatures are different so that is not possible. Could someone please explain where the formula comes from?   Note: Please remember that I am fifteen years old. P. S. Let me know if there are any other tags for this question except '3d' .


Is linear surjective isometry always unitary?

Basically what I'm trying to show is $\forall h_1, \ h_2 \in \mathscr{H}$ and $U: \mathscr{H} \rightarrow \mathscr{K}$ then $\langle Uh_1, \ Uh_2\rangle_\mathscr{K} = \langle h_1, \ h_2 \rangle_\mathscr{H}$  (So your standard definition). Now I figure the easiest way to do so is by polarization.  Since we have an isometry then   $\begin{eqnarray*} \langle h_1, \ h_2 \rangle_\mathscr{H} &=& \frac{1}{4} \bigg( \|h_1 + h_2\|_\mathscr{H}- \|h_1-h_2\|_\mathscr{H} +i\|h_1+ih_2\|_\mathscr{H} - i\|h_1 - ih_2\|_\mathscr{H} \bigg) \\&=&\frac{1}{4} \bigg( \|Uh_1 + Uh_2\|_\mathscr{K}- \|Uh_1-Uh_2\|_\mathscr{K} +i\|Uh_1+iUh_2\|_\mathscr{K} - i\|Uh_1 - Uih_2\|_\mathscr{K} \bigg) \\&=& \langle Uh_1, \ Uh_2\rangle_\mathscr{K} \end{eqnarray*} $  But what I'm wondering is where surjectivity comes into play?


Feeds: how to populate a 'File' field from a path/filename in csv file?

I've got a csv file I'm using the Feeds module to convert to nodes.  It's going pretty well, but I have many documents (max of 1 per node, though) that need to be associated with my nodes.    I have the filename in the csv file (and can easily prepend any path necessary), but I'm having trouble figuring out if/how it is possible to get Feeds to match up the files.


Installing Ubuntu on Toshiba Portege 3500

I am a beginner in the world of Ubuntu (and all forms of Linux OS).  I recently was given an old laptop that I would love to bring back to life. The laptop is a Toshiba Portege 3500 tablet laptop (one with rotating screen to use as tablet). It currently has Windows XP installed.  I have very little knowledge of BIOS, but I did make it into the boot menu. I changed the directory to boot from the CD-ROM drive (external, as there is no installed drive). When I attempt to install Ubuntu 14.04.2 from a DVD, it shows a black screen with a cursor on it, but even after a few minutes, nothing appears on screen. Should I be seeing a landing page?  I am also wondering if I should bother updating any drivers. I can't connect wirelessly right now, and I think the card cannot recognize WPA or any "newer" wifi routers. This laptop is circa 2005 iirc. Correct me if I'm wrong.  Any help would be appreciated. I'm new but willing to learn. Thanks!


Sun object not moving when Rendering Animation

I've problem Rendering sun rotation animation. Steps to reproduce:   Create the sun object Set 1st keyframe   Select keyframe Rotate sun object using the handle "I" > Select Rotation  Set 10th keyframe (Reproduce same steps found in 2nd point)  Add frame_change_post handler to print sun rotation_euler Run Render > Render Animation   The result was 11 times (0-10) printed same rotation Euler <Euler (x=-7.9113, y=0.2392, z=-7.1615), order='XYZ'>  .But when I move from keyframe to keyframe Euler XYZ positions are updated. Why is that so?  Here is a demo plugin created to replicate the issue:  bl_info = { "name": "Sun animation using lever", "author": "karlisup", "version": (1, 0), "blender": (2, 80, 0), } import bpy from bpy.app.handlers import persistent  @persistent def sun_handler(scene, depsgraph):     if "Sun" not in bpy.data.objects:         create_sun()     sun = bpy.data.objects["Sun"]     print(scene.frame_current, sun.rotation_euler)  def create_sun():     bpy.context.view_layer.active_layer_collection = bpy.context.view_layer.layer_collection     light_data = bpy.data.lights.new(name="Sun", type='SUN')     light_data.energy = 30     light_object = bpy.data.objects.new(name="Sun", object_data=light_data)     light_object.location = (5, 5, 5)     bpy.context.collection.objects.link(light_object)     bpy.context.view_layer.objects.active = light_object  def register():     bpy.app.handlers.frame_change_post.append(sun_handler)  def unregister():     bpy.app.handlers.frame_change_post.remove(sun_handler)  if __name__ == "__main__":     register()


I am showing a subsection of the code where i am defining two functions  defining_polygon_outside_nest and defining_polygon_inside_nest. err is an integer whose values ranges from [0,5]. I define err as a global variable within these functions and want to use this to add specific values in list ants_inroi_outsidenest and ants_inroi_insidenest. Whenever i do this, i am getting an error if for_coordinates_inside_nest((x,y)) is True and err==0: NameError: global name 'err' is not defined. It works fine if i am not using err in function defining_polygon_inside_nest Any suggestions to solve this?  err = 0 def defining_polygon_outside_nest(tag_data):     global err     ants_in_arena = []     ants_inroi_outsidenest = []     for id, (x,y) in tag_data:         ants_in_arena.append(id)         if for_coordinates_outside_nest((x,y)) is True and err==0:             ants_inroi_outsidenest.append(id)      return ants_inroi_outsidenest   def defining_polygon_inside_nest(tag_data):        global err     ants_in_arenai = []     ants_inroi_insidenest = []     for id, (x, y) in tag_data:         ants_in_arenai.append(id)         if for_coordinates_inside_nest((x,y)) is True and err==0:             ants_inroi_insidenest.append(id)     return ants_inroi_insidenest


Complex conjugate Young Tableaux representation

I have been studying Young Tableaux representation from youtube to represent $2\times 2$ and other examples to in $SU(n)$ symmetry. But i am unable to understand nor able to find relevant answers of how to represent conjugate i.e how can one write $\bar{3}$ in a square box in $SU(3)$ representation is actually 2 and $\bar{6}$ in $SU(3)$ is represented as 3 in $SU(3)$. By saying 3 i mean i sy its dimension.


How to add nodes on the axis in axis environment in TikZ?

The following are my code. I used the axis environment for better axis style. I try to add nodes at g^W=g^L, which is a point on the y-axis, but the axis environment seemes to cut off anything outside the axis. What should I do?  \documentclass[11pt]{article} \usepackage{pgfplots} \begin{document}  \begin{figure} \centering \begin{tikzpicture}[scale = 1.2]      \begin{axis}[xmin=0,xmax=10,ymin=0,ymax=7,         axis lines = left, axis line style = thick,  unit vector ratio=1 1 1, xtick={0,8},         xticklabels = {$p^w=0$, $p^w=1$},         ytick={1.5,3,5.5},         yticklabels = {$g^L-\beta$,$g^W=g^L$,$g^w+\alpha$}]         \addplot[mark=none, dashed] coordinates {(8, 0) (8, 7)};          \addplot[domain=0:8, dashed] {1.5};         \addplot[domain=0:8, dashed] {3};          \node[black,right] at (axis cs:8,1.5){\small{$W=0$}};         \node at (axis cs:8,1.5) [circle, scale=0.3, draw=black!80,fill=black!80] {};         \node at (axis cs:8,3) [circle, scale=0.3, draw=black!80,fill=black!80] {};         \node at (0,3.5) [circle, scale=0.3, draw=black!80,fill=black!80] {};       \end{axis} \end{tikzpicture} \caption{A caption.} \end{figure}   \end{document}


As a result of a problem I can not solve , I decided to reinstall Ubuntu , but before do this I want to save all the files I have on my hard drive from CD passing through " Ubuntu Live " The problem is that I had secured access to Ubuntu password and now from "ubuntu live" I'm not allow to save all files: on some folder ( moreover the most important ) I found a gray X and if I try to open them I get an error message : "This location could not be displayed . You do not hace the Necessary permission to view the contents of ....... "  After that, I tried with sudo nautilus  but unfortunately there was nothing to do, when I write it, the terminal return this    If I try to give again the command sudo nautilus, the response change    I tried to follow various guides from this forum where it's said to try to terminal with the following commands  sudo apt-get remove nautilus   sudo apt-get install nautilus   sudo apt-get install samba    but the result will not change


I am looking for a paper detailing the very basics of deep learning. Ideally like the Andrew Ng course for deep learning. Do you know where I can find this ?


I know that  states that the momentum and position of a quantum object can not be determined at the same time. This is very strange to me. I want the basic reason behind it, i.e why is this so.


Stock vs Broth - What's the difference in usage?

I've now learned (from this site) that broth and stock are not the same product (see ).   So, in any given scenario, why should one use stock rather than broth, or vice versa? i.e. What's the practical difference?   EDIT: I'm mostly looking for when to use one vs the other.


How to evaluate a finite product in path integrals of harmonic oscillator?

How to evaluate finite product of exponential function in path integrals? $\prod_{i=1}^{N-1} \exp(-\omega t_{i})$ with $t_{1}=0$ and $t_{N}=T$. The answer is $\exp(-\omega T/2)$. I have come across these equation while evaluating the path integral of a harmonic oscillator without evaluating action integral. The title of the paper is "An elementary derivation of the harmonic oscillator propagator" The paper is in the following link.   In particular, I want to know how he arrived at equation (6) from equation (5)


Setting the CLASSPATH to run Duke correctly

When I try to run Duke (a open source reduplication program) I get java class not found errors. I have done the following to add the proper files to the Classpath.   This is what the developer says to do in order to run the program : "To run Duke you need an XML configuration file. You also need to put duke-.jar and lucene-.jar on the classpath."  To run Duke, give the command:  java no.priv.garshol.duke.Duke   after learning about the classpath this is what I came up with:  Kyles-MBP:~ kyleanderson$ export CLASSPATH="/Users/kyleanderson/Desktop/duke-1.2/duke-**.jar:/Users/kyleanderson/Desktop/duke-1.2/lucene-**.jar" Kyles-MBP:~ kyleanderson$ java no.priv.garshol.duke.Duke   when I try and run the main class, I get the following errors:  Exception in thread "main" java.lang.NoClassDefFoundError: no/priv/garshol/duke/Duke Caused by: java.lang.ClassNotFoundException: no.priv.garshol.duke.Duke at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247)   I have looked around here a bunch and nothing seems to answer my question.