Deploy Community Builder audience page assignments with ant migration tool?

In Community Builder, if you create audiences and assign them to page variations, you cannot deploy these using change sets, according to .  In fact, Audience doesn't even appear in the list of change set components.  On the other hand, Audience metadata can be deployed using the ant migration tool, so I was hopeful that the audience assignments would also be deployable.  Unfortunately, I haven't had success in deploying any audience assignments, either for entire pages or for components on a page.  Has anyone found a workaround for deploying audience assignments for Community Builder pages?  I should say that I'm using the Build Your Own template.  If it can't be deployed, is there at least a way to get a list of audience assignments so I don't have to open every single page in the Community Builder to check?  Here's what I'm using in my package.xml manifest.  All the community builder page variations and all the audiences are created correctly, but the assignments are not.  <types>     <members>*</members>     <name>Audience</name> </types> <types>     <members>*</members>     <name>CustomSite</name> </types> <types>     <members>*</members>     <name>SiteDotCom</name> </types>


I have done quite a bit of research on SEO as I have a new website (around 6 months old) and it does not feature on google for any search terms that I would associate with it other than the website name where it ranks 1st lol.  My competitors are all established websites who have been around for a number of years with a solid customer base.  I suppose the main question is... Can i compete? or do i just need to bide my time?  Currently my product page structure has the main headinh <h1> at the top which is the product title  The product description then contains <h2> - Product title and brand and then a description below...  would it make much difference if below the <h2> i added another <h2> containing the product category?  My understanding is that the better googles understanding is of my products, the quicker I can potentially increase my ranking to compete with my competitors?


Is there any situation where it is preferable to use TeX (or perhaps plain TeX) rather than LaTeX to write a document?


Embedding SQLite database in output exe file

I want to embed an SQLite database in my output *.exe file. I have heard of ILMerge but as far as I know it's used only for assemblies/DLLs. I have also seen  but it's about including the DB in the output directory, while I want it to be inside the *.exe, itself.  I have added the database file to my project as an "Existing File..." and have read on the various build actions but I am not sure if I will be able to connect fine to it if I use them or what action I should use so that I can retrieve data from the DB.


When I try to install PHPUnit in docker, I got the error message but mcrypt seems to be installed. What did I miss ? $ composer require phpunit/phpunit=3.7.* --dev The requested PHP extension ext-mcrypt * is missing from your system. Install or enable PHP's mcrypt extension.  $ yum list installed | grep mcrypt libmcrypt.x86_64                 2.5.8-9.el6                       @epel libmcrypt-devel.x86_64           2.5.8-9.el6                       @epel php-mcrypt.x86_64                5.3.3-5.el6                       @epel  CentOS release 6.10 (Final) PHP 5.3.29


