Creating and ordering an array before looping through it

I need to create an array from XML response and then order by one of the existing XML field.  I have parsed the XML fine and ended up with 3 values that I need in my foreach loop.  $optionsArray = array();  foreach ($options as $key => $option) {   $price = $option->Price;   $shortDesc = $option->ShortDescription;   $longDesc = $option->LongDescription;    $optionsArray[] = array('shortdesc' => $shortDesc, 'longdesc' => $longDesc, 'price' => $price); }   This works fine, but now I wish to order the array using the 'price' value (descending) and then I can show the items correctly.  I have looked into usort and arsort and all the others but cannot make sense. Any examples using my code for help?  Thanks.


Where are the image files for the software logos kept?

I'm looking for the image file where the logo for Vim is stored on my system. When I go to my bin, I can find "links to shared libraries". I run whereis vim  And I can find one of the paths it lists is in /usr/share/vim  I tried searching using the find command for file extensions .png, .jpg, .jpeg, but I could not find anything in that directory. Does anyone know where I can find the file? Even knowing the file type of the logo file might help me (assuming I have correctly identified the directory in which it is located).


Best use cases for currying functions and partially applied functions in scala

I'm trying to learn Scala and I'm confused when to use currying functions over partially applied functions.  I'm pretty sure those concepts were not made to be redundant, but I can't see the real purpose of the different approaches.  I was experimenting with this code:  Solution uses currying:  object CurryTest extends App {    def filter(xs: List[Int], p: Int => Boolean): List[Int] =     if (xs.isEmpty) xs     else if (p(xs.head)) xs.head :: filter(xs.tail, p)     else filter(xs.tail, p)    def modN(n: Int)(x: Int) = ((x % n) == 0)    val nums = List(1, 2, 3, 4, 5, 6, 7, 8)    println(filter(nums, modN(2)))   println(filter(nums, modN(3))) }   Solution uses partially applied function:  object PartialFunctionTest extends App {    def filter(xs: List[Int], p: Int => Boolean): List[Int] =     if (xs.isEmpty) xs     else if (p(xs.head)) xs.head :: filter(xs.tail, p)     else filter(xs.tail, p)    def modN(n: Int, x: Int) = ((x % n) == 0)    val nums = List(1, 2, 3, 4, 5, 6, 7, 8)    println(filter(nums, modN(2,_)))   println(filter(nums, modN(3,_))) }   Both give the same result:  List(2, 4, 6, 8) List(3, 6)   Are those different approaches equivalent?  Could somebody enlighten me, what is the best use case for each?


Kernel Update uname showing wrong version

I recently got a new server. Freshly installed 16.04. I noticed the kernel running is 2.6.32. So I wanted to update it.   sudo apt-get install --reinstall linux-generic   Now I have this version: 4.4.0-21.37  I also had to install grub to use update-grub.   dpkg --list shows me only linux-headers/images of 4.4.0-21.37.  Also update-grub found kernels of that version.   But when I use uname it still tells me this  Linux london 2.6.32-042stab113.21 #1 SMP Wed Mar 23 11:05:25 MSK 2016 x86_64 x86   Yes I did reboot a couple times. Maybe you can help me.


i've been trying to center my form & input horizontally but it doesn't work  I've tried using margin & padding but nothing works.    body {     background-color: #2F2F2F; }   /* Form (outside) */ .form-inline {     padding: 1% 0%; }  /* Input (inside) */ .form-control {     background-color: #353434;     border: #3E3E3E 2px solid;     /* Top right bottom left */      /* Align the writing in the center*/     text-align: center; }   /* Search text */ .form-control::placeholder {     color: #AEAEAE;     text-align: center; } <header>     <!-- Search inputForm -->     <div class="container">         <form class="form-inline my-2 my-lg-0" action="#POST">             <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">         </form>     </div> </header>


How can I disable alt+click window dragging?

In Ubuntu 14.04, when you hold Alt and click a window, you can drag it around.  As I understand, you used to be able to disable it through gconf, but Unity doesn't read settings from here any more (hence not being able to change where the window buttons are any more).  There's no setting for this by default, and I can't find anything in Unity Tweak Tool either.  Is there anyway to disable Alt+click window movement in 14.04?


I'm using Ubuntu 13.04 with Unity. Whenever I log in into my computer, the screen becomes black, then purple (that dark ubuntu-color) and that switches a few times. Between that the screen shortly shows a nvidia-logo. Then it switches back to the login-screen.  What is wrong with my PC? What can i do? I hope you could help me...  PS: Sorry for my bad english, I'm no native speaker.


php - Fatal error: Allowed memory size of 134217728 bytes exhausted

I'm creating a function that imports a csv file into a database. But an error has occurred, and i was wondering how to fix this.      Error:   Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes)   My function:  importFile("ingram", "ingram_fees.txt", "ingram_fees");  function importFile($company, $fileName, $tableName) {     $filePath = "./ftp_imports/".$company."/".$fileName;     $file = fopen($filePath, "r");     $firstRowNames = fgetcsv($file);     $columnNames = array();     $rows = count($firstRowNames);     $i = 0;     while ($i < $rows) {         array_push($columnNames, toCamelCase($firstRowNames[$i]));     }     if ($result = $mysqli->query("SHOW TABLES LIKE '".$tableName."'")) {         if($result->num_rows !== 1) {             $queryCreateTable = "CREAT TABLE $tableName (";             $num = count($columnNames);             $i = 0;             while ($i < $num) {                 switch (gettype($columnNames[$i])) {                     case 'string':                         $queryCreateTable .= $columnNames[$i] . " VARCHAR(25)";                         break;                     case 'integer':                         $queryCreateTable .= $columnNames[$i] . " DECIMAL(10,2)";                         break;                     case 'double':                         $queryCreateTable .= $columnNames[$i] . " DECIMAL(10,2)";                         break;                     case 'NULL':                         $queryCreateTable .= $columnNames[$i] . " VARCHAR(25)";                         break;                     default:                         break;                 }                 if ($i !== ($num - 1)) {                     $queryCreateTable .= ",";                 } else {                     $queryCreateTable .= ");";                 }             }         }     } else {//table already exists         $queryDelAll = "TRUNCATE TABLE $tableName";         $db->query($queryDelAll);          $queryImport = <<<eof             LOAD DATA LOCAL INFILE '$filePath'             INTO TABLE $tableName             FIELDS TERMINTED BY ','             LINES TERMINATED BY '\n'             INGORE 1 LINES             ($columnNames)             eof;             $db->query($queryImport);         }     }   and the function that gives the error because of its memory usage.  function toCamelCase($string, $capitalizeFirstCharacter = false) {     $str = str_replace(' ', '', ucwords(str_replace('-', ' ', $string)));     if (!$capitalizeFirstCharacter) {         $str[0] = strtolower($str[0]);     }     return $str; }   Because the $columnNames array is only 8 values long I don't know why the memory usage is that high.  Can someone help me out?  Thanks, Per


How old is SpongeBob? I don't mean how old is the series, I mean what is SpongeBob's age if he were a real person. I ask because his age seems to be ambiguous in the show.   He has a full-time job He has his own house He is always referred to as a kid (especially in the movie) He acts childish and immature In one episode, he was pretending to be an adult/grown-up


What is the probability of getting one of each 10 different figures if we bought 25 pack?

There are 10 differente figures (A,B,C,D,E,F,G,H,I,J), all equally probable to get.  We bought 25 pack which each contains only 1 figure  What is the porbability if we bought 25 packs we got all the differente figures, we found all the figures?  I figured that the total numbers of outcomes will be based on repetitive combination so (25-1+10 10) but i don't know how i should calculate the numbers of possible good outcomes


Let $a,b,c$ be positive real numbers such that $a+b+c=1$. Prove that $$  \frac a{a^2+b^3+c^3} + \frac b{a^3+b^2+c^3} + \frac c{a^3+b^3+c^2}\le\frac1{5abc}.$$   I tried using AM-GM-HM-QM inequality but had no luck.


I have been getting flats every 20-30 miles for the last 2 months. This has caused serious inconvenience to me, as bicycle is my preferred mode of transport to work and class. Details of the situation:    Hybrid bicycle  (Specialized Globe 2007 -- 5,000 miles ballpark on it) Only rear wheel is flatting Rear wheel is 622x19C rim Tire is 700x35, Kenda 700 35-42 inner tube I just replaced the whole rim and spokes, for $60 (I had a lot of broken spokes and the rim was out of alignment badly). However the flats keep coming. Tire pressure suggested on the rear wheel is 30-60 PSI  I run the pressure between 50-60 PSI I weigh 212lbs. and I carry up to 30 extra pounds of load (backpack etc.) The holes in the inner tube are usually single tiny punctures. I never find anything in the tire like glass or anything The tire seems to have been worn very quickly (it seems kind of like a cheap tire).    Is the tire a possible cause, or is it possible that some misalignment in the hub (Shimano attached to an 8 speed cassette) is just messing things up?  This is driving me crazy... maybe I should buy a new tire and run the pressure much higher?  Run the pressure lower?   buy some specialized kind of inner tube?  I would really do anything to avoid having to patch flats every other day!  **** THANKS EVERYBODY, I BOUGHT AN ARMADILLO FROM SPECIALIZED... NO FLATS IN 2 WEEKS **** I think the pressure was way too low on the piece of crap tire i had before ... armadillo is solid!!


Slow edit when using subdivision modifier

When i create a Suzanne monkey in a new file i put subdiv modifier at 3 and try to grab a vertex, it's slow a bit. But when subdivided by 4 in the modifier it's very slow. The viewport is slow in rotation and moving even slower in 5 the subdivision modifirer. My machine can't work with more than 30 thousands verts without slowing down All of that just in edit mode, completely unusable. I tried windows 10 and 8.1 with different drivers and tried blender 2.8 and 2.79 all has the same problem.


Given that $$\sum_{n=1}^\infty \frac{1}{n^4} = \frac{\pi^4}{90}$$ find $$\sum_{n=1}^\infty \frac{(-1)^n}{n^4}$$ The answer should be $\frac{-7\pi^4}{720}$.


Was Starkiller Base a rogue planet, wandering through the galaxy/universe?  The planet could be similar to Zonama Sekot,( a sentient world born from the homeworld of the Yuuzhan Vong, and capable of hyperspace travel.)


Proving the number of iterations in the Euclidean algorithm

Let m and n be natural numbers. Suppose $ min(m, n) \leq 2^k $ for some natural number k. Show that the Euclidean algorithm needs at most $ 2k $ iterations to find the GCD of m and n. Basically I have no clue how to start this proof, I think I should be looking at the remainders and somehow showing that $ a_{k+2} \leq \frac{a_{k}}{2} $ where $a_{k}$ represents the kth remainder. Other than that, I have no clue about where to begin.


