How to enable hard-blocked bluetooth in Thinkpad Edge 320

I'm trying to use the built-in bluetooth device of my Lenovo Thinkpad E320. It seems to be hard blocked, but i can't find any possibility to unblock it.  rfkill list returns:  0: tpacpi_bluetooth_sw: Bluetooth    Soft blocked: yes    Hard blocked:yes   cat /proc/acpi/ibm/bluetooth returns:  status:     disabled commands:   enable, disable   I tried to enable it by:   Pressing Fn+F9 (Radio controll) echo enable | tee /proc/acpi/ibm/bluetooth rfkill unblock bluetooth Trough the BIOS. But it's not mentioned at all   None of the actions influenced the ouputs above.


Visiting Iran as a dual EU-American citizen

I am a dual Dutch-American citizen that is planning to visit Iran in the upcoming week. I have both a Dutch and an American passport.  According to the , "British, Canadian and American citizens are required to be escorted by a government approved guide at all times. Independent travel for these citizens has been banned due to the closure of Iranian foreign missions in these countries."  However, I asked an Iranian friend who said that I should have no problem as long as I enter on my Dutch passport, and this seems consistent with what I have read .   As Iran has a visa-on-arrival program for Dutch citizens, I assume that I can just show up at the airport in Tehran, show my Dutch passport, get a visa, and walk out of the airport and into Tehran.  Is this correct?  [edit 11/08/16] I've contacted the embassies of both countries and posted my answer below. My flight is tomorrow morning and I land in Tehran around 1am Thursday. I'll let everyone know what happens.


Showing grid on top of plot fill with PGFplots?

I have a plot with a pass/fail metric, and wish to show this clearly by having to seperate colors in the plot. To make the data stand out, I have a background grid to the axis tick marks. However, this does not affect the fill I use to color the area under the plot, as this seems to be the top layer.   An example of what I have now is shown below:    The code used to generate this is:  \documentclass{article}  \usepackage{pgfplots, amsmath} \pgfplotsset{compat=newest} \pgfplotsset{major grid style={color=black}} \pgfplotsset{every  tick/.style={black,}} \pagestyle{empty} \begin{document} \begin{tikzpicture} \begin{axis}[       xmin=5,      xmax=55,      ymin=0,      tick align=outside,      tickpos=left,      xtick=data,      ytick={0,0.2,...,2.5},      enlargelimits=false,      axis background/.style={fill=green!30},      grid=both,      xlabel=Frequency (MHz),      ylabel=V$_{\text{DD}}$ (V)] \addplot [const plot, fill=red!30]  coordinates { (5,0.7) (10,0.8) (15,0.9) (20,1) (25,1.1) (30,1.2) (35,1.3) (40,1.4) (45,1.5) (50,1.6)  (55,1.7) }  \closedcycle;  \end{axis} \end{tikzpicture} \end{document}   I want the gridlines to overlap the whole plot (meaning the fill as well). How can I achieve this?


When I am installing other applications, it shows error

I am going to install Python software in Ubuntu 20.04, then it shows below mentioned errors everytime:  please insert the disc labeled Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731) in the drive /media/cdrom/ and press [Enter]  Please help me solve my issues.


I want to remove windows 8 and keep ubuntu 15.04

