Multiple IF-statements in a single cell - checking long list of results

I have a Google Sheets where I enter all the results of my beer pong matches with friends. I'd like to see my amount of wins/losses with certain friends. This can be done with   =IF(AND(B2="Won",E2="Stefan",1,0)   Above code adds one point to a cell if I won with the teammate - adds 0 if not. However, so far I have 25 recorded matches, and the list will keep getting new rows. I don't want a column that calculates wins and losses, because I'd like to be able to see my score with up to 10 different people - it'd be too many columns. I'd much rather have the amount of wins and losses in 2 singular cells. I could write the above code into a single cell for each row, but that'd take too much time. I need something similar to:  =IF(AND(B2:B25="Won",E2:E25="Stefan",1,0)  But this above code checks if ALL the rows are equal to "Won" or "stefan". I need it to check the if statement for each row, and then add 1 point for each row that resulted in TRUE.  Anyone knows what I'm looking for?


I have a computer with two WD 1TB drives and I want to configure disk mirroring on it.  I tried setting up RAID during the installation by creating RAID partitions but that does not work for me.  Is there a convenient software that I can install to do the job for me? If no, what shell commands can be used?  Once it is set up how should I verify that it is working?


This optimization question popped into my mind while working with latex tables:  Suppose we have a table with $m$ rows and $n$ columns, and for each $1\le i\le m,1\le j\le n$ we are given $T(i,j)$ which is a paragraph of words to be put in the cell $(i,j)$. We also know that the table is going to span the whole text width of a page, which is $w$ characters. The question is:  How to find the optimal combination for width of columns, so that the height of the table is minimized?  I appreciate any thoughts on the complexity of the problem or an algorithm to solve it efficiently.


Would it be A or B?  A.) A wide variety of classes was added.  B.) A wide variety of classes were added.


There are two schools of thought on how to best extend, enhance, and reuse code in an object-oriented system:   Inheritance: extend the functionality of a class by creating a subclass. Override superclass members in the subclasses to provide new functionality. Make methods abstract/virtual to force subclasses to "fill-in-the-blanks" when the superclass wants a particular interface but is agnostic about its implementation. Aggregation: create new functionality by taking other classes and combining them into a new class. Attach an common interface to this new class for interoperability with other code.   What are the benefits, costs, and consequences of each? Are there other alternatives?  I see this debate come up on a regular basis, but I don't think it's been asked on  Stack Overflow yet (though there is some related discussion). There's also a surprising lack of good Google results for it.


Buying a car in Ireland as a non-resident

Does anyone know how to buy a used car in Ireland as a  non-resident? I am Australian and looking to buy one for the Mongol Rally.  Insurance can be done, but it seems to register the car you need to go in to an office with proof of address. Is that correct? Is there anyway to give an address but we don't have to live there (eg, a friends)?


Find a bijection to prove a fact about integer partitions

Prove that for fixed positive integers $k$ and $n$, the number of partitions of $n$ is equal to the number of partitions of $2n + k$ into $n + k$ parts.  I tried this with different values of n but can't seem to get a bijection between the two partitions.


Running Ubuntu 17.10. Installed Synaptic Package Manager through Terminal, but it won't open -- just asks for my password and then immediately closes. Ultimately I'm trying to use it to install Zotero 5.0, so alternative routes to that are also welcome. Downloading through Zotero website leaves me with a desktop configuration file that's functional but buried in several layers of folders, and attempting to do it through a web-based curl yielded nothing at all.   Attempted running synaptic-pkexec and it produced an error message: "No Protocol specified. Tried synaptic  and it returned "Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged. Segmentation fault (core dumped)"


How do I make an object which hides 3d objects behind it, but shows my video background?

I am currently interested in tracking 3d objects into my videos. I am not sure how to create what looks like a hole in the ground. If I used a sqaure with no top face, the outer sides of the cube would still appear over the video, I need only the inside of the cube to be seen.  Is it possible to make a sort of plane object that hides the 3d objects behind it, but still shows my video background?  -Owen


Is there a word for someone who is not a parent?

You can say of a person that they are single/married/divorced/widowed, even that that person is a parent (father or mother). But is there a single word to refer to someone who is not a parent?  I can only think of some compounds such as childless or kidless, but I'm not sure if they convey the meaning proposed. I have read somewhere that there is an acronym but I don't know if it's widely used: DINK, but it refers to couples without kids (Double Income No Kids), not to a single person.


There is a gap between the online help available on stack overflow and the offline help of real-world mentors, this is my modest proposal to correct that.   Here is a link to my original article:   Here is the content from said article:   First off, I love Stack Overflow. In the way that only someone who taught himself programming via outdated books, and old-school programming forums can. I think it’s the best way to ask most programming questions on the web, but that doesn’t mean it can’t get better.   Background: Today I just helped my girlfriend  @rubyku signup for a stack overflow account. I did this because she found the exact answer to her question already answered on Stack Overflow and felt the person who answered the question rightfully deserved some recognition. After we got her signed up, we went to give credit where credit is due, and “up vote” the answer, when suddenly we discover wham! we can’t because she doesn’t have enough reputation points. So she closed the window and moved on. While she got the question answered, she didn’t engage with the community and was frustrated by the interaction.  Reputation: On Stack Overflow reputation is measured in points and does two things, it keeps spammers and people trying to game the systems at bay. It also encourages users to provide good answers and ask good questions. I think the reputation system does a great job to accomplish these things, but it inadvertently does something else. It discourages new users from becoming part of the community and engaging since someone who just started can’t fully participate. They first have to ask or answer a question to get reputation.   Solution: Use mentors to merge real life reputation with online reputation, since i’m mentoring someone in person, i should be able to mentor them on Stack Overflow. I can vouch that she isn’t a bot, or a spammer, and I can give her real world motivation and incentive to get involved online and off. It should (could) work like this: I give up some chunk of my reputation to this new Stack Overflow member, and in return I get notified any time they make an action. This allow the mentor to help guide a student’s questions, comments, and up votes as only a real live person can, while giving accountability to student. But why would someone want to be a mentor, give up their points, and be bugged constantly? Besides caring about someone and wanting to see them succeed, there is a greedy reason built in the system. Since a mentor gets notified about any post the student makes, they get first dibs on questions, and in the long run if they are consistently helpful and answer their student’s questions, then their reputation will increase dramatically more than if they had never given up points to become a mentor.   Whether or not Stack Overflow ever implements such a model, we as programmers should always remember that there was a time when we needed help and sometimes an IRC channel or forum post, just wasn’t enough. While many of us are “self taught” programmers the most successful of us had some help along the way. Stack Overflow is a tool to help someone become better at programming, but not THE solution. We need to start bridging the gap between people who care, and people who need help. The more we use technology to bring these two groups of people closer together, the more we all win.


C# dispose unmanaged object stored in managed collection