Objects not rotating with each other (Rubik's cube)

I am animating a Rubik's cube, and as soon as I get to the second rotation the blocks that have previously been rotated start tripping out even though it should have been reset. I tried making the graph linear which fixed a lagging issue I had, but the blocks still start to spin instead of rotating around a single axis.


Can I use my PC to install linux/ubuntu to my external drive to be used on another PC?

Long story short. I have a decent PC in the other room that has no internet. So I want to install Linux/ubuntu onto a external 1.5TB hard drive so I can run the other PC on it. How ever, I do not want Linux/Ubuntu to effect this PC at all. Please help.  PS: in case you cant tell, I have no idea what Im doing. I am computer friendly however I am very unfamiliar with Linux/ubuntu. Im not even sure I know what it is. I just cant afford to buy windows 7.


Let $a,b,c>0, a^2+b^2+c^2+abc=4$. Then prove that $0\leq ab+bc+ca-abc\leq 2$.  My idea is substitution. First, I'll prove that $cos^2\alpha+cos^2\beta+cos^2\gamma+2cos\alpha cos\beta cos\gamma=1$ where $\alpha+\beta+\gamma=\pi$.  $cos^2\alpha+cos^2\beta+cos^2\gamma+2cos\alpha cos\beta cos\gamma=\frac{3+cos2\alpha+cos2\beta+cos2\gamma}{2}+2cos\alpha cos\beta cos\gamma=\frac{3}{2}+cos(\alpha+\beta)cos(\alpha-\beta)-\frac{1}{2}+cos^2(\alpha+\beta)+2cos\alpha cos\beta cos\gamma=1+2cos(\alpha+\beta)cos\alpha cos\beta+2cos\alpha cos\beta cos\gamma=1$  Therefore we can substitute $a=2cos\alpha,b=2cos\beta,c=2cos\gamma$ with $\alpha,\beta,\gamma\in(0,\frac{\pi}{2})$. Then the inequality becomes $0\leq cos\alpha cos\beta+cos\beta cos\gamma+cos\gamma cos\alpha-2cos\alpha cos\beta cos\gamma\leq\frac{1}{2}$.  LHS is easy. If one of $cos\alpha,cos\beta,cos\gamma$ is equal to $0$, we may assume that $\alpha=\frac{\pi}{2}$. $0\leq\beta,\gamma\leq\frac{\pi}{2}$ and $cos\beta cos\gamma\geq 0$(True).  Else, we can divide by $cos\alpha cos\beta cos\gamma$ and the inequality becomes $\frac{1}{cos\alpha}+\frac{1}{cos\beta}+\frac{1}{cos\gamma}\geq 2$. But it's true because $\frac{1}{cos\alpha}+\frac{1}{cos\beta}+\frac{1}{cos\gamma}\geq\frac{9}{cos\alpha+cos\beta+cos\gamma}\geq\frac{9}{\frac{3}{2}}=6>2$. Equality occurs if $(\alpha,\beta,\gamma)=(\frac{\pi}{2},\frac{\pi}{2},0)$ and its permutations.  I can't solve RHS. Maybe dividing by $cos\alpha cos\beta cos\gamma$, it can be little bit easier. Anyone can help me?


Is it true that a space-filling curve cannot be injective everywhere?

, it is said that a space-filling curve cannot be injective because "that will make the curve a homeomorphism from the unit interval onto the unit square", since every continuous bijection from a compact space to a Hausdorff space is a homeomorphism.  That does mean there can be no injective mapping from $[0,1]$ onto $[0,1]\!\times\![0,1]$, but it doesn't really tell us anything about mappings from noncompact intervals onto the unit square. In the case of the ordinary Peano-Hilbert curve, it does not help much: the construction has infinitely (only countably, though) many inherent points of overlap (discussed here:  ), but I can't really see any reason why there could not be a space-filling curve without such points. Of course, the curve's inverse could not be continuous, but when mapping from a noncompact interval it wouldn't need to be! After all, there are other curves mapping noncompact spaces bijectively to compact ones in a continuous way, but with noncontinuous inverse, like the obvious $[0,2\pi[\to S^1$.


Why is my F3 key not working when running Minecraft?

Just yesterday, I bought a laptop and I set it up. Everything works and it's great, but, the F3 key isn't working on Minecraft. Outside of Minecraft, the F3 key is responsive (it brightens the screen), but just not in Minecraft. If you're wondering, I'm using a Windows 8 HP Pavilion laptop. Remember, I just got this laptop yesterday, so don't go saying my keys are bad or something.  Thanks in advance!


Can't install OS X on MacBook Pro after installing Windows 8

So my hard drive stopped working, water damage I think.  I bought myself a new ssd and straightaway put Windows on it as I use it for work.   This was a few months ago I'm now stuck as I can't figure out how to install OS X whilst Windows is its main OS.   If anyone has a solution that doesn't involve me wiping my ssd I'd be very happy.


How is reputation supposed to be affected by undelete?

Problem I recently made a post that was deleted by the moderators for being only a link (still learning what's acceptable). My post:   I received 2 downvotes on the answer before it was deleted. I received -4 rep for the downvotes, but then +4 for the deletion (even though I was not the one to delete the answer). Later, I edited my answer and requested an undelete. Upon undelete the - 4 rep hit my account again even though this answer is entirely different from the first, and shows a 0 for the upvote/downvote interface.   Current Votes:      Current Rep for Answer:   Questions     Why do I receive positive rep when another user deletes my answer? Why does the negative rep from downvotes on the previous answer show in my feed (and affect my current standing), but not on the interface feature upon undelete? Is this a bug or just the way the site functions?   Explanation I do not think that this post is effectively explained by the post:   It does not explain why the negative rep persists and why the UI is unchanged.


How to make a number field increment by one as per a certain criteria?

On the Task object, I have to create a field "Barcode Number"( Bar_Code_Number__c), which starting from a specific value 68992001 and for every created task on any object increment to one, when the Task subject is " PTT Dispatch Task" only. For other task subject , it should be blank. Also, the users can also edit this field if they want. But the next task creation will follow the regular increment number ( and not from the one what the user has changed). Can you plz suggest how to achieve it. Thanks  I tried a workflow rule but did not succeeded.  As per the WF I created, the criteria as Task subject as " PTT Dispatch Task" , and formula as below, and first time i inputted the number above first number here. But i think this is not the correct way.


.database.sqlite.SQLiteDatabase.execSQL(java.lang.String)' on a null object reference

While running db.exec(q) method it shows null object reference. db is object of SQLiteDatabase class. and exec() is abstract method which is overridden.  Here is the code of DatabaseHelper class extended by SQLiteOpenHelper  public class MyDbHelper extends SQLiteOpenHelper{  SQLiteDatabase db; Context context;   MyDbHelper(Context context) {     super(context,"userDB",null,1);     this.context = context;     db = this.getWritableDatabase(); }   @Override public void onCreate(SQLiteDatabase sqLiteDatabase) {       String q = "create table user(uname text primary key,uage text,uphone text,bmi float)";     db.execSQL(q);  }  @Override public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {  }   public void addData(String uname,String uage,String uphone,Double bmi) {      ContentValues cv = new ContentValues();     cv.put("uname",uname);     cv.put("uage",uage);     cv.put("uphone",uphone);     cv.put("bmi",bmi);     long rid = db.insert("user",null,cv);      if(rid<0)     {         Toast.makeText(context, "Insert Issue !!!!!", Toast.LENGTH_SHORT).show();     }     else     {         Toast.makeText(context, "Record Inserted !!!!!", Toast.LENGTH_SHORT).show();     } }  public String viewData() {      StringBuffer sb = new StringBuffer();     Cursor c = db.query("user",null,null,null,null,null,null);     c.moveToFirst();      if(c.getCount() == 0 )     {         sb.append("No Records To Display");     }     else     {         do{             String uname = c.getString(0);             String uage = c.getString(1);             String uphone = c.getString(2);             float bmi = c.getFloat(3);             sb.append("User : " +uname+ "\nAge : " +uage+ "\nPhone : " +uphone+ "\nBMI : " +bmi+ "\n\n---------------\n\n");           }while (c.moveToNext());     }      return sb.toString();     }  }


My recollection is that Darth Vader wore a helmet for life support after a devastating accident. Much like some people cannot survive without dialysis after kidney failure. But Kylo Ren seems able to survive without his helmet. We get the sense that Kylo Ren is just wearing a costume like a security blanket to pretend he is his grand father. Is there any documented reason why Kylo Ren wears a helmet?


Stick of length 6 is broken into two pieces. Expected value of ratio of shorter to longer

Jen’s dog broke her six inch long pencil off at a random point on the pencil. Find the density function and the expected value of the ratio of the shorter piece and the longer piece.  $X$ is longer piece and $Y$ is smaller  $U \sim U(0,6)$  Define $X = \text{max}\{U, 6-U\}$  so that  $$X = \begin{cases} 6-U,  & 0 < U < 3 \\ U, & 3 \leq U < 6 \end{cases} $$  It follows that  $$X = \frac{6 + |2U - 6|}{2}$$   Similarly  $$Y = \frac{6 - |6-2U|}{2}$$   Let $Z=Y/X$  $$F_Z(z) = P (Z \leq z)$$  $$=P\left(\frac{6 + |2U - 6|}{6 - |6-2U|} \leq z \right)$$  I don't know what to do next


Batch create PDFs by combining all PDFs in folders

I have hundreds of folders full of PDFs. I would like to create a PDF out of each folder called the name of that folder.   For example, "folder_name_1" has 10 PDFs. I want to convert it to a PDF called "folder_name_1.pdf".   I know ways to do it manually, but I'm looking for a way where I can process batch folders at a time.  Possible options I've looked at:   Automator - lack expertise here Adobe Acrobat - this is fine for one off, but I don't think I can batch it Terminal - is there a terminal command that will do the trick?   I have reviewed  question, and although similar it does not answer how to name the created PDF after the name of the folder.  Update: Through Automator, I have it setup so all I need to do is drop a folder of PDFs onto it and it will combine, only problem is the renaming. I need it to rename the PDF as the folder name.  See Automator setup below:


TEXMAKER when compiling gives me error misplaced alignment

! Misplaced alignment tab character &. <argument> ...d/record.url?eid=2-s2.0-78751524824& partnerID=40&md5=4144bdb06... l.76 ...D=40&md5=4144bdb064f723bb3e27d5ff60673d79}   I can't figure out why you would want to use a tab mark


Let's $x_n\ge0$ and $$\overline{\lim}_{n\rightarrow\infty}\frac{x_1+x_2+\cdots+x_n}{n}\lt+\infty,~~\lim_{n\rightarrow\infty}\frac{x_n}{n}=0.$$Prove that $$\lim_{n\rightarrow\infty}\frac{x_1^2+x_2^2+\cdots+x_n^2}{n^2}=0.$$ I have no idea how I can start the proof.  Thanks!


OpenAPI (formerly Swagger) spec and inbound/outbound REST calls

I have read many articles as how to expose the Apex class as a REST API or call the external REST API from Apex. How does OpenAPI (fka Swagger) work with Salesforce in inbound or outbound Rest API calls.


Configuring ADB for Nexus 4 on Ubuntu 11.10

I'm trying to deploy and test an Android app on my Nexus 4 from my Ubuntu 11.10 computer, but ADB doesn't recognize it. I think I need the Google USB drivers, but I cannot find instructions on how to install them on Ubuntu.  How can I install the drivers on Ubuntu 11.10 so that ADB will recognize my N4?


Do I have to recompile my application when I upgrade a third party jar?

I have a java application that uses some third party API. The third party jar files change fairly frequently because of all kinds of patches, but the API itself does not change that often.   Do I have to recompile my application every time the third party jar changes?


Restrict all FTP Accounts to a single directory

I am trying to restrict all FTP users to the directory /jannik with the vsftp-daemon. I don't want them to go anywhere but the folder /jannik and it's sub-folders. Also, I don't want them to have write permission.  What you should know:   I have the following common settings   local_enable=yes write_enable=no  I use a user blacklist to only allow one specific account to access the ftp (userlist_deny=NO; userlist_enable=YES; userlist_file=/etc/vsftpd.user_list) In the user_list I've only one user (root)   Again, what I would like to accomplish:   Only allow that user to access /jannik and all it's sub directories   What I've tried to far:   Setting local-root=/jannik => This lets my ftp users all log on to the correct dir, but they can use /../ in the URL to get out of the directory, letting them full access to all my files on the VPS server I own. Additionally setting chroot_local_user=YES gives me an error: "500: OOPS: vsftpd: refusing to run with writeable root inside chroot()"   Do you have the idea, what could be wrong? I do not want to chroot their home directories, only to the given single directory.


No WiFi on Dell Latitude D630. Just Installed 15.04. Window user so no idea how to proceed. I assume I need a driver but do not know how figure what adapter I have or how to get a driver (new to Ubuntu & Linux). TY


Find the all positive integer solutions $(a,b)$ to $\frac{a^3+b^3}{ab+4}=2020$.

Find the all positive integer solutions of given equation   $$\frac{a^3+b^3}{ab+4}=2020.$$   I find two possible solutions, namely $(1011,1009)$ and $(1009,1011)$, but the way I solve  the equation was messy and I don't know if there are any other solutions.  Source: Turkey $1.$ TST for IMO $2020$


Prove that there'll always be three distinct integers $x$, $y$ and $z$ such that $x + y + z = 0$.

Prove that in $2m + 3$ distinct integers picked from $4m + 3$ integers between $-(2m + 1)$ and $2m + 1$, there'll always be three distinct integers $x$, $y$ and $z$ such that $x + y + z = 0$ ($m \in \mathbb Z^+$).   This problem is adapted from a recent competition. Because of obvious reasons, I decided to alter the problem a little bit. It is certainly not avoided that mistakes will happen. I apologise for that.  Assume that $x < y < z$ and $y = 0$, this case can easily be solved.  But I can't solve the case where $x < y < 0 < z$ or $x < 0 < y < z$. The problem then becomes     $a$ and $m$ are integers such that $0 \ne |a| \le |2m + 1|$. Prove that there'll always two distinct integers $p$ and $q$ such that $-1 < \dfrac{p}{a}, \dfrac{q}{a} \le 0$ and $p + q = -a$.


Re-ordering fields permanently using ArcGIS Make Query Table tool?

In the  to  it was stated that the Make Query Table tool could be used to re-order fields in tables and feature classes permanently.  However, when I open the dialog for that tool I cannot see anywhere that enables re-ordering of fields.  All I can see is that fields can be carried through or dropped using checkboxes but in the same order.  Assuming that it is possible can someone describe the steps in more detail, please?


Spiteful downvoting? Two fast DVs to my unrelated posts

I don't know if I'm being paranoid - but earlier I made a comment on a question that showed no research effort:  . I got a rather snarky reply, and a couple of minutes later I noticed that two of my top questions (which are otherwise on completely different topics) received downvotes within a minute of each other.        It is hard not to suspect a connection between these events, especially in light of the tone of follow-up comments made by the OP (who might not have noticed that I helped improve the answer that was ultimately accepted in the mean time).  Not sure if I am being over sensitive or paranoid; should I just move along? "Spiteful downvote" gets quite a few hits on this site, and maybe I am just too new to be immune to it.  My question(s): "Is there a process to reverse such behavior? Do the comments in the above question merit a flag? Should I shrug an move on?" Any words of advice or encouragement appreciated. Sorry if I sound whiny.  update - the question linked above has been removed "for reasons of moderation". Probably a good outcome. I appreciate all the helpful inputs this generated!  edit This is quite different than the question cited as the duplicate: in that one, a person lost reputation because a user was removed; in this case I suspect an individual user down voted two of my top questions in quick succession "out of spite". The message (shown above) in the rep dashboard was quite different... I request this question be re-opened.


Dinner with my 5-year-old is an ordeal. I do not want to cook separate meals. How do I stop the fighting at dinner and get them to eat?


A short story about finding an inhabitable planet and meeting aliens

So the story goes, humans in a spaceship search for an inhabitable planet, being surprised they found none in the vicinity of Earth. They find one, and it seems uninhabited. At the same time are observed by the aliens, who go down on the planet to meet them. The aliens sit them down and tell them a story about war and conflict that ruled the galaxy, and how all the sentient races in the galaxy got together and got rid of the race that tried to conquer all by blowing up their planets.  In the end you realise man is this terrible conqueror the aliens are talking about.


Get key value from 2 dimensional dictionary

Good Day all I am making a table but struggling to convert back to the key here is a example of what I am looking for   dict = { ‘~’:{‘Hex’: ‘7E’,’Decimal’:’126’}}   That is my style of dictionary and I would like to make a function that takes an input for decimal and if they type in like dec2Ascii(‘126’) it must return ~ but can’t seem to get the right way to do it


How to restart centos 6 server from cron

I realize this is frowned upon.  Many will suggest they don't recommend doing a server restart from cron because it's not being monitored.  In my case I would like to do this, the reason is because the server is used for only one task, in a node server environment.  The server runs out of memory and I've been advised to just restart the whole server.  I'm ok with this.  Currently in my cron file I have the following.  (I got this off another stack question) .   0 */4 * * * /usr/bin/reboot   However it doesn't work.  When I manually go to this directory /usr/bin/ then type "reboot" it works.  But executing like this /usr/bin/reboot from chron doesn't restart the server.  When I do ls /usr/bin/reboot the return is /usr/bin/reboot When I do which reboot the return is /sbin/reboot  How would I restart the server on centos 6 using cron?


URL validation using Regular Expression in JavaScript

There are so many post about url validation using regular expression. I got this  expression and create a function which validate url. Everything is working fine but i want "some.com" also true, which is i am getting false. I tried with some regular exp for empty string like ^$ but not working fine!  function is_url(url)     {         if(/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/|www\.)[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/.test(url))             {                return true             }             else             {                return false             }         }   Result:  https:\\www.some.com - true  http:\\www.some.com - true  http:\\some.com - true  www.some.com - true  some.com - false // i want this also true  Any Help?


Prove a series $\sum_{n=1} ^\infty \frac{(-1)^n}{n}$ is convergent

I was asked to prove that an infinite series $$\sum_{n=1} ^\infty \frac{(-1)^n}{n}$$ is a convergent series.  I tried using ratio test but the limit results in 1 which is inconclusive.  I am stuck at this point.  Can you give me some hint on how to approach this question?  Thank you  edit : My professor only taught ratio test, root test and comparison test where if $|b_i| \leq a_i$ for all i = 1, 2, ... and $\sum a_i$ converges then the sum of $b_i$ converges absolutely. Is there any way other than alternating series test to prove this problem?


I have a list of list something like this:  l=[[1,2,3],[1,2,3],[1,2,3]]  l1,l2,l3 = [],[],[] for i in xrange(0,len(l)):     l1.append(l[i][0])     l2.append(l[i][1])     l3.append(l[i][2])   So that I will get:  l1=[1,1,1] l2=[2,2,2] l3=[3,3,3]   I am interested in finding a better way of doing this. For example, if I were to add more values (l4, l5 ... etc.) could I find a way that would make it more dynamic rather than having to keep adding lists. Is there a way to map this somehow to give me something like:  new_l=[[1,1,1],[2,2,2],[3,3,3]]   Note: it is the positions that matter, these values were just used for simplicity.


Trying to remember name of a SciFi movie where an astronaut on the moon uses a rat to find his ship

All I can remember is the end and a lost astronaut on the moon uses a rat on a key ring to decide which way to go to find his ship.


Is there a name for this kind of phrases?

I often times heard phrases like itty-bitty, nitty-gritty etc, the latter word followed part of the previous word's syllable(mostly ends with -y), I want to know the names for this kinds of phrases.


I've heard more and more people saying "A is N times less than B" in many contexts.   I even saw in a news journal (forgot whether it was Time or Newsweek), "The object was 3 times closer than the moon".     I cannot bring my self to say this.  It just seems wrong.   If "2 times closer" or "5 times slower" mans "half as fast" or "a fifth as fast", then why not just say that?   Besides to me it seems logically that "A is 5 times less than B" ought to mean "A = B - 5*A".  I also speak French, and the French say this all the time (in French and in English).  QUESTION.  Has this horrible formulation become common place, and we just need to accept it and start using it?   Or is it still regarded as ambiguous and should be avoided in scientific writing?  (this question is related to  but it different because it asks a different question.)


How to delete the header from introduction chapter?

I write a report and I want to write an introduction before the first chapter,so I put this at the begin of "Introduction file":  \chapter*{Introduction générale} \label{Introdution}    I have 3 pages in the introduction.The problem that I got  in the second and the third page.how delete this from these pages.


killing process group with SIGINT and SIGTERM shows different result

(I changed the point of question into about more basic symptom.) I created child and grand child in bash script.(in Ubuntu 14.04)  #! /bin/bash  {     sleep 21 &     sleep 22 }&  sleep 23   But 2 kind of command to kill process group shows different result. ( I've run the kill command in another terminal at this test.)  kill -INT -<pgid>     # -> grand child(sleep 21) survives. kill -TERM -<pgid>    # -> kills all correctly.   Could you explain what it is going on internally?


Conditional Multivariate Normal (beyond the bivariate case)

so I need to obtain the conditional distribution of a multivariate normal. However, I can only find it for the bivariate case:  $$(x_1|x_2=a) \sim N(\bar{\mu}, \bar{\Sigma})$$ $$\bar{\mu}= \mu_1 + \Sigma_{12}\Sigma_{22}^{-1}(a-\mu_2)$$ $$\bar{\Sigma}= \Sigma_{11}-\Sigma_{12}\Sigma_{22}^{-1}\Sigma_{21}$$   is the example given in more depth.  However, how would these formulas look like if I would have 3 or 4 variables instead of 2?  Edit: I would like the conditional for $(x_1| x_2=a,x_3=b)$ given I have mulitvariate distribution with 3 variables.


How physicists explained straight line propagation of Light thinking of light as wave?

To explain the fact that light travels in a straight line assuming light as a wave physicist said that it has small wavelength. So how does the small wavelength explains the property?


importing a multipage PDF file into InDesign CC

When I place a multipage pdf file into InDesign CC, the pages go outside of my document settings, making this function useless.  What do I have to do to make the placed  pdf pages go within my document settings, which in this case is 11 in. Length X 8.5 in. width, .5 in. margins on all sides, with two columns per page. I would greatly appreciate an answer to this, Thank you.


Wifi-Disabled: Ubuntu 19.10 - Intel Wireless 7265

After updating to Ubuntu 19.10:    Clicking Continue using.. get resetted back to Do not use...  Tried to download drivers from the Microsoft website and put them into lib/firmware.   The WiFi works though.  What is the correct work-around to make sure correct driver is used?    rfkill list all 0: hci0: Bluetooth     Soft blocked: yes     Hard blocked: no 1: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no   lspci -nnk | grep 0280 -A2 02:00.0 Network controller [0280]: Intel Corporation Wireless 7265 [8086:095a] (rev 59)     Subsystem: Intel Corporation Dual Band Wireless-AC 7265 [8086:5110]     Kernel driver in use: iwlwifi   ls -al /lib/firmware | grep 7265 -rw-r--r--  1 root root  736844 Mar 30  2017 iwlwifi-7265-10.ucode -rw-r--r--  1 root root  880604 Mar 30  2017 iwlwifi-7265-12.ucode -rw-r--r--  1 root root  885224 Mar 30  2017 iwlwifi-7265-13.ucode -rw-r--r--  1 root root 1180224 Oct 17 21:10 iwlwifi-7265-14.ucode -rw-r--r--  1 root root 1180356 Mar 30  2017 iwlwifi-7265-16.ucode -rw-r--r--  1 root root 1180412 Oct  8 21:54 iwlwifi-7265-17.ucode -rw-r--r--  1 root root  690452 Mar 30  2017 iwlwifi-7265-8.ucode -rw-r--r--  1 root root  697828 Mar 30  2017 iwlwifi-7265-9.ucode lrwxrwxrwx  1 root root      21 Nov 17  2017 iwlwifi-7265D-10.ucode -> iwlwifi-7265-10.ucode -rw-r--r--  1 root root 1002800 Mar 30  2017 iwlwifi-7265D-12.ucode -rw-r--r--  1 root root 1008692 Mar 30  2017 iwlwifi-7265D-13.ucode -rw-r--r--  1 root root 1384256 Oct 17 21:10 iwlwifi-7265D-14.ucode -rw-r--r--  1 root root 1384500 Mar 30  2017 iwlwifi-7265D-16.ucode -rw-r--r--  1 root root 1383604 Nov 17  2017 iwlwifi-7265D-17.ucode -rw-r--r--  1 root root 1385368 Nov 17  2017 iwlwifi-7265D-21.ucode -rw-r--r--  1 root root 1028376 Apr 24  2018 iwlwifi-7265D-22.ucode -rw-r--r--  1 root root 1032740 Dec  5  2017 iwlwifi-7265D-27.ucode -rw-r--r--  1 root root 1036668 Oct  8 21:54 iwlwifi-7265D-29.ucode


Mail sending application using SMTP NetworkCredential parameters

I am trying to create a mail sending application in C# using SMTP. I don't understand what parameters I should introduce in this declaration instead of username and password:  SmtpServer.Credentials = new System.Net.NetworkCredential("username", "password");   Is it the email, computer or literally the internet connection credentials?


How to go about determing the System Type of my setup?

I have a small project where I am PID tuning two servo motors. Something very similar to this:    I am interested in finding the system type of the above setup, which includes the PID loop I have tuned. I know that the system type can be very generally described as the number of integrators or poles at the origin in the system.  - I know that I am dealing with a cascaded control system.   Loop 1: Standard DC motor closed loop system (for both servo motors). Loop 2: PID tuning of that servo motor such that when I want a 90 degree rotation, the servo motor does not actually overshoot. Loop 3: PID that I have created myself on top of the whole system.   Below is a Simulink block diagram of what I predict the cascaded loops would look like.     How would I be able to estimate accurately or work out the number of integrators in such a system?


Null pointer exception to check whether a xml have the element or not

My part of code is below see,  NodeList nodes=doc.getElementsByTagName("user"); if(nodes.getLength()==0) system.exit(1);   Initially, xml dont have user element. But, I got an null pointer exception.  How to solve this... And how do I find the no of nodes even if the nodes doesn't exists initially. It shud return 0 nodes. Thank you  Also I checked this....      NodeList nodes=doc.getElementsByTagName("user");      if(nodes==null)      system.exit(1);  Then aldo I got null pointer exception.


Suppose n is a product of distinct odd primes. Show $a^{\phi(n)+1}\equiv a $ (mod $n$). Let $\phi(n)$ be the Euler Totient function.   I let $n = p_1p_2\cdot\cdot\cdot p_k$ for $p_i > 2$ and each of the $p_i$ are distinct.   I let $a = q_1^{r_1}q_2^{r_2}\cdot\cdot\cdot q_m^{r_m}$ for primes $q_i$.   There are two cases: either gcd(a, n) = 1 or gcd(a, n) is a product of some of the primes.   I can easily figure Case 1 by using Euler's Theorem and the Chinese Remainder Theorem.  I'm having problems figuring out the second case. Any suggestions of where I might start?


`find -type l` matches file while `-type l -o -type f` does not, but only with explicit `-print`

I'm using GNU's find.  I've simplified my problem to this shell session:  $ mkdir t $ cd t $ touch a  $ ln -s a b $ find -type l ./b $ find -type l -o -type f ./a ./b $ find -type l -print ./b $ find -type l -o -type f -print ./a   Maybe it's the fact that I'm very sleepy, but 2 things don't make sense to me:   Isn't true OR false == true? How is it that adding -o -type f causes find to stop matching ./b, despite -type l matching? The manual page says that -print is the default expression, so how is it that a file is printed when it's not mentioned, but omitted when it is?   This also happens when using -printf (what I actually need); I imagine other expressions are affected, too.


Perl Database connect not working in .pm file

In Perl I have connected the database using DBI concept. The database connection and select table query is working fine in .pl file. But I have run the DBI database connection code in .pm file. It's not working.  Please review code.  Sample.pl (It's working fine)  use DBI; my $driver = "mysql";      my $database = "marketplace_perl";     my $dsn = "DBI:$driver:database=$database";     my $userid = "root";     my $password = "root";     my $dbh = DBI->connect($dsn, $userid, $password );     my $dbh=connect_db();         my $sth = $dbh->prepare("SELECT UserEmail,UserPassword FROM pj_user where UserEmail=? and UserPassword=?");          $sth->execute($UserEmail,$UserPassword);   Marketplace.pm (It's not working)  package Marketplace; use DBI;     sub connect_db {         my $driver = "mysql";          my $database = "marketplace_perl";         my $dsn = "DBI:$driver:database=$database";         my $userid = "root";         my $password = "root";         my $dbh = DBI->connect($dsn, $userid, $password );        return $dbh;     }      sub login_marketplace {       my $dbh=connect_db();             my $sth = $dbh->prepare("SELECT UserEmail,UserPassword FROM pj_user where UserEmail=? and UserPassword=?");              $sth->execute($UserEmail,$UserPassword);             my $User_count=$sth->rows;     return $User_count      }   It returns the error message of "Failed to access class (Marketplace): Can\'t locate DBI.pm in @INC (you may need to install the DBI module)"  Please let me know how to fix the DB issue.


So it's said that dropping off a pokemon at a gym will grant the player pokecoins. You can get 10 pokecoins per 21 hours per gym up to some maximum.   Does this mean I go to a gym, drop off a pokemon, and then I can immediately claim my 10 pokecoins? Or does the pokemon have to defend a gym for X minutes, or beat Y challengers first?


I was wondering if everyone sees the same Pokémon on the map. If I catch all the Pokémon around me will others be unable to get any?


If the Big Bang started in a state of low entropy then shouldn't the Big Crunch be in a state of low entropy also?

I recently read that:     What our current level of thermodynamics does tell us though is that if there is such a thing as a Big Crunch, the universe will look a lot different as it heads towards collapse than it did when expanding – the universe started in a state of low entropy and high order and will end in a state of high entropy and   low order.   But shouldn't the order be in a high state and hence entropy becomes a low state in the Big Crunch (assuming a closed universe)?  The reason I write this is because the gravitational forces in a closed universe are so strong they will cause gravitational collapse so the universe will shrink and go backwards, eventually through all the stages of the big bang and become a singularity once more.   It was my understanding that a singularity has a state of high order and low entropy. Have I got this the wrong way round?   If so; Can someone please explain why?


NullPointerException for my States in my DFA?

I can't figure out why I am getting a NullPointerException in my code. I am trying to write simulator for a DFA and I have made my a Node type class that holds my states as seen below,  import java.util.Map;   class State{         //fields         Map<String,State> nextStates;          public State passChar(String putIn){             if(!nextStates.containsKey(putIn)){                 return null;              }             return nextStates.get(putIn);         }          /**          * Add a state that this state connects to.          * @param sta the state that this state connects to when          * a letter in the alphabet is passed to it.          * @param pass the letter that is passed to it.          */         public void addNextState(String pass,State sta){             nextStates.put(pass,sta);         }     }   I have tried I the main is in my driving class and is as such,  //Setting up my Q         State q1 = new State();         State q2 = new State();         q1.addNextState("1", q1); //this is where my exception is thrown.         q1.addNextState("0", q2);  Exception in thread "main" java.lang.NullPointerException     at State.addNextState(State.java:25)     at DFA.main(DFA.java:100)


I know there's dozen of posts and discussion everywhere, but I'm getting pretty confused. Everyone has something different to say : use rapeseed oil, coconut, olive oil, flaxseed, someone in the oven, someone on the stove.. I found two good videos, made by professional people, but they use a different process to season them:   and   The eggs are moving much better in the second video than any of my non stick pans, and I would like to obtain that result, and possible mantain it, without removing the seasoning.  Which one do you recon works better? I also have an electric stove, so it may be better using the oven instead.   My knowledge is never to wash them under the water. Just remove the sticky stuff using a spatula, put some oil to keep them well and if you need use salt and a paper towel to scrub. I read that someone is deglazing using some water in the process, or scrub them with a a brush under the water (My old chef told me never to do that so.. I'm a bit confused)  I am seeking help from the experts... :)


How can I make my Unity desktop look like this?

How can I make my Unity desktop like this picture?  I want the position of close/minimize buttons to be on the toolbar beside the address bar like this:    This image looks like Gnome desktop but Ubuntu's menu is like this:     I mean, the close button in Ubuntu is on the top of the address bar but in first image the buttons are integrated in the address bar.


How can I find my Macbook if it was stolen and its offline?

Someone stole my MacBook. How can I find it if it’s offline. I have its serial number if it helps. Please if someone knows, tell me. I have really important stuff on it and I can’t get it back. Thank you so much.


I am new with Crontab and Linux. I am trying to schedule this following command line instruction in Crontab:  speedtest-cli --csv  &>> /home/pi/speedtestLog.txt  I am trying doing it:  */1 * * * * speedtest-cli --csv >> /home/pi/speedtestLog.txt 2>&1  But I am getting the error appended in the file:  /bin/sh: 1: speedtest-cli: not found  How do I resolve it please?


JavaScript window.print() function with excessive details

On my html page, I have a button with an onClick function window.print().  When users press this button (in Chrome) it opens the default printer interface but in the header of the page and in the footer there are some excessive information.  In header, it prints out date and index.html as the name of the html file. In footer it prints the location of index.html file on my computer (C:://...).  How to disable this and print the page as it is presented in the browser?


How long will canned cooked clams last in fridge after opened?

How long will canned cooked clams last after can has been opened- and been refrigerated? OK to eat after 7 days? (No weird smell detected)


How to infer correlations from correlations

I have a question regarding correlation inference. Consider, I have two sets of variables X and Y. For an x element of X I know the correlation to an unknown variable z. I also have the covariance matrix X and Y. Moreover, I know a set of (y1,y2,y3) element of Y, which model best my variable x. So how to infer the correlation of (y1,y2,y3) and z?  I need a function: f(corr(x,z), corr(x,(y1, y2, y3)), cov(X,Y)) --> corr((y1,y2,y3),z)  This might be a very simple question, but I have no idea how to do it or for what I can search in the literature.  Thank you in advance!


Category theory with objects as logical expressions over $\{\vee,\wedge,\neg\}$ and morphisms as?

I am wondering if there is a standard definition for a category with objects as first order logical (FOL) expressions e.g. $\neg x \vee y$. It seems to me that these logical expressions would be part of a concrete category as they can be mapped (forgetfully) to sets, and as many concrete categories (groups etc.) have homomorphisms as morphisms that perhaps homomorphisms are the morphisms in this FOL category.  I am having difficulties visualizing what these homomorphisms would look like - perhaps just some operation $ (\circ,\bullet) $ such that   $f((x \wedge y) \vee z) \rightarrow (f(x) \bullet f(y)) \circ f(z)$ where $(\vee,\wedge) \rightarrow (\circ,\bullet)$  ?  Thanks,  Brian


How do I show that $\sum_{cyc} \frac {a^6}{b^2 + c^2} \ge \frac {abc(a + b + c)}2?$

Let $a, b, c$ be positive real numbers, show that  $$\frac {a^6}{b^2 + c^2} + \frac {b^6}{c^2 + a^2} + \frac {c^6}{a^2 + b^2} \ge \frac {abc(a + b + c)}2.$$  I think this is likely to turn out to be proved by Hölder, but I can't see how. Any hints will be appreciated.


How to echo from specific line of a file to another specific line

Assume I have a file with about 10000 lines.  How can I print 100 lines, starting from line 1200 to line 1300?


I've been browsing but haven't been able to find anything related to this, I want to know if it's possible to make changes to the size and spacing between icons.


Diffuse materials under glass dome turning black (Cycles)

I have what is essentially a glass dome modeled with internal and external faces, but Diffuse materials under it always turn nearly black no matter how smooth or what color the glass is.  To demonstrate, I put a white Diffuse cube under the dome, and you can see how it looks almost completely black. The materials are all really simple with no extra nodes.


Why cron tab not scheduling the cmd in linux

I create a cron by crontab -e and enter: 00 17 * * * mkdir /root/file1  at time 17:00 I don't find a file1 created by cron.... Please tell me what I do....


ERROR: Could not reliably determine the server's fully qualified domain name,

I'm facing a problem after using  $ sudo systemctl status apache2     apache2.service - The Apache HTTP Server    Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)   Drop-In: /lib/systemd/system/apache2.service.d            └─apache2-systemd.conf    Active: active (running) since Sun 2019-09-15 04:16:20 IST; 10s ago   Process: 7043 ExecStop=/usr/sbin/apachectl stop (code=exited, status=0/SUCCESS)   Process: 7048 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)  Main PID: 7053 (apache2)     Tasks: 6 (limit: 4559)    CGroup: /system.slice/apache2.service            ├─7053 /usr/sbin/apache2 -k start            ├─7054 /usr/sbin/apache2 -k start            ├─7055 /usr/sbin/apache2 -k start            ├─7056 /usr/sbin/apache2 -k start            ├─7057 /usr/sbin/apache2 -k start            └─7058 /usr/sbin/apache2 -k start  Sep 15 04:16:20 deb-Inspiron-3542 systemd[1]: Starting The Apache HTTP Server... Sep 15 04:16:20 deb-Inspiron-3542 apachectl[7048]: **AH00558: apache2: Could not reliably determine the server's fully qualified domain name, us** Sep 15 04:16:20 deb-Inspiron-3542 systemd[1]: Started The Apache HTTP Server.   What is the better way to overcome that?  Thanks Debajyoti


If there is a file and the filename starts with a dot in front of it. Does that mean that you created the file and you are hiding stuff in it or can the files get created on their own without you creating the filename. I'm just saying I have files with dots in front of them but I didnt create them.


Why does my hair get stuck to my cathode-ray TV screen after it is switched off?

My dad's old TV! When I switch it off after watching and get my hands closer, my hands' hair gets attached to the screen. And they stick for sometimes! Now, I know how a cathode ray oscilloscope works. It is just the clever use of Hall - Effect . But why does my hair get stuck to the screen? What is the cause? Note, I checked this for my LED TV but it didn't work (I couldn't perceive anything) unknowingly. What's the magic in my old TV??


Why are the zombie's skulls so easily crushable?

This has been bothering me for some time...the zombies seem to have heads without skulls, like over-ripe melons. I realize that their flesh is slowly rotting but bone does not rot! How are the survivors able to crush the zombie’s skulls to destroy the brain so effortlessly?


Finding an angle in an $80^\circ$-$80^\circ$-$20^\circ$ triangle ($60^\circ$-$70^\circ$ variant)

I was given the following triangle with the following initial values:    As I started solving I arrived at the following:    To find $x$ can I use the following rule? The opposite angles of a quadrilateral sum up to $180°$, thus  $$x + 30 + 70 + 10 = 180\\ x = 70$$  Is my answer correct?


guys! I'm pretty sure this will be a piece of cake for y`all, but I'm trying to add pagination to my loop. I've tried some codes that were available around, and got to paginate it, but pages 2, 3, etc had the same content from page 1. What's the best solution for what I have at the moment?  <?php     $recentPosts = new WP_Query();     $recentPosts->query('showposts=5'); ?> <?php while ($recentPosts->have_posts()) : $recentPosts->the_post(); ?>     <article>     </article> <?php endwhile; ?>   Thanks in advance.


It's said the earth is approaching the sun. Can we push it away little by little?  Although we can emit rocket towards the sun, but it's too expensive to make a rocket:    So I think maybe we can recycle the rocket, at first, the rocket is send out with a very fast speed, so give back a big force to the earth. And then, we let the rocket slowly comes back to the earth, and re-send it again:    Well, this solution sounds a little inefficient. Still I don't know if it works. Better ideas?  EDIT  Umm.. It seems the earth is leaving the sun. That's ok. Then, the question is how can we push the earth towards the sun, i.e., correct the orbit by human force? Even if the sun turns into a red giant someday, we may finally find a way to put the earth at a safe position far enough from heat.


Proof that $\mathbb R/[0,1]$ and $\mathbb R$ are homeomorphic

On $\mathbb{R}$ with the usual topology, generate an equivalence relation by $x\sim x$ for all $x$ in $\mathbb{R}$ and $x\sim 0$ for all $x$ in $[0,1]$. Prove $\mathbb{R}/\sim$ is homeomorphic to $\mathbb{R}$.


Can a Basilisk control whether or not its gaze will kill?

Can a Basilisk in the Harry Potter world can turn its killing gaze on and off at will?  Thus allowing it to look at someone it is taking orders from and not harm them or selectively target only non-purebloods.


Definite article before scientific terms

I'm writing up my dissertation and I'm really confused where to use "the". Examples:     In this experiment, (the?) heat transfer coefficient was calculated, allowing to estimate (the?)frost thickness.    And:     Firstly, (the?) air properties are defined.   And:     As (the?) crystals grow in radius, the amount of air in (the?) ice is reduced, due to (the?) ice becoming more packed.   None of the nouns mentioned above have been used for the first time, so I rule out the use of "a".   Would appreciate any help.


I know that $E[x_i] = \sum X_iP_i= \bar{X}$   But I can't quite figure out the probability in the middle step. I can't find any material online to help clarify this. Any suggestions ?


Why do two zoom lenses set to 200mm on the same camera produce different fields of view?

I've been testing out a Nikon 18-200mm F3.5-5.6 against a Nikon 55-300mm F4.5-5.6   I took two pictures of a door knob from an equal distance of about 3 meters away with the same Nikon d7100 DX camera but each with the different lenses both set to the same focal length of 200mm.   To my surprise, the image taken with the 55-300mm lens gave a considerably tighter crop than the one taken with the 18-200.   Is this normal, and if so how is this possible? I was under the impression that the field of view should be the same if both lenses are set to the same focal length. I'm asking this question because I bought the 18-200mm lens second hand and I'm worried there is something wrong with it even though it does appear to be fine.   Here are the example photos. Note the meta data on the images do confirm both were taken at 200mm. I was not using a tripod, so there was probably a slight discrepancy, but I did make sure to sit in the exact same position and leaning back against a wall in the same spot to take the photos. The difference in crop was immediately apparent


I'm a bit confused about this. Which expression is correct?     You can't just do that.    or      You just can't do that.   I'm trying to say:     You can't just bash an ideology because of what someone has said/done.


How to troubleshoot high load, when there are no obvious processes

I'm running Ubuntu 13.10 on a laptop.  Recently, after waking from sleep, I noticed the computer was quite warm, checked top and discovered 1.00 load average.  I shutdown Chrome, various daemons, no effect.  I rebooted and fired up a terminal and checked top again, and watched the load quickly spike to 1.75, and slowly settle down back to around 1.0 - 1.2:  top - 09:49:17 up 36 min,  2 users,  load average: 1.01, 1.10, 1.01 Tasks: 267 total,   1 running, 266 sleeping,   0 stopped,   0 zombie %Cpu(s):  0.9 us,  0.4 sy,  0.0 ni, 98.6 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st KiB Mem:   8069288 total,  2885572 used,  5183716 free,   123652 buffers KiB Swap:  7711332 total,        0 used,  7711332 free,  1661816 cached    PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND                                                                                1420 root      20   0  589m 144m 131m S   3.4  1.8   0:36.49 Xorg                                                                                6233 user1    20   0  986m  83m  31m S   2.7  1.1   0:19.89 chrome                                                                                3708 user1    20   0  749m  19m  12m S   1.8  0.3   0:06.58 gnome-terminal                                                                                3526 user1    20   0 1350m  67m  28m S   1.4  0.9   0:26.19 compiz                                                                                4014 user1    20   0 1022m 126m  52m S   1.1  1.6   0:44.34 chrome                                                                                I checked /proc/loadavg manually, same story:  sudo cat /proc/loadavg 1.20 1.16 0.99 3/614 6254   ps auxwwwf doesn't show any process consuming more than 6.0% of CPU.  iostat:  avg-cpu:  %user   %nice %system %iowait  %steal   %idle            0.63    0.00    0.13    0.00    0.00   99.25  Device:         rrqm/s   wrqm/s     r/s     w/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util sda               0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00 scd0              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00   free -m:               total       used       free     shared    buffers     cached Mem:          7880       2841       5039          0        120       1651 -/+ buffers/cache:       1068       6811 Swap:         7530          0       7530   Clearly some process is saturating CPU, but it doesn't seem to show up on the process list.  Some sort of hidden Linux filesystem checker?  Rootkit?  Any ideas how to find the process in question?


How to search text throughout entire file system?

Assuming that the grep tool should be used, I'd like to search for the text string "800x600" throughout the entire file system.  I tried:  grep -r 800x600 /   but it doesn't work.  What I believe my command should do is grep recursively through all files/folders under root for the text "800x600" and list the search results.  What am I doing wrong?


I see how many edits the users have in . How does SE define the edits in editor list? And how does SE sort the users who have the same number of edits?


I am studying Unix and installed Ubuntu  but cannot update and I cannot solve, plz help me...  Problem  cannot update ubuntu18.10 by Err  What I did for solve  I know the artful does something wrong Searching some questions like this,  but I cannot find which line should be changed at all  deb http://archive.ubuntu.com/ubuntu artful main restricted$       6 # deb-src http://jp.archive.ubuntu.com/ubuntu/ artful main restricted$       7 $       8 ## Major bug fix updates produced after the final release of the$       9 ## distribution.$      10 deb http://archive.ubuntu.com/ubuntu artful-updates main restricted$      11 # deb-src http://jp.archive.ubuntu.com/ubuntu/ artful-updates main restricted$      12 $      13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu$      14 ## team. Also, please note that software in universe WILL NOT receive any$      15 ## review or updates from the Ubuntu security team.$      16 deb http://archive.ubuntu.com/ubuntu artful universe$      17 # deb-src http://jp.archive.ubuntu.com/ubuntu/ artful universe$      18 deb http://archive.ubuntu.com/ubuntu artful-updates universe$      19 # deb-src http://jp.archive.ubuntu.com/ubuntu/ artful-updates universe$   ()  could you explain me?  ERR MSG  E: The repository 'http://archive.ubuntu.com/ubuntu artful Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default.   E: The repository 'http://archive.ubuntu.com/ubuntu artful Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default.


How do I add Python to the Windows PATH?

I want to be able to run Python commands from the Windows CMD. However, if I don't specify Python's full path for each command, I get an error saying "Python is not recognized as an internal or external command, operable program or batch file."  How do I add Python to the Windows PATH permanently?


I'm learning ring theory but just wanted some more information as my notes are limited

Let $\theta : \mathbb{Z}_8 \to \mathbb{Z}_4$ be defined by $\theta([i]_8) = [i]_4$ for all $i \in \mathbb{Z}$. You may assume that this is a well-defined ring homomorphism. Find $\mathrm{Ker}(\theta)$ and exhibit the partition of $\mathbb{Z}_8$ into cosets of $\mathrm{Ker}(\theta)$.   Can anyone please explain to me what $\mathrm{Image}(\theta)$ and $\mathrm{Kernel}(\theta)$ are. I have the definition and I understand the mapping but how is it used? Why is it relevant? I don't even know if these are the correct questions to ask.


PHP Insert String value with Special characters

I am developing Android application and I am trying to insert some data to mysql database, one of the columns is storing the name of the gps location,I read values like this ("Alfa Gas Station"), but when I read unknown place the value become like this (29°17'37.3"N 47°52'23.4"E) and when I try to save it, the php code returns Not registered as shown in my code and I want to save it in my database in this form. when I tried the solution of in this link to prevent SQL-Injection  , It prevent the insertion process but this is not what do I want, I want the code insert the string value whatever it was consisting of, because this value is generated from google map not written by users so it can't be harmful, so I wish anyone can help me:   <?php if($_SERVER["REQUEST_METHOD"]=="POST") {        require "init.php";        creat_Student(); } function creat_Student() {     global $con;     $id=$_POST["id"];     $lat=$_POST["lat"];     $long=$_POST["long"];     $price=$_POST["price"];     $name=$_POST["name"];     $address=$_POST["address"];     $status=$_POST["status"];                                  $query="INSERT INTO  parking (`userid`, `lat`, `long`, `price`, `name`, `address`, `status`) VALUES ('$id','$lat','$long','$price', '$name','$address','$status');";     if(mysqli_query($con,$query)){     echo "Successfully Registered";     }     else      {     echo "Not registered";     }     mysqli_close($con);  }   It works well but it didn't work when it is unknown place , and the name column in my database is 400 Varchar


Does employer matching count toward the yearly 401(k) limit?

The federal government limits how much I can put into a 401(k) per year.  For 2017, I think it's $18,000.  Is this just my contributions, or does it count employer matching?


why is multiplication by n surjective on an abelian variety

I've just read the proof of $\S4$ (iv) in Mumford's "Abelian Varieties", on page 42-43, which says that multiplication by $n$ not divisible by $p=\text{char}(k)$ on an abelian variety $X$ is surjective.  I can understand that it works (as in, I can follow the proof line by line), yet I don't have intuition for it. In particular, I don't understand why does passing to tangent spaces work. It may be my poor understanding of tangent spaces and differentials.  It seems to say something along the lines of "surjectivity of multiplication by $n$" can be checked on first order linear approximations". Does this make any sense? Would this make sense for more general isogenies? A reference where this is discussed in more detail would also be welcome.


I got the basic structure:  <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8">   and the input:  <input type="text" name="var"/>   to get with:  $var = iconv('UTF-8', 'ASCII//TRANSLIT', $_POST['var']); //or $var = $_POST['var'];   and show like:  echo $var; //or print_r($var); //or print_r(iconv('UTF-8', 'ASCII//TRANSLIT', $var));   i try force a new header:  header('Content-type: text/html; charset=utf-8');   and with .htaccess:  AddDefaultCharset UTF-8   and nothing works :( The only things that appears is: jos? instead josé  how solve it?


As you know, GetHashCode returns a semi-unique value that can be used to identify an object instance in a collection. As a good practice, it is recommended to override this method and implement your own.  My question is - do you override this method when working on custom objects? If so, what algorithm do you use to generate the unique ID?  I was thinking about generating a GUID and then getting integer data from that identificator.


How to create an Atlas based on point attributes?

Essentially I am wanting to produce an atlas based on a categorical field in a point layer.   i.e. I have a point layer of childcare providers with the categorical field "Provision". I've categorized each feature in this field with "After School Club" , "Breakfast Club" etc, and I now want to produce a set of maps that iterate through each category and show only the points for each. One map of after school clubs, one map of breakfast clubs etc. The extents might be subtly different.  I could do it one by one but it seems like there should be a way to produce an atlas based on the extents of each category? (I do feel i'm missing something obvious :) )   Or alternatively is there a way of automating the creation of a polygon layer and using that as a hidden coverage for the atlas?  EDIT: I've made a little progress with this  - you can use rule based styling to switch on and off features relevant to the current atlas coverage feature.  it actually works fine if all you want to do is show a different set of points. I'm now looking at tying that back to a color scheme and reactive legend.


Residue fields of schemes of finite type (over $\mathbb{Z}$)

Suppose $X$ is a scheme of finite type over $\mathbb Z$. I want to prove that:  (1) The residue fields of closed points of $X$ are finite;  (2) For a given $q=p^n$ with $p$ prime, there is only a finite number of closed points of $X$ whose residue field is $\mathbb F_q$.  For (1), I see that one has to use some form of Nullstellensatz. First, we suppose $X=\operatorname{Spec}(A)$ affine, and $A=\mathbb{Z}[X_1,...,X_n]/I$. We need to show that if $m$ a maximal ideal of $A$, then $A/m$ is finite. Note $p=\mathbb Z\cap m$. If $p$ is maximal, we get that $A/m$ is of finite type over $\mathbb F_p$ thus a finite extension by Nullstellensatz and we are done. But $p$ could be the $(0)$ ideal in which case I neither conclude nor get a contradiction.  For (2), we can again argue locally, so we need to show that $A$ contains only a finite number of maximal ideals $m$ with $A/m$ of fixed cardinality $q=p^n$. I get an impression that to count these ideals its the same as to count the number of automorphisms of $\mathbb{F}_{q}$ which fix $\mathbb F_p$, but the corrspondence is not bijective, so we only get an upper bound which is enough. Is this idea correct?


Should the preposition 'by' be used before all the gerunds if there are more than one?

Is this grammatically and syntactically correct?     … by a) studying and b) helping   – or should it be:     … a) by studying and b) by helping


