Ant Migration: How to deploy 'System Administrator' aka Admin.profile

I'm trying to migrate from one sandbox to a dev org.  An issue I'm currently having is that the field level permissions are not enabled for the System Administrator. (This org is only going to be used by myself, the sys admin)  I don't want to have to go through every object and set field level permissions.  On the original sandbox org the System Administrator has the permissions set correctly. Migration is performed using an unmanaged package. When I go into the package and select Add > Profile Settings I only see the custom profiles that I have created.  Reading around I need Admin.profile (which represents 'System Administrator'). How can I add this to the package?  Alternatively, is there a quick and easy way to set a lot of permissions for the System Administrator?


Agreement (after "each person") with 'has/have' in "each person 'has' their own ..."

In a  in Harvard Business Review, David Franke writes:     After all, each person has their own ego, personal goals, aspirations and agendas; there is always going to be a need for compromise, negotiation, and politicking.   Does the subject agree with the verb here?


Somehow, I accidentally deleted the shield folder after installing the  module, and now I can't disable it. I can't work on my site.   Can anyone please tell me how to disable the module?


If I have the following string:  < asd="testJava"><a href="/title/text/">BLA BLA <asddead>   How can I get only the string BLA BLA.  I tried split but it removes me all the chars, I need to remove only those from ">" to "<". Once I get the string, I'm gonna add it to an ArrayList with array.add(); Can someone help me with the code that removes the strings? Thank you!


Continuity of $f$ and the existence of $f'(x)$ given $\lim_{x\rightarrow 0} f'(x)$ exists.

Assume that $f: \mathbb{R} \rightarrow \mathbb{R}$ is continuous, and for all $x \neq 0,$ $f'(x)$ exists. If $\lim_{x\rightarrow 0} f'(x)$ exists, does it follow that $f'(0)$ exists? Prove or disprove.  Intuitively, it seems to me that it does does. That $f'(x)$ would not exist implies a point discontinuity, since $\lim_{x\rightarrow 0} f'(x)$ exists. Given that $f$ is continuous, $f$ is defined at $x.$ However, I'm not sure how to go about proving this (if I'm correct). Any hints? Thanks :)


Why did The Doctor start to regenerate at Lake Silencio?

When The Doctor is shot by the astronaut at Lake Silencio, he begins to regenerate, before being shot again and killed. But, at that point, he was      The Teselecta, with the real Doctor safely miniaturized inside.   So why does his body start to generate as normal, with a ton of regeneration energy streaming off of him? How did he accomplish that without actually being injured and regenerating?


Manipulator Icons Missing in the 3D Viewport (2.8)

I'm not sure if I toggled something and it made my manipulator icons disappear, but I can't find them when I would select an object or face, edge, or vertex. Help?


I accidentally removed the kernel from my Ubuntu 16.04 LTS while trying to update it. Now when I start it up, my Grub2 doesn't show Ubuntu as an option anymore. So I boot up the Live USB drive and try Ubuntu, and ran GParted to check out which partition the Ubuntu was installed in. I'm lost. Can someone help me recover the kernel?  Just in case, I am dual-booting Ubuntu alongside with Windows 10. Thank you.


A command for making a string of characters

How can I make a command (or is there an existing one?) which takes two arguments: 1) character type 2) N (count) and puts N number of characters side by side?  \newcommand{\foo}[2] {     % sample: \foo{c}{3} -> ccc }


How can I install Touchwiz apps on Cyanogenmod?

I would like to know how to install Touchwiz apps on Cyanogenmod 12.X.


If Gal(K,Q) is abelian then |Gal(K,Q)|=n

Let $f(x)\in  \mathbb Q[x]$ irreducible of degree $n$ and $K$ its splitting field over $\mathbb Q$. Prove that if $\operatorname{Gal}(K/\mathbb Q)$ is abelian, then $|\operatorname{Gal}(K/\mathbb Q)|=n$.  How can I prove this?


I was wondering what the proper LaTeX code would be to display something like this:    You don't have to include the mathematical symbols, what is important is the structure.


Expected number of tosses until winner in game with two players with two different coins

Two players each have a coin which gives heads with probability $0.7$   (player 1) and $0.3$ (player 2), respectively. Player 1 goes first,   and the players alternate until someone gets heads. What is the   expected number of tosses?   The  would model for each player separately the number of tosses until the first heads ($1.43$ and $3.33$), but I can't figure out the solution in this alternating case. I also tried an approach using Markov chains but to no avail. This is not my homework; I saw this problem online and couldn't figure out a solution.  Simulations place the expected number of tosses near $1.65$.   set.seed(142857)  res <- replicate(1e5, {   which.max(rbinom(100, 1, c(0.7, 0.3))) })  mean(res) [1] 1.6479


'The average person' or 'an average person'?

Which one is correct, or are both of them fine?    "It would take the average person 10 days to read this novel"    Or    "It would take an average person 10 days to read this novel"


Installation of Operating System Comparison with that on a Laptop

If I buy a laptop of Dell, HP, Lenovo or Sony I could install any (meant for Laptop) variant of Linux or Windows on any of these devices, quite easily, without having to risk bricking (completely useless) of the device. Also, for example, Ubuntu is able to find out drivers for most I/O devices on any laptop.  But when comes to Android, why is this process so complex and has a serious warning like things can go very wrong. Also, why is that many IO devices on mobile like a fingerprint reader, etc don't work when OS is installed?  Given that, mobile phone has much bigger userbase, I  expected it to have more support from the community. What is lacking? When Ubuntu can pulloff in most laptops, why can't Google (they too want every mobile to use latest Android version) try to do it?  Also, regarding the security updates why it has to be delivered by the phone manufacturers, instead of Google (like in the case of Windows or  Ubuntu on laptop). There are warnings that custom OS installation won't get any security updates on android (Why Google lets this happen? Why can't they do as Ubuntu does? Why don't they provide an Android that can be installed on any device with ease?).


First of all, I apologize for asking yet another question about the hypotheses of a problem in Hatcher, but the statement of one of his problems has stumped me again.  The problem is 1.3.15.  It reads as follows:     Let $p:\widetilde{X}\rightarrow X$ be a simply-connected covering space of $X$ and let $A\subseteq X$ be a path-connected, locally path-connected subspace, with $\widetilde{A}$ a path-component of $p^{-1}(A)$.  Show that $p:\widetilde{A}\rightarrow A$ is the covering space corresponding to the kernel of the map $\pi _1(A)\rightarrow \pi _1(X)$.   My question is:  why do we need to assume that $A$ is path-connected and locally path-connected?  Here is a sketch of the "proof" I have that does not make use of these hypotheses:  If we have a loop in $\widetilde{A}$, this loop is nulhomotopic in $\widetilde{X}$, and hence will be nulhomotpic when mapped down to $X$ via $p$.  On the other hand, if you go the other way and first map the loop in $\widetilde{A}$ down to $A$ via $p$, and then include this loop into $X$, by commutativity of the corresponding diagram I can't draw here, you get the same loop as the first way, which is a nulhomtopic loop.  This shows that $\pi _1[p]\left( \pi _1\left[ \widetilde{A}\right] \right)$ is contained in the kernel of the inclusion.  Convserly, if we have a loop in $A$ that is nulhomotpic in $X$, we can lift this to a loop in $\widetilde{X}$, and hence we can choose such a lift that is contained in $A'$.  Pushing this lift down via $p$, shows that the containment is actually equality.  Any idea where this proof goes wrong?  Thanks in advance!


How to change the output redirection of a running process?

I know how to redirect output and how to  in bash. Now, suppose I accidentally forgot to append the output redirection part to the command (e.g. 2>&1 or > /tmp/mystdout) and my background process is already running for a while, can I still change to where stdout and stderr are being written to? I really would like not to kill and restart the application.  To be more specific as asked by  in his comment, I would like to fiddle with it in these scenarios in specific:   wrong output file forgot to redirect stderr to stdout   or a combination of both  E.g. I have Apache running and I can see the file descriptors:  /proc/8019/fd/0 -> /dev/null /proc/8019/fd/1 -> /dev/null /proc/8019/fd/2 -> /var/log/apache2/error.log


Are there any car rentals in Europe that can be picked up in one country and dropped off in another?

I want to rent a car in Europe (London, Amsterdam, Dublin, Paris) and drop it off in another country.  How does the border crossing work with a rented car?


Data is persisting in table but after that page is not redirected to the specified destination.  Is redirection through ajax possible?  Please check the code and help me out  function foodLog(){     var getDate = $('#ddBox').val();     var stringDate = getDate;     var newdate = stringDate.split("/").reverse().join("-");     var data={          servings : $('#demo_vertical').val(),         calories : "12",         carbs : $('#carbs').text(),         carter : $('#carter').text(),         cholestral : $('#cholestral').text(),         date: newdate,           fiber : $('#fiber').text(),         foodItem: $('#foodItem').text(),         foodtype:$('#foodtype').text(),         totalFat : $('#totalFat').text(),         saturatedFat : $('#satFat').text(),         sugar : $('#sugar').text(),         protein: $('#protein').text(),         size :$('#size').text(),     };      $.ajax({           type : "POST",            contentType: "application/json; charset=utf-8",         url : "/fitbase/foodlog/create",         dataType: "text",         data : JSON.stringify(data),         success : function(response) {              if (response.redirect){                 console.log("Redirecting to page")                  window.location.href = '/';              }         },         error : function(e) {               alert("Object" +e);         }       });   };


A compact operator is completely continuous.

I have a question. If $X$ and $Y$ are Banach spaces, we have to prove that a compact linear operator is completely continuous.  A mapping $T \colon X \to Y$ is called completely continuous, if it maps a weakly convergent sequence in $X$ to a strongly convergent sequence in $Y$ , i.e., $x_n\underset{n\to +\infty}\rightharpoonup x$  implies $\lVert Tx_n-  Tx\rVert_Y\to 0$.


How to create a multiboot USB that allows persistence, non-persistence and data partition?

I want a complete guide to make a generic multiboot USB. Requests:  Multiple iso boots; Multiple persistent boots (unlimited size); One partition to data storage;  What I've tried:  only lets 1 persistent ISO.  limits your persistent storage to 4GB, no partition for data (still good) mkusb More than 4GB persistent storage, data partition, but single boot. Correct me if I'm wrong. What can be done so far is accepted.


How many 5 digit numbers are there such that sum of their digits is even.  First I thought when is the sum of 5 Digits is even.  Well there are a lot of possible ways. But obviously there are less ways that sum is odd. So I decided to subtract from  $$9*10^4$$ which is all 5 digit numbers,  the count of odd ones. But how do I get count of the all odd ones?   Any Idea? Or maybe a better solution?


