I am an Indian national having Valid USA visa. I will be traveling from Bangalore to Washington, DC. My Doubt is I will be transiting through two airports in Germany Frankfurt and Munich. I.e Bangalore>>Frankfurt>>Munich>>Washington DC. Do I need a Transit visa?  My flight details are. Departure airport Bengaluru - Bangalore Int. (BLR)- Frankfurt/Main International Airport (FRA), Terminal 1  Frankfurt/Main International Airport (FRA), Terminal 1 to  Munich - Franz Josef Strauss (MUC), Terminal 2  Munich - Franz Josef Strauss (MUC), Terminal 2  to Washington - Dulles International, DC (IAD)  So here I see same terminals. Still do I need transit Visa?  Update: Since I am not able to add comments here it is.. I asked the German Embassy about the visa requirement: they told me, you need a visa. When I asked them which type of visa, they are telling me to get transit visa.

I am going to Nigeria from Mexico but i do have an airport transit visa but i have to stop first in Munich then take a connecting flight to frankfurt before going to Nigeria,would that be possible?


Calculate the characteristic polynomial of $\begin{bmatrix}0 & 0 & 0 & ... & 0 &a_0 \\-1 & 0 & 0 & ... & 0 & a_1 \\ 0 & -1 & 0 & ... & 0 & a_2 \\ ... & ... & ... & ... & ... & ...\\ 0 & 0 & 0 & ... & -1 & a_{n-1}\end{bmatrix}$  So we need to calculate the determinant of $\begin{bmatrix}-\lambda & 0 & 0 & ... & 0 &a_0 \\-1 & -\lambda & 0 & ... & 0 & a_1 \\ 0 & -1 & -\lambda & ... & 0 & a_2 \\ ... & ... & ... & ... & ... & ...\\ 0 & 0 & 0 & ... & -1 & a_{n-1}-\lambda\end{bmatrix}$  I solved $det(\begin{bmatrix}-\lambda & a_0 \\ -1 & a_1-\lambda\end{bmatrix})=(-\lambda (a_1 - \lambda))+a_0=\lambda^2-a_1\lambda+a_0$.    This leads me to believe that the determinant I am trying to find is: $\lambda^n-a_{n-1}\lambda^{n-1}+a_{n-2}\lambda^{n-2}-...+(-1)^na_0$, but I am struggling to prove this theory.

of a monic polynomial $f \in \mathbb F\left[x\right]$ in $1$ variable $x$ over a field $\mathbb F$ plays an important role in understanding the structure of finite dimensional $\mathbb F[x]$-modules.  It is an important fact that the characteristic polynomial and the minimal polynomial of $C(f)$ are both equal to $f$. This can be seen quite easily by induction on the degree of $f$.  Does anyone know a different proof of this fact? I would love to see a graph theoretic proof or a non inductive algebraic proof, but I would be happy with anything that makes it seem like more than a coincidence!


Show that $\binom{p^a-1}{k}\equiv(-1)^k\pmod{p}$ for $0\le k\le p^{a}-1$.   Solution: $\binom{p^a-1}{k}=\frac{(p^a-1)(p^a-2)\cdots(p^a-k)}{k!}$.       Idea: Then power of $p$ in $k!$ must be less than the power of $p$ in Numerator.          ----(**)  Then i can directly write  $p^a-1\equiv-1\pmod{p}$,$p^a-2\equiv-2\pmod{p}\cdots$ and $p^a-k\equiv-k\pmod{p}$.  Then, we have: $\binom{p^a-1}{k}\equiv(-1)^k\pmod{p}$.  Is my idea correct? If yes, how should I proceed to prove (**) statement.   Thanks in advance.

This is a problem out of the text Introduction to the Theory of Numbers by Niven, Zuckerman, and Montogmery and I am having quite a bit of trouble with it.  I tried to prove it directly, but that didn't work.  The question is:     Let $p$ be a prime and $\alpha$ a positive integer.   Show that $\binom{p^{\alpha}-1}k \equiv (-1)^k \pmod p$ for $ 0 \leq k \leq p^\alpha -1$.   If relevant, I did prove that ${{p^{\alpha}}\choose k} \equiv 0 \pmod p$ for $ 0 < k < p^\alpha $ but I can't seem to incorporate it.


Let $S$ be a finitely generated graded ring over $A$. So degree $0$ elements of $S$ is $A$ and we assume that there is no negative degree elements here.  Thus, we have that $S$ is generated over $A$ by a finite number of homogeneous elements  of positive degree, say $\{ t_1, ..., t_m \}$. Does it then follow that $(S_{t_i})_0$, which is the degree $0$ elements of the ring $S_{t_i}$, is also finitely generated over $A$? Thanks!  By $S_{t_i}$ I mean the localization of $S$ at $t_i$.

Let $S = \bigoplus_{n\ge 0} S_n$ be a graded commutative ring. Let $f$ be a homogeneous element of $S$ of degree $> 0$. Let $S_{(f)}$ be the degree $0$ part of the graded ring $S_f$, where $S_f$ is the localization with respect to the multiplicative set $\{1, f, f^2,\dots\}$. Suppose $S$ is finitely generated algebra over $S_0$. Then $S_{(f)}$ is a finitely generated algebra over $S_0$.


I have a large shapefile with one layer with several variables. The shapefile has US block groups that I'll use for analysis. However, as I want to use this for leaflet, I would like to create different layers/files for each state.  State Value1 Value2 Value3 ...   NY    x      x      x   CO    x      x      x    NY    x      x      x    Is there a way of grouping per state and generate a layer from that, that I can later save as a shapefile?  I know that I can do it one by one, by using the SQL query tool, but as I have 50 something states, plus different files, that would take me quite of a long time.

I have a polyline shapefile with about 20 kinds of roads. I would like to know how can I create automatically a vector file for each one. I am aware of how to do it using ArcGIS Desktop - see  How do I do it using QGIS or SAGA?


Can you help me prove this two sigmas: $$\sum_{k=2}^n 2^{1-k} = 2^{-n}(2^n - 2) $$ and this $$\sum_{k=2}^n k2^{1-k} = 3-2^{1-n}(n+2) $$ Is there any common way to solve this kind of tasks? Thank you very much for help.

I want to know the general formula for $\sum_{n=0}^{m}nr^n$ for some constant r and how it is derived.  For example, when r = 2, the formula is given by: $\sum_{n=0}^{m}n2^n = 2(m2^m - 2^m +1)$ according to   Thanks!


IS it possible to keep my Windows 7 and Linux OS's on the same hard drive? And able to choose what to use OS to use when I want?

I need my pre-installed version of Windows 7 (or any other version of Windows), how could I install Ubuntu without erasing it?