Status of the classification of non-finitely generated abelian groups.

From the :     By contrast, classification of general infinitely-generated abelian groups is far from complete.   How far are we from a classification exactly?   It seems like divisible groups have been classified. Which cases are left which we haven't?  What is the nature of these unknown cases that makes them so hard to understand?  Do we have examples of really "out there" infinitely-generated groups that don't fit into any of the current categories?


Java - Class is not returning expected boolean value

I'm sure this is going to be a head-slapper, but I've been battling with this for a couple days, and am failing to see a problem in the code. This is a very minimal example of the code, necessary to demonstrate the issue.  The code is supposed to parse css styles.  I've added comments and println to help visualize the issue.  In the "bold" switch case, the boolean is being assigned false, even though it's clear that the value is "bold". (I demonstrate it actually is a 4 character value.) public class HtmlCssStyle {      public static void main(String[] args) {         var s = new HtmlCssStyle("font-weight:bold;");         System.out.println(s.bold);     }      public Boolean bold = null;          public HtmlCssStyle(String cssStyle) {         Parse(cssStyle);         System.out.println("Bold: " + bold);     }          public void Parse(String cssStyle) {         String[] cssStyles = cssStyle.split(";");                  for(String style : cssStyles) {             String[] parts = style.split(":");             String name = parts[0].trim();             String value = parts[1].trim();                          switch(name) {             case "font-weight":                 System.out.println("bold value: *" + value + "* " + value.length()); // value debug (also demonstrates it is entering case                 this.bold = (value == "bold"); // never assigns the Boolean value                 break;             }         }     } }  My output is: bold value: *bold* 4 Bold: false false  In contrast, this test code works just fine: public class test {      public Boolean myBool = null;          public static void main(String[] args) {         System.out.println(new test().myBool);     }      public test() {         String s = "bold";         this.myBool = (s == "bold");     } }


How to make first letter of each word in the string into uppercase if string has different cases?

var string = "deceMber iS Here"    I tried this but I get an error saying it is not a function.  string.split(" ").toUpperCase()   I want output this way  "December, Is, Here"  edit: This question is not a duplicate. I did lot of search and the links that provided did not meet my need. It is very specific question.


How to give myself permission to edit the locked hosts file on MacOS Mojave?

I am logged in with my admin account, which is my only account on this computer. I checked under preferences and it says "admin".  I have located the file here:   /private/etc/hosts   When I go to getinfo, it looks like the file is not locked. I also added myself and for good measure everyone with r&w permissions:    Still, when I open it and try to edit it, it says I have no permission:    What am I doing wrong here?


Why my bi-weekly salary after taxes doesn't sum up my yearly income

I'm a little bit confused about my paycheck. We have an internal tool that helps me calculate my bi-weekly paycheck, the details are as follows... keep in mind that my F1 OPT status exempts me from Social Security + Medicare.  Annual Salary $100000  Bi-weekly Gross Pay $3,846.15  Federal Withholding $741.26  Social Security $0.00  Medicare $0.00  California $270.79  CA SDI $34.62  Net Pay $2,799.48  Now, my salary is supposed to be 100k per year. Now, let's ignore taxes for a minute, I just want to figure out the logic behind this simple calculation. If I add my Bi-weekly gross pay ($3,846.15 * 2) this means I earn $7692.3 per month, or in other words $92307.6 per year ($7692.3*12). Where did those extra $8k disappear?... What I mean is that by doing this I was expecting to get around 99k. I'm new at calculating taxes, so what is the explanation?


Sequential equation numbering when using 'report' class

I would like to use sequential equation numbering but I am using the  class which defaults to numbering equations within chapters. I would really appreciate if someone could help me with this.


Combining xargs, sed and command substitution

I would expect under bash for the following:   ls *.py | xargs -I{} echo $(echo {} | sed 's/\.py/_2\.py/g')   to list all .py files contained in the directory but with _2 annexed after the file name and before the .py extension.  Yet this is not what happens. It simply lists the .py files in the directory without any change.  In short:  $ ls A.py  B.py  $ ls *.py | xargs -I{} echo $(echo {} | sed 's/\.py/_2\.py/g') A.py B.py   while the output I expected would've been:  A_2.py B_2.py   What happens here and how to get the expected output?


Split video into equal file size parts with ffmpeg

i am trying to split a video file into equal file size parts with ffmpeg.  At first i get the file size of the original and divide it with the desired number of parts to get the file part's file size.  Then i try to do something like :  ffmpeg.exe -y -i video.mp4 -fs 1000000 video-part1.mp4 ffmpeg.exe -y -i video.mp4 -ss [LAST_VIDEO_PART_DURATION] -fs 1000000 video-part2.mp4  but i do not get satisfying results because the -fs does not work as it is required.  The part file sizes become not the same.  Anyone who has a solution for this ?  Thanks !


Can we guess the font, size, spacing , and page boarding size from a picture?

I am really interested in the following kind of typing:   and I would like to type the same. The second picture is zoomed in to be more clear for the reader. Can we guess the font, size, spacing , and page boarding and size  of the writing from the picture attached?  Plus how to get that vertical distance down the Preface? Thank you all. Thank you?


Why isn't Mozilla SeaMonkey available in the repositories? How can I install it?

I wanted to install SeaMonkey on Ubuntu 13.04, but was surprised to see that it was nowhere to be found.  Am I missing something? How can I install it?


How to mount a backup ext4 superblock? I got an error when following instructions

I'm trying to recover stuff after I accidentally formatted an ext4 partition. I'm running the system from a Live USB, and following  to mount a backup superblock. However, I get an error when I'm trying to mount it. Here's what I get:  ubuntu@ubuntu:/$ sudo dumpe2fs /dev/nvme0n1p4 | grep -i superblock dumpe2fs 1.45.3 (14-Jul-2019)   Primary superblock at 0, Group descriptors at 1-31   Backup superblock at 32768, Group descriptors at 32769-32799   Backup superblock at 98304, Group descriptors at 98305-98335   Backup superblock at 163840, Group descriptors at 163841-163871   Backup superblock at 229376, Group descriptors at 229377-229407   Backup superblock at 294912, Group descriptors at 294913-294943   Backup superblock at 819200, Group descriptors at 819201-819231   Backup superblock at 884736, Group descriptors at 884737-884767   Backup superblock at 1605632, Group descriptors at 1605633-1605663   Backup superblock at 2654208, Group descriptors at 2654209-2654239   Backup superblock at 4096000, Group descriptors at 4096001-4096031   Backup superblock at 7962624, Group descriptors at 7962625-7962655   Backup superblock at 11239424, Group descriptors at 11239425-11239455   Backup superblock at 20480000, Group descriptors at 20480001-20480031   Backup superblock at 23887872, Group descriptors at 23887873-23887903 ubuntu@ubuntu:/$ sudo mount -o sb=32768 /dev/nvme0n1p4 /mnt mount: /mnt: wrong fs type, bad option, bad superblock on /dev/nvme0n1p4, missing codepage or helper program, or other error. ubuntu@ubuntu:/$ sudo mount -o sb=98304 /dev/nvme0n1p4 /mnt mount: /mnt: wrong fs type, bad option, bad superblock on /dev/nvme0n1p4, missing codepage or helper program, or other error. ubuntu@ubuntu:/$ sudo mount -o sb=23887872 /dev/nvme0n1p4 /mnt mount: /mnt: wrong fs type, bad option, bad superblock on /dev/nvme0n1p4, missing codepage or helper program, or other error.   What am I doing wrong here?


I need to insert (for example: "ABC") to my wamp db. I'm using str_replace method for this. Code is as shown below:  $currAddr=str_replace(array("'","\"", "&quot;"),"&#39;",htmlspecialchars($_POST["currentadd"]));   I'm trying to replace single quotes with a backslash and double quotes with a &#39 to my db because as per my code single & double quotes cant be inserted directly to db.  This code is not working as I expected. I'm not getting what's wrong in this. Any help here...


Can anyone prove this sentence is in the passive voice?

I don't believe it is, so I'd like the experts to chime in (I'm well versed in the passive, but thought maybe I'm missing some fine point familiar only to Ph.D's in linguistics).  The sentence in question is:       The marathon participants were Harry, Luke and myself.   There are those who claim myself is correct because the sentence is in the passive (???), whereas if we switch it around,     Harry, Luke and myself were the marathon participants,    it all of a sudden magically "becomes" the active voice, so you can no longer use myself, you have to use I.  I have scoured countless off-site sources as well as posts here, yet none of them seems to support the assertion that the first example is in the passive.  Not to mention the fact that if it were truly the passive, we'd have to use me, not myself.     The marathon was participated in by Harry, Luke and me.   EDIT:  So I need proof that the first example is in the passive.


It says outdated server, when I try to join my friends world, got any answers? (V. 1.9)

I try to join my friends server, it says outdated server, got answers? V.1.9


How can I render all render passes to files in Cycles?

How can I render all render passes for all of the frames of an animation in Cycles to different files or a file with multiple layers? I'm going to do the final compositing in another compositing package and I need to have access to the passes.


Why does function modify array[0] but not string in Java?

Code  public class Foo {      public static void main(String[] args) {          //declaring and initializing String variable 'str' with value "outside"         String str = "main";          //declaring and initializing Array 'array' with values         String [] array = {"main"};          //printing values of str and array[0]         System.out.println("str : " + str + " , array[0] : " + array[0]);          //calling function foo()         foo(str, array);          //printing values after calling function foo()         System.out.println("str : " + str + " , array[0] : " + array[0]);     }      static void foo(String str, String[] array){         str = "foo";         array[0] = "foo";     }  }   Output  str : main , array[0] : main   str : main , array[0] : foo   Question  Why does the string str remains same as "main" but the value of array[0] gets modified from "main" to "foo" after calling the function foo()? Shouldn't the effect be the same?


What happens when a familiar from the Find Familiar spell "dies"?

The 5e PHB is pretty unambiguous about familiar "death". Per the  spell description:  When the familiar drops to 0 hit points, it disappears, leaving behind no physical form. It reappears after you cast this spell again.  You can also use the spell to change your familiar's form. Is this familiar, for all intents and purposes, exactly the same being you summoned before? In other words, is familiar death in 5e just a temporary inconvenience, or does it have repercussions of some sort?


ID unknown projection for shapefile in ArcMap?

I am using ArcMap 10.3 and I have a data file with xy coordinates (New York City/State) that I'm trying to project properly.  Having trouble figuring it out and don't have a way to reach whoever created it.  I know there are a million posts on this, but most rely on testing out a bunch of different projected coord. systems after narrowing them down based on the extent.  Here's the extent for this data:  TOP: 5058236.102283 | BOTTOM: 4940052.540569 | LEFT: -8264805.988673 | RIGHT: -8180005.401691  From the above, I guess it'd be a UTM projection (?), but I'm not sure what to do about those negative numbers.  I also have partial address info and geocoded one to try to troubleshoot:  XY geocoded: 40.7218342,-73.9787655  UTM based on that lat/long (easting/northing): 586248.1, 4508380.2  What I have in the data for that point (x/y): -8235276.4, 4971409.736  Nothing I've tried comes even remotely close.    Any ideas?  EDIT: Have an idea what these numbers are (if not a solution).  I gave up on the shapefile above with the wacky XY coordinates and switched to a different shapefile, which had most of the same points but with a projection specified (NAD_1983_UTM_Zone_18N) and added it to a map that was projected using WGS_1984_Web_Mercator_Auxiliary_Sphere.  Later, I was using the "Move to" tool on a point and noted that the pre-populated values in the tool window were in the same wacky coordinates as the other shapefile.  E.g. for the above example, it gave me: -8235272.518, 4971391.237.  My idea is that these are the transformed XY values resulting from the on-the-fly projection, and that the original data somehow had these also.  Maybe it's decimal degrees converted to meters, but relative to the meridian/parallel of the data frame coordinate sys.  That said, I'm not sure what they represent or how to transform them back for use in other maps.


Easy way to check installed software and configurations?

I am wondering if there is an easy way to make sure to get a list of all installed software on an Ubuntu server (both from source and from apt-get). This should hopefully include important data directories and cronjobs. The reason for this is that there needs to be an extra server holding the exact same software as the current machine (same cronjobs, website files, software, databases etc) but there is no documentation or list of what is installed and what is not. (This is a live-production server with always users being online, making a clone is not a feasible option due to the shear size (We are talking 1TB+ of data) and we need to get it documented somehow anyway what is installed and what is important)


Simple symmetric random walk hitting a level within finite steps

give a simple symmetric random walk, denote $\mathbb P_0(T_1 < \infty)$ the probability that starting at $0$ and the first time reaching level 1 within finite discrete time steps. What is $\mathbb P_0(T_1 < \infty)$?  So can I assume that it hits level $1$ within $n$ steps, then use the hitting time thm to calculate the probability? Or is there another way to this?


As someone pointed out this could seems to be a duplicate of another question already posted. Is in fact the same question but I have provided also the effort of the solution and additionally I have shown something else, for instante the proof of the triangular inequality via de Cauchy-Schwarz inequality. Hence is definetly a duplicate but with a better description of the problem and the solution.  Let $\Omega \subset \mathbb{R}^{n}$ open and bounded and let $\mathcal{A}=\{ v \in C^{2}(\overline{\Omega}) \, | \,v=0\, on \, \partial\Omega\}$ with the following scalar product  \begin{equation} (u,v)_{\mathcal{A}}=\int_{\Omega} (\nabla u, \nabla v)_{\mathbb{R}^{n}}dx \end{equation} where $(\cdot, \cdot)_{\mathbb{R}^{n}}$ is the canonical scalar product on $\mathbb{R}^{n}$.   I have to prove that $(\mathcal{A}, \| \cdot \|_{\mathcal{A}})$ is a normed space but not a Banach space, where $\| u \|_{\mathcal{A}}=\sqrt{(u,u)_{\mathcal{A}}}$. Proving that $(\mathcal{A}, \| \cdot \|_{\mathcal{A}})$ is a normed space is quite straightforward, the only point that make me think was the triangular inequality that I solved using the Chauchy-Schwarz inequality, namely \begin{equation} |(u,v)_{\mathcal{A}}|\leq \|u\|_{\mathcal{A}}\|v\|_{\mathcal{A}}, \end{equation} infact if I consider $\| u+v\|_{\mathcal{A}}^2$ I can proced in this way \begin{split} \| u+v\|_{\mathcal{A}}^2= & \| u\|_{\mathcal{A}}^2+2(u,v)_{\mathcal{A}} +\|v\|_{\mathcal{A}}^2 \\ \leq &\| u\|_{\mathcal{A}}^2+2\|u\|_{\mathcal{A}}\|v\|_{\mathcal{A}} +\|v\|_{\mathcal{A}}^2 \\ = & (\| u\|_{\mathcal{A}}+\|v\|_{\mathcal{A}})^2 \end{split} Hence we have proved $\| u+v\|_{\mathcal{A}}\leq \| u\|_{\mathcal{A}}+\|v\|_{\mathcal{A}} $.  But I was stucked on the noncompleteness, I tried to argue as following but I am not sure if it is right. Let $n=1$ and $\Omega=(-1,1)$ and suppose to take the sequence $(u_n)_n\subset \mathcal{A}$, given by  \begin{equation} u_n=\sqrt{1+\frac{1}{n^2}}-\sqrt{x^2+\frac{1}{n^2}}, \end{equation}  I can notice that $u_n \rightarrow u$ when $n\rightarrow \infty$ using for instance the uniform norm, where $u=1-|x|$ that does not belong to $\mathcal{A}$. Hence I found a sequence that converges to an element that is not in the space and consequentely $\mathcal{A}$ is not complete.


How to download and install an add-on hosted on github properly?

I have downloaded an add-on hosted on github today using this green 'Download/Clone' button. However, when I try to install it via User Preferences > Addons > Install it does not appear in the Add-on list, no matter what I do.    Q: How to download and install add-ons hosted on github properly? What am I doing wrong?


I have a script which I checked with shellcheck. To one command I pass arguments/flags as a string and shellcheck complained about it, i.e. I do following options="-j 5 -B" make $options file  instead, they [1] suggest to do the following without explicitly mentioning why it is better options=(-j 5 -B) # ksh: set -A options -- -j 5 -B make "${options[@]}" file  Why is the latter example better than former? [1]


Can two files have the same coordinate system and still don't align /overlap?

I have two shape files, with the same coordinate system (File 1 and File 2). I have defined the Projection/Coordinate System of File 2 in ArcGIS using ArcToolbox using the Data Management Tools/Projections and Transformations/Define Projection.  For selecting the coordinate system. I have used the import button and have it use the same coordinate system of file 2.  Everything seems right the current coordinate system of both files is the same, but the files don’t align /overlap. What is wrong with these files?  The only strange thing that I find is the Units that in both cases are “Unknown Units”.  The data source box of both files is the same :  Data Type:  Shapefile Feature Class  Shapefile:  C:\SIG\Cartografia\Cartas_uso_do_solo\CLC06_PT\CLC06_PT.shp Geometry Type:  Polygon Coordinates have Z values:  No  Coordinates have measures:  No   Projected Coordinate System:    ETRS_1989_Portugal_TM06 Projection: Transverse_Mercator False_Easting:  0.00000000 False_Northing: 0.00000000 Central_Meridian:   -8.13310833 Scale_Factor:   1.00000000 Latitude_Of_Origin: 39.66825833 Linear Unit:    Meter  Geographic Coordinate System:   GCS_ETRS_1989 Datum:  D_ETRS_1989 Prime Meridian:     Greenwich Angular Unit:   Degree


When light moves through an object and then slows, where does the lost momentum of the light goes?


Work out the percentage of the day that has elapsed

Slightly strange question, but hopefully someone can help.  In essence, if the time was 12pm the the elapsed percentage would be 50%, 6am would be 25% and 16pm would be 75%.  Given the current time, how could you work out the amount of day that already passed?


Inserting Colored text into a RichTextBox

I have a rich textbox where the user can select keywords from a list and they will be inserted in a different color. The user can also enter their own text. The program will be used to build SQL snippets.   For example, text entered by the user will be black, and keywords from that list will be in blue.  I've seen several examples of appending words of different color, but no examples of inserting words of different colors.  Below is what I have tried          public void InsertText(Color color, string text)     {         var startposition = _richTextBox.SelectionStart;         var endposition = startposition + text.Length;          _richTextBox.Text = _richTextBox.Text.Insert(startposition, text);         _richTextBox.Select(startposition, endposition - startposition);         _richTextBox.SelectionColor = color;         _richTextBox.Select(endposition, 0);     }   the problem with this code if text is inserted anywhere except at the end, the rest of the paragraph does not retain the color it had previously. Is there a way to insert text of a different color, while not interfering with the formatting of the rest of the text?


What is the emblem in the top right corner of the screen next to the rupees when you're looking at the map? I've looked all over and can't find it but I have noticed that it changes frequently.


Let $v_1, v_2,\dots, v_n$ be a basis of the vector space $V$. Let $k$ be an integer such that $1 \leq k \leq n$, and put $U = \operatorname{Span}\{v_1, . . . , v_k\}$ and $W = \operatorname{Span}\{v_{k+1}, . . . , v_n\}$.  I want to show that $V = U\oplus W$.  Would it be enough to prove that $U$ and $W$ are bases of $V$ using linear independence, and then show that there are unique $v\in V$ for every $v = u + w$?


How to get list of employees in each department seperated by comma

I have tried below one using XML Path but getting error.      Conversion failed when converting the varchar value ',' to data type int.   Can you correct the below query.  SELECT STUFF((SELECT ',' + COUNT(E.EMployeeId) FROM EMployee E WHERE E.DepartmentId IN(SELECT DepartmentId FROM Department)              FOR XML PATH(''), TYPE).value('.', 'VARCHAR(MAX)'),1,1,'')    Required Output  5,7,8,9


How to keep minipage close to where it was introduced

I'm writing up a document with a few minipages that keep getting pushed to the end of the document. My minipage is a 4x4 grid of subfigures with a width of \textwidth and a height of 16cm. I understand that the reason that the minipage is being put at the bottom of my document is because LaTeX considers it "too tall" and puts it at the next available spot (at the end). However, I don't think that the minipage is too large to fit near its location in my document. Is there a work around to keep the minipage close to where it occurs in the text?   The code I used is attached below:   \begin{figure}[t] \begin{minipage}[t][14cm][t]{\textwidth}     \begin{subfigure}[t]{0.25\textwidth}         \includegraphics[height=1.3in]{fig11.eps}     \end{subfigure}%     \begin{subfigure}[t]{0.25\textwidth}         \includegraphics[height=1.3in]{fig12.eps}     \end{subfigure}%     \begin{subfigure}[t]{0.25\textwidth}         \includegraphics[height=1.3in]{fig13.eps}     \end{subfigure}%     \begin{subfigure}[t]{0.25\textwidth}         \includegraphics[height=1.3in]{fig14.eps}     \end{subfigure}%       \subcaption{Subcaption 1} \par\vspace{0.125in}      \begin{subfigure}[t]{0.25\textwidth}         \includegraphics[height=1.3in]{fig21.eps}     \end{subfigure}%     \begin{subfigure}[t]{0.25\textwidth}         \includegraphics[height=1.3in]{fig22.eps}     \end{subfigure}%     \begin{subfigure}[t]{0.25\textwidth}         \includegraphics[height=1.3in]{fig23.eps}     \end{subfigure}%     \begin{subfigure}[t]{0.25\textwidth}         \includegraphics[height=1.3in]{fig24.eps}     \end{subfigure}%       \subcaption{Subcaption 2} \par\vspace{0.125in}     \begin{subfigure}[t]{0.25\textwidth}         \includegraphics[height=1.3in]{fig31.eps}     \end{subfigure}%     \begin{subfigure}[t]{0.25\textwidth}         \includegraphics[height=1.3in]{fig32.eps}     \end{subfigure}%     \begin{subfigure}[t]{0.25\textwidth}         \includegraphics[height=1.3in]{fig33.eps}     \end{subfigure}%     \begin{subfigure}[t]{0.25\textwidth}         \includegraphics[height=1.3in]{fig34.eps}     \end{subfigure}%       \subcaption{Subcaption 3} \par\vspace{0.125in}     \begin{subfigure}[t]{0.25\textwidth}         \includegraphics[height=1.3in]{fig41.eps}     \end{subfigure}%     \begin{subfigure}[t]{0.25\textwidth}         \includegraphics[height=1.3in]{fig42.eps}     \end{subfigure}%     \begin{subfigure}[t]{0.25\textwidth}         \includegraphics[height=1.3in]{fig43.eps}     \end{subfigure}%     \begin{subfigure}[t]{0.25\textwidth}         \includegraphics[height=1.3in]{fig44.eps}     \end{subfigure}%       \subcaption{Subcaption 4} \par\vspace{0.125in} \end{minipage} \vspace{0.125 in} \caption{Caption} \end{figure}


How to hide Authoring information,Revision information,Publishing options tabs in create/edit node for any content type

I am trying to hide Authoring information, Revision information, Publishing options tabs in create/edit node for any content type. I tried different modules with no luck. Please give me suggestions how to achieve this. Thanks a lot


I'm on Ubuntu-gnome 15.04 Vivid which includs gnome-shell 3.14  Is there anyway to update shell to 3.16 or 3.18 ?


Laptop power supplies, does current matter?

I have two laptops (same manufacture), with the same type of power connector.  However, the power supplies/transformers are slightly different.    The output on the first laptop's power supply is 15.6 V at 8.0 A. The output on the second laptop's power supply is 15.6 V at 5 A.  Clearly the voltages are the same, but the currents are different. I assume the second laptop's power supply can not be used on the first, because it can't supply enough power to the laptop.   However, can the first laptop's power supply be safely used on the second laptop?


How to find the generating function for $a_n = \binom{2n}{n}$?  Using Mathematica, I get $A(z) = \frac{1}{\sqrt{1-4z}}$ and I am able to verify it.  However, how to derive it, e.g., from basic generating functions?


I'm having trouble understanding the mechanics of invisibility, so I'd like to propose a scenario, as an example, which I don't know exactly how to handle as a GM.  Let's say my group is about to fight an Invisible stalker. The creature surprises them and a combat begins. At this point, at the very least the character who got attacked knows the location of the creature, right? It's a melee attack after all.  But what happens if the stalker walks around every round? Do they have to make a Perception check to find out on which square of the board the monster is EVERY round?  I guess what I'm trying to understand is exactly when do the characters have to guess the square where they think the invisible creature is, and when do they just know it.


Installation challenge: UEFI only cannot boot from external device 32 bit cpu HELP!

Preramble: I got this very cheap ($79) Windows 10 computer because I'll be travelling and don't want to worry about losing it.  For previous travels I developed a script to capture my GPS log and pictures and made a blog page with map from them.  That computer is heavy and sickly.    The Ematic EWT8268K has a hobbled UEFI which does not allow booting from an external device (no EFI mount command). The CPU is Intel Atom Z373SG. 1GB RAM  The SSD is 32GB and I can put in a 32GB microSD  What is the very manual process for putting Ubuntu on the microSD?  I can modify the existing boot manager.  There is some incantation to which I am not privy.  Can someone help with this challenge?  OSD


"In person" equivalent for inanimate objects

This is much easier to explain by example. So you might hear someone say this photo of her is ok, but she looks much better in person.  I am looking for the equivalent of "in person" that applies to things, e.g.,      A photo of the house is on the museum's homepage, but it is more impressive [in person].   There doesn't seem to be a concise, elegant way to say this, though it seems there should be, perhaps a latin phrase like in corpore (that's not it).


recieving "java.lang.NullPointerException: error while geting list of files in android

I have problem when I want to get my fonts form my dataBase.  This is my Activity :  public class Arrange_fur_secondaryActivity extends AppCompatActivity {     @Override     protected void onCreate(Bundle saveInstanceState) {         super.onCreate(saveInstanceState);         setContentView(R.layout.activity_warning);          String path = Environment.getExternalStorageDirectory().toString()+"/database";         Log.d("FilesFilesFiles", "PathPathPath: " + path);         File directory = new File(path);         File[] files = directory.listFiles();         Log.d("FilesFilesFilesFiles", "SizeSizeSizeSize: "+ files.length);         for (int i = 0; i < files.length; i++)         {             Log.d("Files", "FileName:" + files[i].getName());         }     } }   And My Logcat Error :  **019-11-12 21:36:25.504 24221-24221/sungjusin.gatag3 E/AndroidRuntime: FATAL EXCEPTION: main     Process: sungjusin.gatag3, PID: 24221     java.lang.RuntimeException: Unable to start activity ComponentInfo{sungjusin.gatag3/sungjusin.gatag3.Arrange_fur_secondaryActivity}: java.lang.NullPointerException: Attempt to get length of null array         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2913)         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048)         at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)         at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)         at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)         at android.os.Handler.dispatchMessage(Handler.java:106)         at android.os.Looper.loop(Looper.java:193)         at android.app.ActivityThread.main(ActivityThread.java:6669)         at java.lang.reflect.Method.invoke(Native Method)         at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)      Caused by: java.lang.NullPointerException: Attempt to get length of null array         at sungjusin.gatag3.Arrange_fur_secondaryActivity.onCreate(Arrange_fur_secondaryActivity.java:34)         at android.app.Activity.performCreate(Activity.java:7136)         at android.app.Activity.performCreate(Activity.java:7127)         at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2893)         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048)          at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)          at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)          at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)          at android.os.Handler.dispatchMessage(Handler.java:106)          at android.os.Looper.loop(Looper.java:193)          at android.app.ActivityThread.main(ActivityThread.java:6669)          at java.lang.reflect.Method.invoke(Native Method)          at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)  2019-11-12 21:36:25.527 24221-24221/sungjusin.gatag3 I/Process: Sending signal. PID: 24221 SIG: 9**