Often in my papers I want to mention theorems in the introduction that are introduced in more detail and proved in a later section.  I'd like to include the statement of these theorems twice over, each time numbered as the theorem would naturally appear in its later section.  My current solution (using amsthm) is, e.g.  %(in the introduction) \newtheorem*{thm:associativity}{Theorem \ref{thm:associativity}} \begin{thm:associativity} Lorem ipsum ... \end{thm:associativity}  %(in a later section) \begin{thm} \label{thm:associativity} Lorem ipsum ... \end{thm}      Can anyone think of a cleaner solution?


Can I make double-sided printing the default?

In the "Print" sheet, there's a checkbox for double-sided printing, but it's off by default.  I often end up using twice as much paper as I want to because I forget to check this.  Is there a way to make this enabled by default?


Travelling to the Middle East through Vienna and Frankfurt from Canada, holding Canadian PR

I am a Canadian permanent resident / Iranian citizen. I am flying from Canada to the Middle East through Europe. I have 2 stops in Europe. The first one is in Frankfurt and the second one in Vienna. I do not hold a transit visa.  Will I be able to connect through these 2 airports to my destination without a need for a visa?


I am running Windows 7 Ultimate. I am trying to use windows Media player to stream to my PS3.  They are both on the same router and I can stream using another program. I go to media streaming options and try and select 'All Networks', because there I can see al my devices.  But as soon as I click ok to save the settings it closes the window and reverts back to 'Local Network' and here for some reason I cannot see any of my devices.  Any help would be appreciated


Often when we try to capture video from inside a bus or car with closed windows, it also captures some reflections appearing in the window. This spoils the video.  Is there any way to remove those reflections or can camera be adjusted to not to capture the reflections?


How to start a GUI software on a remote Linux PC via SSH

Sometimes I need to start XMBC media player or other GUI software a one of my PC (small Xubuntu PC used as a media center).  Usually I do this starting a X11vnc server on the remote PC via SSH and than connecting with an Xvnc client to the Xfce desktop.  Is there a way to start a GUI software on a remote Linux PC via SSH?  Thanks!


Serializing datetime.date to JSON with javascript Date

How can I serialize a python list contains datetime.date objects, to a JSON array of javascript Date objects? For example:  lst = [datetime.date(2013, 12, 30), datetime.date(2013, 12, 31)] print serialize(lst) # should print "[new Date(2013, 12, 30), new Date(2013, 12, 31)]"   I've tried json.dumps with a custom handler but the handler can only return serializable objects and not the actual JSON syntax.


Can a discrete variable take on multiple values, and thus truth values, simultaneously in the mathematical proof below or elsewhere?

Excerpt from a mathematical proof that serves to prove by contradiction, using the Well Ordered Principle, that predicate P(n) is true for all nonzero integers n.     If n belongs to set C i.e. n >= c, then P(n) is false.      This implies the contrapositive,      If P(n) is true, n has to not be a part of set C i.e n < c.   I know that the above implication is valid but why so? How should I know that n cannot take on 2 values simultaneously -- n being both >= c and < c, thus P(n) being both true and false simultaneously? (Yes I am thinking Dialetheism, maybe even quantum logic but I know nothing other than that quantum logic defies certain aspects of propositional logic.) What is the basis behind a predicate (or any proposition) being either true or false? Or would the simultaneity be possible just that I wouldn't be dealing with a proposition to begin with?  Also, if you don't mind, please do let me know if you feel my understanding of concepts and terminologies (i.e. discrete, predicate, contrapositive, assume) are erroneous. I am extremely new to discrete mathematics and could really use the extra guidance.  Thank you.


Linux stops responding when too much memory is consumed by running programs

I am using Lubuntu 20.04 on laptop with 4 GB of RAM. The problem is outlined in the title. I need to work with a few programs running simultaneously and one of them is known to be a memory hog. Gradually, all memory becomes consumed. I realise the system has every «right» to behave badly in this situation, but the fact it freezes completely with almost no warning signs is somewhat frustrating to say the least. I would expect some intensive swapping with the HD, general slowing down, issuing some critical warnings. Something! Not the case, it simply stops responding with swift resolve. How can it be battled? Any option would be better than hard resetting, would it?


"Is there something wrong?" or "Is there anything wrong?"

Is there any difference between "Is there something wrong?" and "Is there anything wrong?"? Also, you would say "He would like something to drink" but "Would you like anything to drink?", right? I'd appreciate if any one could explain the usage of "something" and "anything".


For q a power of an odd prime p, find a 2-Sylow subgroup of $GL_{2}(F_{q})$

what about the result for $GL_{3}(F_{q})$ and $GL_{4}(F_{q})$. I tried some small number cases but for arbitrary p and large power, examples are not found. There is a related problem for a specific small number case:


Is it possible that some condition is not necessary but yet sufficient?  As far as I know a sufficiency entails necessity. If something is not necessary then it can not be sufficient. Is that right?


Capitalizing family members' names (i.e. nouns, NOT proper nouns)

My daughter's English text book has a note which reads if you are directly talking to a person about the only person in your house, it can be capitalized.   For example:     "Mommy, have you seen my tab?"  "What would I do with it? Ask your Sister. She's fond of playing on it"   I want to confirm the capitalization of 'sister' here. This is new to me, actually!   And yes, it has nothing to do with emphasizing 'sister' that many may think the reason of capitalizing. Say--     "Yes, last night I asked Mommy about it, but then she gave a reluctant smile!"


Here are some tips for tagging questions. These guidelines will help you more accurately tag your questions, which in turn will help them get more attention and lead to better answers faster.     For more information, see "" in the .


how to create such pictures and text inside them

Could anyone help me, I need exactly this


The wifi on my asus x550ca laptop is not working. Ethernet works fine in ubuntu but wifi does not work. Wifi works just fine when I boot up windows 8.1 though. Is there any special driver I have to install?


Prove that 4 is not a primitive root modulo n, for $ n \ge 2$

I want to prove that 4 is not a primitive root modulo n, for $ n \ge  2$   I know how to prove it for any prime n, but I don't know how to prove it for numbers bigger than 2 which are not primes. Thank you for your help!


Prove that $f(x)$ is a constant function.

Here is the question:  Let f be a real valued continuous function on $[0, ∞)$. Suppose $f (x) = f (x^2)$ for all x ≥ 0, prove that f (x) is a constant function.  My attempt: Since f(x) is continuous, and $f(x^2)$ is continuous, then $f(x)-f(x^2)$ is continuous.   I will try to prove the contrapositive. If f(x) is not a constant function, then $f(x)$ does not equal $f(x^2)$  for all x.   Let $f(x)$ be of the form $a_n*x^n + .... +a_1*x + a_0$  Let $f(x^2)$ be of the form $a_n*x^(2n) + .... +a_1*x^2 + a_0$  In both cases, $a_j$ does not equal 0 for all j in ${1,...,n}$  So $g(x)=f(x)-f(x^2)$ doesnt equal 0 for some x. Also, $g(x)$ is continuous.  Now I'm stuck, and your help would be appreciated.   Also, we haven't yet covered derivatives in our class.


Will the loot on normal server be same as on the PTR

I was stacking loot boxes to open them all when I reach 100. Some days ago I logged on the PTR. I saw that I had 40 boxes (on normal server I got 47, so the copy of the data on PTR was 2-3 days old) and knowing that it won't affect my boxes on the normal server, I opened them and I was quite disappointed. Now I read this question:     I started wondering if it possible that the content of the loot boxes is generated at the time when the copy to PTR was made or the content is carried over from the normal server?


I'm getting a NoSuchMethodError error when running my Java program.  What's wrong and how do I fix it?


I tried uninstalling and loading factory settings. Whenever I open my Preferences -> Addons window, I get a blank screen. Help I cant use addons on this machine anymore. It happened after installing a supposedly 2.8 compatible addon.


How do I get Dark Characters in Lego Harry Potter?

I finished the 1st year and I didn't know how to get to the dark characters and unlock them and I have only learned 2 spells. Can I go back into the 1st year and get them if so how can I do that and where do I find the dark characters?


Does the construct "Go + to + noun phrase" always express going somewhere, a specific physical location?  For example:   Go to school Go to the movies Go to the nearest store They went to Paris We will go to my aunt's G̶o̶ ̶t̶o̶ ̶t̶h̶e̶ ̶b̶a̶c̶k̶ ̶o̶f̶ ̶t̶h̶e̶ ̶l̶i̶n̶e̶   Not taking into account expressions like go to hell and noun phrases that can't be looked up in a map.


May $y=e^x$ be satisfied with both $x$ and $y$ $\in$ $\mathbb{Z}^+$?

May $y=e^x$ be satisfied with both $x$ and $y$ be positive integers?  I think it is not possible as $e$ ,a transcendental number, when multiplied by itself would never result in rational number.  Am I right?


why am i getting a java.lang.NullPointerException after applying applyCoupon() method

this is my code..but I'm encountering an error of null pointer exception whenever I try to access private variables of "Category" class to "Product" class in the applyCoupon() method...  //main class      public class basicjava{          public static void main(String args[]){             Product product=new Product();             Category category=new Category();             category.setCategoryName("book");             product.applyCoupon();     }      }   //second class   public class Product {         private Category category;         Product(){          }          public Category getCategory() {             return category;         }          public void setCategory(Category category) {             this.category = category;         }          public void applyCoupon(){             if (category.getCategoryName()=="book") {                 System.out.println("book");             }             else {                 System.out.println("page");             }         }      }   //third class  public class Category {     private String categoryName;     Category(){      }      public String getCategoryName() {         return categoryName;     }      public void setCategoryName(String categoryName) {         this.categoryName = categoryName;     } }


"trying to overwrite '/usr/share/accounts/services/google-im.service', which is also in package account-plugin-google 0.12+15.04.20150415.1-0ubuntu2"

I'm trying to update and upgrade my kubuntu 15.04. After trying to install all upgrades, I got the following error message:  The following extra packages will be installed: kde-config-telepathy-accounts The following packages will be upgraded: kde-config-telepathy-accounts 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/122 kB of archives. After this operation, 1.948 kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 626049 files and directories currently installed.) Preparing to unpack .../kde-config-telepathy-accounts_15.04.0-0ubuntu1~ubuntu15.04~ppa1_amd64.deb ... Unpacking kde-config-telepathy-accounts (15.04.0-0ubuntu1~ubuntu15.04~ppa1) over (0.9.0-0ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/kde-config-telepathy-accounts_15.04.0-0ubuntu1~ubuntu15.04~ppa1_amd64.deb (--unpack): trying to overwrite '/usr/share/accounts/services/google-im.service', which is also in package account-plugin-google 0.12+15.04.20150415.1-0ubuntu2 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) E: Sub-process /usr/bin/dpkg returned an error code (1)   How can I fix this problem?


Restoring settings, apps, everything on Ubuntu 16.04

First of all, I'm sorry for duplicating but I don't want any issues.  Hi, I want to install Windows 10 without any dual boot on my laptop (HP 250 G5), beacuse I want to update my BIOS, and the only way to update it is to run an exe.   How can I backup everything, from softwares installed, packages, repositories to settings, wallpapers, etc; and restore it, after reinstalling Ubuntu 16.04.   I have an 1TB external HDD if that helps.