I don't know exactly when, but some of my app icons became blank and some keep toggling between normal and blank. It looks like this:  This is my macOS version:  and since I've having a lot of bugs recently, I'm considering reinstall macOS on my MacBook. Is there a easy way to restore the data and applications back after reinstalling the system? I've made a macOS thumb drive with the newest version but I haven't done this on mac before and I don't know how to restore the data. Thanks!    update:  Here's something strange: I backed up my data, erased my entire SSD, and did a clean install of macOS High Sierra. After that I didn't do any restoring actions. I simply copied my documents back, not even copying the apps. And after I run league of legends (or approximately the same time) on my eternal hard drive, my apps begin to turn into blank like that again :(  Before installation I though it must because I'm using the computer for so long and install so many strange things it becomes junky, but after this installation my problem came back again and it's apparently not about anything about the prior system. I think it have several possibilities: 1. my hard drive got infected by some Mac virus (I haven't seen any before but the strange behavior of my computer makes me think that way); 2. somethings wrong with my computer (most likely the SSD) 3. when I run league on my hard drive somehow it triggers an error. I am suspecting the league because every time I try to run it directly it always says the app is damaged and I must open the package and run :league of legend client" within the app package to launch the game. Does anyone have any ideas about this problem? It is really annoying and any help would be greatly appreciated.

Some of my Apps Icons are changing to a generic app icon, and I have no idea why. Tried to restart the system and nothing. 3 days ago i updated my Skype and then the icon is gone.


HashMap code -      public class HashMapTest {      public static void main(String[] args) {      Employee e1 = new Employee("1", "Bob", "Dao");     Employee e2 = new Employee("1", "Sam", "Thompson");      Map<Employee, Employee> map = new HashMap<Employee, Employee>();     map.put(e1, e1);     map.put(e2, e2);      Set<Employee> set = map.keySet();      for(Employee emp : set)     {         System.out.println("Hash Map - Set is : "+emp.getEmpLastName());     }     }     }   Employee.java - overrided equals & hashCode function      @Override     public boolean equals(Object obj) {     if(obj==null)         return false;     Employee e = (Employee)obj;     if(this.employeeId==e.employeeId)         return true;     return false;     }      @Override     public int hashCode() {     return 12 + employeeId.hashCode();     }   It's not replacing entry in hashmap. In system.out am getting "Dao" but expecting "Thompson".

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


This is supposed to be a simple trigger that changes the Opportunity Owner to the the Account Owner upon insert or update of the opportunity. However, I keep getting the error, cannot update the Opportunity because the record is read only.   How should I modify this?  trigger ChangeOwner on Opportunity (after insert, after update) {  for(Opportunity op : Trigger.New) {     Account account = [SELECT OwnerId FROM Account Where Id = :op.AccountId];     op.OwnerId = account.OwnerId;     update op;     } }

I'm writing a trigger for new opportunity products to populate  a field Product_Category__c (on opportunity lineitem) getting the value from Product_Category_new__c (on Product).  This is my trigger:  trigger SetProductCategory on OpportunityLineItem (after insert) {      for (OpportunityLineItem opplineitem: Trigger.new) {                    opplineitem.Product_Category__c =  opplineitem.PricebookEntry.Product2.Product_Category_new__c;     }      }   I get this error message:     execution of AfterInsert caused by: System.FinalException: Record is read-only   I have tried with before insert;in this case there aren't errors but the value Product category it's not saved on Opportunity Line item.  I have found that:  In a after insert trigger is not allowed change field using trigger.new  Please can you suggest a solution for this? i would like to copy the value Product category (Product) on Product Category (Opportunity Product)  after the insert of the new opportunity products.  Thanks in advantage for any advice.  Br


I am wondering if my goal is to work in an industry as an electrical engineer, is it better to get PhD? I know PhD might open some options for me such as working in industry and teaching in academia at the same time or research job. However PhD is a long term commitment and during this time you can gain a lot more experience by working at a company and this will be considered as a professional experience, which may be more useful.   I would like to know what do you guys suggest? is it worth it to spend 5 years and obtain PhD?

I'm a master computer science student in a German university and I will be graduating soon. I'm in a situation between accepting a PhD position or leaving academia to start looking for job. This is a very hard decision to make so I need some advice.   I see most of the people who do a PhD leave academia afterwards and start looking for jobs (is it also the same in the US?). Very few people continue with a postdoc and remain in academia after getting the PhD.  My question is then, what is the point of doing a PhD (especially if one gets a job in industry afterwards)? What are the benefits of spending 3-5 years obtaining a PhD? What kind of goals should a person enrolling in a PhD program have?  From the point of view of industry, I realize that after a PhD they might start with a high position in the company. But, on the other hand, in those 5 years they could have started a small tech company and make it somehow medium or even a bit successful. Instead of doing a PhD, after 5 years of investing in their own company, they could be paid for working for themselves and not for others, having their own companies.   From the point of view of obtaining knowledge, if someone is curious about knowing, they could learn new things by themselves. After graduation, finding a job or starting a company, knowledge could be obtained by buying books and reading during one's free time, or following extra courses. I don't think you don't need a university for this.  Am I right in my analysis? Is it true most people go to the industry after the PhD (I'm especially curious about people in the US from top universities)?  If my analysis is at least partially right, and since there is other viable ways to become successful in industry and to obtain knowledge, what are the benefits of doing a PhD? Is it only a good idea for people with strong plans to continue in academia, or are there other goals one can achieve (better) by obtaining a PhD? I am afraid that doing a PhD might be a waste of time if I plan to continue in industry.


I have really hard time to figure out when to use Specially and when to use Especially. Since both are adverbs, that makes it even harder. Can anyone simply give a way to distinguish between these two adverbs?

When should I use specially and when especially?


I've looked in the Software Centre but no mention of highlight features for the various PDF edit software.   I've installed adobe reader 9 but it doesn't seem to have the option.  Does anyone know of a PDF editor/reader that will let me highlight?  I'm running Ubuntu 13.04

Currently I need to highlight certain sections in PDFs, or add annotations (comments/notes). These modifications would need to be saved.   What tools are out there to do this on Ubuntu?


When I ran sudo apt update I got this error.  Problem executing scripts APT::Update::Post-Invoke-Success   'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db;  then /usr/lib/cnf-update-db > /dev/null; fi'      E: Sub-process returned an error code     I have searched it on Google and found nothing the same thing. Before that I changed my repository to http://kambing.ui.ac.id.

The terminal gave me these errors when updating the software with sudo apt update.    Hit:1 http://it.archive.ubuntu.com/ubuntu bionic InRelease Hit:2 http://it.archive.ubuntu.com/ubuntu bionic-updates InRelease                                                                                Hit:3 http://it.archive.ubuntu.com/ubuntu bionic-backports InRelease                                                                                Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease                                      Hit:5 http://archive.canonical.com/ubuntu bionic InRelease                 Traceback (most recent call last):                       File "/usr/lib/cnf-update-db", line 8, in <module>     from CommandNotFound.db.creator import DbCreator ModuleNotFoundError: No module named 'CommandNotFound' Reading packages list... Done E: Problem executing scripts APT::Update::Post-Invoke-Success     'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db;       then /usr/lib/cnf-update-db > /dev/null; fi'   E: Sub-process returned an error code     These are the results of sudo apt install --reinstall command-not-found  Reading package lists... Done  Building dependency tree         Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded. Need to get 0 B/5.188 B of archives After this operation, 0 B of additional disk space will be used. (Reading the database ... 225797 files and directories currently installed.) Preparations for extracting ... / command-not-found_18.04.4_all.deb ... Extracting command-not-found (18.04.4) on (18.04.4) ... Configuring command-not-found (18.04.4) ... libdvd-pkg: Package libdvdcss2-1.4.2-1 was removed, stop processing...   When I tried the command sudo apt update again after reinstalling command-not-found, the results were the same as described in the first text block.


Most of my 8yrs career as a Web designer & Developer, I've designed in Photoshop, hand-coded in HTML and used a PHP-based CMS like Wordpress, Drupal or Joomla. But I've just received a very lucrative job offer which requires SharePoint experience.   Since I know absolutely nothing about MS technology (I'm on Mac) or SharePoint, can you please suggest some good beginner article/books that explain SharePoint from a web developer's perspective. I'm an advanced user and a quicker learner so I want to learn SharePoint to not miss this opportunity.  Also, I wonder if its possible to host it locally and learn?  Thanks

I have very little knowledge of SharePoint, and want to learn about SharePoint 2013.  Most of the resources that I've found are either about what's new in 2013, or they have a bunch of links to SharePoint 2010.  I also don't have the time to read a thousand page book.  A hundred or so would be fine.  Can anyone recommend a resource (site / book / video / tutorial) for a beginner to learn the basics of SharePoint 2013 in a few days?  I've downloaded a Kindle book, "Getting Started With SharePoint 2013."  It's perfect for absolute beginners, who just want to know how to upload & download documents, but I'm looking for more than that.


I've tried to set Opera as my default browser in Ubuntu 16.04 LTS. I've tried in Opera's settings, and in the Ubuntu System Settings. I hit all the right buttons in both paces, but it just doesn't work.  Any suggestions? Is there a Terminal command that'll make it work?

Is there an option to change my default browser for all my applications?


I know my following question is somewhat similar to  but still I need help .  How many $k$-dimensional subspaces of a $n$-dimensional vector space $V$  over the finite field $F$ with $q$ elements are there?

Let $V_{n}(F)$ be a vector space over the field $F=\mathbb Z_{p}$ with $\dim V_{n} = n$, i.e., the cardinality of $V_{n}(\mathbb Z_{p}) = p^{n}$. What is a general criterion to find the number of bases in such a vector space? For example, find the number of bases in $ V_{2}(\mathbb Z_{3})$. Further, how can we find the number of subspaces of dimension, say, $r$?   I need a justification with proof. I have a formula, but I am unable to understand the basic idea behind that formula.


Opening the Ubuntu software center yields an error that says:  Items cannot be installed or removed until the package catalog is repaired. Do you want to repair it now?   After clicking repair, the following error is returned:  Package dependencies cannot be resolved   After doing some research, many people suggest running:  sudo apt-get -f install   However, it returns:  Correcting dependencies... failed. The following packages have unmet dependencies: libnss3-1d: Depends: libnss3 (= 2:3.16.3-1ubuntu1) but 3.15.4-0ubuntu0.12.04.3  is installed  libnss3-nssdb : Depends: libnss3 (=2:3.16.3-1ubuntu1) but 3.15.4-0ubuntu0.12.04.3 is installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. E: Unable to correct dependencies   I have no idea where to go from here. If I recall correctly, I was trying to install a flash plug in for Firefox, because youtube was occasionally throwing me an error and telling me to upgrade flash player.  This error is especially frustrating, as I cannot install software until it is resolved. It is worth noting that I have also tried using Synaptic Package Manager's "fix broken dependencies" or whatever, and it didn't work.

Occasionally, when I'm installing stuff, I get an error like the following:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  package1 : Depends: package2 (>= 1.8) but 1.7.5-1ubuntu1 is to be installed E: Unable to correct problems, you have held broken packages.   How can I resolve this?


Is this correct?      When a student asked if he was “a dictator like Hitler,” Patterson asked, “If I was Hitler, does that mean I put you in an oven?”   Isn’t that supposed to be “if I were” there?

If I was... If I were...   When is it correct to use "If I was" vs. "If I were" in standard English?


Suppose I have a Person object which I want to inherit from and make another sub-class, as follows:  var Person={     type:"human",     greet: function(){         console.log("hi im a human");     }, } Person.prototype.sayName = function(){     return this.name; }   And inheriting as follows:  var john = Object.create(Person); john.walk = function(){     console.log("john is walking"); }   Why cant I add walk method to johns prototype, like this:  john.prototype.walk = function(){    console.log("john is walking"); }

I'm not that into dynamic programming languages but I've written my fair share of JavaScript code. I never really got my head around this prototype-based programming, does any one know how this works? var obj = new Object(); obj.prototype.test = function() { alert('Hello?'); }; var obj2 = new obj(); obj2.test();  I remember a lot discussion I had with people a while back (I'm not exactly sure what I'm doing) but as I understand it, there's no concept of a class. It's just an object, and instances of those objects are clones of the original, right? But what is the exact purpose of this ".prototype" property in JavaScript? How does it relate to instantiating objects? Update: correct way var obj = new Object(); // not a functional object obj.prototype.test = function() { alert('Hello?'); }; // this is wrong!  function MyObject() {} // a first class functional object MyObject.prototype.test = function() { alert('OK'); } // OK  Also these  really helped a lot.


I have heard saying many people that English grammar is necessary to learn(To some extent I guess I do agree with them, basic English grammar knowledge is necessary/important) But in the next hand I have even heard saying many people that English grammar isn't necessary otherwise you wouldn't be able to speak English like a natural way and always get stuck thinking about the correct use of the grammar in your mind.  I am a bit confused actually and don't know what should I do. Whether I first focus on the English grammar or just start reading books and watching movies and try to speak English like a natural way (Even with some mistakes which will be corrected in future anyways).  Waiting for your precious answers Thanks.

Why must everyone understand Grammar first before learning to speak?


When we try to cool something through blowing on it, we purse our lips to exhale air through a narrow opening, which produces cooler air. However, if we open our mouths wide and exhale , then the air is hotter. What is happening here ? Why does changing the area through which we blow, change the temperature of the air we exhale ?

Why does the air we blow/exhale out from our mouths change from hot to cold depending on the size of the opening we make with our mouth?  It's not just a subtle difference, but significant in my opinion. I'm inclined to discredit the notion that it's just a matter of speed because I can blow fast with an open mouth and still, it's hot; and blow slow with an almost closed (tighter) mouth and again, it's cold.


How to put the variable "user" in this array. The way it is not it doesn't work sadly. The $user variable should be john.smith for example.  I have the following output:  curl --header "Authorization: Bearer XXXXXXXX" --request POST --data '["$user@test.com"]' "https://mattermost.test.com/api/v4/teams/$team/invite/email"

In section 3.1.2.3  titled Double Quotes, the Bash manual says:      Enclosing characters in double quotes (‘"’) preserves the literal   value of all characters within the quotes, with the exception of ‘$’,   ‘`’, ‘\’, and, when history expansion is enabled, ‘!’.   At the moment I am concerned with the single quote(').  It's special meaning, described in the preceding section, section 3.1.2.2 is:     Enclosing characters in single quotes (') preserves the literal   value of each character within the quotes. A single quote may not   occur between single quotes, even when preceded by a backslash.   Combining the two expositions,    echo "'$a'"   where variable a is not defined (hence $a = null string), should print $a on the screen, as '', having it's special meaning inside, would shield $ from the special interpretation. Instead, it prints ''. Why so?


I was wondering if it was possible to set the default disk to be used my MSIs, E.G. Install to D:\Program Files by default rather than C:\Program Files, and, if it is possible, how to do so. Thanks!

Windows 7 is installed on my C drive, which is quite small.  I am very tired of instructing new programs to put their files on my larger D drive during installation; I would like to change the default drive.   says that you can use a registry hack, but I am giving Microsoft the benefit of the doubt and naively assuming that a configuration option exists somewhere.  It's 2010... do I really have to hack my registry to make a simple tweak like this?  Also, there's a  that explains how to move the "Users" directory and create a symlink, which could also work.  However, at the moment I have some apps in C:\Program Files, some apps in C:\Program Files (x86), and some apps in the corresponding folders on D:\, so it would be a hassle.  Also, my small OS boot drive is a 10k RPM WD Raptor, and I feel like that probably gives a speed boost to apps installed on it that need to read & write to their directories a bunch.  I wonder if it actually matters.


I got this mesh,which was exported out of some engineering program like solidworks for example with STL FORMAT. Please help me understand how to fix this. Is there a way to fix such crazy ugly triangles?  I will link blend file with mesh:

What would be the best method for making regularly spaced holes in a cylindrical mesh? Similar to the vent holes you'd see on gun barrels like these:       Without creating any n-gons, having good topology, and not excessively increasing the tri/polycount overall (this is for models that would potentially be used in a game). It would be good to know how to do this in a way that would work where the holes overlap on the x axis of the cylinder if you see what I mean, like the MG34 barrel, and where they don't, like the SMG barrel.


How do we prove that $$1+\frac{2^3}{2!}+\frac{3^3}{3!}+\frac{4^3}{4!}+\cdots=5e$$ I'll post the answer to this question as a knowledge share.


Recently I am getting some referrals traffic which are everyday changing their name (I am blocking them everyday from GA). First few days their name was example.xyz but now they are using various name. All the traffic's are coming from Russia. They are only landing to / and nowhere. How can I identify that it's a spam traffic or not?

Last months I have lots of referrer spammers in my GA statistics. Their count is ~10x higher than count of legit visitors (my site is not very popular yet). I've turned on an option to hide known spammers in GA settings, but it didn't help at all. It seems these spammers are using scripts to spam directly to GA (i.e. they are not logged in my IIS).  Is there anything I can do to stop these spammers?    UPD 10 months later, and they started spamming using fake target page names... and Google is still doing nothing about it.


Here's the PC I'm going to buy:   INTEL Core i5 3570 - 3,4 GHz - Cache L3 6 Mb - Socket LGA 1155 (BX80637I53570) GIGABYTE GeForce GTX 660 OC - 2 GB GDDR5 - PCI-Express 3,0 (GV-N660OC-2GD) SEAGATE Disco duro interno Barracuda 7200.14 ST1000DM003 3,5" - 1 TB MSI B75MA-E33 - Socket 1155 - Chipset B75 - Micro ATX SANDISK SSD interno Ultra Plus - 128 Gb (SDSSDHP-128G-G25) 2 x KINGSTON Memoria de PC HyperX blu RED Series 8 Gb DDR3-1600 PC3-12800 CL10 (KHX16C10B1R/8) DVD/RW DRIVE (I'll use an old IDE one, using a SATA adapter; I don't remenber the model)   Plus one Wireless PCI board.  I was thinking about buying one of these two:   CORSAIR Alimentación para PC CX600 80 PLUS Bronze - 600 W (CP-9020048-EU) ADVANCE Fonte de alimentação PC MPT-6500 - 650 W   The Advance PSU is cheap and has 650 W but I have read that it might not be very good.  How do I determine which power supply I should buy?  Also, how do I calculate how much power I need for these components?

Given that I am building a home computer from scratch and I have several components (MB, CPU, HDD, Video, Sound, etc) which have specific power requirements, is there a formula for me to calculate the size/capacity of the Power Supply I will need? I want to be able to expand the setup later on also...


We know that (in the TNG era) Starfleet's photon torpedoes are warp capable warheads, which upon detonation create a very strong matter-antimatter explosion, but what is the strength of this explosion in absolute terms, ie tons of TNT?  BTW, I'm not asking if the strength of the explosion can be , as we already know this, but what is the equivalent base/reference value in tons of TNT.  Answers based both on canon and EU are acceptable.  Edit: It has been suggested that this question is a dupe with this . However, the latter explicitly asks about the differences between photon and quantum torpedoes, while I'm asking about the yield, so clearly it's not a dupe.

It seems that quantum torpedeos are the next generation of photon torpedoes but I was wondering what made them better and what makes them 'quantum'.


I have referred this link:   but ever since I upgraded to 17.10, running nautilus ., when I am already in a particular directory using cd in the terminal, gives me the following message.  sys:1: PyGIWarning: Nautilus was imported without specifying a version first. Use gi.require_version('Nautilus', '3.0') before import to ensure that the right version gets loaded. Initializing nautilus-dropbox 2015.10.28   How do I fix this?  I am running Ubuntu 17.10 in Xorg mode

I was wondering if anybody knew a command that would allow me to open a Nautilus (if that's the right name for the Ubuntu graphic/window explorer) window from the command line at the current directory that the user is at.  So, if I open a command line, and type:  cd /home/myUser/some/long/path/to/a/directory   Then, I'd like to be able to issue some command:  nautilus open-sesame   And have a graphic window opened to /home/myUser/some/long/path/to/a/directory. Is this even possible?


What would you call a guileless person (employee from another department) who repetitively asks you for the information that he himself is supposed to come up with to the point of annoyance like a illogical fool and inform me for us to process it (we are from two different department in one organization and I have to do his work for him and inform him and then he feeds the information in the system and generates report does the bureaucratic task of forwarding the paper work which really contain my hard work back to me).   The person is not shirking, he is simply blissfully unaware, feels entitled and expects/at times pushes other party to respond back with the information. PS: Inaction from Bad self serving management - The Reason why nothing gets resolved.    Again, he is not slacking, he is upgraded without proper orientation and is ill informed about the protocols by his boss and thus seeks information outside of his department to generate the information based report and typically asks me to whom in reality he has to submit the report which contains the information. I am report recipient who is the informer too, while i am suppose to be report recipient only. shirking, slacking is when one is evading work or duty. He isn't aware that he is..Does it still make him a typical shirker.

What do you call a person who avoids their responsibilities by disregarding them and just continue doing other things?


Let $S = \{0\}\cup\{1\}\cup  \{\frac{1}{4n+7} : n =1,2,\ldots\}$. How to find the number of analytic functions which vanish only on $S$? as i just modify the given question    Options are   a: $\infty$  b: $0$  c: $1$  d: $2$  i think answer will be 1   is its corrects or not ? Pliz tell me

Let $S = \{0\}\cup \{\frac{1}{4n+7} : n =1,2\ldots\}$. How to find the number of analytic functions which vanish only on $S$?  Options are   a: $\infty$  b: $0$  c: $1$  d: $2$


I did a software update on my HP 250 G3, after that the icon of the network manager is gone, connection is gone, if I plug an Ethernet cable in, nothing happens. If I go to settings > network, a pop up shows up   Network services are not compatible with this version of the system  OS is Ubuntu 14.04.     Any idea?

While upgrading today, something caused my wireless network manager to disappear. Not even connecting via wired connection.  This error is being shown by files:  **(nm-applet:2716): WARNING **: Could not initialize NMClient /org/freedesktop/NetworkManager: The name org.freedesktop.NetworkManager was not provided by any .service files   (nm-applet:2716): nm-applet-WARNING **: Error connecting to ModemManager: Error calling StartServiceByName for org.freedesktop.ModemManager1: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ExecFailed: Cannot launch daemon, file not found or permissions invalid   (nm-applet:2716): nm-applet-WARNING **: Could not find ShellVersion property on org.gnome.Shell after 5 tries   (nm-applet:2716): nm-applet-WARNING **: Failed to register as an agent: (2) The name org.freedesktop.NetworkManager was not provided by any .service files    Is there a patch I can download through windows and send through to my ubuntu, or is it a case of having to reload everything? I tried running two versions back but still no internet access.


I tried to make a template class for an implementation of a 3D vector. Relevant snippet of the 2 files (vec3d.h and vec3d.cpp) are .  The main.cpp is as follows:  #include "vec3d.h"  #include <iostream>  using namespace std;  int main() {     Vec3D<double> a(1,2,3), b(2,4,5), c;     c = 2.3*b;     cout<<c._x;    return 0; }   On compiling it with g++ main.cpp vec3d.cpp vec3d.h the following error occurs:   In function `main': main.cpp:(.text+0x124): undefined reference to `Vec3D<double> const operator*<double>(double, Vec3D<double> const&)' collect2: error: ld returned 1 exit status   I have put the definition and declarations of the functions separately, but I have also instantiated the template for double.  Funnily enough, c = b*2.3 does not throw an error. Any reasons? I am also getting the same error on several other functions (like <<, ==, / all are declared in similar fashion)  What am I doing wrong?  [[EDIT]]  I instantiated the class, as should be, but I didn't instantiated the template functions which are present outside of the class. Apparently, I have to instantiate the too. Didn't know that.  More: Refer to . Every C++ unit defined using a template has to be instantiated if the definitions are in a separate file from the file with declarations, not just classes

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


I'm pretty baffled by these entries in the :        What do those migration pathways represent? And, more importantly, shouldn't the UI make it clearer what they mean - at minimum thorugh some text, and ideally through the use of a suitable icon?

I was just looking at the statistics for migrated questions in the  mod tools, and noticed this oddity:    The actual statistics, as visible to any 10k+ SFF user , are: 6 migrated to Worldbuilding, 2 to Literature, 2 to SFF meta, 1 to Movies & TV, 1 to Writers, and 1 to Aviation.  Why is one of the meta migrations showing up with a blank icon rather than with the other?  Both migrated questions were closed as duplicates on meta. Both were migrated by 5 community members without mod involvement. One of the stubs on main has since been deleted, but so have the stubs for some of the other migrated questions. I can't think of anything to explain this discrepancy.


In my application, I've a left menu with some links :
 User(100) Messages(1000) Contact Us
   On click of each links, I'm calling an ajax which will call a file and queries table and display content accordingly.  function menuclick(type) { $.ajax({     url: 'test.php',     type: 'POST',     data: {         type: type     },     dataType: 'html',     success: function(data) {         $("#contentdiv").html(data);     } }); }   Now the issue is, if the user/message count in database is a greater number, then its taking some time to load the content/processing test.php file. If I click some other links in this time, it will not display suddenly. On click of each links, how can I show the content immediately without waiting for other links ajax processing to complete.  Can anyone help me to find a solution?

Is it possible that using jQuery, I cancel/abort an Ajax request that I have not yet received the response from?


I'm trying to access Area 51 from my Stack Exchange app. But it is not showing any options to go.  Is Area 51 accessible from the app?

Will  be supported on the Android App in the future? I visit A51 rather frequently and I would like to see it in the App.


I just got a new deck built using pre-treated wood. Do I need to sand it down before staining? I was told it was already sanded since it was pre-treated and it looks smooth and feels smooth so I don't think it needs sanding, but I would appreciate any feedback.

I just got a deck built and pre treated wood was used. Do I need to sand it before I stain it? I live in San Antonio, Texas


About us

British Airways virtual is one of the largest virtual airlines for Infinite Flight virtual airlines out there. With over 50 pilots, we have a bustling community. Make sure to come over and join us, and experience it for yourself!

        Check out the about page for more info!

   I have this code. Any way I can centre the Youtube iframe in the middle? I have tried CSS, but can't figure it out.  You can view the whole file here:   Thank you!

How can I horizontally center a
 within another
 using CSS?

Foo foo


I am trying to make a very simple Time Manager, when i compile it shows an error. I am unable to find the mistake in my code which is producing the error.  JPanel otherPanel = new JPanel(); otherPanel.add(BorderLayout.WEST, timingsPanel); otherPanel.add(BorderLayout.CENTER, todoPanel); otherPanel.add(BorderLayout.EAST, checkPanel);   The error is:  Error message: Exception in thread "main" java.lang.NullPointerException     at java.desktop/java.awt.Container.addImpl(Container.java:1117)     at java.desktop/java.awt.Container.add(Container.java:460)     at GUI.setUpGui(GUI.java:57) at manager.main(manager.java:6)   code around line 57:  //setting up otherstuff otherPanel = new JPanel(); otherPanel.add(BorderLayout.WEST, timingsPanel); otherPanel.add(BorderLayout.CENTER, todoPanel); otherPanel.add(BorderLayout.EAST, checkPanel);   The below code in minimum, it's also showing the same error  import javax.swing.*; import java.awt.*;  public class timeclass {     JFrame frame;     JPanel headerPanel;     JLabel header;     JPanel otherPanel;     JPanel timingsPanel;     JPanel todoPanel;     JPanel checkPanel;       public void setUpGui()     {         frame = new JFrame("Time Manager");          //setting up header         headerPanel = new JPanel();         header = new JLabel("Time Manager");         header.setFont(new Font("Times New Roman", Font.BOLD, 36));         headerPanel.add(header);          //setting up otherstuff         otherPanel = new JPanel();         otherPanel.add(BorderLayout.WEST, timingsPanel);         otherPanel.add(BorderLayout.CENTER, todoPanel);         otherPanel.add(BorderLayout.EAST, checkPanel);          //setting up frame         frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE);         BoxLayout boxLayout4 = new BoxLayout(frame, BoxLayout.Y_AXIS);         frame.setLayout(boxLayout4);         frame.add(headerPanel);         frame.add(otherPanel);         frame.setSize(900, 400);         frame.setVisible(true);     } }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


In SharePoint I can set my "Created By" column to display as "Office", which then shows as this.    My problem is, that I cannot figure out a way to pull what is displayed here to use for a condition in a flow.  SharePoint will not allow me to use "Created By" in a calculated column.  Also nowhere in the flows dynamic content is there a "Created By Office".  Does anyone have any ideas? Please, I have been on this for days now.

I need to take the 'Office' display of the 'Created By' column and display the first 5 digits of it so that my flows can run a conditional check on it. The reason is that Microsoft flows has all the 'Created By' dynamic contents besides 'Office'.  I figured simple enough I'll just do a calculated column on the SharePoint list. Then I find out that 'Created By' cannot be used in calculated columns.   So I figured I'll have my PowerApp write the Users 'Office' as a default to a field when submitting a form and calculate it off that column. Unfortunately PowerApps only has User().FullName, Email, and Image.   I have pretty much exhausted the options for a workaround that my knowledge will allow. Hopefully someone might have some ideas.


As mentioned, we have $R = k[x,y,z]$, $\mathfrak{p} = (xz - y^2, x^3 - yz, x^2y - z^2)$, and we want to determine if $\mathfrak{p}^2$ is $\mathfrak{p}$-primary.   So my first thought was no, mostly because I think the professor is pointing out that $\mathfrak p$ being prime (which I have already shown) does not imply powers of $\mathfrak p$ are $\mathfrak p$-primary. However, I cannot seem to develop a solid argument. I tried finding an element whose multiplication map from $R/\mathfrak p^2$ to itself is neither injective nor isomorphic, but I don't know how to pick a clever enough element. I also tried thinking about elements $ab\in \mathfrak p^2$ such that $a\notin \mathfrak p$ and $b^n\notin \mathfrak p$ for any $n$, but again I don't see how to come up with these. I think I would maybe want $b = z$, and come up with a crazy $a$ somehow. I even tried looking at some associated prime stuff, but that did not seem too fruitful.  Now I am second guessing my intuition like I am trying to fit a square peg in a round hole.  Any hints/suggestions are appreciated. Thanks.

The question may have been addressed in Math SE before; but my question is a little variation of it, coming because of a very common example for this question.  It is well known that powers of a prime ideal need not be primary and a standard example is to consider the quotient of $k[x,y,z]$ by the ideal $(xy-z^2)$, and in the quotient ring, take the prime ideal $(\bar{x},\bar{z})$; its square is not primary.  Now this example of prime ideal is in quotient of polynomial ring.   Q. Can we construct an example of a prime ideal within a polynomial ring, say $k[x,y]$ or $k[x,y,z]$, whose some power is not primary?


Why you native english speaker guys always use up with verbs? To emphesize? Like point and point out ? Or like is there big difference between:    let's pull a chair   let's pull up a char   Or,   read this book read up this book   What is the exact point here? When should I use those?

call up : to make a phone call to a person or a place     Call up and make a reservation for eight o'clock.   Can you call up for me and tell them I'm sick?   In these sentences, I don't know what does 'up' mean?  I (non native) understand what 'up' means in these sentences:      I looked up at the sky.   The flag is up.   But when we use 'call up'... What nuance of meaning of the word 'up' is here? Is it possible to omit 'up'? Would it still be the same meaning?  And these sentences do not have 'up':     I'll call again later.   I called the office to tell them I'd be late.   So what is difference between 'call' and 'call up'? What nuance does 'up' take?


I was watching The Force Awakens the other day and I wondered something. The novelization of A New Hope and countless other books in the EU say that its impossible to go to lightspeed in the presence of a strong gravitational field, in other words, a planet. Also, I read that a planet can pull a ship out of lightspeed.   So how is that Han got so close to Starkiller at lightspeed?

From the old canon but also non canon sources it always seemed to me that you can't get into hypserspace too near to a gravity well (canon it is with the interdictor class ship in rebels but also a few comments here and there in the films).   But now there was a hyperjump right into far within a gravity well.  Is there any explanation anywhere for this? Or was that just artistic freedom that it could work?      I'm talking about when Han solo hyperjumped into the atmosphere of the planet the starkiller base is located on. That is WAY within the planets gravity well I would dare say as he is almost at ground level there.


This may seem like a trivial question, and I'm having a little trouble fleshing out my issues with the answers Ive seen so be prepared for some discussion on your answer. But why does centripetal force not change the speed?  I keep coming to this crux. If you have an initial velocity $v$ and then have a force $f$ at right angles to it. Would the new velocity not be greater than $v$ by pythagoras? How can it remain constant?

I have been taught that a perpendicular force acting on an object will only change the direction of its velocity, not its magnitude. The explanation that was provided to me is that because there no force in the direction of its velocity, there must be no work done and thus change in the object's kinetic energy. However, I have also studied the vectorial form of the equations of motion   $$\vec v_f = \vec v_i + \vec a\cdot t$$   So I assume that the velocity after a constant force has acted on it for a period of time is simply the vector sum of $\vec v_i $ and  $\vec a \cdot t$, which I just assume is the acceleration vector (determined by the force) scaled up by a factor of the time the force acts.Diagrammatically, I took the sum as    It is obviously clear from the diagram that the new speed (which is the length of the $\vec v_f$ vector) is bigger than the previous speed.  This can be confirmed by Pythagoras's theorem, the magnitude of the $\vec v_f$ vector is   $$ |\vec v_f|=\sqrt{|\vec v_i|^2 + |\vec a|^2 \cdot t^2}  $$  which is very clearly not equal to $|\vec v_i| $  So, I conclude that the speed of the object has changed even though the force acting on it was perpendicular to its velocity. So my question is, what have I missed?  Is my assumption that the final velocity is the vector sum of the initial velocity and the product of acceleration and time incorrect? Or have I made a mistake somewhere else?  Thank you in advance for your help.


I want to link button in Window Form with letter "S" in Keyboard. For Example: If I press "Button1" the key "S" will pressed automatically

How can I send keyboard input messages to either the currently selected window or the previously selected window?   I have a program which I use to type some characters which are not present on my keyboard and I would like it if I could just send the input directly rather than me having to copy and paste all the time.  EDIT:  The application of this is typing the German Umlauts. I'm an American and I work in Germany. I'm working on an American keyboard and from time to time I have to type in the umlauts / the euro symbol / the sharp S. Currently I have a simple WinForms application with a textfield and some buttons with the extra characters on it. I type into the textfield and I can press the buttons to append text to the textfield. I then copy the text and paste it where ever. What would be nice though if I could just just hit one of the buttons and it would send the text where ever I'm typing / was typing. The current program works fairly well but I could make it better.


Let $\mathbf{X}$ be a N x p matrix where the rows are assumed to be independet with distribution $\mathcal{N}(z_i\mathbf{v},\Sigma)$. A fixed vector $\mathbf{z}\in\mathbb{R}^N$. I would like to show that the MLE of $\mathbf{v} = (v_1,..v_p)^T$ is  $$\hat{\mathbf{v}}^T=\frac{\mathbf{z}^T\mathbf{X}}{||\mathbf{z}||_2^2}$$  I've tried to work on the loglikelihood function $$L(.)=\sum_{i=1}^N\log\left(\frac{\exp\left(-\frac{1}{2}(x-z_i\mathbf{v})^T\Sigma^{-1}(x-z_i\mathbf{v})\right)}{\sqrt{(2\pi)^p|\Sigma| }}\right)$$ to no avail.  Edit: My attempt. $x_i$ is the ith row in $\mathbf{X}$. Eventhough I used T for transpose, we assume p = 1 for now $$L(.)\propto -\frac{1}{2}\sum_{i=1}^N (x_i-z_i\mathbf{v})^T\Sigma^{-1}(x_i-z_i\mathbf{v})$$ $$=-\frac{1}{2}\sum_{i=1}^N x_i^T\Sigma^{-1}x_i - 2(z_i\mathbf{v})^T\Sigma^{-1}x_i + (z_i\mathbf{v})^T\Sigma^{-1}z_i\mathbf{v}$$  Then the derivative and first order condition is $$ -\frac{1}{2}\sum_{i=1}^N - 2x_i\Sigma^{-1}z_i+ 2 z_i^2\mathbf{v}^T\Sigma^{-1}= \sum_{i=1}^N x_i\Sigma^{-1}z_i-  z_i^2\mathbf{v}^T\Sigma^{-1}=0$$ Multiply the concentration matrix for both sides: $$\Rightarrow\sum_{i=1}^N x_i z_i-  z_i^2\mathbf{v}^T=0$$ $$\Rightarrow \mathbf{v}^T=\frac{\sum_{i=1}^N x_i z_i}{\sum_{i=1}^N z_i^2}=\frac{\mathbf{z}^T\mathbf{X}}{||\mathbf{z}||_2^2}$$

In maximum likelihood estimation for the parameter, mean $\mu$ of multivariate normal distribution, I end up with the following result:  $\mu_{MLE} = \dfrac{1}{n}\sum_{i=1}^n x_i$  The way I understand the above equation is the following way below, but I am wondering if the above equation means the following equation:  $\mu_{MLE} = \begin{bmatrix}\mu_1\\\mu_2\\\vdots\\\mu_n\end{bmatrix} = \begin{bmatrix}\dfrac{1}{n}\sum_{i=1}^n x_1\\\dfrac{1}{n}\sum_{i=1}^n x_2\\\vdots\\\dfrac{1}{n}\sum_{i=1}^n x_i\end{bmatrix} = \begin{bmatrix}E(X_1)\\E(X_2)\\\vdots\\E(X_n)\end{bmatrix} = \begin{bmatrix}\bar{X_1} \\ \bar{X_2} \\ \vdots \\ \bar{X_n}\end{bmatrix}$   And also Maximum Likelhood Estimation for $\Sigma$, I have ended up with the following equation:  $\Sigma_{MLE} = \dfrac{1}{n}\sum_{i=1}^n(x_i-\mu)(x_i-\mu)^T = \begin{bmatrix}Var(\sigma_{11}) & Cov(\sigma_{12}) & \dots & Cov(\sigma_{1n}) \\ Cov(\sigma_{21}) & Var(\sigma_{22}) & \dots & Cov(\sigma_{2n}) \\ {}& \vdots&  \\ Cov(\sigma_{n1}) & Cov(\sigma_{n2}) & \dots & Var(\sigma_{nn})  \end{bmatrix}$  Somehow, I got the equation following some algebraic steps, but I can't see how this part, $\dfrac{1}{n}\sum_{i=1}^n(x_i-\mu)(x_i-\mu)^T$, works and produces the covariance matrix. Hope to hear some explanations.


i am using ubuntu15.04. when i am trying to install to something in my pc from terminal then following problem arise:  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?   I dont understand what its mean.  someone help me to solve this problem

I get this error when trying to use apt-get:  E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?     How can I fix this?


I'm investigating interplay between two variables ($x_1$ and $x_2$). There is a great deal of linear correlation between these variables with $r>0.9$. From the nature of the problem I cannot say anything about the causation (whether $x_1$ causes $x_2$ or the other way around). I would like to study deviations from the regression line, in order to detect outliers. In order to do this I can either build a linear regression of $x_1$ as a function of $x_2$, or the other way around. Can my choice of variable order influence my results?

The Pearson correlation coefficient of x and y is the same, whether you compute pearson(x, y) or pearson(y, x). This suggests that doing a linear regression of y given x or x given y should be the same, but I don't think that's the case.   Can someone shed light on when the relationship is not symmetric, and how that relates to the Pearson correlation coefficient (which I always think of as summarizing the best fit line)?


When someone marks your question on SO as a favorite, you get to see a star and the number of users that marked the question as their favorite. Is there a way to see who all marked it as a favorite?  If not, it would be a nice feature for SO to have.

Favorite data is not exactly confidential; I can go to a user's profile and see everything they have as a favorite. Why isn't there an easy way to see who marked my questions as favorite?


Whenever I try to view my scene in EEVEE via the viewport, my model's textures all of a sudden. I tried reverting back to the factory settings but to no avail. It seems to also be a problem in the material preview viewport.  I can't show it due to an NDA but the texture works fine in the Cycles render viewport. My specs are: CPU: Intel Core i5 4590 GPU: AMD Radeon RX 560 8GB DDR3 Ram All stored in an SSD

I don't know why but now, when i go in material preview or rendered (in solid mode it works fine), my object is entirely gray, or invisible idk, because it has the same color of the background. I've been working for days on this project without having this issue, it suddenly showed up. I tried opening other old projects and suddenly they all do the same so i guess it is some blender program setting that applies for all the projects, but idk how it happened cuz i didn't change anything :/, anyone got any tips?


I have the following table construction in LaTeX:  \begin{center} \begin{minipage}[c]{0.3\textwidth} \vspace{0pt} \begin{tabular}[b]{l||c|c|c|c|c|c}               \textbf{0} & \textbf{1} & \textbf{2} & \textbf{3} & \textbf{4} & \textbf{5} & \textbf{6}\\ \hline  \hline \textbf{1}       & $\frac{1}{1}$ & $\frac{1}{2}$ & $\frac{1}{3}$ & $\frac{1}{4}$ & $\frac{1}{5}$ & $\frac{1}{6}$ \\ \hline \textbf{2}       & $\frac{2}{1}$ & $\frac{2}{2}$ & $\frac{2}{3}$ & $\frac{2}{4}$ & $\frac{2}{5}$ & $\frac{2}{6}$ \\ \hline \textbf{3}       & $\frac{3}{1}$ & $\frac{3}{2}$ & $\frac{3}{3}$ & $\frac{3}{4}$ & $\frac{3}{5}$ & $\frac{3}{6}$ \\ \hline \textbf{4}       & $\frac{4}{1}$ & $\frac{4}{2}$ & $\frac{4}{3}$ & $\frac{4}{4}$ & $\frac{4}{5}$ & $\frac{4}{6}$ \\ \hline \textbf{5}       & $\frac{5}{1}$ & $\frac{5}{2}$ & $\frac{5}{3}$ & $\frac{5}{4}$ & $\frac{5}{5}$ & $\frac{5}{6}$ \\ \hline \textbf{6}       & $\frac{6}{1}$ & $\frac{6}{2}$ & $\frac{6}{3}$ & $\frac{6}{4}$ & $\frac{6}{5}$ & $\frac{6}{6}$ \\ \end{tabular} \vspace{0pt} \end{minipage} \end{center}   The problem is clear by viewing the following output:     How can I modify the height of a cell in table? I know that I can do p{' '} for the width what about the height?   Thanks for all the help!

How do you guys go about controlling column padding in tables?   Update  To clarify, I'm looking for a way to control both vertical and horizontal padding. So, if I had a simple table like in the following code snippet, I could pad the columns and make them look a bit less... ugly. :P   \begin{tabular}{|l|l|}     \hline     column 1 & column 2 \\      \hline     I really would like this less & crammed\\     \hline \end{tabular}   I tried this by using the command \vspace but it leaves gaps in the vertical lines.


Why fuhrer Bradley didn't just imprison Elrics and members of military plotting against him? He kinda blackmails them to obedience by threatening their close ones but lets them wander and communicate with each other. They had no problem killing Hughes or imprisoning Dr. Marcoh so I find it kinda weird they didn't do the same with Elrics and Mustang. I get they were important candidates for sacrifice but subduing and imprisoning them would be much easier them keeping tabs on them all the time.   The answer that Homunculi just didn't respect humans and didn't feel threatened by them doesn't cut it imho. They've been killing and imprisoning people trying to meddle with their plot just not those I specified in the question. So I guess it's just a plot hole....

In episode 10 of Full Metal Alchemist: Brotherhood, during the events in the Research Lab 5, Edward Elric is severely hurt. Later in the hospital, he writes down everything he had come to know, and he discusses with Alphonse, Hughes, and Armstrong about what to do with the information to continue the investigation.  At this point, King Bradley arrives with lemon into the room. He finds out what they are doing but acts very calm and chilled out and allows them to continue investigation while being careful.  Why did he not get Hughes and Armstrong killed at that point? Or at least tell them to not investigate at all?


Recently, I tried graphing the function z = xy + e^(-xy) using tikzpicture and \addplot3. But for some reason, the graph is bugging out as its thinking that z = 0 for all values (except a few at the edge): \begin{tikzpicture} \begin{axis}[     view = {30}{30},     xlabel  = {$x$},     ylabel = {$y$},     zlabel = {$z$},     axis on top,     axis lines = center,     zmin = 0 ] \addplot3[surf]{x*y + e^(-x*y)}; \end{axis} \end{tikzpicture}  This is resulting in a graph that looks like:  But if you graph it somewhere else like GeoGebra (or any other 3d plotting tool) or try to draw it by hand, the value should be 1 along the x and y axis and then increase as you go outward. Is there any reason this is happening? (P.S. if I try to set a zmax value I get a "missing number" error probably because the equation I'm graphing increases rapidly and even at (-5,5) z ~ 7.2e+10)

I want to plot the function 1/(x²+y²), but since it tends to infinity in (0,0), I get a horrible plot:  \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{tikzpicture}   \begin{axis}[grid=both]     \addplot3 [surf] {1 / (x^2 + y^2)};   \end{axis} \end{tikzpicture} \end{document}     By restricting the domain of z, I get anyway a not so nice plot:  \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{tikzpicture}   \begin{axis}[grid=both,restrict z to domain=0:1]     \addplot3 [surf] {1 / (x^2 + y^2)};   \end{axis} \end{tikzpicture} \end{document}     I would like to get something smooth, which finish in a circle (the circle of the intersection of this function with the plane z=1 for example).  Something like this would be great:


Knowing every odd circuit in a graph is a triangle, prove $\chi(G) \le 4$  My approach: an odd circuit requires 3 colors, and an even circuit requires 2. But then I'm stuck. Can you give me a hint on how to proceed? No complete solution please.

As the title says, I have a simple finite graph whose every odd cycle is a triangle, and I want to show that $\chi (G)\leq 4$.  My idea was trying to use the fact that a graph is bipartite iff it contains no odd cycles. The general direction was: if we somehow "remove" the triangles, we get a 2-colorable graph, and then maybe somehow we can add them back without adding more that 2 colors needed...?


Suppose that we have the direct product of two fields, defined as: $\mathbb{F}^2 = \mathbb{F} \ \times\ \mathbb{F}$. Then, this is obviously not a field because we can take $(1,0)$, and this doesn't have a multiplicative inverse. However, I saw a mention to this today in a book, and the reasoning was:     "$\mathbb{F} \ \times\ \mathbb{F}$ has the zero-divisor $(1,0) \neq  (0,0)$, hence it is not a field".   (Lectures on Rings and Modules by Joachim Lambek, pg. 17).  I am not sure what they mean by zero-divisor here nor what $(1,0) \neq  (0,0)$ has anything to do with the direct product of fields not being a field. I always assumed there wasn't a multiplicative inverse, and that was it. Am I missing something deeper?

This question is from the book "Abstract Algebra" by Dummit and Foote.(Exercise: 7.6.4):  Problem: Prove that if $R$ and $S$ are any two non-zero rings then $R \times S$ is never a field.  My problem with this question is that it doesn't feel right. If $R$ and $S$ are rings then $R \times S$ is also so. (The addition and multiplication on $R \times S$ is defined as $(r_1,s_1)+(r_2,s_2)=(r_1+r_2,s_1+s_2)$ and $(r_1,s_1)(r_2,s_2)=(r_1r_2,s_1s_2)$ respectively where $(r_1,s_1),(r_2,s_2) \in R \times S$.) So proving that $R \times S$ is a field reduces to proving commutativity of multiplication, existence of multiplicative indentity and existence of multiplicative inverse for each element of it. Now, if the two rings are fields themselves then multiplication is commutative, the identy is $(1_R,1_S)$ and inverse of an element $(r,s)$ is $(r^{-1},s^{-1})$. So $R \times S$ is also a field. Am I right? Please help.  Update: The question comes from a section about the Chinese Remainder Theorem. Is it possible to prove this fact using Chinese Remainder Theorem?


I have a Centos 7 VM and I want to know what consumes the 126G on the  /dev/mapper/centos-root fs. I have 2 mount points and I unmounted them to make sure there's nothing reserving space under them and mounted them again .    I've also ran sudo lsof +aL1 but there was nothing reserving GBs  Is there more efficient way to know what consumes space ?

When I sum up the sizes of my files, I get one figure. If I run du, I get another figure. If I run du on all the files on my partition, it doesn't match what df claims is used. Why are there so many different figures for the total size of my files? Can't computers add?  Speaking of adding: when I add the “Used” and “Available” columns of df, I don't get the total figure. And that total figure is smaller than the size of my partition. And if I add up my partition sizes I don't get my disk size! What gives?


Lyx provide a simple GUI to create LaTeX presentations. But has lot of limitations. Ultimately you end up using LaTeX mark up. Is there a better program to create LaTeX presentation similar to LyX?

Is there a good graphical interface, similar to PowerPoint or LibreOffice Impress, for generating presentation slides?  When writing documents I prefer to write my text and LaTeX-markups using a text-editor and not using a graphical tool like LyX. However, in the case of presentation slides I want to see the layout and to have the ability to immediately see what you get e.g. by moving a picture with arrow keys.  ADDITION: The background to my question is as follows. I have used PowerPoint for more than a decade and like to use a WYSIWYG tool when making presentation slides. However, I can not use PowerPoint on my current computer and I think the output from LibreOffice Impress is inferior. As a long-time user of LaTeX, I have considered using SliTeX or Beamer but unfortunately I do not like the way of working. The end result is of course superior, but I found it very time-consuming and tiresome to e.g. adjust the position and size of pictures.


I don't really understand this equation and was wondering if someone could help.  The book says      when the restoring force is directly proportional to the displacement the oscillation is called .    and this next part confuses me      the acceleration $a =d^2x/dt^2 = -kx/m$ so it makes sense since the second derivative of position is acc.    but how do they get that last expression?

I am a Math Grad student with a little bit of interest in physics. Recently I looked into the Wikipedia page for .  Guess, I am too bad at physics to understand it. Considering me as a layman  how would one explain:   What a Simple Harmonic motion is? And why does this motion have such an equation $$x(t)= A \cos(\omega{t} + \varphi)$$   associated with it? Can anyone give examples of where S.H.M. is tangible in Nature?


In  I can't understand the meaning of the phrase quoted from the journalist.     As one journalist noted, Trump – who sanctioned Russian firms but then phoned Putin about stabilizing oil prices – “can dish it out, but he can’t take it.” Iran, Venezuela and Cuba, however, have no such leverage.   I appreciate help with understanding the meaning here.

This is a duplicate question but has still not been answered for me. I'm so close to the exact word - I know there is one out there - but the closest word I can find is a hypocrite --     a person who claims to have certain moral principles or beliefs but behaves in a way that shows they are not sincere.    The word I'm looking for is a person who does not claim things, but does thing to another and they consider it wrong or immoral to have done to them.


I can find a list of messages which I have starred, but I would like (for ego-stroking purposes) to find a list of my messages which other people have starred. Is there any way to find such a list?

I was reviewing the star on chat.SE list this morning and I noticed that quite a few of the items on the list were mine.  I was curious as to how often people enjoy the things I post there enough to star them, but I can't seem to find statistics about this anywhere.  Mana told me that no such feature exists.  (the best we could come up with is ) So here's my request - can I filter/search the chat history for things I've said that other people have starred?


We’re considering an ideal opamp here; so does that mean that Vo is infinity ♾ * 0 (A * (V+ - V-))?   Thanks!

For an ideal OpAmp the voltages at the inputs are said to be of equal value and the currents 0, however, for we also know that $$V_\text{out}=A(V_p-V_n)$$ but if the voltages are the same the output should always be 0!  I know that what I'm saying is wrong, but I don't know where the loophole is, and I can't find it anywhere.


I have trouble with Ubuntu 13.10 on my university wifi. I connect, and it works fine for five seconds to five minutes, then the connection quietly disappears. It does not indicate that anything is wrong with the network, no "Connection lost", et cetera. It just reports that I am still connected to the network, but doesn't actually work. A solution is to disconnect the wifi, then reconnect, giving me a few moments more of working wifi - horribly annoying.  Wifi stats   WPA(2) Enterprise PEAP authentication - version automatic I have the university .CRT certificate installed; I hear it's unnecessary MSCHAPv2 inner authentication Username ... Password ... Typically three out of four bars signal strength in my dorm room.   Other notes   Lenovo G770 laptop Works fine in Windows 8 Have tried Ubuntu 13.04, Linux Mint, Fedora, all have same problem Have tried other cards:  Atheros RTS5139 USB - same problem   Intel Wireless AC 7260HMW MiniPCIe - same problem AND lagged my PC horribly; removed  My roommate reports similar issues with a Broadcom card I think it worked okay for a month or two when I joined university, only to suddenly begin acting in the mischievous manner I describe, after several fresh reinstalls. I am fairly experienced with Linux and have been using it since Ubuntu 8 or somewhere along those lines.   Do you have any ideas? I've been stuck using Windows and it sucks so bad. I'm desperate enough to consider buying a router and trying some bridge method... if nothing else would that work?  lspci output  02:00.0 Network controller: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) (rev 01)     Subsystem: Lenovo Device 30a1     Kernel driver in use: ath9k

I have two laptops, both running Ubuntu 13.10, as well as a different OS (Windows 7), dual boot on both.  My wi-fi router is on my bedroom and I want to get the wi-fi signal from the living room. I can reach the wi-fi signal from both pcs when running windows, with a relative good signal, but can't reach it on both of them when running Ubuntu, can't even connect to it.  Is there something that I can do to amplify the wi-fi signal?


When making a chicken broth I'll chuck in some onion, carrots, celery, leeks, whatever I got lying around.   When I make the soup, I usually strain out all the bones and veggies in the broth and put in new vegetables along with the meat. Should I be transferring any of the veggies from the broth into the soup or putting in all fresh veggies?

Having made stock and strained it, can the meat and vegetables boiled up in the stock be used for anything, or should they go in the bin?


How do I add a user and set their password at the same time?   I tried:  useradd user1 -p user@123     Where user1 is their username and user@123 is their password.

I need a command to list all users as well as commands to add, delete and modify users from terminal - any commands that could help in administrating user accounts easily by terminal.


I accidentally spilled some soup onto my keyboard, and my laptop (Thinkpad T400) turned itself off, probably because of short-circuit. It can't be turned on now. I remove the power and the battery. How should I do now? Any hope to save my laptop? Thanks!

We accidentally spilt vinegar on netbook (EeePC). What should we do about it? Should we try to wash vinegar out or just let it dry?


Using pIRCBot.  Class: pIRC.java protected void onJoin(String channeljoined, String sender, String login, String hostname) {     Bukkit.getLogger().log(Level.INFO, "Channel joined: " + channeljoined + ". IRC channel: " + IRC.channel + "." );     if(channeljoined == IRC.channel)     {         Bukkit.getLogger().log(Level.INFO, "--");         for (Player player : Bukkit.getOnlinePlayers()) {             player.sendMessage(ChatColor.translateAlternateColorCodes('&',"&c[IRC]&e " + sender + "&f has joined the IRC channel."));         }     } }   My IRC class has this:  Class: IRC.java public static String channel;   Then I change the channel to a String got from a config file:  Class: IRC.java channel = this.getConfig().getString("publicchannel");   And now whenever a user joins the IRC channel it prints:   [11:03:53 INFO]: Channel joined: #MoMoMC. IRC channel: #MoMoMC.  But it won't proceed to the next if statement. Am I doing something wrong?

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I want to describe a character who experiments with sciences they don’t understand, at a great peril they are unaware of. A hypothetical example of such a person would be a scientist who, in an attempt to study atomic behavior, splits an atom (obvious logistical challenge aside).

The majority of definitions give the same meaning - "Pandora's box" is a synonym for "a source of extensive but unforeseen troubles or problems."  Are there any other metaphors with the same meaning?


Recently one of my college teachers had given a problem for which I had developed a solution. He told me to write it down in a technical paper in a website called overleaf.com.   However, I am completely lost. The template of the papers of the website is intimidating and I don't know where to start. I also have no idea what a technical paper is supposed to look like, what kind of language it is supposed to contain, etc. I don't know where to start. Please help me.

Which book (free or otherwise) was the most useful to you when you started learning LaTeX?  I am frequently asked this question by friends who want to learn LaTeX, and I recommend the book which got me started, , but I feel that there might be better options around.  Also see .


In , at the end of page 6, it is given the following puzzle,     An evil wizard has threatened a village where an infinite number of   gnomes reside. The wizard will cast a spell that will cause a hat to   appear on the head of every gnome. Each hat will either be red or   blue, but each gnome will be unable to see that hat on his or her   head. The wizard will leave the gnomes alone only if only a finite   number of gnomes guess the color of the hat on their heads   incorrectly. The gnomes can strategize before the wizard puts the hats   on their heads, but they cannot talk or communicate with each other   once the hats are on their heads. The gnomes have very good eyesight   and can see the hat of every other gnome. The wizard can listen to the   gnomes strategize and choose the most evil possible placement of hats.   What should the gnomes do?      [solution, if you can find it, requires the Axiom of Choice.]   I have been thinking this puzzle since yesterday, but I couldn't come up with any solution, so what is best strategy(ies) that can gnomes choose so that the wizard will leave them alone ?  Edit:  Note that there are infinitely many gnomes, not necessarily countably infinite.Morever, the puzzle does not say that a gnome that guesses his/her hat wrong will be kill right away, so there is no way s/he can learn whether his/her choice was true or not before everyone else made their guess.

The link to Wikipedia describes the puzzle, and the solution. The axiom of choice is used to pick a sequence from each equivalence class, which the prisoners memorize beforehand.  However, the answer says "When they are put into their line, each prisoner can see what equivalence class the actual sequence of hats belongs to."  Why not wait until the prisoners see which equivalence class they are in. Then, pick a sequence from this equivalence class? This would avoid having to use the axiom of choice, or am I mistaken?


Can anyone tell me the meaning of the words Ign, Hit and Get in the first column of the output from apt-get update?

I had a bunch of errors in the output of sudo apt-get update:  duplicate entries and 404 not found errors.  Figured those out, I hope: I removed PPAs that didn't have any packages associated with them, then I removed out a duplicate entry in /etc/apt/sources.list.  It seems I have royally buggered it up.  Now most of the lines say Ign when I do sudo apt-get update.  How do I go about straightening out what I have screwed up?  I need to get rid of these Igns that are all over the place.  There are about 50% (eyeball guess) Igns!


In python I did this experiment:  In [1]: a = 42  In [2]: b = 42  In [3]: a is b Out[3]: True  In [4]: a = 257  In [5]: b = 257  In [6]: a is b Out[6]: False   Can anyone explain why it shows false for the second time? It looks really odd...

Why does the following behave unexpectedly in Python?  >>> a = 256 >>> b = 256 >>> a is b True           # This is an expected result >>> a = 257 >>> b = 257 >>> a is b False          # What happened here? Why is this False? >>> 257 is 257 True           # Yet the literal numbers compare properly   I am using Python 2.5.2. Trying some different versions of Python, it appears that Python 2.3.3 shows the above behaviour between 99 and 100.  Based on the above, I can hypothesize that Python is internally implemented such that "small" integers are stored in a different way than larger integers and the is operator can tell the difference. Why the leaky abstraction? What is a better way of comparing two arbitrary objects to see whether they are the same when I don't know in advance whether they are numbers or not?


This often comes up in precalculus and calculus, that is sometimes an expression will be said to undefined while at other times undetermined. What is the fundamental difference between the two?  For example, division by zero $x/0$ is said to be undefined, while $0/0$ is said to be undetermined.

I know that $\lim_{x\to0}\frac{x}{x}=$ 1.  But in my text book, it is written that it is $\infty$ and even $\frac10=\infty$.  But how is it possible? And are they both same? What is the difference between indeterminate and undefined?  And if they are $\infty$ then what is the reason? And why can't we define something for these numbers?    Now see that book says when $x=0$, $t=\infty$. If it is wrong, why did they just write it?


I'm new to Ubuntu, just installed it on my ChromeBook a few days ago. So please forgive me.  My problem is with Google Chrome. I have it installed and working, but when I open it and start browsing, a new icon appears in the launcher titled "New Tab - Google Chrome", which replaces the original Chrome icon. When I click this new icon, it turns yellow and does nothing. I have rebooted the computer and reinstalled Chrome, no fix. I can still open Chrome from the terminal though. I would like to have an icon in the launcher that opens Chrome.  Your help is much appreciated.

When I open Google Chrome on Ubuntu 14.04, it opens a new window on a different launcher icon (I have Chrome in my Launcher pinned) and the title of the window is a tab that I don't have open any more. I have uninstalled and reinstalled Google Chrome.


On occasion I have bought sliced/chopped, pre-tenderized, frozen octopus from the local market and each time I attempt cooking it, it always is still a little chewy and smells like bay water. I suspect I'm not cleaning it right and boiling it too long but am unsure the right way to get a decent tasting octopus dish.  What is the best way to make a simply tasty octopus?

My whole life I've been buying small squid (maybe 4-6" long bodies without the head and tentacles), which are very mildly chewy and tender.  All it takes is sautee them in a little OO and they are good to eat, IOW, no additional tenderizing is needed.  Yesterday I got some large squid, about 1 lb each before cleaning, probably 10"+ long without the head, probably 5-6 times as much meat as the little ones I usually get.  I remember trying to cook that before and they came out very tough and with a bit of unpleasant odor.  Is there a way to marinate and tenderize large squid and to somehow neutralize the odor?


I'm following  in attampt to connect my laptop to WIFI after installing Ubuntu 20.04 LTS. However, I run iwconfig in the terminal and it only returns: lo        no wireless extensions. enp9s0    no wireless extensions.  So something probably went wrong in the installation. What could it be? And how can I fix it?  $ ip ad  1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000     link/loopback 00:00:00:00:00:00:00 brd 00:00:00:00:00:00     inet 127.0.0.1/8 scope host lo        valid_lft forever preferred_lft forever     inet6 ::1/128 scope host        valid_lft forever preferred_lft forever 2: enp9s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000     link/ether 20:1a:06:aa:34:56 brd ff:ff:ff:ff:ff:ff  $ lspci  00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller (rev 06) 00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Experess x16 Controller (rev 06) 00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06) 00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06) 00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05) 00:16.0 Communication controller: Interl Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04) 00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05) 00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05) 00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Chipset Family PCI Express Root Port #1 (rev d5) 00:1c.1 PCI bridge: Intel Corporation 8 Series/C220 Chipset Family PCI Express Root Port #2 (rev d5) 00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Chipset Family PCI Express Root Port #3 (rev d5) 00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05) 00:1f.0 ISA bridge: Intel Corporation HM86 Express LPC Controller (rev 05) 00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05) 00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05) 01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Jet PRO [Radeon R5 M230 / R7 M260DX / Radeon 520 Mobile] 08:00.0 Network controller: Broadcom Inc. and subsidiaries BCM43142 802.11b/g/n (rev 01) 09:00.0 Ethernet controller: Qualcomm Atheros QCA8172 Fast Ethernet (rev 10)

I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible.   What are the steps to install Broadcom wireless drivers for a BCM43xx card?  I'm a user with no advance knowledge in Linux, so I would need clear explanations on how to make, compile, etc.    lspci -vnn | grep Network showed:   Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b]      iwconfig showed:  lo        no wireless extensions. eth0      no wireless extensions.   NOTE: Answer below is updated every time new information is added and confirmed working.


In bash, we can read an file into an array, so that each line in the file becomes an element of the array.  $ arr=( $(cat myfile) )   I was wonder how cat works so that it allows reading a file line as an array element? Does cat separate the file content into lines?  Does cat not just read all the content of the file at once, without separating it into lines, so that  arr has just one single element, which is the entire content of the file? Thanks.

for i in $(xrandr); do echo  "$i" ; done for i in "$(xrandr)"; do echo "$i"; done for i in "$(xrandr)"; do echo $i; done   I understand why 1 differs from 2. But why does 3 give a different output from 2? Please explain the output too. How do quotes work on newlines?


I've made a model from a copy of another object, but now it's done I just see now that it's rotation angles weren't set to 0.  And now it causes me trouble when I mirror it. Is there a way to "Zero-ing" the current rotation as if it's a normal one?

I am trying to scale an object along the Y Axis (flipping it by -1) but I am having trouble. When I scale it by Y, it seems to be a semi-arbitrary axis. The 3D cursor shows that the object's orientation is not aligned with the world, but I want to scale it on the world's Y Axis. I've tried clearing and applying rotation but it doesn't seem to be doing what I expect. I would think that clear rotation would be what I'm looking for, but it doesn't seem to work. I want the object to stay in the same exact world location but I want its rotation to be 0,0,0. How can I zero the object's rotation without affecting its actual position/rotation?  Thanks, Warren


In the below function  imcrop_tosquare. Assume i have a image of shape (8,4) ie 8 rows and 4 column. If that is the case. I will be getting extra as 4. Then extra%2 ==0 condition gets satisfied.  crop = img[2:-2,:]   What does 2 to -2 represent? I assume it is from 2nd row to its before row. 1,2,3,4,5,6,7,8 [This will be in loop] so -1 would be 1 and -2 would be 2. Wont the image be damaged if bring the first two rows to end?? Am i interpreting it wrongly? Can anyone guide me in understanding this.  def imcrop_tosquare(img): """Make any image a square image.  Parameters ---------- img : np.ndarray     Input image to crop, assumed at least 2d.  Returns ------- crop : np.ndarray     Cropped image. """   if img.shape[0] > img.shape[1]:     extra = (img.shape[0] - img.shape[1])     if extra % 2 == 0:         crop = img[extra // 2:-extra // 2, :]     else:         crop = img[max(0, extra // 2 + 1):min(-1, -(extra // 2)), :]   elif img.shape[1] > img.shape[0]:     extra = (img.shape[1] - img.shape[0])     if extra % 2 == 0:         crop = img[:, extra // 2:-extra // 2]     else:         crop = img[:, max(0, extra // 2 + 1):min(-1, -(extra // 2))]   else:     print("It is imgae")     crop = img   return crop

I need a good explanation (references are a plus) on Python's slice notation.   To me, this notation needs a bit of picking up.   It looks extremely powerful, but I haven't quite got my head around it.


Is this sentence grammatically correct? If so why is the word "while" omitted? I saw my name on the packages he was taking off the boat. Thanks a lot.

He will understand that I was not joking.   He will understand I was not joking.  Which of the sentences is correct? Are there any specific rules about the use of "that" in the sentences I reported as example?


I can't understand what is the difference between the Pandemic 2012 and 2013! And do 2012 awards winning edition compatible with the expansions, or have a misprint issue?.

I have seen that there is a new edition of Pandemic for 2013.  What are the differences between Pandemic and the "New Challenge" version?  Can I convert my original edition to use any of the new rules?  Is the original Pandemic compatible with the 2013 expansion packs?


There set 2019-12-27, but print result is 2020-01-27. Is there mistake in the code?  public void testJavaDate(){     SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");     Date checkInDate;     checkInDate = new Calendar.Builder()             .setDate(2019, 12, 27)             .build().getTime();     System.out.println("checkIn sdf: "+sdf.format(checkInDate)); }

In java.util.Calendar, January is defined as month 0, not month 1. Is there any specific reason to that ?  I have seen many people getting confused about that...


So basically I want to install ubuntu on a usb from my mac (on a laptop which usually runs windows), because I deleted the partition of ubuntu and the grub switcher was gone at the same time too (so I couldn't boot in both the operating systems) But when I tried to boot up from the usb (made on a mac) it said:  non-system disk        press any key to reboot... and then it just opens the grub rescue. When I try stuff in the grub rescue the only thing it returns is unknown filesystem or Is this error caused by the type of ubuntu I installed on the usb? Here are some specs of both my mac and my pc. They both are 64-bit and an i5, it is an kingston data traveller g3 media usb. I made the bootable USB with the linux live USB loader for mac.  I hope some of you know what to do... Thanks for reading.

I have a netbook that I want to install Ubuntu onto. I do have a good Mac computer that I can make a bootable USB drive from, but I'm confused on how to go about making it.


I have played pathfinder 3 times, and have really come to like it. However, the family that introduced me moved away, and now I am looking for free locations to play. I have looked on the Pathfinder society website, but have found only paid campaigns.  Is there a website that includes free one night games?    I am looking for free locations that have one-shots and mini campaigns.    I am looking for a website that lists all of the local places in my area that host free Pathfinder sessions. Looking up the websites of the individual hobby shops takes too much time, plus I am not 100% sure if I have all the games then (libraries that host these events would be missed for example).

I'd really like to learn how to play pen-and-paper RPGs.  I know that it takes a few players to actually sit down and play, but I'm not at all sure where to find more gamers.  How do I find existing groups to join? Or, are there any resources online that may help me find existing RPG groups or players?


Say a caster wants to travel to a different continent on the same plane. Can that journey be made using the spell , or can plane shift be used only to travel to a different plane than the caster's currently on?

What happens if you cast  and then attempt to shift to the plane that you're on?  I can think of a few reasons this might happen in-game:   For some reason, the PCs don't know what plane they're on, so they try to plane shift to their current plane. PCs who don't have teleport memorized find themselves in over their heads, and want to use plane shift to escape from their current location (but don't actually want to go to another plane).   I can think of a few possible results:   The spell functions as normal.  The targets immediately move elsewhere on the same plane, arriving 5 to 500 miles from their intended destination. The spell fails without explanation, so PCs in situation #1 still don't find out what plane they're on. The spell fails, but it is somehow obvious why.  PCs in situation #1 find out that they're already on the plane they were trying to go to.   Are there any possibilities I'm missing?  Has this issue been addressed explicitly in any edition of D&D or Pathfinder?  What actually happens in Pathfinder?


I want to have a bash-script discover its own path.  The background is that I have a script called process_scanned_text.sh, which itself uses the script . I put curves in the same directory as process_scanned_text.sh. I created a symlink to process_scanned_text.sh in my ~/bin folder. Now I don't know how to correctly call the curves script. As it is not in $PATH, I need to specify it's path. Using dot as path is not correct as this points to the directory from which I call process_scanned_text.sh. Using dirname $0 does not work either as this points to my bin folder (where the symlink is).

I have a utility consisting of a couple of directories with some bash scripts and supporting files that will be deployed to several machines,  possibly in a different directory on each machine. The scripts need to be able to reference paths relative to themselves, so I need to be able to get the path to the file that's currently being executed. I am aware of the dirname $0 idiom which works perfectly when my script is called directly. Unfortunately there is a desire to be able to create symlinks to these scripts from a totally different directory and still have the relative pathing logic work. An example of the overall directory structure is as follows: /  |-usr/local/lib  |  |-foo  |  |  |-bin  |  |  |  |-script.sh  |  |  |-res  |  |  |  |-resource_file.txt  |-home/mike/bin  |  |-link_to_script (symlink to /usr/local/lib/foo/bin/script.sh)  How can I reliably reference /usr/local/lib/foo/res/resource_file.txt from script.sh whether it is invoked by /usr/local/lib/foo/bin/script.sh or ~mike/bin/link_to_script?


I absolutely hate hate HATE restarting my (Windows 8) laptop. The reason for this is because I generally have an awful lot going on at any time, thanks to working on 4 or 5 concurrent projects as well as a few other tasks. On a usual day, I have:   VLC, playing whatever NetBeans Node.JS, running a few utility programs Notepad++, sometimes with unsaved files* Notepad, running 3 or 4 instances of unsaved text files* Word with a few documents, some unsaved files* Chrome, running 30-40 tabs Explorer, 7-8 Windows Open   * these files are not files that need to be saved to disk, but untitled documents that I am using for storing complex sets of notes and ideas about whatever I am working on, but only required for a short period of time, so not saved  Yes, that is a lot of open programs, but my laptop can easily handle it all. In the past, I have gone as much as 2 months without restarting my computer because I can't face going through all my stuff, saving the temporary stuff, then after the restart, re-loading it all to the states I was at before restarting.  So, are there any programs that can handle the restart process for me by closing and saving the open programs to a temporary space, restart the system, and reload all/most of the previous session programs and data from the temporary directory (deleting the temp data after loading)?

Just freeze an application (suspend the CPU, save its state to disk) and 'defrost' it when I want to use it 4 weeks later.


Is there a way to convert a TeX document into HTML that instead of relying on JavaScript, SVG, HTML Canvas, or images for rendering formulae to solely rely on HTML, CSS, and OTF fonts?  In  there are a number of fonts listed that have mathematical symbols and glyphs, but are there any OTF smart fonts that render, say, $\sum_i^j as $\sum_i^j$ or $\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$ as $\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$? using ligatures, variants, capitals, swashes maybe with the help of some additional CSS etc.?

Is there a converter that will convert LaTeX to HTML? I have tried several services but the LaTeX diagrams and some of the maths came out weird.  I actually converted the Latex to PDF without a problem. Then I used  to convert from PDF to HTML. The square root signs did not appear properly and some of the Cartesian coordinate plane diagrams had nothing on them except the grid.   \documentclass[12pt,a4paper]{report} \usepackage{amssymb} \usepackage{amsthm} \usepackage{amsmath} \usepackage{pstricks,pst-plot} \usepackage{pst-eucl} \addtolength{\hoffset}{0.2cm} \addtolength{\textwidth}{1.1cm} \addtolength{\textheight}{1.0cm} \addtolength{\voffset}{-0.7cm} \linespread{1.3} \begin{document}  If $x$ is non-positive then $x \leq -\sqrt{\frac{1}{2}}$     $\hspace{30 mm} $     (6)\\  (4) and (6) tell us that\\  (4)  $-1 \leq x \leq 0$  \\  (6)  If $x$ is non-positive then $x \leq -\sqrt{\frac{1}{2}}$\\  Therefore $-1 \leq x \leq -\sqrt{\frac{1}{2}}$\\  \vspace{50 mm}  \begin{align*} \psgrid[unit=2cm](0,0)(-2,-2)(2,2) \pnode(-1.8,.87){b}\uput[50](b){b} \pnode(-1.8,1.8){a}\uput[50](a){a} \psset{linecolor=green} \psline[linewidth=1pt](-1.8, 0)(-1.8,4) \psset{linecolor=green} \psline[linewidth=1pt](-1.8, 0)(-1.8,-4) \psset{linecolor=blue} \psellipticarc(0,0)(2,2){0}{180} \psset{linecolor=red} \psline[linewidth=1pt,linestyle=dashed,dash=2pt](-2,2)(-1.41,1.41) \psset{linecolor=red} \psline[linewidth=1pt](-1.41,1.41) \psset{linecolor=red} \psline[linewidth=1pt]{->}(4,-4) \psset{linecolor=red} \psline[linewidth=1pt]{->}(-2,2)(-4,4) \end{align*}  \end{document}   PDF output:    PDF->HTML output:


I'm an undergraduate math major student in my junior year. I've taken Abstract Algebra 1 last fall. I got  a C in that class (I got 65%). In most of my previous courses I got A's, and in some courses I got B's. I know that such a grade would cause much damage to my application (I intend  for graduate programs that I intend to apply for next winter, while being in my senior year).  I want to point out some things regarding my situation:   In my college, we can not re-take a passed course no matter what, that is, I can not re-take the course (I wished if I got F in that class so that I can re-take it and get a better grade, but I passed it with 65 point from 100). So I can not re-take it and it will be in my final transcript which will be sent to the programs I'm applying for.  This semester, I'm taking Abstract Algebra II and I'm aiming to get as high grade as I could, I wonder if doing so would minimize the damage of this C.  My GPA was 3.8 of 5 (~88%) before my fall semester, now it's 3.6 (86%), in a great part due to this C.   My question is: how much damage such a grade would cause? What are the best ways to minimize those damages? Do I have any chances to get admitted to good school with this C in my transcript? What about top schools like Berekely etc? Do I even have a chance?  Regarding the possible duplicate: Although the answer in the proposed question is great, I think that my question may have more specific answer since it is directed towards a specific field namely, mathematics. So, an emphasize on reference letters, research experience  or motivation letters may be more significant and crucial in math more than in other disciplines. Hence, I believe a more specific and tailored answer can be provided to my question rather than a general answer for bad grades.  Some (Clarifying but un-important) remarks:   Some people may think that I'm not good enough and this was the reason I got C in that class but I want to point some facts regarding that:   In my university, this course is not a challenging course, so it's normally easy to pass it with a good grade because the material and the treatment is not advanced or demanding. I got A's in the most demanding courses in my department. Regarding getting a C, this was due to several factors: First of all, I faced some problems in the two days before the exam, I went to the final exam without any sleep for a period of nearly 30-35 hours and I was very tired, I was sleeping in the exam and fully exhausted mentally. I faced some psychological problems for most time in this fall semester which had bad effect on my grades in general, but specially, the situation was catastropic in the algebra course. This C is not due to my lack of knowledge: in fact, I've mastered the topics in the course since High School (It's a Group Theory course - I went through most of Dummit and Foote doing almost all of the exercises in my high school years). It was due to an urgent problems at the time.  I'm not a bad student, as an indication for that: in the same semester, I've attended two graduate courses, one in Module Theory and the second in Forcing (set theory) and both of the professors considered me as one of the best students in the class although I was the only undergraduate. Sadly, we can not take graduate courses for credit in my uni, so my attendance was not official, I was attending because I wanted to learn the stuff. Also, I've attended a graduate course in Algebraic Logic in my sophomore year, and same impressions were made by the professor. In my sophomore year, I was meeting some professors regularly to guide me to self-study Category theory and Commutative Algebra.  My GPA is currently the HIGHEST GPA among my fellows in the same program, which may indicate that such a C is not normal for me.  Some people may ask, why did you take this course if you already know the material? Answer: in my college, most courses are mandatory, so I must take them even if I've mastered the content. This course is one of those mandatorycourses.

When applying to a PhD program in the US, how does the admissions process work? If an applicant is weak in a particular area, is it possible to offset that by being strong in a different area?  Note that this question originated from this . Please feel free to edit the question to improve it.


Are there any alternatives to the arcpy list functions (ListDatasets, etc.) where the directory can be specified rather than using the env.workspace?    For example, what if I would like to get a list of datasets in several different directories?    Or if I have my workspace in_memory?    The os.walk might partially work, but won't recognize non-file-based data types.  Is another function or snippets that can accomplish this?

My office will be seeing a big change in its GIS section. This section has been operational since the 1980's and has a huge collection of GIS data (i.e., shapefiles, raster files, data, etc) but never been through any inventory. Now it will happen.   Is there any automated way to extract all the information about the GIS data (i.e., shapefile, arc-info coverage, layer file, *.mxd, gdb, raster file, and more) from a PC to an Excel file? The information may include date of creation, date last edited, folder or container name, etc.