Is it possible to set up and watch a game between just computer AI opponents?

No human players, just AI and have the ability to scroll around and see what the AIs are doing with the turn management being also automated, so the AIs just end turn when they are done. Oh, and all of this hopefully without any sort of fog of war.  This way, I can see how the AI manages resources and units and maybe learn a thing or two as a civ newb.


Did the Resistance know about Starkiller Base and if not, how was it hidden so well?

I don't recall this being explained in the movie, but did the Republic/Resistance have any idea the Starkiller base existed before it       Completely obliterated the Hosnian Prime system?   Did no one notice the fact that something way bigger than the Death Star was wandering around the area eating entire stars for nefarious purposes? Surely a patrol or a trade ship would have noticed something while the Starkiller was being constructed, or someone would have noticed the massive amount of supplies being obtained by the First Order to build the Starkiller that probably took a couple of years to build, and someone would have investigated.  Or was the First Order that good at playing hide and seek with an entire planet of death?


Why do we use two parallel capacitors in a voltage regulator circuit?

C1 and C2 are parallel capacitors and their total capacitance is 1000.1 uF. I think C1 is large enough and I can remove C2 from the circuit. The result will be an open circuit.  Let's assume that I can buy one capacitor that has the value of 1000.1 uF. I know I can't do it in the real world because a 1000.1uf capacitor does not exist in the shops but the question will help me understand the circuit well.  Can I replace C1 and C2 with the 1000.1 uF cap? Does this 0.1 uF really matter? Is it important?


