I prepared a document in XeLaTeX in Linux, fonts embedded, then I went to a printing guy on windows + lots of Adobe tools, and pdf looks the other way on his machine: some fonts get scaled which results in a slightly deformed layout.  How do You get a portable pdf?  My first thought is to convert pdf to ps with a virtual printer (CUPS in case of linux).  One other possible solution is to embed fonts in the ps resulted:  ps2pdf14 -dPDFSETTINGS=/prepress document.ps   Edit:  MWE:  \documentclass{article}  \usepackage{fontspec}  % fonts: \defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text} \setmainfont{DejaVu Sans} \setsansfont{DejaVu Sans} \setmonofont{DejaVu Sans Mono}  \usepackage{fontawesome}  \begin{document}  \faBullhorn test.  \end{document}   In okular:    In Adobe Reader:    You see in Adobe the glyph is larger. How do I process pdf so that it is displayed in the same way in any major pdf viewer?  Edit 2:  The problem with scaled font is solved if I open the pdf and export it to pdf with  -- but its free version warns me about the watermark (which I actually can't find).  Export to pdf in  doesn't help.  Printing to pdf in virtual CUPS printer doesn't help. Moreover after piping pdf through CUPS adobe reader doesn't see the glyph at all.
The following example must be compiled with XeLaTeX to reproduce the issue.  % arara: xelatex \documentclass{article} \usepackage{fontawesome} \begin{document} Text Text \faMobilePhone\ Text Text \end{document}   Normally I am using TeXworks to compile and view the output. With the internal viewer I am getting the desired result. The following image demonstrates it:    However if I open the pdf with Preview (viewer of Mac) the scaling of the icon fails.     If I open the pdf file with Adobe Acrobat Reader the icon is still scaled correctly. If I print the page my printer is also not able to scale the icons correctly.   If I use LuaLaTeX everything seems to work correctly.   Can you reproduce the issue and do you know a solution?
Ubuntu 14.04 doesn' t boot after upgrade from 12.04 installed inside Windows 8.1 I have Ubuntu 12.04 installed like an app on windows 8.1 (Ubuntu 12.04 allow to be installed like an app in Windows 8.1 and it can be removed when you don't need it any more from Control Panel). Usually, to chose what os to boot when you start the laptop, you can choose between windows 8.1 and Ubuntu after windows logo appeared at start up and that was ok until I made this upgrade. Now when I try to choose Ubuntu the laptop try to boot it but, after that full colored screen is showed the screen go black and this messages appear:  mount: mounting /dev/loop0/ on /root failed : Invalid argument mount: mounting /dev on /root/dev failed: No such file or directory mount: mounting /sys on /root/sys failed: No such file or directory mount: mounting /proc on /root/proc failed: No such file or directory Target filesystem doesn' t have requested /sbin/init No init found. Try passing init = bootarg.  BusyBox v1.21.1 (Ubuntu 1:1:21.0-1ubuntu1) built-in shell (ash) Enter 'help' for a list of built-in commands  (initramfs) _   I don' t know what to do after this screen appears. Please help ! My Mac Book Pro 13.-" doesn´t get past the grey booting screen with the apple and the spinning wheel (The loading bar appears but when it´s done nothing happens)   I have 220 GB in one single Partition (Macintosh HD) and there is all my work my music and the only copy of ALL MY PHOTOS. I´m so stupid I don´t have a backup of anything but know I have an external HD with 300GB space. I would like to repair my HDD but more important I need to save my files but I don´t know how to do it in Disk Utility Mode. I read there is a Diskwarrior but I don´t know how to install it without booting the mac. Please help!!!  When I start on Single User mode and enter /sbin/fsck -fs this appears  Executing fsck_hfs (version diskdev_cmds-557-393)  Checking Journaled HFS Plus volume.  The volume name is Macintosh HD  Checking extents overflow file.  Checking catalog file  Incorrect number of thread records  (4, 23745)  Checking multi-linked files.  Checking catalog hierarchy  Invalid volume directory count (It should be 175703 instead of 175701) Checking extended attributes file.  Incorrect number of extended attributes (It should be 340062 instead of 340064)  Checking volume bitmap.  Checking volume information.  The volume Macintosh HD could not be repaired after 3 attempts.  *****The volume was modified *****   What are the next steps if fsck fails to repair a drive? Coulomb's Law states that the fall-off of the strength of the electrostatic force is inversely proportional to the distance squared of the charges. Gauss's law implies that the total flux through a surface completely enclosing a charge is proportional to the total amount of charge. If we imagine a two-dimensional world of people who knew Gauss's law, they would imagine a surface completely enclosing a charge as a flat circle around the charge.  Integrating the flux, they would find that the electrostatic force should be inversely proportional to the distance of the charges, if Gauss's law were true in a two-dimensional world. However, if they observed a $\frac{1}{r^2}$ fall-off, this implies a two-dimensional world is not all there is. Is this argument correct? Does the $\frac{1}{r^2}$ fall-off imply that there are only three spatial dimensions we live in? I want to make sure this is right before I tell this to my friends and they laugh at me. How can I send an email by Java application using GMail, Yahoo, or Hotmail? Is it possible to send an email from my Java application using a GMail account?  I have configured my company mail server with Java app to send email, but that's not going to cut it when I distribute the application. Answers with any of using Hotmail, Yahoo or GMail are acceptable. We're injecting records into a journey using a Salesforce data event.  I also want to advance the people in the journey based on updates that happen in Salesforce (e.g., as an Opportunity record advances through the sales process), but I can't figure out how to do that.  I've read all the documentation I can find, but there doesn't seem to be a Journey Builder widget that will wait to be prompted by an event in Salesforce before continuing someone on a journey.  At the moment, I'm completely stuck.    I'd greatly appreciate any advice or information on how I can make journeys event-driven in this way.  Thanks very much! Self-deleted posts and the 3 vote / 60 day rule With regards to  post about  and the part about retaining reputation earned from deleted posts that have a score of 3 or better and were visible on the site for 60 days, does this also apply to self-deleted posts and will it continue to do so? I culled a few of my own answers over the weekend that were less than stellar, and my reputation dropped 1.8k, but the rep is back today after the changes were announced. I thought it would be useful to clarify that this also applies to self-deleted stuff. I'd like to be able to tail the output of a server log file that has messages like:  INFO SEVERE   etc, and if it's SEVERE, show the line in red; if it's INFO, in green.  What kind of alias can I setup for a tail command that would help me do this? How do you access the matched groups in a JavaScript regular expression? I want to match a portion of a string using a  and then access that parenthesized substring:  var myString = "something format_abc"; // I want "abc"  var arr = /(?:^|\s)format_(.*?)(?:\s|$)/.exec(myString);  console.log(arr);     // Prints: [" format_abc", "abc"] .. so far so good. console.log(arr[1]);  // Prints: undefined  (???) console.log(arr[0]);  // Prints: format_undefined (!!!)   What am I doing wrong?    I've discovered that there was nothing wrong with the regular expression code above: the actual string which I was testing against was this:  "date format_%A"   Reporting that "%A" is undefined seems a very strange behaviour, but it is not directly related to this question, so I've opened a new one, .    The issue was that console.log takes its parameters like a printf statement, and since the string I was logging ("%A") had a special value, it was trying to find the value of the next parameter. What packages do you use and recommend for creating graphics in your LaTeX documents?     As this is a community wiki post, please add your package to the accepted answer (or add a comment, and someone with >100 rep will add it to the CW answer), and include a brief description of what differentiates it from others and how it can be used (GUI drawing tool which generates code, type in raw text, or generates image for inclusion in document).   We'll eventually sort these answers under headings. Probably a novice question, but how do I correctly diagnose from a photo for what reason that camera wasn't able to focus properly?  It can be any 1 of the following   Unsteady hand Lens issue Metering Re-Calibration required in camera or ...   Is there a set of unsaid protocols that needs to be followed by a photographer?  Goal is to get a sharp and crisp image prior to editing.  [PS: I own a Nikon D5200.] What is purpose of /etc/shadow and shadow cache files in Linux operating system? What is the purpose of the /etc/shadow file in Linux Operating system?  Also, is it same for SUSE clients? There is one shadow cache file is maintained what is purpose of that? When does the set enter set theory? What exactly do quotation marks around the table name do? I thought that the quotation mark (") was simply a type of grouping marker but I'm debugging some NHibernate code and notice that while  SELECT * FROM site WHERE site_id = 3;   Works fine  SELECT * FROM "site" WHERE site_id = 3;   fails with a table or view does not exist error.  What gives? Combinatorics - binary - very interesting question I tried to solve this problem without any success. I really hope that you will know the answer. $f(n,m)$ presents the number of binary strings (empty string included) that include at most n times '1', and at most m times '0'.      Prove: $$f(n,m) = \binom{n+m+2}{n+1}-1$$ When I was at school and learning integration in maths class at A Level my teacher wrote things like this on the board.  $$\int f(x)\, dx$$  When he came to explain the meaning of the $dx$, he told us "think of it as a full stop".  For whatever reason I did not raise my hand and question him about it.  But I have always shaken my head at such a poor explanation for putting a $dx$ at the end of integration equations such as these.  To this day I do not know the purpose of the $dx$.  Can someone explain this to me without resorting to grammatical metaphors? Proof of $(a+b)^{n+1}$ I have to do proof of $(a+b)^n$ and $(a+b)^{n+1}$ with mathematical induction.  I finished the first one $(a+b)^n = a^n + na^{n-1}b+\dots+b^n$.  I however have trouble with the second one, I don't know what to start exactly. Any help/hints? Review counts in top-bar and /review don't match So far, I thought that the number shown in the orange box in the top-bar was the number of items available for review. However, when I acually visit /review, the numbers don't match:    Note that top-bar shows 15 items (?) but the queues only add up to 8.  Since I can't think of a reason for this being by design (which, as experience shows, is not a good indicator for "this is not an SE feature) I'm tentatively labelling this a (UI) bug. Currently the migration path options from SO are:   Meta.SO Serverfault SuperUser Webmasters Programmers   If we are going to be limited to 5 options, shouldn't we periodically re-evaluate which sites are most appropriate?   (10k only) indicate that the top sites for the last 90 days are:   Superuser - 564 - 5% rejected ServerFault - 278 - 10% rejected Tex - 157 - 13% rejected DBA - 144 - 2% rejected Sharepoint - 127 - 1% rejected Programmers - 126 - 26% rejected CodeReview - 100 - 3% rejected Meta.SO - 81 - 18% rejected Wordpress - 75 - 14% rejected Webmasters - 58 - 8% rejected   All these migrations for sites out of the list required a flag and a moderator to process it.  This is just extra work for the mod team!  If we had the top 5 destinations by volume as the 5 options, we would have had a net savings of 160 flags to be processed.  I suspect we will actually see these numbers change quite a bit if it's easier for users to put questions in the appropriate spot without moderator intervention.  Can we have a review of the migration path list based on migration volume?  Think of the flags! Ubuntu 18.04 opening system settings logs me out How should I handle taxes for Minecraft server donations? I run a Minecraft server and there is a donation button so players can help support the costs. I pay out of pocket for the rest, it's $125/mo.  The money they donate goes right to paypal which is where the automatic payment to the server happens, so it works out nice as it will just pull the remaining amount from my account.  Do I need to claim the donations as income? Can I somehow write off the server costs? Etc.