I have follwing questions regarding English  What are the interrogative forms of the following statements   Twenty third CHOGM was held in Sri lanka.(Interrogator needs to know the number)(Please compare (What was held in Sri Lanka ?)Do we have to use any word like when, how, why,... Sam came 2nd in the race.(Interrogator needs to know the number)   Thanks  UB


Find all positive integers, n<200, such that n² + (n+1)² is a perfect square.

This is what I could do: $$ n² + (n+1)² = a²$$    $$2n²+2n+1=a²$$ $$4n²+4n+2=2a²$$ $$(2n+1)²-2a²=-1$$ This is a negative Pell's equation. One of its solution is $2n+1=7,  a=5$. How can I get to other solutions?


Is an empty set equal to another empty set?

I have a definition that claims that two sets are equal A = B, if and only if:  $\forall x ( x \in A \leftrightarrow x \in B)$  An empty set contains no elements. If I define the sets:  A = $\emptyset$  B = $\emptyset$  then can I conclude that A $\neq$ B? Since they contain no elements? Or would I have to show that an elements exists in one but not the other? To me it seems that these are not equal, but I'm struggling to wrap my head around this.  Thanks, Paul


How to install Ubuntu 13.10 on Acer C7 Chromebook via USB?

I am using Chromebook Acer C7. Since the BIOS is EFI, how can I install Ubuntu 13.10 from USB on that laptop? Will Unetbootin work on that? As I went to that website it tells that it can't boot from Mac OS X devices, so I suppose it will not work on chromebooks. So if not then what tool will?   I heard that Ubuntu 13.10 will come with kernel 9.12 or something that which will support chromebook. But can I make bootable usb or will it download and install from net as 12.04 and 13.04 do directly? Can anybody help?


Crontab - First Wednesday of the month that is followed by the first Monday of that month

Looking to execute a script on the first Monday of the month, then a different script on the first Wednesday of the month.  The issue is that if a new month starts on a Tuesday, for example, then the "first Wednesday of the month" action will hit first.  I'd like to have this configured so that the "first Wednesday of the month" action only occurs if it follows a Monday within that month.  Logic can be used to figure this out from a scripting perspective, but the problem is that I need this in a cron expression since that is the only way I can schedule this in the system I am using (it requires a cron expression for advanced scheduling, and details of this system is not relevant to this question).  Edit: There is no dependency or relationship between the aforementioned scripts being executed by cron.  For the sake of simplicity for the question, they would simply be two separate cronjobs in the same crontab.


How do users escalate concerns about an abusive employee?

Is there a formal grievance policy for reporting incidents where you believe an employee of Stack Exchange has been malicious towards a user of the network?  I'm looking for some official, ideally transparent way to express concerns regarding an employee that I've witnessed behaving in a way I believe is intending to cause personal and professional harm and distress towards at least one user of the network. I'm looking for transparency, as a way of receiving some personal protection against similar actions being taken against me.  Normally I would expect the process to involve contacting team@stackoverflow.com, but in this case I believe there needs to be an escalation, or at least circumvention, because the employee I'm concerned about is in a position of influence and power over our normal community management team.  What can I do? And if there's no such process, how can I protect myself from also being targeted as a whistle blower?    I have received a private contact from another party within the company regarding my concerns, for the record. I do not plan on disclosing details further than that, but I felt that the level of user attention this received means I have an obligation to report back to the community the steps being taken to remedy my concerns.


I'm trying to create a 3D heat map model out of data that I have from a csv file. I have a few thousand data points with XYZ coordinates.  I'm able to import the data into blender as a point cloud with , however I would like to create a model with solid faces. Is there a way when importing the data to somehow join the points to create faces instead of generating thousands of separate points?  Currently, this what I have in terms of point cloud  The end product would look something like this (minus the texture) and obviously the model wouldn't be as regular as this one  Any help is greatly appreciated!


Can I travel back to my homeland after being granted German refugee status?

I was recently granted German refugee status with a travel document and, in my interview, I told them I would never go back to my home country, Iraq. Now, someone I loved died in my country.  Is it possible for me to leave and return to the Schengen area, using my Iraqi passport? Would German Immigration notice and would it revoke my refugee status?  Would I be able to use both my Iraqi passport and my German travel documents? Would the German authorities know if I did this?


How can I improve water volume with a half-inch supply?

I have a 1/2" pipe system in my house. The water pressure is very good if there is only 1 source of water open (bathroom faucet, kitchen faucet); but if there are 2 sources of water open then it is very low pressure/flow. Or if I flush the toilet and the other sink will have low flow.  Is there any way I can improve this? Thank you.


Vertical line for the the right margin in Notepad++

Does anyone know if Notepad++ can display a vertical line on the right margin to indicated that the text will or will not fit on a printed page?  I have looked but I cannot find it.  Word wrap does work, but it wraps by my screen width, not by the width of a printed page.


Citation: How to set up lower case in partial citation and upper case in full reference for the author names?

Note: My english isn't that good. My native english is german. I don't know the correct definition of german wissenschaftliche Ausarbeitung, which I called here as academic writing, german Kurzbeleg, which is the short reference in a citation in a continuous text, which I called here as partial citation and german Langbeleg, which is the full entry in the bibliography at the end of the written work, which I called here as full reference. I also couldn't find a correct translation of this definitions. So I someone has the experience with it, so please edit this question in the correct manner. Sorry for the inconvenience and thank you!  For my academic writing I have to set the names of the authors like this example:   Partial citation: (Surname, Name 2000, S. 1) Full reference: SURNAME, NAME, 2000. Title...   Code for above example:  \documentclass[ngerman]{scrartcl}  \usepackage[T1]{fontenc} \usepackage{             babel,             csquotes            } \usepackage[             backend = biber,             sortlocale = auto,             sorting = nty,             style = authoryear-comp            ]{biblatex}  \begin{filecontents}{\jobname.bib}   @book{         Sur,         author = {Surname, Name},         title  = {Title},         year   = {2000},        } \end{filecontents}  \addbibresource{\jobname.bib}  \begin{document}    Test \autocite[1]{Sur}.   \printbibliography  \end{document}   How can I solve this task?  Thank you for your help and effort in advance!


Taskbar > File Explorer > Context Menu failing me

So I have the latest version of Windows 10, and this is a new PC.  File Explorer is in the taskbar.  When I open the context menu (right-click) on it, I get the list of folders as seen in the picture.  When I right click on any of them, I get the blank black box you see in the picture.  If I click on any of the folders, such as Downloads or Update.  Nothing happens.  They don't open.  The only way to use it is to click on the actual File Explorer icon and then navigate from there.  I've tried uninstalling things (not that I have much installed since it's a fresh install) and I've tried scans, etc.  This only happens with File Explorer.  Everything else works fine.  I can't figure it out.


How Do I Replace Default Ubuntu 18.04 Wallpaper?

I want to replace the default wallpaper in ubuntu 18.04. But I wonder how. I am making my own custom linux distro. can't I just replace the default wallpaper file? Or do I have to do more?


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


How to get package when Ubuntu Archive not working?

I'm trying to install Maven on my PC, but one of the packages it uses cannot. be installed from the package manager. Specifically libxmlgraphics-commons-java. I try going directly to the archive through my browser but no luck i.e.


I am trying to install  and followed the installation instructions provided at its Github page.  Installation got over but now I am getting an error as command not found: nvm when I try using nvm install 0.8  Can someone please help me find out why I am gettting an error that nvm is not found when I have already installed it.


Solving $\begin{cases} 4u_{tt}-3u_{xt}-u_{xx}=0\tag1\\u(x,0)=x^2\quad\text{and}\quad  u_t(x,0)=e^x\end{cases}$ in $\mathbf R\times\mathbf R_{>0}$   First I factorized and get for the first line;  $(\partial_x-4\partial_t)(\partial_x+\partial_t)u=0$ and set $v:=(\partial_x+\partial_t)u$  then $v_x-4v_t=0$ is transport equation with solution $f\left(x+\frac{1}{4}t\right)$  hence  $(1)$ is reduced to $u_x+u_t=f\left(x+\frac{1}{4}t\right)$. This is nonhomogeneous transport equation with solution  $$u(x,t)=\displaystyle\int_0^t f\left(x+\frac{1}{4}t+2(s-t)\right)ds+g(x-t)$$  considering initial conditions I get $g(x)=x^2,\ $ $\ f(x)=e^x-2x$  then wolframalpha yields,   but if I apply $(1)$ to the result it is not true, where is the mistake ?


What determines the copyright year for a publication?

I wonder what determines the copyright year for a publication. I thought that the copyright year would be the same as the publication year, but seeing in (1)    put me in doubt (publication year: 2011; copyright year: 2012).    (1) Sutton, Charles, and Andrew McCallum. "." Machine Learning 4.4 (2011): 267-373.


After a boolean operation and clean up, I still have an issue with subsurface

I'm following Andrew Price tutorial to create an anvil and I'm really new at blender. I cleaned up all my faces making sure they all had 4 vertices only and when I select with ALT and face, they seem to flow well.    But when I apply the subsurface I still get ONE vertex left in the middle of my old cylinder which I had erased and therefore the cut out is weird.    Thanks for the help :-)


Generalising a Dirac Delta function formula in General Relativity

I'm currently stuck on a problem where I have to integrate on a particular set defined through a dirac delta function. If I understood correctly it all boils down to using the curved analogous of  $$  \int_{\mathbb{R}^n} f(\vec{x}) \delta(\phi(\vec{x}))|\nabla\phi|d^nx \tag{1} $$  my guess is that in GR  this expression becomes either  $$ \int_\Omega f(x) \delta(\phi(x))\sqrt{g^{\mu\nu}\frac{\partial \phi(x)}{\partial x^\mu}\frac{\partial \phi(x)}{\partial x^\nu}} \sqrt{ -g}\,d^4 x \tag{2}$$  or  $$ \int_\Omega f(x) \delta(\phi(x))\sqrt{g^{\mu\nu}\frac{\partial \phi(x)}{\partial x^\mu}\frac{\partial \phi(x)}{\partial x^\nu}}\,d^4 x \tag{3}$$  given that in GR $$\delta^4 (\xi) =\frac{\delta^4(x)}{\sqrt{-g}}\tag{4}$$ where the $\xi$ are flat coordinates, but here I have a $\delta^{1}$, not a $  \delta^{4}! $ So I'm thinking the first formula is the correct one. Am I right?  Which one is correct?  PS. It would be awesome if someone had any sort of useful reference on the topic!


Abstract Algebra books (for undergraduate)

I'm looking for good books of abstract algebra. In particular, I need some books with a lot of exercises, solved and not (in particular about modular arithmetic, groups and rings) Do you have any hints? Thanks.


Anyone have a diff algorithm for rendered HTML?

I'm interested in seeing a good diff algorithm, possibly in Javascript, for rendering a side-by-side diff of two HTML pages. The idea would be that the diff would show the differences of the rendered HTML.  To clarify, I want to be able to see the side-by-side diffs as rendered output. So if I delete a paragraph, the side by side view would know to space things correctly.    @Josh exactly. Though maybe it would show the deleted text in red or something. The idea is that if I use a WYSIWYG editor for my HTML content, I don't want to have to switch to HTML to do diffs. I want to do it with two WYSIWYG editors side by side maybe. Or at least display diffs side-by-side in an end-user friendly matter.


Can XeTeX produce linearized PDF (for Web viewing, not for reducing size)?

Is it possible with XeTeX to generate linearized PDF for Web streaming — showing pages sequentially as they are downloaded —, not for file size reduction?


How to deal with a DM who pointedly ignores important details?

The campaign was intended to be difficult.  We knew and accepted that up front, and it sounded like a fun challenge.  But we never knew until we were already a fair ways into it how much of the difficulty would not be of the "challenge" variety but rather the "railroading" variety, inventing fake difficulty with no basis just to punish the PCs.  For example, at one point the party came across an abandoned wagon.  There were a few subtle things in the description that were just "off" enough about it that the first thought that crossed my character's mind was "plague."  He treated the entire encounter with excessive paranoia, staying well back, not touching anything, using Mage Hand to move items, etc.  Not all of the party members were as cautious, though, moving in freely to help whoever might be inside.  And... well... it turned out that there was in fact a serious disease that had claimed the owner.  Several party members had to make CON saves against disease because they touched things, including my character.  I pointed out that my character had never actually touched anything, and had only moved things from a distance with Mage Hand, and showed the DM the relevant point in the logs.  (It's a game being played online.)  The DM, faced with the proof, acknowledged that I was right... but my character still had to do the CON save and ended up contracting the disease, necessitating some long and pointless backtracking to find an NPC who could help get us cured.  And that kind of thing is distressingly common.  At one point, when the party came up with a highly unconventional approach to the broad quest we were facing, we decided to put the plan into motion.  The very next scene, we ran across a group of Duergar "traders" who were Most Definitely Not Evil Slavers, No Siree.  Everyone in the party recognized this for exactly what it was and wanted no part of it, so we did everything within our power to get them to go away and leave us alone: lying about where we were headed and rolling quite well on the deception check, (truthfully) pointing out how we were being hunted by a very powerful and scary dragon that they shouldn't want anything to do with, sneaking off after they left to gather the rest of their group, having the Ranger's flying pet fly overwatch as we fled, etc.  But none of that careful, detailed work meant anything; back on the rails you go!  The Duergar snuck up on us in the middle of the night, having tracked us perfectly (despite covering our tracks) without ever being seen (despite the eye in the sky) and ambushed our party (despite us setting a watch) to capture everyone.  How do you deal with DMs that completely discount players' agency every time it threatens to make the story diverge from whatever the pre-planned idea is of how the campaign should play out?  It kind of feels like, if our ability to foresee certain problems is meaningless because any attempt to avert them is nullified, then what's the point of being able to make choices in the first place?  Anyone have any techniques that would help to salvage a game like this?