I have been testing out ubuntu for a few months now and now I decided to keep it on my system (It's a dual boot with windows 8.1). My question is : If I remove windows 8.1 from my system, will my BIOS also be removed?  I was going to uninstall Windows 8.1 with OS-Uninstaller.   My BIOS is an American Megatrends BIOS. Ubuntu Version : 15.04 Laptop brand : Asus (Notebook PC) Dual Boot with : Windows 8.1 I also have the GRUB2


My 13 year old daughter says she wants to be a boy. This is out of character for her. Is this a phase?

My daughter, 13, has said she wants to be a boy. A little background: we moved to a new state a year and a half ago. In her new school, she felt isolated among her peers until she met a girl in art, and became good friends. She joined the drama club, and made  friends with some 8th graders. They joined “the diversity club”. This club is a LGBT club. The kids put on a play they wrote and starred in, which had homosexual connotations. “Romeo and Juliet”, but script  rewritten to include  2 females as the couple, for instance.   My daughter got so wrapped up in it, that her life was as if she was copying the play. She’s no longer friends with the friend from art, but remains close with the 8th grade crowd. They all labeled themselves. One week, my daughter said she was gay, then, changed to bi, then onto pan. (I had to google that one). Now she is emphatic about being disgusted with her body and wants to be a boy. She wants to donate all the “girly” clothes she picked out last year, and tossed out all the makeup she bought a few months ago.   All her life, she was the classic girly girl. She had crushes on boys, and she and this boy were inseparable since first grade. She was sad when it came time to move away. When we settled here, she became sullen and angry, putting herself down. She now sees a therapist who she really likes. We’ve been working on her self esteem issues. She’s wanting us to call her “he” and by a male name. I can’t do that. She’s my daughter. She is female. Had we seen this coming, maybe I could come to accepting. But it happened out of the blue.  Sometimes the old her comes back-I got a makeup sample and she was interested in trying it, looked at me, then quickly put it down and said “ewww, makeup”—just a few months ago, she bought a bunch. She’s now wanting to wear boys clothes and talks of wearing a suit to her prom. She is very impressionable, and seems affected by viral YouTube videos about kids coming coming out to their mothers, and the mothers gleefully embrace with happy tears. She has told me when she’s 18, she’s having her breasts removed.    Nothing seems normal to me anymore-in terms of how she always was-this new situation just doesn’t fit.  My gut tells me this is a phase.  I’m hoping it’s a phase. But with all I’m seeing in the media about this, I’m not sure. I love her; this is too much for me to process. I’m a stay at home mom; we were inseparable. I knew her. Until now.:(  She cut off all her beautiful hair, and wears boys shorts, baggy tee shirts, and bought this awful men’s deodorant spray. Please help me sort this out. I’m at my wits end.  Do you think this is a phase? Is this common?


Force install of custom rom on unsupported device (MT6575)

A friend of mine bought a fake iphone coming from Thailand. It have a fake iOs rom on it which is translated in English but a lot of part aren't... Is there a way to install a CyanogenMod even if the device is not supported ?  Info :  BB Chip             : MT6575 MS Board            : mobitek75_ics2 UBoot Ver.          : 2010.06 Kernel Ver          : 3.0.13 (root@zonglibo-desktop) (gcc version 4.4.3 (GCC) Android Ver.        : 4.2.0 SW Ver.             : ALPS.ICS2.MP.V1.20 Custom Build Verno. : 1371628671   Thanks !


Why can't I install bc on my Raspberry Pi?

When I try to run the command sudo apt-get install bc I get the following error message:  Reading package lists... Done Building dependency tree        Reading state information... Done Package munin-memcached is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'bc' has no installation candidate   I did some research and was told that I could fix this problem by running sudo apt-get update which I did, followed by sudo apt-get -f install and then finally sudo apt-get install bc once again. However I still get the same error message.  Content of my sources.list file:  deb http://archive.raspbian.org/raspbian wheezy main contrib non-free deb-src http://archive.raspbian.org/raspbian wheezy main contrib non-free


How can banks afford to offer credit card rewards?

I understand Visa and MasterCard make money on transaction fees, but how much (if any) of those fees do banks see? Do banks make money on people who pay their bills on time, or are reward programs paid for by the people who don't?


Is it true that when we can contribute $60,000 into pre-tax or after-tax 401(k), it can be all after-tax so we never have to worry about the tax?

Some suggestion is that if we plan to have lower tax bracket when we retire, we can contribute into 401(k) pre-tax instead of after-tax.  However, if some people may contribute $60,000 into either pre-tax or after-tax, then when they retire, if it has $1.5 million, then they may end up with $1.2 million after paying tax, versus if people contributed for after-tax, they have $1.5 million, and it is always $1.5 million.  They don't have to worry about tax for it at all.  So is it true that we may consider after-tax even if we think our tax bracket is low after retirement?  But one exception may be: I can't recall if it is after-tax, is it true that some company may not match your contribution, say, at 100%.  If it is 100%, then you may considered it "paying for your tax" already, because if you have $100 and the company contribute $100, then you have $200. Even after paying tax, you may still have $120, so it is better than paying tax for you.


How are app sales/acquisitions taxed in the US?

Hypothetical scenario: I identify a gap in a company's product offering. I, as an independent developer, write a desktop, web, or mobile application that bridges this gap, and I contact the company in question. They like the product, and agree to acquire it from me.  To be clear, this scenario again isn't suggesting I've written an app and have put it on the App Store for continuous sale, but that I've written an app, and it has been acquired for a lump sum of money.  How is this taxed in the US? (Specifically, California.) Some thoughts I have:   Self-employment tax rate (currently 15.3%, I believe) CA sales tax (currently 7.25%) (Other income tax?)   Would this be taxed as a sale? Self-employment income? Both? What if I'm not self-employed, but the sale is much higher than my gross income? Example: $100,000 salary at company ___ that has no stake in the app invention, $1,000,000 app acquisition.


Is this expression for the energy of a three-body system correct assuming Newtonian mechanics?

In the (currently unanswered) Math SE question  I've I'd written†:  The total energy would be the sum of the kinetic and potential energies $$E = \sum_{i=1}^{3}\frac{1}{2}m_i v_i^2 - \sum_{i=1}^{3} \sum_{j=1}^{3} \frac{m_i m_j}{r_{ij}}; \ \ i \ne j$$  and  $$\sum_{i=1}^3m_iv_i=0$$  was added later to exclude center-of-mass motion. †Based on comments and my suspicion I've proactively amended the Math SE post. Today I suddenly realized that I wrote the second term for potential energy off the top of my head, and I'm wondering if I've double counted or otherwise made a mistake. Is this the correct expression for the total energy of three bodies assuming Newtonian mechanics? If not,  how should it be written?


Why do some words have two past tense forms (e.g. "dreamed" vs. "dreamt")?

While perusing ShreevatsaR's answer to , it occurred to me that my own verbal usage is out of step with what I see in current American literature. When speaking in the past tense, I prefer to use the following forms:   dreamt (past tense of to dream) leapt (past tense of to leap) swept (past tense of to sweep) lit (past tense of to light)   However, when reading recently written novels, I see the more regular conjugation of the past tenses, which instead yields dreamed, leaped, sweeped, and lighted. Is it a difference of dialect (US - New England), register (university education), or (possibly) my age (early forties)? I am especially irritated by "lighted" because it takes so much more effort to say than "lit".  CLARIFICATION: Given Jon Hanna's answer below, I would just like to clarify the question a bit more. What I was originally after was why these separate verb forms exist in the same past tense. In other words, variations such as "I dreamt" vs. "I dreamed", not the variation between different forms in different pasts. I am not a linguist, so I hope that clears things up a bit.


I need to have the date. The format of the time should be 2017-01-18T07:34:35Z I have tried this but it does not work:  import datetime i = datetime.datetime.now() date = %i.year "-" %i.month "-" %i.day "T" %i.hour ":" %i.minute ":" %i.second "Z"


How do I restore iPhone 6s stuck on connect to iTunes screen/Apple logo

I'm not really sure how, but after I woke up today, my phone was just displaying the loading spinner and doesn't start up anymore. It's weird because my phone turned off last night and suspecting that it was probably out of charge, I thought charging it overnight would fix the problem.   So, my iPhone is currently stuck on the iTunes/Apple Logo loop. When I put it into DFU/Recovery Mode and connect it to iTunes, it isn't able to restore it. It keeps throwing "Network Connection Problems" -- it downloads iOS 10 for a bit and suddenly stops downloading, throwing the error. I've also tried downloading a custom .ipsw from  but it seems that the file is corrupted whenever iTunes tries to unpack it.   Any thoughts on how I could go about fixing this?   Note - I don't have a jailbroken iPhone.


Is it ok to copy/paste a section of a previous paper of mine into a new one?

I'm in the Physics community. I've already published an article on a journal where I've described a solution scheme that serves to solve a certain problem. Now, I've discovered that the same approach can be used to solve a different model. Of course the model, the comments the results, the plots, etc are different, but the technique is the same. So, is it ok to copy the section of my previous article where I describe the solution technique and paste it into the new one? Notice that the old and the new article feature the same identical authors and that the previous article would be, of course, properly cited.


I'm new to RegEx and I find it really confusing, so I would like a simple example of how to extract multiple strings of the same type.  Let's say we have a random string and I want to capture anything that is surrounded by "###". So I assume the pattern would look something like this:  string str = "dsad###hi###vdkv324da###dog###fs"; Regex pattern = new Regex("###.+###");   How do I match and store more than one occurrences? And the bigger question - after I do that I'll be left with "###hi###" and "###dog###", so how do I extract the "hi" and "dog" from those?


Consider the function $$f(x)= \begin{cases}0&\text{if }x\in\Bbb{R}\setminus\Bbb{Q}~\text{or}~x=0\\\frac{1}{q}&\text{if }x=\frac{p}{q}, p\in\Bbb{Z},q\in\Bbb{N},(p,q)=1\end{cases}$$  Of course this function is discontinuous at rational numbers. To show it is continuous at irrational numbers I need: If $x_n\to x$, with $x_n=\frac{p_n}{q_n}$, and $x_n\ne x,n\in\Bbb{N}$, then $\lim_{n\to\infty} q_n=\infty$.  How to do that?


Is there a simple way to produce in TikZ a two-torus rounded by two circles, each with the non-visible half dashed, as in the sketch?


My Ubuntu version is 14.0.4  I get the following error when I execute apt-get update.  Get:28 http://archive.ubuntu.com trusty-security/multiverse i386 Packages [4,280 B] Hit http://archive.ubuntu.com trusty-security/main Translation-en               Hit http://archive.ubuntu.com trusty-security/multiverse Translation-en         Hit http://archive.ubuntu.com trusty-security/restricted Translation-en         Hit http://archive.ubuntu.com trusty-security/universe Translation-en           Get:29 http://archive.ubuntu.com trusty Release [11.9 kB]                       Get:30 http://archive.ubuntu.com trusty/main Sources [1,064 kB]                 Fetched 1,429 kB in 14s (102 kB/s)                                              W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release    Unable to find expected entry 'restricted/source/Sources' in Release file   (Wrong sources.list entry or malformed file) W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/main/source/Sources  Hash Sum mismatch E: Some index files failed to download. They have been ignored, or old ones used instead.   What am I missing ?


How do I evaluate the limit $\lim_{n\to\infty}n((1+1/n)^n-e)$?

Could anyone show me how to evaluate this limit?  $$ \lim_{n\to\infty}n\left(\left(1+\frac1n\right)^n-e\right) $$  Thanks!


AirPods: Extremely poor mic quality on Mac

Ever since I purchased the AirPods (1st Generation), they demonstrate extremely poor quality while activating the AirPod mic, whilst they are connected to a Mac. When activating the mic to record audio, it seems that both the recording quality AND audio playback quality severely drops to a substandard level (Mono 8.0 kHz).  For example, if I invoke Siri on the Mac, whatever is being said and recorded by me, AND the Siri/Mac/AirPod audio  response will be in poor quality. After the recording is done, audio playback quality usually goes back to normal1. Any mic audio recorded to a file will however be in the poor quality; which is why I interpret the issue to affect both recording and playback qualities.  The issue appears to be identical to the one discussed in this Apple Support Forum . The thread offers possible explanations but no definitive solution or suggested course of action.  I have this issue with several Macs of various recent models. I don't have this problem when using the AirPods with an iPhone.  I have tried resetting the Mac Bluetooth interface, tried resetting the AirPods, and so forth.    FYI: Using the macOS native application Audio MIDI Setup, I attempted to observe what's happening when AirPod recording is activated. Output quality drops from the standard 2 ch 24-bit Integer 44.1 kHz → 1 ch 16-bit Integer 8.0 kHz.      1It has happened that the Mac got permanently stuck in low quality until system reboot, or even whenever the AirPods were connected afterwards. I had to attempt AirPod unpair/re-pair, and even a charging case reset to fix the latter situation.


Let G be $\mathbb Z_p\times\dots\times \mathbb Z_p$. Find $A(G)$ (the Automorphism group of $G$).

Let G be $\underbrace{\mathbb Z_p\times\dots\times \mathbb Z_p}_{n \text{ times}}$. Find $A(G)$ (the Automorphism group of $G$).   ($\mathbb Z_p$ is the integres modulo p, for example $\mathbb Z_2=\{0,1\},\ \  \mathbb Z_5=\{0,1,2,3,4\}$)  I thoght about:  Think about $(\mathbb Z_p)^n$ as vector space over $\mathbb Z_p$ of dimension n. Then to think about the automorphisms as linear transformations  (do I need to explain it more?). So $A(\mathbb Z_p)^n$ is equal to to the space of all invertible linear transformations of $(\mathbb Z_p)^n$ to itself.  Then we get that $A(G)\cong GL_n(\mathbb Z_p)$.   is that enough or I need to add something?


Will the Windows Store update from Windows 8 to 8.1 leave all my data/apps intact?

I want to update to windows 8.1 from the Windows 8 installation that came with my computer. In Windows Store I see that there is an update to 8.1 (about 3.6GB). Will all my files, programs, apps, and data remain as they were in Windows 8?  Normally when you install windows on a computer without it, all the data on the C drive is removed, will this happen with the 8.1 update from the Windows Store?


Interpreting PCA figures in layman terms

Image you have to present your PCA findings to a managerial board. An example:    After having read answers from , I've understood that     The left and bottom axis are correlations The right and upper are the weights (i.e. loadings)   However, even after reading the other posts, it’s hard for me to interpret the results, let alone imagining how to present them in a meeting.  My questions:   Is the upper axis bound to PC1, and the right axis to PC2? Features Attack + HitPoints mostly influence PC1 but Speed both PCs (correlated positively to both PCs) and Defense also both (but correlated negatively to PC2?)? The model was done with R's prcomp. None of the model's printable values (i.e., x, sdev, scale, center and rotation) are remotely close to -8 to 6 as illustrated in the upper and right axis in the figure. Why? Any way to print the exact values of the upper and right axis?   Here's the full data assigned to a given variable called pokemon from an online tutorial:                            HitPoints Attack Defense Speed Quilava                        58     64      58    80 Goodra                         90    100      70    80 Mothim                         70     94      50    66 Marowak                        60     80     110    45 Chandelure                     60     55      90    80 Helioptile                     44     38      33    70 MeloettaAria Forme            100     77      77    90 MetagrossMega Metagross        80    145     150   110 Sawsbuck                       80    100      70    95 Probopass                      60     55     145    40 GiratinaAltered Forme         150    100     120    90 Tranquill                      62     77      62    65 Simisage                       75     98      63   101 Scizor                         70    130     100    65 Jigglypuff                    115     45      20    20 Carracosta                     74    108     133    32 Ferrothorn                     74     94     131    20 Kadabra                        40     35      30   105 Sylveon                        95     65      65    60 Golem                          80    120     130    45 Magnemite                      25     35      70    45 Vanillish                      51     65      65    59 Unown                          48     72      48    48 Snivy                          45     45      55    63 Tynamo                         35     55      40    60 Duskull                        20     40      90    25 Beautifly                      60     70      50    65 Marill                         70     20      50    40 Lunatone                       70     55      65    70 Flygon                         80    100      80   100 Bronzor                        57     24      86    23 Monferno                       64     78      52    81 Simisear                       75     98      63   101 Aromatisse                    101     72      72    29 Scraggy                        50     75      70    48 Scolipede                      60    100      89   112 Staraptor                      85    120      70   100 GyaradosMega Gyarados          95    155     109    81 Tyrunt                         58     89      77    48 Zekrom                        100    150     120    90 Gyarados                       95    125      79    81 Cobalion                       91     90     129   108 Espurr                         62     48      54    68 Spheal                         70     40      50    25 Dodrio                         60    110      70   100 Torkoal                        70     85     140    20 Cacnea                         50     85      40    35 Trubbish                       50     50      62    65 Lucario                        70    110      70    90 GiratinaOrigin Forme          150    120     100    90   This is the whole code I used in the online tutorial environment:  > typeof(pokemon) [1] "integer" > pca <- prcomp(pokemon, scale = T, center = T) > biplot(pca)


I understand, on  a layman's level, Fray's motivation to write an elliptic equation corresponding to an assumed solution to FLT. My question is, how technically is Frey's equation derived?   $1.$ FLT : Contradiction. There exist integers $A,B,C,n>2$ such that $A^n + B^n = C^n$  $2.$  Frey: $y^2 = x(x-A^n)(x+B^n)$  $3.$  Elliptic curve $y^2= x^3 + ax + b$    $4.$  The curve is not modular. => not elliptic => FLT  proved.   I need is the algebra to go from 1. to 3. above.  Assume Numbers A,B,C such that A^n + B^n = C^n contradicting FLT.  $y^2 = x^3 + ax + b$ an elliptic curve in Weirstrass form. I am guessing A and B go unchanged into x(x-A^n)(x+B^n)   Is that correct ?  Expanding 2. I get a term in x^2 , there is none in 3. This is my problem.  What does a $2$ dimensional graph of the Frey curve look like ?


Get road polyline from road polyline buffer layer

I need to reverse the action of buffer tool. I had two polyline layers from two different sources with different attributes for a section of a city, that I needed to combine. In order to spatially combine those, I made created a buffer of one of those and then used that to spatially join. Now the joined attributes are in the buffer layer and I need to get the polylines for the that layers. I couldnt do the other way around ( join the features to the lines instead of the buffer) because of the characteristics of the layers.   Is there any way to convert buffer layer to road polyline layer? I tried spatially joining the buffer layer to the original road layer,but the files are large and the "memory not enough" error pops on.  or is there an any simpler way to merge attributes of two road polyline layers?


Prove that $f$ analytic, $f(x) \in \mathbb{R}$ for all $x \in \mathbb{R}$ implies $f(\overline{z})=\overline{f(z)}$

Let $U\subset \mathbb{C}$ be a nonempty connected open set such that for every $z\in U$, $\overline z\in U$.  Let $f$ be analytic on $U$. Suppose $f(x)\in\mathbb R$ for every $x\in U\cap\mathbb R$. Prove that $f(\overline{z})=\overline{f(z)}$ for any $z \in U$.    By definition, I know that $f$ analytic on $U$ means that for every $z_0 \in U$, there exists $r>0$ and a sequence of complex numbers $\left(a_n\right)_{n=0}^\infty$ such that $f(z)=\sum_{n=0}^\infty a_n\left(z-z_0\right)^n$ on the disc $D(z_0,r)\subseteq U$. I see that $f$ takes points without imaginary components to other points without imaginary components. But I don't see how this implies a symmetry that $f(\overline{z})=\overline{f(z)}$ for $z \in \mathbb C \setminus \mathbb R$. It seems like a very strong conclusion and I'm not sure how I would prove it.  I have also shown in the preceding question that $U\cap\mathbb R$ contains an open interval, however I am not sure if that detail is meant to be helpful to this question.


I have an Asus ROG - G551V with Windows 10 installed.  I am trying to dual boot it with Ubuntu 16.04 but it is always stucks at booting. (At the screen where it shows you 'Ubuntu' together with the 5 dots.)  I've been trying to both install it from USB and DVD, but I always end up at the same screen. I can't even select 'Try Ubuntu...' option.  What can I do?


I know there's a ton of questions about this topic but I'm not being able to find the right answer. I have GNOME Version 3.22.2 running on a Debian GNU/Linux 9 (stretch) 64-bit.  The problem:  I'm trying to set up a shared folder (say thefolder) such that multiple users of a group (say thegroup) on the same machine can work on it. To do that I changed the ownership of the folder to thegroup and set the setgid bit of the folder.  $ ls -l drwxrwsr-x 6 me thegroup 4096 Oct  1 20:29 thefolder   The only problem now is that the default umask in Debian is 0022 and this prevents other users to write on any subfolders or files that I create on thefolder.   What I've done so far:   My first (naive) try was to set the umask in one of the shell configuration files. I added the line  umask 0002   in all of the files /etc/profile, /etc/bash.bashrc, ~/.profile and ~/.bashrc (each one at a time obviously) until I realized that this worked only for the shell (GNOME Terminal and TTYs) but not for other applications like Files or Gedit. I then deleted all these lines and tried something else. I added the line  session optional pam_umask.so usergroups   at the end of the file /etc/pam.d/common-session and restarted the computer. It is worth noting at this point that the options UMASK 022 and USERGROUPS_ENAB yes are both enabled in the /etc/login.defs file. Having done that I noticed that the umask was correctly set as 0002 for TTYs but not for the GNOME session (the GNOME Terminal and all other programs accessed through the graphical interface still worked with a 0022 umask) After that I tried to set the umask in the Xsession script of the GNOME Display Manager. I wrote the line   umask 0002   at the begining of the file /etc/gdm3/Xsession but the problem persisted. I made a little experiment and wrote instead the following line   echo "umask: $(umask)" > $HOME/Desktop/debug   and after log out and log in again the debug file contained the line  umask: 0002   which means that at that point the umask was still correct and that it is overwritten somewhere else after the Xsession script.   The question  Can someone explain to me where is the umask for the GNOME session defined and how can I change it?


How to perform isometric log-ratio transformation

I have data on movement behaviours (time spent sleeping, sedentary, and doing physical activity) that sums to approximately 24 (as in hours per day). I want to create a variable that captures the relative time spent in each of these behaviours - I've been told that an isometric log-ratio transformation would accomplish this.   It looks like I should use the ilr function in R, but can't find any actual examples with code. Where do I start?  The variables I have are time spent sleeping, average sedentary time, average average light physical activity, average moderate physical activity, and average vigorous physical activity. Sleep was self-reported, while the others are averages from valid days of accelerometer data. So for these variables, cases do not sum to exactly 24.   My guess: I'm working in SAS, but it looks like R will be much easier to use for this part. So first import data with only the variables of interest.  Then use acomp() function. Then I can't figure out the syntax for the ilr() function. Any help would be much appreciated.


Some application buttons, emojis and fonts are huge on 18.04

On my fresh install of Ubuntu 18.04 (GNOME) buttons of some apps are huge. Here's an example - this is VLC. But this problem appears in other apps, for example it applies to emojis in Thunderbird.   How can I fix this?


How to get bokeh or macro on E-M10 Mark II with 14-42mm Black EZ Lens?

I got E-M10 Mark II with 14-42mm Black EZ Lens f3.5-5.6 EZ.  Is it possible to create nice bokeh and macro pics with this set up?  I tried shooting many pics (well mainly on auto), but I never got bokeh. Unfortunately, it never got to focus properly on close-up objects. Not even proper macro. It just refuses to focus on close up objects. I get so much better results with my old iPhone 6.  I am very disappointed that I spent $600 on this, and I still use my iPhone.  Is it just wrong set up, or I need to do some "magic trick" to get bokeh and macro out of this camera and kit lens?  If it is possible to do, how do I do it?


Documents required for a Mexican citizen getting married to a Pakistani in Dubai?

Which documents are needed for getting married in Dubai to a Mexican woman? She will come on a visitors' visa and she will come between 5 to 10 days.  I have resident visa and I am from Pakistan. What documents are needed from her?


Computing $ \lim _{n \rightarrow \infty}\left[n-\frac{n}{e}\left(1+\frac{1}{n}\right)^{n}\right]$

$$ \lim _{n \rightarrow \infty}\left[n-\frac{n}{e}\left(1+\frac{1}{n}\right)^{n}\right] \text { equals }\_\_\_\_ $$   I tried to expand the term in power using binomial theorem but still could not obtain the limit.


When rolling percentages, do 1d100 and two d10s (percentiles) share the same probabilities?

I know d100s are shunned because they take too much time to roll, and 1d10+1percentile is really fun, but do they share the same probabilities? Is it better to use a (digital) d100?  Also, do d100s have 0? You can't roll a 0 with percentiles, I think.


Reviewing low quality posts: when to delete

When reviewing low-quality posts, the help text explains:        Looks Good if nothing is wrong with this answer   Edit if you can fix all the problems with this answer   Recommend Deletion to recommend that this answer be deleted   Not Sure if you are unsure and want to skip this answer      But there is no guidance as to the thresholds. In particular, the text gives me no idea how bad a post has to be for me to be supposed to recommend deletion. For example, the most common gray area is with answers consisting of one or two lines of code. Often these can technically answer the question, but they are not very useful because they don't explain why or how it works. Should those be deleted? If not, should I really say "looks good" even though something is "obviously wrong with this answer"?  Could the help text be clarified (or at least hyperlinked to an explanation)?


I have the following Python script  def application():      from math import exp     v = lambda t: 3*(t**2)*exp(t**3)     n = int(input('n: '))     numerical = trapezoidal(v, 0, 1, n)     # Compare with exact result     V = lambda t: exp(t**3)     exact = V(1) - V(0)     error = exact - numerical     print("n = %d: estimation = %.16f, error: %g"%(n, numerical, error))  def trapezoidal(f,a,b,n):     h = float(b-a)/n #width     result = 0.5*f(a) + 0.5*f(b)     for i in range(1,n):         result += f(a + i*h)     result *= h     return result   which is named trapezoidal.py. I cannot understand why when I call it from a terminal (python trapezoidal.py) I get nothing.


Are wh-words conjunctions when they begin a dependent (wh-) clause?

According to "A glossary of English Grammar" by Goeffrey Leech:     "The wh-words are: who, whom, whose, which, what, how, when, where, why."   In the paragraph where Leech defines the term conjunction he gives some examples of subordinating conjunctions:     "In practice, 'conjunction' refers to two rather different classes of words: coordinating conjunctions (and, or, but and sometimes nor) and subordinating conjunctions (if, when, because, and so on)"   In the following example sentences, the subordinate clauses in square brackets begin with wh-words. Are the wh-words (what, where, when, which), which begin the subordinate clauses, conjunctions or not? Or can they be considered as conjunctions?   [What you do] does not concern me. I didn't ask [where you live] I’ll phone you [when I arrive]. She told me a story [which made me laugh out loud]   Edit:  In "Practical English Usage", the author Michael Swan uses the term "Interrogative conjunctions":     Interrogative conjunctions like who, which, what, where, whether can   follow prepositions.          -We discussed the question of [who to appoint as manager].      -I may be able to come: it depends on [which day you are holding the meeting].      -They were not at all interested in [what I thought].


Why does pluralization of compound words typically occur in the middle as opposed to the end of the word?

As I understand, correct plural versions of passerby and attorney general become passersby and attorneys general.  But why?  With passerby, the the preposition "by" has been combined with the noun "passer" to become a one word noun "passerby".  So why shouldn't this be passerbys?  If I am an attorney general, and you are an attorney general, why are we not attorney generals?  As an American I have always heard it as attorneys general, however  suggests British English does use "attorney-generals" (as well as an interesting 2nd paragraph that further probes my question).  Are there hard rules to this topic?  Or merely generally accepted practices based on locale?


stuck booting to old kernel - looping to initramfs prompt

using kernel 4.4.0.145-generic machine boots to screen: VFS: unable to mount root fs on unknown-block(0,0)  loading an old kernel version (4.4.0-130-generic), we are able to boot the system, however it errors out to the initramfs command prompt BusyBox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built-in shell (ash)  (initramfs) _


How to achieve a desired angle with pipe fittings

I want to come out the back of a spigot at a 90 degree angle - e.g. from this , To this  However, when you screw the two all the way together, you'll end up with a (seemingly?) arbitrarily oriented elbow. That is, say for example a pipe was coming up from the bottom, but when you screwed the elbow to the spigot the elbow ended up pointing up, which wouldn't work. It would seem reasonable to be able to control the direction that you come out, How would you do this?


When I open gedit from terminal, I am unable to use terminal for anything else until I close gedit. Why?

I am VERY new to the world of Linux.  I'm running Ubuntu 15.04 on a Lenovo laptop.  My terminal emulator is Gnome Terminal.  I know a few things.  Let's say I type cd Documents/terminalpractice/python_folder.  I then type, for example, touch askubuntu.py.  I then use the command, gedit askubuntu.py.  At this point in time the text editor gedit will open up on my screen and I am free to attempt to code as much as I like.  However, in the terminal window, I guess the gedit "process" is running?  So I cannot use the terminal until I close out of gedit (I save and then click the 'X' in the top corner).  Why does this happen?  I can use the graphical interface to open the folders, double click on my askubuntu.py, and that will open in gedit, without affecting what is going on in the terminal.  I would like to know why  this happens.


I've been told that there are dangers in refreezing defrosted chicken as well as that it changes the taste and texture of the chicken. Is this the case?  I cook for myself but buy bulk - thus I often end up defrosting packs of chicken breasts, for example, in order the get them apart and take out one piece, and then refreezing the rest. I have never had any issues but I would like to know whether this is completely safe and/or whether the culinary quality of the meat gets altered. Also, are there any other issues to be aware of when defrosting and refreezing chicken (or other meat for that matter)?


Why is the "canonical momentum" for the Dirac equation not defined in terms of the "gauge covariant derivative"?

The  is always used to add an EM field to the Schrödinger/Pauli/Dirac equations. Why does one not use the ? As far as I can see, the difference is a factor i in front of the vector potential. I know I'm combining two seemingly unrelated things, but they seem very similar, an the covariant form seems much "better" with respect to the inherent gauge freedom in the EM field. I can also see that with the canonical momentum form, the equations remain unchanged after an EM and a QM (phase) gauge transformation. Suffice to say my field theory knowledge is not that impressive.


Read file from folder which is being written python

I have a folder which is being written continuously with files (from a Raspberry Pi). I want to run a Python code which will read files (and process them) from the same folder. I start the Python code after say 5 files have been written into the folder. But then the code stops after it has processed 5 files. Any suggestions as to how to "stream" the files from this dynamically updated folder into my Python code?   Thanks  I am using the following code and was wondering if there is another solution:  import os import time import numpy as np from PIL import Image import datetime  # get the data & time of an image output is str with format '%Y:%m:%d  %H:%M:%S' def get_date_taken(path):     return Image.open(path)._getexif()[36867]  # get the difference in time between two images in seconds def getTimeDiffBetwImages(path1,path2):     a1 = get_date_taken(path1)     a2 = get_date_taken(path2)     b1 = datetime.datetime.strptime(a1,'%Y:%m:%d %H:%M:%S')     b2 = datetime.datetime.strptime(a2,'%Y:%m:%d %H:%M:%S')     return (b1-b2).total_seconds()  def getDiffImgs(img1,img2):     a = img1.shape     diff = np.zeros((a[0],a[1],a[2]),dtype = "uint8")     for i in range(0,a[0]):         for j in range(0,a[1]):             for k in range(0,a[2]):                         diff[i,j,k] = abs(int(img2[i,j,k]) - int(img1[i,j,k]))     return diff  folder = "D:/work" file_num = 0 img_prev = [] last_file = None while True:     for f in os.listdir(folder):         path1 = os.path.join(folder,f)          if not(last_file == None):             path2 = os.path.join(folder,last_file)              time_diff = getTimeDiffBetwImages(path1,path2)         else:             time_diff = 0         if  time_diff >= 0:             print(f)                 im = cv2.imread(os.path.join(folder,f))             img_curr = np.copy(im)             fname = "Diff_" + f             if file_num > 0:                 diff = getDiffImgs(img_prev,img_curr)                 cv2.imwrite(fname,diff)             img_prev = np.copy(img_curr)             file_num += 1             time.sleep(10) # additional processing but just delay out here             last_file = f


Linux - Routing traffic with a fallback default gateway

I am trying to set up a fallback connection on a Linux machine that has access to two different routers on different subnets on running on the same network.  I have been reading several other posts related to this but am struggling to get it to work.  The setup is as follows:      Internet 1                 Internet 2           ^                          ^           |                          | --------------------     ------------------------ [Router 1: 10.1.1.1]     [Router 2: 192.168.2.10] --------------------     ------------------------           ^                          ^           |                          |            \                        /            --------------------------            [eth0              eth0:1]            [10.1.1.14   192.168.2.50]            [     linux machine      ]            --------------------------  In this example, eth0 is configured with DHCP, and eth0:1 is configured as a static IP.   I want to connect via the internet on the router at 192.168.2.10, but fall back to the router at 10.1.1.1 if 192.168.2.10 is unreachable.  According to some other posts I was reading, it seemed setting route metrics on the default routes should do the trick.  I ran the following on the linux machine and tested by unplugging the router at 192.168.2.10 to ensure that it would fallback to 10.1.1.1: ip route add default via 192.168.2.50 dev eth0 metric 100 ip route add default via 10.1.1.1 dev eth0 metric 200  Running a route -n showed: Destination     Gateway         Genmask         Flags Metric Ref    Use Iface 0.0.0.0         192.168.2.10    0.0.0.0         UG    100    0        0 eth0 0.0.0.0         10.1.1.1        0.0.0.0         UG    200    0        0 eth0 10.1.1.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0 192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0  But a simple ping to Google DNS failed.  Removing the 192.168.2.10 route allows it to work just fine. What am I missing, or am I interpreting the route metric wrong?  Is there a better way to do this? I have seen other cases where the routes are added to different tables, and then ip rules are setup for certain IPs to use different connections, but I want all connections to try to go out Router 2 but to go out Router 1 if Router 2 is down. Thanks!


Show URL used to edit responses from a Google Form in a Google Spreadsheet by using a script

I'm trying to make the edit URL for a Google Form automatically populate in the response Google Sheet that it's attached to. I've seen  already and want to use it, but I'm having issues trying to figure out where exactly to put the script.  I've tried putting it in the script editor in the Google Spreadsheet that I would like the URL to appear in, but I'm not sure where to go from there. In the script editor I've tried to test it as an add-on but that didn't end up working.  I have little experience with scripts and the script editor in Google Sheets. As a final note I am using one other add-on called AutoCrat in the same Google Spreadsheet.


I've been researching extension tubes for macro photography and I can't quite get a handle on how the length of the extension tube, combined with the actual lens (say the standard 18mm-55mm) will work.  I may not be able to explain this perfectly (since I'm confused about it) but hang with me...  So basically if you have the normal lens set to 18mm, and add an extension tube that's 21mm. What effect does this have?  I realize there's a point where the camera will not be able to focus if you match an extension tube of x-length with the regular lens of x-length. Can someone summarize this?  I apologize if this seems like a simple question and I have read up on it quite a bit already but I'm still confused about this part.   Any help appreciated.


Is there an updated solution for avidemux on Ubuntu 16.04

I saw this answer - , but the getdeb links seem to be broken or gone.  I also tried the appImage file for Linux here - , but it would not execute at all. (I did set the file properties to "executable".)  Also no results on Ubuntu package search.  So is there any currently available solution to run this on 16.04?


Should we be able to change our votes more freely on a meta site?

On a meta site, votes are intended to imply agreement with the question/answer. In contrast, votes are intended to imply quality, on the general site. Overall, when we cast a vote, we have a brief window to reverse or withdraw that vote. Once this window has passed, our votes are locked in, unless an edit is applied to that post.    This makes sense, in general. When we judge a post for it's quality, there is little reason1 to want to legitimately withdraw or reverse this vote, unless the post has had changes made to it. Without change, the quality of the answer is also unchanged.  In contrast, opinion does change. When I vote on meta, I am voicing agreement or disagreement with the post. I think it is a lot more plausible that this stance could change, without an edit to the original post.    . I asked a question regarding a particular tag that needed more clarity in it's usage. A user suggested an alternate to my own proposed solution, and I agreed that it was a better proposal. I deleted my original answer, and up-voted the new answer. Some time after, a user with more experience posted an alternate answer. With the clarity of the explanation provided in the new answer, I no longer agreed with the previous answer. However, I am still technically voicing agreement in the answer, as I can not undo my vote.  In some cases, this may appear as a "non-event". One vote should not make a difference. However, in cases where meta-usage is not as common, I feel it does make a significant impact on the overall view of the topic or suggestion.  I have previously been directed to simply perform an edit; I feel this is not a suitable option. Especially in certain cases where such edits would be semantic and questionable.    Can we have a bit more freedom in retracting and/or reversing votes in Meta?  It occurred to me that there might be further issues if this was implemented on the main meta site (i.e. this one), as reputation is awarded. I am asking specifically for site-specific meta, though I don't see why we couldn't discuss implementing this, here.  1


Author replaced with dash line in bibliography

I have referred in my thesis 4 abstracts from the same author:   @inproceedings{quantin2019exomars,   title={ExoMars at Oxia Planum, probing the aqueous-related Noachian environments},   author={Quantin-Nataf, C and Carter, J and Mandon, L and Balme, M and Fawdon, P and Davis, J and Thollot, P and Dehouck, E and Pan, L and Volat, M and others},   booktitle={Ninth International Conference on Mars Abstracts},   volume={6317},   year={2019} } @inproceedings{quantin2018unique,   title={The unique and diverse record of Noachian aqueous activity in Oxia Planum, Mars},   author={Quantin-Nataf, C and Thollot, P and Carter, J and Mandon, L and Dehouck, E},   booktitle={Lunar and Planetary Science Conference},   volume={49},   year={2018} } @inproceedings{quantin2016oxia,   title={Oxia Planum, the landing site for ExoMars 2018},   author={Quantin, C and Carter, J and Thollot, P and Broyer, J and Lozach, L and Davis, Joel and Grindrod, Peter and Pajola, M and Baratti, E and Rossato, S and others},   booktitle={47th Lunar and Planetary Science Conference Abstracts, Abstract},   volume={2863},   year={2016} } @article{quantin2015oxia,   title={Oxia Planum: a suitable landing site for ExoMars 2018 Rover},   author={Quantin, C and Carter, J and Thollot, P and Broyer, J and Lozach, L and Davis, Joel and Grindrod, Peter and Pajola, M and Baratti, E and Rossato, S and others},   journal={EPSC Abstracts},   volume={10},   pages={EPSC2015--704},   year={2015} }   In my main.tex file for the bibliography I inserted:  \documentclass[12pt,twoside]{report}  \usepackage[utf8]{inputenc}   ........  \usepackage[style=authoryear,sorting=nyt]{biblatex} \addbibresource{references.bib}  \begin{document}   .........  \printbibliography  \end{document}   In the end I have this result:   except for the dash line, there are not even in a year order.


I have sent a document to someone and I'd need to know if he has confirmed it.  I have written it as as follows, using two " if "s sequentially:     I would be very grateful to you (A) if you could confirm (B) if it’s   Ok for you.   Is it acceptable to use two if's sequentially, at points (A) and (B) in a sentence?  Edit According to the first comment, I edited my sentence as follows:     I would be very grateful to you if you could confirm whether all is right.   Any comment is appreciated.  Note: Concerning duplicate, I do not think so. Because, that mentioned question is about comparing “if” and “whether”, whereas, my question is about using two sequential “if”. My conclusion is that it would be better to use “whether” for the send one (at least in most of the cases.)


Error : 'javac' is not recognized as an internal or external command,

java program is not running on my windows 10 pc.  C:\Users\Antony>set path=C:\Program Files (x86)\Java\jre1.8.0_171\bin  C:\Users\Antony>cd Desktop  C:\Users\Antony\Desktop>javac helloworld.java 'javac' is not recognized as an internal or external command, operable program or batch file.  C:\Users\Antony\Desktop>  environment path =C:\Program Files (x86)\Java\jre1.8.0_171\bin   C:\Users\  java -version java version "1.8.0_171" Java(TM) SE Runtime Environment (build 1.8.0_171-b11) Java HotSpot(TM) Client VM (build 25.171-b11, mixed mode, sharing)   still showing same error


"The city was a thousand years a-building."  What does "a-building" (in building) modify in that sentence?


Apt-get update encounters errors with bad GPG keys

i have errors withing sudo apt-get update  W: GPG error: http://archive.ubuntu.com trusty Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>   i try this commands:  sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5   and this   cd /var/lib/apt sudo mv lists lists.old sudo mkdir -p lists/partial sudo apt-get update   but i still have the same problem


Ok so i am a bit of a noob in blender, so I need help with this.  I am trying to texture something, but there is no texture button where there should be, because the blender edge window cuts it off here's a picture


Which is the most reliable way to measure the performance speed of the methods in runtime in java

I want to measure the performance speed of my method in runtime execution but i am not sure if what i have done is really measured the performance of my method i want or is doing something else. If it is measuring the performance speed of my method than how reliable it is. The method which i want to measure performance speed is called FFMulFast and it calculates the multiplication of two polynomials part of Galois Field (256). Note : i will present only code which is relevant to my question.    public class GaloaField {   // some fields here       public int FFMulFast(int a, int b){    int t = 0;;    if (a == 0 || b == 0)    return 0;       /* The multiplication is done by using lookup tables. We have used both   logarithmic and exponential table for mul     * the idea is firstly look to Logarithmic table then add their powers and find the corresponding of this to exponential table */    t = (Log[(a & 0xff)] & 0xff) + (Log[(b & 0xff)] & 0xff);   if (t > 255) t = t - 255;   return Exp[(t & 0xff)];   }    //some other methods here       public void runABunch() { //method which will measure the performance speed of FFMulFast       long start = System.nanoTime();        int a=0x56;        int b=0xf4;        for (int i = 0; i < 5000000; i++)          FFMulFast(a,b);        long end = System.nanoTime();        System.out.println("Time: " + (end-start));    }      public static void main (String [] args) {      GaloaField galoa=new GaloaField();       galoa.runABunch();   }


How to set up forward/inverse searches with AUCTeX and Zathura

I haven't been able to find much on how to set up Zathura to work with AUCTeX/Emacs in terms of forward/inverse-searching.  Has anyone been successful in this?


Why does time change in Ubuntu after installing Windows

Today I was installing Windows 7 on the same computer I have Ubuntu. For some reason, after installing Windows 7 and going back to Ubuntu the time went from the correct hour at that moment, 12:30PM to 7:30AM. This happened after installing Windows 7. For what I understand the BIOS has a time set, Ubuntu has the same time that is shown in the BIOS when installing it. At least up to this point is what I have seen. Now after installing Windows 7 (And believe me this is only for testing the performance of Windows 7 against Ubuntu in which case Windows 7 is falling behind a lot on the same hardware) the time changes in Ubuntu to the wrong one that is set in Windows 7.  I actually do not change the time in Windows 7 since this is one of the checks I am doing to see if the operating system can correctly grab the time. Windows 7 fails. Ubuntu does not BUT Windows 7 actually changes the time for Ubuntu if I boot with it afterwards.  So my question is, why/how does time change in Ubuntu after installing Windows.  NOTE - I have set Ubuntu time to "manual" instead of grabbing it from the Internet just to test out this.


Definition of exponential function, single-valued or multi-valued?

If we define  $$e^z=1+z+\frac{z^2}{2!}+\cdots$$  then it is single-valued.  However, if we write  $$e^z=e^{z\ln e}$$  then it is multi-valued.  Besides, $a^z$ is multi-valued in general. It is kind of strange if only when the base is $e$ that it is single-valued.  My thought: Is it true that there are two exponential functions, let's call them $\exp(z)$ and $e^z$?  Where $\exp(z)$ is defined by  $$\exp(z)=1+z+\frac{z^2}{2!}+\cdots$$  and is single-valued, while $e^z$ is defined by  $$e^z = \text{exp}(z\ln e)$$  and is multi-valued?  Here $\ln z$ is defined by $\exp(\ln z)=z$ and is multi-valued.


In the movie Star Wars: Revenge of the Sith, I am wondering why Darth Sidious didn't detect Yoda's presence inside the Galactic Senate building until Yoda walked into his office and also as to why he was surprised by Yoda coming there. Darth Sidious was someone who liked to brag a lot about how he was able to foresee future events, so its a bit of mystery to me as to why he was surprised by Yoda coming there and also as to why he hadn't foreseen having such a huge battle with Yoda inside the Galactic Senate building. I think this was a mistake on the part of George Lucas. I think the way he should have written this scene in the movie is that Yoda walks into his office, takes out the two guards, Darth Sidious then turns his chair towards Yoda and says, "Master Yoda, you survived just like I had foreseen. You should not have come back here, I highly suggest that you surrender!" Yoda refuses and the two of them go on to battle just like it was shown in the movie. Why didn't Darth Sidious detect Yoda inside the Galactic Senate building before Yoda walked into his office?


Best tutorial learn bottom-up how to format biblatex-citations

After years with LaTeX, I need to take control over the output formatting of my citations in various projects. I've referred to the  as well as the otherwise excellent  but I'm looking for a more pedagogical less manual-like approach.  The web is full of hacks for specifics, but provides no overall systematic understanding of the rules that govern how .bib-files are turned into footnotes and bibliographies with dots, italics and what information from bib-files are included where. I would like to and never again feeling the need to google stuff like "remove initials in name in from footcite".  I don't want to be given a fish; I want to learn how to be a fisherman.  Does anyone know of a good book to read?


I have used some javascript codes in a mini website that I have designed.One of them is click on an image and the image changes. But this wouldn't work if a person who is visiting has disabled javascript in the browser settings. How do I check if the javascript is disabled? And how do I display a message saying enable javascript since this cannot be done using alert function?  It would be better if the explanation is based on php! Please help me!


I just saw the fan film  and the Force-sensitive bounty-hunter, Korbain Thor, wielded an ochre lightsaber (or at least that's what  described it as).   I'm just wondering if ochre is a canon color for a lightsaber?


I'm having an odd and inconsistent problem where certain inbox notifications are re-appearing within my inbox every few days, even though the date/time for the notification is a week, two weeks, a month, two months or even three months ago. Unfortunately my screenshot didn't take so I don't have a screenshot at this time. The messages I'm getting within the inbox that are repeating though are posts that have been migrated, moderator elections, and other non-answer related items.  Usually a page refresh or clicking on the inbox notification badge, opening the inbox dropdown, and clicking outside of the dropdown clears the messages out of the timeline. Yet every week or so they all re-appear again.    Update I finally was able to capture a screenshot. This was taken this morning at 8:06am. Even though I have an inbox notification of "7", you can see that the "newest" inbox notification dates from May 22nd and the other 6 "new" notifications are from as far back as Feb 2014.


How to move Ubuntu installation to new drive

I am running Ubuntu 13.04 on a 250 GB hdd. This HDD has developed bad sector and I received replaced drive from Manufacturer. I am also running a RAID1 using mdm.  I want to move the existing setup to new hard drive.  Can someone please give suggestions.   Thanks for your answers.  Cheers.


Can there be no 'a' between such and a noun?

When it comes to losing weight, a quick fix to would be nice, but we   know there’s no such [a] thing. ()   It sounds like there isn’t ‘a’ in the news. So I wonder if it be right when there is no ‘a’ after ‘such.’ Would it be okay?


Where to get transparent assets to create top view scenes?

I'm working for a client that really loves creating scenery using fern leaves, and flower petals and stuff like that for her product photography. I'm working on a website for her and on my proposal I'm thinking on adding small details like that to keep everything on brand. I've been looking all over and I can't seem to find a website to download or even buy this kind of assets, that would be normally used on mockups. Here's an image in case anyone's not familiar with what I mean   I know I could probably find some stock images and delete the background in Photoshop, but I imagine someone knows where to find exactly what I'm looking for. Also, most stock images are not, for example, a single fern leaf but a bunch of them, on on top of the other. Hopefully someone can help me! Cheers


How to do a curl POST command in flask python app

i work on a little flask app, which consists in searching docs with keywords (ElasticSSearch) and upload docs in cluster.  Searching docs works fine but upload is hard, i can do it with curl but i have some problems  My curl command is like:   curl -F "file=@pdf-test.pdf" "http://127.0.0.1:pdf-8080/fscrawler/_upload"   My html is:   <form id="uploadbanner" enctype="multipart/form-data" method="post" action="/">    <input id="fileupload" name="myfile" type="file" />    <input type="submit" value="submit" id="submit" /> </form>   in order to create upload button for the client.  I saw many topic about requests library, but my py code does not work, i really do not understand what i do wrong, and i am pretty lost.   I give you what i tried:   def upload(): url="http://127.0.0.1:8080/fscrawler/_upload"     if request.method == 'POST':         payload = open("test.pdf")          r = requests.post(url, data=payload)   Thanks for help, and have a good day :)


What does circled number means in right down corner of the system tray in Windows 10?

I have a number in system tray which is 7 in this picture:    What is it? If it is a number of some messages, then how to see them?  If I hover mouse it says    but I found no way to see these notifications.


How to determine what button was clicked in dynamically created elements and attach event on it

I have dynamically created element below. how can I attach an event on click when a button is clicked.  Ex: when button tag in ID item1 is clicked. I will get the h5 tag value. and so as item2 when button ID item2 is clicked will get the h5 tag on item2 value.  I try the ff. jquery but it return the h5 of all item1 and item2.  $('#Id').on('click','.myclass', function() {   var text = $(this).parent().text();   alert(text); });

Item1
      <button class="btn btn-primary">Download</button>

Item2
      <button class="btn btn-primary">Download</button>


How do you create an electric aura in blender?

Im trying to figure out how to create an electric aura of a simple shape (cube). Would anyone know how i could easily do this? Here is an example of what i'm talking about:  With sonic you can see electricity around him. I'm trying to figure out how i can do the same with a simple cube.


Retain HELP link in top bar when user has access to review queues

I recently had occasion to refer to the Help Center for a stack on which I did not have review queue privileges. On such stacks, the Help icon is next to the hamburger, as shown:    However, on a stack on which I do have review queue privileges, I wished to provide a new user with a link to the Help Center's on-topic page for the stack, to assist in explaining why I flagged the question as off-topic. I had to hunt around for the link to the Help Center at the bottom of the page, because where I have review queue privileges, there's no help center link on the top bar:    I believe that the Help Center link should remain available even if the user has review queue privileges.


Can I ignore coefficients for non-significant levels of factors in a linear model?

After seeking clarification about linear model coefficients  I have a follow up question concerning non-signficant (high p value) for coefficients of factor levels.  Example: If my linear model includes a factor with 10 levels, and only 3 of those levels have significant p values associated with them, when using the model to predict Y can I choose to not include the coefficient term if the subject falls in one of the non-signficant level?  More drastically, would it be wrong to lump the 7 non-significant levels into one level and re-analyze?


I want to include a table from another tex file before another table but this pushes the to another page. Do you have any solution to sidestep the problem?  Here is the code  \documentclass[english]{article} \usepackage{babel} \usepackage{graphicx} \usepackage{margin= 1.5 cm}[geometry]  \begin{document} \include{DS}  \begin{table}[!htpb] \centering \begin{tabular}{ccc} % ... \end{tabular} \end{table}  \end{document}   I tried scalebox to resize the second table but it didn't solve the problem.


Ubuntu 16.04 doesn't start anymore but only boots to grub terminal after system froze during sudo apt upgrade

Yesterday I wanted to update my 16.04 Xubuntu. When I ran sudo apt update && sudo apt upgrade (system wasn't able to complete the upgrade process), the system froze and I had to restart by force.  But now I cannot even start the system anymore. After each reboot, only the grub terminal is shown. I also cannot access the grub menu by pressing ESC key (my system is UEFI).  Do you have any suggestion how to fix this?


Can I claim English as my first language?

I consider myself to be fully bilingual. My mother tongue is Afrikaans and I went to Afrikaans schools, but I learned English as a toddler and was a fluent speaker by the time I went to school. I read my first (abridged) Dickens at age 10. My degree was presented only in English. My husband and I speak mostly English to each other, although I speak Afrikaans to my children. When I speak, read or write English I think in English. I more often have to translate words from English to Afrikaans than the other way around. Can I claim English to be my first language?


I am getting Error: Cannot import data from a newer release! while deploying siteDotCom from one sandbox to another sandbox. Version of source sandbox is 44 and target sandbox is 43.Could this be the reason for the error.  Below is the site-meta.xml file:  <?xml version="1.0" encoding="UTF-8"?> <SiteDotCom xmlns="http://soap.sforce.com/2006/04/metadata"> <label>testSite</label> <siteType>ChatterNetworkPicasso</siteType>


Why is there no std::string::trimfunction?

Why does C++ not have a trim function for strings? Why are we expected to write our own? Is there a reason that this hasn't been added in 2020?


Proof of identity involving product of binomial coefficients

I was playing around and came across the following identity: For $0 \leq i \leq l \leq d, \ 1\leq d$ with $l$ and $d$ fixed, we have, for each $i$, $$ \sum_{m=0}^i (-1)^{i-m}\binom{l-m}{l-i}\binom{d}{m} = \binom{d+i-l-1}{i}.$$ Maple experimentally confirms that this identity holds, and I tried (unsuccessfully) to prove it via induction on $i$. I have three questions:  Is there any nice (algebraic) proofs of this fact? Or other proofs}? (This has been answered). Are all of the assumptions $0 \leq i \leq l \leq d, \ d\leq 1$ necessary? I think removing the $d\leq 1$ condition is ok provided that you can say that $\binom{-1}{0}=1$, but I'm unsure if this definition is reasonable. Are there any references to this identity in the literature? And where can I find the identity $\sum_k \binom{r}{m+k}\binom{s}{n-k} = \binom{r+s}{m+n}$ which is used in the linked answer?  Edit: Here is my attempt so far: Clearly the statement holds for $i=0$. So suppose the statement holds for some $i$. For $i+1$, we have \begin{align*} & \sum_{m=0}^{i+1} (-1)^{i+1-m}\binom{l-m}{l-i-1}\binom{d}{m} = \sum_{m=0}^{i} (-1)^{i+1-m}\binom{l-m}{l-i-1}\binom{d}{m} + \binom{d}{i+1} \\  &= \sum_{m=0}^{i} (-1)^{i+1-m}\binom{d}{m}\bigg[\binom{l-m+1}{l-i}-\binom{l-m}{l-i}\bigg] + \binom{d}{i+1} \\  &= \sum_{m=0}^{i} (-1)^{i+1-m}\binom{d}{m}\binom{l-m+1}{l-i} - \sum_{m=0}^{i} (-1)^{i+1-m}\binom{d}{m}\binom{l-m}{l-i} + \binom{d}{i+1} \\  &= \sum_{m=0}^{i} (-1)^{i+1-m}\binom{d}{m}\binom{l-m+1}{l-i} + \sum_{m=0}^{i} (-1)^{i-m}\binom{d}{m}\binom{l-m}{l-i} + \binom{d}{i+1} \\  &= \sum_{m=0}^{i} (-1)^{i+1-m}\binom{d}{m}\binom{l-m+1}{l-i} + \binom{d+i-l-1}{i} + \binom{d}{i+1} \end{align*} where the last equality uses the induction hypothesis. Edit 2: Question 1 has been answered by the linked post. Any responses regarding questions 2 and 3?


How to fix this UV distortion on a face?

I am trying to UV map a model of some robot tracks, so that a texture with horizontal lines wraps evenly around it. However I am running into an issue whereby everything looks okay, except for the outer faces, where instead of the line traveling straight across to the other side, there is some kind distortion running diagonally across the face. I know this is related to the face being made up of 2 triangles but how do I go about fixing this?  Here is a screen shot of the issue:


Site hosted on EC2 / Amazon held hostage with private key

I have a new client whose previous developer has left her high & dry with her site on Amazon/EC2. He holds the private key to the instance, and though she has full access to the Amazon control panel (she's paying $300/mo for a site that has like 3 visitors per week) she doesn't have any way to get her content off and move to a new host.  I'm not familiar with AWS and am not sure how to help her. The site's group/file permissions are screwed up on the server so exporting the content/database via her WordPress control panel isn't working.  Any ideas on how to help her? Thanks!


Is it possible to cut the unit square in triangles of the same area such that one of the vertices has irrational coordinates?

This may be an easy question, although it stumped some of us over lunch. Consider the unit square and cut it up in several triangles, such that all the triangles have the same area. Is it possible that one triangle has a vertex with irrational coordinates (at least the abscissa or the ordinate, not necessarily both)?  This question was prompted by the theorem that in the cutting above, the number of triangles has to be even. The proof () uses that there exists an extension of the 2-adic valuation on $\mathbb{R}$, which follows from the axiom of choice. So we're wondering if it's necessary.


pdf reader for Windows which has night mode?

Looking for a pdf reader for Windows which has a night mode which is reading white text on black background. The closest I found is Adobe Reader with accessibility mode and high contrast but it has some text (like hyperlinks) in blue which was hard to read.  Any recommendations?


Should removing of tags from question Title be encouraged?

When some one edits a question which involves just removing tags in title, should it be considered as an Improvement of the question and be approved ? or can the edit be rejected as too minor ?


For example, the  filter sometimes returns an empty list of questions.   Sometimes it happens with newest, sometimes with no-answers tab. In a couple of minutes it returns to normal.


A finite ring without zero divisors is a division ring

Question: Let R be a finite ring without zero divisors and |R| > 1. Then show that R is a division ring. I used the following logic, but I'm not sure if this is correct. Let |R| = n, a finite number. $Let 0 \not = a \in R.$ Therefore, $a^n = a => a(a^{n-1} - 1) = 0 => a^{n-1} = 1 \,\,\, (\text{Since} \,\, a \not = 0)$ Therefore, $a a^{n-2} = 1$ Therefore $a^{n-2}$ is the inverse of a for all a. Therefore R is a division ring. Does this work?


Renaming Files and Directories Recursively using rename/find

I started learning linux on vmware using centos 7. I created an image directory and several layers of files and sub-directories in that folder. most of the names containing spaces. I want to use a single command to rename all the files and directories at once.   command i am using right now is  find . -type f -exec rename "find" "replace" {} \; & find . -type d -exec rename "find" "replace" {} \; Where as find is a space and replace is "-"(hiphen). I even tried below command looking at one of the answer in stack exchange.  find . -iname "find" -exec rename "find" "replace" {} \;


View position in DBGrid when scrolling in Delphi

I have a DBGrid on a form.  The DBGrid has many columns, so an horizontal scroller is displayed.  I scroll the DBGrid view to the right to see more columns.  If I select a row, the DBGrid view is automatically reset to view the first column (As if I scroll back to the left most position).     Is there a way to prevent that?


MacVim -- how to make Ctrl+A go to beginning of line, Ctrl+E to the end of the line

I'm trying to switch to MacVim as my main editor, and I'm liking it so far, except for one issue:  I got really used to the Mac shortcuts control-A to go to the beginning of a line, and control-E to go to the end of a line.  However, these two don't work in MacVim (control-A does something weird -- it seems to increase the last number in a line by 1 or something, and control-E seems to scroll down the screen by one line).  Any way to make these two shortcuts go to the beginning of a line / end of a line respectively instead?


How to give an example of a $f$ differentiable in a deleted neighborhood of $x_0$ such that $\lim_{x\to x_0}f^\prime(x)$ doesn't exist?

How would I give a simple example of a function $f$ differentiable in a deleted neighborhood of $x_0$ such that $\lim_{x\to x_0}f^\prime(x)$ does not exist? I cannot seem to think of an example.  A delete neighborhood is an open interval about $x_0$ which does not contain $x_0$. So, $(x_0-\delta,x_0+\delta)-\{x_0\}$ for some $\delta>0$.  How would something be differentiable in a deleted neighborhood if at the point of the derivative, the limit does not exist. Presumably, the derivative ends up looking something like $\lim_{x\to x_0} \dfrac{1}{x}$, if it does not exist.


I understand why stars have absorption lines, but I am not entirely sure why they don't have emission lines. Wouldn't the gas on the surface of the stars be hot enough to at least give off some emission?


Pointwise convergence of $h_n(x) = x^{1+\frac{1}{2n-1}}$

Okay, maybe I'm missing something obvious but consider $h_n(x) = x^{ 1+ \frac{1}{2n-1}}$ on the set $[-1,1]$. Now consider a fixed $x \in [-1,1]$, we have:  $$\lim_{n\rightarrow \infty} h_n(x) = x \lim_{n \rightarrow \infty} x^\frac{1}{2n-1} = x$$  But my book says it's $|x|$? Why?


How can I express the NOT in terms of AND, XOR, XNOR

I need to figure out how to express the NOT operator in terms of the operators AND, XOR, XNOR.  I need to show that this set is functionally complete, which I'm trying to do by showing that I can represent NOT and OR, a known complete set. But I have no idea where to begin when it comes to representing a unary operator (NOT) using binary operators.  EDIT: I figured it out. NOT A=(A XNOR A) XOR A


Beamer presentation with itemize exceed text capacity

\documentclass[11pt]{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{enumitem}  \usetheme{default}  \begin{document}  \begin{frame}     \frametitle{Tactics used for career advancement}     \begin{enumerate}         \item Consistently exceed performance expectations     \end{enumerate}  \end{frame}  \end{document}      TeX capacity exceeded, sorry [input stack size=5000]. \end{frame}   Removing the enumitem package fixes the problem, but in the real life I need that package to remove the left margin. In the real document I use: \begin{enumerate}[leftmargin=0cm]


Is there any advantage to joining one team over another?

I have an option to join one of 3 teams. My initial thought was to join the color team I liked best, but is there any advantage to joining one team over the another? For example, do I get different rewards when leveling up or anything?


In what order should the subjects be studied in order to get to String Theory

I know:    Quantum Mechanics (Griffiths Level, currently doing Sakurai Level) Mechanics (Newtonian+ Lagrangian/Hamiltonian but at level lower than Goldstein/Landau) Classical Electrodynamics (Griffiths + electro/magnetostatics from Jackson) Statistical Physics (Pathria)   I know very little relativity from undergrad mechanics class. Nothing about General Relativity, nothing about QFT, etc. I wish to reach string theory in a proper way without leaving any gaping holes in my education. What subjects should be studied in what order?


facing difficulty to create dynamic xpath for City field of UTest website

I am beginner in automation field, I am trying to automated one of the module, I have tried many different XPATH to fetch proper XPATH for City field o UTest site. Im trying to automate registration module as one of my assignment. I have tried my different xpath example below:  //xpath="//body/div[@class='pac-container pac-logo']/div/span[2]/span" //div[@class='pac-item']/span[3] //div[@class='pac-item']/span //div[@class='pac-container pac-logo']/div/span[2]/../span[3]   the following code written:  //xpath to send data in field @FindBy(xpath="//input[@placeholder='Enter a location']") WebElement city;  //xpath for list to appear @FindBy(xpath="div[@class='pac-item']/span") List<WebElement> City;  public void EnterSignupTwo(String CiTy) throws Exception {     city.clear();     city.sendKeys(CiTy);     Thread.sleep(3000);     System.out.println("the size of List " +City.size());//printing list size      for(int i=0; i<City.size(); i++ ) {         String cities = City.get(i).getText(); //storing list element in String         System.out.println("Converted value of city :"+cities); //print of total list      if(cities.contains(CiTy)) //if parameterized match with Available then click     {         System.out.println("enter specific value of city :"+City.get(i).getText());         City.get(i).click();         break;     } }   kindly refer the


Is $y=\frac{x^2}{x^3+3}$ has a horizontal asymptote? Since the graph passes through $(0,0)$, hence $y=0$ is not a horizontal asymptote. Can a rational function may not have a horizontal asymptote?


Magic the gathering changing creature types

So me and a couple friends were playing a hand of MTG. While doing so, I played a card called  which has the ability     Whenever an Angel enters the battlefield under your control, you gain 1 life.   While playing an Angel card, however, one of the friend's used an ability to change the Angel's creature type to none at all during its casting. However the card reads Target creature. Does this imply that the Angel has to be in play before the creature type is changed? Because if you use it as an instant, it takes place before the angel is ever cast as per the "last played first to resolve" rule, so the angel won't technically even exist before the type is changed to nothing, therefore I believe it to be an illegal target for the creatures ability to change a creature type to none. I need to know the exact ruling if this is a legal move or if someone owes me an apology


Removing the BIOS passwords on a Fujitsu LifeBook T4210?

Buying laptops on police and government auctions is a real pain when they don't remove passwords.  On boot, over the Fujitsu logo, I get a Windows XP 'basic' theme style password window. Entering three wrong passwords results in a continuous beep that can only be stopped by removing the battery.  It did have a problem with the fan, and while it had that it would stop to complain about it and I could try to get to BIOS setup, where it would ask for a password with the typical text-gui type box. Can't seem to get to that now.  It would also give me the option to continue, where it would pop up the HDD password box. In either of those, three wrong tries and it would beep.  I never get any sort of 'secret code'.  This is a Fujitsu laptop, not a Fujitsu-Siemens.


Creating two rasters with the coordinates as cell values

I have data that is related to its latitude and longitude (Northing/Easting). I am trying to create two rasters where the cell values are the UTM northings and UTM Eastings.   I am unsure how to populate those values to the cells in a raster.   Any ideas on how this could be accomplished?


How to show convergence and evaluate $\sum\limits_{n=0}^{\infty} \frac{n}{(n+1)!}$

I try to evaluate series ${n\over(n+1)!}$ obviously the term $s_n = {n\over (n+1)!} = {1\over (n-1)! (n+1)}$ converges, which has a limit = $0$ when $n\to \infty$ .Then I was stuck and I don't know how to sum this series and whether it converges.


Let $\phi: R \to S$ be a surjective homomorphism. Prove that $\frac{R/ \ker \phi}{(\ker \phi + J)/ \ker \phi} \cong \frac{S}{\phi(J)}$ for an ideal $J$ of $R.$  Obviously, $S \cong R/ \ker \phi$(first isomorphism theorem) and $\phi(J)$ is an ideal of $S$, since $\phi$ is surjective( $\forall s \in \phi(J), s = \phi(j)$ for some $j \in J, \forall s' \in S, s' = \phi(r)$ for some $r \in R$, so $ss' = \phi(j)\phi(r) = \phi(jr) \in \phi(J)$, and $ss' = \phi(r)\phi(j) = \phi(rj) \in \phi(J)$ ).  However, I'm having trouble with going on. If it's important, I mean a unitary ring by a ring.


How can I write a big $\oplus$ sign? I've been experimenting with lots of different things like $Oplus$, but nothing is working.


Python - by value and by reference function arguments

Sorry if the title is not accurate, not sure how to name it properly. the question is. If I do this code:  num = 1  def test_func2(arg):     arg = 10  test_func2(num) print(num)   The num will obviously stay 1 But if I do similar thing with objects  class TestClass:      def __init__(self):         self.one = 1         self.two = 2   test_obj = TestClass()   def test_func(arg):     arg.one = 10  test_func(test_obj) print(test_obj.one)   The value of test_obj.one will change to 10. Why are integers passed by value and user defined objects by reference?


should you install specific drivers from your motherboard / video card manufacturer, or let Windows do the job?

I have a computer which is working fine after a windows re-install.  However, I did not install any drivers at all, they seem to have been installed via Windows Update.  Back then, I remember I had to download the latest drivers from the motherboard manufacturer, video-card manufacturer, etc.  Is this still valid?  Should I download the latest drivers from the manufacturers, or are the drivers available via Windows update enough?  I am running Windows 8.1.


12.04 LTS 64 bits does not boot from HDD

I installed 12.04 LTS 64 bits from a USB drive, but I can't seem to boot from the HDD. I have a single partition, with no other OSes. I need to plug in the USB drive for the PC to boot Ubuntu. Is my install OK?


Is there a program like Microsoft Paint?

Greetings, I'm slowly getting used to Ubuntu; for I've been a Windows user as long as I've used any computer. I'm hoping someone can suggest a good graphics software.    I'm simply looking for one that works close to Microsoft Paint. Does Ubuntu offer anything like it?


So when I create a new account using gmail on a site while looking at a question, I get redirected back.  However, it seems that using the stackexchange login is bugged. Even if I'm looking at a question, it redirects me to the home page.  This is shown in the address bar.


How to Show Different Menus to Logged in Users in WordPress

how to write code for this requirement and i want to show menus only in header menu with different menus to logged users


What's the difference between `==` and `is`?

i am confused with the usage of == and is.  default_netrc = file is None if file is None:     try:         file = os.path.join(os.environ['HOME'], ".netrc")     except KeyError:         raise IOError("Could not find .netrc: $HOME is not set")   Here is the code snap.  Is this line default_netrc = file is None is equal default_netrc = file == None?  when compare with None, should we use is or ==?


What should I do if a user posts sensitive information as part of a question or answer?

I've observed several incidents where users inadvertently posted detailed, sensitive information. For example, a Server Fault user who posted a question with working login credentials to his actual production server, or the Stack Overflow user who posted actual medical records as example data for his question.   What should be the procedure for handling such cases?


Why is the P value from a binomial test sometimes not consistent with the confidence interval of the proportion?

The results below don't really make sense. According to the p-value I should reject $H_0$, however, confidence interval contains the null value that I'm supposed to reject. Any ideas what's going on?  binom.test(51,235,(1/6),alternative="two.sided")  Exact binomial test  data:  51 and 235 number of successes = 51, number of trials = 235, p-value = 0.04375 alternative hypothesis: true probability of success is not equal to 0.1666667 95 percent confidence interval:  0.1660633 0.2752684 sample estimates: probability of success           0.2170213


Ubuntu 18.04 (Bionic) Server Unmet dependencies "are not going to be installed"

I'm trying to spruce up my newly developed server (see details in subject above) by installing things like python, etc. WiFi access = Yes. Successfully pinged some websites and apt-get update works after a fiasco at    However, any package I try to install meets with unresolved dependencies.  It suggests running apt --fix-broken install with no packages (or specify a solution) but when I do it says You are about to do something potentially harmful.  I don't want to do anything harmful to my server so I opted not to override any critical packages.  So, I'm a bit stuck; how do I update critical packages like libc6, libidn2-0, and libnl-3-200 if the versions are in generally NEWER than required (installed packages manually with a flash drive b/c I didn't have WiFi connectivity at first) (yes, it's complaining about packages that are "too new"), WITHOUT destroying the compiler?  I realize this is a bit confusing so I can output further information if requested. Apologies; I don't know what is critical information at this stage as I am a bit new to Ubuntu Server. Also, if anyone has a good way to transfer bash output from one machine to another without verbatim copying it by typing manually that would be mega-convenient, but also not necessary.  Many thanks,  Mike    Update: Package dependencies / version incompatibilities resolved, but WiFi is down again. (See ).


Why should I encapsulate objects in using if there is garbage collection

I was searching this on the internet and with no success. So hopefully someone here can answer me this because I don't understand the point of it.   Is it just good practice or it actually does something? Why should I bother if .NET has very good garbage collector?   Example  In this example I will use super-simple data-annotation validation filter. What is the benefit of encapsulating my data context in using?  public static ValidationResult ValidateUniqueUsername(string username, object context) {     using (var db = new MainDataContext()) // What's the point?     {         var user = db.Users.SingleOrDefault(x => x.Username == username);          if (user == null) return ValidationResult.Success;         return new ValidationResult("Username already taken");     } }


Cameras can show a graph divided by 3 vertical lines. What does this graph describe about the picture, and how can I learn how to read it?


I've been using Blender for less than a week, so please have mercy ;)  I'm trying to model this simple weigh boat.     I started with a plane and a circle, solidified the plane, added inset and edge loop, and then created new faces connecting all 16 vertices of the circle to various vertices of the square- each face has 3 or 4 edges.     The problem is that when I turn on the Subdivision Surface modifier, my square object is converted into higher-order geometry (octagon, etc.).     How do I smooth the low-poly construct without changing the number of edges? I have a feeling this would involve edge loops but I can't figure out where to put them.


Why are diamond shapes forming from these evenly-spaced lines?

Not sure if this is where I should be posting something like this, but here goes. I wrote a small program today that maps 512 evenly-spaced points on the edge of a circle, and then, iterating over each point, draws a line from the center to that point on the edge. Also this image is drawn on a canvas that is 500x500 pixels in size. The result is the image below, and where my question arises  What's curious about this image to me is that there are these little diamonds that are appearing at various points in the circle. Is there an explanation as to why these shapes are being produced?


How to vertically center  inside the parent element with CSS?

I'm trying to make a small username and password input box.  I would like to ask, how do you vertically align a div?  What I have is:

Username
Password

    <form action="" method="post">       <input type="text" border="0">
       <input type="password" border="0">    </form>

   How can I make the div with id Username and Form to vertically align itself to the center? I've tried to put:  vertical-align: middle;   in CSS for the div with id Login, but it doesn't seem to work. Any help would be appreciated.


Is it possible to substring an environment variable in a windows 7 shortcut?

If I have an environment variable in Windows such as %username% if there any way I can  that?  I'd like to  it down to the first 8 characters.


How to follow up the result of postdoc committee?

I have been accepted for postdoc position at university A. In the meanwhile, I applied for postdoc in university B, and I am waiting to hear from them.  I would like to write a follow-up email to my potential mentor at university B asking about the decision of their committee, because I need to finalize my decision about the job at university A. How can I express my situation in a polite email to university B?


Derivation of the Infinitesimal Translation Operator

$$J(d \vec x') = \left(1 - \frac{i \vec p \cdot d \vec x'}{\hbar}\right)$$  This is the infinitesimal translation operator, as defined on p. 46 of Modern Quantum Mechanics by Sakurai & Napolitano.   How is this equation derived?  In particular, I am wondering why it is necessary for this operator to have an imaginary number.


I'm currently want to install an application to draw  electric diagrams but I do not succeed. I want to know if these applications exist for ubuntu, and if so, how to do to install?


How i can find the fourier transform of $\frac{\sinh(ax)}{\sinh(\pi x)}$ where,$ |a| < \pi$

Using a rectangular contour in the complex plane, bypassing the poles at $z=0$ and $z=i$, i got $$\int_{-\infty}^{+\infty}\frac{\sinh(ax)e^{ikx}}{\sinh(\pi x)}dx - e^{-k}\int_{-\infty}^{+\infty}\frac{\sinh[a(x+i)]e^{ikx}}{\sinh(\pi x)}dx = \sin(a)e^{-k}$$  and now?


As$\ n \to \infty$, how does a product over the primes less than$\ p_n$ equal the same product over the primes less than$\ n$?

How is$$\ \lim_{x\to \infty} \log \log x \prod_{i< \log x} \frac{p_i -1}{p_i}= \\ \lim_{x\to \infty} \log \log x \prod_{p < \log x}_{p prime} \frac{p-1}{p}$$?


Timing an insertion sort of different lenghts with System.nanoTime()

I have some code, in Java, to time the average of 10 tries of an insertion sort. It sorts the same array but up to 100 words, 200 words etc. up until the full lenght of on array. The code below is for 100 and 200 words respectively but it all looks the same with just the variables changed.  However every next average time seems to get shorter and shorter. Eg. 9658233ns for 100 words, 4273459ns for 200 words, 3716726ns for 300 words, 2965091ns for 400 words and 2842528ns for 459 words. However if I inverse the order, sorting through whole array first and array of 100 words last, it takes the longest amount of time to sort through the full array and shortest amount of time to sort through the array of 100 words.  Would using a different way to time the insertion sort lead me to more consistent results?      long i1AverageTime = 0L;     for (int i = 0; i < 10; i++) {         long start = System.nanoTime();         insertionSort(myArray, 100);         long end = System.nanoTime();         long timeTaken = end - start;         i1AverageTime += timeTaken;     }     i1AverageTime /= 10;      long i2AverageTime = 0L;     for (int i = 0; i < 10; i++) {         long start = System.nanoTime();         insertionSort(myArray, 200);         long end = System.nanoTime();         long timeTaken = end - start;         i2AverageTime += timeTaken;     }     i2AverageTime /= 10;


Standard user is able to use other logged in user credentials to access Samba shares Ubuntu 14.04

I have multiple user accounts on my Ubuntu Desktop 14.04 install. I have my a Samba share mounted under my administrator account using Nautilus (Ctrl+L) using credentials (smb://user@server/share). I switched to a standard user account and performed the same operation except without credentials (smb://server/share) and I was able to access everything that the administrator account had access to. Is this a bug or a configuration mistake?  Samba Configuration:  [global]    workgroup = WORKGROUP      admin users = nick      log level = all:2      inherit permissions = yes      inherit acls = yes      map acl inherit = yes      server string = %h      dns proxy = no      name resolve order = lmhosts host wins bcast      interfaces = eth0      bind interfaces only = yes      log file = /var/log/samba/log.%m      max log size = 1000      syslog = 0      panic action = /usr/share/samba/panic-action %d      security = user      encrypt passwords = true      passdb backend = tdbsam      obey pam restrictions = yes      unix password sync = yes      passwd program = /usr/bin/passwd %u      passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully*      pam password change = yes      map to guest = bad user      socket options = TCP_NODELAY      usershare allow guests = no    include = /etc/samba/shares.conf  [printers]      comment = All Printers      browseable = yes      path = /var/spool/samba      printable = yes      guest ok = yes      read only = yes      create mask = 0700    [print$]      comment = Printer Drivers      path = /var/lib/samba/printers      browseable = yes      read only = yes      guest ok = yes     Shares Conf:  [Home]    comment = Home Directory      path = /home      guest ok = no      browseable = no      writeable = yes      inherit owner = yes      inherit permissions = yes      valid users = nick,brittany    [Shares]    comment = Default shares      path = /shares      guest ok = yes      browseable = yes      writeable = yes      inherit acls = yes      inherit permissions = no      hide unreadable = yes      directory mask = 755      force directory mode = 1750      force directory security mode = 700      create mask = 755      force create mode = 1750      force security mode = 700      security mask = 077      directory security mask = 077


I have a 30A 5-30V Single Brushed DC motor driver that will be used with a 12V 30A gear motor.  I have a MegaWatt 36 Amp 12 Volt 13.8V DC Regulated Power Supply that I wanted to use for the driver pwr source. But, I just realized the driver docs say to ALWAYS use a battery as a power source if an inductive load is used.  The docs say that a battery must be used in parallel with the power supply to protect the driver against possible flowback when the motor is stopped.   My question is: can I use a 12V car battery, and simply wire the power supply and motor driver to it, then set pwr supply output to 13.5V? The pwr supply would always remain ON.


How to combine continuous and discrete variables for bayesian network?

Basically the title says the question. I have a data set with both types of variables and AFAIK bayesian networks are constructed for discrete variables. Is it possible to somehow use them together?


Why is it required to use a "fresh name/variable"? And because of that requirement, Existential instantiation always precedes universal instantiation. What I am thinking is, If we are picking elements at random from our universe of discourse then why can't universal instantiation pick that random element first before existential instantiation does? I would understand the rule that we cannot existentially instantiate more than one element(which will need more than one name/variable) because we can never be sure there is more than one, but the reason EI precedes UI in picking a random element eludes me.  let's say we pick an object "a" for EI then use that same "a" for UI. when we picked "a" from the universe, its properties does not change even if we universally instantiate first or existentially instantiate first.


Distribution of multivariate Gaussian conditional on value of linear function

Given a Gaussian random vector $X \in \mathbf{R}^p \sim \mathcal{N}(\boldsymbol\mu, \boldsymbol\Sigma)$, a matrix $\mathbf{K} \in \mathbf{R}^{q \times p}$, and a vector $y \in \mathbf{R}^q$, I'd like to find the distribution of $\tilde X = (X \mid \boldsymbol{K} X = y)$ while assuming that $\operatorname{rank}(\boldsymbol\Sigma) = p$ and $\operatorname{rank}(\boldsymbol{K}) \le q < p$. Ideally without having to (psuedo-)invert any singular matrices.


Do you recommend using semicolons after every statement in JavaScript?

In many situations, JavaScript parsers will insert semicolons for you if you leave them out. My question is, do you leave them out?  If you're unfamiliar with the rules, there's a description of semicolon insertion on the . Here's the key point:     If the first through the nth tokens of a JavaScript program form are grammatically valid but the first through the n+1st tokens are not and there is a line break between the nth tokens and the n+1st tokens, then the parser tries to parse the program again after inserting a virtual semicolon token between the nth and the n+1st tokens.   That description may be incomplete, because it doesn't explain @Dreas's example. Anybody have a link to the complete rules, or see why the example gets a semicolon? (I tried it in JScript.NET.)   is related, but only talks about a specific scenario.


How do I get the Logitech wingman formula force to work in Windows 7?

How can I make the Logitech Wingman Formula Force steering wheel work in Vista and 64 bit Windows 7?


Why does our body exhibit bilateral symmetry?

Externally, we (humans) look symmetrical. However, internal organs don't show the same patterns of symmetry (heart being on the left side while the liver is on the right side, etc.). It is a bit counter-intuitive to me that the exterior of our body seems to be mainly symmetrical while the interior is asymmetrical.   What is the advantage of having bilateral symmetry in our body? Why don't all of our organs exhibit bilateral symmetry?


$R$ integral domain where every prime ideal is principal then set of non-principal ideals has maximal element

Let $R$ be an integral domain and suppose that every prime ideal in $R$ is principal. Assume that the set of ideals of $R$ that are not principal is nonempty and prove that this set has a maximal element under inclusion. (Use Zorn's Lemma.)  Let $A$ denote the set of all nonprincipal ideals of $R$. I know that $A$ is a collection of sets, so it is partially ordered by set inclusion. I want to say that $A$ has a chain $\{C_\alpha\}_{\alpha\in B}$, where $B$ is an index set, but I want to know why I can say that a chain exists in this case.  I know that every ideal $I\in A$ is nonprincipal, so $I$ is generated by at least two elements. Also, $I$ cannot be prime. Thus, if $ab \in I$, where $a,b \in R$, then $a \notin I$ and $b \notin I$. Would this help me form a chain?  Thank you in advance.