Clean Ubuntu Install with Nvidia stuck on login screen, login loop

I'm a new Ubuntu user trying a first install.  I've just built a PC and everything went smooth right up until the Ubuntu login screen.  I am prompted to type in my password, I do, and nothing happens.  It goes right back to the login screen.  If I type in a wrong password it informs me the password is incorrect.   When the password is correct nothing happens.  Thanks for any help you can provide.  This is my first PC build and attempt at any type of linux.


I have a NTFS drive that I was editing on my Mac.  I have Paragon 9 that allows me to edit NTFS.  When I was moving or deleting a folder with two files in it, something got messed up and I cannot delete the files.  When I try to do it from Terminal, I get   rm:1.m4v: Input/ouput error rm:2.m4v: Operation not permitted  rm:MyDir: Directory not empty   On my Windows 8 VM on the same machine, if I try to just delete the folder or the individual items, I get Item Not Found.  Could not find this item, verify the item's location and try again.    If I dir from that directory, I get  <DIR> . <DIR .. The parameter is incorrect. (Heart Symbol`) 1.m4v 2.m4v 1 File(s) 0 bytes 3 Dir(s)   If I try del or rmdir /s I get the system cannot find the file specified.


Choose production bug happening on turn 0

This bug is completely irritating, because on turn 0 when I play as Rome, I can move my units around perfectly fine, but when I try to choose production it just hovers over my city, and does nothing, I tried reloading it, to no avail. I tried what the people at 2k recommended and it didn't work. How can I fix this?


Does the sun have nonzero electric charge?

The sun is a star, meaning it's a ball of gas undergoing nuclear fusion in its core. The sun, like any other star, experiences line-driven stellar winds due to the transport of ions from its interior which, as I understand it, are amplified by the magnetic field of the sun (since the magnetic fields provide a longer lever arm to carry away the ions that compose winds).      Does the sun have an overall nonzero net electric charge?   In such a dynamic system, I would expect that the sun would have a nonzero net electric charge since the winds are carrying away charged particles so there is a net out-going of charge.      If the sun does have a net charge, are there processes that work to   return its net charge to zero?   Or am I simply wrong in thinking that the particles that compose the wind are charged themselves? Are they themselves neutral particles (afterall, they are atoms)? If so, are there other reasons why the sun would have a net charge?  I've read  post, but found the only answer unsatisfying since it relies on the idea that electrons are "easier" to transport via stellar winds than protons, but we're talking about heavy nuclei (i.e. carbon, nitrogen, oxygen) that have more momentum than electrons for a given wind velocity.


Why is ubuntu 20.04 slow in a dual boot system with Windows 10?