C++ getting inaccurate results from decimal multiplication

I am doing some decimal multiplication that requires very high accuracy. For some strange reason, my code is a little inaccurate. Why is this happening? Code: #include <iostream> #include <iomanip> using namespace std;  int main() {     long double x=100, y=0.8;     cout<<setprecision(100)<<x*y; }   Output: 80.00000000000000444089209850062616169452667236328125  As you can see the first few digits are correct but the last few digits are wrong. This code is really simple and I think it has no errors. Can anybody tell me what is wrong?


I need to save/compile a few times and a bunch of weird files (like foo.tex.Ak6664) appear in my Dropbox folder each time

I need to compile between two and four times before I see changes I make in the editor (TeXstudio) and each time I compile, a new .tex file is created with random letters and numbers at the end.   For example, If I create the file hello.tex and compile two to four times I'll get the file,   hello.tex.QU6664      then I make some small changes in the editor and compile two to four times I'll get the additional file,   hello.tex.Ak6664   After continuing to do this (each time compiling between two to four times before I see the changes I made), I now have many files that look like  hello.tex.QU6664, hello.tex.Ak6664, hello.tex.YX6664, hello.tex.sN6664, hello.tex.Ss6664, ...   A little bit of additional information (in case it's relevant): Everything was working fine up until a few days ago, i.e. only needed to compile once and only the file hello.tex was created. I still only get one .aux,  .synctex and .pdf files. I use TeXstudio to write and compile. I don't think it has anything to do with the bibliography (I tried removing bibliography altogether and still having the same problem).  How do I prevent these additional files from appearing and only compiling once like I used to? Has anyone had a similar problem?


Is $G^{(X, Y)} = (G^X)^Y?$ ($A^B$ just means that $B$ is mapped to $A$)

So I have a set $G=\{banana,potato\}$.To do $G^{(X,Y)}$ ($A^B$ just means that map $(x,y)$ to $G$),I map a Cartesian product $(x,y)$ to every element of $G$,which produce  $\{((x,y),banana),((x,y),potato)\}$.What if I have $(G^X)^Y$,is it correct if I do $x * y$ first ,then map them to $G$,which produce same element$?$ So is $G^{(X,Y)} = (G^X)^Y?$


In my game I using textmesh, but textmesh has a pixel problem even adjusting scale, character size and font size.  How to solve it?


How to prevent linebreak in the word ".NET"?

Sometimes, LaTeX breaks the word ".NET", leaving the dot on the previous line and putting "NET" on the next line. Can I force it to put all four characters either at the first line or at the second line?


Use Mathematical Induction to show that for any set $S$, If $\vert S\vert=n$, then $\vert\mathcal P(S)\vert=2^n$

Use Mathematical Induction to show that for any set $S$, If  $\vert S\vert = n$, then $\vert\mathcal P(S)\vert= 2^n$. How would I approach this question? What would the base case be when I apply it to the left hand side?


I am trying to extract all the email addresses from pages like this    I am using the following RegEX to extract all the emails.  \w+@\w*\.\w*   While this works at online Regex checkers, this isn't working with the import.io application where I am trying to use this to extract all emails.  Can someone kindly review the Regex and confirm if this one would work for extracting just email addresses from a block of text  Many thanks


How do I write a mathematical equation for ARIMA (2,1,0) x (0,2,2) period 12

I would appreciate if someone could help me write the mathematical equation for the seasonal ARIMA (2,1,0) x (0,2,2) period 12. I'm a little confused with how to go about this. I would prefer an equation involving $Y_t , e_t, θ$ and $Θ$.


semicolon separated email validation in javascript only

I know there are so many repeated questions in stack but i didn't found any help, so please help me. Email should be like this,  "abc@abc.com;abc@abc.com; abc@abc.com ; abc@abc.com ;abc@abc.com;"   I also need code for validating this email string  I found this one but it is looking like incomplete   Thanks In advance


How to correct for small p-value due to very large sample size

I am running into a problem where an independent variable, which should have no predictive power on the dependent variable based on domain knowledge, comes out with very small p-value because the sample size is very large(~100,000). If I only use < 5000 data points, then the p-value becomes large enough to support the prior that the variable is insignificant. However, I don't think tweaking the sample size to get to the desired conclusion is a good practice. Is there any procedure to adjust for small p-value simply due to huge sample size?


How to use anonymous type returned from a method

I have a simple database that I use, with an EF data model to work with.  My tables looks like this:  customers table   CustomerId CustomerName   Orders table   OrderId CustomerID FK OrderDate   I'm using a helper class to query my model and in this class I have the following query:  public static List<object> GetCustomerOrdersCount() {     using (OrdersDbEntities context = new OrdersDbEntities())     {         return context.Customers.Select(             c => new             {                 CustId = c.CustomerId,                 CustName = c.CustomerName,                 OrdersCount = c.Orders.Count             }).ToList<object>();     } }   The only return type I could use with this method is a List<object>   And finally my question is: how do I use the data received from this query?  The only way I can read the values is by reflection:  List<object> custs = Dal.GetCustomerOrdersCount();  foreach (var customer in custs) {    var properties = customer.GetType().GetProperties();     foreach (var data in properties)    {       var value = data.GetValue(custs[0], null);    } }   I wonder if there's a better way to do this.


Missed the MyOpenID demise; account lost forever?

Is there any way to get my old account + metadata back if I have lost an account ties to MyOpenID?


Let $a \geq 2$ be a positive integer such that $\log_{10}a$ is irrational. Then for any positive integer $N$ there exist infinitely many powers $a^n$ of $a$ whose decimal representation begins with $N$.   I am not sure how to use the fact that $a^n$ begins with $N$. How should I prove this?


Proving there are infinitely many pairs of square-full consecutive integers

So the question goes like this :  A positive integer $n$ is called square-full if for every prime $p$, $p \, | \, n$ implies $p^2 \, | \, n$, i.e. every prime power factor of $n$ occurs at least at the second power. This is equivalent to saying that there is no prime $p$ such that $p \, \| \, n$.  Show that there are infinitely many consecutive pairs of square-full numbers, i.e. infinitely many $n$ such that $n$ and $n+1$ are square-full.  The context of the question highly suggests that this can be proved by induction and it is the solution that I am looking for. It is not a homework, just something that caught my attention because I couldn't find any natural answer to it... I hope I'm not missing something trivial!  I've tried assuming $n_1, n_2, \dots, n_k$ were the first $n_k$ integers such that $n_i$ and $n_i+1$ are square-full, and then generate some polynomial in those $2k$ integers to get a new couple $n_{k+1}$, $n_{k+1} + 1$ but after a few natural tries I got nothing good out of it. Any ideas?


Examples of functions $f:\mathbb Z \to \mathbb Z:\;$ surective, injective, bijective?

I'm having a problem finding functions $f:Z \rightarrow Z$, such that:   $f$ is onto but not one-to-one, $f$ is one-to-one but not onto, $f$ is neither one-to-one or onto, $f$ is both one-to-one and onto (bijective).   Please help me thank you


Recently, I have dual booted Ubuntu on Windows 10 and now I tried to install numpy python module but is not getting installed. It is showing the following errors when I type help("modules"), I can see that numpy is not installed.  Please help me in solving this problem.  d  harani@chikki:~$ python -m pip install numpy  Collecting numpy   Downloading numpy-1.13.0-cp27-cp27mu-manylinux1_x86_64.whl (16.6MB)     100% |████████████████████████████████| 16.6MB 52kB/s  Installing collected packages: numpy Exception:  Traceback (most recent call last):    File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main     status = self.run(options, args)    File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 342, in run     prefix=options.prefix_path,    File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 784, in install     **kwargs   File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 851, in install     self.move_wheel_files(self.source_dir, root=root, prefix=prefix)    File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 1064, in move_wheel_files     isolated=self.isolated,    File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 345, in move_wheel_files     clobber(source, lib_dir, True)    File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 316, in clobber     ensure_dir(destdir)    File "/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/utils/__init__.py", line 83, in ensure_dir     os.makedirs(path)    File "/usr/lib/python2.7/os.py", line 157, in makedirs     mkdir(name, mode)  OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist- packages/numpy-1.13.0.dist-info'


Existence of Solutions to a $2-$Equation System of Congruences

Do there exist $a, b> 1$, such that  $$ a^4 \equiv 1 \pmod{b^2}$$ and $$ b^4 \equiv 1 \pmod{a^2}.$$


The Ehrenfest Paradox and Euclidian Assumptions

As a result of the Ehrenfest Paradox, the geometry of a rotating disc is non-Euclidean.  However, while reaching this conclusion, we assumed that "the radius doesn't undergo Lorentz contraction", because "the radius is always perpendicular to the velocity vector", which is equivalent to : "in a circle, the radius is always perpendicular to the tangent at that point."   But this is an Euclidean assumption (We have to use the parallel postulate to prove it.) Therefore it doesn't work in Non-Euclidean geometries, and we shouldn't be able to use it.


How to implement time traveling into a game?

I was wondering how to implement time travel into a game. Nothing super complex, just time-reversal like what's in Braid, where the user can rewind/fast forward time by 30 seconds or whatever.  I searched around the web a lot, but my results usually referred to using time as in like "it's 3:00" or a timer and such.  The only thing I could think of was using 2 arrays, one for the player's x position and the other for the player's y position, and then iterating through those arrays and placing the character at that position as they rewind/fast forward time. Could that work? If it would work, how large would the array have to be and how often should I store the player's x and y? If it doesn't work, what else could I try?  Thanks in advance!


I was trying Math.pow on 1.09 to calculate the square. I was getting 1.1881000000000002 as result and when I tried 1.09*1.09 it was also giving the same result.   Any idea why I am getting this?  Java env details- java version "1.6.0_38" Java(TM) SE Runtime Environment (build 1.6.0_38-b05) Java HotSpot(TM) 64-Bit Server VM (build 20.13-b02, mixed mode)  Any fixes??


Earth Science SE and Spanish SE have the same icon

The beta sites  and  have the same icon.  Icon of Earth Science:    Icon of Spanish:    They both have "ES" in a blue speech balloon.  Can they please have different icons?


Why object in terminal velocity doesnt stop

In termianl velocity,the force due to weight is equal to force due to air resistance so why doesnt the object stop. Of course I know it won't stop but I want an explination in terms of physics. As what I understand is when 2 forces in opposite directions are equal, there is no movement. Thanks


Is it right to say "Jack's father's mother's books"?

To mention possessions,  how many possessive nouns and possessives are we allowed to have in a sentence. Is it right to say?:     Jack's father's mother's brother's house


Why did they use the definite article in "the basketball court"?

I was reading  about Usain Bolt on CNN's website and there is this sentence.      With his height and weight, the world record holder would not look out of place on the basketball court.   Why is the definite article used in "the basketball court"? It could be any court and also the court was not mentioned before in the text.


How many iterations does it take to cover a range with random values?

Let's say I have a random number generator that generates integers uniformly from 0 to n-1 (where n is some positive integer). What is the expected number of iterations after which all the values 0..n-1 will be generated? I did some simulations and the results seem close to n*ln(n), but I wonder how to solve it mathematically.


What's the difference between these would an should, for example in these sentences?      Why would I open an account to insult you?      Why should I open an account to insult you?


What is interaction and measurement in QM?

My understanding of "measurement in quantum mechanics" was that any interaction causes the probability "fuzziness" to get "resolved" to a particular value for an observable. However, unlike that, a non-observed, non-interacting particle has some probability to be "anywhere" until "interaction" with some other particle.  If an unobserved particle has a probability to be anywhere, then doesn't it sort-of "exist" everywhere? Wouldn't it interact with something, somewhere? Therefore, a non-interacting particle cannot exist by definition unless it is the only particle in the universe. If this conclusion actually correct in quantum mechanics, or my idea of interacting probability distributions just plain wrong?


Showing that $g$ is a generator of $G$ implies $\phi(g)$ is a generator of $G'$.

Suppose $G,G'$ are groups and $\phi:G\to G'$ is an isomorphism. Show that $g$ is a generator of $G$ implies $\phi(g)$ is a generator of $G'$


Do you know other Android keypad commands (dialer codes)?

There a lots of differents keypad commands in Android. Which one do you know ?  Some of them are listed here :   *#*#checkin#*#*  Phones home to check for updates.  *#*#info#*#* - Enters a detailed phone information menu.  *#*#1472365#*#* : Access to the GPS config menu (useful for patching )


Sanitize backtick character in user input

I recently found out about shell injection and I have codes that executes user inputs in shell environment I need to sanitize the input so that there is no backticks or other malicious strings. Is it enough to use str_replace() and remove them?


Does there exist a natural number $n$ such that all numbers   $2n+1, 2n+3, 2n+5, ... , 2n+2015$ be nonprime?   Can somebody help to solve this problem? I guess that it doesn't exist, but I have no idea how to start proving it.


I have following function to print bits:  void printBits(unsigned int num) {    for(int bit=0;bit<(sizeof(unsigned int) * 8); bit++)    {       printf("%i ", num & 0x01);       num = num >> 1;    } }   and I want to set bit number 5 as follow:  unsigned int DataInMemory = 0x00000000; DataInMemory |= (1<<5);   the result of printBites function is:     0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0   it means that 1 << 5 set bit 6 not bit 5. Is it difference between bit position (indexes) and bit in programming nomenclature? How to set bit and print all bits in number using C?


I am new to wordpress development. I am familiar with joomla's ins-and-out working mechanish, now i want to contribute or say learn wordpress. I found that every thing in wordpress is done through plugin and its hooks and filters. But before diving into writing some cool stuffs, i want to know how hooks registered in plugin executes ? which design patterns is implemented in wordpress plugin environment ?  OK, lets take  example.  add_action( 'wp_head', 'my_plg_function' ); function my_plg_function() {   echo 'I am called'; }     In above code, plugin's function is registered in wp_head hook, right ? Now what exactly does add_action function does and when wp_head hook runs, how my plugins function called ? Again I am new to this, i am trying to learn and create cool stuffs in wordpress. Any helps will be appreciated. Thanks


So... me and my friend have been arguing ever since Avengers: Age of Ultron was released.  He thinks that Vision is literally just Jarvis in a new body. But I disagree. I think that Vision is an entirely new entity. ...let me walk through this  So Ultron tries to make a perfect synthetic body for himself and uploads a good bit of himself into the body... then Tony and Bruce get ahold of it and try to upload Jarvis into it (they start to but it's ruined by Quicksilver). Then Thor (after seeing  visions of the future and the world being destroyed by the mind stone) brings Vision to life with an electric hammer bash.  The Vision then wakes up and is confused about where he is. After a brief fight scene he is changing his appearance...and talking.  From the :     Steve Rogers: Why does your "vision" sound like JARVIS?   Tony Stark: We... we reconfigured JARVIS' matrix to create something new.   Steve Rogers: I think I've had my fill of new.   Vision: You think I'm a child of Ultron?   Steve Rogers: You're not?   Vision: I'm not Ultron. I'm not JARVIS. I am... I am.     So... in that last line Vision stated that he is NOT Jarvis. Yet my friend still states that Jarvis is the Vision. And I have argued back as well as I can but he won't budge. But I feel that fact is...that Vision (although he has some ofJarvis that he was made up of) is an new entity and is not "controlled" by Jarvis (like the way Jarvis can control the Iron Man suits).  This is a very raging argument and im slowly being beat down by a lot of nieve people agreeing with him. And I would appreciate a lot of feedback on the matter below. So is Jarvis the Vision?


Using of Indian passport and other national passport

What if I I get the visit visa to UAE and use my Indian passport to travel out of India and enter UAE. From  UAE I will use my Portuguese passport going out of UAE and entering UK. 1) will I be allowed to exit India and enter UAE after obtaining Portuguese passport as IWill have 2 passports in my hand? 2) will UAE immigration allow me to enter on Indian passport and use Portuguese passport which will not have entry stamp to go out of UAE?