In my class I have unmanaged objects in managed collection (pendingFramesBuffer). I need to implemented IDisposable interface. My question: Where I need to clear pendingFramesBuffer collection? In the if (disposing) {...} condition or not. public class Example : IDisposable {     // unmanaged pointer in managed collection     private BlockingCollection<IntPtr> pendingFramesBuffer = new BlockingCollection<IntPtr>();      /// SOME CODE TO FILL pendingFramesBuffer COLLECTION      public void Dispose()     {         this.Dispose(true);         GC.SuppressFinalize(this);     }      private bool disposed = false;      protected virtual void Dispose(bool disposing)     {         if (!this.disposed)         {             if (disposing)             {                      }              // CLEAR pendingFramesBuffer COLLECTION             while (pendingFramesBuffer != null && pendingFramesBuffer.Count > 1)             {                 var tookFrameBuffer = pendingFramesBuffer.Take();                 Marshal.FreeHGlobal(tookFrameBuffer);             }              this.disposed = true;         }     }      ~Example()     {         Dispose(false);     } }


Is the quotient map a homotopy equivalence?

It is well known that, if $A \subset X$ is a reasonable contractible subspace, then the quotient map $X \to X/A$ is a homotopy equivalence ("reasonable" means that the pair $(X,A)$ has the , e.g. if it is a CW pair). For example, it's proposition 0.17 in Hatcher's celebrated Algebraic Topology.  It seems to me that this result should be a consequence of the following result, which seems true but for which I've been unable to find a proof or a reference.  Proposition? If $X$ is Hausdorff and $\sim$ is an equivalence relation whose classes $C$ are contractible and such that every pair $(X, C)$ has the homotopy extension property, then the quotient map $X \to X/\sim$ is a homotopy equivalence.  The classical result would of course be a direct corollary of this one.   So, is this proposition true?


Trying to run a program in /root/ by other user by adding it to path

Specifically, I am using conda command part of Miniconda distribution. It happens that the installer put files in /root/miniconda3/.   The problem is that /root/miniconda3/bin is in path, but the command conda can only be run by root, not other sudoer.  I tried to set rights to 777 (I know this is bad since it contains compiler and stuff, and it's under root, but this is only for test environment).  Note: I own the root and the sudoer.


I have a problem using a variable surrounded with a try : Here's the beginning of my method :  public static word[] countWords(String text) {     try {             text = Preprocesseur.preprocess(text);     }      catch (IOException e) {             System.out.println("Error méthod countWords");             e.printStackTrace();     }       Actually i need to use the String text (preprocessed) several line after, but java doesn't affect the value Preprocesseur.preprocess(text) to the whole method --> it stays in the try/catch block  I was wondering : how to call my method Preprocesseur.preprocess and affect its return String to the whole countWords method ? Because a try/catch block is required (or throws declaration which leads to the same result)


Is it safe to drive I/O pins of an unpowered AVR ATmega328P?

Is it safe to drive the pins of this AVR chip while it's unpowered?  For example, if I were to share a motor driver such that it can be driven by two microcontrollers, would either microcontroller be damaged while the other is unpowered, but is seeing the signal voltages on its pins from the other microcontroller?  EDIT: Because this was marked as a duplicate, here is some clarification. The MCU specified here is different from a different manufacturer. Though I'm not sure, their operation and limits would most certainly differ. This question was not about wether it'll 'weaken' the MCU but about if its safe to do so in the first place. IMO weaken would mean that it is possible but over time it'll degrade the performance of the MCU.


Field extensions of finite degree and primitive elements

Over a field $F$ of characteristic $0$, if every every element of an extension field $K$ has degree less than $n$ over $F$, does this tell us that $K$ is a finite degree extension of $F$?  So it would seem like if every element of $K$ has minimal polynomial of at most degree $n$ over $F$, I would be able to say that the extension $K/F$ is finite.  But, it seems like maybe I am missing something.   Can every element of a field have finite degree, yet the extension as a whole be infinite?


Conservation of momentum for ball rolling up hill

I know that momentum is conserved in inelastic collisions. In other words, if the kinetic energy of the system is converted to potential, the momentum is still conserved  Suppose we have the situation where a ball is rolling up a hill. The ball does not have enough energy to get to the top of the hill, and so, it rolls back down.  The initial momentum was directed towards the hill, and the final momentum is directed away from the hill. How is momentum conserved?


Is any transit visa needed if I'm flying to USA from India on F1 visa & my flight have stops at Kuwait City (plane change) & London (same plane)?  According to my home work, for Kuwait City: no transit visa is required no matter whether one is changing the plane or not but for London Heathrow: in-transit visa is required only when you’ve to change the plane not in case if you’re continuing on the same plane. Please correct me asap If I’m wrong. Thanks a lot.  P.S Please help me to confirm my understanding of non requirement of in transit visa for Kuwait city. Just for confirmation, I'll be travelling on Kuwait Airways via stops at Kuwait City and London Heathrow. Can anybody give me link to ticket cancellation penalty policy for Kuwait Airways; as I'm unable to google it at my own.


For what reasons would or wouldn't one want 0 to be the start of the natural numbers as opposed to 1? Why would one want it to be 1, or why wouldn't one?


How can I convert underscore separated words to "camelCase"? Here is what I'm trying:  echo "remote_available_packages" | sed -r 's/([a-z]+)_([a-z])([a-z]+)/\1\U\2\L\3/'   But it returns remoteAvailable_packages without changing the p in packages.


How do you convert a DataTable into a generic list?

Currently, I'm using:  DataTable dt = CreateDataTableInSomeWay();  List<DataRow> list = new List<DataRow>();  foreach (DataRow dr in dt.Rows) {     list.Add(dr); }   Is there a better/magic way?


Does Dark Souls III follow Dark Souls and Dark Souls II in the storyline?

Is there a significant storyline that progresses from the first game to the third game? Such a story line would cause a player who started with the first game to be incredibly confused, and causing the games to be linked in order. The alternative is that they are all based in the same world, and there are certain parallels I will miss not having played the other games, the latter I can live with, the former, not so much.


PDO bindValue() adds apostrophes around value

I want to CREATE a table using using PDO prepared statments. The problem is that bindValue adds '' around the binded value. I don't understand why this happens. How can I avoid this so that my table name is set as users and not 'users'? Thanks.  Code:  <?php  $table = "users";  try {    $db = new PDO("mysql:host=localhost;dbname=test", "root", "");   $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);    $sql = "CREATE TABLE `:table` (id INT(11) AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100) NOT NULL)";   $stmt = $db->prepare($sql);   $stmt->bindValue(':table', $table);   $stmt->execute();  } catch(PDOException $e) {    echo $e->getMessage();  }  ?>   Here is the result in phpmyadmin:


Dock shows in both displays can't change the settings. ubuntu 20.04

I installed ubuntu 20.04 and I have a separate display. in the setting, there is an option that add a dock to both displays. I just tried it and it worked, now I can't undo this. when I select the option to the built-in display it won't work and automatically change back to the all-displays option.  any suggestions


Must a monotone function have a monotone derivative?

If a function is differentiable and monotone on the interval $(a, b)$, then its derivative is also monotone on $(a, b)$.   How do you prove this statement is wrong?   Can you please provide an example?


How to add field history and product as a related list of opportunity in vf page

I am trying the below code to add field history and product as a related list of opportunity in vf page, but its not working .  <apex:relatedList list="OpportunityFieldHistory"/> <apex:relatedList list="Product"/>   Can anyone tell me what is the correct way to write it.  Regards    Edit:  There are two Standard objects that have Opportunity history information,  and . The relatedList component works fine with a value of OpportunityHistories for the list attribute, but an error is thrown when using the value of Histories, even though the SObject describe information shows "Histories" as the child relationship name.   <apex:relatedList list="OpportunityHistories"/> <!-- Works fine --> <apex:relatedList list="Histories"/>            <!-- Error -->


Short Story: Army investigates barrier and house

I am trying to identify the author and title of a short story with the following plot.  A scientist narrates a story where s/he is called in to help the army investigate an unexplained phenomena.  The army has cordoned off an area where a prairie home has appeared. It is surrounded by a dome that allows things to enter but not to leave. Briefing the scientist, the Army explains that it appears that it is a family of five with mother, father, son, daughter, and grandfather. They look completely normal and live an idyllic life of the 40s or 50s.  They continue to send probes in to investigate the dome and its proprieties. Not sure if this a time anomaly or another dimension.  An Army lieutenant, so enamored by their life runs through the barrier to join the family. The Family faces split into an unnaturally wide smile full of sharp teeth runs towards him and tears him to pieces & eats him. The grandfather then looks up acts as if he can see the forces gathered outside the barrier. He then retrieves a book and it looks as if he reads it out loud and the house and barrier disappear. The narrator worries that the aliens will return.


How to derive the Schrödinger Equation from Heisenberg's matrix mechanics and vice-versa?

How do you derive the  (wave mechanics, time dependent state) from  (matrix based, time dependent operators)


I am writing a paper using the springer journal LaTeX template. For some references I want to use in-text citation like this:    but for some reason, when I try this in my document I get the following:    I can't seem to figure out where the problem lies.  I tried using \citeauthor and \citeyear, but that does not solve the problem unfortunately.  Below is a MWE:  \documentclass[]{article} \usepackage[numbers, sort, comma, square]{natbib}  \begin{document}   bla bla bla \citet{aaronson1998}.    \bibliographystyle{unsrt} \bibliography{bibfile}   \end{document}   BiBTeX entry:  @article{aaronson1998,   title={Translation, validation, and norming of the {D}utch language version of the  {SF}-36 Health Survey in community and chronic disease populations},   author={Aaronson, Neil K and Muller, Martin and Cohen, Peter DA and Essink-Bot,      Marie-Louise and Fekkes, Minne and Sanderman, Robbert and Sprangers, Mirjam AG and  te Velde, Adrienne and Verrips, Erik},   journal={Journal of Clinical Epidemiology},   volume={51},   pages={1055--1068},   year={1998},   publisher={Oxford; New York: Pergamon Press, c1988-}     }


What is the exact value of 3.199 E +01 ? Does it mean $3.199\times10^1$??  I get confused with the notation.


If I have two ECDSA signatures that use the same k (nonce) but different secret keys, can the secret key be computed?

I have two ECDSA signatures $(r, s_1, z_1)$ and $(r, s_2, z_2)$ where $s_1 = (z_1 + r*x_1) / k$, and $s_2 = (z_2 + r*x_2) / k$.  Can $x_1$ & $x_2$ be computed?


Getting signal when toggling group in PyQGIS?

I have a group which contains x number of layers. I can connect the group's node  signal to a simple print function so that when the group is toggled, a message is printed to the console.  The issue is that the message is printed x times (the number of layers in the group) + 1 (the group node itself).   Is there a signal which is only emitted once when the group node is toggled?   I tried searching in the  and  classes but I seemed to have missed it.    A simple example:  def print_me():     print 'something'  group = QgsProject.instance().layerTreeRoot().findGroup('myGroup') group.visibilityChanged.connect(print_me)


how to create a countdown in my web application?

I am trying get a counter to work in PHP so it basically counts '5' then '4' and so on till 0. It will redirect to a different page. I was just wondering how this can be done in PHP? if possible, if not what it would be in javascript?


I am new to Vim. I'm following  tutorials to help me learn to use it.  But some of my commands are not working, for example:  Capital W. f followed by a character. (To move to next same char.)   Why is this happening and how can I get these commands to work?


Does Han Solo know what is going to happen when he encounters Kylo Ren on the bridge?

In The Force Awakens, on the bridge, it's not clear to me if Han goes into his confrontation with Kylo Ren expecting the outcome, e.g.      that his son will kill him.    much less expecting to help Kylo Ren complete his task. If that's the case, I don't understand why things needed to work out the way they did.   Why does Kylo Ren have to go through with it if he's conflicted  Why would he need Han's help?  What obligation is holding him to completing this task?  Why not just decide to turn to the light?


Can I add examples/citations to another person's answer?

Recently I was asking a question on the Stack Exchange network and received a very brief description of how to handle my issue.  Unfortunately the answer didn't have any citations or examples. As such, I took the liberty of modifying the author's post to include citations and an example which did exactly what the author had said.  In my mind I was "clarifying the meaning without changing it", "adding related resources or links", "". Was I wrong?  Based on additional discussion I was told to add the additional information to the comments, but this seems to act opposite to "". When I bring up these well defined suggestions for what edit's are for, the users do not answer clearly what I could've done better outside of creating a duplicate answer with my additional information.  Please clearly define when links/resources should be added to an existing answer versus when a duplicate answer should be created.


Change pixel values in a polygon using Google Earth Engine?

I've a classified image and polygon. The classified image pixels have two type of values (0 and 1) where 1 represents urban and 0 represents non-urban land cover. I found some wrong classified pixels as urban land and I marked the pixels' boundary by a polygon. Now I want to change the pixels' value to 0 as non-urban land cover in the polygon.  I tried to do that after converting the polygon to raster and set its value as 0. Then, I multiplied it with the main image but it didn't work.  Here is my code:  var mainImage = image1 var polygonImage = polygon.reduceToImage({     properties: ['type'],     reducer: ee.Reducer.first() }).multiply(ee.Image(0));  var finalImage=mainImage.multiply(polygonImage);   I'm looking for an effective solution regarding the issue.


onClickOut (click after leaving the element)

The problem was that I need a "onClickOut"-Event.  For example: You have a DIV viewing on hovering (onMouseOver) some Button or what ever.  If you click outside the element it needs to hide, but if you say $("body").click it also will be hidden when you click into the element itself. :/  Now I listen the mouseposition and when mouseleave() I set a var on clicking into my element. In the next step I listen a generelly click-event (body) but I ask if the var was set. If not it has to be a click outside my element, so I can hide my element.  I hope you can use it:  $("#schnellsuche_box").mouseleave(function() {     var inside;     $("#schnellsuche_box").click(function() {         inside = true;     });     $("body").click(function() {         if(!inside) {             $("#schnellsuche_box").hide();         }     });     delete inside; });


I am trying to implement a Maple code which calculates the $n$-th iterate of a differential operator. For example I have the operator  L:= f-> diff(f,t$2) + diff(f,t);   Now e.g. the second iterate of this operator can be calculated by writing L(L(f(t))); However this quickly gets out of hand if I want to calculate higher order iterates of $L$, and sometimes I would even like to have variable order (e.g. in sums).  Is there a command in Maple which would allow me to specify the order of iteration $n$, the operator $L$, and the function $f(t)$, and which would return the expression for $L^n(f)$?  I tried to write a procedure for this using a for loop but this didn't work out for me since it says I have "too many levels of recursion". Here's the code:  Ln := proc (n, f)     local g, i;     g := t -> L(f(t));    for i from 1 to n do:         g := t -> L(g(t))    end do:     g(t); end proc;


What is the real notion/feel of a tensor quantity?

I have been just introduced to the term tensor while studying Rotational Dynamics, particularly about Inertia. But I just don't get a clear line separating vector from a tensor. What does someone mean when stating a particular physical quantity as a tensor quantity?


How can a macro detect whether it is invoked in the beginning of a sentence?

I want to have a macro that behaves differently based on the context. Assume I write a tutorial in X language. A term that I use must be written in X language followed by the corresponding English translation (enclosed and italicized in ()) only when it occurs at the first time. The remaining occurrence will only be written in X language.   I can do it with the following code.  \newif\ifVector \newcommand{\Vector}{%     \ifVector         vektor%     \else         vektor (\textit{vector})%         \Vectortrue     \fi}   But a new problem arises. How to make the macro change its capitalization when it appears in the beginning of a sentence? Here is my complete dummy code for you.  \documentclass[preview,border=12pt]{standalone}  \newif\ifVector \newcommand{\Vector}{%     \ifVector         vektor%     \else         vektor (\textit{vector})%         \Vectortrue     \fi}   \begin{document} \Vector\space isg kush guste vien. Fur sji nam von gis ta marjo navar \Vector. \Vector\space is fin nom bis kan da dej vanm. \end{document}


Is it possible to list all functions in a module?

I defined a .py file in this format:  foo.py  def foo1(): pass def foo2(): pass def foo3(): pass   I import it from another file:  main.py  from foo import *  # or import foo   Is it possible list all functions name, e.g. ["foo1", "foo2", "foo3"]?    Thanks for your help, I made a class for what I want, pls comment if you have suggestion  class GetFuncViaStr(object):     def __init__(self):         d = {}         import foo         for y in [getattr(foo, x) for x in dir(foo)]:             if callable(y):                d[y.__name__] = y     def __getattr__(self, val) :         if not val in self.d :            raise NotImplementedError         else:            return d[val]


Is it possible to use a nVidia GPU to render graphics if the monitor is connected to the motherboard video port?

I have an Asus Z87 Deluxe motherboard, which has an integrated Intel HD 4600 GPU; I also have a nVidia GeForce GTX 560 TI graphics card; currently, my monitor is connected to the graphics card and the onboard GPU is unused.  If I connect the monitor to one of the motherboard video ports (it has both HDMI or DisplayPort), the video output will be handled by the onboard GPU; in this situation, can I still use the nVidia card to render graphics, f.e. in games? Or can it be used only when physically connected to a monitor?  The operating system is Windows 7 x64.


Windows 10 Boot Loader is neither found in BIOS nor in GRUB. Unable to boot on Windows

My desktop contains two SSDs and one hard drive. One SSD has been installed with Windows 10. The installation went fine and I found the entry "windows boot loader" in BIOS.  After installing Ubuntu 16.04 on the 2nd SSD, I ran the command "sudo update-grub", but grub has failed to detect windows installation. Strangely after grub updating, "Windows-boot-loader" entry has disappeared from BIOS, however "boot override" (under save & exit menu of BIOS) still shows "windows-boot-loader".  Now I could very well log into Ubuntu 16.04 but not on windows 10. i.e., my windows 10 has been missing simultaneously from both BIOS as well from GRUB.  I booted through USB Pen drive(windows installation), and went inside "windows SSD" through "repair" option and I found entire installation has been present and safe.  Note: both windows and Ubuntu have been installed in UEFI.  Right now I am unable to boot into Windows. I need help in restoring the missing windows boot entry. Thanks in advance.


How to position graphics on top of page, and let the two-column text continue below it on the same page?

Since one month, I have started using LaTeX in Overleaf and I love it. Though there is still much to learn.  I am writing an ACM format paper and all my pages consist out of a two-column layout.  My question: How can I position a graphic on top of the page, and let the two-column text continue below it on the same page?  Currently what I get is the image does showcase on top of the page spanning over two columns. But the text of the second column runs through parts of the image that is spanning the second column.   A couple of things: If I put '\onecolumn' before the '\begin{figure}' part, the spanning goes well, as it will span over a one-column \textwidth. But then the text must continue in \twocolumns after the image and this doesn't seem to work. If i don't add '\onecolumn', the image does span over two columns, but the text of the second column just overlays part of the graphs that is spanning the second column.   This is a sample of my setup:  \subsection{Front End} \blindtext  \begin{figure}[htp] \includegraphics[scale=0.50]{img/system.png} \caption{System Design}% \label{fig:System Design}% \end{figure}  \subsection{Middleware layer} \blindtext   If someone can review my actions, and please steer me into the right direction.


How to remove the blur in the raw image(.cr2) using photoshop cc 2018

I'm new to photography. The raw picture(.cr2) is out of focus. It focuses background instead of the person in the picture, and the person in the picture is really blurred, and the background is very clear. How to unblur the area of the person in the picture.    Camera: Canon 6D Lens: 50mm 1.8f


Why did Ghost not participate in the war?

In S06 E09 why did Ghost (Jon Snow's direwolf) not appear in the war? It might have helped a lot for Jon. Also Ramsay was attacked by hounds, so why not Ghost?


How to avoid "My Guy" syndrome while roleplaying a flawed character?

Related:   A while ago, I ran into an interesting conflict in a game that got me thinking.  I was playing in a party with a Knight/Paladin and three other characters. The Paladin was playing what essentially amounted to a wandering freelance cop, bringing justice wherever they found injustice, while the rest of the party was following along for the promise of gold rewards. Everyone, players and DM, was happy with this arrangement, as it brought regular sandbox style quests and good money.  The problem began when we ran into a deliberately grey moral situation presented by the DM. A drow entered a human village and was immediately captured and thrown in holding before public execution. The party discovered the drow was a thief, and the Paladin wished for the drow to be brought to proper justice for this, without the extreme of hanging "because drow". The paladin makes a deal with the drow: they'll free him from execution if he surrenders to whatever local laws did to thieves. Drow agrees, paladin convinces local law, drow pleads innocent of all charges, local law lets him go due to lack of evidence. Paladin is upset.  Up until now, the rest of the party has been with the Paladin, helping in endeavors and generally agreeing with the course of action. This changes when the Paladin decides to go after the drow, talking about capturing him and hauling him off to the "Drow Town he came from" for whatever justice they choose (Paladin is in character not knowing how drow or their cities work). The rest of the party protests, saying it's probably several weeks' journey, but the Paladin is dead set and will not be convinced. Eventually the party begrudgingly agrees to follow, they catch up to the drow who resists arrest, and they mostly-accidentally kill him. It's bittersweet, but everyone is more or less okay with this resolution.  After the session, the player of the paladin explained the behavior sort of like this:     My character's major arc and theme is that he believes justice is a black and white, simple thing that he can recognise and deal with. In reality, justice rarely is, and I appreciate being given a situation that allowed us to explore that. My plan for the character is for him to slowly realise this complexity, and rely more and more on the wisdom of Bahamut to tell him what to do. I'll figure out how to take his development from there when we get there.   Where is the line between roleplaying a naive, stubborn character undergoing development and being a problem player? How can we portray internal character conflict and personal flaws without ending up in "My Guy"?  Clearly there are instances in which playing a flaw or ignorance like this is acceptable, otherwise we would all be playing Mary-Sue characters.


PHP if statement not returning the right page number

Ive got this script to narrow down which page number a release ID is it seems to work for the most part but when i enter 0013 as the number it should say its pageNum=311 but it always comes back with 261.  Have i done something wrong?  Here is the script:  $releaseNumber = sprintf('%04d', 0013);  if($releaseNumber < 6300 && $releaseNumber > 6000) {     $pageNum = 1; }elseif($releaseNumber < 6001 && $releaseNumber > 5800) {     $pageNum = 16; }elseif($releaseNumber < 5801 && $releaseNumber > 5600) {     $pageNum = 26; }elseif($releaseNumber < 5601 && $releaseNumber > 5200) {     $pageNum = 36; }elseif($releaseNumber < 5201 && $releaseNumber > 5000) {     $pageNum = 56; }elseif($releaseNumber < 5001 && $releaseNumber > 4700) {     $pageNum = 66; }elseif($releaseNumber < 4701 && $releaseNumber > 4300) {     $pageNum = 81; }elseif($releaseNumber < 4301 && $releaseNumber > 3900) {     $pageNum = 101; }elseif($releaseNumber < 3901 && $releaseNumber > 3500) {     $pageNum = 121; }elseif($releaseNumber < 3501 && $releaseNumber > 3100) {     $pageNum = 141; }elseif($releaseNumber < 3101 && $releaseNumber > 2700) {     $pageNum = 161; }elseif($releaseNumber < 2701 && $releaseNumber > 2300) {     $pageNum = 181; }elseif($releaseNumber < 2301 && $releaseNumber > 1900) {     $pageNum = 201; }elseif($releaseNumber < 1901 && $releaseNumber > 1500) {     $pageNum = 221; }elseif($releaseNumber < 1501 && $releaseNumber > 1100) {     $pageNum = 241; }elseif($releaseNumber < 1101 && $releaseNumber > 0900) {     $pageNum = 261; }elseif($releaseNumber < 0901 && $releaseNumber > 0700) {     $pageNum = 271; }elseif($releaseNumber < 0701 && $releaseNumber > 0500) {     $pageNum = 281; }elseif($releaseNumber < 0501 && $releaseNumber > 0301) {     $pageNum = 291; }elseif($releaseNumber < 0301 && $releaseNumber > 0100) {     $pageNum = 301; }elseif($releaseNumber < 0101 && $releaseNumber > 0000) {     $pageNum = 311; }


My click function is not working for a button after a class is added on to it

Basically the point of the code is that its a dropdown. The dropdown is initially displayed to none and when it is clicked a active dropdown class is added on to it. The problem is that once its added its not working when I try to use jquery to hear for a click. html <button onclick="dropdown_btn()" type="button" style="background: none; border:none; font-size: 25px;          font-weight: bold; position: relative; top: 29%; cursor: pointer; outline: none" id="user-page" class = 'user-dashboard-dropdown'>          </button>

Profile

Account

Saved Items

Listed Items

Logout

  jquery/javascript    function dropdown_btn(){         $('.user-dashboard-dropdown').addClass('active-dropdown');         $('.dropdown-for-user').css('display', '');          }          $('.user-dashboard-dropdown.active-dropdown').click(function(){         alert('ran');         $(this).removeClass('active-dropdown');         $('.dropdown-for-user').css('display', 'none');     });


I am using Ubuntu 12.04.3 Kernel 3.8.33 on an Intel N2600/GMA3600 Netbook. Ubuntu currently runs in 1024*600 resolution which is perfect for my netbook.   However the graphic performance is very poor. I am stuck with Unity 2D and video playback is dreary. Glxgears reports framerates (<1) and CPU usage for glxgears is 100% (as reported by top). The driver in use is gma500_gfx.  I read somewhere that the proprietry drivers in repositories can give hardware accelarated video playback and OpenGL ES support. However, the cedarview-graphics-drivers fails to install with kernel>3.2 and Xorg>1.1.   I am planning on downgrading to Ubuntu 12.04.1,   where these drivers can be installed ?  Will it provide better video playback than gma500_gfx ?


What is the evolutionary tradeoff against primates producing multiple offsprings (litter)?

If we evolved to have multiples all the time we would more likely have extended families living together in 1 house. This would be better than the spouses by themselves for multiple reasons including money.  And during prehistoric times it would have been better for several reasons including that 1 would be more likely to survive than if it was born without any siblings.  Most mammals have litters of at least 2. An extreme of this is the cheetah which has litters of up to 9 cubs. They evolved to have litters because they were in conditions where 1 is likely to starve. Lions evolved this for a different reason since lions are not likely to starve. They evolved it because of the fact that they live in prides.  So for primates including us wouldn't it be better if they had litters often instead of single babies?


How to run Windows 10 in a virtual box on an Android phone?

I use my phone for communications and work on the go. I use a windows 10 tablet connected to external mouse/keyboard and monitor. Many programs such as email and contacts etc., are duplicated on each hardware.  Is it likely to be possible to run Windows 10 in a virtual box on an Android device, - so I can still use the Android phone for communication and emulated Windows 10 with the external monitor/keyboard for desktop use at the same time?  Virtual box, I mean something like Oracle’s Virtual Machine which lets you run other operating systems in a window on top of the main operating system.


I am trying to do a Minecraft-like game (like every one have already tried I guess) and i went across the problem i expected: lag with world Generation. I did lot of searching but i can  I tried to combine them into a bigger mesh, which work, but not i can destroy a single block. So how can I place/destroy chunked (mesh combined) block? If i cant, can someone clearly explain me a solution (i am not fluent in english nor with programming expressions, i can code tho) and how to do it (with a script example if possible :) ) ? Thanks in advance !  I generated my world using 2D perlin noise. Once i have the blocks, i split them into 16x16x100 chunk meshes.  Before Making chunks, i first tried to combine all of them into one block (using the unity manual), but the result is only one cube placed at 0,0,0. Where are all the other cubes ?  using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; public class ThisWorldGen : MonoBehaviour {  public GameObject blockPrefab; public GameObject grass; public GameObject dirt; public GameObject rock; private string[] blockTag;  private GameObject stockin;   public int amp; public int freq; private Vector3 mypos; [SerializeField] private Material material; private Vector3 blockLocations;  public List<MeshFilter> meshes = new List<MeshFilter>();  void Start() {     Generate(); }  void Generate() {     amp = Random.Range(0,100);     freq = Random.Range(30,100);     mypos = this.transform.position;     int cols = 100;     int rows = 100;     float startTime = Time.realtimeSinceStartup;         #region Create Mesh Data     MeshFilter blockMeshes = Instantiate(blockPrefab, Vector3.zero, Quaternion.identity).GetComponent<MeshFilter>();      for(int x = 0; x < cols;x++)     {         for(int z = 0; z < rows;z++)         {              float y = Mathf.PerlinNoise ((mypos.x + x) / freq,(mypos.z + z)/freq) * amp;             y = Mathf.Floor(y);             for(float hy = y; y > 0.0F; y -= 1.0F)             {                            blockMeshes.transform.position = new Vector3(mypos.x + x,y,mypos.z +z);//move the unit cube to the intended position                 meshes.Add(blockMeshes);                     }         }     }     int i = 0;     MeshFilter[] listMeshes = new MeshFilter[meshes.Count];     foreach(MeshFilter cubesToAdd in meshes)     {                            listMeshes[i] = cubesToAdd;         i++;     }     CombineInstance[] combine = new CombineInstance[listMeshes.Length];     int w = 0;     while(w < listMeshes.Length)     {            combine[w].mesh = listMeshes[w].sharedMesh;         combine[w].transform = listMeshes[w].transform.localToWorldMatrix;         listMeshes[w].gameObject.SetActive(false);         w++;     }     Debug.Log (combine.Length);     transform.GetComponent<MeshFilter>().mesh = new Mesh();     transform.GetComponent<MeshFilter>().mesh.CombineMeshes(combine);     transform.gameObject.SetActive(true);     #endregion     Debug.Log("Loaded in " + (Time.realtimeSinceStartup - startTime) + " Seconds."); } }   (the world was generating randomly and perfectly before trying to merge the meshes)


How to reduce size of a jpeg image in Photoshop?

I'm trying to reduce the size of my photo. I have tried all solutions given on this website.  My current image size is 159 KB and I have to reduce to 10 KB with 5L x 3.6w.


Parking a bike with wide tyres in a narrow bike rack

I park my bike at work in a rack like this:    At the moment I have 26 x 1.9" knobbly tyres and the wheel just squeaks into the rack. However I'd like to replace these with 26 x 2" Schwalbe Marathons for a smoother ride and better puncture resistance, and these almost certainly won't fit.  What's the best way of putting my bike in this rack if the tyres won't fit, preferably without annoying colleagues by taking up more than one space? So far I've thought of:   using the lock cable to 'tie' the wheel to the side of the rack - possible but a bit of a faff fitting the bike with a kick stand so it doesn't need the rack to hold it upright - not ideal getting the 26 x 1.75" tyres instead - would work but I'd prefer the wider ones for best grip as my ride is partly on offroad paths and a cobbled street (and nothing to do with thinking the wider ones look better, honest).   But are there any other techniques or products I haven't thought of?  (Security of this type of rack is not a big concern, incidentally, as the rack is inside a shed with a code lock.)


Association football: when is a player no longer in offside position?

I have never found an answer to this simple question, in the rules of Association Football, nor from any "experts" (who usually do not even understand what the question is about).    Suppose a player is in offside position, the ball is played by a teammate, but the offside player "freezes" and shows they are not participating in the game.  So they are not in offside offence.   Then, the play continues, and the player at some point, "unfreezes" and actively participates. This happens all the time.    Question is: at what point in time, is the player allowed to "unfreeze", without being penalized for the offside that they were previously?    Obviously, the answer cannot be, "wait a second and then you can play".  So this is a real question, when are they allowed to play?  Is the answer "the player must first get off offside position, that is, either get behind the second-last opponent, or get behind the ball, or get behind the halfway line, and once they do that, they can quickly, for example, turn around and participate run back towards the goal" ?  Maybe that is the answer.  But if that is so, then there is the second question:  Why is it not mentioned at all in the rules of the game, and why do the players not seem to follow this rule precisely? That is, they don't seem to quickly run as fast as they can past the secon-last and quickly turn around and run back?    Thank you.


How it started: Wanted to view Code window and Spreadsheet at same time.  In XL VBEditor, Dragged Code window, Project window, and Properties around on screen to accomplish this.  Pushed a few toggle buttons such as View Code, Show/Hide folders to see what they did.  What occurred: Noticed that all modules still listed in project window, but when click on any one module name, the macro routines were missing on the module.  For the most part, some comments and the code 'Option Explicit' were still visible, but all the macros=subroutines gone.  More confusing:  SOMEtimes if I remove the code line 'Option Explicit', the macros on that particular module reappear.  MOST confusing:  If I find a module that shows one macro #1, I can try to write another macro (#2) on that module.  When I complete macro #2 which has form Sub NewMacroName(), ..., and End Sub,  the second macro #2 is present but the first macro #1 disappears! Remove Sub #2 and Sub #1 reappears  CONCLUSIONS SO FAR: The macros are clearly hidden, not actually gone. If I open the Object Browser, I can see a list of Global Classes (each one is a coding module). If a click on one Global Class, I see a list of  Class Members (each one is a subroutine/macro).    I thought it wouldn't be impossible to work in this configuration, but it will be quite inconvenient.  Getting back to the original configuration would be a blessing.  In reality, either macro routines can't see the personal workbook, or they can't see specific personal macro routines.  Tried to talk with Microsoft about this, but after 30 minutes a service person came back on and said no one is answering today, try again another day.  On a workday, I got back to MSFT.  MSFT wants $499 to even discuss the problem.  Ouch!  Setup:  Windows 10 up to date, HP laptop less 6 months old,  Excel from Office 2019, although many macros/modules written from Excel 2010.  Everything was fine until I started moving window panes around.  Thanks in Advance for your helpful insights.  ADDENDUM:  18March2019:  Gave up on fixing the above problem while I was out of state working on a project.  Hoped that reinstalling Excel 2019 once I got home would clear the problem.  No such luck.  Resolved that I would have to search the internet stem to stern for solutions.    One idea on the internet led me to: Excel: Developer: VBEditor: Tools tab: Macros: all my Macros listed  Decided to arbitrarily pick one macro and hit Edit button. Viola!  ALL of my macros became visible on all of the modules on all of my workbooks.  After less than an hour of replacing very minor code that was missing from personal code, I was back up and running normally.  Clearly clicking on Excel: Developer: VBEditor: Tools tab: Macros: Edit one macro Corrected something!  I figure that at least one expert on this web site recognizes what the problem was and will clue me in - so I don’t do it again!  Again, thanks in advance for your constructive replies!


My question is: Can you find a cyclic group with n generators?  I know that zero (or any other identity element for that matter) is included, so there would be for $Z_n$ at most n-1 generators. However, is it possible to say that $Z_{n+1}$ could provide n generators?  Any help would be much appreciated! If you wouldn't mind, I would appreciate it if you provide enough detail to really help me understand so I can learn. Thanks in advance!


Inspired by Detective Pikachu, I was wondering which Pokémon can "speak" with humans.  I would like to include  Pokémon like Meowth in the anime that speak English/Japanese with their mouths, Pokémon like Mewtwo in the anime/movies that speak telepathically, or other Pokémon we've seen like Lugia/Entei that seem to speak without moving their mouths but still out loud for all to hear (presumably).  The format doesn't matter (manga, anime, video games). And while this is inspired by Detective Pikachu, it's not about it, as the movie is not out yet      And it seems like the human character has the special ability, not the Pikachu


If we are only talking about Class, as in java.lang.Class, what is the real difference between, say  Map<Class<?>, Class<?>>   and  Map<Class, Class>   ?  For other type names like List (which is not what this question is about at all), the wildcard makes a difference: you can't put something in a List<?> in a type safe manner. Since writing Map gives a compile warning yet I can still do map.put(Integer.class, String.class) on it, I was curious to know if it really does matter if Class or Class<?> gets used.  Would there be a real point to go through code that hasMap<String, Class> and replace it with Map<String, Class<?>, aside for the compiler warning?


Can a vanilla Ubuntu 16.04 LTS Server run without snapd?

I've been running out of memory on some of my small-footprint Ubuntu appliances.  I noticed that snapd was running and using lots and lots of RAM. I took a chance and stopped the snapd service and things are still functioning, but I'm wondering if my machine is going to reboot properly. What I want to know is, are there core services in a generic install of Ubuntu 16.04 server that require snaps to function? Also, what are all the services that I need to disable with systemctl to get rid of snapd?


How to run code when a class is subclassed?

Is there a way to trigger code when my class is subclassed?  class SuperClass:     def triggered_routine(subclass):         print("was subclassed by " + subclass.__name__)  magically_register_triggered_routine()  print("foo")  class SubClass0(SuperClass):     pass  print("bar")  class SubClass1(SuperClass):     print("test")   Should output  foo was subclassed by SubClass0 bar test was subclassed by SubClass1


Conjecture: Is the identity $2^5-5^2=2+5$ unique?

Yet again a conjecture!  Motivated by  and a , I conjecture that     For distinct, positive integers $a,b$, the only solution to this equation $$a^b-b^a=a+b\tag1$$ is $(a,b)=(2,5).$   It is of anticipation that there will be much fewer solutions for increasing $a,b$ since the values that $a^b-b^a$ are extremely restricted due to the small growth rate of $a+b$.  Plotting  on Desmos strongly suggests that are no other solutions other than those on the line $y=x$.  Is there something obvious I'm missing to solve this?


different sizeof structures containing similar data

For the below program, I was expecting the sizeof(node1) and sizeof(node2) to be 12 bytes on a 64 bit platform. But it seems that sizeof(node1) = 12 and sizeof(node2) = 16. Why the difference?  #include <stdio.h> struct node1 {     int a;     int b;     int c; }; struct node2 {     int* a;     int c; }; int main() {     printf("size1 = %d, size2 = %d\n", sizeof(node1), sizeof(node2));     return 0; }   Output  size1 = 12, size2 = 16


Need Google Input Tools to type Telugu in Celtx

I need Google Input Tools for writing scripts in Telugu language in Celtx in Ubuntu 13.10. I tried various methods, but none is as simple as Google Input Tools. Is there a way?


What does $\asymp$ with regards to improper integrals?

I am studying improper integrals as part of a project and have come across this sign: $\asymp$. I was wondering what it meant and why it means: $$\lim_{x \to \infty}\frac{f(x)}{g(x)}=L$$ Any clarification would be greatly appreciation.


It is my understanding that upthrust from a liquid on a body is due to pressure difference on the top of the body and the bottom of the body. How, then, is this fact used in order to derive/work out that the upthrust on a body is equal to the weight of fluid displaced? (For example, if a ball bearing is dropped through water then the upthrust is equal to $\frac 43\pi r^3\rho_{water}.g$, where $r$ is the radius of the ball bearing and $\rho_{water}$ is the density of water.)


Unable to install mysql-workbench for Ubuntu 19.04

I got following error when trying to install MySQL workbench


How to implement mutable functionality at runtime?

I am making a game in which the player character can gain traits that change how their character behaves in my world model or add functionality to it. For example, the character might gain the "feather" trait that changes how fall damage is calculated or the "strong" trait that means the player can now pick up items that were previously just part of the scenery.  I have been hard coding traits in their relevant classes and switching a boolean to change behavior when they come into play, but it is getting rather unmanageable as my trait list grows.(I am also missing out on a lot of the emergence I was hoping to get) There must be a more scalable and decoupled way of doing this.  How would you code such a feature where code behavior changes or expands at runtime? If you are not inclined to do my work for me, which programming patterns would you use to achieve this kind of behavior?


Load and using a font, but just in a single paragraph in an entire document

I have a book document with a lot of formatting, and I would like my dedication paragraph to appear in a font, that will just be used here, in the entire document. Let's say I want to use Tex Gyre Chorus () to be used in that paragraph.  How to do this, without breaking everything, and inadvertently affecting the fonts I use for the rest of my document?  Here is a toy example:  \documentclass[12pt]{book} \usepackage{lipsum} \usepackage{lmodern} \usepackage[sf=false]{libertine}  \begin{document} \lipsum Hello World! I would like this text to appear in Tex Gyre Chorus. \lipsum \end{document}


How to search the entire hard drive for files modified on a particular date?

I picked up a virus a few hours ago, and have identified one of its files. I know the exact minute that the virus was installed, and would like to search my entire hard drive for files modified in that minute. Is there a utility that can do this? Windows search only searches documents.  I am using Windows 8.


What's the difference between "can't help but" and "can't help"  Consider two examples:    I can't help thinking about you. I can't help but think about you.   Do the two sentences mean same, or is there a difference?  I have no problem about understanding with first sentence, but I'm confused with the second sentence. Please explain with some examples.


I am in need of drawing chemical complexes in space, with octahedral or tetrahedral or square or any other structure (for instance [Co(SO_4)(NH_3)_5]^+). Would anyone have any suggestion about which package to go to ? My inclination would be tikz but would there be some more specific package ? I don't think chemfig would be suited for that... ? Thanks and have a great day !


Rewriting the Lagrangian in terms of the constant(s) of motion doesn't work. Why? (spherical pendulum)

I am trying to solve for the equations of motion to simulate a . I decided to use the spherical coordinates. The Lagrange equation is, $$ L=T-V=\frac{1}{2}m\left(l\dot\theta\right)^2+\frac{1}{2}m\left(l\sin\theta\dot\phi\right)^2-\left(-mgl\cos\theta\right), $$  where $l$ is the length of the rope, $ϕ$ is the angle of the projection of the rope on $x$-$y$ plane with $x$-axis and $θ$ is the angle with the $-z$-axis.   Now, From Noether's theorem, we know that the quantity  $$ J=\dfrac{\partial L}{\partial \dot{\phi}}=ml^2\dot{\phi}sin^2\theta $$ is constant. The equation of motion for $\theta$ follows from the Lagrange's equations and is   $$ ml^2\ddot{\theta}=ml^2\dot{\phi}sin\theta cos\theta-mglsin\theta $$ We can substitute $\dot{\phi}$ for the constant J in the expression to get an equation entirely in terms of $\theta$ which we choose to write as   $$ \ddot{\theta} = -\frac{\partial V_{eff}}{\partial \theta} $$   where the effective potential is defined to be  $$ V_{eff}(\theta) = -\frac{g}{l}cos\theta  + \frac{J^2}{2m^2l^4}\frac{1}{sin^2\theta} $$  Now, if I had substituted J for $\dot{\phi}$ directly into the Lagrangian and solved, I would've derived a similar equation as above, but I would've got a minus sign wrong. And apparently the reason is that Lagrange's equations are derived under an assumption that $\theta$ and $\phi$ are independent. I do get that. But since we get $J$ from the Lagrangian, shouldn't substituting $J$ back and solving still work?   I am looking at this as just a mathematical operation and cannot seem to wrap my head around it. Could somebody give me a stronger reason as to why this doesn't work or maybe explain the above reason more explicitly?


How do I properly install Steam on Ubuntu 16.04 LTS?

Just as the title says. I'm pretty new to Ubuntu, but I've used it before about a year ago. I had help then, but now this seems pretty confusing. I've already read the  article, I'm currently trying to install Steam and when I do:  cd ~/downloads/ sudo dpkg steam_latest.deb   I get a error saying that I need python-apt and I tried doing  sudo apt-get python-apt   but it says invalid operation can you guys list the ways to install an application, and describe it like I'm five? Thanks.  Edit: I'm not talking about using wine in this case, just using the actual package from Valve themselves.


In excel 2010 how to colour a cell based on values from another cell

I have a quite large table with several rows and for a easy visual trace I would like that a cell change color whenever a cell in another row has value. Let me try an example to be clearer:  Say that I have a table that has columns from A to Z. For an easy identification, I would like to have a formula, or formatting that whenever a cell on row Z is filled up (say Z10) the correspondent cell in column A (A10) would change its background colour to indicate that Z10 had a value.  How can I do that?


Selecting subset of variables most associated with the principal components of the data

I have a large data matrix that I'm trying to reduce to a reasonably sized basis set. The original matrix is 916x225, and I need to reduce the number of variables (its columns) to around 50, but I want to select those that are the most representative of the complete matrix.  Specifically, I want to find a subset S of size - say - 50 variables from all, which leave the least unexplained variance in a regression of all the other variables on S ("most representative").  My current approach is to perform PCA (prcomp in R), and get the individual columns that are most associated with each principal component.  I assume that the original variable with the largest absolute value for its loading  (i.e., the largest absolute value in the rotation matrix for each variable), is thus most representative or most correlated with that PC.    Am I interpreting this correctly?  If not, any additional guidance is appreciated.  Update:  From the comments below, I wanted to add this clarifying point in order to help focus any discussion on my intent.  I apologize that I did not convey it well in the original question.  Essentially I'm looking for a subset S of size - say - L=50 variables from all, which leave the least unexplained variance in a regression of the other variables on S ("most representative"). My hope was that by using PCA, I could find how many PCs are need for, say, 90% of the variance, then choose the variables that are most correlated with each PC.   I thought of brute force search, too, but haven't tried that since I have 225 variables in my original matrix, and 225 choose 50 comes to about 3*e+50. That might take a very long time to compute all those linear models.


What's the female equivalent of "suitor"?

I'm looking for a word which could satisfy the usage of "suitor", except it would be used to indicate female "suitors":  E.g.:     She had a host of suitors eagerly awaiting her favour...   Now, I want a word that could fit in this sentence, except it would be about females:     He had a bevy of ?????? eagerly awaiting his favour...


Finitely generated monoids- axiomatization- compactness theorem.

Let $\mathbb{M}=\langle M,\circ, e\rangle$ be a monoid. We say that   $\mathbb{M}$ is finitely generated when there exist finitely many   elements in $M$ such that each element of $M$ may be generated using   only these elements.      For example, $\langle A^*,\circ, \epsilon \rangle $ is finitely   generated if only and only alphabet $A$ is finite. Show that the class   of finitely generated monoids is not axiomatized.   My solution Let assume that there exists a such set of sentences $\Delta$ that $\mathbb{M} \models \Delta \iff \mathbb{M} \in \mathbb{M_K}$ where $ \mathbb{M_K}$ is a class of finitely generated monoids.  So, let's consider a language $L = \langle A^*, \circ, e \rangle$ where $A = \{a \}$ So $A$ is a finite set, therefore $L$ is a finitely generated monoid. So, $L \models \Delta$.  Let $\Delta' = \Delta \cup \Gamma, \Gamma = \{\exists w w = b_0,  \exists w w = b_0 \circ b_1, \exists w w = b_0 \circ b_1 \circ .. \circ b_n | b_0, .., b_n \text { are pairwise different and } n \in \mathbb{N}$.   Now, for every finite $\Delta_0 \subseteq \Delta'$ it is easy to point the such finitely generated $L_2$ that $L_2 \models \Delta_0$. From the compactness theorem there exists the model ( a language $L'$) for $\Delta', L' \models \Delta'$. But, $L' \models \Delta \cup \Gamma $ and it is not possible because $L'$ is not finitely generated while $\Delta$ force that. Contradiction.  Ok?  I would like to solve it using Ehrenfeucht-Fraisse game, but I don't know how to start. Please help.  Especially, what does it mean that two words are in relationship?


During lightning ,both light and sound is produced . I want to know why light and sound is produced?


Memory error while lowercasing lines in a large textfile

I am trying to lowercase text in a text file. The text file is about 7 GB and I am trying to go through it line by line and lowercase all words. But I get a memory error and I don't understand why because I don't load the 7GB file at once.  My code:  import os directory = '.'  for filename in os.listdir(directory):  # iterate through text files     if filename.endswith(".txt"):         with open(filename, "r", encoding='utf8') as r: # open file in read mode              with open("./data/finalData.txt", "w", encoding='utf8') as w: # open the destination file where I want to write the lowercase text data                 for line in r:                     line = line.lower()                           w.writelines(line) print("Lowercasing done!")    What I get is:  MemoryError                               Traceback (most recent call last) <ipython-input-5-282ad07ebddc> in <module>       5         with open(filename, "r", encoding='utf8') as r:       6              with open("./data/finalData.txt", "w", encoding='utf8') as w: ----> 7                 for line in r:       8                     line = line.lower()       9                     w.writelines(line)  MemoryError:


Why is the following space not first countable?

Take $X=[1,2]\cup [3,4]\cup [5,6]\cup\dots$. Now take the quotient topology by identifying the points $1,3,5,\dots$ (the left end of each interval in the union). My book says that this space $X/\sim$ is not first countable.   I wonder why that is. Consider the countable collection of intervals $\{ [2k+1,2k+1+\frac{1}{n})\}_{n=1}^\infty$ for each $k\in\Bbb{N}\cup\{0\}$.  Doesn't this prove that $X/\sim$ is first countable?


I have a homework question I have been struggling with  which is:   How many one-to-one functions are there from the set $A$ into the $B$ if $|A|=n$ and $|B| = k$?  I can't seem to think of the way to attack this problem help will be appreciated :)  Thanks


I have successfully created USB bootable stick using ubuntu 14.04.1 iso file.  But when I boot with this USB it asks about login info but won't accept any user name. Almost hanging !!!  What is the problem? What user name and password is supposed to enter? And how?   -- AVK


What Germanic language is the most understandable for the native English speakers?


I have JSON response that has date value as below     /Date(1494468000000)/   How can I parse this to Date object without using any library?


Is it safe to reboot your VPS this way, or does it kill all processes directly?   And if not, what is the right way?


In a bash script, how can I go to a directory whose name is stored in a variable?

I'm doing a FileCreator script:  #!/bin/bash  echo "Welcome to the file creator! Please type the directory name:" read dirName  mkdir $dirName  #Now I want to change directory to that new $dirName that will be run from Terminal.   My question is now, how to change the path to this new directory dirName that is visible on Terminal. So, at the end, path should be: /home/my_user_name/SCRIPTS/dirName when I run this script ...   Please, just a suggestion? :)


How do I selectively apply a glare filter to one individual object?

How do I selectively apply a glare filter in the compositor to say my stars without affecting other object emissions in this scene like the moon and window?    Here's the scene for reference; the stars, the moon, and window are each their own separate object.


How dense are primes congruent to 1 and 3 (mod 4)?

There are infinitely many primes of the form $4n+1$ and $4n+3$. In a given interval $[0,N]$ for a large enough $N$ do we expect to see the same number of primes congruent to $1$ and $3$ (mod 4)?


How to stop Ubuntu 14.04 from changing timestamp on cut and paste?

When I 'Move' pictures from my camera or phone into Ubuntu using 'Files V3.10.1', the timestamp in the 'Modified' column changes to the day I move the files. Obviously I did not 'modify' the file, I just moved it onto my computer, so if I import a picture i took a month ago it will sit in line with pictures I took today.   Is there a way to stop this and keep the timestamp of when the picture was taken? Is there a way to show the 'Created' column in "Files 3.10.1" ?


Entropy maximization in the Multivariate Normal Distribution

I am trying to derive the entropy in multivariate normal distribution. Let $p(X)$, $X\in\Re^{n\times 1}$ to be the probability density function of multivariate normal distribution such that \begin{equation} p(x) = (2\pi)^{-\frac{n}{2}} \det(\Sigma)^{-\frac{1}{2}} e^{-\frac{1}{2}(X-\mu)^\top\Sigma^{-1}(X-\mu)} \end{equation} So the entropy $H$ is defined by \begin{equation} H = -\int^{\infty}_{-\infty} p(X) \log(p(X))dX = \frac{n}{2}\log(2\pi)\int^{\infty}_{-\infty} p(X) dX +\frac{1}{2}\log( \det(\Sigma)) \int^{\infty}_{-\infty} p(X) dX + \frac{1}{2} \int^{\infty}_{-\infty} p(X) (X-\mu)^\top\Sigma^{-1}(X-\mu) dX \end{equation} Because \begin{equation} \frac{dp(X)}{dX} = p(X) (X-\mu)^\top\Sigma^{-1}, \end{equation} we have \begin{equation} H  = \frac{n}{2}\log(2\pi) +\frac{1}{2}\log( \det(\Sigma)) + \frac{1}{2} \int^{\infty}_{-\infty} \frac{dp(X)}{dX} (X-\mu) dX \end{equation}  Can anyone know how to solve this integration problem? \begin{equation} \int^{\infty}_{-\infty} \frac{dp(X)}{dX} X dX \end{equation} by using integration by parts, maybe? Many thanks!


Can I book a train ticket on IRCTC as a non-Indian citizen?

It seems like you're required to have an Indian identity card or something. Is it possible, if you don't have one, or must you use another site?


unable to connect to wifi hp pavilion g seriers

wget -N -t 5 -T 10 https://github.com/UbuntuForums/wireless-info/raw/master/wireless-info \     && chmod +x wireless-info \     && ./wireless-info   above command output:


Which shell interpreter runs a script with no shebang?

Suppose the default shell for my account is zsh but I opened the terminal and fired up bash and executed a script named prac002.sh, which shell interpreter would be used to execute the script, zsh or bash? Consider the following example:  papagolf@Sierra ~/My Files/My Programs/Learning/Shell % sudo cat /etc/passwd | grep papagolf [sudo] password for papagolf:  papagolf:x:1000:1001:Rex,,,:/home/papagolf:/usr/bin/zsh # papagolf's default shell is zsh  papagolf@Sierra ~/My Files/My Programs/Learning/Shell % bash # I fired up bash. (See that '%' prompt in zsh changes to '$' prompt, indicating bash.)  papagolf@Sierra:~/My Files/My Programs/Learning/Shell$ ./prac002.sh  Enter username : Rex Rex # Which interpreter did it just use?   **EDIT : ** Here's the content of the script  papagolf@Sierra ~/My Files/My Programs/Learning/Shell % cat ./prac002.sh  read -p "Enter username : " uname echo $uname


I'm going through the Rings section of Abstract Algebra by Dummit and Foote, and I have a question about an early Corollary's proof.  Proof: Let R be a finite integral domain and let a be a nonzero element of R. By the cancellation law the map x->ax is an injective function. Since R is finite this map is also surjective...  How does R being finite make the map surjective?


How to animate folding a paper plane in blender 2.8

I have made a paper plane by folding a flat mesh plain with a mirror modifier. I would like to animate the folding from start to finish. Is there a quick simple way to do this?


The mountain is covered in trash The mountain is covered with trash  I find both of them correct but I can't say for sure. Is "covered in" or "covered with" more suitable in this context?


How does earth based technology interact with alien technology

I recently rewatched  And noticed a lot of new things that left all kinds of plot-holes and questions. I'm willing to accept plot-holes and Deus Ex Machina type explanations at times for entertainment sake, but there was one item that I wondered about.  David Levinson saves the day by figuring out that they can upload a computer virus into the alien ships that will disabled their defenses and allow the humans to damage their ships. Ok, great. He and Cpt Steven Hiller fly to the mother ship, he somehow is able to communicate through some sort of signals with the alien system, and upload the virus which is made up of some sort of injected code which he pastes into a console.  This leaves me wondering if any attempt is made in the movie or from someone involved in creation the movie to explain how earth technology is able to interact with alien technology. Is there a quote from a film maker? Is there a deleted scene where they mention how it works? Even if they say its midichlorians, this different than simply not addressing it.


I want to install AOKP on my Vodaphone Samsung Galaxy S5 mini SM-G800F, however, the kminilte ROM is not yet developed.   klte seems the closest to kminilte, so will installing it brick my phone, or will it be successful? What features of my hardware will be voided by installing the wrong version if it successes?    Edit as I cannot add an answer as this question is a duplicate.  I actually started dabbling in things regarding porting (slightly modifying ROMs for different devices). And the differences are huge. In the script that initializes the rest of the system, it tests for different models of klte, thus not finding a result and not booting.  Regardless of that, the CPU, screen size, pixel density etc. is different.  If someone has an unsupported device, they can try to find the most similar supported devices to keep change to minimum. You can also look on the CM wiki for unofficial ports.   When comparing devices, I recommend the webpage  as it gives very detailed info about android phones.


In my plot, there are 6-7 \addplot[] entries but I want legend for only one of those functions. How can I do that? I tried \addlegendentry after the function I wish to have a legend for but it creates a legend corresponding to the first one.


I've read that homologous chromosomes are composed of one maternal chromosome and one paternal chromosome.     I want to confirm if this image is for one set of homologous chromosomes:    They have the same size, length, loci and same genes but are not identical. They have different DNA sequences, so contain different alleles.    Still, I'm confused if it should be one maternal chromatid and one paternal chromatid.    I thought, homologous chromosomes are supposed to be one maternal and one paternal chromosome?     Can someone kindly explain if chromosomes are duplicated as to one paternal and one maternal chromosome or not??    Now is this image a homologous chromosome duplicated? So there are two sets of homologous chromosomes?


So my friends have a server, and I was trying to join the server, but every time I try, I would be able to connect and see the terrain load around me, but after a while, the server would just kick me off and show the error message: Internal Exception: java.io.IOException: Connection reset by peer. So I'm just wondering if anyone knows a way to fix this problem


I have a very simple layout that I am trying to achieve in CSS, but I am not having any luck.  All I want to do is (horizontally) center a div that contains a link.  The size of the div should be based on the size of its content.  I have tried a bunch of combinations of auto margins, text alignments, and display types, but can't seem to figure it out (I am a CSS noob).  I have cooked up a very simple case (and the best I can do)  HTML:
         google.com
     CSS:  .myDiv {     background:lightblue;     text-align:center;     margin-left:auto;     margin-right:auto; }  .myDiv a {      text-decoration:none; }   I have made a  as well.  Is this type of layout possible without complicated HTML/CSS /hacks?


I was doing some exam practice when I almost surely went the wrong way in my method and ended up with the following equation: $$f'(x) = f(x) - f(x-1)$$ Although not what I was intended to find, I'm still curious to know if there are methods to solve this. We can spot the obvious solution $f(x) = Ax+B$ , but I could not find a way to prove this was the only solution, or find any other solutions. Any insight would be helpful. For context I am a first-year undergrad.


Normal for my 401k to be performing at -11% over the past 18 months?

Me:   27 years old Income of upper $70ks Contribute 6% to 401k, and 3% to roth 401k (increase my 401k by 1% each year; employer matches up to I think 3%)   Performance:   Over the past 18 months, my Schwab account is showing a performance of -11%   I just want to make sure this is the normal up-and-down that I can expect, or should I evaluate my options more?


Will two access points (on one network) speed up Wi-Fi access for multiple clients?

If I set two (or more) wireless access points with the same network name and credentials, connected to the same LAN, will they speed up access or slow it down? (The LAN is 1 GB, so it is faster than any wireless connection, and will not be saturated.)  I.e., will they more disturb each other or provide more channels?  Would like detailed answer please.  UPDATE  "Duplicate" questions do not contain required details.  I don't want to use two access points from a single client; I expect multiple roaming clients.  First part I probably got: if APs will choose different channels, they won't interfere with each other. This means that two notebooks will have full bandwidth each, i.e., will communicate faster.  Will they know that the channels are carrying different amounts of traffic, and tend to occupy the channel with the lightest load? Or will they sometimes occupy the same channel, leaving the other AP(s) unused?  In general, how do clients choose which channel to use? In particular, if a client moves through the area, or network load varies, under what conditions will a client switch from one AP to another? And how much disruption will the transition cause to the client's network experience (i.e., will it cause a noticeable lag in the connection)?  Also consider clients communicating to EACH OTHER. Being on one AP, they will share a single channel, right? While having two APs available, they will double the speed, right?


How to bring big electronics in aeroplane?

I want to bring PC + PS, in a separate flight though.  Can I carry it as hand-luggage or check it in as luggage and mark it as fragile? Do I need to pack it with special box (maybe wooden box)?  Or is it depend on destination and departing country?


How can I prepend the value of a variable to a column in bash?

I have a script that outputs a column of text. I want to prepend each entry in the column with a string stored as a variable. How can I do this?  For example, consider the command  $ echo -e "john\npaul\ngeorge\nringo" john paul george ringo   Now, I'd like to prepend each entry in this column with the value of the environment variable $HOME. I've tried piping into awk like this:  $ echo -e "john\npaul\ngeorge\nringo" | awk '{printf("%s%s\n", $HOME, $1)}' johnjohn paulpaul georgegeorge ringoringo   This output is not what I'm looking for. What am I doing wrong?


difference between R square and rmse in linear regression

When Performing a linear regression in r I came across the following terms.    NBA_test =read.csv("NBA_test.csv")  PointsPredictions  = predict(PointsReg4, newdata =  NBA_test)  SSE = sum((PointsPredictions - NBA_test$PTS)^2)      SST = sum((mean(NBA$PTS) - NBA_test$PTS) ^ 2)  R2 = 1- SSE/SST   In this case I am predicting the number of points. I understood what is meant by SSE(sum of squared errors), but what actually is SST and R square? Also what is the difference between R2 and RMSE?


Is it possible to insert an image **IN** a caption itself?

So I am writing my thesis in LaTeX for bioengineering, and I have an image of a genetic circuit like so:  And I want the caption to read like this: Fig 2.1. Genetic circuit 0x8E. This is a circuit diagram of the circuit 0x8E from the Cello paper. IPTG, aTc and Ara are the input mole.. blah... In where (image of a NAND gate) represents a NAND gate, (image of a AND gate) represents an AND gate, and () represents a NOT gate. Is it possible to add mini-images in the caption itself of an image in LaTeX?


Prepone is a great word - it's the opposite of postpone. When you prepone a meeting, you change its scheduled time so that it occurs sooner than originally planned. Has his usage spread beyond India? Would other English speakers understand it?


Suppose that in $\Bbb Z_p^*$ that for $a \in \Bbb Z_p^*$, $o(a)=m$, show that for any integer $k$, that $o(a^k)=\frac {m} {gcd(m,k)}$.

Suppose that in $\Bbb Z_p^*$ that for $a \in \Bbb Z_p^*$, $o(a)=m$, then I wish to show that for any integer $k \geq1$, that $o(a^k)=\frac {m} {gcd(m,k)}$.  So if $d=gcd(m,k)$, then $a^{k^{m/d}}=a^{m^{k/d}}=1$. Now to show that $\frac {m} {gcd(m,k)}$ is the smallest such integer is where I am stuck. Hints appreciated.


Exception in thread "main" java.lang.NullPointerException: program compiles fine, but the error shows when it runs

public void traverseRowLR(String [] list, String [] key, String pool)    {        pool = "left to right";       ArrayList<Location> obj = new ArrayList<Location>();       for(int i = 0; i<key.length; i++)       {          for(int a=0;a<list.length;a++)             if(list[a].indexOf(key[i])>-1)                finalList.add(new Location(key[i],a+1,list[a].indexOf(key[i]),pool));               }     }   That above is the method. The error is on the line of the second for loop.  Heres another place the error is mentioned:   public MazeAH(String [] key, String [][] wordBank)    {       maze = wordBank;       answer = key;     }   //other methods      public ArrayList<Location> solve()    {         mergeRow(maze, rowWords);       mergeCol(maze, colWords);          traverseRowLR(rowWords, answer, horizontal);       traverseRowRL(rowWords, answer, horizontal);       traverseRowTB(colWords, answer, vertical);       traverseRowBT(colWords, answer, vertical);        return finalList;    }         The error is in the line:   traverseRowLR(rowWords, answer, horizontal);   Finally, heres the driver program, sorry if im posting too much code, im not sure what's necessary: The goal of this program is to merge rows and columns together into Strings, and then search for words in the "key" word bank. I originally completed this project using non-void methods, but my professor wants me to redo it with void methods.  import java.util.*;  public class SolveWordSearchAH {     public static void main(String [] args)    {        String [][] letters = {{"e","p","l","i","r","q","k","o","s","a"},                         {"u","k","i","e","s","y","x","c","n","f"},                         {"c","p","o","z","g","f","q","a","y","r"},                         {"p","e","m","c","z","a","n","t","e","i"},                         {"g","u","g","q","t","a","b","r","h","e"},                         {"g","i","q","v","b","e","d","b","s","s"},                         {"c","o","f","f","e","e","i","l","r","q"},                         {"h","r","e","t","a","w","b","d","e","l"},                         {"y","q","o","k","w","v","p","x","h","z"},                         {"c","d","n","t","f","q","k","b","p","w"}};        String [] key = {"coffee", "water", "taco", "hershey", "fries"};       //can have another key array if needed-depends on your implementation        MazeAH m=new MazeAH(key, letters);       ArrayList<Location> answer=m.solve();       System.out.println(answer);     } }    My variables are declared here:  private ArrayList<Location> finalList = new ArrayList<Location>();    private String [][] maze;    private String [] answer;    private String vertical="";    private String horizontal = "";     private String [] rowWords;    private String [] colWords;   Here is the error in the compile log:  Exception in thread "main" java.lang.NullPointerException     at MazeAH.mergeRow(MazeAH.java:117)     at MazeAH.solve(MazeAH.java:26)     at SolveWordSearchAH.main(SolveWordSearchAH.java:24)   Heres MergeRow:   public void mergeRow(String[][] letters, String [] words)    {       String []temp = new String [letters.length];       for(int i=0; i<letters.length; i++)       {          temp[i]="";          for(int a=0; a<letters[0].length; a++)          {             temp[i]+=letters[i][a];          }       }       for(int s = 0; s<temp.length; s++)       {       temp[s] = words[s];       }     }   Heres the updated trace:  Exception in thread "main" java.lang.NullPointerException     at MazeAH.mergeRow(MazeAH.java:117)     at MazeAH.solve(MazeAH.java:26)     at SolveWordSearchAH.main(SolveWordSearchAH.java:24)


I have a building with a lot of glass, when i render i get this.  The reflection on the glass its awfull.  I have a proper HDRI, and tried to just place lights and same result. Some idea?


What is a smart pointer and when should I use one?


Why do we need sigma-algebras to define probability spaces?

We have a random experiment with different outcomes forming the sample space $\Omega,$ on which we look with interest at certain patterns, called events $\mathscr{F}.$ Sigma-algebras (or sigma-fields) are made up of events to which a probability measure $\mathbb{P}$ can be assigned. Certain properties are fulfilled, including the inclusion of the null set $\varnothing$ and the entire sample space, and an algebra that describes unions and intersections with Venn diagrams.  Probability is defined as a function between the $\sigma$-algebra and the interval $[0,1]$.  Altogether, the triple $(\Omega, \mathscr{F}, \mathbb{P})$ forms a probability space.  Could someone explain in plain English why the probability edifice would collapse if we didn't have a $\sigma$-algebra? They are just wedged in the middle with that impossibly calligraphic "F". I trust they are necessary; I see that an event is different from an outcome, but what would go awry without a $\sigma$-algebras?     The question is: In what type of probability problems the definition of a probability space including a $\sigma$-algebra becomes a necessity?       provides a plain English accessible explanation. The idea is a spinning pointer rotating counterclockwise on a circle of unit perimeter:       We begin by constructing a spinner, which consists of a circle of unit   circumference and a pointer as shown in [the] Figure. We pick a point   on the circle and label it $0$, and then label every other point on the   circle with the distance, say $x$, from $0$ to that point, measured   counterclockwise. The  experiment  consists  of spinning the pointer and    recording the label of the point at the tip of the pointer. We let the random   variable $X$ denote the value of this outcome.  The sample space is   clearly the interval $[0,1)$.  We would like to construct a   probability model in which each outcome is equally likely to occur. If   we proceed as we did [...] for experiments with a finite number of   possible outcomes,  then we must assign the probability $0$ to each   outcome,  since otherwise,  the  sum  of  the  probabilities,  over    all  of  the  possible  outcomes,  would not equal 1.  (In fact,   summing an uncountable number of real numbers is a tricky business;    in  particular,  in  order  for  such  a  sum  to  have  any  meaning,   at  most countably many of the summands can be different than $0$.)    However, if all of the assigned probabilities are $0$, then the sum is   $0$, not $1$, as it should be.   So if we assigned to each point any probability, and given that there is an (uncountably) infinity number of points, their sum would add up to $> 1$.


Is it possible to use bibtex (or maybe some other package) to produce the bibliography (from a bib file) in form of a table? For instance, having authors names in one column, titles in the other, and so on?


How do they film continuous blood pooling?

I have seen in American Sniper, Dead-7 and Carrie that when someone is killed, they are laying on the ground with blood leaking out of their back or somewhere else on the body.  The puddle continuously grows with few signs of slowing down. This is obviously not CGI because it is a real liquid (may not be real blood as that would spark an emergency in real life).   I have seen in American Sniper that when the protagonist kills yet another enemy, they are filmed hitting the ground and blood starts pooling around their body.  In Carrie: In the dance room where Carrie sets her powers loose and kills a lot of teenagers in the process, there are a few that hit the ground with blood pooling under their bodies. Sometimes they would be on their side with blood coming out.  In Dead 7: Kimono and the other six killed lots of zombies. Some of the six were killed in the process as well before they came to Apocalypta to kill her. They were filmed hitting the ground dead with blood pooling around them.  I am not sure how they film this as they are wearing thin shirts for these scenes, and not only that, but the characters also have blood (obviously fake) only just dripping out of the side of their mouths (an indicator they have a ruptured and wounded stomach or lung (in this case the blood would be pink and frothy).  What is the film technique that allows this to happen?


InnoDB: mmap(68878336 bytes) failed; errno 12

The screenshots explain everything, first I try to start it, and it won't, so I check the status, then I check the logs.      After following a number of previous suggestions that I founder around StackExchange, my.cnf contents are:   [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0 # Settings user and group are ignored when systemd is used. # If you need to run mysqld under a different user or group, # customize your systemd unit file for mariadb according to the # instructions in http://fedoraproject.org/wiki/Systemd performance_schema=off innodb_buffer_pool_size=64MB innodb_purge_threads=0  [mysqld_safe] log-error=/var/log/mariadb/mariadb.log pid-file=/var/run/mariadb/mariadb.pid  # # include all files from the config directory # !includedir /etc/my.cnf.d


Yesterday, I was browsing and answering questions on Stack Overflow and my reputation points were at 1401 (refer to the screenshot).    Then after some time, my points were reduced to 1386 and there were no downvotes in my profile (refer to the below screenshot).    How can this happen without any downvotes?  Or is there any reason for doing this?  Where can I inform about these activities?


Folland problem 5.36 (b)  Let $\mathcal{X}$ be a separable Banach space and let $\mu$ be counting measure on $\mathbb{N}$. Suppose that $\{x_{n}\}_{n=1}^{\infty}$ is a countable dense subset of the unit ball of $\mathcal{X}$, and define $T:L^{1}(\mu)\to \mathcal{X}$ by $Tf = \sum_{1}^{\infty}f(n)x_{n} $.  Show that $T$ is surjective. My approach: Consider any $x\in\mathcal{X}$ and let $x_{n}$ be a sequence such that $x_{n}\to x$ (since $\mathcal{X}$ is separable this can be done). Now consider $f^{k}$ such that $f^{k}(k) = 1$ and $f^{k}(j)= 0$ if $j\neq k$. Clearly $Tf^{k} = x_{k}\to x$. But now the problem is that $f^{k}$ doesn't converge.


Proving there are infinitely many primes of the form $a2^k+1.$

Fix $k \in \mathbb{Z}_+$. Prove that we can find infinitely many primes of the form $a2^k +1,$ where $a$ is a positive integer. We can use the result that: If $p \ne 2$ is a prime, and if $p$ divides $s^{2^t}+1$, for $s > 1$ and $t \ge 1$, then $p \equiv 1 \pmod {2^{t+1}}$.  Ive trying to get something inductively: For $k = 1$, there are infinitely many primes of the form $2a + 1$. Suppose there are infinitely many primes of the form $a2^k + 1$, and then show that there are infinitely many primes of the form $a2^{k+1} + 1$. If there are infinitely primes of the form $a2^k + 1$, where $a$ is even, then we have that, $a2^k + 1 = (2q)2^k + 1 = q2^{k+1} + 1$. Hence we are done. Therefore, suppose there are only infinitely many primes of form $a2^k + 1$, where $a$ is odd. - but I can't get a contradiction out of this.


How can an accelerating inclined plane prevent a block on it from sliding?

If I increase the force $F$, only the normal force $N1$ acting on $m1$ would increase which has no component along the plane, ie. along $m1gsin\theta$, so how would applying this force prevent m1 from sliding?  When I view it from the accelerated frame of the wedge,   It begins making sense. How is this possible? I'm really confused.


unable to create a windows 7, bootable usb flash drive

I am really screwed up by trying making bootable usb stick using unetbootin and winusb In unetbootin when i restart my pc a windows shows unetbootin is booting in 10 sec automatically and then after reaching 1 the countdown starts again. And in winusb when i restart my pc it boots automatically in existing ubuntu 14.04 I made perfect bootable usb disk both time


I am trying to fit an ARMA model to a time series of a power spectral density values that I have calculated.  Here is the plot of the data:   with corresponding autocorrelation and partial autocorrelation plots    I am fairly new to time series analysis but the way I am interpreting it is as follows:  The slowly varying ACF (it hits zero around lag 55) indicates non stationarity initially, but since there are significant spikes in the PACF for the first few lags, this indicates that the PACF may explain the behaviour of the ACF and we in fact need more AR terms. In this case there seem to be significant AR lags in the first 5 and so this would suggest a possible ARMA(5,0) model?  However I have also read that the amount of MA terms you need correspond to the first lag outside of the confidence interval where each following lag decay to 0 - hence might I need an ARMA(5,1) model?  As a third problem to my the data looks like it may be somewhat periodic, if this is the case how do you go about fitting an ARMA model?


Use of large font extends for remainder of LaTeX document, Error?

I am using the \large font command in a document and it seems that the large font extends beyond my intended text to the end of the document.  Example of code:  ... <previous text> \newpage \large{Examples of Continuous Symmetry} <more text> ...   Now, from the point of \large{xxx} to the end of the document, all text is in the large font.  I have tried various things to find the problem including removing the \newpage or even deleting and rewriting the \large command statement.    I use the \large command at earlier positions in the paper but it works as expected which is the only portion in large font is that contained in braces {}.  Am I doing something wrong or is there a bug.  I downloaded latest Mac version of TeX software just yesterday.  I use TeXShop as the editor environment.  Note: please excuse my choice of tags as I am unsure of the correct tag to use.


I’m trying to put a black dot right in the middle of this sphere, but  nothing appears when I click down on my map. Does anyone know what I’m doing wrong?


Determine if a point lies in a quadrangle

I have a  which sides consist of parts of rays, and I only know the coordinates of two points on each ray.  I need to determine if a point $(x,y)$ lies in such quadrangle.  , I painted the sides of the quadrangle red in case you don't understand about what quadrangle I'm talking.


How can i downgrade the java version 11 to java 8. As i need jenkins, current jenkins versoin doesn't support java 11. I need to downgrade.


the attributes of files demonstrated by ls -l

I tried  greedy@algorithms:~$ ls -l / total 2097292 drwxr-xr-x   2 root root       4096 11月 28 15:55 bin drwxr-xr-x   3 root root       4096 11月 28 16:34 boot drwxrwxr-x   2 root root       4096 5月   8  2018 cdrom drwxr-xr-x  20 root root       4540 12月  2 00:40 dev drwxr-xr-x 135 root root      12288 12月  1 07:32 etc drwxr-xr-x   4 root root       4096 11月 27 20:53 home   what does the second column and the 7th column mean? especially the large number 135?


Well, after my successful installation of ubuntu 16.04 it hasn't been that great.  I ran terminal and did updates, etc. After that I decided to download the software center and after running it, I tried to download an app. An error popped up restricting me to download anything, or update the system the error said:   Software can't be installed or removed because the authentication service is not available. (org.freedesktop.PolicyKit.Error.Failed: ('system-bus-name', {'name':  ':1.78'}): org.debian.apt.change-repository   please help!


Prove that sequence $y_n = \frac{\sum\limits_{k=1}^n k x_k}{\sum\limits_{k=1}^n k} \to L$ if sequence $x_n \to L$.  I think I shoud use that $\frac{\sum\limits_{k=1}^n x_k}{n} \to L$, but how?  UPD: I solved it using Stolz–Cesaro theorem.


How do I make a callable JS object with an arbitrary prototype?

Possible Duplicate:          I'm looking to make a callable JavaScript object, with an arbitrary prototype chain, but without modifying Function.prototype.  In other words, this has to work:  var o = { x: 5 }; var foo = bar(o); assert(foo() === "Hello World!"); delete foo.x; assert(foo.x === 5);   Without making any globally changes.


The Computer Science/software site is called Stack Overflow. That has a natural meaning for that field. The more general site is called Stack Exchange. What does that refer to?


How to add a document class to TexStudio?

I want to add a new document class to TexStudio. The document class is named "AEA" and is available in  (the first .zip file below "Please note:")  The code will look like this  \documentclass[AER]{AEA} \draftSpacing{1.5} \begin{document} Hello World! \end{document}


$a\overset{\vert}{\smile}_{A}b$ iff $MR(a/A)=MR(a/Ab)$ in totally transcendental theories

Let $T$ be totally transcendental theory. (stable in particular)  I want to prove that $a\overset{\vert}{\smile}_{A}b$ iff $MR(a/A)=MR(a/Ab)$   Well we know that since $T$ is totally transcendental then every formula and in prticular every type has a Morely Rank. So we can talk about the problem.   And $T$ is stable so forking and dividing coincide.   By that i managed to prove the "$\Leftarrow$" direction, by showing that if $tp(a/Ab)$ forks over $A$ then $MR(a/A)>MR(a/Ab)$.   But i can't manage to prove the second direction. I though maybe to assume that $MR(a/A)>MR(a/Ab)$ and take $\varphi \in tp(a/A)$ and $\psi \in tp(a/Ab)$ s.t $\psi(\mathfrak C)\subseteq\varphi(\mathfrak C)$ ($\mathfrak C$ is the monster) with $MR\psi<MR\varphi$. Than to find some how a way to show that $\psi$ divides.