My company is moving to IOS Apps development and we are looking for a MAC's pc to compile the apps.  Basically we will develop at Window workstation, then compile at MAC.    Is the Mac Book Pro i5 or Mac Mini i5 power enough the the apps compilation(will only run as workstation to compile the IOS apps)?  How about Running OSX at window 10 HyperV, is it support?  Thanks Louis
I am a freelancer programmer and so far I have only worked on projects on Windows platform. I don't have much idea about OS X hardware. I am not looking for a very high end configuration but integrated development environment and one database server should just run fine. I have a Dell laptop i7 processor, 8 GB RAM, 1 TB HDD; I am fairly satisfied with the performance. I am mainly going to use it for app development and not for any rich graphics app development.  What are the minimum and recommended hardware requirements for Xcode development on OS X?
Using QGIS3 Processing algorithms from standalone PyQGIS scripts (outside of GUI) I'm writing a script which must work outside of QGIS GUI. I call some API functions from qgis.core but I'd like to use the processing plugin.  I'm able to import processing with sys.path.append() but I can't run any process. Moreover, all "native" algs are missing in QgsApplication.processingRegistry().algorithms()  So is it possible to run processing that way ? What am I missing ?  import os, sys from qgis.core import * QgsApplication.setPrefixPath('/usr', True) qgs = QgsApplication([], False) qgs.initQgis()  sys.path.append('/usr/share/qgis/python/plugins') from processing.core.Processing import Processing Processing.initialize() import processing  layer1 = QgsVectorLayer('data/ROUTE_PRIMAIRE.SHP') layer2 = QgsVectorLayer('data/ROUTE_SECONDAIRE.SHP')  processing.run('qgis:union', layer1, layer2, 'test.shp') # returns nothing   I'm on QGIS 3.0.1 - Debian 9 Why are values in Entites obtained directly and sometimes by using getters? For example  Drupal\Core\Entity\Entity::id() returns $this-&gt;id(or NULL) Drupal\Core\Entity\ContentEntityBase::id() returns $this-&gt;id-&gt;value Drupal\Core\Entity\ContentEntityBase::uuid() returns $this-&gt;get('uuid')-&gt;value Drupal\node\Entity\Node::id() returns $this-&gt;get('nid')-&gt;value  Also in some methods there are setValue() and getValue() utilised but sometimes there are just $this-&gt;field-&gt;value. So what is the reason for this inconsistent behavior? From my understanding all the &quot;fields&quot; are TypedData fields hence the setValue() and getValue() methods should be used instead of directly access $this-&gt;field-&gt;value. Besides it's strange because $value is private. C++ guarantees that variables in a compilation unit (.cpp file) are initialised in order of declaration. For number of compilation units this rule works for each one separately (I mean static variables outside of classes).  But, the order of initialization of variables, is undefined across different compilation units.  Where can I see some explanations about this order for gcc and MSVC (I know that relying on that is a very bad idea - it is just to understand the problems that we may have with legacy code when moving to new GCC major and different OS)? Is an increasing union of subspaces a subspace? Trying to install ubuntu on a laptop. The "bios/uefi" has no uefi boot options &amp; the windows boot manager just kicks in. The only "option" is "boot from hard disk". So we tried to use efibootmgr to put grub to boot first.  When we run an efibootmgr -o xxxx,xxxx,xxxx command it seems like the order gets fixed but on reboot the windows boot manager still has control, then when we re-opened the live usb &amp; checked the boot order it remains unaffected.  What are other ways to change the efi boot order? Maybe by mounting the efi partition (in mnt) and doing what? How to draw a side line in table is $y = \sqrt{x^2 + 1}− x$ a injective (one-to-one) function? I have a function  $y = \sqrt{x^2 + 1}− x$ and I need to prove if it's a Injective function (one-to-one).  The function f is injective if and only if for all a and b in A, if f(a) = f(b), then a = b  $\sqrt{a^2 + 1} − a = \sqrt{b^2 + 1} − b$  $\sqrt{a^2 + 1} + b = \sqrt{b^2 + 1} + a$  $(\sqrt{a^2 + 1} + b)^2 = (\sqrt{b^2 + 1} + a)^2$  $a^2 + 1 + b^2 + 2b\sqrt{a^2 + 1} = b^2 + 1 + a^2 + 2a\sqrt{b^2 + 1}$  $2b\sqrt{a^2 + 1} = 2a\sqrt{b^2 + 1}$  $b\sqrt{a^2 + 1} = a\sqrt{b^2 + 1}$  $(b\sqrt{a^2 + 1})^2 = (a\sqrt{b^2 + 1})^2$  $b^2(a^2 + 1) = a^2(b^2 + 1)$  $b^2a^2 + b^2 = a^2b^2 + a^2$  $b^2 = a^2$  $\sqrt{b^2} = \sqrt{a^2}$  $b = \pm a$  then the function is not injective because $b$ in not equal to $a$, but using online  the function is injective. I just proved that any finite group of order $p^2$ for $p$ a prime is abelian. The author now asks to show that there are only two such groups up to isomorphism. The first group I can think of is $G=\Bbb Z/p\Bbb Z\oplus \Bbb Z/p\Bbb Z$. This is abelian and has order $p^2$. I think the other is $\Bbb Z/p^2 \Bbb Z$.   Now, it should follow from the fact that there is only one cyclic group of order $n$ up to isomorphism that these two are unique up to isomorphism. All I need to show is these two are in fact not isomorphic. It suffices to show that $G$ as before is not cyclic. But this is easy to see, since we cannot generate any $(x,y)$ with $x\neq y$ by repeated addition of some $(z,z)$.  Now, it suffices to show that any other group of order $p^2$ is isomorphic to either one of these two groups. If the group is cyclic, we're done, so assume it is not cyclic. One can see that $G=\langle (1,0) ,(0,1)\rangle$. How can I move on? Find the value of $\sum_{k=1}^{n}k\binom{n}{k}$? The use of nominative "whom" (as in “persons whom it is foreseeable are likely to...”) From  page 48 of Law: A Very Short Introduction, by Raymond Wacks:     In other words, you owe a duty to persons whom it is foreseeable are likely to be harmed by your conduct.   To try to parse this, temporarily overlook 'it is foreseeable'. Then persons is the subject of the verb phrase are likely to be harmed. So , should the relative pronoun for persons be who instead? Is my parse wrong?   Are the (deleted) comments right: that this style predominates in law texts? If this is correct grammar, what is the general rule? Is it commonly used in other contexts? I'm trying to find the infinite sum that is defined by:  $$ 3 \cdot \frac{9}{11} + 4 \cdot \left(\frac{9}{11}\right)^2 + 5 \cdot \left(\frac{9}{11}\right)^3 + \cdots $$  However, I do not know of any known formula to do this. Am I missing something really simple? Thanks! Problem:  Ajax suggest-search on [n] ingredients in recipes. That is: match recipes against multiple ingredients.  For instance: SELECT Recipes using "flower", "salt" would produce: "Pizza", "Bread", "Saltwater" and so forth.  Tables:  Ingredients [     IngredientsID INT [PK],     IngredientsName VARCHAR ]  Recipes [     RecipesID INT [PK],     RecipesName VARCHAR ]  IngredientsRecipes [     IngredientsRecipesID INT [PK],     IngredientsID INT,     RecipesID INT ]   Query:  SELECT     Recipes.RecipesID,     Recipes.RecipesName,     Ingredients.IngredientsID,     Ingredients.IngredientsName FROM     IngredientsRecipes      INNER JOIN Ingredients     ON IngredientsRecipes.IngredientsID = Ingredients.IngredientsID      INNER JOIN Recipes     ON IngredientsRecipes.RecipesID = Recipes.RecipesID WHERE     Ingredients.IngredientsName IN ('salt', 'water', 'flower')   I am currently constructing my query using ASP.NET C# because of the dynamic nature of the WHERE clause.  I bites that I have to construct the query in my code-layer instead of using a stored procedure/pure SQL, which in theory should be much faster.  Have you guys got any thoughts on how I would move all of the logic from my code-layer to pure SQL, or at least how I can optimize the performance of what I'm doing?  I am thinking along the lines of temporary tables:  Step one: SELECT IngredientsID FROM Ingredients and INSERT INTO temp-table  Step two: SELECT RecipesName FROM Recipes joined with IngredientsRecipes joined with temp-table.IngredientsID How to merge an unallocated partition with an extended partition? Total width of element (including padding and border) in jQuery As in the subject, how can one get the total width of an element, including its border and padding, using jQuery?  I've got the jQuery dimensions plugin, and running .width() on my 760px-wide, 10px padding DIV returns 760.  Perhaps I'm doing something wrong, but if my element manifests itself as 780 pixels wide and Firebug tells me that there's 10px padding on it, but calling .width() only gives 760, I'd be hard pressed to see how.  Thanks for any suggestions. SELinux preventing Apache from writing to a file SELinux is preventing the apache user from writing to a log file which it owns. When I do setenforce 0 it works. Otherwise it shows this error  IOError: [Errno 13] Permission denied: '/var/www/webapp/k/site/k.log'   The security context of the file:  $ ll -Z k.log  -rw-r--r--. apache apache system_u:object_r:httpd_sys_content_t:s0 k.log   The file was created when the SELinux mode was set to permissive.  How to set the security context so the apache user can write in that directory? I did set that directory security context using chcon but I can't find a suitable file type.  From audit.log:  type=AVC msg=audit(1409945481.163:1561): avc:  denied  { append } for  pid=16862 comm="httpd" name="k.log" dev="dm-1" ino=201614333 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=file type=SYSCALL msg=audit(1409945481.163:1561): arch=c000003e syscall=2 success=no exit=-13 a0=7fa8080847a0 a1=441 a2=1b6 a3=3 items=0 ppid=15256 pid=16862 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm="httpd" exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t:s0 key=(null) uint color;  bool parsedhex = uint.TryParse(TextBox1.Text, out color);  //where Text is of the form 0xFF0000 if(parsedhex)    //...   doesn't work. What am i doing wrong? "that which" used together When I read essays from Eliot, I find him using "that which" frequently, e.g.        the combination which is the murder of Agamemnon is probably as complex as that which is the voyage of Ulysses.   A very small part of acting is that which takes place on the stage!   They belong to a different race. Their crudity is that which was of the Roman, as compared with the Greek, in real life.      I can kind of guess its usage, but I want to know more about this grammar structure. Searching on Google mostly gave me the simple difference between "that" and "which", and some examples using "that which":        that which we call a rose (from "Romeo and Juliet")   that which we persist in doing      It is a pity that Google search does not direct me to any useful page about "that which".  Can someone explicate its grammar for me? How to compare two columns and find differences in Excel? I have two columns in Excel that I want to compare and find the differences between them.  Suppose:   Col A has 50 numbers, i.e. 0511234567 Col B has 100 numbers in the same format Handle application exit When would you call java's thread.run() instead of thread.start()? When would you call Java's thread.run() instead of thread.start()?