I have installed Ubuntu 20.04 alongside Windows 10 (dual boot). I did it by installing Ubuntu on a USB and then I installed Ubuntu from the USB. I have already done it for my old pc and, in that case, both the Operating Systems worked perfectly (was it just the begginner's luck?) ! In this latest case (my new pc), instead, Ubuntu is really slow and I do not understand why ! When I say that Ubuntu is slow, I mean that everything is slow: if I open the broswer web, if I open applications like RStudio, Spyder etc... If I do all these things too fast together, it crashes ! Is it maybe due to the characteristics of the pc ? What can I do to fix this issue ? I have also to say that I have installed also xubuntu (for a mistake... I did not remember how it happened). Also this fact could be a source of slowness ? Below are the infromation about my pc:  RAM: 4,00 GB (3,83 usable) CPU: Intel(R) Celeron(R) N4000 CPU @ 1.10GHz   1.10 GHz System type: 64-bit operating system x64-based processor Card name: Intel(R) UHD Graphics 600  Sorry if I am not very precise in the description but I do these things without a deep consciousness and knowledge. Thank you in advance !


404 "failed to fetch" error with repositories when running software updater

when running Software Updater from my Ubuntu 14.04 Desktop install, I get the following errors:  W:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/-sc)/binary-i386/Packages  404  Not Found [IP: 91.189.88.153 80],  W:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/$(lsb_release/universe/binary-i386/Packages  404  Not Found [IP: 91.189.88.153 80], W:Failed to fetch http://it.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-i386/Packages  Hash Sum mismatch,  W:Failed to fetch http://it.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-i386/Packages  Hash Sum mismatch   How may I fix this? Thank you. Regards


The yellow line is where it wants to create the loop cut. I'd like to have it go around the torso. I've tried another method with edge slide, but it didn't work because it made spikes to where the vertices were with a subdivision modifier.


I think how I did it was that I did $B (B -5I) = -I$ and then divided both sides by $-1$ to get $B (-B+5BI) = I$ and then said $(-B+5I) = B^{-1}$.   Is this correct or is there a better way of doing it/answer?


Decision between storing lookup table id's or pure data

I find this comes up a lot, and I'm not sure the best way to approach it.   The question I have is how to make the decision between using foreign keys to lookup tables, or using lookup table values directly in the tables requesting it, avoiding the lookup table relationship completely.  Points to keep in mind:   With the second method you would need to do mass updates to all records referencing the data if it is changed in the lookup table. This is focused more towards tables that have a lot of the column's referencing many lookup tables.Therefore lots of foreign keys means a lot of joins every time you query the table. This data would be coming from drop down lists which would be pulled from the lookup tables. In order to match up data when reloading, the values need to be in the existing list (related to the first point).   Is there a best practice here, or any key points to consider?


I am really new to coding, but I am trying to make a snake game using JavaScript (which may or may not be too advanced for my skill set considering I am having problems with this, but I am going to try lol). Anyways, I am trying to center a container on a page that will stay centered (without growing or shrinking in size no matter the window size). I need the container to stay 300px in width and centered in the middle of a page, but just grow and shrink itslef along with the words/buttons inside it (while keeping them on the same line) no matter the window size. I tried to use the align and justify methods with flexbox, but they do not necessarily work when I set the container width to 300px. I googled possible solutions and tried the padding thing using vh. Setting the padding to 30vh works for the top and bottom of the container, but the left and right sides of the container still stretch and shrink when I drag and adjust the window size. I am sure there is a simple solution to this (or maybe what I want is actually really complex), but I just can not find something that works. Any ideas?

Snake Game

Developed By Herman Thomas IV
     <button type="button" class="btn btn-success">PLAY!</button>
      body {     background: linear-gradient(to right bottom, blue, red);     height: 100vh;     padding: 30vh; }  .container {     position: relative;     background: white;     max-width: 300px;     border: 1px solid black;     text-align: center;  }


Limit of a strange sequence $a_{n} = a_{[n/2]} + a_{[n/3]} + a_{[n/6]}$

Recently I came across this problem :     If $a_{0} = 1$ and $a_{n} = a_{[n/2]} + a_{[n/3]} + a_{[n/6]}$ where $[x]$ denotes the greatest integer not exceeding $x$ then show that $$\lim_{n \to \infty}\dfrac{a_{n}}{n} = \frac{12}{\log 432}$$   The recurrence relation is very strange and seems to be multiplicative (has terms like $a_{[n/2]}$) instead of being additive (having terms like $a_{n - 1}$ etc) and I wonder how such a recurrence can be solved. Any suggestions are welcome!


Any good free materials libraries online?

I'm wondering if there's any addons or online libraries of materials I can download. I've found one called , but then discovered it was from 2008 and thought by now something like that might already be integrated into Blender.


Are there graphing techniques (certain kinds of plots) that are similar to the Edward Tufte's box plots - shown below - but that consider the distribution of the data points?    But instead of a black line traveling vertically, I want a colored line (say red) where the intensity of the redness changes in relation to the frequency of data points at the location.  What I am picturing exactly is a vertical red line that does from 1% to 99%, with horizontal grey lines at 25% and and 75%, a black line at the median, with the color intensity of the vertical red line changing with respect to the number of times each data point along the vertical location was measured.  Any ideas?  Thanks, Tom


how to find out what shortcut is used for a application by start command in cmd windows?

How does application (any) make its shortcut for launch in installation? For example c:\>start calc will launch windows calculator, but I have no idea where is located the executable calc.exe and how did the application make a shortcut for it (so it could be used as a argument to start command). Another example c:\>start gcc foo.c will trigger the gcc compiler (installed from mingw), but how does start command know where to find its executable? I know the cmd.exe will look in %PATH%, which in my case is C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Users\ppast\AppData\Local\Microsoft\WindowsApps;C:\Users\ppast\.dotnet\tools;C:\Users\ppast\OneDrive\Plocha\scripts; But for example - if I trigger c:\windows\system32> cl foo.c gives: 'cl' is not recognized as an internal or external command, operable program or batch file.  gives error. But I know I have the windows compiler installed (since I have visual studio c++ installed). So how does application makes shortcuts (and how to find out, which shortcut/name should I use as argument for start when I know application name) ? And how to make custom shortcut for my own exe files?


Array modifier (vary textures on duplicates)

Using the array modifier and textures, can the individual array objects be slightly textured differently for individual look?


i'm surprised there is so little documentation on this issue. But i'm trying to duck the audio on all the mix buses in Unity so that you can clearly hear the VO of the game.  Now it works great except that I have some reverb zones in the game and any sound that plays in these reverb zones, the actual reverb itself is NOT DUCKED.   So the VO is accompanied with a huge wall of wishy washy muddy noise.   Anyone deal with this before? How can we deal with this?


I'm new to Blender, coming for 3DS Max, is it possible in Blender to copy an object along a path with specific parameters? Such as count of copies and orientation?


How to install libheif-dev on Ubuntu 18.04 LTS?

For a longtime I try to get Imagemagick running on my Ubuntu 18.04. After a alot of searching and reading I am stuck now installing libheif-dev. It seems there is an easy solution for 20.04 LTS:  But on 18.04 LTS I am stuck. Can somebody help me how to install libheif-dev? Te error I get is:     make[1]: Entering directory '/home/m0ps/Desktop/video2/BSgen/ImageMagick-7.0.11-4'   CCLD     utilities/magick MagickCore/.libs/libMagickCore-7.Q16HDRI.so: undefined reference to `heif_image_set_raw_color_profile' MagickCore/.libs/libMagickCore-7.Q16HDRI.so: undefined reference to `heif_have_decoder_for_format' MagickCore/.libs/libMagickCore-7.Q16HDRI.so: undefined reference to `heif_context_add_exif_metadata' MagickCore/.libs/libMagickCore-7.Q16HDRI.so: undefined reference to `heif_image_handle_get_luma_bits_per_pixel' MagickCore/.libs/libMagickCore-7.Q16HDRI.so: undefined reference to `heif_context_add_XMP_metadata' MagickCore/.libs/libMagickCore-7.Q16HDRI.so: undefined reference to `heif_image_handle_get_raw_color_profile_size' MagickCore/.libs/libMagickCore-7.Q16HDRI.so: undefined reference to `heif_image_handle_get_raw_color_profile' MagickCore/.libs/libMagickCore-7.Q16HDRI.so: undefined reference to `heif_have_encoder_for_format' MagickCore/.libs/libMagickCore-7.Q16HDRI.so: undefined reference to `heif_context_read_from_memory_without_copy' MagickCore/.libs/libMagickCore-7.Q16HDRI.so: undefined reference to `heif_has_compatible_brand' collect2: error: ld returned 1 exit status Makefile:8043: recipe for target 'utilities/magick' failed make[1]: *** [utilities/magick] Error 1 make[1]: Leaving directory '/home/m0ps/Desktop/video2/BSgen/ImageMagick-7.0.11-4' Makefile:6120: recipe for target 'all' failed make: *** [all] Error 2  I installed libheif as described here:  libheif is installed but with libheif there is a problem:     (base) m0ps@m0ps:/usr/local/lib$ pkg-config libheif --modversion 1.11.0 (base) m0ps@m0ps:/usr/local/lib$ pkg-config libheif-dev --modversion Package libheif-dev was not found in the pkg-config search path. Perhaps you should add the directory containing `libheif-dev.pc' to the PKG_CONFIG_PATH environment variable No package 'libheif-dev' found  I was searching for 'libheif-dev.pc' but did not find in on my machine


I enabled 2fa for my apple account, and now iCloud keeps asking me my password a lot of times every time I login. I think it doesn't even bother to check it, since as soon as I enter it, it pops the window again immediatly after I hit either login or cancel (it gives up after a few tries).  I've created an application-specific password and I'm using that one, to no avail.


Smooth path connecting two points in a manifold

I  received the following question. It's also in Chapter 2 of Spivak's book on Differential  Geometry, Volume 1.     Given a smooth connected manifold $M$, prove that between any two points $p,q \in M$, there  exists a smooth curve $c : [0,1] \to M$ such that $c(0) = p, c(1) = q$. Furthermore, $c$ can be chosen to be one-one.   How I propose to do  this problem is as follows : I would like to find a common chart(open  neighbourhood homeomorphic to $\mathbb R^n$) containing $p$ and $q$. This is  done as follows : take a chart $C_p$ containing $p$, and take a path connecting $p$ and $q$ (This must exist by the definition of a manifold as a second countable Hausdorff space, but I'm unable to say why). Around this path, consider a contractible neighbourhood $N$ (Can I do this?). Now, $N \cup C_p$ is a chart containing $p$ and $q$.   Therefore, since this neighbourhood is homeomorphic to $\mathbb R^n$, I can find a 1-1 smooth path connecting the images of $p$ and $q$ in $\mathbb R^n$ (this is a standard  property of $\mathbb R^n$, easily provable), and pulling this back into $M$ gives me the $c$ I desire, which is also $1-1$.  Is this correct?  EDIT : This question is different from a proposed duplicate, given in the comment below, since here I am attempting the question in a  way different from how it been done in the duplicate, and furthermore I  am asking for a  critique of my attempts, not the answer itself. When  I am confident, I will answer  this question myself and close it.


Relation between centre of mass and axis of rotation

Why is that in absence of a manually fixed point, a body shows its turning effect on application of a torque with its axis of rotation through its centre of mass? my attempt: is there a definition of the centre of mass that im mising?


Why does Launchpad not remember my icon settings?

I'm trying to use the Launchpad feature in Mac OS X, but my icons keep on getting rearranged.  I'll manually move icons around to my liking, but then after a restart, many of them are automatically rearranged to a different order than what I specified.  Note: It doesn't add an icon to a folder nor does it remove an icon from a folder. I've only seen it rearrange folders or icons which aren't in folders.  Why is this happening, and is there any way to fix it?


How to make specifics apps password protected even after passcode in iPhone?

I have passcode on iphone but sometimes i need to give my iphone to other to make calls. I want to make specific things password protected, things like mail, sms, contacts and some games.  Is it possible?


Internet Explorer 11 onclick triggered only if scripting is allowed in Internet Zone

We have a php/js (with jQuery, jqgrid jQueryUi) webapplication  which works fine in Firefox, Chrome and Edge. However, in Internet Explorer 11 some buttons are not working anymore. Looking into the problem, i found out that if i allow "active scripting" in internet options for the internet zone, everything works fine. However, the webapp was already listed in trusted sites for which active scripting had been allowed all the time. The trusted sites setting for active scripting also seems to be working for some javascript. Since it is not possible to instruct our customers to set their internet zone to allow scripting or to change the browser, i am currently trying to figure out the exact problem by setting "active scripting" to "ask" and making minimal changes to our website. I really think there should be a solution since the problem does not appear to appear on all buttons and js calls. I also tried to find a solution online and there indeed are other users with similar problems, but they have all different circumstances which do not fully apply to my problem. In our case some js works and only some onclick events do not work. It is also not a problem in the js code itself because i also tried inserting an alert() or console.log into the onclick but they did also not work. Even leaving the onclick blank did not change anything. Only when i remove the onclick event completely, i don't get a warning about running scripts. It seems that it also doesn't relate to the element the onclick is in because it seems to affect <input> as well as  and other elements. Example elements without working onclick: <input type="button" value="Cancel" style="width:150px;" onclick="onClickProgressCancel(this);">   Element with working onclick:  Export   The only thing that seems to have an effect is to remove the onclick and set a click handler with jQuery. I could not yet try it out completely but at least i got no script warning when doing that. However, i think that this is not a solution which i could apply to the whole webapplication. Is there anything else i could try out to find the "real" problem or maybe even a solution which does not require completely changing our webapplication? == Update 02.07.2020 == I found out that it appears to happen with elements that are inserted into the page after the page was loaded. E.g. with the following code: oEleProgress = $( '<input type="button" value="Cancel" style="width:150px;" onclick="onClickProgressCancel(this);" />';).appendTo( 'body' );


I hear some countries require that you have at least 6 months before the expiry date on your passport from the date you enter (or possibly the date you intend to leave).  Is there a limit on passport expiry date for entry into Japan?  If it makes a difference, I have Australian and British passports.


I get confused everytime I use which or that and refer to someone. For example, which one is the correct to say: 'that courage which takes him up' or should I say 'that courage which take him up'. Appreciate everyone's help.


Make a copy to clipboard function via JavaScript(jQuery) and Python(Flask)

I've tried to look this up a few days now but came out empty handed I have a little website I'm working on and I've created a context menu (right click on a table row to get the context menu) and I wish to create a copy to clipboard method, I've a the data I wish to copy on a variable named $text This is the JS code:    copy: {     name: "Copy",     callback: function (key, option) {     var $row = $(this).closest("tr");     var $text = $row.find(".md").text();          //the $text is what I'm trying to copy     }     I've tried many method to do so, using JS only and when I didn't find any method to do so I've tried to find a way to send this variable to my init.py code which runs the server but without success.  I would very apprachet if anyone will be able to help me understand what am I looking for to make this work and how to implement it.  Thank you very much


I'm watching different tutorials and making with them different models. And in one of those videos an author used keys Shift + GRLESS. I've never found such key name before, so I'm wondering now, what is it and where is it?


Word for someone who is proud of something without merit?

Is there an adjective for someone who is proud of something that is really unimpressive or otherwise doesn't warrant pride? Some examples would be being a diehard fan of a terrible sports team or claiming that an average or indistinguishable town/city/country is 'the best'.  This is similar to blind worship, but without the religious connotation/idolization element. Something between a blind worshipper and a home-teamer.


It's like not only Amazon Linux 2 I could not setup cron. I type crontab -e  then @reboot bash /home/ec2-user/abcd.sh  After Rebooting the EC2, this cron job doesn't work. The same used to work in my Linode VM which had centos 8 Can someone please help me how can I setup cronjobs in Amazon Linux 2


Zero Knowledge Proof for Correctness of the product of additive ElGamal Ciphers

Suppose we use Additive ElGamal defined as follows:     Let $(K,E,D)$ be a triple. The key-generator $K$ outputs the description of a   finite multiplicative group $G$ of prime order $q$, with three generators   $(g,h,f)$ which are set to be the public-key $p_k$ of the system; the   secret-key $s_k$ is set to the value $\log_g h$. For a public-key $(g,h,f)$   the encryption function $E(r,x)$ equals the tuple $(g^r, h^r, f^x)$. The   operations $+$ and $\oplus$ are defined as addition modulo $q$ and the   operation $\otimes$ is defined as point-wise multiplication over $G \times G$.  The   decryption function is denoted $D$. For a secret key $\log_g(h)$ given $(G,H)$ it returns   $H/G^{\log_g(h)}$ and then performs a brute-force search over all   possible values for $f^x$ to recover $x$.   So if I have two ElGamal encrypted cipher texts, $c_1= E(r_1,m_1)$ and $c_2 = E(r_2,m_2)$, I can do $c_1 \otimes c_2$ to get the same result as I would get if I did $E(r_1 \oplus r_2, m_1+m_2)$.  Can I somehow construct a zero knowledge proof, that, given a cipertext $c_1$, proves I only added one of $x$ possible ciphers?   Background would be an application for e-voting. Given a set of candidates, I want to prove that I just added one of the valid candidates (predetermined numbers) to the cipher. I already found a ZKP that shows that the Cipher I want to add is well-formed.


Does the series $\sum \limits _{n=0}^{\infty} \cos(n\pi)$ converge or diverge?   On substituting values I get alternate $1$ and $-1$.    So taking sum of infinite GP, I get $\dfrac 1 2$. So it looks like it converges.


So heres the thing. I have been playing some pokemon go but i cant access ar mode because my phone huawei honor 5x lacks gyroscope. The question here is, can i use ar mode if i enable virtual gyroscope which is made from the data that accelerometer creates.  here is a link where i got the idea. If anyone can help me, please do so. I really would like to exprecience pokemon go with ar mode.


how disable resume hard disk from Sleep on Shut Down

I'm using Windows 7 , I set my drive to sleep after 10 minutes and it works but, when I shut down windows my hard drive resume from sleep. Why? It shouldn't keep hard drive sleep and shut down the PC ?


Regression analysis with binary independent variables

Should one use regression analysis when all independent variables are binary categorical (0,1) to see their effect on continuous dependent? Some suggest that regression shouldn't be used in this case.


My laptop has been running pretty slow recently I am trying to fix bugs, and get rid of viruses and I might reset my laptop to start new. Before I do this I wanted to know if my games I bought are saved on Steam, so I can just re-download steam and get all my games back?


How to update xubuntu 14.04 LTS to xubuntu 16.04 LTS

How to upgrade xubuntu 14.04 LTS to xubuntu 16.04? I don't want to lose my application data.


In a topological course I have learned that a covering map $p:\bar{X}\rightarrow X$ induces a map on fundamental groups and that this induced map is a monomorphism.   Now I wonder myself if this is also true for $H_1(p)$. Via the Hurewicz-isomorphism $H_1(p)$ is isomorphic to the abelianization of the fundamental group.


Etymology of "vector field" vs "algebraic field" -- are they related?

A  in a Euclidean space is typically represented by a function $F\colon S\to\mathbb{R}^N$, where $S\subset \mathbb{R}^N$. An  is a space which has some nice properties. Is there a mathematical reason both of phrases use the term field? Is there some way we can view one in terms of the other? It looks like the answer is no, but I am not an algebraist. If not, which phrase originated first?


Why should you not begin a sentence with numbers espressed using digits rather than words?

For example,  120 cats are rescued.  is not usually considered as good style. :  If you need to begin a sentence with a number, spell it out. It is better, however, to reword the sentence, if possible.  Thirty-two workstations were provided by the university. \ The university provided 32 workstations.   :  Spell out a number—or the word number—when it occurs at the beginning of a sentence, as well as any related numbers that closely follow it:  :   Spell Out Numbers at the Start of a Sentence. Avoid Opening a Sentence with a Large Number. Consult Your Style Guide before Starting a Sentence with a Number.  Our four primary style guides (i.e., The Chicago Manual of Style, The Associated Press Stylebook, the Publication Manual of the American Psychological Association, and the MLA Handbook from the Modern Language Association) all agree that numbers should normally be spelled out at the start of sentences.


Python is not able to compare two values

a=999999 b=999999 if a is b:     print("yes") else:     print("no")   The answer to the following code is no.  Why python is not able to compare a and b inspite of the fact that both the values are equal to 999999


Unable to boot OS - No boot device found. Press any key to reboot machine

I tried to install Ubuntu 18.04 LTS in my laptop. Even though the installer ran without errors, I failed to boot. I tried it 8 times, both in Legacy and UEFI mode. Still nothing. It shows only: No boot device found. Press any key to reboot machine.  Update: I have identified the problem. Outdated microcode of my CPU was causing the problem. Reinstalled Windows and applied the update. Previous version: 20090330 Update version: 20180425


A linear transformation satisfying $P^2 = P$

Prove that a linear transformation $P \colon V \to V$ of a finite dimensional vector space satisfies $P^2 = P$ if and only if there exists a basis with respect to which $P$ can be written as a block matrix   $$P = \begin{bmatrix} I & 0 \\ 0 & 0 \end{bmatrix}.$$  Hence determine the minimal and characteristic polynomials of $P$.  I don't know what to do with this problem at all, so some help would be great, Thanks.


Let $(X, \tau_1)$, $(Y, \tau_1)$ be topological spaces with $\# (X) = \text{number of connected components} < \infty$ and $\# (Y) = \text{number of connected components} < \infty$.  How can I show that this implies $\# (X \times Y) = \# (X) \cdot \# (Y)$ (in the sense of the product topology)?


My friend can't connect to my world on Minecraft: Pocket Edition, but I can connect to hers?

My friend and I want to connect to the same Minecraft: Pocket Edition world. She wants to connect to one of my worlds, however every time we try get on the same world my game won't show up on her screen.  She can't get on my world I can get on one of hers.  We're both on the same Wi-Fi. I've tried searching for fixes to this problem however I can't find it useful answer.  I have an Android device and she has an Apple device.


How to replace Windows with Ubuntu/Lubuntu?

I want to install Ubuntu/Lubuntu over the top of the C: drive where Windows 10 is now installed, removing it completely while preserving my data on the other partition doesn't gets formatted.  Is there any way to do that?   Thanks


Given the three line segments below, of lengths a, b and 1, respectively:  construct the following length using a compass and ruler: $$\frac{1}{\sqrt{b+\sqrt{a}}} \ \ \text{and} \ \ \ \sqrt[4]{a} $$  Make sure to draw the appropriate diagram(s) and describe your process in words. We are also to use the following axioms and state where they are used:   Any two points can be connected by a line segment,  Any line segment can be extended to a line,  Any point and a line segment define a circle,  Points are born as intersection of lines, circles and lines and circles   Can someone please guide me or show me as to how to construct this? I know if we draw a triangle whose base(let's suppose this is $a+1$) is the diameter of a semi-circle, then the line perpendicular to this base leading to the top of the semi-circle will divide the trianlge into two smaller triangles with the bases resulting in $a$ and $1$. I don't know how to end up with $\sqrt{a}$ from there. But with it, the process can be repeated to end up with $\sqrt[4]{a}$. Can someone explain or show me? I will then be able to tackle a whole lot of other questions.


What is the new login item "Login with StackExchange?" Can we now have stackexchange accounts in the traditional way of accounts? (But doesn't that defeat the point of OpenId (one account across sites)?)


Is there a function $y=f(x)$ such that $\frac{d^3y}{dx^3} = f(x)$?

The exponential function $y=e^x$ is its own derivative, the hyperbolic functions $y=\frac{e^x+e^{-x}}{2}, y= \frac{e^x-e^{-x}}{2}$ are equal to their own second derivatives, and the trigonometric functions $y=sin(x)$, $y=cos(x)$ are equal to their own fourth derivatives. Is there a function that is equal to its own third derivative?


Need help with putting conditions on a column in a result set

I am using IBM DB2.  So, I have a SQL query in which I am retrieving a person's SSN from a table. I want to put conditions on that SSN column of the result set, conditions like :  1) It should start with only 9.  2) There should not be 2 consecutive zeros at 4th and 5th positions. (For eg. it cant be 999006667).  3) Max. length of a SSN can be 9.  Thank you.


How can I reload my XKB configuration without restarting my computer or logging back in

I made a cool, little script that will edit my /usr/share/X11/xkb/symbols/pc file automatically. It is useful when I want to switch between a Mac or Windows keyboard.   The one problem I've encountered is that I have to log out and then log back in after editing the file in order for the edited configuration to take effect.   I've tried deleting my xkb cache (/var/lib/xkb/*.xkm), but that did work.  Any help would be greatly appreciated. Cheers.


Nonabelian group of order $p^n$ for every $p$ prime and $n \in \mathbb{N}$  My idea was to just create some sort of generalized dihedral group, that's what I called it at least, maybe it is.  $G = <x,y | x^{p^{n-2}}=1,y^{p^2}=1, y^{-1}xy=x^{-1}>$  Will this work?


How to use C++ 11 features in the latest version of g++

Newbie here. I just got an error running from the terminal a C++ program I wrote: error: ‘stoi’ is not a member of ‘std’. They told me the compiler is too old.  I'm using Ubuntu 14.04.  My g++ version is 4.8.4.  How do I upgrade?


Remove black diamond question mark from latin1 cyrillic string and convert to UTF

There is MySQL DB with latin1 encoding. There is no ability to convert DB encoding to UTF8. Assume it is a fact. Some data in one table contains Cyrillic that was inserted using the form and stored as latin1. Here is its representation: Ð¿Ð¾Ð´Ñ‚Ð²ÐµÑ€Ð¶Ð´ÐµÐ½Ð¸Ðµ Ñ€ÐµÐ³Ð¸ÑÑ‚Ñ€Ð°Ñ†Ð¸Ð¸ - ÑÑ‡Ñ‘Ñ‚ Ð·Ð° ÐºÐ¾Ð¼Ð¼ÑƒÐ½Ð°Ð»ÑŒÐ½Ñ‹Ðµ ÑƒÑÐ»ÑƒÐ  When data extracted from db with php it is somehow represented as: $string =  "подтверждение регистрации - счёт за коммунальные услу�" When  I do mb_convert_encoding($string, "latin1", "latin1")  I got the same value as currently $string variable has. How can Unicode symbol display in latin1 string? The problem is to remove UNICODE replacement symbol � from the string. I tried: preg_replace('@\x{FFFD}@u', '', $string)  But the result is null. If I convert it to Unicode I got the same result as db representation utf8_encode($string) // Ð¿Ð¾Ð´ÑÐ²ÐµÑÐ¶Ð´ÐµÐ½Ð¸Ðµ ÑÐµÐ³Ð¸ÑÑÑÐ°ÑÐ¸Ð¸ - ÑÑÑÑ Ð·Ð° ÐºÐ¾Ð¼Ð¼ÑÐ½Ð°Ð»ÑÐ½ÑÐµ ÑÑÐ»ÑÐ  So I want to convert it to utf by saving Cyrillic representation and to remove Unicode replacement symbol. I tried many conversion, but nothing helped. If you'll try to remove black diamond question mark with preg_replace - it will work, because the value was copied from xdebug and it is no longer the same as I have. I think maybe this string is broken. But have no ideas how to fix it. At the end I can say, that I read tons of stackoverflow questions regarding to latin1 Cyrillic to utf8 conversion. None of them helps in this case. Maybe the string is really broken. Still think that there is a way to fix it. Any help appreciated. Thanks


How can you use one object to delete the same 3d space on another object?

Hello! I made a 3D logo a couple years ago and want to update to how it should've been made in the first place. I want to take the logo on the left and make it like the logo on the right. Does anyone know the best way to do that?


The Supremum and Infimum of a sequence of measurable functions is measurable

I am reading through Folland's Real Analysis: Modern Techniques and Their Applications, and they have the following proposition and proof:     Proposition: If $\{f_{j}\}$ is a sequence of $\bar{\mathbb{R}}$- valued measurable functions on $(X, \mathcal{M})$, then the functions:      $$g_{1}(x)=\sup_{j} f_{j}(x)$$ $$g_{2}(x)=\inf_{j} f_{j}(x)$$ are   measurable.       Proof:      We have       $$g_{1}^{-1}((a,\infty])= \bigcup_{j=1}^{\infty}  f_{j}^{-1}((a,\infty])$$ $$g_{2}^{-1}([-\infty,a))=  \bigcup_{j=1}^{\infty} f_{j}^{-1}([-\infty,a))$$      Where the result follows from the fact that $g_{1}^{-1}((a,\infty])\in  \mathcal{M}$ for all $a \in \mathbb{R} \iff g$ is measurable, and   $g_{2}^{-1}([-\infty,a))\in \mathcal{M}$ for all $a \in \mathbb{R}  \iff g$ is measurable.   I understand the last part of the proof, but how do we know $g_{1}^{-1}((a,\infty])= \bigcup_{j=1}^{\infty}f_{j}^{-1}((a,\infty])$ and $g_{2}^{-1}([-\infty,a))=\bigcup_{j=1}^{\infty} f_{j}^{-1}([-\infty,a))$? I would appreciate any help with this.


The gamma function is defined by  $$\Gamma(z)=\int_0^\infty t^{z-1}e^{-t}dt.$$ What made the mathematicians define it like this instead of $$\Gamma(z)=\int_0^\infty t^{z}e^{-t}dt.$$ This would make the gamma function a "real" generalization of the factorial function $\Gamma(n)=n!$


What happened to the "give skull" command in Minecraft?

I just got Minecraft Bedrock Edition, and I wanted to Make a map for a Minecraft YouTuber and put his head in the dedication, but both of the the "give skull" commands (/give @p minecraft:skull 1 3 {SkullOwner:"_________"} or /give @p minecraft:skull {SkullOwner:"_________"}) isn't working. When I type in the former, it says "Missing Object Name" or something like that. But when I type in the Latter, it says something like "Item Not Recognized". Can anyone tell me what happened to it?


I have  a bounty question on Stack Overflow, but I did not received any bounty and I don't know why.  From  I understand that If I have an answer with 2 upvotes (or more) on it and it is the most voted answer after the grace period ended I will receive the bounty/ half of it.     If you do not award your bounty within 7 days (plus the grace period), the highest voted answer created after the bounty started with a minimum score of 2 will be awarded half the bounty amount.   The grace period has ended and the question bounty was not given to anybody by the question asker.  My question is, my answer:   Was the first answer posted. Is the most voted question.  Has more than 2 upvotes.   This is not "I am upset that I was not given reputation question", but a general question that is relevant to all Stack Exchange sites about bounty questions.


In MySQL i want to add around 1000 rows into a table. With PostgreSQL there is this statement that can be used to add x rows in your table.  INSERT INTO table(int_col)  SELECT x.id FROM generate_series(1, 1000) AS x(id);   I search for several solutions(like ) and one of the options i to create a function with a . I don't fully understand how this works because i m very new to MySQL. The other option is to do this by hand with a insert statement like this.   insert into table(int_col) values (1), (2), (3) etc etc.   But you can understand that this is way to much work for 1000 rows. I also dont have a txt or csv file with the data that i want to add.


How to run .jar file by double click on Windows 7

Running a .jar file in a command line works fine, but i am not able to run any .jar file by double clicking on my Windows 7 (64). It seems nothing happens after the double click  I set the path JRE path in my regedit HKEY_CLASSES_ROOT with JRE path but still its not running.  Any Solutions for this?


Let $A\in \mathbb{R}^{n\times n}$ be invertible such that $A$ and $A^{-1}$ have integer entries. Prove that $\det(A)\in\{-1,1\}$.  My work:  $\det(I)=\det(AA^{-1})=(-1)^n\det(AA^{-1})=(-1)^n\det(A)\det(A^{-1}).$  I'm stuck here. Can someone help me?


If i use the following code, my image is placed in the center of the page, horizontal as vertical. I think this happens, because the section above ended on the page before. I want it to go to the top of the page and then continue with text in a new page. If i would insert new text above the image, it should move down only as much as necessary.  \begin{figure}[h] \begin{center} \includegraphics[width=15cm]{images/g550}\caption{G550 \cite{bild_g550}} \end{center} \end{figure} \clearpage{}   I'm using the scrrprt class.


Don't limit the number of *internal* links new users can include in questions (at least on meta)

Currently new users are limited to one two links in a post. If the purpose of this is, as I suspect, to prevent spam, I think it would be safe to allow unlimited internal links (i.e. links to M?S[OFU] posts).  It would be nice to do this on MSO at least, so that users can post links to examples of their problems.  Note: I know that MSO users can get unlimited links simply by linking to their S[OFU] account. Usually someone has to tell them this though; it isn't necessarily clear.


I'm trying to use my iPhones mobile hotspot as a router between two laptops. Right now the laptops can't ping each other. Is there some firewall or settings on the iPhone that block communication between the two?


How to install the latest Ubuntu Shell theme under Ubuntu with vanilla GNOME

I've installed the latest 17.10 Ubuntu and then used   sudo apt install gnome-session   to get rid of Ubuntu's modifications, as described .  Although I prefer to have a vanilla GNOME experience, Ubuntu's  is very appealing. Unfortunately, I can't find this theme in GNOME Tweaks. The only GNOME-Shell theme that is present there is GNOME's default one.  Does somebody know a convenient way to install Ubuntu's new GNOME-Shell theme?


If $f(x)$ is continuous on $[a,b]$ and $M=\max \; |f(x)|$, is $M=\lim \limits_{n\to\infty} \left(\int_a^b|f(x)|^n\,\mathrm dx\right)^{1/n}$?

Let $f(x)$ be a continuous real-valued function on $[a,b]$ and $M=\max\{|f(x)| \; :\; x \in [a,b]\}$. Is it true that: $$ M= \lim_{n\to\infty}\left(\int_a^b|f(x)|^n\,\mathrm dx\right)^{1/n} ? $$  Thanks!


Why does .NET use banker's rounding as default?

According to the documentation, the  method uses a round-to-even algorithm which is not common for most applications. So I always end up writing a custom function to do the more natural round-half-up algorithm:  public static decimal RoundHalfUp(this decimal d, int decimals) {     if (decimals < 0)     {         throw new ArgumentException("The decimals must be non-negative",              "decimals");     }      decimal multiplier = (decimal)Math.Pow(10, decimals);     decimal number = d * multiplier;      if (decimal.Truncate(number) < number)     {         number += 0.5m;     }     return decimal.Round(number) / multiplier; }   Does anybody know the reason behind this framework design decision?  Is there any built-in implementation of the round-half-up algorithm into the framework? Or maybe some unmanaged Windows API?  It could be misleading for beginners that simply write decimal.Round(2.5m, 0) expecting 3 as a result but getting 2 instead.


I purchased a pc with free DOS than I install windows 10 os in this. After this I dual boot Ubuntu alongside windows 10. But in os boot manager only show Ubuntu with DOS os.  But in Ubuntu I can see my partition which I created during windows 10.  So how can I open  previously installed windows 10??


Even though I have gone through the questions similar being asked, I am not clear as to what is Live Server and how to use it. Based on few documentation I tried to install Live Server and I feel that it is same as Server Installation. So what is the difference and how to use true Live Server. Please guide me. Manish Chawda


Is it possible Fisher information matrix be indefinite?

I`m using the Newton-Raphson method for obtaining MLE for parameters for maximizing my objective function. At each iteration, I want to check that is the Hessian matrix negative definite or not and I see the Hessian matrix is not negative definite at some iterations. So, I want to use the Fisher scoring algorithm ( of derivation) In this situation, the Fisher information matrix is indefinite!! Is it possible? What are the reasons for this? Are the second-order derivatives wrong? Or are values of expectations incorrect?


trying to install wine 5.0 on ubuntu 18.04

I'm new to linux and ran into this error, couldn't figure out how to fix it. Help much appreciated! "sudo apt-add-repository 'deb  bionic main' E: Malformed entry 1 in list file /etc/apt/sources.list.d/wine-obs.list (Suite) E: The list of sources could not be read."


It asks for login profile name and then password. Is it some kind of problem or it looks that way?


How many sets of bank statemens do I need to submit when applying for Standard Visitor visas for a family?

I am planning to apply for a tourist visa for myself and my family. I am doing all of the travel expenses for my family.  Do I need to submit my six months bank statement for each application of my dependants or just submit with mine?


How do you choose the order p and q for ARMA(p,q) process for modeling a time series?

How do you choose the order p and q for a ARMA(p,q) process for modeling a time series?  Can that be told from ACF or PACF alone, just like for a AR(p) or MA(q) process?


Connecting 2 External Monitors to a Laptop?

Equaling 3 Displays Total (or 2, if the laptop display cannot be used).  I work at home on two large monitors, but at the office on a laptop with a single large monitor. Is it possible to attach two (or more?) external monitors to a laptop without having them clone each-others display?


How to properly manage field types for a content type created by a module?

I'm a bit confused about two different errors I get, which seem to contradict each other. I guess I didn't register my field types properly. The first one appears when I try to uninstall my module. Drupal\Core\Field\FieldException: Attempt to create a field field_example that does not exist on entity type node. in Drupal\field\Entity\FieldConfig->getFieldStorageDefinition() (line 312 of core\modules\field\src\Entity\FieldConfig.php).  The second one appears as an error message within the UI when I try to fix it by introducing another module which should only create the field type. Unable to install Helper, field.field.node.content_type_example.field_example already exists in active configuration.  In general, the module calls an external API and fetches data which is then used to create nodes with several fields. These are defined inside the config/install directory. Furthermore, inside src/Plugin/Field there are FieldType, FieldFormatter and FieldWidget classes, more or less as described . I used  module when I tried to fix the first error without a helper module. With its help, I removed the field types created by my module in the first place. Unfortunately, I don't know a lot about drush, which seems to be capable of solving the issue. On the other hand, it would be great if it was possible to "reset" the content type and the field types programmatically whenever the module is installed or uninstalled. So far, I tried the following code, without much luck: <?php // mymodule.install file use \Drupal\field\Entity\FieldStorageConfig;  function mymodule_install() {   if (FieldStorageConfig::loadByName('node', 'field_example')) {     FieldStorageConfig::loadByName('node', 'field_example')->delete();   } }  Does someone know how I can fix the error and how I should manage these fields in the future? Thanks!


How can I create a SQL table from another table without copying any values from the old table

How to create table with existing table structure without iterate row by row like this in Oracle? Thanks in Advance.  CREATE TABLE new_table   AS (SELECT *       FROM old_table WHERE 1=2);


Latest version of Android client is buggy

The latest version of the SE client is buggy on Android. Frequent screen garbage and random crashes. I'm not the only person with this problem, there are other comments in the Google Play store attesting to this.  For my system:  SE Android Client Version: 1.0.68 Nexus 7 Android Version: 5.1.1


How to achieve the popular faded, matte effect used in website hero images?

I was wondering  how the effect in the included images is achieved, I have noticed it is a popular technique used in website banners and 'hero' images.  I am interested in specifically what adjustments might be helpful to achieve this. ie the muted colors, suppressed highlights and faded blacks. Another characteristic of this image (other than the 'bokeh' lens effect) that interests me is the 'hazy', 'soft light' feel to it. It appears the light is contouring and pouring over the edges of the subject(s) of the photograph.  Any thoughts and tips would be a huge help, regarding what the general workflow might be to achieve this.  Many Thanks for your time and help.  Reference Image


Meaning of $\int \phi^\dagger \hat A \psi \:\mathrm dx$

While analysing a problem in quantum Mechanics, I realized that I don't fully understand the physical meanings of certain integrals. I have been interpreting:    $\int \phi^\dagger \hat A \psi \:\mathrm dx$  as "(square root of) probability that a particle with state $|\psi\rangle$ will collapse to a state $|\phi\rangle$ when one tries to observe the observable corresponding to $\hat A$" $\int \phi^\dagger  \psi \:\mathrm dx$ as "(square root of) probability that a particle with state $|\psi\rangle$ will collapse to a state $|\phi\rangle$".   All integrals are over all space here, and all $\phi$s and $\psi$s are normalized.  Now, I realize that  interpretation of the first integral doesn't really make sense when put side by side with the second one.   For example, when $|\phi\rangle$ is an eigenstate of $\hat A$, I get two different expressions for "the square root of probability that one will get the corresponding eigenvalue of $\psi$ when one tries to observe the observable corresponding to $\hat A$". As far as I can tell, $\int \phi^\dagger \hat A \psi \:\mathrm dx \neq\int \phi^\dagger  \psi \:\mathrm dx $, even if $|\phi\rangle$ is an eigenstate of $\hat A$. I am inclined to believe that the second integral is the correct answer here (it comes naturally when you split $|\psi\rangle$ into a linear combination of basis vectors). But I am at a loss as to the interpretation of the first integral.  So, my question is, what are the physical interpretations of $\int \phi^\dagger \hat A \psi \:\mathrm dx$ and $\int \phi^\dagger  \psi \:\mathrm dx$?  (While I am familiar with the bra-ket notation, I have not used it in this question as I don't want to confuse myself further. Feel free to use it in your answer, though)


What exactly happens when you "Archive" messages in Gmail?

Gmail has "Archive" button for messages.  What exactly is the effect of "archiving"?  Is it the same as deleting?


Are the X-Men movies related to Deadpool?

No spoilers, please!  My friend and I plan to see Deadpool soon, but she hasn't seen any of the X-Men movies. Would she benefit at all from having seen the X-Men movies (or at least, any specific ones) before Deadpool?


If $(-1)^{\gcd(n,F_n)}=1$ where $F_n$ is the $n$-th Fibonacci number then $n$ is divisible by $6$ ?

Question: If $n$ is any positive integer I write $F_0=0, F_1=1$ and $F_n=F_{n-1}+F_{n-2}$. The numbers $F_n$ are called the Fibonacci numbers. Let $a_n=(-1)^{\gcd(n,F_n)}$. Is it true that if $a_n=1$ then $n$ is a multiple of $6$ ?   Not much motivation here just an  experimental observation I noticed. I am not sure where exactly to start since I do not know a formula for $\gcd(n,F_n)$.


Sometimes it's more convenient for me to use Blender in another language. Does Blender have different languages (language as in speech language as english, not computer language as python)?


multiple files rename - filenames patterns

I have following image files in some directory which I want to be renamed:  8 -rw-rw-r-- 1 6661 sep 24 10:28 dbConnectionOkBostjan.png 8 -rw-rw-r-- 1 6548 sep 24 10:29 dbConnectionErrorBostjan.png 8 -rw-rw-r-- 1 5708 sep 24 10:29 btConnectionErrorBostjan.png 8 -rw-rw-r-- 1 5911 sep 24 10:30 btConnectionOkBostjan.png 8 -rw-rw-r-- 1 6916 sep 24 10:31 userLogOkBostjan.png 8 -rw-rw-r-- 1 6924 sep 24 10:44 userLogErrorBostjan.png   Now, I know how to use mv command to rename file and I even know how to rename multiple files, but in this case I want to rename every this file with new name same as original file, but without word Bostjan. For example, dbConnectionOkBostjan.png must rename to dbConnectionOk.png and same for all other files. How do achieve this task using terminal? I wish to solve this using ordinary mv command. If I use proposed solution from Answer 1, I get following errors:  user@testcomp:~/Pictures/testAppIcons$ for i in *Bostjan*; do mv $i $(echo $i | sed @Bostjan@@); done sed: -e expression #1, char 1: unknown command: `@' mv: missing destination file operand after ‘btConnectionErrorBostjan.png’ Try 'mv --help' for more information. sed: -e expression #1, char 1: unknown command: `@' mv: missing destination file operand after ‘btConnectionOkBostjan.png’ Try 'mv --help' for more information. sed: -e expression #1, char 1: unknown command: `@' mv: missing destination file operand after ‘dbConnectionErrorBostjan.png’ Try 'mv --help' for more information. sed: -e expression #1, char 1: unknown command: `@' mv: missing destination file operand after ‘dbConnectionOkBostjan.png’ Try 'mv --help' for more information. sed: -e expression #1, char 1: unknown command: `@' mv: missing destination file operand after ‘userLogErrorBostjan.png’ Try 'mv --help' for more information. sed: -e expression #1, char 1: unknown command: `@' mv: missing destination file operand after ‘userLogOkBostjan.png’ Try 'mv --help' for more information. user@testcomp:~/Pictures/testAppIcons$   I am using KUbuntu 15.04.


this is my code package pack; import java.awt.*; import javax.swing.*; public class MySwing { MySwing() {      JFrame.setDefaultLookAndFeelDecorated(true); JFrame f = new JFrame("This is my Frame"); JTabbedPane jtb= new JTabbedPane(); JPanel p1 = new JPanel(); JPanel p2 = new JPanel(); JPanel p3 = new JPanel();jtb.addTab("employee Info", p1); jtb.addTab("employee Dept", p2); jtb.addTab("employee Salary", p3); f.add(jtb); JLabel l = new JLabel("User Name"); l.setForeground(Color.blue); JTextField tf = new JTextField(20); tf.setFont(new Font("Coronet",Font.BOLD,20)); tf.setHorizontalAlignment(JTextField.RIGHT); tf.setBackground(Color.black); tf.setForeground(Color.yellow); JLabel l1 = new JLabel("Password: "); JPasswordField pf = new JPasswordField(20); JTextArea ta = new JTextArea(10,20); JScrollPane sp = new JScrollPane(ta);  String str[]={"select the city","Noida","Delhi","Faridabad"}; JComboBox c= new JComboBox(str); JList li = new JList(str); JCheckBox cb1= new JCheckBox("I.Sc",true); JCheckBox cb2= new JCheckBox("B.Sc"); JCheckBox cb3= new JCheckBox("M.Sc");      ButtonGroup cbg = new ButtonGroup(); JRadioButton cb4= new JRadioButton("Male",true); JRadioButton cb5= new JRadioButton("Female",false); cbg.add(cb4);cbg.add(cb5); JButton b = new JButton("save"); p1.add(l);p1.add(tf);p1.add(l1);p1.add(pf);p2.add(sp);p2.add(c);p2.add(li);p2.add(cb1);p2.add(cb2);p2.add(cb3); p3.add(cb4);p3.add(cb5);p3.add(b); f.setSize(600,400); f.setLocation(200,100); f.setVisible(true); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } public static void main(String arg[]) {      new MySwing(); } }   here this is the issue MySwing.java uses unchecked or unsafe operations recompile with -xlint:unchecked for details help me to resolve this this is not a error but my system doesn't run it resolve it


Alternate Row Coloring in Django Template with More Than One Set of Rows

Django templates offer the builtin tag cycle for alternating between several values at different points in a template (or for loop in a template) but this tag does not reset when it is accessed in a scope outside of the cycles definition.  I.e., if you have two or more lists in your template, the rows of all of which you'd like to use some css definitions odd and even, the first row of a list will pick up where the last left off, not with a fresh iteration from the choices (odd and even)  E.g., in the following code, if the first blog has an odd number of entries, then the first entry in a second blog will start as even, when I want it to start at odd.  {% for blog in blogs %}   {% for entry in blog.entries %}     <div class="{% cycle 'odd' 'even' %}" id="{{entry.id}}">       {{entry.text}}     </div>   {% endfor %} {% endfor %}   I've tried obviating this by patching with the resetcycle tag offered here:    to no avail.  (The code didn't work for me.)  I've also tried moving my inner loop into a custom tag, but this also did not work, perhaps because the compile/render cycle moves the loop back into the outer loop?  (Regardless of why, it didn't work for me.)  How can I accomplish this simple task!?  I'd prefer not to create a data structure in my view with this information pre-compiled; that seems unnecessary.  Thanks in advance.


Could the uncertainty principle theoretically be violated at 0 K?

Ok so please excuse me if the following mental argument is completely ridiculous or obviously flawed :P  I was reading about how, even at 0 K (assuming we could experimentally reach such a temperature), there must be some slight particulate motion, because of the uncertainty principle. What about if we have some particles in a closed box that is in a dark vacuum (assuming a complete absence of any energy or light). If we then proceed to cool the particles to 0 K, then wouldn't we have succeeded at violating the uncertainty principle? We know that the speed of the particles is exactly 0 m/s, and we know with 100% certainty that they are in the box; we do not need to observe them to know so.


Where does top command get all the data for CPU Utilization?

When I run the top command, the third line is;  Cpu(s):  0.3%us,  0.3%sy,  0.0%ni, 99.2%id,  0.1%wa,  0.0%hi,  0.0%si,  0.1%st  From where does top command get this data? Does it get from /proc?, if yes, what is the exact location?


I simply can't get my head around how the Community user works.  Is it a daemon process running in the background, responsible for approving / rejecting edits, poking old questions, etc., or how else does it work?  Thanks.


What are the review queues, and how do they work?

I see a "review" link on the top of the page, which takes me to a few "review queues".   What is a "review queue"? What are the various queues for? What can I do in each queue?


Using regex in find and replace script for Illustrator

This script was created by another user and then I tweaked it a bit, you can see more about it on     This is the script:  #target illustrator var doc = app.activeDocument;  jsfind = prompt("Find: ", ""); jsreplace = prompt("Replace: ", "");  for ( var i=0; i<doc.artboards.length ;i++) { var aBoard = doc.artboards[i].active; var oldName = doc.artboards[i].name; doc.artboards[i].name = oldName.replace (jsfind, jsreplace); }   I want to make jsfind use regex for "find"  If I just switch  oldName.replace (jsfind, jsreplace);   to  oldName.replace (/jsfind/g, jsreplace);   It doesn't function properly, I assume I have to excape the characters or something, but I'm not sure.


How to get the permutations without repetition of all the combinations of a set of letters?

I'm trying to create an algorithm that after giving it a number of random letters, for example: abcd, it shows you all the possible permutations, in this case, the answer would be:  abcd abc abd acd ab ac ad a bcd bc bd b cd c d  As you can see, the different permutations must have different letters, I have spent hours trying to do it without success, this is what I did so far:          vector<char> letters;          letters.push_back('a');         letters.push_back('b');         letters.push_back('c');         letters.push_back('d');          int number_of_letters = 4;         int number_of_repetitions;         vector<char> combination;         vector<char> comb_copy;          for(int i = 0; i < number_of_letters; i++){             number_of_repetitions = 1;             changing_letters = number_of_letters - (i + 1);              for(int j = i+1; j < number_of_letters; j++){                 combination.push_back(letters[j]);             }               comb_copy = combination;              for(int i = 0; i < comb_copy.size(); i++){                 cout << comb_copy[i];             }              while(number_of_repetitions <= changing_letters){                 comb_copy = combinations(comb_copy, number_of_repetitions);                  for(int i = 0; i < comb_copy.size(); i++){                     cout << comb_copy[i];                 }                  comb_copy = combination;                 number_of_repetitions++;             }         }     vector<char> combinations(vector<char> combi, int reps){      combi.erase(combi.end() - reps);      return (reps > 1?combinations(combi, reps-1):combi); }   And this is what I'm getting:  abcd abc abd acd bc bd c    I would need to get:  abcd abc abd acd ab ac ad a bcd bc bd b cd c d   Can someone help me? :)  Thanks!!


Including Hebrew text in a non-Hebrew document (Babel not working)

I need to introduce one Hebrew word in a document. I have been trying to add an hebrew option in my Babel includepackage command, as in the following code, but it does not work: it triggers a clash with almost all the other packages (in the following examples, all the ones below inputenc).  \documentclass[10pt]{article} \usepackage[english,hebrew,french]{babel} \usepackage{aeguill} \usepackage[utf8x]{inputenc} \usepackage{amsmath} \usepackage{graphicx} \usepackage{xspace} \usepackage{listingsutf8} \usepackage{color} \usepackage{url} \usepackage{textcomp}  \begin{document} Blah \end{document}   This is a minimal non-working example: I need all these packages for my document. How can I display Hebrew text here? I'd like to avoid including it as a picture...


What is the word for a person who delegates their vote?

I'm making a delegation system. Users can hand over their votes to delegates (the noun). I am wondering what is the opposite of a 'delegate'.     I just delegated my vote to John, now he has a new ________.   I looked around, and found 'delegator' but I'm not sure if it's the right word.  If delegate is confusing or wrong in this context, I also found 'delegatee' and 'representative'.


I have to check whether a graph is planar. The given type is      $$    e ≤ 3v − 6 .$$   From :       Note that these theorems provide necessary conditions for planarity that are not sufficient conditions, and therefore can only be used to prove a graph is not planar, not that it is planar. If both theorem 1 and 2 fail, other methods may be used.   I am wondering what should I do to prove that a graph is planar.


Generalized PNT in limit as numbers get large

If $\pi_k(n)$ is the cardinality of numbers with k prime factors (repetitions included) less than or equal n, the generalized Prime Number Theorem (GPNT) is:  $$\pi_k(n)\sim \frac{n}{\ln n} \frac{(\ln \ln n)^{k-1}}{(k-1)!}.$$  The qualitative appearance of the actual distribution of $\pi_k(n)$ for k = 1,2,3,..., agrees very well with the GPNT, for numbers $n$ within reach of my laptop. But I noticed that as $n$ and $k$ get large, "most" of the numbers less than $n$ seem to have relatively few factors.     Writing $n = 2^m$ and replacing $k$ by $x$ we can graph   $$f(x) =\frac{2^m (\ln\ln 2^m)^{x-1}}{\ln 2^m (x-1)!}$$    from $x = 1$ to $m$ (since no number will have more than m factors) and see that for relatively small fixed $m$, most of the area under the curve f is is contained in a steep bell-shaped curve on the far left of the image.   I take this to suggest that as we consider very large sets, $S_m = \{ 1,2,3,...,2^m\},$ almost all elements of these sets have a "very small" number of factors (including repetitions).  Can this idea be (or has it been) quantified? The phrase "very small" is frustrating, and I think we might be able to say something more concrete about, for example, concentration of the proportion of area as a function of x and m...?  Thanks for any suggestions.   Edit: the answer Eric Naslund gave below is splendid and I won't neglect to accept it. In response to the answer, I wonder if there is any reason not to be able to get something like that answer from the expression $f(x)$?   After all, $f(x)$ appears to be a Poisson-like curve with a mean near the average number of prime factors. If I let m = 100 and then 500 (i.e., we're using $2^{100},2^{500}$), $f'(x) = 0$ at $x \approx 4.73, 6.34$, respectively, while $\ln\ln 2^m$ is respectively 4.23, 5.84. If f is a valid expression for the asymptotic behavior of $\pi_k(n)$, wouldn't we expect it to give us this additional information? Can we not prove it?


how do I prove this formula combinatorially?

$$\binom{r}{r}+\binom{r+1}{r}+\binom{r+2}{r}+...+\binom{n}{r}=\binom{n+1}{r+1}$$  I know how to prove this by induction.   But I got stuck with proving it combinatorially.   How do I start? and please give some directions.


I have almost finished reading the basics of Bosonic String Theory from Becker, Becker and Schwartz as well as Tong's notes. What is the best book to start reading about Superstring theory (something which is slightly easier than Polchinski). I am confused among these options:  String Theory in a nutshell by E. Kiritsis String Theory and M theory by Becker, Becker and Schwartz. Green, Schwartz and Witten volume 1 Superstring Theory by E. Kiritsis Something else


Is it safe to cook a chicken for 20 minutes at 250 degrees, Then take it out of oven and put back in refrigerator and then cook it thourghly the next day.


Limit of $\lim_{n\rightarrow \infty} \sum^{n}_{i=1} \frac{1}{\sqrt {n^2 +i} }$

Direct way leads to nowhere.  $$\lim_{n\rightarrow \infty} \sum^{n}_{i=1} \frac{1}{\sqrt {n^2 +i} } = \lim_{n\rightarrow \infty} \sum^{n}_{i=1} \frac{1}{n \sqrt {1 +\frac{i}{n^2}} } = $$  $$ = \lim_{n\rightarrow \infty} \frac{1}{n} \cdot \lim_{n\rightarrow \infty} \sum^{n}_{i=1} \frac{1}{\sqrt {1 +\frac{i}{n^2}} } = 0 \cdot \sum^{n}_{i=1} 1 = 0 \cdot n $$  So, I tried to apply squeeze theorem:  $$\lim_{n\rightarrow \infty} \sum^{n}_{i=1} \frac{1}{\sqrt {n^2 +i} } \leq \lim_{n\rightarrow \infty} \sum^{n}_{i=1} \frac{1}{n}  = 1$$  Could you help me to figure out the lower bound?


Suddenly unable to screenshot- Do not have permission to save files in the location where screenshots are stored

Recieved the error:  'Your screenshot could not be saved. You don't have permission to save files in the location where screenshots are stored.' with OS X Yosemite.  I opened terminal and tried directing the screenshots to save on my desktop:  Brigittes-Air:~ eggsalad$ defaults read com.apple.screencapture location 2017-01-06 03:04:47.765 defaults[17729:1947540]  The domain/default pair of (com.apple.screencapture, location) does not exist  So I tried writing and:  Brigittes-Air:~ eggsalad$ defaults write com.apple.screencapture location ~/Desktop 2017-01-06 03:05:08.652 defaults[17742:1948451] Could not write domain com.apple.screencapture; exiting  I'm not sure where the screenshots are being stored if the location does not exist. Ideas?  EDIT  I ran something else and got a different response, but defaults are still unchanged.   Brigittes-Air:~ eggsalad$ defaults write com.apple.screencapture location/Users/eggsalad/Desktop killall SystemUIServer  2017-01-06 03:22:35.444 defaults[18265:2001767] Unexpected argument SystemUIServer; leaving defaults unchanged.  2nd EDIT  Result of:  ls -l ~/Library/Preferences/com.apple.screencapture.plist  was:   ls: /Users/eggsalad/Library/Preferences/com.apple.screencapture.plist: No such file or directory


Pass variable to a javascript callback function

I want to pass a variable to a callback function in JavaScript but I haven't found an easy and straightforward way (without using global variables etc). Here's my code:   $(".delete-sign").click(function(event) {     var imgId = this.id;     bootbox.confirm("Are you sure?", function(response) {         if (response == true) {             $.ajax({                 url:'delete_keyframes.php',                 type:"POST",                 data: { id: imgId },                 success:function(){ alert("Deleted keyframe"); }             });             $("#img-div-"+imgId).remove();         }     });      });   I want to pass the imgId variable inside the callback function. What should I do?


Let's say I have a method that creates a new user for a web application.  The method itself calls a static helper class that creates a SQL statement that performs the actual insertion into my DB.  public void createUserInDb(String userName){     SQLHelper.insertUser(userName); }   I want to synchronize this method such that it cannot be called concurrently by different threads if the passed in parameter (userName) is the same on those threads.  I know I can synchronize method execution using the synchronized keyword, but this would prevent different threads from concurrently executing the method in general.  I only want to prevent concurrent execution if the passed in variable is the same.  Is there an easy construct in Java that would let me do this?


I have a domain object called User. Properties of user include ssoId, name, email, createdBy, createdDate and userRole. Of these, ssoId must be unique in the sense no two users can have the same sso id. So my equals method checks for the sso id and returns either true or false.  @Override public boolean equals(Object o) {     if (!(o instanceof User))       return false;     return user.getSsoId().equals((User)o.getSsoId()); }   What I feel is that this is an incorrect implementation, though it is correct as far as the business rules are concerned. The above implementation will return true for two objects with same sso id but with different values for say name or email or both. Should I change my equals contract to check the equality of all fields? What is your suggestion?


Why do my p-values differ between logistic regression output, chi-squared test, and the confidence interval for the OR?

I have built a logistic regression where the outcome variable is being cured after receiving treatment (Cure vs. No Cure). All patients in this study received treatment. I am interested in seeing if having diabetes is associated with this outcome.   In R my logistic regression output looks as follows:   Call: glm(formula = Cure ~ Diabetes, family = binomial(link = "logit"), data = All_patients) ... Coefficients:             Estimate Std. Error z value Pr(>|z|)     (Intercept)   1.2735     0.1306   9.749   <2e-16 *** Diabetes     -0.5597     0.2813  -1.990   0.0466 *   ...     Null deviance: 456.55  on 415  degrees of freedom Residual deviance: 452.75  on 414  degrees of freedom   (2 observations deleted due to missingness) AIC: 456.75   However, the confidence interval for the odds ratio includes 1:                     OR     2.5 %   97.5 % (Intercept) 3.5733333 2.7822031 4.646366 Diabetes    0.5713619 0.3316513 1.003167   When I do a chi-squared test on these data I get the following:  data:  check X-squared = 3.4397, df = 1, p-value = 0.06365   If you'd like to calculate it on your own the distribution of diabetes in the cured and uncured groups are as follows:  Diabetic cure rate:      49 /  73 (67%) Non-diabetic cure rate: 268 / 343 (78%)   My question is: Why don't the p-values and the confidence interval including 1 agree?


Show that f(x) defined on [0,infinity) R to is continuous at 0.

$$f(x)=\begin{cases} 0 &:& x=0\\[1ex]x^{\frac{2}{3}} \log x&:&\text{otherwise}\end{cases}$$  My thoughts: $\log x$ behaves weird in $(0;1)$ and will not be bounded for any $ x \in V_{\delta} (0) , \delta >0 $  Now is $ x^{\frac{2}{3}}$ small enough to keep $\log x$ in control? How can I show this? Please help. I'm looking for a proof using the definition of continuity.


Way to see if a post is CW from the mobile app

Currently there is no way to see from the mobile app if a post has been set or converted to community wiki. Is this feature planned for the app?


I wanna add some data into two columns in a table.  Would be something like:  INSERT INTO dm.billables_links (billable_id) VALUES ((SELECT billable_id FROM junk.wm_260_billables2 WHERE info ilike '%Ali%')),  INSERT INTO dm.billables_links (mobiuser_id) VALUES ((SELECT id FROM public.ja_mobiusers WHERE name_first LIKE 'Ali%' AND name_last LIKE 'Daon%'))   Question:  Note that the "billable_id" selected on the first INSERT must be related to the "mobiuser_id" selected on the second INSERT.  How can I do such a thing?   Table dm.billables.links columns:  billable_id, mobiuser_id  SELECT id FROM public.ja_mobiusers WHERE name_first LIKE 'Ali%' AND name_last LIKE 'Daon%'  950898  SELECT billable_id FROM junk.wm_260_billables2 WHERE info ilike '%Ali%'  13270372


how to run an application with a command in terminal from all users

I made a command for a user user1 so when i write in terminal cool-retro-term it runs the application   If I switch user to user2 and I try to run cool-retro-term or sudo cool-retro-term it says the command not found  I want to know how to make the command usable for all users.  Until now I installed and compiled the application like they said. then i made a bash script in /home/user1/bin where i added  #!/bin/bash /home/user1/cool-retro-term/cool-retro-term   to run my application   I modified .bashrc PATH=$PATH:/home/crs/bin and then I ran chmod u+x /home/crs/bin/cool-retro-term  I EDITED my question    i want to make my command something like ls or cd or other command usable for all users. something like that . ANY IDEAS?


Predict an angle between 0-360, how do I deal with the discontinuity at 0/360?

The title might be a bit convoluted. I have an image recognition problem where I have to detect a direction. If I represent the direction as an angle it has a discontinuity at 0-360. This is not exactly my problem, but similar. I want to tell the time from an image of an analog clock. If it is 11:59 and I predict 00:01 then the error is wrong (11:58) but more importantly in the wrong direction. How do I represent the output in such a way that will work in training. Edit: Not sure why this was tagged as duplicate, the question is not about measuring distance between points on a circle, the question is on how to perform backpropagation when the output is a continuous circular variable


In november i posted this question:   The question was how to modify the bibliography to how i wanted it to look. I wanted the webpage reference to look like this:     [#]    Author (year). Title. Available:      I got a good answer, but now I see that I get a dot after the URL, and I am not supposed to have that. Do you know how to "get rid of" the dot after the URL?  My MWE:  \documentclass[12pt]{report} \usepackage[a4paper,width=150mm,top=25mm,bottom=25mm]{geometry} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fourier} \usepackage{filecontents}  \begin{filecontents}{referanser.bib} @online{Ibsen90, author = {Henrik Ibsen}, title = {Hedda {G}abler}, year = {1890}, url = {http://www.uia.no/no/portaler/bibliotek/finn_fagstoff}} \end{filecontents}  \usepackage[norsk]{babel} \usepackage[     backend=biber,     style=ieee,     sorting=none ]{biblatex} \addbibresource{referanser.bib}  \DeclareFieldFormat[online]{title}{\mkbibemph{#1}\isdot}  \DefineBibliographyStrings{norsk} { bibliography = {Litteraturliste}, url = {Tilgjengelig},   }     \usepackage{xpatch}  \xpatchbibdriver{online}{%  \setunit{\adddot\addspace}%  \printtext[parens]{\usebibmacro{date}}% }{%  \setunit{\addspace}%  \printtext[parens]{\usebibmacro{date}}% }{}{}  \xpatchbibdriver{online}{%  \newunit\newblock%  \usebibmacro{url+urldate}% }{%  \setunit{\adddot\space}\newblock%  \usebibmacro{url+urldate}% }{}{}  \begin{document} \nocite{*} \printbibliography \addcontentsline{toc}{chapter}{Bibliographie} \end{document}


Is there "select all" functionality in the GMail app?

I've previously used the default Email app on my CyanogenMod 7 EVO because I had an Exchange account at work. However, I switched jobs recently and my new place just uses GMail corporate accounts (which I enjoy). Since I don't have the Exchange account anymore, I'd like to move over to the GMail app because I prefer the UI and whatnot, but I can't for the life of me find any kind of "Select All" functionality in it.  The Email app allows me to do this from the options menu (Menu->Select All selects everything in the current folder). In GMail I noticed that if I select one or more items, then "Deselect All" becomes available in the options menu, but not "Select All". I've also tried various forms of long-pressing on messages, accounts, and folders to no avail.  Is there any way to do this in the GMail app, or am I just stuck without it? I searched the issue tracker and didn't find anything relevant, which surprised me a bit, to be honest. Obviously I can do this from a computer if I need to empty a folder/label, but I'd kind of like to retain the functionality on my phone, too. Am I missing some non-obvious (or perhaps even obvious) menu item somewhere?


How does one correctly use a suspended hyphen when the words aren't written together?

My example in this case is "activity- and experience verbs", in the meaning "activity verbs and experience verbs". Does the hyphen suggest that "activity-verb" or "activityverb" is the uncontracted phrase, or is it correct to use a hyphen like shown in this case?


On iOS if you visit a website with an invalid SSL certificate, you are presented with this prompt (ok, it’s in italian but you get the picture):    Tapping “show details” allows the user to proceed to the website, assuming he understands the security implications.  In my case I had to accept a self signed certificate to a local web server but it’s not required anymore.  The problem is that I didn’t find any way to remove this exception to make safari show the warning again (restoring settings doesn’t seem to work).  Do I really have to perform a full restore?


Can we add 'Helpful flags count' and 'profile views' on mobile site/devices?  I'm aware of the following old question (and which may get this post marked as a duplicate) but I'm keen on providing, where possible, an appropriate and valid experience regardless of the device used by users:        Is there a reason why both can't be listed in the mobile view of SO? I log in frequently using a desktop, tablet and mobile device (depending on where I am and what I might be doing) and it seems we're missing a trick here to unify functionality and information across devices.  There are  in the above mentioned question as to what items are less important/displayed and I agree that these items are far more valuable than knowing my own age, location, email etc.   As a multi-device user, I'd prefer to see elements listed that can and do change rather than echo static data and exclude dynamic information based upon what device is used to access SO and other SE sites.


Release unused space from SQL Server database

We have deleted a large part of the data from a two-digit terabyte sized database, and would now like to release some of the space back to the operating system. The database is currently about 80 % unused space. It will never reach its former size again (the load has been transferred elsewhere).  We have tried running SHRINKDATABASE on a copy of the database on a separate server (non-production). Running for 2 days (on our hardware) it was able to release the space.  I'm assuming it will take much longer on the database in production, as this is heavily used (mostly for querying now though, less so inserts).  Only hours of downtime (at a time) is acceptable on the production system. Some performance degrade over extended periods would be acceptable too.  Any ideas on how to release this amount of unused space, without having excessive downtime, or introduce severe performance degrade during the process?


How would I setblock multiple command blocks in a row that have commands in them?

I want to have a command block that uses the setblock command (or any command that will work, but I'm new to command blocks and setblock is what  I know) to place another command block that will also setblock a command block with a command that will yet again setblock a command block with a command and so on. In the end I want to setblock 4 command blocks. In my testing this is what I've been doing: Command block 1: /setblock x y z command_block{Command:"setblock x y z command_block{Command:'setblock command_block{Command:setblock x y z command_block{Command:'setblock x y z command_block{Command:time set day'}'}'}'}"} --This is accepted as a valid command Command block 2: setblock x y z command_block{Command:'setblock command_block{Command:setblock x y z command_block{Command:'setblock x y z command_block{Command:time set day'}'}'}'} --This is not accepted as a valid command, and thus the setblock chain ends there. What am I doing wrong? Is what I'm attempting even possible?


Thinkpad X1 Carbon - volume buttons no longer working

I've upgraded to 14.04 LTS, and now my volume up and down keys no longer work.  The mute button still works, bizarrely. The Media buttons (prev track, play/pause and next track) have also stopped working.  I have a previous generation Lenovo ThinkPad X1 Carbon i.e. the one without the 'soft function keys', so this is not a softkey issue.  Worked previously with Ubuntu 13.10. I am using an up to date install.  uname output: Linux 3.13.0-34-generic x86_64 GNU/Linux  I've checked the system settings->keyboard->shortcuts->sound and media and they register the up and down volume keys just fine. If I change the keys to be (say) ctrl- and ctrl+, then I can alter the volume, but when I change them back to 'Audio lower volume' and 'Audio raise volume' by using the keys, they no longer change the colume or activate the top-right corner 'control flash' the same way that mute or brightness controls do.  I'm at a loss. There's obviously nothing wrong with the keys, but somewhere in the OS the keypresses are being diverted or dropped and they don't make it through to applications as events...


How do I deal with a ${PWD##*/} variable for FFMPEG input when there's spaces in the folder name?

I have a .bash_profile script that uses FFMPEG to create a ProRes file from an image sequence. The name of the FFMPEG output file is taken from the current working directory. I'm fine taking the name from the parent directory because After Effects is set to create a folder for each image sequence render that has the same the name as the sequence.  This works fine if there's no spaces in the name. Example: My_Movie/My_Movie_00001.tif, etc gives me My_Movie_ProRes.mov  But I'd like to have it also work for folders with spaces in the name. I've tried adding quotes to various places but it just either fails or outputs as _ProRes.mov with no folder name at all.  pro () {  OUTPUT_NAME=${PWD##*/}  local fps=24; local filename="${OUTPUT_NAME}"_ProRes.mov; local ext=tif;  while test $# -gt 0; do     case "$1" in         -fps)             shift             fps=$1             shift             ;;         -filename)             shift             filename=$1             shift             ;;         -quality)             shift             quality=$1             shift             ;;         *)             echo "$1 is not a recognized flag!"             return 0;             ;;     esac done       /usr/local/bin/ffmpeg -r $fps \     -f image2 -pattern_type glob \     -i "*?$ext" \     -codec:v prores_ks \     -pix_fmt yuva444p10le \     -vf scale=out_color_matrix=bt709 \     -profile:v 4444 \     $filename }   SUCCESS! Thanks for your insight, especially John1024 and Jesse_b!   pro () {  OUTPUT_NAME="${PWD##*/}"  local fps=24; local filename="${OUTPUT_NAME}"_ProRes.mov; local ext=tif;  while test $# -gt 0; do            case "$1" in                 -fps)                     shift                     fps=$1                     shift                     ;;                 -filename)                     shift             filename=$1                     shift                     ;;                 *)                    echo "$1 is not a recognized flag!"                    return 0;                    ;;           esac   done        /usr/local/bin/ffmpeg -r $fps \     -f image2 -pattern_type glob \     -i "*?$ext" \     -codec:v prores_ks \     -pix_fmt yuva444p10le \     -vf scale=out_color_matrix=bt709 \     -profile:v 4444 \     "$filename" }


Windows 10 Some settings are managed by your system administrator

I have this thing in at least Windows Update, Insider Previews are disabled and Privacy Settings where is disabled send keystrokes to Microsoft. Additionaly I have disabled Cortana "By company policy". It is my personal PC.  Please, how to fix it? Only thing that I remember that may cause it, that I tried some (public) VPNs trough Windows Network.  I have Windows 10 Pro.


The object size changes when rendering. The whole object shrinks vertically. I haven't used  Subsurf Modifier. But I did realize that in Render Preview the object size is normal. As soon as I render the image, it is shrinked.       Blender File:   I hope you can help me with this.


Let $f(x)$ and $g(x)$ be continuous non decreasing functions defined on $\Bbb{R}$ such that $f''(x)= g(x)$ and $g''(x)= f(x)$. Suppose $f(x)g(x)$ is linear in $x$ in $(a,b)$. Then prove that $$f(x)=g(x)=0 \quad\forall x\in (a,b)$$


I am trying to upgrade from Ubuntu 18.04.5 LTS to 20.04 LTS. I know that it is only possible to upgrade from a LTS (18.04) version to (20.04), but should 18.04.5 be considered as 18.04 ? Or do I need to reinstall? I've tried the GUI way with "Software update" which doesn't find any updates and as well these commands; apt-get update apt-get upgrade apt-get dist-upgrade do-release-upgrade  which gives me There is no development version of an LTS available. To upgrade to the latest non-LTS develoment release  set Prompt=normal in /etc/update-manager/release-upgrades.


Should the party gain XP for monsters defeated by alternate or roundabout means?

This question was inspired by an answer in . Suppose the Player Characters are attempting to protect their little village from a huge monster, Godzilla in this case. Obviously they'd get xp if they murdered Godzilla with their swords or banded together to sing a moving song to convince the enormous beast to seek a meal elsewhere. However, would they get Xp for luring Mothra into Godzilla's path and having the two titans duke it out (thus preventing their village from being destroyed)?  The question that inspired this was specific for 5th edition, so I'd prefer answers from that ruleset, though if any of the older systems have an interesting take on it, I'm happy to read it.


What does "Normal Shutdown, Thank you for playing [preauth]" In SSH logs mean?

Recently, My SSH log summaries for my Ubuntu 12.04 servers in Logwatch have started showing entries for "11: Normal Shutdown, Thank you for playing [preauth]" along with the "11: Bye Bye [preauth]" and "11: disconnected by user" messages they had been showing previously.  I have not seen this message in my logs before the past few weeks, nor have I seen it on my older servers which are stuck on Ubuntu 10.04. I have googled this message and can't find any clear explanations there either.  The IPs attempting to login and receiving this message are random hack attempts, and judging from the preauth I assume (hope) they are not successful, but I would like to know exactly what this message means and how it differs from others to be sure.  EDIT for additional information: My servers have password authentication and root authentication both disabled


How to connect the ground in this common base schematic to a breadboard?

I just want to know how do I connect the ground in this common base circuit. I know how to connect two DC sources but I'm confused on how to connect the ground. I have adept knowledge about the concept of ground, I just want to know how to connect the ground (0V) in this schematic to a breadboard.


Why can my keyboard only digest 6 keypresses at a time?

When I slam my hand onto my keyboard, only a maximum of 6 keys will be registered, I've tested this for the past few minutes and was unable to get more than 6. Is this the same on all keyboards? If not, what would be the distinguishing factor, If yes: why 6 specifically?  For clarification: I do not have a usecase for this, I am simply curious


I have a Param block in my script   Param (     [Parameter(Mandatory=$True)]     [string]$FileLocation,      [Parameter(Mandatory=$True)]     [string]$password = Read-Host "Type the password you would like to set all the users to" -assecurestring )   Can I use the Read-Host CmdLet in a required Parameter field? if not what can I do to make sure I take in the correct type of variable type so I can pass it to a user creation process?


Can I choose which OS I want to startup with while booting

I have Windows 7 Professional. Will the system ask me with which OS it will start (Windows or Ubuntu) on startup or will it load only Ubuntu?


One word for "One who notice very small mistakes"?

Is there any single word for one who observe or notice every single small mistakes of others?


If multiple hypotheses can explain the same set of facts, is it possible to tell which one is ultimately true?

Given a set of observable facts, let's suppose that there are multiple hypotheses compatible with those facts that can explain them. Is there any way to tell which one of these hypotheses is ultimately true? Or are we doomed to use "rules of thumb" and heuristics to "rank" the hypotheses in an attempt to handle the uncertainty?


Required to Reboot my Android Device Every Week?

When I got my first Android phone (the rugged HTC Inspire), I was told that I should restart the device every week. The rational, which made sense at the time, was that it's a small computer and every computer needs a soft reset, right? Over time, my phone needed it from continual app crashes but it took forever to do so. Overall, it did help to restart  I've recently upgraded to the HTC One and, from what I can tell, I don't need to restart this thing every week. It's run for a couple weeks on end without problems (one app-hangup what wasn't fixed with a restart) and although my usage isn't intensive, it's getting heavier.  Is it a good idea to restart my Android device after a certain period of time or does it not do anything at all. I'm not so much worried about harming the device but just keeping all of my info current without needing to open up half-dozen apps every time.  EDIT: Sorry if this comes as a duplicate question. I tried looking around for other answers but my particular question related to normal/periodic rebooting not related to a slow-down of the OS or other apps. Most questions regarding rebooting of an Android device revolved around either a slow OS or apps hanging and not necessarily answering my question.


Can any number sequence be found in $\pi$?

I read somewhere that any finite number sequence must be found in $\pi$. For example, $0998975645455$ must be somewhere in the digits of $\pi$.  The reason for this was that $\pi$ is irrational, meaning it's infinite and irregular.  But $\sum_{k=0}^n \frac{1}{10^{k!}}$ is transcendental and its digits are composed of $0$ and $1$ only.  So irrationality does not guarantee the property I mentioned.  Is it really true that one can find any number sequence from $\pi$?


Should I use confidence or prediction interval to calculate cost uncertainty (Simple Linear Regression)?

(I'm going to give an analogy, since I can't use the real example as it's work related!) I need to estimate how much it may cost to purchase a 200kg refrigerator, based on previous experience. I have a linear graph (R^2 > 0.9) detailing over 100 purchases of refrigerators, detailing its weight (x-axis) and cost (y-axis). Let's say the refrigerators in the dataset vary from 10kg to 1000kg (i.e. no extrapolation required). Assuming I wanted to know the y-value (cost) at X = 200 (weight), how could I calculate the uncertainty? Would this be the smaller confidence interval, or the larger prediction interval? I've always struggled with this question and would greatly appreciate a distinction of when to use one rather than the other. Thank you


How can I calculate the probability for multiple trials with different probabilities?

So for a bit of recreational spreadsheet creation I've been pondering probabilities.  Let's say I have two types of trial, A and B, with a 40% and 25% chance of success respectively. How can I calculate the probability, for instance, that I get at least two successes if I run trial A three times and B twice?  As I understand it, I can use a binomial distribution to calculate each one individually: 35.2% for at least two successes from A, or 6.25% from B. In addition, I would reckon the probability of getting at least one success in the combined set to be 87.85%, as I calculate a 12.15% chance of getting exactly zero successes on all five trials.  I'd greatly appreciate a little help working this out, because it's been bothering me for a couple of days.


I noticed a really huge, beautiful web on my porch last week, and tonight, I discovered its resident. I'm thinking it's an Araneus diadematus (Cross Orbweaver), but I was hoping for some confirmation.   Can anyone confirm this or offer a better suggestion?


NullPointerException when getting elements from Array

I'm trying to print out the names of the employees and their department and location from a list of the names and id numbers and I keep getting the NullPointerException even though it prints all of the names and locations. It then stops the build and doesn't xecute the print department and print location methods.  I've tried re-doing the for loops and seeing if any one data point was the problem but it seems to happen if I do the loop for all of the Employee objects or if I just do one.  package homework5_parth_desai;  import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner;  /**  *  * @author Party Parth  */ public class Homework5_Parth_Desai {      public static int emplIndex = -1;      /**      * @param args the command line arguments      */     public static void main(String[] args) throws FileNotFoundException {         File file = new File("acmeEgr.txt");         Scanner scan = new Scanner(file);         Employee[] emp = new Employee[50];         String s = "";         String t = "";         int r = 0;          while (scan.hasNextLine()) {    //scans in file              emplIndex++;             emp[emplIndex] = new Employee();             if (scan.hasNextLine() == true) {    //takes first line as first name, second as last naem and third as id number and tehn ccreates an object out of that                 s = scan.nextLine();                                }             if (scan.hasNextLine() == true) {                 t = scan.nextLine();             }             if (scan.hasNextLine() == true) {                 r = Integer.parseInt(scan.nextLine());             }              emp[emplIndex].Employee(s, t, r);              // TODO code application logic here         }          printAll(emp);          printDepartment("IT", emp);          printLocation("Auburn Hills", emp);      }      static void printAll(Employee[] ppl) {         for (int i = 0; i < ppl.length; i++) {             System.out.println(ppl[i].toString());         }     }      static void printDepartment(String title, Employee[] ppl) {         for (int i = 0; i < ppl.length; i++) {             if (title.equals(ppl[i].getDept())) {                 System.out.println(ppl[i].getName() + " is in " + ppl[i].getLocation());             }         }     }      static void printLocation(String loc, Employee[] ppl) {         for (int i = 0; i < ppl.length; i++) {             if (loc.equals(ppl[i].getLocation())) {                 System.out.println(ppl[i].getName() + "  is in " + ppl[i].getDept());             }          }     } }   Small exert of the .txt file:  Alexander Seiber 10010 Zehua Showalter 20010 Cassidy Woodle 20030 Randall Shaukat 10030 Pam Korda 10020 Justin Polito 20030


Data Error (Cyclic Redundancy Check) during hard drive format?

I received a new HDD from my uncle, RAW file system. Tried CHKDSK, but it didn't work because of the RAW file system.      Update  I ran SpinRite 6 overnight and it got nowhere. Stayed at 0% for the whole 10 hours. SpinRite also gave me a notification that this drive is most probably toast. I think I am going to throw this drive away.


How do I change the display name for my Stack Exchange Network profile?

Is it possible to change the "user2612587" display name and also change the picture for the Stack Exchange Network profile, like on all the other sites on the network? Or is the Stack Exchange account a generic one that can't be changed?  There are a few questions and answers about changing the display name but I don't think it addresses this particular question. Because the answers to those questions are usually about the synchronization mechanism.  For example, I saw :     Did you change all of the display names manually, without using the   synchronization mechanism? If so, try this:         Go to your account page   Click the "Accounts" tab   Scroll to the very bottom   Click the "Copy [site] profile to all Stack Exchange sites"      I have tried this, but in my case that option isn't showing up.


FFMPEG and input video-any way to retrieve height & width dynamically?

What I am trying to do is set up one script that will check the ratio of height over width and then determine WHICH dimension to scale to fit HD(1920x1080). Is this possible using standard FFMPEG commands?  I also need to crop either height or width if the resulting dimension is larger than 1080 or 1920 respectively.  I've already read this   so i know how to scale if you know in advance WHICH dimension of your source video is larger.


How to remove Launcher and go back to desktop icons?

So can I go back to the old Menu Desktop.  I would like the old desktop like in 9.04


What to do with users making lots of pointless edits?

I saw  which has been locked for almost 2 years get bumped back into the main feed, and when I checked out the revision that bumped it, I see that  which are doing nothing but bumping things needlessly.  Maybe he's grinding for Copy Editor, maybe he's just bumping stuff he likes, but it seems a bit excessive.  What's the community view on folks who make massive amounts of "non-edits" like these and what's the preferred way of dealing with it?


how to iterate through an array without knowing the size in c

I have a pointer to an array in C which I would like to iterate through, but I don't know the size: int *array;  I am unsure as to how I should proceed. I was thinking that I should probably try by finding the size by doing: int array_size = sizeof(array) / sizeof(int);  But I don't know if that could work. I was wondering if there was a more optimal way of doing this?


"Could not read the contents of media" - PERMISSION DENIED

How can I access all files and folders on my user  username/media/ directory?  I'm using Ubuntu 18.04.3 LTS.   Ubuntu's Nautilus can indeed access all files and folders in all locations. However, Ubuntu's software that I have downloaded (e.g. KRITA, WPS WRITER etc) can NOT access any file or folder on the /media directory. Thanks in advance.


Where is the loop hole in my code..  trigger updateSumOfTotal on contact (after insert, after update) {     set<Id> toUpdate = new set<Id>();     List <Account> toUpdateDML = new List<Account>();     Map<Account,List<contact>> accToOpp = new map <Account,List<contact>>();     public Decimal annualrevenue;     for(contact o : trigger.new) {         toUpdate.add(o.AccountId);     }     for(Account a : [SELECT Id,LightiningName__Sum_of_Total__c,(SELECT ID,LightiningName__Amount__c FROM contacts) from Account WHERE Id IN : toUpdate]) {         accToOpp.put (a, a.contacts);         annualrevenue=0;         for(contact ooo : accToOpp.get(a)) {             if(ooo.LightiningName__Amount__c!=null){                 annualrevenue +=ooo.LightiningName__Amount__c;             }         }         a.LightiningName__Sum_of_Total__c = annualrevenue;         toUpdateDML.add(a);     }            if(toUpdateDML.size()>0){          update toUpdateDML;      } }


Show that $a_n=\frac{1}{2}+\frac{1}{3}+...+\frac{1}{n}$ would not contain a natural number for all n

Show that the series: $a_n=\frac{1}{2}+\frac{1}{3}+...+\frac{1}{n}$ would not contain natural number for all n  Can I prove that  using "simple tools"?