In C, what is the best practice for handling errors in your own functions?

Say I call the function openFile in my main function: int main() {     FILE *fptr;     char *file_name = "myfile.txt";     fptr = openFile(file_name, 'r');     // ... }  FILE *openFile(char *name, char *mode) {     FILE *file = fopen(name, mode);     if (file == NULL) {         fprintf(stderr, "Error opening file.\n");         exit(1);     }     printf("Opened file.\n");     return file; }  If fopen encounters an error and returns NULL, would it be better practice to handle the error in that if block as shown in the code above, or would it be better to return (NULL) like fopen does and then handle the error upstream in my main function? Or is there another method that is better for handling errors?


Ways to Install and uninstall programs in deb format

What are ways to install/uninstall programs in Ubuntu. I will mention only .deb since it is the official package format and for example installing a .sh or .run program can typically be as simple as (In latest Ubuntu) ./program.sh or sh program.run.  Also note that am talking about HOW to install packages IN Ubuntu, not talking about downloading a new installer (Like some Super Cow Software Center Duke Nukem version from sourceforge or something). Only tools that already come in the repositories (In any of the 4 standard ones, main, universe, restricted or multiverse).  Take into consideration all GUI and terminal ways of doing it, with basic format of doing the installation. With this in mind I am talking for example about Software Center, synaptic, apt-get, aptitude, dpkg, etc... a way to show all tools that are available in Ubuntu to install deb packages.  NOTE - Forgot, this should be Community Wiki since it will have all ways a user can install/uninstall something. Like a friendly guide on doing that.  UPDATED question to remove the confusion some are having about sh/run files.


Changing Style of WMS dynamically in Leaflet?

I have a Leaflet WMS Layer  layer = new L.tileLayer.wms('https://{s}.url.com/wms?', {     layers: 'Workspace:Layer',     format: 'image/png',     version: '1.3.0',     transparent: true,     styles: 'style1', });   If I choose 'style2', it works as expected, but I want to change it dynamically with a select box. I tried the following but it does not work:  <select id="styles">     <option selected="selected" onselect="layer.styles='style1';">Style1</option>     <option onselect="layer.styles='style2';">Style2</option> </select>   I also tried with layer.options.styles=''


Find all continuous functions satisfying $\int_0^xf=(f(x))^2+C$ for some constant $C \neq 0$.

Find all continuous functions $f$ satisfying   $$\int_0^xf=(f(x))^2+C$$ for some constant $C \neq 0$, assuming that $f$ has at most one $0$.  I have a question about the solution to this problem. It says that   Clearly $f^2$ is differentiable everywhere, its derivative at $x$ is $f(x)$ (I'm assuming that this is because the left hand side is differentiable, the right hand side must be differentiable as well). So $f$ is differentiable at $x$ whenever $f(x) \neq 0$, and  $$f(x)=2f(x)f'(x),$$ so $f'(x) = \frac{1}{2}$ at such points. Thus, $f= \frac{1}{2}x+b$ for some $b$ on any interval where it is non-zero; if $f$ has a zero, this gives two possible solutions, with two possible values of $b$, but since $f$ is assumed continuous, they must be the same. So we need $$\int_0^x(\frac{1}{2}t+b)dt=(\frac{1}{2}x+b)^2+C$$  so we must have $b=\sqrt{-C}$ or $-\sqrt{-C}$, leading to two solutions for $C \lt 0$.  I don't understand the bolded statements. First, how does the differentiability of $f^2$ guarantee that $f$ is differentiable, and why only at $x$ where $f(x) \neq 0$?  Next, why are there two possible solutions if $f$ has a zero, but since $f$ is continuous they must be the same?  Finally, does the last statement mean that if $C \gt 0$, then there is no solution, since we're restricted to real numbers here?  I would appreciate it if anyone answers my questions.


Intuitive proof of $\sum_{k=1}^{n} \binom{n}{k} k^{k-1} (n-k)^{n-k} = n^n$

Is there an intuitive way, though I am not sure how to find a conceptual proof either, to establish the following identity: $$\sum_{k=1}^{n} \binom{n}{k} k^{k-1} (n-k)^{n-k} = n^n$$ for all natural numbers.  I am thinking about binomial formula $$\sum_{k=0}^n\binom nk x^{n-k}y^k=(x+y)^n$$ but I'm not sure how to use it.  I find this problem tantalizing because it looks as if there should be some sort of intuitive way so that is why I share it here. I am looking for an answer like  if possible. Can you find one?


I can't figure out what the difference between thru and through is. I'm working on a text for a website. I described some process and used this sentence:     [...] when guiding the user through the order process.   Is that correct, or should I instead use the following sentence?     [...] when guiding the user thru the order process.


Does "numeric" abbreviation eg i18n have a name?

In the computer programming context, several long words are commonly abbreviated using the formula first letter, number of letters between, last letter.  Eg internationalization --> i18n  Is there a name for this technique of abbreviation?  Is there a name for the abbreviation so created?


For a multiclassed cleric/wizard, can cleric class features be applied to my wizard spells, and vice versa?

I play a D&D 5e campaign. My Tempest Cleric is about to take his first multi-class dip into Wizard.   Am I able to use my Cleric class and domain features on my Wizard spells, and vice-versa? Both at the same time?  Examples:   When I cast Shocking Grasp (Wizard spell), can I use my Channel Divinity: Destructive Wrath to maximize the lightning damage and then use Thunderbolt Strike (another domain feature) to cause the target to be pushed back 10 feet? When I roll damage on the weapon attack made for Booming Blade (Wizard spell), can I also add the 1d8 or 2d8 Thunder damage from my domain’s Divine Strike feature to the total? If I study the School of Abjuration, is my Arcane Ward replenished if I cast Freedom of Movement (Cleric abjuration spell, not on Wizard spell list)? If I study the School of Evocation, can I cast Shatter (Cleric domain spell) and apply both Sculp Spell (Wizard School of Evocation feature) to avoid hitting my allies in the blast radius and ALSO use Channel Divinity: Destructive Wrath to maximize the thunder damage?


I know that thermally excited materials "act as atomic oscillators" which can oscillate in a continuous range of frequencies, producing light in said frequencies. But in my searches, the nature of the oscillators isn't clear.  Are these quantum harmonic oscillators (i.e. each atom is a quantum oscillator)? If so, how is the frequency distribution continuous? And why is the energy of quantum oscillation related at all to the thermal energy distribution (Boltzmann distribution)?  In summary, what's the exact mechanism by which blackbody radiation is produced?  side question: I've read about the Bose-Einstein distribution for the blackbody spectrum, but don't understand much. How does that fit in here?


I'm trying to model an , but it's not going so well when it comes to the magazine of the weapon.   Next to the magazine is a mesh. I want to cut holes in the mag with that mesh. But the magazine just goes invisible or connects with the mesh when trying to execute the Boolean Modifier. I have tested to invert the normals and some other stuff, but it isn't working.


Rendered image has black outlines from imported image

Second day of using Blender, I was trying to make a flower but the rendered object has a black base from the image outline. Here is the before and after image.  Any suggestions?


Proving and identity with the normalized sine function

I have no idea where to begin with proving the following  $$ \prod\limits_{i=1}^\infty \cos\left(\dfrac{t}{2^i}\right) = \dfrac{\sin( t)}{t}$$ I couldn't do it by expanding the cosine and no trigonometric identities appeared helpful.   Maybe someone has encountered that before? Hints welcome!


What is wrong with this proof that x = |x|

First, take $x$. $x=x^1$. $1=\frac22$, so $x^1 = x^\frac22 = (\sqrt{x})^2 = |x|$. Therefore $x = |x|$. I checked my proof and think that all my other steps are valid. I think my mistake has to do with $x^\frac22 = (\sqrt{x})^2$ So, if there is anything wrong with this step, what is it?


You have 6 red balls, 6 blue, and 6 white. You randomly select a sample of 3 balls without replacement. The balls, save for the color, are indistinguishable from each other. What are the odds that your sample contains at least a ball from each color?  I thought about finding the chance that the sample will not contain at least one color and subtracting that from one:  $$P(\text{sample is missing at least one color})=P(\text{sample is missing one color})+P(\text{sample is missing two colors}) $$  Essentially the second probability statement on the right hand side is the probability that all the balls in the sample are the same color. The case where the sample does not contain three colors doesn't make sense, so I didn't include it. $$=\binom{3}{1} \left[\left(\frac{12}{18}\right) \cdot \left(\frac{11}{17}\right) \cdot\left(\frac{10}{16}\right)\right]+\binom{3}{2}\left[\left(\frac{6}{18}\right) \cdot \left(\frac{5}{17}\right) \cdot\left(\frac{4}{16}\right)\right] \approx 0.882353$$  When all of this is done, we simply subtract the probability from one to get $0.117647$.  What am I doing wrong?


At school I asked the question and I kept wondering "Can fractions or decimals be odd or even?"


I'm a java student who wants to get a better understanding of the big-O efficiency.   For this problem, it is assumed that doIt() has an efficiency of O(n).       j=n;   while (j>0) {      doIt();      j = j / 2;  }  i = 1;  while (i < n) {  i = i * 2;  doIt();  }   What would be the big o efficiency of this algorithm, and why would it be that efficiency (such as O(n logn), O(n^2), O(n^2 logn), etc.).


Why does a monopole not radiate energy in electodynamics?

Why there is no monopole radiation in Electromagnetic field? I read somewhere that it is impossible because it violates charge conservation. I don't understand how? How charge conservation gets violated here?


How to Truncate a multiline column in a SharePoint List 2013

I am relatively new to SharePoint and have a few questions.  I was wondering if someone could help me with some custom settings in a SharePoint list.  I have a column that is set to a "Multiple lines of text".  I am wanting to find a way to have it only show the first line of text and then have a link or something similar to click and show all the text only when it is needed.  This will make the list look cleaner and have the rows not be so spread out.    I have been researching online and can mostly only find results for 2007/2010.  I am working in SharePoint 2013 and I have also downloaded SharePoint Designer.   I would appreciate any suggestions or a direction to be pointed in.   Thanks!


LWCs cause 10-20 seconds of lag populating a small amount of elements on the page

I have an LWC template like this: <input list="counties"> <datalist id="counties">   <template for:each={counties} for:item="county">     <option key={county.Id}>{county.Name}</option>   </template> </datalist>  I load the county records from the server. There are about 3,000 of them. When the counties are loaded and the template updates, it hangs the entire page for 10-20 seconds. This is a fairly small amount of elements to insert into the DOM.  Why are LWCs so slow when updating the DOM? What about them under the hood makes this such an inefficient operation? How can I speed this up, so that my autocomplete input can be populated by accurate information without hanging the entire page for 20 seconds?


Single word for a person who want to learn new things

What would you call a person who always want to learn new things (new skills/informations)


What is a good book for someone who has never studied philosophy before?

I've never studied philosophy, nor have I previously been interested in it, but I feel like I need to esablish a philosophical foundation on which my personal stance on various political and perhaps even spiritual ideologies will be allowed to develop. My social ineptitude (due to chronic mental illness) has prevented me from being exposed to many important aspects of life and I believe philosophy could help me with that. Therefore I've come here to search for book recommendations. I am looking for a book that serves well for someone who has never studied philosophy before. If you feel like you need to know more speific information about me in order to recommend a book please ask me questions and I'll try to answer them.


when I type "sudo apt-get update" I get the error?

E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/ 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 have a little bash script and have $file and $file2 variable. This is file and I want to get first 3 letters of this file name. And I want to compare them:  I tried:  curfile=$(basename $file)   curfilefirst3=${curfile:0:3} curfile2=$(basename $file2) curfile2first3=${curfile2:0:3}  if ((curfilefirst3 == curfile2first3 )); then  ....   But I think have  problems, how can I fix?  Thank you.


Regular expression to match +-*/ any of these characters just once. In Java

I am trying to make a calculator in android with Java. Where I need to split the strings, to separate the digits and operands. Then, I will do the necessary operations with the digits. I need a regular expression to get it done. I have tried this:  String[] numbers = screenText.split("[+\-/*]";   I am getting an error: Illegal character range.


How to add a page/post to the 'primary' nav menu?

In the wordpress, how can i add a page/post in the 'primary' nav menu ? By code ? All i know from admin you can add it via appearance > menu.


Which tube size to prefer if several options apply?

I have 40-622 (a.k.a. 28x1.5") tires, and  offers  two different sizes of tubes - their models "17" and "19" - as applicable for that tire size.  Ok, either one would surely fit well. But apart from weight difference (150 vs. 220 grams), is there any reason to prefer one over another? Is it better to have as small & light tube as possible? Or perhaps a bit larger and heavier one would be more durable, as it wouldn't be stretched as much? Err on which side?


IF statement being run even though expression is false

I am creating an Android Studios tasklist app. For some reason, an IF statement is being called even though the expression is false, and thus producing errors at runtime. Code is provided below:   if (taskArray5.get(0).equals( "Goal Time Not Specified") ) {      Log.d("hello", taskArray5.get(0).getClass().toString());     Log.d("hello", taskArray5.get(0));     String[] localTimeList = localTime.split(":");     String previouslySetTime = taskArray5.get(0).substring(0, taskArray5.get(0).length() - 5);     String[] previouslySetTimeList = previouslySetTime.split(":");     Integer localTimeHours = Integer.parseInt(localTimeList[0]);     Integer localTimeMinutes = Integer.parseInt(localTimeList[1]);     Integer localTimeSeconds = Integer.parseInt(localTimeList[2]);     char AMORPM = taskArray5.get(0).charAt(taskArray5.get(0).length() - 4);     Integer previouslySetTimeHours;     if (AMORPM == 'A') {         previouslySetTimeHours = Integer.parseInt(previouslySetTimeList[0]);     } else {             previouslySetTimeHours = Integer.parseInt(previouslySetTimeList[0]) + 12;     }   I used Log.d to confirm that taskArray5.get(0) is a String that has the specific value "Goal Time Not Specified." In addition, using the equals() function also did not solve the problem. What am I doing wrong? Any help is appreciated.


I would like to have it configured so that a single click opens my folders and documents from the dash. Currently, when I single click a document or folder, it opens up some in-dash preview dialog box, forcing me to either click "open in folder" or to double-click the object to open it.  Is there any way to disable the preview option? Running Ubuntu 14.04 64-bit w/ Unity 7.  Thanks!


Allowing users to edit only their page and nobody else's

We currently have about 50 pages, each of which I want a user (eg, bob, rob, smith) to be able to edit only 1 page.  For example, bob & smith each have their own page.  I do not want bob to be able to edit smith's page.  I want bob to ONLY be able to edit bob's page.  I don't care if he can see other pages. Looking through the user roles, I don't see a way to currently to do this- I only see how to allow restrict access on a global scale.  Are their any plugins to help restrict edit access per user, or roles restricted to editing specific pages and I can just add 1 user per role?  Or was there a way to do this with default settings I missed.


I am a little confused, I learned that Strings are objects, therefore to compare them  you should use String#equals.  My question is: if I have a String as an attribute, is it an object?  To clarify my question:  Class A {     public String nom;      A(nom) {         this.nom = nom;     }  }   ... and in the main method:   A a = new A("Sara");  A b = new A("Youssef");  A c = new A("Sara");   a.nom == b.nom; ==> false  a.nom == c.nom; ==> true   Therefore, is the comparison of Strings' values more like c++, i.e. not about their references?


Using particle physics math model to simulate simplest life

We still don't know many thing going inside living cells so I'm wondering whether it's possible to create a math/computer model operating on basic known particles (or higher level composite particles to simplify the process), atom/formula bonds in order to simulate simplest life forming (given all the  conditions  for it to form) and study processes going inside it. I see it as a vector model iterating over and over, applying forces to particles given their current state. After an unimaginably big number of iterations we would have simplest life form ready for tick by tick analysis, so we can understand biological processes better.  So the question is - is our understanding of particle physics capable of simulating an environment for life to evolve?  This question was already  around six years ago, but I'm sure by now, there were many new researches and discoveries made, so I hope to get new answers.


Pythonic way of ensuring that input argument to a function is int/str?

Basically the argument that foo() expects should be passed as int, but there is a possibility that someone will pass it as str (which is also valid if str can be converted to int). This is what I came up with:  def foo(input_argument):     func_name = 'foo'      if type(input_argument) is not int or type(input_argument) is not str:         print(             '%s: "input_argument" expects int/str, not %s' % (                 func_name,                 type(input_argument)             )         )         return None     try:         input_argument= int(input_argument)     except:         print(             '%s: "input_argument" expects number in str/int format' % func_name         )         return None   Is there something that is built-in which could simplify this in a more pythonic way?  Edit: boolean type should be treated as invalid


Simple, curious, yes/no question: Can you put a resistor in backwards?


I have a 3-by-3 matrix. I want to label the columns as R, E, and D for instance. How can I achieve this in LaTeX? I am using $$ ... $$ environment for writing this matrix.


Calculating $\int_{-\infty}^{\infty}\frac{\sin(ax)}{x}\, dx$ using complex analysis

I am going over my complex analysis lecture notes and there is an example about calculating $$\int_{-\infty}^{\infty}\frac{\sin(ax)}{x}\, dx$$ that I don't understand.  The solution in the notes starts like this:  Denote $C$ as the path from$-R$ to $R$ on the $x$-axis (where $R>0$ is real). Denote $C_{R}$ as the semi-circle (anti-clockwise) that goes from $R$ to $-R$.  $$\int_{-R}^{R}\frac{\sin(az)}{z}\, dz=\int_{C}\frac{\sin(az)}{z}\, dz=\int_{C}\frac{e^{aiz}-e^{-aiz}}{2iz}=\frac{1}{2i}(\int_{C}\frac{e^{iaz}}{z}\, dz-\int_{C}\frac{e^{-aiz}}{z}\, dz)$$ Assume $a>0$:  $$e^{iaz}=e^{iaRe^{i\theta}}=e^{iaR\cos(\theta)}-e^{-iaR\sin(\theta)}$$  Thus $$\int_{C}\frac{e^{iaz}}{z}\, dz+\int_{C_{R}}\frac{e^{iaz}}{z}\, dz=2\pi iRes_{z=0}\left(\frac{e^{iaz}}{z}\right)=2\pi i$$  The next part claims that for $R\to\infty$:$\int_{C}\frac{e^{iaz}}{z}\, dz=2\pi i$ (I understand this part)  From here don't understand what going on in the notes, the sentences claim that $$\int_{C}\frac{e^{-iaz}}{z}\, dz+\int_{C_{R}}\frac{-e^{iaz}}{z}\, dz=0$$  but I think that in a similar manner that sum is $2\pi iRes_{z=0}(\frac{e^{-iaz}}{z})$ which I believe to be $2\pi i\neq0$.  The next two sentences afterward say that $\lim_{R\to\infty}\int_{C}\frac{\sin(az)}{z}\, dz=\frac{1}{2i}\cdot2\pi i=\pi$ and that $$\int_{-\infty}^{\infty}\frac{\sin(ax)}{x}\, dx=\pi$$  Can someone please help me understand the part about the sum $$\int_{C}\frac{e^{-iaz}}{z}\, dz+\int_{C_{R}}\frac{-e^{iaz}}{z}\, dz$$ ? I believe that there is a mistake here, I would also appreciate help understanding the last two claims: $$\lim_{R\to\infty}\int_{C}\frac{\sin(az)}{z}\, dz=\pi$$ and that $$\int_{-\infty}^{\infty}\frac{\sin(ax)}{x}\, dx=\pi$$  EDIT: I read this couple more times, I now think that there is problem with the part after "assume $a>0$": $$e^{iaz}=e^{iaRe^{i\theta}}=e^{iaR\cos(\theta)}-e^{-iaR\sin(\theta)}$$  I think that the minus at the end should be $\cdot$ and that this is a typo in the notes, but I also think there should not be an $i$ in $e^{-iaR\sin(\theta)}$


Why am I only getting grayscales / monotones when applying colors in Adobe Illustrator?

When I try to change the color after tracing a JPEG image in Illustrator and expanding it, it becomes gray. I have tried lots of color changes but the result is always the same.   Why can't I change the color to anything other than gray, on an image I've traced in Adobe Illustrator?  How can I change the traced image's color?


class BadFoodException extends Exception{     //Do something }  class Reader {     private String food1;     private String food2;     public static void main(String args[])     {         Reader m = new Reader(args);         for (int i=0; i<args.length; i++){             try             {             m.checkfood(args[i]);             }             catch(BadFoodException e){System.out.println(args[i]+ " caught");}          }     }     private Reader(String [] args){         food1=args[0];         food2=args[1];     }     void checkfood(String food) throws BadFoodException     {   if( food == "banana")         throw new BadFoodException();         System.out.println(food + " passed through.");     }  }   I am passing two foods- banana and mango through command line. The checkfood method should throw an exception when the food is banana.. and the mango should pass through. However both are passing through instead? why?


Determinant of a special $n\times n$ matrix

Compute the determinant of the nun matrix: $$ \begin{pmatrix} 2 &  1  & \ldots & 1 \\ 1  &  2 & \ldots & 1\\ \vdots & \vdots & \ddots & \vdots\\ 1  &   1       &\ldots & 2 \end{pmatrix} $$  For $n=2$, I have$$ \begin{pmatrix} 2 &  1   \\ 1  &  2  \end{pmatrix} $$   Then $det = 3$.  For $n=3$, we have $$ \begin{pmatrix} 2 &  1 & 1\\ 1  &  2 & 1\\ 1 & 1 & 2 \\ \end{pmatrix} $$  Then $det = 4$.  For $n=4$ again we have  $$ \begin{pmatrix} 2 &  1  & 1 & 1 \\ 1  &  2 & 1 & 1\\ 1 & 1 & 2 & 1\\ 1  &   1  & 1 & 2 \end{pmatrix} $$ Then $det = 5$  How can I prove that the determinant of nun matrix is $n+1$.


How to make Google Chrome honor my Windows DPI setting?

Google Chrome doesn't seem to respect my DPI setting in Windows. I run at 150 DPI, but Chrome ignores that, meaning that images and text are teeeeeeny tiny.  I hit:   Ctrl + + Ctrl + +   to zoom in. Unfortunately every new tab, or new window, defaults to the 100% teeny tiny zoom level.  Update: It's also important to note that you cannot click buttons in flash (e.g. YouTube videos), because Chrome mis-handles mouse coordinates. (Fixed 6.0.472.55)  Is it possible for either:   Chrome to respect my Windows dpi setting? Chrome to remember my zoom preference?   Checked version: 4.1.249.1045    Half fixed    While Chome still doesn't honor the Windows DPI setting, it does now remember your zoom level.  Version: 5.0.375.55    Five-Eighths Fixed    While Chrome still doesn't honor the Windows DPI setting, it does now offer a default "page zoom" option:    Unfortunately there is no zoom level that matches my current DPI setting: 136% (131dpi).  Version: 10.0.648.133  Zoom flag  I tried scoducks' suggestion of the new hidden dpi flag. It's truly awful. It seems to cause Chrome to simply re-scale the final rendered Window; causing text to become blurry (rather than sharper):


I've had strange output on answer submit :)  The message was :     Oh tin of pink meat / I ponder what you may be / Snout or ear or feet?   Screenshot:        Funny :)  Why?


Understanding proof of unique factorization of polynomial in Linear Algebra Done Right

I am reading "Linear Algebra Done Right". Right now I am stuck with the uniqueness part of Corollary 4.8, Existence and Uniqueness polynomial factorisation in the form of $p(z) = c(z-\lambda_1)(z-\lambda_2)...(z-\lambda_m)$.  It is stated that if there are two factorisations of $p$, $(z-\lambda_1)(z-\lambda_2)...(z-\lambda_m) =(z-\tau_1)(z-\tau_2)...(z-\tau_m)$. We can divide both sides by $(z-\lambda_1)$ as one of the $\tau$ must equal $\lambda_1$.  Here comes the confusing part for me: After division, we get $(z-\lambda_2)...(z-\lambda_m) = (z-\tau_2)...(z-\tau_m)$ for all $z \in C$ except for possibly $z=\lambda_1$. Actually the equation above must hold for all $z \in C$ because otherwise by subtracting the right side from the left side we would get a nonzero polynomial that has infinitely many roots.  I understand a finite polynomial can't have infinitely many roots, but need elaboration on bolded part, like why it suddenly(?) holds for $z=\lambda_1$, and how comes the theoretical nonzero polynomial has infinitely many roots.


#!/bin/bash  bonus=0  read -p "Please enter your commission amount(enter a integer value only): " comm  if [$comm -le 200]; then      echo "No bonus applicable" elif [$comm -le 300]; then     bonus=50     echo "The bonus applicable is $bonus dollars" else     bonus=100     echo "The bonus applicable is $bonus dollars" fi  exit 0  Whenever I run my codes and reach the second line of the code where I include my commission input, it will state that [199: command not found] and 199 is the integer that I decided to input to review my codes. I seek anyone's kind assistance please.


How can I achieve glow effects similar to those in  WoW?

I've recently implemented a glow effect using a gaussian filter and could not get the full effect I was wanting. I'm curious to know if how certain glow effects are done in WoW. Like this image:  Around the sword is a really nice glow effect. How might this be done? Also, sometimes in WoW you see these glow effects take a life of there own. Like the purple glow in this pic:  Are these accomplished with particle effects? Are there any good resources/tutorials that could help with someone to learn how to do these effects?


Two spacecraft pilots travel at light speed, meet back on Earth in different era due to time dilation

I've been looking for the name of a sci-fi romance book about space travel but haven't been successful so far. I came across it a few years ago, read the plot on its back cover but didn't read the book. It is about two spacecraft pilots, a man and a woman, who travelled at light speed (or maybe FTL, I can't remember) in separate ships. Every time they return to Earth, centuries have passed on Earth because of time dilation. They meet each other for a few times on Earth in different eras, but don't know when, if ever, they will meet again. I don't know how it ends.   If anyone knows which book I'm talking about, could you please tell me the name? Thanks a lot!


Why is it that  can last for decades and not spoil like other foods? Is there any chemical in honey which gives rise to this amazing feat?


For the past few days I've noticed that some icons in   the Hot Network Questions on the right side of my browser window, and the "A list of all Stack Exchange sites" dropdown in the menu bar   have been incorrect, and that they are incorrect by exactly one index in the alphabetical list of the URLs (not the names) of the SE sites.  Here's one example of problem #1 from a few minutes ago on money.:     The top link is to a question on workplace., but the icon is for worldbuilding.. The second icon is fine. The third link is to a question on unix., but the icon is for ux..  The fourth icon is fine. The last link is to a question on money., but the icon is for movies..   As for problem #2, right now on stackoverflow.com here's what part of my dropdown looks like:    I don't know what all of these icons are, but I don't think any of them are correct.  The icon for tex. is from tor., workplace.'s is from worldbuilding. again, tor.'s is from travel., travel.'s is from tridion., tridion.'s is from ukrainian., etc.  Note that this does not always happen.  Sometimes all the icons are fine both in Hot Network Questions and in the dropdown.  Sometimes only some are wrong.  Also note that I'm behind a firewall that occasionally causes problems when loading things over HTTPS.  But I've not seen this particular problem behind this firewall before.


Why “man” not “men” in “Many a brave man”?

I’m reading Black Beauty and there is a sentence there which starts like this:     Many a brave man went down, many a horse fell,   Why man here? Why not men?


how do you show that the average number of periods is 1/(1-a)

we have that the probability of winning a game is b and if you win you keep playing until you loose. And it says that the average number of consecutives wins is $1/(1-b)$, suppose infinite periods.   Well what the way i was trying to solve this is using a geometric sum, because the answer looks a little bit like a geometric sum, but i need some help.  As allways thank you very much.


How do you replicate the grain effect as in this App Store graphic on Illustrator?

Hi! I'm new to Stack Exchange. I've been meaning to replicate this (what I can describe as) static-ish grain fill in my illustrator graphics. I've tried everything from sprinkled grain, applying a halftone fill over even blending some textured images on my artwork, but I can't seem to suitably achieve this.  Thanks for the help!


How can I use WHERE id IN (@a_varchar_variable) in SQL Server stored procedures?

In my table id column's datatype is int.  And I have a list of items' ids to be selected.  So, here is some piece of my code:  DECLARE @user_list SELECT @user_list=( SELECT user_list FROM sometable WHERE rowNum=xxx ); SELECT * FROM anotherTable WHERE user_id IN(@user_list)   but it doesn't work, the error msg like :      can't convert varchar to int   Thanks!


Virtual call in constructor with additional method

I have the issue where I need to call a virtual function in my abstract class' constructor.  internal abstract class Item {     protected Item(...)     {         ...         CreateBuyButton(...);     }      protected abstract void CreateBuyButton(...); }   If I have my code like this resharper is notifying me about the problem however if I refactor the call into another method resharper doesn't seem to count this as a problem and I'm not sure if it is a problem or not.  internal abstract class Item {      protected Item(...)     {         ...         GetValue(...);     }      protected abstract void CreateBuyButton(...);      private void GetValue(...)     {         CreateBuyButton(...);     } }   Is this valid ? Will the problem still persist ?


"0 more votes are needed to undelete this post"

I appear to have stumbled upon an odd question:


I've gotten to the Muffet boss fight, and it's getting annoying. I know you need to eat her donut/cider to let her spare you instantly, but I ate the cheap one in Undyne's fight. Earlier I didn't know about the dog residue, so I sold it. Does anyone know a way to get enough money to buy her crazy expensive donuts?


Since installing Ubuntu 12.10 I have been playing around trying to get my Radeon HD 5450 gpu to work with the proprietary driver, as from the start installing the driver meant losing unity.  I won't list the steps I took as it is not a requirement to answering this question.  After taking one measure and then installing fglrx-updates, upon reboot the system hung at the purple screen. So I decided to boot using nomodeset  I edited  quiet splash $vt_handoff   to look like this  quiet splash nomodeset   Making this change I am then able to log in with Unity and the proprietary driver installed and performing well. I would go as far as to say it performs better than it did in 12.04  fglrxinfo reads  display: :0  screen: 0 OpenGL vendor string: Advanced Micro Devices, Inc. OpenGL renderer string: ATI Mobility Radeon HD 5000 Series OpenGL version string: 4.2.11903 Compatibility Profile Context   Please note the way I have added nomodeset It had been a while since I have had to do this so it was done from memory. When looking for an answer to this question I came across  and discovered that my edit was supposed to go from  quiet splash $vt_handoff   to  nomodeset $vt_handoff   What has my nomodeset edit done? The only thing wrong that I have noticed is that I don't get the plymouth Ubuntu logo screen when booting.  If that is the only trade-off I am happy to make the edit permanant.


Interpretation of Bayes Theorem applied to positive mammography results

I'm trying to wrap my head around the result of Bayes Theorem applied to the classic mammogram example, with the twist of the mammogram being perfect.  That is,  Incidence of cancer: $.01$  Probability of a positive mammogram, given the patient has cancer: $1$  Probability of a positive mammogram, given the patient does not have cancer: $.01$  By Bayes:  P(cancer | mammogram+) = $\dfrac {1 \cdot .01}{(1 \cdot .01) + (.091 \cdot .99)}$  $ = .5025$  So, if a random person from the population takes the mammogram, and obtains a positive result, there is a 50% chance they have cancer? I'm failing to intuitively understand how the tiny 1% chance of a false positive in 1% of the population can trigger a 50% result. Logically, I would think a perfectly true positive mammogram with a tiny false positive rate would be much more accurate.


Does one need a specific field in mind to apply to a PhD program in mathematics?

When applying for the PhD program in mathematics, usually, one is not required to specify in what field (e.g., PDE, dynamical system, etc.) he/she intends to do. However, I don't know whether it will be disadvantage that one does not have a specific field in mind at all.   I ask this question because some people suggest the students who are applying to the graduate school should talk to or connect with the professor who is in the school he/she intend to apply for. But if one does not even have a specific interest in mind, how can he/she talk to a professor about his/her application? (Even if the student is interested in analysis, say, there are lots of sub-field in analysis.)  So, here is my question:  Does one need a very specific field in mind to apply a PhD program in mathematics? Would this be thought as advantage or disadvantage of an application?


Removing the word "In" for citations in classicthesis

I am using classicthesis for my master's thesis. My supervisor told me to remove the "In: journalname" in the bibliography for references appearing in journals, and that "In:" should only be used for book entries. However, I do not understand how I can make this change while at the same time keeping the nice numeric-comp-like citations ([1-3] instead of [1,2,3]) and a bibliography that is numbered (not author-year style, but [1], [2], ....). I suspect this is where the magic should happen, but I just cannot make it work: \usepackage{csquotes} \PassOptionsToPackage{% %backend=biber, % Instead of bibtex backend=bibtex8, bibencoding=ascii,% language=auto,% style=numeric-comp,% %style=authoryear-comp, % Author 1999, 2010 %bibstyle=numeric,dashed=false, % dashed: substitute rep. author with --- sorting=none, % name, year, title maxbibnames=10, % default: 3, et al. %backref=true,% natbib=true % natbib compatibility mode (\citep and \citet still work) }{biblatex} \usepackage{biblatex}


Let $(x_n)$ and $(y_n)$ be two sequences recursively defined as follows: $x_1=a\geq0,y_1=b\geq0$ $$x_{n+1}=\sqrt{x_ny_n}, y_{n+1}=\frac{x_n+y_n}{2}, n\geq1$$ Prove that $(x_n)$ and $(y_n)$ are convergent and that $$\lim{x_n}=\lim{y_n}$$


How can I solve prove that $8(1-a)(1-b)(1-c)\le abc$ with the conditions below?

There was a homework about inequalities (that why I ask a bunch of inequality problems). But I couldn't solve the following:  If $0<a,b,c<1$ and $a+b+c=2$, prove that $8(1-a)(1-b)(1-c)\le abc$  I tried many times, and finally I used Muirhead, but it failed!  $\begin{split}L.H.S.-R.H.S.&=8(1-a)(1-b)(1-c)-abc\\&=8-8(a+b+c) +8(ab+bc+ca)-9abc\\&=-(a^3+b^3+c^3)+(a^2b+b^2c+c^2a+ab^2+bc^2+ca^2)-3abc\\&=\frac{1}{2}\Bigg(\sum_{sym}a^2b-\sum_{sym}a^3\Bigg)+\frac{1}{2}\Bigg(\sum_{sym}a^2b-\sum_{sym}abc\Bigg)\end{split}$ But as $(3,0,0)$ majorizes $(2,1,0)$ but $(2,1,0)$ majorizes $(1,1,1)$, so it fails.  Could someone help? Any help is appreciated!


Show that the group $ S_n $ is generated by two sets

Show that the group $ S_n $ is generated by $ \{(1,2), (1,2,3,...,n) \} $ and also $ \{(1,2), (2,3,...,n)\}$.  How I should start, maybe use induction?


I kept getting notifications from Dropbox that I needed to move my Dropbox to a supported filesystem. Not quite sure what that meant. The syncing has now stopped. I removed the old version of Dropbox and re-installed it. The message I get is shown in the attached image. How can I get the Dropbox going again?      More information in the following image suggests that I do have EXT4 partition and filesystem. But how come Dropbox doesn't recognise it?   I am adding this image to explain my quandary. The EXT4 partition is mounted (not by me but by default). When I click on the link "Linux Filesystem" it opens up the filemanager on the left. I have no permission to add anything to it as it is root. Dropbox wants to move the folder. When I click on the "move" it opens the "find directory" and that that is where I am stuck. BTW I have now installed MEGA as a replacement for Dropbox and it works like a dream.


Font shape undefined(Font) problem with arabic text

Unfortunately I do not know arabic. I just have to copy paste some translated text into a latex document.   \documentclass{article}  \usepackage[utf8]{inputenc} \usepackage{fontspec} \usepackage[LFE,LAE]{fontenc} \usepackage[arabic]{babel} \newfontfamily\arabicfont[Script=Arabic]{Scheherazade}  \begin{document}     هل سبق لك ولو لمرة واحدة في حياتك، أن تناولت 5 أكواب أو أكثر من المشروبات الكحولية (الجعة، النبيذ، الخمر) في آن واحد؟ \end{document}   Font shape LAE/lmr/m/n' undefined(Font) using LAE/cmr/m/n' instead


What ubuntu flavour i can install in this low end machine

My 13 year old brother has a notebook with an intel core duo at 1.83GHz and 2.50gb of ram.  As his computer is getting very slow(it has windows 7) he asked me to install linux in his machine as he saw mine and thinked that it will run better in his computer, As it would be his first time using linux, he is looking for a windows-like desktop. He only uses his computer for a few games(Minecraft, transformice), checking his email and some web browsing I was wondering what  will suit him best. Sorry for the bad english and for the duplicated post but I couldnt find any good answer  EDIT: One more question, is worth using a x64 OS in that machine?


I cannot make xmodmap run on login in Ubuntu 13.04. I have searched around, including in askubuntu and all answers I found do not work.  I have a file named .Xmodmap in my home folder which contains the desired mappings. If I run it manually it works fine, so there is no error there. In order to make it run on startup, I have tried:     Using various .xinitrc containing one of the following commands:      xmodmap .Xmodmap xmodmap ~/.Xmodmap   /usr/bin/xmodmap /home/NAME/.Xmodmap if [ -s ~/.Xmodmap ]; then xmodmap ~/.Xmodmap fi  Using .Xresources instead of .xinitrc with the same variations. Setting it as a startup application.   None of the above works in Ubuntu 13.04 (64-bit). I also saw a few ideas about globally changing the keyboard mappings, but most of them were not applicable in Ubuntu 13.04 (i.e. the corresponding files did not exist where specified) and I prefer not to touch the global settings anyway.


With what should I clean the screen of my Macbook mid-2010 White unibody? Which kind of liquid would you suggest?


We know if a object has escape velocity (EV) it reaches space (ignore atmosphere friction), but at what angle. if an object travels parallel to earth surface with EV, will it escape curvature and reach space. If it travel horizontal and  after reaching EV, it make slighlty an angle, will it reach space           Thank you for you answers. But my main question is if body travels horizondaly(parallel to earth surface), reaching escape velocity, and  ***without making an angle*** will it escape to earth orbit


When I read a source code C#, I see a line   return new Form(ElementType.Checkbox, ((IHTMLInputElement)htmlElement).@checked);     But I can NOT find it with keyword .@checked. Could you please tell me what is .@checked called and its meaning?    Update answer Firstly, Thanks @Yeldar Kurmangaliyev, @Erik Funkenbusch and @TcKs. Secondly, I'm sorry for making duplicate post. Because I searched with ".@checked" and saw nothing. Finally, I understood that @ sign help define a variable whose name is as same as C# keyword, like this:    string @string = "This is a string"; string str = @string; // str = "This is a string"


pay for flight reservation only after approval of visa application?

For many visa applications, you need a flight reservation that shows you have purchased a round trip to your destination and back. But when you buy a flight there is a change your visa application won't be approved and then you already spent money. Yes, I know you can get cancellation insurance, but you have to do some extra administrative work before you get your money back.  So is it possible to make a flight reservation without paying for it right away and pay for it after you visa application is approved?


All application disappeared in windows 8 start menu

I had problems launching windows 8, every time I start the PC, it hands in the start menu, and I can't do anything (Open desktop or any other application), so I booted in linux, and i cleared the windows 8 registry Rundirectory, and i cleared theC:\ProgramData\Microsoft\Windows\Start Menu`, well it helped, and i can now open windows, but all the application and tiles in windows start menu, are disappeared, i can't even do a search in the start menu, and i couldn't do a restore cause i had no restore point :(.   any idea how to fix this?


How to use SSIS to connect using SFTP protocol

I have an SSIS package that use to use an FTP connection manager. However I have to update the package using SFTP connection now. I know there exists a WinSCP option but the server which it will be hosted on will not have WinSCP, and from my knowledge the SSIS package can not have a bin folder with WinSCP. Any work arounds?


The output of pdflatex is filled with lines like this:  Package natbib Warning: Citation `lee2004calder' on page 15 undefined on input line 207.   I'm aware that the citation is undefined, and at some future point I'll find the warning helpful, but it's currently cluttering pdflatex output. I'd like a no-warn option that I can enable while I'm not interested in natbib issues, and disable at a later point. The  doesn't appear to have anything similar.   How can I suppress these warnings?  A  has no useful answers.


Formatting numbers with significant figures in C#

I have some decimal data that I am pushing into a SharePoint list where it is to be viewed.  I'd like to restrict the number of significant figures displayed in the result data based on my knowledge of the specific calculation.  Sometimes it'll be 3, so 12345 will become 12300 and 0.012345 will become 0.0123.  Occasionally it will be 4 or 5.  Is there any convenient way to handle this?


How do i create a perfect hexagonal dome like the image below?

How would I create the model of            The Cinerama Dome is the only concrete geodesic dome in the world. The   theatre is made up of 316 individual hexagonal and pentagonal shapes   in 16 different sizes.   Thanks in advance.


The phrase "the reason has to be because XXX"

Husband asked, "Do you think it's true that men use 15,000 words a   day  and women use double?"       The wife replied, "I think so, The reason has to be because we   have to repeat everything to men."   Is "the reason has to be because" a common usage in colloquial conversations?  Another question!  Does "A have to be B" mean the strong guess(A must be B or I'm sure A is B)?    I learned "the reason is because S+V" is grammatically wrong (although many people use it) as far as I remember my SAT writing class materials correctly.


i wonder about scott connection [phase shift]

something like wye-delta and delta-wye connection.  we can originally know wye-delta connection is step-down transformer and second side voltage phase is being to -30 degree. And also delta-wye connection is step-up transformer and second side voltage phase is being to +30 degree.  But the other side, we also can make wye-delta connection is step-up transformer if it get turn ratio like 1:2. So in this case maybe will be become +30 degree in second side voltage.   apply this principle in scott connection, how can work it?   case1) turn ration 1:2 - step up second side voltage's angle +90 degree?  case2) turn ration 2:1 - step down second side voltage's angle -90 degree?  if you have any information or homepage link, can you leave it for me?  thank you so much.


I wrote code for tests - it creates simple XML document. My problem is that created document contains unneeded data in first node . Is any way to delete or modify this node <?xml version="1.0" encoding="UTF-8" standalone="no"?> ?  import java.io.ByteArrayOutputStream; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import javax.xml.transform.OutputKeys; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerException; import javax.xml.transform.TransformerFactory; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult;  import org.w3c.dom.Document; import org.w3c.dom.Element;  public class MyTestClass {      public static void main(String argv[]) {        try {         DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();         DocumentBuilder docBuilder = docFactory.newDocumentBuilder();          // root elements         Document doc = docBuilder.newDocument();         Element rootElement = doc.createElement("company");         doc.appendChild(rootElement);          // staff elements         Element staff = doc.createElement("Staff");         rootElement.appendChild(staff);          // firstname elements         Element firstname = doc.createElement("firstname");         firstname.appendChild(doc.createTextNode("yong"));         staff.appendChild(firstname);          // lastname elements         Element lastname = doc.createElement("lastname");         lastname.appendChild(doc.createTextNode("mook kim"));         staff.appendChild(lastname);          // nickname elements         Element nickname = doc.createElement("nickname");         nickname.appendChild(doc.createTextNode("mkyong"));         staff.appendChild(nickname);          // salary elements         Element salary = doc.createElement("salary");         salary.appendChild(doc.createTextNode("100000"));         staff.appendChild(salary);          Transformer t = TransformerFactory.newInstance().newTransformer();         ByteArrayOutputStream s = new ByteArrayOutputStream();         t.setOutputProperty(OutputKeys.INDENT, "yes");         t.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2");         t.transform(new DOMSource(doc),new StreamResult(s));         System.out.println(new String(s.toByteArray()));       } catch (ParserConfigurationException pce) {         pce.printStackTrace();       } catch (TransformerException tfe) {         tfe.printStackTrace();       }     } }   It returns:   <?xml version="1.0" encoding="UTF-8" standalone="no"?>   <company>     <Staff>      <firstname>yong</firstname>      <lastname>mook kim</lastname>      <nickname>mkyong</nickname>      <salary>100000</salary>      </Staff>   </company>   Is any way to delete or modify this node <?xml version="1.0" encoding="UTF-8" standalone="no"?> ?


I understand the governing force causing the earth's cycle around the sun is gravity. It can be described by Keplar's law. But what causes the earth's spin? what is its governing law?


Replacing the wiring to a socket in a home?

In my home, in one bedroom circuit, there are several receptacles.  After first two receptacles, next socket has no power.  After significant effort, it has been determined that the sockets are fine, connections are okay, but one wire coming from attic via the wall is broken.  However, I do have a 100% confirmation.  Questions:  (1) How can I be 100% sure of this diagnosis. (2) Assuming that my diagnosis is correct, how to replace existing discontinuous (broken) wire with a new one through the wall.  Earlier answers did not answer either of these questions.  M.S.


Derivatives and Counting question asked in an interview

The below is a question that had been asked to one of my friends in an interview for admission into a premier management institute of India, the Indian Institute of Management.  Consider x^2. Now consider a series addition of x, x times as in x+x+x+x+....... x times.   Now we can see both x^2 and x+x+x+x+....... x times are same.  Now if we differentiate x^2 with respect to x, we get 2x. And if we differentiate x+x+x+x+....... x times with respect to x, we get 1+1+1+1+..... x times, which equals x.  So why is this difference ?  Also when we look at x+x+x+x+....... x times as x × x, and then if we differentiate this wrt x using the product differentiation rule, we do get 2x as the derivative.  So why this paradox. This was asked in the interview. What could be the answer to this inconsistency?


I'm not sure how many people share this experience, but I've personally grown up being taught to spell the seasons with a capital heading, e.g. Spring, Summer, Autumn, Winter.  Yet, when I type the seasons with a capital in Microsoft Word, I'm given the blue squiggly line under them, telling me to use spring (or summer, autumn, winter).  Have I been taught incorrectly, or is this a MS Word error?


How do I calculate the resistor value for a simple LED circuit?

I have a simple circuit:    The max rating (current) of the LED is 30mA.  How can I work out what the resistance of the resistor needs to be? By using ohm's law I found it to be \$3V/0.03A = 100 \Omega\$. However using software called , and trial and error I got the minimum possible resistance to be 36Ω. However, if I use a 35Ω resistor, then the LED breaks. Is the software wrong, or (more likely) am I doing something wrong?


Airplane mode is always on, so the WiFi doesn't work

Airplane mode is always on so can't use wifi. How to solve?


"More perfect" is presumably bad English (Preamble to the US  Constitution notwithstanding), since something is either perfect (and  thus can't be improved) or not.   "Less imperfect", however, seems to make sense. It means "having fewer  flaws" or "closer to perfection".   The paradox: "more perfect" and "less imperfect" should mean the same  thing, no?   The real question: is "perfect" binary or continuous? Or is this a  weird case where "perfect" is binary, but "imperfect" is continuous,  meaning these words aren't true opposites?   [I tried to work in a joke about English being imperfect, but couldn't  find the perfect joke]


Can the “while attuned” powers of Solarian stellar revelations be used while attuned to either mode, or only the matching one?

I’m having trouble finding an official clarification of this, so I’m wondering if anyone has found a ruling:  Solarians gain powers known as stellar revelations. These are either “photon” or “graviton” revelations. It is specifically mentioned they can be used out of combat, though most include improved effects or separate powers that can only be used “while attuned” - a state a Solarian enters during combat. They may be photon or graviton attuned, at the player’s choice, and are able to increase their level of attunement each round until they become fully attuned to one or the other. However, apart from the very powerful “zenith revelations”, nowhere in the rules mentions whether photon revelations may only be used while photon attuned, or graviton revelations only while graviton attuned. The revelations themselves usually say “while attuned or fully attuned” for the more powerful effects, without mentioning the mode, and there’s no general rule in the class feature that answers this question.  Is there an official ruling on whether the “only while attuned” power of a photon revelation can be used when the character is graviton attuned, or vice versa? I suspect the answer is yes but it’s hard to tell based on the core rules.


When a flights departs in the middle of the winter daylight saving time switch, what is the actual departure time?

If we take a look at JFK's flight schedule for this year's November 6th (which is the winter DST switch date), there are plenty of flights departing between 1am and 2am. For example, a .  If one were to actually buy that flight, what would be departure time printed on the ticket? And when would the plane actually depart — on the "first" or "second" 1:25am?