I get the following error when i do sudo apt-get update  W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6AF0E940624A220   I tried following ways after reading various questions here and also by googling.  I tried  sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6AF0E1940624A220   It did not help. I also tried  sudo gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys   thinking port 11371(default) may be blocked due to firewall.  I also tried to reset everything as follows  sudo rm /var/lib/apt/lists/* -vf sudo apt-get update && sudo apt-get upgrade   still i get the same error or get update. Any other possible solution I can try?


I'm making Kolaches (a Czech semi-sweetened dough with a sweet filling), but I'm challenging myself to cook vegan, and therefore can't use an egg.  I've got a bunch of recipes, but all of them are semi-enriched, i.e. have egg, milk, and added fat.  I've got replacements for everything else, except the egg.  What are things people have used for eggs in yeast breads.  It shouldn't need to be a binder or leaven, just enrich.  I've seen suggestions for sweet potato, just add oil, tofu.  Anyone have any experience with enriching yeast doughs without eggs?


Automatically insert "in the next [chapter/section/subsection]" if reference is sequential

I'm aware of the cleveref package \cref which adds the correct reference name (see:  ). I have a few references which refer to the very next section and some find it odd to give the number in this case rather than just say "in the next section". Sometimes I've moved sections around and these references suddenly become quite broken. To have the best of both worlds, is there a way to automate this change?  E.g.: replace "this is discussed further in section 1.4" with "this is discussed further in the next section"


Switching visibility (eye) between selected meshes via Python

is it possible to switching visibility between multiple selected meshes? I have a mesh and the same slightly modified and I need to switch between them to see what is best for my needs.


How do I prove the function $f(z) = \sin \bar{z}$ is not differentiable on the disc $D(0,1)$?

How do I prove the function $f(z)=\sin \bar{z}$ is not differentiable on the disc $D(0,1)$?  I originally used cauchy reimann equations to prove it is not differentiable everywhere, but I need to be able to show it's not differentiable specifically for the disc. Any help would be greatly appreciated.


Add "newest (my tags)" filter on Android app

I think most people who come to Stack Exchange to answer others' questions - they look for the new question according to their favorite tags.  Since such behavior is a default on the Stack Exchange website - the feed of the newest questions in relevant tags would be best for most users.


How do you parse `lvrename [-A|--autobackup {y|n}] [-d|--debug] [-h|--help] [-t|--test] [-v|--verbose] [--version] [-f|--force] [--noudevsync]

Can someone clarify this piece of gibberish:  lvrename [-A|--autobackup {y|n}] [-d|--debug]  [-h|--help] [-t|--test] [-v|--verbose] [--version] [-f|--force] [--noude vsync] {OldLogicalVolume{Name|Path} NewLogicalVolume{Name|Path} | Vol umeGroupName OldLogicalVolumeName NewLogicalVolumeName}   I've formatted it exactly as I see it in my terminal.  How do you go from the command spec above to  lvrename /dev/vg2/lv2 /dev/vg2/lvm02


Smooth conics in complex projective plane

How can I show that each smooth conic in $\Bbb P _2\Bbb C $ is  isomorph to the conic given by the equation $x^2+y^2+z^2=0$? I thought about considering the quadratic form $A$ associated to my conic, A is symmetric so I can say that $D=P^{-1}AP$ where D is diagonal with coefficients $d_1, d_2, d_3$. Know I probably have to define a maps from $\Bbb P _2\Bbb C $ to $\Bbb P _2\Bbb C $ using $P$, but I can't understand which is the correct way to do that! Can anyone help me? Thanks in advance!


a question of optical interference and it's energy propagation

When I am thinking about the interference of two laser beams, a curious question often comes to my head: Take a Mach-Zehnder interferometer as example and suppose the frequency of the leaser beams is the same, namely they are all monochromatic plane wave.   As we know, if we measure the optical power in different positions in the propagation direction, an interference fringe will appear.   What puzzled me is that in the destructive interference position, the optical power is zero, however, if the power meter keep fixedly in this position, the power is zero all the time, but the laser is still working, and where has the energy gone?


I wrote in my manuscript that; "Additional 17 human samples not preserved in formaldehyde were provided for age dating."  But my English proofreader corrected that "An additional 17 human samples not preserved in formaldehyde were provided for age dating."  She explained the reason as "I added an 'An' here because you are starting a sentence with this information (and the article here can help in emphasizing the action that is going on in this sentence). "  I need further explanation.


I understand that highly integrated semiconductors enable physically diminutive devices. Microcontrollers with CPU, RAM, flash, power supply, a wide assortment of peripherals, all on a single piece of silicon are available for very cheap. Why do our devices like laptops and phones still use multiple chips and so many passive components? I understand capacitors and inductors are expensive to implement on silicon, then why not a single chip plus a bunch of those passives?


I am on 11.04.My Ubuntu splash screen was replaced by Kubuntu after I installed Kubuntu-desktop.I followed the answer of daniel kullmann by mistake in  askubuntu link and I lost splash screen.Now it shows only a blank screen after boot menu until login screen.I entered the other commands from the same post but changed nothing.How can I get back the splash screen back?


Identity involving infinite sum of exponentials

Please help me prove the identity $$\sum_{n=-\infty}^\infty e^{-\pi\alpha n^2} = \frac{1}{\sqrt{\alpha}}\sum_{n=-\infty}^\infty e^{-\pi n^2/\alpha}.$$


Write a DVD from the Windows Command Line

Does anyone know an easy way to write files to a DVD from the command line. I've found a program that does it for CDs, and another that writes .ISO images to DVD.  I want to use it to write files to a backup DVD overnight.


I don't know what year my old bike is.(like is it a 1970's etc). I think it may be a 1970's, or something like that due to research but I'm still not sure. I know it's a French old make, I believe Ravenna. But what year is this bike?


So I have some ISO stock options (yeah) and three kids in college (boo) so I'm trying figure out the best tax strategy. I was hoping someone help me through the following scenario  Strike Price: $10, 2014 exercise price: $20, 2015 price: $25, 2016 price $30   Lets' assume that all of this happens 2+ years after the grant date and that my "normal" tax bill is right on the brink of the AMT threshold, that the AMT tax rate is 28% and the long term capital gains tax is 15%.   Now I want to run the following scenario  2014: exercise 1000 options 2015: exercise 1000 options, sell the previous years' option after "one year and one day" 2016: sell the 2015 options after "one year and a day"    Tax wise that would look like this  2014: AMT on $10000 of bargain element so $2800 AMT 2015: AMT on $15000 bargain element $4200, long term gain tax on $15000 = $2250 2016: long term gain tax on $20000 = $3000    What's the overall tax liability in each year? I can't figure out how the AMT carries forward when the options are finally sold.   Any good pointers to modeling software, spreadsheets or decent papers would also be appreciated.


How can I get an object's absolute position on the page in Javascript?

I want to get an object's absolute x,y position on the page in Javascript.  How can I do this?  I tried obj.offsetTop and obj.offsetLeft, but those only give the position relative to the parent element.  I guess I could loop through and add the parent's offset, and its parent's offset, and so on until I get to the object with no parent, but it seems like there should be a better way. Googling didn't turn up much, and even SO site search isn't finding anything.  Also, I can't use jQuery.


Latex float so no stretching appears, but everything is placed on top

It has probably been already answered, but I cannot find it.  If I include images as floats, LaTeX places the last one on a single page in the middle. How do I make LaTeX to put in on the top of the single page?   A similar question: if I make a new section and a large table (3/4 of the page long), LaTeX stretches the spacing between the section header and table. How do I place the table right after the section header?


Javascript "Variable Variables": how to assign variable based on another variable?

I have a set of global counter variables in Javascript:  var counter_0 = 0; var counter_1 = 0; var counter_2 = 0;   etc  I then have a Javascript function that accepts an 'index' number that maps to those global counters. Inside this function, I need to read and write to those global counters using the 'index' value passed to the function.  Example of how I'd like it to work, but of course doesn't work at all:  function process(index) {     // do some processing      // if 'index' == 0, then this would be incrementing the counter_0 global variable     ++counter_+index;       if (counter_+index == 13)     {         // do other stuff     } }   I hope what I'm trying to accomplish is clear. If not I'll try to clarify. Thanks.  EDIT Clarification:  I'm not trying to increment the name of the counter, but rather the value the counter contains.


Example of topological spaces where sequential continuity does not imply continuity

Please give an example of a function $f : X \to Y  $ where $X,Y$ are topological space , such that there exist $x \in X$ such that for every sequence $\{x_n\}$ in $X$ converging to $x$ , $\{f(x_n)\}$ converges to $f(x)$ but $f$ is not continuous at $x$ ; also please give such an example that $f$ is not continuous any where in the domain but for every $x \in X$ and sequence $\{x_n\}$ in $X$ converging to $x$ , $\{f(x_n)\}$ converges to $f(x)$.


When I click save or hit Command + S what appears to be a new version of the document is created. So if I save 2 times, I get 2 documents, filename.blend1 and filename.blend2.  What exactly are these files and why is Blender creating them?


Divergence of a positive series over a uncountable set.

Let $\Lambda$ be a uncountable set and let $\{a_{\alpha}\}_{\alpha\in\Lambda}$ be such that $a_{\alpha}>0$ for all $\alpha \in\Lambda$ proof that,    $$\sum_{\alpha\in\Lambda}a_{\alpha}$$   diverges.


Why square the difference instead of taking the absolute value in standard deviation?

In the definition of standard deviation, why do we have to square the difference from the mean to get the mean (E) and take the square root back at the end? Can't we just simply take the absolute value of the difference instead and get the expected value (mean) of those, and wouldn't that also show the variation of the data? The number is going to be different from square method (the absolute-value method will be smaller), but it should still show the spread of data. Anybody know why we take this square approach as a standard?  The definition of standard deviation:  $\sigma = \sqrt{E\left[\left(X - \mu\right)^2\right]}.$   Can't we just take the absolute value instead and still be a good measurement?  $\sigma = E\left[|X - \mu|\right]$


I change owner of some root files and folders like /etc/sudoers to www-data by mistake! And now I can't use "sudo" at all! How can I change them back to my user? It a ubuntu 18.04 server and I can olny access it via ssh.


Prove that ${\left(\frac{x+1}{2}\right)}^{x+1} \leq x^x$

I want to prove that for each real number $x>0$, the statement  $${\left(\frac{x+1 } {2}\right)}^{\!x+1} \leq x^x$$  is correct.   I’ve tried using mathematical induction methods, but haven’t found a solution. Although, using any method is appreciated.


For any triangle $ABC$ what is the minimum value $\sum \frac{\sqrt{\sin A}}{\sqrt {\sin B}+\sqrt{\sin C}-\sqrt{\sin A}}$?

The problem:  Let $ABC$ be an arbitrary triangle.  What is the minimum value $$\sum \frac{\sqrt{\sin A}}{\sqrt {\sin B}+\sqrt{\sin C}-\sqrt{\sin A}}?$$  I need a little help in simplifying the problem, so that I can finish it on my own. I do know that we can simply it before using the $\sum$, but  I don’t know how.


Find  angle $ \angle AED  $ in the following triangle.  In the above triangle we have : $CA=CB ,CE=DB=BA ,\angle ACB =20^° , \angle CAB=\angle CBA=80^°$ now find $ \angle AED  $.  I think if we draw line $AD$ we have $AB=BD$ then $\angle BAD= \angle BDA =50^°$ then in the triangle $ AED$ we have $\angle EAD=30^°$ but I can't find $ \angle AED  $


Fastest way to reach to surface from mine

I have read many article which shows that railway is fastest way of climbing. Some people claim water boat elevator is fastest. I would like to present a nice affordable method for those who have started mining. As iron is found later (for new players). I have shown the method in answer.


Why does the correlation coefficient between X and X-Y random variables tend to be 0.7

Taken from  where Douglas Altman writes in page 285:      ...for any two quantities X and Y, X will be correlated with X-Y.   Indeed, even if X and Y are samples of random numbers we would expect   the correlation of X and X-Y to be 0.7   I tried this in R and it seems to be the case:  x <- rnorm(1000000, 10, 2) y <- rnorm(1000000, 10, 2) cor(x, x-y)  xu <- sample(1:100, size = 1000000, replace = T) yu <- sample(1:100, size = 1000000, replace = T) cor(xu, xu-yu)   Why is that? What is the theory behind this?


How to revert to android 7 on Xiaomi A1 phone

The phone has some bugs in this new update I have tried doing a factory reset but it still has the android 8.


Running code based off of variable pulled in from excell sheet.

I'm trying to run code based off of a cell being pulled in from my excel sheet. My code runs but then it stops at the if statement. If statement below.   if(data03 == "Checkpoint")  java


"Unable to install xboard as not supported" I installed it a month ago.  Had to delete it two days ago since the commands suddenly weren't working (although the mouse actions were).  The program has been around for more than ten years.  Did somebody change it? I get this in Terminal:  owner@owner-Lenovo-ideapad-110S-11IBR:~$ sudo apt-get install xboard [sudo] password for owner:  Reading package lists... Done Building dependency tree        Reading state information... Done Package xboard is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'xboard' has no installation candidate owner@owner-Lenovo-ideapad-110S-11IBR:~$


I'm getting the following error from my Latex code:  ! Missing \endcsname inserted. <to be read again> \& l.27 ...ink{M\&A}{M\&A}]{Mergers and Acquisitions} The control sequence marked <to be read again> should not appear between \csname and \endcsname. ) \openout1 = `"BA.aux"'.   The Problem is the \& in (M&A) , but I don't know why. Below is the LaTeX code for which I am getting the LaTeX error:  \documentclass[a4paper, titlepage, abstract, 12pt]{scrartcl} \usepackage[T1]{fontenc}  \usepackage[ngerman]{babel} \usepackage{amsmath} \usepackage{amssymb} \usepackage{url} \usepackage{tabularx} \usepackage{graphicx} \usepackage{lmodern} \usepackage[onehalfspacing]{setspace} \usepackage{rotating} \usepackage{tikz} \usepackage[round]{natbib} \usepackage{float} \usepackage{multirow,array} \usepackage{listofsymbols} \usepackage{booktabs} %Tabellen \usepackage{tikz} %Timeline \usepackage{caption} %Tabellenunterschriften \usepackage[para,online,flushleft]{threeparttable} %Three Part Table \usepackage{pgfplots} %Plot zeichnen \usepackage{blindtext} %Bullets \usepackage{enumitem} %Bullets \usepackage{hyperref} \usepackage{geometry} %Seitenränder \usepackage{acronym}  %Abkürzungsverzeichnis**    \geometry{a4paper, top=25mm, left=25mm, right=25mm, bottom=25mm, headsep=10mm, footskip=12mm} \linespread{1.3} % entspricht word 1,5     %..............................................................................................................................................% \pagenumbering{Roman}  \setcounter{page}{1} \tableofcontents \newpage %..............................................................................................................................................%  %..............................................................................................................................................% \setcounter{page}{2} \listoffigures \addcontentsline{toc}{section}{Abbildungsverzeichnis\vspace{-10pt}} \rule[0pt]{0mm}{10pt} %\rule[Offset]{Breite}{Höhe} \newpage %..............................................................................................................................................% \listoftables \addcontentsline{toc}{section}{Tabellenverzeichnis\vspace{-10pt}} \rule[0pt]{0mm}{10pt} %\rule[Offset]{Breite}{Höhe} \newpage %..............................................................................................................................................%  \section*{Abkürzungsverzeichnis} %Bitte alphabetisch ordnen! \addcontentsline{toc}{section}{Abkürzungsverzeichnis\vspace{-10pt}} \rule[0pt]{0mm}{10pt} %\rule[Offset]{Breite}{Höhe} \begin{acronym}[Musterdingsbums] \setlength{\itemsep}{-\parsep}     % A     \acro{NAFTA}{North American Free Trade Agreement}     % B     % C     % D     % E     % F     % G     % H     % I     % J     % K     % L     % M     \acro{M\&A}{Mergers and Acquisitions}     % N     % O     % P     % Q     % R     \acro{ROE}{Return on Equity}     % S     % T     % U     % V     % W     % X     % Y     % Z \end{acronym}  \newpage \section*{Symbolverzeichnis} %Die hier verwendeten Symbole stellen eine beispielhafte Auswahl dar. \addcontentsline{toc}{section}{Symbolverzeichnis\vspace{0pt}} \rule[0pt]{0mm}{10pt} %\rule[Offset]{Breite}{Höhe} \begin{acronym}[Musterdingsbums] \setlength{\itemsep}{-\parsep}     \acro{i}[$i$]{Interest rate}    \end{document}C   I'm using MacTeX (texmaker)   Thank You!


Set window close and maximise shortcuts in Ubuntu 18.04

Is there any way I can set shortcuts of Alt+Space and then C to close and Alt+Space and then X to maximize the window?  It was perfect in Ubuntu 16.04 but removed in 18.04. Please suggest any way to get that shortcut back in Ubuntu 18.04.  I looking for shortcut in right click context menu on titlebar as per the screenshot.    Any help is appreciated.


Allow another close vote after retraction

tl;dr Users that have retracted a close vote should be able to vote again on that same question. I don't believe there is any danger in allowing this, provided some controls are in place (see below). Long Version As a 3k+ user, I want to look at a question at any point in time and determine whether it belongs on this site and, if not, state exactly why it doesn't in a close vote. People who write questions are free to edit them at any time. As a result, close votes can become invalid and the new  was introduced as a response to this. While I welcome the new feature, I wonder why we have stuck with the "you can only vote once" paradigm. If I'm monitoring a question to the extent that I withdraw my close vote, why shouldn't I be allowed to vote again if subsequent edits render the question unsuitable? I propose that if you retract your close vote on a question, you should be allowed to vote again. Note that by implementing this feature, one would also be able to change a close vote (by retracting and then selecting a different close reason). To combat willy-nilly vote changing (which may confuse other users), I propose one of the following defences:  An edit must occur between retraction and re-voting. This ensures something has changed in order to make the user want to vote to close again.  A time limit ensures that X minutes must pass between retraction and re-voting.  No specific restrictions are enforced, but the reputation required to re-vote is raised to something higher than 3k. The idea being that more experienced close voters are unlikely to change close reasons lightly. Perhaps this could be a tantalising rep target at 7.5k (to fill the void between 5-10k).   A  was asked previously, but I'm hoping some of my defences listed above will negate the fears listed in the accepted answer. Example Use Case #1 A poor question is raised and the OP receives several close votes and comments. Being a good user, the OP then adjusts the question to meet the quality standards of the site. One or more close-voters retract their vote now that the question is good enough. But wait! A duplicate has now been found, which wasn't spotted originally due to the poor quality of the question. None of the retracting close-voters can vote to close as a duplicate and are forced to leave a comment. Hopefully passing 3K+ users will spot the comment and act accordingly, but unnecessary time is wasted. This question should be on the close queue and heading for death. Example Use Case #2 Commonly on Stack Overflow, a user will present insufficient information to diagnose a problem. Perhaps their code example doesn't compile or they haven't provided definitions of all the referenced methods. I will leave a comment to indicate this and, after a small grace period, will vote to close with "This question appears to be off-topic because it lacks sufficient information to diagnose the problem.". If the user edits their question and adds the info, I retract my close vote. But I often realise the question should be closed for another reason, e.g. a duplicate or the new(ish) reason: "This question was caused by a problem that can no longer be reproduced or a simple typographical error.". Example Use Case #3 Perhaps the most common: you find a reasonable duplicate and vote to close. But then... you find the most wonderful, exact duplicate you could imagine. Too late, your vote is cast. You can retract it, but you can't then easily kick the ball rolling on a new closure with the real duplicate. Sure, a comment might cause things to start, but often it doesn't. Flagging for diamond attention isn't appropriate. This can also happen when the OP refutes the original duplicate and provides some extra information that steers you towards a related but different duplicate.


Are there popular English sayings to express “Big fuss, tiny result”?

The recent EL&U question asked by Mikhail about the alternative expressions of ‘To shoot out of cannon into sparrows’ reminded me of Japanese saying - 大山鳴動鼠一匹- literally meaning people find (get) “Only a small mouse coming out after hearing rumblings and experiencing shaking of the big mountain, (and jumping out of the house)” which I believe was imported from Chinese classic literature.   I think it has a different meaning from “Shoot sparrows with cannon” and “Chop a chicken using the blade for cow.” Instead it means “a very small result attained with great effort” or “marginal consequence or gain after making a big fuss”  Are there similar English sayings to express “大山鳴動鼠一匹 - Big fuss, tiny result”?


123.SOGOU.COM - trojan horse in ukui-screensaver

Firefox's default page is 123.sogou.com and I can't remove it. I've tried to reset and re-install it, but it keeps going back to sogou.


I´ve read this fantastic book   and I have a question about the lasso equation for the Lasso problem in its Lagrangian form:  $\hat{\beta}_{lasso} = argmin \{ \frac{1}{2} \sum_{i=1}^{N}(y_i -\beta_0 -\sum_{j=1}^{p} x_{ij}\beta_{j})^2 + \lambda \sum_{j=1}^{p} |\beta_j| \}$  I don´t know why $\frac{1}{2}$ is necessary for lasso, however for ridge it doesn't.  $\hat{\beta}_{ridge} = argmin \{\sum_{i=1}^{N}(y_i -\beta_0 -\sum_{j=1}^{p} x_{ij}\beta_{j})^2 + \lambda \sum_{j=1}^{p} \beta_j^2 \}$  References   Friedman, J., Hastie, T., & Tibshirani, R. (2001). The elements of statistical learning (Vol. 1, pp. 241-249). New York: Springer series in statistics.


When will a Kalman filter give better results than a simple moving average?

I recently implemented a Kalman filter on the simple example of measuring a particles position with a random velocity and acceleration.  I found that Kalman filter worked well, but I then asked myself what's the difference between this and just doing a moving average?  I found that if I used a window of about 10 samples that the moving average outperformed the Kalman filter and I'm trying to find an example of when using a Kalman filter has an advantage to just using the moving average.    I feel like a moving average is far more intuitive than the Kalman filter and you can apply it blindly to the signal without worrying about the state-space mechanism.  I feel like I am missing something fundamental here, and would appreciate any help someone could offer.


I am a software developer with little knowledge of Electrical Engineering. I have delivered some Raspberry PI projects that extensively use Relays.   I recently heard that Triacs are much cheaper and safer than Relays and can do the same job. If that is true, my question is:  Why are Triacs so under emphasised in Raspberry PI  (or Arduino) projects and people prefer using Relays?   Also, are Triacs suitable for 120V AC or is there any Triac that can control 12V DC as well?  Thank you,


How to prevent Ubuntu from switching default audio output device to Analog Output when docked?

I have 19.04 on a Lenovo ThinkPad T580. When my laptop is not docked, default audio output device is "Speakers - built-in". But when I put my laptop in a docking station, it changes default audio output device to "Analog Output - ThinkPad Dock USB Audio".  I don't have any speakers connected to my dock, so I would like to continue to have audio out of the built-in speakers. Of course, I can just change it back manually every time I dock my computer, but it would be much nicer, if it just stopped changing default audio output device whenever I docked my computer.  Any ideas how to accomplish this?


How can I crop in batch in Photoshop or Lightroom and remove edges?

I have several images I want to crop in batch. They are scans and have "jagged edges". Basically I just want a 95% crop in both directions with the crop frame perfectly centered. So if the image is 1000x1000, I want a 950x950 image with 25 pixels cropped from each side. I don't see a way to specify this in Photoshop or Lightroom. Note: I do NOT want to straighten or resize the image.


How to choose the cutoff probability for a rare event Logistic Regression

I have 100,000 observations (9 dummy indicator variables) with 1000 positives.  Logistic Regression should work fine in this case but the cutoff probability puzzles me.    In common literature, we choose 50% cutoff to predict 1s and 0s.  I cannot do this as my model gives a maximum value of ~1%.  So a threshold can be at 0.007 or somewhere around it.    I do understand ROC curves and how the area under curve can help me choose between two LR models for the same dataset.  However, ROC doesn't help me choose an optimum cutoff probability that can be used to test the model on an out-of-sample data.   Should I simply use a cutoff value that minimizes the misclassification rate? ()  Added --> For such a low event rate, my misclassificiation rates are affected by a huge number of false positives.  While the rate over all appears good as total universe size is also big, but my model should not have so many false positives (as it is an investment return model).  5/10 coeff are significant.


Can I ask a question that does not have an answer here but is easily answered on google?

I had a question.  I came here first to look for an answer.  There was no answer here.  I then went to google and found an answer.  I wondered if I should ask the question here and perhaps supply the answer myself (the one I found on google).  Can I, should I do that?  Maybe the difference is in being a passive or active user of stackexchange?  Not sure.


HOW?How do I simplify this expression?     $276^{247} \mod 323$    Thank you so much.


In how many ways can you arrange all letters in the word MISSISSIPPI so that  1) all four I’s are together?  2) two P’s are NOT next to each other?  3) no two I’s are next to each other?


Significant total and indirect effect but insignificant direct effect

I was trying to use a simple mediation model (the classic triangular model) to test my hypothesis. However, my data exhibited a significant total effect and a total indirect effect, with the direct effect being insignificant.  Could you please tell me how I should interpret this?  Thank you so much!


Prove that the polygon of $n$ sides with the biggest area, inscribed in a circumference, is always a regular polygon

Prove that the polygon of $n$ sides with the bigger area, inscribed in a circumference, is always a regular polygon.  Ex (because the way in which I wrote the statement maybe was not clear and produces confusion): For $n=4$: Prove that the inscribed quadrilateral with bigger area is always a square.  I thought that this problem was easy, but i don't see the way to prove this  Any hints?  Edit This problem is mean to be solved without trigonometry, so the post linked as duplicated doesn't help me


How can I find out whether my Windows is 32 bit or 64 bit?

How can I find out whether my install of Windows (specifically XP and Vista) is either 32 or 64 bit?  Additionally, how can I find out if my hardware will support a 64-bit operating system?


How to add an accepted but not published paper to my CV?

My first paper has been accepted to a CS conference, it went through a double blind peer-reviewed process. Soon it will appear in conference proceedings from Springer. How to add it to my CV? Also, should I make an arxiv print available ?


What is the correct way to use dot punctuation to end this sentence?

Which of the following way of using . punctuation is correct? There are two sentences here.  Donald Trump became the President of the U.S. The election took place in 2016.    Donald Trump became the President of the U.S.. The election took place in 2016.


set of continuous ponits of bounded function is borel

Question: $f$ is a bounded real-valued function defined on $\mathbb{R}$. $A=\left\{x \in \mathbb{R}:\lim_{y\rightarrow x}f(y)=f(x)\right\}$, prove $A$ is a Borel set. I have no idea where to begin for I only know Borel sets can be formed by countable union/intersection/complement of open/closed sets and don't know how to connect it to the problem. My attempt: I tried to construct $B_n=\left\{|f(x)-f(y)|\geq\frac{1}{n}\right\}$ then I got stuck.


How to set up wordpress domain mapping on MAMP Pro

I am trying to set up a wordpress multisite with MAMP Pro that will allow me to have two different domains (one domain for each language): dev.domainenglish.com dev.domainfrench.com I have already set up the primary english virtual host and secondary virtual french host. I have installed the wordpress multi site on the primary English virtual host. Next I created a "sub site" within the primary english domain multi site that has the location  dev.domainenglish.com/french/ Then I tried to use the MU Domain mapping plugin to make it so that when you visit dev.domainfrench.com the theme and content posted on dev.domainenglish.com/french/ will be visible. As of now when you visit dev.domainfrench.com the page loads the standard MAMP Pro index.html instead of my wordpress subsite:  the virtual host was set up successfully. If you can see this page, your new virtual host was set up successfully. Now, >web contents can be added and this placeholder page1 should be replaced or >deleted."  I understand that this plugin was built for live sites. But is there anyway I can achieve my goal of having two domains under one Wordpress multisite on my localhost? Thank you for your time!


How can I delete my printer from Ubuntu?

Using 12.04 my printer a canon ip2600 will not print.   SystemSettings/printers shows it as installed, connected to local host, enabled, accepting jobs, shared and allowing printing for everyone. Yet it does not print.   I have tried to remove it but get a request for user name and password which I enter (I only have one password) but the password is listed as incorrect.   I need a sudo command which I can use to delete the printer so I can attempt to re-install it. As it is the printer is useless and I can not even uninstall it.


Homotopy Extension Property: necessary and sufficient condition

A pair $(X,A)$ of topological spaces is said to have the homotopic extension property if $\forall Y$ topological space, $f:X-> Y$ continuous map and $H:A\times[0,1]\rightarrow Y$ homotopy of $f$, there exists $\tilde H : X\times[0,1]\rightarrow Y$ extending H.   In class we gave the following lemma:  $(X,A)$ has the h.e.p. $\Leftrightarrow X\times[0,1]$ retracts onto $(X\times\{0\})\ \cup\ (A\times[0,1])$  I think I need $A$ to be closed for this to work but I am probably wrong, so I'll sketch my argument for "$\Leftarrow$" so maybe someone can spot my mistake.   If $r$ is said retraction, in class we simply defined $\tilde H$ to be $f\circ r$ for on $r^{-1}(X\times \{0\})$ and $H\circ f$ on $r^{-1}(A\times[0,1])$ and then claimed that this is well defined. However, I can't see how this function would be continuous if not by using the gluing lemma, which needs A to be closed in X.   Am I missing something?  Thank you.


What does "Not without pride" mean in this context?

Context: "As this story is about my experiences as an ordinary prisoner, it is important that I mention, not without pride, that I was not employed as a psychiatrist in camp, or even as a doctor, except for the last few weeks."  Does this mean he felt pride, he felt shameful, or something else?  Thanks!


Comparing strings that use the substring method

I hope somebody could give me an explaination why the below code wont work:              //Why doesnt this work             String l = myString.substring(cut,  lengthLastBtn-1);             String c = myString.substring(cut,  lengthLastBtn-1);              if(l==c){                 Log.i(TAG, "Correct");             }             //End              //This work!             String l = "hi";             String c = "hi";              if(l==c){                 Log.i(TAG, "Correct");             }             // End              // Or if i want the Vars as in the first code i have to use the if statement like this             if(l.contains(c)){                 Log.i(TAG, "Correct");             }             //End   So, why cant a compare a string when i have used the substring method on it. I even see in the log for the strings that they are the same, or have the same text at least.


Unauthorized Access using Named Credentials

I am using Named Credentials oAuth2.0 protocol to connect with Xero. I have setup Auth. Provider and Named Credential. Named Credential is also authenticated.  I have followed the steps mentioned here :   and   But when i am trying to get Tenant Id using the code below i am getting nothing in response:  Http http = new Http();      HttpRequest request = new HttpRequest(); request.setEndpoint('callout:XeroDev/connections'); request.setMethod('GET'); request.setHeader('Authorization','Bearer {{access_token}}'); // Am i doing it properly?? request.setHeader('Content-Type','application/json'); HttpResponse response = http.send(request); System.debug('Body>>'+response.getBody());   However if i repeat the same step without using named credentials   Http http = new Http(); HttpRequest request = new HttpRequest(); request.setEndpoint('https://api.xero.com/connections'); request.setMethod('GET'); request.setHeader('Authorization','Bearer '+Cache.Session.get('ACCESSTOKEN')); request.setHeader('Content-Type','application/json');  HttpResponse response = http.send(request); System.debug('Tenant Body>>'+response.getBody());   I am getting Tenant Id. I think there is some syntax issue. Any suggestion?  Beside that, I was trying to make a get callout using hardcoded tenant id to get Account details but i am getting unauthorized access issue.  HttpRequest req = new HttpRequest(); req.setEndpoint('callout:XeroDev/api.xro/2.0/Accounts'); req.setMethod('GET'); req.setHeader('xero-tenant-id', '9c32ea58-ff42-4d30-945e-bc5b54db6f0d'); Http http = new Http(); HTTPResponse res = http.send(req); System.debug(res.getBody());      Response =>   {"title":"Unauthorized","status":401,"detail":"AuthorizationUnsuccessful","instance":"a17bd5ab-1f77-441c-a688-2cef83c26d95"}   Thanks You!


If I want to write the symbols $\iota_1\cdot \gamma$ in, say, red, how would I do that?


How many upvotes have I received on my comments?

A question motivated by narcissism:  Is there some way I can find out the total number of upvotes I have received on my comments?  Similarly, can I somehow get a list of all of my comments sorted by their number of votes?


KOMA-Script: Wrong alignment of roman numbers

I'm encountering the same problem as in "" and in "".  I'm not to sure about the solutions presented there. As I use KOMA-Script, I preferred using tocstyle, but the package happily announces:     THIS IS AN ALPHA VERSION! USAGE OF THIS VERSION IS ON YOUR OWN RISK! EVERYTHING MAY HAPPEN! EVERYTHING MAY CHANGE IN THE FUTURE! THERE IS NO SUPPORT, IF YOU USE THIS PACKAGE! Maybe it would be better, not to load this package   Maybe it really would be better not to use tocstyle.  In another answer, I read that tocloft doesn't work well with KOMA-Script. So this is doesn't sound like an alternative either.  The other answer to these questions redefines \@pnumwidth. As I have no knowledge of the LaTeX kernel, I'm not sure whether this changes too many widths.  So my question is, is there a good, stable solution to roman numbers intruding into the margin? Or are any of my concerns with the proposed solutions wrong?  For reference, here's a MWE:  \documentclass{scrreprt}      \begin{document}  \pagenumbering{Roman} \tableofcontents  \clearpage Text\clearpage Text\clearpage Text\clearpage Text\clearpage Text\clearpage Text\clearpage Text\clearpage Text\clearpage Text\clearpage Text\clearpage Text\clearpage  \chapter{Chapter} Text\clearpage Text\clearpage Text\clearpage Text\clearpage Text\clearpage \section{Section} Text\clearpage \section{Section}   \end{document}   And it's result (The margin begins at the last "I" in "XIII"):


"Squeezing" a game object based on distance to another game object

I am trying to "squeeze" a gameObject. When distance starts to be 6.98, execute this code: "The smaller the distance between gameObject1 and gameObject2, the thinner and longer this gameObject is". Somehow, this code has no effect. Why?  public Transform gameObject1; public Transform gameObject2;  void Update () {     float distance_squeeze = Vector3.Distance(gameObject1.position,                                                gameObject2.position);         if(distance_squeeze < 6.98F)     {         transform.localScale = new Vector3(-distance_squeeze, distance_squeeze, 1);     }    }


Mature PhD Project Application - How are these received?

I guess this is a question to group leaders and those who have some influence on what PhD students join their group. Essentially - I want to know your thoughts if someone like me applied to your PhD project.  At 20 I graduated with a 2:1 BSc in Human Biology from a top 50 Uni, then achieved a Merit MRes in Functional Genomics from a top 10 Uni. I pretty much went straight into industry working on lentiviral vectors for gene therapy treatments; however, after three months I was running low on money, having a pretty hard time at home and this all affected my work so left the company after 3 months.  In the economic downturn I had more trouble getting jobs and money so went did waitering and sports coaching to get by. For the last 3 years I've been in international IT sales and have picked up lots of skills - sales, communicating, negotiating, presenting, strategy, training, motivating and leading teams. I've also earned a fair amount of money and I'm in a pretty safe position financially to the point where I could not earn anything for 1-2 years before I hit zero.  At this stage in my life (27) I'm looking back at research and really want to give it a go, but have no idea whether I'd get accepted onto a PhD course. At my old University there is a project based on baculovirus vectors that's right up my street.   I'm definitely applying for it but wanted to understand how an application from a 27 year old with this history might be received. Essentially - what positives and negatives can you see from a mature application?  I feel like I have a good chance. I've got (old) experience in a related field; I'm more mature than a freshly graduated student; I have a lot of skill useful for promoting the groups work and teaching classes; and I'm used to working long hours in a results driven environment, dealing with rejection but making things happen - especially racking through large amounts of work based on personal plans and goals. This is all in a legitimate way rather than a lip-service way.  I'm hoping I can address any negatives people come up with and enhance the positives!  Cheers!


What word describes the painful emotion/physical sensations felt when experiencing something SO beautiful?

I have looked for a single word to describe this feeling of what seems to be contradictory states of being. I know a (very) little German, and searched there as it seems that language has more words to express complex emotions and feelings. No luck. This to me might help to explain it. I recently watched a clip of a little boy that started really crying  after seeing and holding a kitten. His mother asked him,  Why are you crying?  He could barely get it out...and said,  It’s just so beautiful!


Getting the subdomain from a URL sounds easy at first.  http://www.domain.example   Scan for the first period then return whatever came after the "http://" ...  Then you remember  http://super.duper.domain.example   Oh. So then you think, okay, find the last period, go back a word and get everything before!   Then you remember  http://super.duper.domain.co.uk   And you're back to square one. Anyone have any great ideas besides storing a list of all TLDs?


How do I use a quote that was basically made up?

I know the title sounds a bit ridiculous, but that's actually what I'm asking. The sentence in question is as follows:     "Well, of course robots don't deserve rights, they're not even living things!", may be a common response to the problem dealing with future robotic ethics.   I don't know if I'm correct in using it like that, but I would like some feedback on if this is right, and if not, what should I do?  By the way, I'm using MLA format and I couldn't find anything useful on the internet about this situation. Honestly, I don't know what to call this type of quote so I had a hard time looking it up in the first place.


What should I do with a ton of alternate domains? Redirect or use landing pages?

We have a ton of alternate domain names. What is the best strategy as far as SEO strategy is concerned? Do we want to 301 redirect them all to our primary domain or set up simple landing pages that link to the main site?


I'm very new to Android Developing.  I made a small 2d game and I was wondering what the easiest way to store the high-score would be, so if the app is exited and returned to the high-score is retrieved from the last session.  Any help would be appreciated!


Does damage from Talon, the +1 Longsword from LMoP, count as magical damage?

One of my players has Talon, a +1 Longsword that deals slashing damage, found in the Lost Mine of Phandelver adventure.  In regards to a creature that has "resistance to damage from non-magical weapons", does Talon deal magical or non-magical damage?


Reading lines from a text file and creating a text file for each name on each line

Let's say I have a text file like:  john george james stewert   with every name on a separate line.  I want to read the lines of this text file and create a text file for each name, like: john.txt, george.txt etc.  How can I do this in Bash?


Package 'kvsetkeys' error Undefined key {family}

While compiling my document, I am getting the following error message. I updated my packages and especially, kvsetkeys and kvoptions packages. Kindly guide me how to fix this.  \documentclass[12pt,a4paper]{article} \usepackage{amsmath,amsthm,amssymb,thmtools} \usepackage{mathtools} \usepackage[width=1.00cm, height=1.00cm, left=3.00cm, right=3.00cm,  top=2.00cm, bottom=3.00cm]{geometry} \usepackage{xcolor} \usepackage{wasysym,textcomp,array,arcs,polynom,cancel,enumerate,dcolumn} \usepackage{sectsty} \usepackage[colorlinks,linkcolor=magenta,citecolor=capri]{hyperref} \usepackage[nameinlink]{cleveref} \hypersetup{ colorlinks=true, linkcolor = {teal}} \usepackage{ebgaramond} \chapterfont{\color{gray}} \sectionfont{\color{brown}} \subsectionfont{\color{blue}} \paragraphfont{\color{green!50!black}} \usepackage[most,listings]{tcolorbox} \usepackage[left]{showlabels} \usepackage{varwidth}  \begin{document}  bla bla bla  \end{document}     I am unable to fix this error.


$P=\sum_{k=0}^{n}c_{k}z^{k}$ if $\forall t\in[k].c_t\in\mathbb{R}\rightarrow\int_{-1}^{1}P^2\leq\pi\sum_{k=0}^{n}c_{k}^{2}$ My try: it's clear that $\frac{1}{2\pi}\int_{0}^{2\pi}|P(e^{i\theta})|^{2}d\theta=\sum_{k=0}^{n}c_{k}^{2}$ so: $\int_{-1}^{1}P^{2}\leq2\pi\sum_{k=0}^{n}c_{k}^{2}$ I can't understand why the tighter bound exists


In physics sometimes we find energy that is negative. What does the negative sign indicate?

Sometimes we see energy that is negative, for example, the energy of an electron in orbit. We know energy is something that can do something. In this view does negative energy mean something opposite someway?


how can I find files matching multiple extensions from current directory with a single command?

For example all files matching ".doc" and ".txt". I know how to find one extension type, but I need multiple without running multiple commands.


Method that accepts a "generic" Enum as a parameter, then cast to a diff enum type at runtime

I'm not positive if the title of the thread is accurate.   I have a class of different enums:  public class Enums {     public enum StringActions      {           FIRSTNAME,          MIDDLEINITIAL,          LASTNAME     }      public enum IntegerAction     {         RANGE,         RANDOM     } }   I have an object who's constructor, I'd like to take in a generic Enums parameter, which would be capable of accepting either a StringAction or a IntegerAction. I have dictionaries (one for each enum type) that has these enums as the keys, and delegates as values. I want to use the passed in enum to lookup the correct delegate for that enum and then do some work with it.  public class DataPoint {     public DataPoint(Enum mAction)     {         if (mAction == Enums.StringAction)         {               var act = StringActionDictionary[mAction];         }         else if (mAction == Enums.IntegerAction)         {              var act = IntegerActionDictionary[mAction];         }         ...     }  }   With this implementation, I'll need to cast 'mAction' to the correct type but how can that be accomplished at runtime? Is reflection an option here, or is there another way?


Software to draw processor schematics (where to ask this)

I am looking for a good free online or offline tool to draw processor schematics like this:


Why do some recently asked questions not show up in the question list?

I asked , but within minutes, it was off the question list even though the question list went back an hour in time.  Is this some form of moderation?  If so, it seems weird that no comment was made within the thread that the question was deleted, moved, or otherwise removed from the question list.


Do an infinite set and its double have the same cardinality?

My question was inspired by .  Suppose $A$ is an infinite set. Does its double, $A\times\{0,1\}$, always have the same cardinality?  In my head I quickly spotted a simple proof that the answer is yes if we assume Axion of choice / Zorn's lemma. I have stumbled upon a couple of related questions, but the question looks so simple that I would like it answered without assuming AC.


I have installed Ubuntu using WUBI from my Windows OS. I created my username and its password. While I am trying to log in it's saying that the password is wrong. I have reinstalled 3 times giving the same problem.  How can I reset the root password in order for me to install an application?


How to Export "only" the illustration in Illustrator CS3?

I am using Illustrator CS3 and trying to export my illustration. Problem is, I wanted to only export the illustration, no the background canvas area, how I can achieve that?  Thanks.


Database program with CSV import and ad-hoc SQL queries?

Is there a database program for the Mac that makes it easy to import a CSV file into a table and then query and manipulate the data using ad-hoc SQL queries?  (A Windows example of a similar product would be Microsoft Access ... it also has forms and reports, which are not as important, but I would not mind a Mac solution that has those too.)


Ask & answer questions about niche programming language

Background  Okay, so I've figured out that obscure programming language are okay to ask about on Stack Overflow.  And, I know a bit about the language  used to code Medical Logic Modules (MLMs). But I am knowledgeable only within the context of Allscripts .  I don't need to ask questions for my own benefit, but would like to see MLM coding resources become more widely available on the internet and am considering doing some seed work by asking and answering some questions on Stack Overflow.  Questions   Is it okay to ask (and answer) questions about a programming language that may be specific in its flavor to a single manufacturer's product? I don't even know how much Arden is used in other products besides SCM, and in what ways it differs from other products. So my answers will likely step outside the bounds of plain Arden and be slanted toward SCM. Assuming yes, should I tag these questions with all of , , and ? The language is actually Arden Syntax, but MLM is often used as a synonym despite not being the name of the language (as in "write an MLM" or "MLM coder"), and SCM is a product name. But, I see parallels to for example  which is a particular manufacturer's product. Except, SCM itself isn't something that would necessarily bring to mind "ahhh, you're talking about Arden Syntax, of course!"   All in all aside from the tagging aspect I'm guessing I'm probably in the clear, but thought I'd go ahead and ask before I start creating questions and answers with new tags no one has ever heard of.  Update  See the new meta question, .


Backup and restore of TDE Databases to different server

There seems to be a lot of information on backing up and restoring TDE databases, but it's generally all the same information, and there seems to be some contradiction about certain points.  I have some specific questions I hope someone can answer.   Do I have to backup the Database Master Key and restore it?  Or is it enough to recreate it with the same password?   Similarly to #1, do I need to backup and restore the Service Master Key? If I've backed up the TDE encryption certificate and cert key, can I restore it to a different database that has a different DMK (and SMK) without losing data? If #3 is yes, then what is the purpose of backing up the DMK and SMK if you can just generate new ones when restoring the Cert?


How to find a best tool / Software from experts in StackOverflow?

According to me, StackOverflow is a community of experts. In that, I would like to get a feedback about a software / tool / application.   But now, I cant ask like these kinds of question in SO. Is there any way to ask these kinds of questions from the experts ? Whether this feature will be added in the future ?  Really sorry, If i have asked anything wrong. Just for curious to work with the latest and best technologies.


Can a resource card be used more than once in a turn when allowed to build more than one structure?

Scenario:   Player is using Babylon (side B)  2nd wonder has been completed (allows playing last card of each age instead of discarding) Player has a Mine in play (can produce either Stone or Ore) Player has no other way to produce Stone or Ore and no money to purchase from a neighbor It is the 6th turn of Age I Player has a Barracks and a Baths in hand (resource cost of one Ore and one Stone, respectively)   Can the player play both Barracks and Baths?  The 2nd wonder allows the player to play both the Barracks and Baths (assuming he can pay the costs), instead of having to discard one. The Mine can produce both resources, but the rules regarding cards that can produce more than one type of resource state:     the player can use one OR the other resource to build a structure (or a wonder phase) but NOT both in a given turn.   Both cards would be played in the 6th turn, so it would seem that the player cannot use the Mine to pay the cost of each card. However, is the limitation on using resource cards only once per turn really meant to be once per construction?  This question really applies to any resource producing card, not just the multi-resource producing cards. It was just simpler to explain this way, and the issue is more fuzzy due to the specific prohibition on multi-resouce producing cards being used more than once in a turn.


Is a covariance matrix defined through a Gaussian covariance function always positive-definite?

When using Gaussian processes, the covariance matrix $\mathbf{\Sigma}$ is often defined via a covariance function $K$ as follows $$ \mathbf{\Sigma}_{ij} = K(\underline{x}_i, \underline{x}_j) $$ where $\underline{x}_i, \underline{x}_j$ are coordinates of two points in some space of interest, and belong to some finite set of $n$ such points, resulting in a $n \times n$ covariance matrix.  Is it known whether the Gaussian (or 'squared exponential') covariance function $$ K(\underline{x}_i, \underline{x}_j) = a^2 \exp{\left(-\frac{(\underline{x}_i - \underline{x}_j)^{\top}(\underline{x}_i - \underline{x}_j)}{2l^2}\right)} $$ will always produce a positive-definite $\mathbf{\Sigma}$ for any chosen set of points and values of $a, l$?  Thanks!


Hi not able to play videos getting and unable to install video players too   gstreamer1.0-libav : Depends: libavcodec54 (>= 6:9.1-1) but it is not going to be installed or                                libavcodec-extra-54 (>= 6:9.13) but it is not going to be installed                       Depends: libavformat54 (>= 6:9.1-1) but it is not going to be installed  gstreamer1.0-plugins-bad : Depends: libchromaprint0 (>= 0.2) but it is not going to be installed                             Depends: libopencv-contrib2.4 but it is not going to be installed                             Depends: libopencv-highgui2.4 but it is not going to be installed                             Depends: libopencv-legacy2.4 but it is not going to be installed                             Depends: libopencv-objdetect2.4 but it is not going to be installed                             Depends: libopus0 (>= 1.0.3) but it is not going to be installed  E: Unable to correct problems, you have held broken packages.   Please help


A book about a military helicopter pilot who uses portals

I'm looking for this book I read 5 to 6 years ago about a military helicopter pilot who somehow gets the power to control portals and he travels through a portal to find out that they lead to an alien planet that the military is siphoning resources from.


This is infuriating me. I have to make a function that finds the transpose of a function. I want to initialize the tranposed matrix early by making it all 0. I do that by typing: b = [ [0] * len(a)] * len(a[0]) Whenever I do that, it just fills up with the bottom row of the original matrix: [[-9, -7, 10, 3], [-9, -7, 10, 3], [-9, -7, 10, 3]] But when I do: [ [0,0,0,0], [0,0,0,0], [0,0,0,0] ], it works just fine!! How is this possible? My function is: def matrix_transpose(a):     """     -------------------------------------------------------     Transpose the contents of matrix a.     Use: b = matrix_transpose(a):     -------------------------------------------------------     Parameters:         a - a 2D list (2D list of ?)     Returns:         b - the transposed matrix (2D list of ?)     ------------------------------------------------------     """          b = [ [0] * len(a)] * len(a[0])          for i in range(len(a)):         for j in range(len(a[0])):             b[j][i] = a[i][j]                   return b   a = [ [-5, -4, -9], [-5, 0, -7], [6, 9, 10], [5, -9, 3] ] b = matrix_transpose(a) print(b)


How do I redirect command output to a file?

I have a command that I run in a folder that outputs MD5 hashes and filenames on the terminal:  ls |sort -nr | xargs md5sum   I need this output in a text file that I can download and compare to another folder on another customer's machine. How can I modify the command such that its output is stored in a file in say /tmp? I'm using Redhat 5.


How to find the roots of $ x^4 + x + 1$ in the extension of $\Bbb F_2$?

Let $h$ the irreducible polynomial over $\Bbb F_2 = \{0, 1\}$  $$h  =  x^4 +x +1$$  Let $E=\Bbb F_2(\alpha)$, i.e. the field $\Bbb F_2$ extended with $\alpha$, where $\alpha$ is a root of $h$.   How do we determine the numbers of elements in the extension $E$? Can every non-zero element in the extension be expressed in the form $(\alpha)^n$ for some $n\in\Bbb N$ ? How do we find all the roots of $h$ over the extension $E$?


How to find a command not in man or info

I am trying to find alert but can't find it under man or info. I found a similar question involving type and it turned out it was under bash. How does one find a command like this without having to go through google? Also if anyone knows how to get alert that would certainly help as well.   type link:


Ubuntu Server 18.04 LTS length of support if installing Xubuntu Packages

We are using Ubuntu Server 18.04, and is supposed to have 5 years of support, but we also need a graphical GUI and we want to install Xubuntu packages.  Since Xubuntu 18.04 only has 3 years of support, what's going to happen with this server after those 3 years?. Are we going to face security issues? All the server is "downgraded" to only 3 years of support?.


Multiply/select every combination of an array to create a massive data set

I have an array ['cat','dog','rabbit','snake','sheep','cow','horse','pig'] and I want to output every combination of the elements, while also removing elements until the the data set includes one of each animal.  ['cat','dog','rabbit'] ['cat','dog',] ['cat'] ['dog','rabbit'] ['dog'] ['cat','rabbit'] ['rabbit']   but with a lot more data etc...  Are there any modules to help with this?  Thanls


How many days passed between the initial outbreak and "Chupacabra" in The Walking Dead?

Many have questioned the ability of the Still-Alives to have survived the zombie apocalypse, considering the stupid decisions they make, like the well debacle (2x04 - "Cherokee Rose"). But it's possible that they actually haven't been alive for very long.  How many days have passed from the start of the show to the events of episode 2x05 - "Chupacabra"?


I recently saw the etymology of the word technology and it comes from Greek thchni meaning art and logos which means word, reasoning, and stuff like that. So I reckon technology means doing something such that people consider it as a work of art. On the other hand, we sometimes see state-of-the-art which is used as adjective, or adverb in some contexts.   My question is, are they equal in meaning? Can we use them interchangeably? Is state-of-the-art a literal translation of technology?


How can I prove that a polynomial with degree $n$ is continuous everywhere in $\mathbb{R}$ using definitions?  With induction. I can show that this polynomial is continuous at $x_0$ but I do not know how to prove that it is continuous everywhere in $\mathbb{R}$. I know that a function is continuous on an interval if it is continuous at every point on the interval but this implies that I need to show for every $x_0\in\mathbb{R}$, the polynomial is continuous.


HTML Centers Paragraph but Doesn't Center Words

Okay, the title is a little weird. What I mean is that I don't want my text to be centered like this in the center of the page:       hi!   how are you  i am doing good   I want my text to be like this:  hi how are you  i am doing good   in the center of the webpage. I've tried centering paragraphs but it doesn't seem to work. Am I missing something obvious? Sorry for the probably stupid question.


How To Teleport Someone If He Types "Shop" in a Certain Coordinates?

I don't know if this is possible in Minecraft, but I will ask. I want if someone says "Shop" in certain coordiantes (Example: 985 53 1100 to 1107 53 978), he will teleport to 1046 54 1128.  How can I do this?


Should this relative clause start with "whom" or "to whom"?

Which of the following sentences is correct according to English grammar and usage? (Note: this was asked in an examination and I have to select only one of the four sentences.)     1) The fishermen, whom the flood victims owed their lives, were rewarded by the government.      2) The fishermen, to which the flood victims owed their lives, were rewarded by the government.      3) The fishermen, to whom the flood victims owed their lives, were rewarded by the government.      4) The fishermen, that the flood victims owed their lives, were rewarded by the government.   I think it is 1) or 3), but I’m not sure which. Is “to” required before “whom” in a sentence like this?


I have a lot of 404 errors in my google's console with strange form. some words added before a code which belong to another link. for example, I have a post with these address  mysite.com/project-15155 mysite.com/project-16155 mysite.com/project-17155   In google's console, I have these 404s  mysite.com/master-xchange-project-15155 mysite.com/master-xchange-project-16155 mysite.com/master-xchange-project-17155   It is a WordPress site. I also have checked "linked from" tab, but it could not useful!


How to change X location axis for particle system?

The carrots aren't properly placed to the ground. These carrots were created via particle system. I want to rotate my particle system X location axis 90 degrees. Is it possible?


What's the difference between .bashrc, .bash_profile, and .environment?

I've used a number of different *nix-based systems of the years, and it seems like every flavor of Bash I use has a different algorithm for deciding which startup scripts to run.  For the purposes of tasks like setting up environment variables and aliases and printing startup messages (e.g. MOTDs), which startup script is the appropriate place to do these?  What's the difference between putting things in .bashrc, .bash_profile, and .environment?  I've also seen other files such as .login, .bash_login, and .profile; are these ever relevant?  What are the differences in which ones get run when logging in physically, logging in remotely via ssh, and opening a new terminal window?  Are there any significant differences across platforms (including Mac OS X (and its Terminal.app) and Cygwin Bash)?


Subadditivity inequality and power functions

Is it true that if $a,b\in\mathbb{R}$ with $a,b\geq 0$ and $0<r<1$, then $(a+b)^r\leq a^r+b^r$?


$\lim_{n→∞} f(n+x)=0$ results in $ \lim_{x→∞} f(x)=0$

$f\colon [0,\infty) \to \mathbb{R}$ is uniformly continuous.  If $\lim_{n\to \infty}f(n+x)=0$ where $x\in [0,1]$, then $\lim_{x\to\infty} f(x)=0$.  every my trying to solve this is wrong :(  how can i prove this?  and if $f$ is just continuous, what happens to the results


It was mentioned in the movie  as well as in  and confirmed , that:     Knowhere — the mining colony located on the edge of the universe in the decapitated head of a long-dead [Links added by me]   Which Celestial Being did the head belong to? (if known).  I have also checked the , but the closest thing to its origins was this line from the creators (Dan Abbnett and Andy Lanning):     Honestly, they just came to us. The severed Celestial head was, I think, something that popped out of Andy's mind one day. Similarly, one morning, I said "what about a talking Russian dog?" We run with these things and develop them together. It's hard to pin down where exactly they originate.


When i turn on the pc, this message shows: ubuntu clean,201066/30075648 files, 9628570/123498240 block and it stay block right there . Doesn't boot anymore. How can I fix it? I am newbie with Linux, this is my first Linux so.. I boot only on Linux, I don't use dual-boot.


Galaxy S2 lcd broken, totally black screen. Would like to retrieve data through kies but as phone is swipe protected, kies won't unlock it. Any ideas?


I have the first iPad ever made not the actual first iPad ever made but the first version and I can’t download apps because all the apps are out of its legal how do I get a older versions of the apps? Onto the iPad


Finite dimensional distributions of brownian motion changed at a random point

In the book on Brownian Motion by Yuval Peres, he makes the following claim:     Suppose that $\{ B(t); \ t \geq 0 \}$ is a Brownian Motion and $U$ is an independent random variable, uniformly distributed on $[0, 1]$. Then the process $\{ \tilde{B} (t); \ t \geq 0 \}$ defined as,   $$\tilde{B}(t) = \begin{cases} B(t)  & \mbox{ if $t \neq U$} \\ 0  & \mbox{ if $t = U$} \end{cases}$$      has the same finite-dimensional distributions as a Brownian motion, but is discontinuous if $B(U) \neq 0$, i.e. with probability one, and hence this process is not a Brownian motion.   I'm having difficulty in proving that the finite dimensional joint distribution ( basically the joint distribution of $( \ \tilde{B}(t_1), \ \tilde{B}(t_2), \tilde{B}(t_3), \dots \tilde{B}(t_n) \ )$ ) is the same as the finite dimensional distribution of $B(t)$. Can you please give me some clues.


How can I filter my internet connection based on content?

I have a WinXP PC that my children (4-14 years old) use but want to restrict some internet activity to prevent them from being exposed to some of the questionable and adult content that is available.  We have to PC in the living room so we can monitor them as much as possible but when unattended I want a second check.  What are my options and is there free software that works?


Proving $\sum_{k=1}^n{k^2}=\frac{n(n+1)(2n+1)}{6}$ without induction

I was looking at: $$\sum_{k=1}^n{k^2}=\frac{n(n+1)(2n+1)}{6}$$  It's pretty easy proving the above using induction, but I was wondering what is the actual way of getting this equation?


Change the Account name of a Contract that is activated.

As per this  and this , if a contract has a status that is under the 'Activated' contract status category, the account name of that contract cannot change. This is a problem and I would argue it is a bug.   An  has been open since 4 years to rectify this, however it looks like this issue won't be addressed soon.   Let's say I have contract A that is under Account 1, and contract A should actually be under Account 2 but it cannot be edited because contract A has a category of 'Activated'.   How can I rectify contract A so that it does indeed fall under Account 2? I was looking at cloning contract A via the .clone(true, true, true, true) method and then doing an update but this isn't working because the 'ENTITY_IS_LOCKED' error msg is being returned still*.   Besides from cloning the contract from scratch, is there a way around this? (it isn't ideal to clone a contract because the id and auto-number will be different).   *For example,   Contract c = [select id from contract where id = 'ABCDEFGHIJ'];  Contract cCopy = c.clone(true, true, true, true); cCopy.accountId = '0012233445566';  update cCopy; system.debug('@@@@@@@' + ' ' + cCopy.id);


What is the function of the two resistors arranged in parallel with the transistor? Do they also limit the current to the transistor?    The full circuit is this:


How to prove $\sum_{k=1}^{n}k\binom{n}{k} = n2^{n-1}$

$\sum_{k=1}^{n}k\binom{n}{k} = n2^{n-1}$  I have tried both induction and transforming both sides to get equality but no luck  I know that   $\sum_{k=1}^{n}\binom{n}{k} = 2^{n}-1$ and $\sum_{k=1}^{n}k=\frac{n(n+1)}{2}$  p.s: I couldn't find something similar of this kind anywhere. But I thinks it's something that is related to Pascals rule. Please point out little hints, thank you


Download tex source from wikipedia article

Like the question says, Is there any way to download a compilable tex source from a wikipedia article? Or maybe a tool that generates a tex source from a wikipedia article.


LuaLaTeX stopped after updating expl3 package

After the latest TeX Live updates I keep getting these errors:  LaTeX Warning: You have requested, on input line 26, version            `2018/02/21' of package expl3,            but only version            `2017/12/16 L3 programming layer (loader) '            is available.   ! Package xparse Error: Support package l3kernel too old.   Any help appreciated.  Solution (from Christian's comment): restore l3packages to the previous version.