What do you think would happen if Hiccup and Toothless find more Night Furies? Would they accept Toothless the way that he is?


how to cat an input file to an output file, adding a blank line between every two lines of the input file (double spacing)?

Without using SED, is there shell script to copy the content from an input file to a output file, adding a blank line between every two lines of the input file (double spacing)? I


I've read in some Skyrim related sites that many players have had problems with: 1) Items in their inventory that are related to quests but don't work as expected. (Plantea's flute, amulet of Talos, the 4 little things used in The Lost Ages quest, etc.) 2) Related issues to quest that requires an event to trigger it. (The Lost Ages won't become active even when you read the book The Aetherium Wars. Another example is when you kill the Boethia's priest, if you read the book while it's on his body will make the Ebony Mail inaccessible at the end of the Boethia's Calling quest) 3) Visiting places that store special items related to a quest or not talking to people that gives you quests before you enter and "clean" those places. Probably there are more common issues, but now I just remember those. I've already asked: . The comments left by Batophobia were useful and I hope I can explain myself better this time. According to my own experience, those problems could've been avoided if I'd have known the right order. (Instead of killing everyone in a cave, first I should talk to X or read Y, for instance) So, what I'd like to know is the right order of missions. What I've tried is to finish a quest as soon as I get it, but not always work: when I'm in the middle of a quest and I get another, and if I start the second when I finish the first, sometimes is too late. I'm not asking about a specific quest, I know. And I know this is not allowed in this forum. If you find this question too broad, please let me know how I should ask, because I haven't been able to play Skyrim without these issues and I'm getting tired of them. In  question I got this comment: In that case I suggest saving and trying it. Worrying about every single potential bug in a Bethesda game will drive you crazy. –  kotekzot. Call me crazy then, but I want a bug- or glitch-free Skyrim play. I'm playing on Xbox. Feel free to edit and/or to penalize this question; English is not my native language.


Finding the train station at Copenhagen airport

My son is traveling for the first time by plane, although he is 24 years old. He will travel by plane from Zagreb to Copenhagen (on 28.2.) and he has to take a train to Odense. I'm wondering is it difficult to find train station at the airport (could he walk from terminal 2 do train station) and how he would manage to get on the right train. He has his train ticket already.


70s-90s animated series about a girl in a wheelchair and her guardian lady

I remember an animated series from the mid nineties of a girl who is in a wheelchair and gets visited by a lady in a small bubble who could be considered as her guardian angel, this bubble gets bigger and this girl walks into it and goes to have many adventures. I do not remember that part well, but her foe is a really terrifying demon, even for an adult, made of fire who tries to catch the bubble but can't do anything to it and turns some people into vermines and other lower life forms when they fail. I'm assuming it is from the late 70s to early 90s but I'm not sure.


Modify a file without creating another file

Is there a way to modify a file without writing the contents to another file, without sed and awk?  For example:  $ cat test.txt aaa aaa bbb ccc ddd   Replacing using sed with -i option, sed -i 's/aaa/NNN/g' test.txt will produce the following:  NNN NNN bbb ccc ddd   How to do that without awk and sed?