Ran into the following exception parsing XML generated from inputs: org.xml.sax.SAXParseException: Zeichenreferenz "&# at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)  I traced the problem down to an input string containing the character 0x1f, an invisible "UNIT SEPARATOR" character:  I had to copy the input into a text file to make it visible:  Tested the input-string in other places and also ran into problems like: Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: XML parsing: line 1, character 149, illegal xml character at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:262) at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1632) at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(SQLServerPreparedStatement.java:602) at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtExecCmd.doExecute(SQLServerPreparedStatement.java:524) at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7418)  What would be the best way to strip such characters from an input string, are there other problematic characters for XML which should be removed?

There are a variety of characters that are not legally encodeable in XML 1.0, e.g. U+0007 ('bell') and U+001B ('escape'). Most of the interesting ones are non-whitespace 'control' characters.    It's clear from (e.g.)  and others that it's  -- but can anyone illuminate me as to why the XML spec forbids these characters?   It seems like it could have been required that they be encoded in escapes, e.g. as &#x0007; and &#x001B; respectively, but perhaps there's a practical reason that the characters were forbidden rather than required to be escaped?  Answerers have suggested that there is some motivation towards avoiding transmission control characters, but Unicode includes many other control-like characters (consider U+200C "zero width non joiner"). I recognize there may be no good reason for this behavior, but I would still like to understand it better.  It's particularly frustrating because when those character values appear in other encodings data formats, I end up "double-escaping" new XML documents that need to encode this.


I'm new to PHP, but I've noticed just about every PHP file has a security snippet, "Die if not accessed in the correct manner" script at the beginning; my question, does a child-theme functions.php need something like this as well to make it secure?  PHP:  if ( ! defined( 'ABSPATH' ) ) {     die( 'Direct Access Not Permitted' ); }

I've run across the following snippet in themes from time to time:  if ( ! defined('ABSPATH')) exit('restricted access');   It's at the beginning of some (all?) PHP files in a theme and it's supposed to prevent direct access of the file by nefarious sources.  I see that this isn't included in Twenty Ten or Eleven and I've never seen it recommended in official WordPress documentation. It seems like a good idea to me, but I also don't know enough about security to judge it and can't find much with Google.  Is this something I should have in my custom themes? If so, should it be in all PHP files or just some?


I generally bake cakes in a microwave (because I don't have an oven) and all of them have a spongy texture. Is there any non-oven method where my cake has a little bakery style cake like structure?

Is there a difference in the output or in the procedure when baking cakes in the Microwave ovens as compared to Electric ovens?  What are the basic and crucial differences found among cakes baked in the above mentioned different equipments?    Question: If we run the microwave (which has a convection feature) on "grill and convection" mode only, does it become same as rectangular ""? Please explain why and how too.


I have created a field with Advanced Custom Fields that is a number field to be used as a counter. In functions.php i have created my shortcode function, and has this part: <a href="https://myurl.com/wp-content/themes/child/dl.php?href=<?php echo esc_url( $link_url ); ?>&id=<?php echo $postid; ?>" target="_blank">Download  And in the file dl.php i only have this: if ( $_GET['href'] && $_GET['id'] ) {     $count = (int) get_field( 'download_counter', $_GET['id'] );     $count++;     update_field( 'download_counter', $count );     header( 'Location: ' . $_GET['href'] ); } else {     header( 'Location: https://myurl.com/' ); }  But I get "HTTP ERROR 500 Page not found!" Before doing that, in my functions.php i put the same code and with every refresh of the page the counter worked. Does anyone know why it doesn't work in the file dl.php?

I want to use the get_option() function of wordpress in one of my theme's files, which is not related to WP, it is just located in the same directory of the other theme files. I need this file because of some extra IPN paypal related actions, but I need some values from the options table that exists in WP to be called in this page in order for it to work. I know I can't just use get_option() as this file is overlooked by wordpress. Is there any approach by including some parts of wordpress in my theme to make this functionality only work?


I am getting the following error when image styles are being created on my Drupal 7.24 site:     mod_fcgid: stderr: PHP Fatal error:  Allowed memory size of 134217728   bytes exhausted (tried to allocate 73834563 bytes) in   modules/system/image.gd.inc on line 237"   My style is doing a scale and crop down to 300x200.  I know this could be a problem with my memory limit, which is currently 128M.  As this is high, this doesn't seem like an issue.   Could it be from the use of the " module for my image names?

I have a issue with my Drupal installation, for example:   when I enable or disable the modules, It redirects me to a blank page, when I create a new content type and save it, redirects me to a blank page, when I add a new view and save it, it redirects me to a blank page, when I try to clear the cache, it redirects me back to a blank page, or in similar cases.   Basically all the confirmation pages redirect me to a white screen. When I refresh it again, it shows me the page. I tried to increase the PHP memory value but it doesn't help.  Are there any other solutions for this?  The error which I'm having:      Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 8192 bytes) in sites/all/modules/views/plugins/views_plugin_localization_none.inc on line 1


$N$ is a positive integer. I want to calculate this limit, but i couldn't get anywhere when i tried.  $$P[n]=\left(1+\frac {1}{n^2}\right)\left(1+\frac {2}{n^2}\right)\cdots\left(1+\frac {n-1}{n^2}\right)$$ as $n\to \infty$  I tried to apply $\ln()$ at both sides to transform into a sum etc.. tried to use functions to limit the superior and inferior intervals of the function like this: $$\exp\left(\left(n-1\right)\ln\left(1+\frac1{n^2}\right)\right)<P[n]<\exp\left((n-1)\ln\left(1+\frac{n-1}{n^2}\right)\right)$$ The only thing I get is that: $1<\lim(P[n])<e$  Can anyone help me to solve this?

How can we compute the following limit:     $$\lim_{n\to\infty}(1+1/n^2)(1+2/n^2)\cdots(1+n/n^2)$$   Mathematica gives the answer $\sqrt{e}$. However, I do not know to do it.


I'm having a problem with JavaMail and I just can't understand it. I want to search trough my mailbox for a mail with a certain subject (1234 in this case). I'm getting the subject with message.getSubject() and put it in an if statement and look if it's equal to 1234, but it gives me a NullPointerException every time. The weird thing is that if I'm trying to just printout the subjects of the mails (without the if statement), nothing seems to be wrong.   This is the code:   Folder inbox = store.getFolder("INBOX"); inbox.open(Folder.READ_ONLY);  //Get all messages from inbox Message[] messages = inbox.getMessages();  for (int i = 0; i < messages.length; i++) {     if (messages[i].getSubject().equals("1234")) {          System.out.println("Message found");     } }   This is the error:  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException   At the following line:  if (messages[i].getSubject().equals("1234")) {   I hope you guys can help me with this problem.

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


I've had this pan for 8 years. It's low priced and average — I see no brands or names on it — not even on the bottom!  I followed   So here’s the crazy thing: stainless steel pans can be nonstick, if you’re doing it right. If you heat up your pan with oil or butter until it’s hot enough  then add your food, things will not stick. Stainless steel pans can withstand really high temperatures, so you can sear and brown things like meat in them, and you can also add water to the pan to deglaze the brown bits from the bottom and create a delicious sauce.  and   You can season a stainless steel pan and make it more or less nonstick. Here's how: Heat a stainless steel skillet over medium or medium-high for 2 minutes. Add enough vegetable oil to coat the entire bottom of the pan with a ⅛ inch of oil. Heat the oil until wisps of smoking begin to appear, about 6 minutes. When the oil begins to smoke, remove the skillet from the heat and cool the oil completely. Once the pan has cooled, pour out the excess oil and wipe up the remaining oil in the skillet using a paper towel. You want a glossy sheen left in the base of the pan—that's your nonstick surface.  Question 1 Please see pictures below. Please approve my pictures?  Can you confirm  if this is stainless steel? Question 2 If it is, then why does food stick to it? I tried to — separately — home fry potatoes, stir fry rice, boil pasta with filtered water. The potatoes rice, pasta all stuck to the bottom of the pan! I thought that all stainless steel pans were non stick? Was I wrong? Do some stainless steel pans stick? If so, how can I deduce which stainless steel pans are non stick? I'm thinking of buying a new brand name, high quality NON STICK stainless steel pan!

I think Anne Burrell lied to me. She said fish will always stick to a stainless pan. This is true. No matter how well I lubricate my pan, my fish will always adhere like cement. She also said that the pan will release the fish "when it's ready." Maybe meaning it will eventually become unstuck when the fish is done cooking? Well, I've tried that, and it never works. No matter how long I wait, it never becomes unstuck. Most recently I gave it as much time as I could. When I finally chiseled it off the pan, tearing it apart in the process, I saw that it was starting to burn on that side. I've started going back to non-stick until I get this figured out.  Are there any tips? Am I heating the pan wrong? Does it help to slide the fish around a bit after putting it in the pan?


When looking at the Top Questions  can see that in the question with the title "Include in Markup help information on how to resize images in a post" it says  modified 19 mins ago 2.Hallac 1  Yet, when I open  there's nothing in it that the user 2.Hallac has done. This might be related to my account not having permissions to visualize suggested edits that are not done in my account; yet, if that's the case, it makes sense that I shouldn't see that this particular user made an edit (assuming that's the case).

.       The  has no sign of the user sharth The  also does not have any sign of related activity   I would like to know why the user's name is associated with the question. At least why their display name shows up as having modified the question timeline activity.  Possible reason that I can think of is that, .  Is this the reason?  Is there a way (for normal users), to look for such details, other than looking at the user activity and the question's revision history.


I am looking for a way in which I can get the latest modified file in a folder using Python.   I have tried looking online for some solution but have had no luck so far with the OS module in Python. Maybe there is another module I should be using? This is my code so far:  os.listdir('G:\\Data\\Hotels\\FTP\\Hotel Data\\IDEAS')   From this list I want the last modified file. I am new to Python, so not sure what modules are available to me in order to look at the time modified for each file.

What is the best way to get a list of all files in a directory, sorted by date [created | modified], using python, on a windows machine?


I'm new to using QGIS. I have purchased some LiDAR data which downloads as .asc format, is there a way to analyse the terrain slope angle from this data or does it need to be converted into DEM? Ideally I would like to display the steeper slope angles (>35 degrees) as a different colour to the shallower (less steep) slope angles.  I'm using QGIS 2.0 Dufour on windows vista platform.

I have contour information in the form of line features (see picture below) and I want to do a slope analysis in QGIS. Is it possible?


Here is a problem I need to solve:  $$ \sum_{k=2}^n  \frac{1}{k^2-1} $$  It came with another one alreay done in the same task:  $$ \sum_{k=1}^n  \frac{1}{k(k+1)} = \sum_{k=1}^n  \frac{(k+1)-k}{k(k+1)} = \sum_{k=1}^n  \frac{1}{k} - \sum_{k=1}^n  \frac{1}{k+1} = \sum_{k=1}^n  \frac{1}{k} - \sum_{k=2}^{n+1}  \frac{1}{k} = 1 - \frac{1}{n+1} $$  So, the problem have to have similar solution. I can't find a proper change for the numerator. I think the numeratore could be find using factorised dominator:  $$ \sum_{k=2}^n  \frac{1}{(k-1)(k+1)} $$

I have to find the formula for sum $$\sum_{i=2}^{n} \frac1{i^2-1}$$ I remember reading somewhere that $\displaystyle \frac1{i^2-1}$ can be shown as $\displaystyle\frac1{i+1}$ and $\displaystyle \frac1{i-1}$.  If I can express it as this, then I should be able to create a telescopic sum, and produce the formula easily.  But how can I get to those two fractions in the first place so that I can build the proof?


I watched Passengers movie yesterday. There was one detail which stroke my eye. Does it really make sense to use gravity assisting for interstellar travel? I'd imagine that the spaceship would have exactly the same kinetic energy after escaping the gravity field of Arcturus as it did before entering it. So it seems that the whole dangerous passage was unnecessary?   I imagine you only use gravity assisting within the solar system to redirect space probes. But can you use it to escape the solar system? I mean, if you use Jupiter to throw yourself out of the solar system, then don't you also need to escape the gravity field of Jupiter? And then, I guess you'd have lost all the kinetic energy you would have gained by approaching Jupiter?  Thanks again for comments. Can you find any other physics mistakes in Passengers? The venting of the reactor seems a bit dubious, but maybe you have to do so for fusion reactors!

I read in  in this site that the KE a free-falling ball acquires is not originated by the attracting body but that energy was actually stored in the ball when it had been lifted to the height it dropped from.  In this way, it was said, gravity is subject to the conservation of energy principle and cannot change the total energy of an object.  Consider now the maneuver known as a  (also gravity assist) used by space probes such as the . A space probe approaches a planet with velocity $v$, slingshots around, and ends up with velocity $v+2U$, where $U$ is the velocity of the planet.  Consider the energy of the probe. Before, it was $E_i=\frac{1}{2} mv^2$ and after it is $E_f=\frac{1}{2} m(v+2U)^2$. It looks like $E_f$ is much bigger than $E_i$ - but where did the additional energy come from?   Is this not a violation of the conservation of energy principle?


I would like to know how to install a GUI on server machine running Ubuntu and how I can have a remote desktop to it. The important thing is that I would like to be able to use the GUI or my ssh connection to the server.

I'm trying to figure out what is "lightweight" way to configure my Ubuntu 16.04 LTS server to have access via GUI (over SSH as option). I would like to reach it from my Ubuntu 16.04 workstation. I have really poor knowledge about how those techniques work. I read about X11 and it seems it's possible to just install Xorg server and enable X11 forwarding and it's it.  But in other articles I read that it's just enough to install desktop common packages and it's not necessary to install all the GUI related stuff. So I'm really confused. I also see there are several methods like VNC, "plain" X11 forwarding, xRDP. They can be combined. I read different resources and as I realized the most preferable way to do this is to use xRDP? May be I'm wrong?  This article (one of I've read)  describes the xRDP installation and doesn't consider SSH. Here is the ssh forwarding How to forward X over SSH from Ubuntu machine?  The questions are:   Is the xRDP most preferable way achieve the goal? What steps should I do to have xRDP provide the remote GUI to me (What packages should I install to server and desktop)? I would like to have mate desktop. Should I install it to workstation or server or both?* How to enable xRDP over SSH tunnel?*   * - If the xRDP is not an option the last two questions relate to that one (VNC or something else) you suggest, please.


I want to acknowledge on receipt of a letter.   Which one is correct      "we received" or "we had received"?   And please explain the usages too. Thanks

I noticed that my American friends tend to use the past perfect form when they use the verb mention in its past form, almost despite of the context of the sentence. I hear them say  "you had mentioned" a lot more often even in situations where the use of simple past would have been perfectly fine. Have you noticed it too and is it one of those unwritten rules, or is there a more formal explanation to it?  It seems like there was more verbs like that, but I am having a hard time remembering it now. If I do, I will edit the post and likely change the title to accommodate other verbs.


I've been working on this problem for a long time and am stuck.   I was thinking I could use Lagrange's theorem and the fact that the image of any homomorphism must have an order that divides both the order of the domain group and the codomain group.   Since they differ by 1, their orders must be coprime meaning that the order of the image must be 1, namely the trivial map.  I'm not exactly sure if this is right, if I could get some feedback that would be great.  Thanks!!!

How do you show that every group homomorphism from $(\mathbb{Q}, +)$ to $(\mathbb{Q}, \times)$ is the trivial map? I am trying to use proof by contradiction by assuming there is an element $\frac{a}{b}$ such that some homomorphism $\phi$ has $\phi(\frac{a}{b}) = \frac{c}{d} \ne 1$. But I cannot seem to deduce any contradictions from here. Maybe using direct proof is a better approach? Any help is appreciated.


I am working with a textbook right now and one of the answers to the 'test' questions seems wrong to me. They have the following code example:  while(true){         doStuff();     }      static void doStuff(){         for (int i = 10; i > 5; i++){             if(i > 100000){                 break;             }         }     }   And according to them, the answer is  "F: The program will hang without ever completing"   As opposed to   "C: A StackOverflowError might be thrown"  I suppose I don't understand why a StackOverflow error would NOT eventually be thrown in this infinite loop? Is it because I have not marked it as an exception via try/ catch / throws? Would it be different if we were creating variables within that for loop which take up memory? Or am I misunderstanding entirely?

What is a StackOverflowError, what causes it, and how should I deal with them?


What is the probability of at least one streak of 5 heads in 100 tosses of a fair coin? ($n=100,p=0.5,k=5$.)  Additional question: what is the general formula for any $n, p, k$ (and proof)?

Tossing a fair coin for $N$ times and we get a result series as $HTHTHHTT\dots~$, Here '$H$' denotes 'head'  and '$T$' denotes 'tail' for a specific tossing each time.  What is the probability that the length of the longest streak of consecutive heads is greater than or equal to $k$? (that is we have a $HHHH\dots~$, which is the substring of our tossing result, and whose length is greater than or equal to $k$)  I came up with a recursive solution (though not quite sure), but cannot find a closed form solution.  Here is my solution.  Denote $P(N,k)$ as the probability for tossing the coin $N$ times, and the longest continuous heads is greater or equal than $k$. Then (For $N>k$)  $$ P(N,k)=P(N-1,k)+\Big(1-P(N-k-1,k)\Big)\left(\frac{1}{2}\right)^{k+1}   $$


Here is the code import java.util.Scanner; public class Main{     public static void main(String[]args){         int totMins;         int hours;         int mins;     Scanner sc= new Scanner(System.in);     System.out.println("Enter the time in mins: ");         totMins= sc.nextInt();         hours=(int)(totMins/60);         mins =(int)(totMins%60);         System.out.printf("%d:%d",hours,mins);     } }  When I input say, 64, it displays as 1:4. How do i get it to display as 1:04?

How do you left pad an int with zeros when converting to a String in java?  I'm basically looking to pad out integers up to 9999 with leading zeros (e.g. 1 = 0001).


I read  and he mentioned not putting the function in the proper callback.  I debugged in chrome dev tools and noticed the checkbox listeners don't get hit after I add a row using my other jquery function.    According to jquery "ready" docs, document.ready's callback gets triggered when the DOM is done loading.  After adding a row through my jquery handler, the DOM has finished loading, that's how I see the new row.  So to my understanding I should be able to have my checkbox listeners in the "ready" callback, no?  Here is my code:  $(document).ready(function() {         var i = 1;         $("#add_row").click(function() {             $('#addr' + i).html("<input type='checkbox' class='form-control case'>	"  +                                   "<input name='name" + i + "' type='text' placeholder='Name' " +                                 "class='form-control input-md'>	" +                                  "<input name='mail" + i + "' type='text' placeholder='Mail' " +                                 "class='form-control input-md'>	"                                  );              $('#tab_logic').append('

');             i++;         });          $("#delete_btn_" + i).click(function(event) {             if (i > 1) {                 $("#addr" + (i - 1)).html('');                 i--;             }         });           // add multiple select / deselect functionality         $("#selectall").click(function () {             $('.case').prop('checked', this.checked);         });          /* Listen to any checkbox.  After one is toggled,            if all checkboxes are selected, select the checkall checkbox            otherwise checkall checkbox shouldn't be checked */         $(".case").click(function() {             if($(".case").length == $(".case:checked").length) {                 $("#selectall").prop("checked", "checked");             } else {             $("#selectall").removeProp("checked");             }         });      });

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I am French, and next month I will move to the USA to study there. I can enter the US with my F1 visa only 30 days before the date on I-20. However, I would like to go to the US before this date for a week, for holidays (but I also plan to view some apartments). I already have a valid ESTA. Do you think it is possible?

I am going to start a phd at the US with an F1 visa. University told me that I could enter the US only 30 days before the date on I-20. Since English is not my first language (and this would be a big change in my life) I would like to go there by June.  The thing is that I have an European passport with a valid ESTA. My plan would be to arrive with this passport, stay 4-6 weeks , go to Canada for a short vacation (maybe flight maybe by land) and come back to the USA with F1 visa.  I have two questions about this:  1) is this possible?   2) If yes, how could I justify knowing I will lose my come-back flight during my first entry? (I would purchase round trip because one-way are too expensive, probably with less than 90 days difference)


I wonder whether it makes a difference to write numbers, e.g., 3.1416 in math mode $3.1416$ or it is exactly the same as in text mode. I have many numbers in my document, especially decimal numbers, and I have to decide if I put them in math mode (more cumbersome) or not.  I have made a mini test and see no difference  \documentclass{article} \begin{document}  %Text mode This is 3.1416 (\verb|3.1416|)  %Math mode This is $3.1416$ (\verb|$3.1416$|)  \end{document}

Should numbers inside the text be placed inside a math environment?   For example, if I am writing ...indent code by 4 spaces..., should I write it this way or ...indent code by $4$ spaces...?  Perhaps the output is the same but semantically they are not and maybe LaTeX can treat them differently in some cases. Which is the right one?   For instance, how does LaTeX treat the numbers in the counters it uses for numbering the sections or pages, etc? Does it treat them as numbers in a  Math environment or as numbers inside text?  Of course, if the output can never be different in any situation, then well, it just doesn't matter.


The following "proof" is given:  $$i^2=(i)(i)=\sqrt{-1}\cdot \sqrt{-1}=\sqrt{(-1)(-1)}=\sqrt{1}=1$$  Could someone please explain to me where the logic has broken Down?

I know there must be something unmathematical in the following but I don't know where it is: \begin{align} \sqrt{-1} &= i \\\\\ \frac1{\sqrt{-1}} &= \frac1i \\\\  \frac{\sqrt1}{\sqrt{-1}} &= \frac1i \\\\  \sqrt{\frac1{-1}} &= \frac1i \\\\  \sqrt{\frac{-1}1} &= \frac1i \\\\  \sqrt{-1} &= \frac1i \\\\  i &= \frac1i \\\\  i^2 &= 1 \\\\  -1 &= 1 \quad !!? \end{align}


I am set up as a sudoer on my Debian machine, and I use it all the time to install software etc... I came across this interesting situation that I am scratching my head about:  I tried to enable the fancy progress bar in apt using this command:  sudo echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar   I have permissions issues:  /etc/apt/apt.conf.d/99progressbar: Permission denied   However, if I su, then run the command, everything just works.  Why is this so?

When you attempt to modify a file without having write permissions on it, you get an error:  > touch /tmp/foo && sudo chown root /tmp/foo > echo test > /tmp/foo zsh: permission denied: /tmp/foo   Sudoing doesn't help, because it runs the command as root, but the shell handles redirecting stdout and opens the file as you anyway:  > sudo echo test > /tmp/foo zsh: permission denied: /tmp/foo   Is there an easy way to redirect stdout to a file you don't have permission to write to, besides opening a shell as root and manipulating the file that way?  > sudo su # echo test > /tmp/foo


Given two numbers $A$,$B$. Let $G$ be the GCD of two numbers. I need to tell the values of $X$ and $Y$ such that   $$ G = X A + Y B $$  How to approach this problem ? Like if we have $A=25$ and $B=45$ then GCD , $G=5$.  So $5 = 2 \times 25 - 1 \times 45$. Hence here $X=2$ and $Y=-1$.  So how to tackle this problem for given $A$ and $B$?  My try :  int a=25; int b=45; int s=0; int old_s=1; int t=1; int old_t=0; int r=b;     int old_r=a; while(r!=0){     int quotient = old_r / r;     old_r = r;     r = old_r-quotient * r;     old_s = s;     s = old_s - quotient * s;     old_t = t;     t = old_t - quotient * t; } cout<< old_s << " " << old_t<<endl; cout<< old_r <<endl; cout<< t << " " << s <<endl;   Whats wrong with this code ?

I've only found a recursive algorithm of the extended Euclidean algorithm. I'd like to know how to use it by hand. Any idea?


I have the following bash script:  if ls /Users/david/Desktop/empty > /dev/null then     echo 'yes -- files' else     echo 'no -- files' fi   How would I modify the top line such that it evaluates true if there are one or more files in the /Users/david/Desktop/empty dir?

From a shell script, how do I check if a directory contains files?  Something similar to this  if [ -e /some/dir/* ]; then echo "huzzah"; fi;   but which works if the directory contains one or several files (the above one only works with exactly 0 or 1 files).


I have tried various methods to install WiFi drivers on my machine. I have downloaded the rtl_wifi directory and have installed the necessary firmware too. However, when I run the command:  sudo modprobe -r rtl8723de   and  sudo modprobe rtl8723de   I am getting this as output:  modprobe: ERROR: could not insert 'rtl8723de': Operation not permitted    Please help me find a solution to this as I am a student and need WiFi on my machine almost daily.

How do I install Wi-Fi drivers for Realtek RTL8723DE device in Ubuntu 16.04?  lspci -v | grep -i network 02:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device d723


Could someone please clarify for me the difference in how interaction and main effects terms should be interpreted in ANOVA and regression? I understand that in regression, the coefficients for the various terms are qualified i.e. if an interaction term is included, the coefficients of lower order terms are conditional effects. Therefore, the interaction term has to be removed in order to interpret the 'main effects' of lower order terms.   But what about the output from ANOVA. If interaction terms are included, can the significance values associated with the lower order terms be interpreted as 'main effects' of those terms? Or, like in the case of regression, does the interaction term have to be removed to be able to observe main effects of lower order terms?

As far as I can tell this question has never been asked before. There are several questions that touch on related issues, but as far as I can see none of them have provided a definitive answer to this question. Furthermore, in at least one case the most upvoted and second most upvoted answer have implicitly disagreed with each other.  Textbooks often caution against interpreting main effects in Two-Way ANOVA when the interaction effect is significant. Here's a (mild) example of this, from pp562-563 of Hatcher's "Step-by-step Basic Statistics Using SAS: Student Guide":     When you perform a two-way ANOVA, it is possible that you will find   that (a) the interaction term is statistically significant, and (b)   one or both of the main effects are also statistically significant.   When you prepare a report summarizing the results, you will certainly   discuss nature of your significant interaction. But is it also   acceptable to discuss and interpret the main effects that were   significant?      There is some disagreement between statisticians in answering this   question. Some statisticians argue that, if the interaction is   significant, you should not interpret the main effects at all, even if   they are significant. Others take a less extreme approach. They say   that it is acceptable to interpret significant main effects, as long   as long as the primary interpretation of the results focuses on the   interaction (if it is significant).   Do I assume correctly that the hard-line stance ("you should not interpret the main effects at all") is incorrect, but that the interpretation must nonetheless change if the interaction effect is significant? If so, how does the interpretation change?


I tried to see what is happening to this code "under the hood" using GDB.   At the moment my GDB works in only in linux terminal and, as stated in the title, I get the expected (logical) output whenever I run this code in here.   I think the problem lies arount the return from func().  Running the same code in cmd gives " not equal" and in terminal it gives "equal".  Why is this happening?  I use gcc to compile the code  Here is the code:   #include <stdio.h>  double func(){      double y= 5 ;      return (double)y/3;      /*// Code that works as expected:     double y= (double)5/3;     return y;      */ }      int main() {      double x ;     x= (double)5/3;      if (x == func())         printf("%lf equal to %lf\n", x ,func());     else         printf("%lf not equal to %lf\n", x, func());      return 0; }

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


Is it possible?   Apple site says it can run two 4k displays. But can it drive them both at 60Hz?  Upd. Question was marked as duplicate, but this is not fully correct - 2015 MBP 13 and 15 have different integrated video cards from Intel. And surprisingly 13's card is better than 15's ( 13 - Intel Iris Pro 6100, 15 - Intel Iris Pro 5200).

I think the title says it all. Can I run two 4k (3840x2160) displays, both at 60hz on a Macbook Pro 13' 2015? I understand they might need to be SST and each connected to a Thunderbolt 2 port. But I cannot get a confirmation whether that setup would work.    says:     Simultaneously supports full native resolution on the built-in display and up to 3840 by 2160 pixels on up to two external displays, both at millions of colors.   …   Support for up to 5120-by-2880 resolution at 60Hz on a single external display (model with AMD Radeon R9 M370X only)   Unfortunately, it does not state at what frequency the two displays can be run.    says:     With OS X Yosemite v10.10.3 and later, most single-stream 4K (3840x2160) > displays are supported at 60Hz operation on the following Mac computers: … MacBook Pro (Retina, 13-inch, Early 2015) and later. MacBook Pro (Retina, 15-inch, Mid 2014) and later   Unfortunately it does not state whether two displays can be run at 3840 by 2160 at 60hz


am presently trying to get a response from a server which contains a response code of "00,02" i used an if and else if statement to perform an action for each of this response but am getting null pointer for the first if statement  if (str.equalsIgnoreCase("02")){     Toast.makeText(getApplicationContext(), message, Toast.LENGTH_LONG).show(); }else if(str.equalsIgnoreCase("00")){     Toast.makeText(getApplicationContext(), message, Toast.LENGTH_LONG).show(); }else{     Toast.makeText(getApplicationContext(), message, Toast.LENGTH_LONG).show(); }

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


Not long time ago I decided to use insert, update, delete methods of Database class and its optional 2nd parameter allOrNone with false as value.  But I found calling getId from the result does not return an Id for a failed record. It makes sense for insert, but update and delete?    How can I process partial success for insert, update and delete operation?

I'm trying to update an account list and I need to get the Ids when the update fails.  I use the getId() method but for accounts which fail I get null.  It's an update so my account already has an Id.  Is it normal ? If it is, how can I get the Ids list of non-updated accounts ?  Here is my code :  List<Account> accountsList = [select Id from Account];  for(Account a : accountsList) {     a.Name = 'Test', }  List<Database.SaveResult> res = Database.update(accountsList, false);  for (Database.SaveResult s : res) {     if (!s.isSuccess()) {         system.debug(s.getId()); // I get null here      }  }


On KitKat when I have a shortcut on the desktop and the app updates the shortcut on the desktop disappears, is there a way to stop this from happening?

Ever since I got my Nexus 5, I've notice that apps sometimes disappear from the launcher for no reason. This seems to correspond to that app being updated, although it doesn't always happen to every app on every update. I've seem some questions about icons disappearing due to moving them onto an SD card, but I don't have one of those so that's not it.  The apps are still installed and show up in Settings > Apps or in the alphabetized pages one gets by pressing the ::: icon. Some of the apps this has happened to include Facebook, Android IRC, TransitTimes+, QuickPic, and Minecraft — but it's not just limited to those, and it doesn't seem to happen to those with every update.   I'm not using any special launcher or anything — just the stock one that comes with KitKat 4.4 on the Nexus 5. (Updated to 4.4.2)  What's going on and how can I fix it?


I've got this error and I can't access my files located in a different partition when I'm using Ubuntu, but when I'm using Windows 8 my files are accessible. I'm using Ubuntu as my main OS. I tried shutting down Windows 8 properly but still nothing happened. Is there any way where this can be fixed?  Error mounting /dev/sda4 at /media/kris/BackUp Files:  Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda4" "/media/kris/BackUp Files"' exited with non-zero exit status 14:  The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda4': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.

Whenever I boot Ubuntu, I get a message that it cannot mount my windows partition, and I can choose to either wait, skip or manually mount.  When I try to enter my Windows partition through Nautilus I get a message saying that this partition is hibernated and that I need to enter the file system and properly close it, something I have done with no problem so I don't know why this happens.    Here's my partition table, if any more data is needed please let me know.     Device Boot      Start         End      Blocks   Id  System /dev/sda1            2048    20000767     9999360   83  Linux /dev/sda2        20002814   478001151   228999169    5  Extended /dev/sda3   *   478001152   622532607    72265728    7  HPFS/NTFS/exFAT /dev/sda4       622532608   625141759     1304576   82  Linux swap / Solaris /dev/sda5        20002816   478001151   228999168   83  Linux


How do I get the difference between 2 dates in full days (I don't want any fractions of a day)  var date1 = new Date('7/11/2010'); var date2 = new Date('12/12/2010'); var diffDays = date2.getDate() - date1.getDate();  alert(diffDays)   I tried the above but this did not work.

How do I get the number of days between two dates in JavaScript? For example, given two dates in input boxes:  <input id="first" value="1/1/2000"/> <input id="second" value="1/1/2001"/>  <script>   alert(datediff("day", first, second)); // what goes here? </script>


How add a classic start menu in Ubuntu 15? Like the LinuxMint start menu.

I have disabled the global menu and want to put the classic Application/Places/System menu in its place. How would I go about doing that in Ubuntu 12.04LTS?  (Note: I do want to try keeping unity as well as the dock launcher around for now to see if I can get used to that)


LyX by default creates documents in pdf file format version 1.5  Amazon Createspace says that it supports pdf submissions in pdf file format version 1.4 and below. They don't say they support this output of version 1.5 or above.  What adjustments need to be made in LyX or to PdfLaTeX to create files in a pdf file format version that Amazon Createspace supports?

I'm writing a paper for an IEEE conference and am checking the PDF with PDFExpress. One of the errors that I'm getting is that the PDF version  of my paper is under 5:  (actually "version 5" in an Adobe Acrobat Reader version - editor)    I opened the file in Adobe Acrobat Reader and the file properties tell me that the PDF is version 4.  (that's the Adobe Acrobat version - editor)  In LyX, I opened Document > Settings… and unchecked Use Hyperref Support under PDF Properties. I think these will take care of errors (1), (2) and (4) from the error report. However, I don't see a way to specify a PDF version.    I found , which made LyX complain about a missing \begin{document}.  So now I'm completely lost. How may I specify what PDF version to export the document in?  ( Editors Note: The current version of the pdf open file format is 1.7 [2/7/2015]. Adobe Acrobat Reader is frequently, but not the only program, used to freely open pdf files.  Createspace supports submittal pdf file in version 1.4 and below.  They do not say they support pdf file format version 1.5 or above, which is this editors problem )    Technical specs:   LyX version 2.0.5.1 Mac OS X 10.7.5 (Lion) MacTeX version:


When I try and mount my 64GB volume I receive the following error message:   Error mounting /dev/sdb1 at /media/sourav/3466-6438: Command-line `mount -t "exfat" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,iocharset=utf8,namecase=0,errors=remount-ro,umask=0077" "/dev/sdb1" "/media/sourav/3466-6438"' exited with non-zero exit status 32: mount: unknown filesystem type 'exfat'   What is the cause of this error and how can I solve it so I can mount my drive?

In Ubuntu 13.04 there was an option to use the PPA by Relan in order to get ExFat functionality. Seeing that in Ubuntu this functionality is now available from the repositories without the PPA I tried this but failed to make it work.  So my question is how do I enable exfat support?


I am having difficulty understanding time at the most fundamental level, especially I am wondering whether there exists an indivisible unit of time (i.e. whether time at some fundamental level is discrete). If the question is non-nonsensical, please help me with how to think about time.  Research for and against this notion are very welcome.

I was coding a physics simulation, and noticed that I was using discrete time. That is, there was an update mechanism advancing the simulation for a fixed amount of time repeatedly, emulating a changing system.  I though that was interesting, and now believe the real world must behave just like my program does. It is actually advancing forward in tiny but discrete time intervals?


I'm trying to create a simple regression model from time to outside temperature. Obviously there will be some relationship since it is colder at night than during the days (mostly anyways), only how can I make this model?  The time of the day is in hours and runs from 0 to 23, but obviously 23:00 is very near to 0:00 but not when looking at the difference in numbers. How can I change the time notation to reflect actual time difference? So 22 hours and 19 hours have a difference of 22-19=3 hours, and 23 hours and 0 hours have a difference of 1, but when calculating the difference you get 23-0=23 which isn't correct. This will have a big influence on the regression model. We use modular arithmetic in daily life, but can you use it in a regression model? What do you suggest?  N.B. if you think a regression model won't work but an other statistical model will, that's also fine. I'm just looking for a model that measures the goodness of fit (like $R^2$) for time and temperature.

I am trying to fit a model using wind data (0, 359) and time of day (0, 23), but I am concerned that they will poorly fit into a linear regression because they are not themselves linear parameters. I would like to transform them using Python. I have seen some mention of calculating a vector mean by way of taking the sin and cos of the degrees, at least in the wind case, but not a whole lot.  Is there a Python library or relevant method that might be helpful?


I have three classes: Crew, Plane and Driver. Crew class is accessed only through the Plane class and Plane class is actually used through the Driver class. The program compiles but upon execution, throws the error:  Exception in thread "main" java.lang.NullPointerException     at Plane.addCrew(Plane.java:180)     at Carrier.addCrew(Carrier.java:493)     at Carrier.process(Carrier.java:179)     at Carrier.run(Carrier.java:144)     at Carrier.main(Carrier.java:54)   Below is the snippet from the Plane class specific to the problem:  public void addCrew(String name, String role, int id, int missions) {     if(currentCrew < maxCrew)     {         Crew crew = new Crew(name, role, id, missions);         crewArray[currentCrew] = crew; //This is Plane.addCrew(Plane.java:180)         ++currentCrew;     }     else     {         System.out.println("Crew is full");     } }

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


In order to test that our systems correctly detect that they are running out of space, we just need large files on the disk where we do not care about their content at all. At the moment we use dd if=/dev/zero [...] to create them which takes awfully long especially when writing multiple hundreds of gigabytes to consumer grade SATA disks.  Is there a way to speed this up? I'm thinking of just writing the information that the file exists to the file system table without writing the content of the file, ending up with a huge file containing whatever was written on the disk before.

What is a quick and easy way to make a file that is, say, 2 GB in size?


In this metaphor is it correct to use "further" or "farther"?     That only kicks the can further/farther down the road.   Within the metaphor, the distance is physical, justifying the use of "farther". But since the road is not a literal road, the distance is metaphorical, justifying "further". Which is correct?

I know I learned the difference between the usage of farther and further in school, but I can never remember where each one should be used.  Can someone help me out here?


I declare some constant variables in my SQLiteOpenHelper class:  public static final String USERNAME = "user_name"; public static final String PASSWORD = "password";   In an Activity where I create SQL queries, I import these fields:  import com.mygame.ui.login.LoginInfoSQLiteOpenHelper.*;   Is this a good practice? Or the traditional way of referring to constants better?  LoginInfoSQLiteOpen.USERNAME

Just got a review comment that my static import of the method was not a good idea. The static import was of a method from a DA class, which has mostly static methods. So in middle of the business logic I had a da activity that apparently seemed to belong to the current class:  import static some.package.DA.*; class BusinessObject {   void someMethod() {     ....     save(this);   } }    The reviewer was not keen that I change the code and I didn't but I do kind of agree with him. One reason given for not static-importing was it was confusing where the method was defined, it wasn't in the current class and not in any superclass so it too some time to identify its definition (the web based review system does not have clickable links like IDE :-) I don't really think this matters, static-imports are still quite new and soon we will all get used to locating them.  But the other reason, the one I agree with, is that an unqualified method call seems to belong to current object and should not jump contexts. But if it really did belong, it would make sense to extend that super class.  So, when does it make sense to static import methods? When have you done it? Did/do you like the way the unqualified calls look?  EDIT: The popular opinion seems to be that static-import methods if nobody is going to confuse them as methods of the current class. For example methods from java.lang.Math and java.awt.Color. But if abs and getAlpha are not ambiguous I don't see why readEmployee is. As in lot of programming choices, I think this too is a personal preference thing.   Thanks for your response guys, I am closing the question.


I don't really care if the desktop environment is quick. What I want is a desktop environment that lets me open apps and get things done the fastest. I don't care about flashiness or anything.   READ: I am not looking for the desktop environment that is the lightest. I am looking for the one that lets me open an app and use it most effectively, to minimize,for example, the time it takes me to open libreoffice and write up an essay for school. I want to be super efficient.

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


I installed apache2 on my Ubuntu 13.10 and it works without any problems. I can see the default index page (which is located in /var/www/index.html) by typing localhost/ in the address bar    Today, after I upgraded my Ubuntu to 14. 04 the localhost server doesn't work any longer and shows index of/ page instead    I have tried to reinstall everything (including php5, phpMyAdmin, and MySQL) but the problem is still there. How do I fix this?

I recently installed Ubuntu 14.04, then I installed lamp-server and placed my webpages in /var/www directory, but when I opened localhost in the browser there was nothing. I think that happened because Zend updated Apache.  Whatever the reason may be, I want to know where to keep my php files so that I can access them from my browser.


I want to ask about using UART to send data from uC to PC. So I have some questions.  I wonder what is the maximum of the UART bit rate?  What factors affect the UART speed? For example does using DMA affect the bit rate?   Which Microcontrollers have the UART bit rate more than 30 Mbit/s? If many, like what?

I'm looking for a good link to data from Microcontroller to computer. I do not know what kind of communications is suitable for me.  I need a link which has a bit rate more than 50 Mbit/sec. and also it should be good enough reliable.  Moreover, I have not chosen the uC yet. What about these choices?   1-(uC side) USB to USB (PC side)  2-(uC side) SPI to USB (PC side)  3-(uC side) ethernet to ethernet (PC side)  Data is in fact received from a 16 channel ADC with a rate of 100 K. Data is processed in the uC and then would be sent continuously to PC.


Why isn't calibre starting below? nicholas@mordor:~$  nicholas@mordor:~$ sudo apt install calibre Reading package lists... Done Building dependency tree        Reading state information... Done calibre is already the newest version (4.99.4+dfsg+really4.12.0-1build1). The following packages were automatically installed and are no longer required:   linux-headers-5.4.0-51 linux-headers-5.4.0-51-generic linux-image-5.4.0-51-generic linux-modules-5.4.0-51-generic   linux-modules-extra-5.4.0-51-generic Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 232 not upgraded. nicholas@mordor:~$  nicholas@mordor:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 20.04 LTS Release:    20.04 Codename:   focal nicholas@mordor:~$  nicholas@mordor:~$ calibre Traceback (most recent call last):   File "/usr/bin/calibre", line 20, in <module>     sys.exit(calibre())   File "/usr/lib/calibre/calibre/gui_launch.py", line 73, in calibre     main(args)   File "/usr/lib/calibre/calibre/gui2/main.py", line 543, in main     listener = create_listener()   File "/usr/lib/calibre/calibre/gui2/main.py", line 514, in create_listener     return Listener(address=gui_socket_address())   File "/usr/lib/calibre/calibre/utils/ipc/server.py", line 110, in __init__     self._listener._unlink.cancel() AttributeError: 'NoneType' object has no attribute 'cancel' nicholas@mordor:~$   It's always run fine in the past, although I don't recall running it from this machine on which Ubuntu was recently installed.

Calibre stopped working recently. Tried uninstalling and reinstalling. When I open a terminal and call $calibre I get the following error message: Traceback (most recent call last):   File "/usr/bin/calibre", line 20, in <module>     sys.exit(calibre())   File "/usr/lib/calibre/calibre/gui_launch.py", line 73, in calibre     main(args)   File "/usr/lib/calibre/calibre/gui2/main.py", line 543, in main     listener = create_listener()   File "/usr/lib/calibre/calibre/gui2/main.py", line 514, in create_listener     return Listener(address=gui_socket_address())   File "/usr/lib/calibre/calibre/utils/ipc/server.py", line 110, in __init__     self._listener._unlink.cancel() AttributeError: 'NoneType' object has no attribute 'cancel'  Do I need to install some dependency that the sudo apt install didn't get? I tried installing via command line and the software installer/updater GUI. I'm on version Ubuntu 20.04.1 LTS. I made sure that my software in general is up to date also.


I use a Nikon D5300 and while taking a picture from a hill I wanted to take a panaroma but could not find such an option. Am I missing some hidden feature using which I can take a panaroma? If yes what is that feauture?

I recently bought a Nikon D5200 and I was wondering how to shoot in panorama mode. I seem to find every other mode but panorama. Do I just need to pan the camera and take multiple pictures and stitch them together later? Or does the camera have a panorama mode built in?


I am experimenting with multiple integrals and volume (and area) elements.  I can write the integral,   $A = \int_a^t{\left|f\left(x\right)\right|dx} $,    as   $A = \int_a^t{\int_0^{\left|f\left(x\right)\right|} dy \, dx} $    but writing it as   $A = \int_{ {a \le s_x \le t} \; \wedge \; {0 \le s_y \le \left|f\left(s_x\right)\right|}} ds$    gets ugly and long and I would like to collapse the conditions into a column sort of like with   $A = \int_{ \overset{a \le s_x \le t}{0 \le s_y \le \left|f\left(s_x\right)\right|}} ds$    but with both conditions being the same size.  How do I stack multiple conditions in a column in math mode?

I have the following equation, where there is a lot of stuff under the sum symbol:  \begin{equation} d(\vec{x},\vec{y})=   \sum_{Z_{xy}\in\vec{Z}_{xy},\forall x\in\vec{x},\forall y\in\vec{y}}      f(Z_{xy}) \end{equation}   In the resulting document, I find it kind of hard to read. Is there a way to write the equation to make the result more readable, e.g. putting the stuff under the sum symbol on different lines?


I'm trying to parse a text file using PHP.   In my database I have data which shows in phpmyadmin like this Triste o melancÃ³lico  And once it's retrieved it displays just fine on my website.  Now the issue has come when I try to parse this text file. I will have a word such as Etimología  Now I load the text file, parse it and if I echo the parsed data to the page it will display fine, no question marks / unwanted characters in replace of the í. The thing is if I go to insert the data into my db the special character í is being switched over to a question mark.  I've tried using  mysql_query("SET CHARACTER SET utf8");   After my sql connection but it did not make a difference.  Does anyone have any ideas as to why new text with special characters are being inserted as question marks, when pre existing text with special characters is working just fine?  Thanks

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


When catching Pokémon now, there will occasionally be streaming stars that come off of the poke ball after a successful catch.  This appears to be something that was added in an update, but I don't know what it means.

Have you noticed the different responses when catching Pokémon?  Most of the time there is a ring that shoots out. Sometimes however there are fiery wisps that go up from the Pokémon.   Any idea what this means?


Chinese and Korean filled buns are my family's favorite. I've succeeded in making soft breads but never know how to make the buns hollow to inject a cream inside. I know that some recipes simply put the filling inside before baking them but I wanted to know if there is a way to make it hollow inside?

I have the opposite problem as Amir's question about . Whenever I make pita, it's nice and thick and fluffy, but the pocket is small or nonexistent. I would like to use my pita for sandwiches, so the pocket part is important.  Normally when I make pita, I get a pocket forming on one side of the bread, but the other side stays flat. I end up with a lopsided pita that has a pocket too small to stuff anything into. Every once in a while, I get one with a perfect pocket that evenly puffs up the whole pita, but I don't know why it happens sometimes and not others. Could this be caused by uneven heat in my oven? Or is there something about the technique of rolling out the dough that I'm not doing consistently?


I really like the font used in this article and want to use it in my documents. Does anyone have any idea of how I can do so?    EDIT: I've found out that the font is URW Nimbus Roman (thanks for pointing me towards the posts telling me how to figure it out). So my question is how can I get this font? What packages do I have to load etc? Sorry, complete amateur here! Thanks for the help!

Is it possible to identify the font used in a specific document/picture?  Answers to this question should identify:   Possible methods to do this (perhaps one answer per method) and adequately describe how to use it (as opposed to merely stating it); Ways of finding the identified fonts, if possible (free or not); and Any prerequisites associated with the method used, if required (for example, "In order to use method X, your document has to be in format Y").   This question is meant as an FAQ, based on an . Its aim is to facilitate the community with the general procedures involved in font identification. Similar cases are solved on a per-usage basis on 's  tag.


Since Wild Shape can't be dispelled, which implies that it's not "inherently magical", can the spell True Seeing allow someone to see through a Wild Shape transformation?

The rules for truesight state:     A creature with truesight can (..) perceive the original form of a shapechanger or a creature that is transformed by magic   A druid player argued that since the druid is still a "humanoid" (not a "shapechanger"), and since , a creature with truesight should not see through it.  As the DM, I ruled against it because I believed the intent of truesight is to see through all kinds of shapechanging effects but I was still left wondering if I missed anything. I couldn't find anything about this in the errata either.  So, going by strict RAW, should a creature with truesight be able to see the druid's true form while a druid is using wild shape?


I once heard there is a difference in meaning between these two sentences in AmE. Is there any?  The possible duplicate  does not address this particular case.

I see these two expressions are used almost identically in different contexts. Is there a difference between I have got and I have gotten?


Similar to  and , when I try to log in to rpg.stackexchange.com using my Wordpress OpenID it doesn't work and gives me the error in the subject.  Given the partial guidance in the other questions, I've tried choosing other options and messing with the openid URL manually but no love.  My site is mxyzplk.wordpress.com.  It has a primary domain of geek-related.com.  I've tried putting both in, with http and https, but none of those combinations work.

I'm trying to login to stackoverflow using my wordpress openID. When I'm redirected back, I see the message  Redirects on POST requests that are to untrusted servers is not supported.   Is it by design or it's a bug?


I wish, when viewing a question in iOS Safari, that there was a link to view that question in the Stack Exchange app.

Can we add functionality to the mobile site to view the page in the SE iOS app? It could be through  or a link at the bottom where the download link is.        I really don't care which, but right now there's just no way to do it.


I have this question:     In what conditions (if any) is it good practice to query two   servers/services and only consume the fastest response?      I've asked what is now a deleted-by-Community question on  on   why would someone use javascript's Promise.race, and a high rep user   commented this:           If you have two services that compute some value you can query them both in parallel and use which ever value is returned first, rather     than querying one, waiting for a failure, and then querying the     second.          I've googled about redundancy and this use case in general but I   couldn't find anything and, from my POV, it's never a good idea to   just add workload to a server/service if you're not going to use the   response.    I'm torn between these sites:       Maybe even

There seems to be more than a few computer science/programming Stack Exchange networks (is that the correct term?). Stack Overflow, being the first, has by far the most users, questions, and answers.  What is the reasoning for creating the others, and are there clear guidelines for which kinds of questions should be posted? I can see a large amount of potential overflow, many cases of people not getting a good answer to their question, because the person who has the answer isn't browsing that particular network at the moment.  I understand that they were probably created for organizational purposes, but wouldn't it almost make more sense to just have them as categories under Stack Overflow, keep them separated but still connected, instead of making people have to create multiple 'account's, one for each network?  I am sure there was a very good reason to break them up, but as someone that is new to SE, it can be somewhat intimidating to decide which one to post in to ensure you get a good answer. For example, if I am a computer science student, my first instinct might to be to post in the computer science network, until I see that it literally has 1% of the users as the Stack Overflow network, which still seems to be for programming/computer science related questions.  So my second instinct would then to be to post it into the Stack Overflow site on the basis that I have a significantly higher chance of my question being seen and getting a good answer. Then I notice that there is also a 'programmers' network, and I don't even begin to know where that fits in. I, and I am assuming most people, will probably just post on Stack Overflow to be safe.  My question is, other than the short little description blurb of each one, is there a clear cut set of guidelines which what each network is intended for, what kinds of questions should go to each one, and is anything being done to encourage people to post in these newer, smaller (more specialized?) networks as opposed to just posting in big daddy Stack Overflow?  Now again, this is for computer science/programming/"why isn't this code doing what I want?" related questions, I am not saying that if I had a question about Linux or WordPress or something I would have the same confusion.


OK, so I am currently messing around coding hangman in python and was wondering if I can clear what it says in the python shell as I don't just wan't the person to read the word.  import time keyword = input(" Please enter the word you want the person to guess") lives = int(input("How many lives would you like to have?")) print ("There are ", len(keyword), "letters in the word")  time.sleep(2)  guess = input("please enter your guess")   I would like to remove all the text  in the shell.

Like most Python developers, I typically keep a console window open with the Python interpreter running to test commands, dir() stuff, help() stuff, etc.  Like any console, after a while the visible backlog of past commands and prints gets to be cluttered, and sometimes confusing when re-running the same command several times.  I'm wondering if, and how, to clear the Python interpreter console.  I've heard about doing a system call and either calling cls on Windows or clear on Linux, but I was hoping there was something I could command the interpreter itself to do.  Note: I'm running on Windows, so Ctrl+L doesn't work.


What is the sum of all coprimes to number less than that number? I found a bit about it: For example we have to find the sum of coprimes of 2016. Therefore, the required sum $S$ is: $2016 = 2^5 * 7 * 3^2$ $S = \frac{2016}2 * 2016 * (1-\frac13)(1-\frac17)(1-\frac12) = 580608$ If this is right, then the formula should be $S = \frac{N^2}2 * (1-\frac1{\text{prime factor 1}})* (1-\frac1{\text{prime factor 2}})...$ If this example and the interpreted formula is right, then how do I prove it? If this is wrong, then what is the actual formula and its proof?

could any one tell me how to find the sum of all positive integers less than $n$ and relatively prime to $n$? $n>1$  For $n=7$, I have  $\phi(n)=6$ and  the sum is ${6(6+1)\over 2}={n\over 2}.\phi(n)$, is that true for any $n$?


I recently tried moving the location of windows's Index files from my C (SSD) drive to another regular drive with more space...  I went to the Advanced Options under Indexing Options and put the 'new' path there...  Everything seem to run well for a day or 2. But now search has stopped working. Even typing the name of a program into the start menu brings up nothing.  I checked the indexing options and now it shows me this :     The advanced options show me this :    I checked the services.msc and it shows that windows search is stopped. If I start the service , nothing happens.  I can't put a new location into the advanced indexing options as the 'select new' button is disabled, as are the 2 text fields...  The rebuild button does nothing either.  Running the troubleshooter tells me that the indexing service is turned off and should be turned on.   I tried checking the registry... under the directory HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Search I see that 'data directory' is set to C:\ProgramData\Microsoft\Search\Data\ (the default), as is 'defaultDataDirectory'.  So, any suggestions how I can restore windows indexing, preferably with the indexing files not on my C drive.  thanks!

I recently upgraded Windows 7 to Windows 10. The biggest issue I have now is that the Windows Search service no longer works, making the Start menu mostly unusable.  If I go to Indexing Options in the control panel I see that Indexing is not running and the list of paths to index is empty.  Going to advanced options, the current index path is empty, and the new path is empty too. This is true even if I try to use the "New Index" button.  Using the troubleshooter won't help since the service doesn't start. If I try to manually start the "Windows Search" service, I get the error  "Error 3: Unable to find specified path" (this is the rough translation, the original message is in my language).  What can I do to find out which path/file is missing ? I tried to check with Process Monitor, but the only file (beside system libraries) the SearchIndexer.exe try to access seem to be c:\ProgramData\Microsoft\Search\Data\Application (everytime the service is started the whole folder c:\ProgramData\Microsoft\Search is deleted and recreated) and C:\Windows\System32\config\systemprofile (which exists).  Edit: all available updates are installed, and issuing      SFC /scannow   Doesn't reveal any issue


Sometimes you spend a day or more solving a technical problem, and when you finally solve it, you may want to post it on your blog (if you have one) to share with the community.  However, most developers don't have a lot of time to update their blogs, and that is why personal blogs are not ranked very highly on Google/Bing.  So even if you describe a brilliant idea, chances are that, except a few of your friends, nobody will ever find it. This is a common reason why some developers start their blogs and soon give up; it is not interesting to write for the community if you have no feedback on your posts.  Unlike personal blogs, Stack Exchange sites are highly ranked in Google (I was amazed when I saw that a question asked on SO just an hour ago appeared 3rd in my Google search!), so if your question and answer are valuable for others, they will be rated highly and will be visible for other developers.  With this in mind, is it good practice to post a question and answer it yourself immediately when you want to share an idea with the community?

I might want to answer my own question because:  I arrived at a solution before there were any other correct answers or I like mine better, can I still answer my own question?  I have a folder with lists of code snippets for things I always forget or get wrong, such as regular expressions for processing XML, common WinForms control idioms, etc. Is it considered poor etiquette for Stack Overflow to ask a question I already know the answer to, and then self answer, just so it gets recorded on the website?   Related:          For more information, see "" in the .


I started my Ubuntu (Version 18.04 LTS) machine this evening only to discover that Firefox has suddenly stopped working. No matter what web page I attempt to browse to, it simply sits there blankly, never timing out or displaying anything. Using information I found here:   I followed their advice, and restarted in Safe mode. This worked which tended to imply some add-on was not working. I'm not generally a fan of having dozens of add-ons in my browser, so was not surprised to find only 5 in there, all of which I disabled. When running in normal mode, but with all the Add-ons etc. disabled, Firefox still refused to work. Next I disabled performance/hardware acceleration. No Joy.  I then proceeded to completely uninstall and reinstall Firefox via CLI. Still no luck. Used the following website advice to do so:   I must point out that my computer has a working Internet connection (I used it for example, to download emails as well as carry out the download/re-installation of Firefox). This is strictly Firefox related. This question may be better suited to the Mozilla forum page, but given the fact that I don't know where the problem lies, and I've completely re-installed Firefox, I thought it prudent to start here.  I keep my computer updated at all times, and am running the latest version of Firefox (67.0). I'm really at a loss as to what to do next.

I have been using Firefox on Ubuntu 18.04 for several weeks. I currently have firefox 67.0 (freshly updated).  Since the update, firefox cannot connect to the internet anymore. The internet is working fine. I am writing this post from the Opera browser the I installed on Ubuntu 18.04 after the problems with Firefox.   I tried to follow the suggestions of this . Explicitly I tried the following:   Change proxy setting, in about:preferences Network Settings. I tried the options "no proxy", "Auto-detect proxy" and "Use system proxy" (the latter was the default). In about:config I set the "network.dns.disableIPv6" to TRUE In about:config I set the "network.dns.disablePrefetch" to TRUE   The issue seems firefox-specific. Opera does not give any problem. Pinging to www.google.it works fine (so no DNS problems).   I am fine using Opera, but I would also like to understand hwo to fix the issue in Firefox!


When android phone (4.3) warns about  Storage space running out. Some system function may not work.  Besides install apps, what can I do to mitigate the problem? I have replaced SD card from 2GB to 32GB. But it doesn't seem to solve problem. Why? Thanks.

If you're not used to seeing the 'low on internal storage' notification, what is it that you're doing to keep your phone's internal memory from filling up so quickly?   The 'SD Card and Phone Storage' menu in the settings doesn't really tell me much other than how much is free. And, I don't really have that many applications installed. The top 5 storage hogging apps on my phone are Gmail (18.6 MB), Twitter (17.5 MB), Facebook (12.55 MB), Maps (9.63 MB), and Swype (6.06 MB).  So, are there apps out there (besides your normal file manager ones, like Astro) that will help monitor internal phone storage? Is there something I should be doing to keep my phone storage use to a minimum?


Showing message:   E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

I get this error whenever I try to install programs using the terminal:  home@ubuntu:~$ apt-get install myunity E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   Also I'm unable to install updates using the terminal.


Wikipedia states that     The electrons can only orbit stably, without radiating, in certain orbits (called by Bohr the "stationary orbits") at a certain discrete set of distances from the nucleus. These orbits are associated with definite energies and are also called energy shells or energy levels. In these orbits, the electron's acceleration does not result in radiation and energy loss as required by classical electromagnetic.   How can you just say anything? Is there any proof of this statement ? I mean, electrons are also objects and they must follow the classical theories!   PS- Please try not to use QM, as Bohr did not explain this stuff by QM!

I'm having trouble understanding the simple "planetary" model of the atom that I'm being taught in my basic chemistry course.   In particular,    I can't see how a negatively charged electron can stay in "orbit" around a positively charged nucleus. Even if the electron actually orbits the nucleus, wouldn't that orbit eventually decay?  I can't reconcile the rapidly moving electrons required by the planetary model with the way atoms are described as forming bonds. If electrons are zooming around in orbits, how do they suddenly "stop" to form bonds.     I understand that certain aspects of quantum mechanics  to address these problems, and that there are  of atoms. My question here is whether the planetary model itself addresses these concerns in some way (that I'm missing) and whether I'm right to be uncomfortable with it.


how can I designate number length? I mean for 1234 = 4, 303 = 3 or 32131 = 5, What is with general n? I mean I want designate C(n)

I read recently that you can find the number of digits in a number through the formula $\lfloor \log_{10} n \rfloor +1$ What's the logic behind this rather what's the proof?


I took a look at my profile, where I stuck my flair. Here's the flair:    However, I don't have 28k rep. According to chat, I have 19.7k.  Note: I know about the combined flair - I've had this in my profile for at least a year. It had been showing me the same as in chat, now it isn't.   What is going on here?  Edit: I'm reporting a bug here, that the combined flair is not showing the correct number, as it has in the past.

Is the flair tab working correctly?  It is counting aproximately 3 times more points and over 2 times more bronze badges at the time I'm posting it.


My question may not be related with English language. It might be more of correct usage.  Which one of the following is correct?  Your name, please?  or  Your good name, please? // as if there is a bad name.

"May I know your good name” is a typically Indian way of honouring another person by asking their name using an adjective like sweet, good, beautiful, et cetera. Of course there won’t ever be any bad or sour name (unless we feel it such) when asking.   If this manner of asking someone’s name is incorrect or inappropriate, then how could I make it sound more polite and amicable without negotiating the basic principles of English?


Why does an Adobe Illustrator document saved as a PNG that are then converted to PDF files look blurry and pixelated?

Is it best to save an Adobe Illustrator file as a PNG, then opening the PNG and saving it as a JPEG, before converting it to a PDF file? I've noticed PNG files look blurry and pixelated when converted to a PDF file.


I have a struct like  struct Student {     bool isActive; };   Now if I see the output of the size of this struct as following:  Student student; cout << sizeof(student);   then it shows 1, which is fine as bool is 1 byte in size. For  struct Student {     string name; };   output is 4, which is fine again as string is 4 bytes in size. But for the following:  struct Student {     string name;     bool isActive; };   my expectation for sizeof(student) was 4 + 1 = 5, however the output shows 8. Why is that so?

Why does the sizeof operator return a size larger for a structure than the total sizes of the structure's members?


Our client has two computers that had preinstalled Office 365 from the MS store and I believe they are OEM licences for MSO '16 H&B.  The computers were not syncing with group policy because Netlogon was set to manual.  Once I fixed that and folder redirection occurred, no users can access their redirected folders from Office applications.  Explorer can access the folders just fine and so can other applications like notepad.   I have uninstalled the desktop apps package from all users using the powershell command then installed Word from the store and the problem remains. I have tried adding the user's network profile directory to trusted locations but the issue remains. Installing Office 2016 H&B using exe works fine to access the files but I can't tell if it's the same license as there are multiple licenses on this MS account I'm looking at.   It is basically the same as this issue that was reported here but reinstalling did not fix the issue as stated above.

On my Windows 10 computer when I try to open or save a document in Word 2016 I get the following error:     Windows cannot access \\SERVER1\RedirectedFolders\<username>\Desktop      You do not have permission to access \\SERVER1\RedirectedFolders\<username>\Desktop. Contact your network administrator to request access.   And it's true; in the Save or Open dialog box I cannot navigate to my Desktop or Documents folders. Also when I close Word 2016 without saving the document it locks up and shows "not responding" in the taskbar.  In the Options > Save screen I notice that my Default local file location and Server drafts location fields are empty, which isn't the case on another Windows 10 computer I use:    If I try to make any changes in this screen when I click OK I get the error:     The server drafts location you entered for offline editing is not valid or you do not have permission to access that location. Specify a location on your local computer.   If I click any of the Browse... buttons, for example to set the Default local file location, I get the same error as above that "Windows cannot access \\SERVER1\RedirectedFolders\<username>\Desktop" (it's always the Desktop folder mentioned).  I'm not having this problem in other programs. I can access my Desktop and Document folders just fine through File Explorer and other programs.  Why can't I access these folders in Word?  How do I fix it?    Notes:   My Desktop and Document folders are redirected to one of our on-premise servers. They're also configured to be Available Offline. I'm running Word as part of Office 2016 Professional Plus. It's an MSI-based installation. I've tried a repair installation of Office, as well as uninstalling/reinstalling Office. I confirmed I have Full Control permissions to the Desktop and other redirected folders. Interestingly, this doesn't happen to another user account logged in to my computer (their folders are redirected too, but not available offline). Something else I found is that I cannot open the Signatures dialog in Outlook's Options > Mail screen. I click, but nothing happens.


Telegram allow to install app only on Google Play Store but I  want to download apk file and send to my friend because his Android device which does not have access to Google Play Store. Is it possible to download apk file of Telegram app on android without any apk website downloader only from right apps or right ways?  Thank in advance for all of you Stackexchange Community!

I can't download apps from the Play Store on my Android device (maybe due to a network issue), so I'm wondering how could I download the APK file of an app on my PC from ?


I have a hard time reading questions and answer on Stack Exchange sites sometimes. I hate having to bring my phone or laptop very close to my face to read things sometimes. I would love if there was an option to increase the font size in the app. Can this please be done?

I'm using the official Stack Exchange mobile app for iOS or Android, and  My app crashed! It doesn't look good on my new smartphone. It won't run after I updated my device. I noticed another bug. I have an idea for a new feature which is currently not in the app.  How do I report bugs with or request features for the iOS and Android apps? Also:  I've used the built-in functionality of the app to report a bug or submit a feature request. Did I do the right thing? The app prompted me to post on Meta after an error occurred. Should I post about it here? I'm wondering why the latest version is from 2017. I've heard rumors that the apps are no longer supported; is that true? I can't find the app on my device's app store anymore! Where did it go?     We get a lot of bug reports from users about the mobile apps, which are unsupported, and at the moment, there is no centralized Q&A pair for those to be closed as duplicates of (the relevant answers are spread across multiple unrelated questions). This question is an FAQ proposal, to serve as a directly-related duplicate target for those questions.


Why is voltage same across a parallel circuit? I mean what makes the voltage remain same across two resistors connected in parallel?  If an electric heater  is connected in parallel with a bulb and if the bulb is then switched off, will the power dissipated in the heater increase?

I'm having trouble understanding something in one of my text books:     Let’s have a look at the implications of each circuit configuration.   Figure 3.13 shows the Conventional representation of a parallel   circuit. If you assume that the resistance of the wires can be   neglected, then the voltage drop across each bulb is equal to the   e.m.f. of the source, the dynamo. The Current flowing from the source   is divided between each bulb depending on its resistance (remember I =   E/R), Removing one of the bulbs would not affect the voltage drop   across the other bulb and would therefore not affect the Current in   it, although the overall Current from the dynamo would drop as the   demand has been reduced.   Specifically, the line about removing one of the bulbs not affecting the voltage drop. My understanding is that the sum of voltage drops in a circuit must be equal to the output of the emf, but the way I'm reading the text suggests that if you have three bulbs in a parallel circuit and you remove one of them, the voltage drop remains the same - this is what I don't understand, though. If you a lamp is removed, then that's one less lamp consuming emf. Does it not get redistributed to the other two lamps?  Likewise, the text mentions the overall current from the dynamo dropping because demand has been reduced.  My initial understanding was that current from an emf is only affected by the emf - not the demands of components further along the circuit, as in this case. What have I misunderstood?


After some LaTeX or system updates, I get these new warnings for something that was typeset perfectly before:     libpng warning: iCCP: Not recognizing known sRGB profile that has been edited   Since it's a large document with many chapters, I get like dozens of these. The PNGs almost certainly come all out of Gimp or Photoshop.   is it possible to show which images are affected? is it possible to turn off these annoying warnings?   I am using PDFLaTeX on Linux. The images have been created under OS X.

when including .png converted with Photoshop CS6 to grayscale I get a warning "warning: pdflatex> libpng warning: iCCP: known incorrect sRGB profile"  to be precise, I get 36 of this warnings ;-)  what's the problem with these .png?


In the Star Trek reboot movie, Nero's ship the Narada was a mining ship.  However, it was very heavily armed with devastating weaponry that far outmatched any ships from the earlier time.  While the Romulans are a warlike race and a mining ship may need to defend itself against pirates or the like, the sheer level of offensive weaponry on the Narada seems very out of place on a civilian vessel*.  The fact that the ship has decades newer technology doesn't really explain just how well armed it is.    If I understand the timeline, the Narada encountered Spock's Vulcan ship just as it had failed to prevent the destruction of Romulus, which would have given no opportunity to arm itself beyond what it was already provisioned with.   So my question is, What canon reason would there be for the Narada to be carrying such extensive weaponry when it is a mining ship?  * In my head I pronounced this as "wessel" in honour of Chekov :)

In Star Trek (2009), the Narada is equipped with some sophisticated missiles. Why would a mining vessel need such heavy offensive weaponry?


After "run code snippet" hat image created a duplicate image. This happens in my Google Chrome browser, but in Firefox it's okay... . Better see the picture:

If you run a code snippet, a hat still appears. Steps to repro:  Go to a question where there is a snippet and where the OP wear a hat well, if you find that hard, just go here.  (BTW, it's my answer)  Then, run the snippet.      Or just see here:   Winter Bash 2020!


I am flying AirAsia from Chennai to Auckland via Sydney without changing flight. The layover will be 55 minutes in Sydney.  Do I need to a transit visa for Sydney?  Chennai - Kuala Lumpur, Kuala Lumpur - Sydney, Sydney - Auckland     I am an Indian citizen with a visit visa.

Indian passport holder. Do I need transit visa in Sydney?


Every field is integral. Is this proof valid?  Suppose R is not integral →exists a∈R where a is a zero divisor →exists x∈R, x not 0 such that a.x=0 But R is a field so a is invertible →exists a'∈R such that a.a'=1 Now that a.x=0 and a.a'=1 a(a'-x)=1 →a'-x is the inverse of a →a'-x=a' →x=0 contradition

The proof I have starts of with $\;xy=0\;$ in a field.   Then $x^{-1}$ exists because it is a field.  Then $x^{-1} xy=x^{-1} 0$.  Therefore $y=0$.  But surely if an integral domain can not have any zero divisors, how can we end the proof by saying $y=0$? Surely then y is a zero divisor and hence the field is not an integral domain?


If I apply static keyword to local variable, its value is maintained within function invocations. However, if I apply static keyword to global variable, will it be as good as declaring the variable as global? What I mean to say is does static keyword has any effect on global variables?

I've seen the word static used in different places in C code; is this like a static function/class in C# (where the implementation is shared across objects)?


I am writing a document which describes the user interface of a software application. I want to use the actual icons as part of the description text (as in "Press XXX", where XXX is replaced by an actual icon).  How can I scale the icons so that they fits nicely within the text, without hardcoding a size? I can \includegraphics[heigth=something] but I would like this "something" to automatically adapt to changes in line height, font size, etc.  Is there a way to do this?

I have a logo in vector format (Adobe Illustrator) that I would like to use in my LaTeX documents. How do I create a latex symbol such that I can include this logo inline with the text, similarly to the symbol \LaTeX for example:    UPDATE  My logo contains a 'y' character and the solution outlined works but the baselines do not match (as the logo baseline is the bottom of 'y'). So I fixed it this way:  \usepackage{scalerel} \def\mylogo{\kern0em\raise-.1667em\hbox{\scalerel*{\includegraphics{mylogo.pdf}}{X}}}   UPDATE 2  An update on the answer seems to be a better way of accomplishing this.


How do you Drush reset an administrator password after forgetting the pass and losing its email?

How can I change a user's password from the command line using Drush?


Given $(x_1,x_2)' \sim N_2 \left(\bf{0},\Sigma\right) = N_2 \left(\left(\begin{array}{l}0\\0\end{array}\right), \left(\begin{array}{l}1&\rho\\\rho&1\end{array}\right)\right)$, find $Pr(x_1>0,x_2>0)$.  I have been struggling with solving this problem using multivariate algebra.  I think the final answer is $\frac{1}{4}+\frac{sin^{-1}(\rho)}{2\pi}$, but not sure how to get to it.  I am considering the trick is to notice that $Pr(x_1>0,x_2>0)=\frac{1}{2}Pr(x_1x_2>0)$; but from here I am stuck.    Any help and/or advice is appreciated.

$X$ and $Y$ have a bivariate normal distribution with $\rho$ as covariance. $X$ and $Y$ are standard normal variables.  I showed that $X$ and $Z= \dfrac{Y-\rho X}{\sqrt{1-\rho^2}}$ are independent standard normal variables.  Using this I need to show that   $$P(X >0,Y>0) = \frac14 + \frac{1}{2\pi} \cdot\arcsin(\rho).$$


So I installed Wine on my machine to use smartflix on ubuntu, but I keep getting this error saying "incompatible operating system: This program cannot run on Windows XP or before; it requires a later version of windows". Is there any fix for this?

I want to run/install .exe files that require Windows 7 or higher in Wine on Ubuntu.   When I try to install a specific .exe file on Wine, it says      Windows version is not supported! You can install it in Windows 7 or higher.   How can I configure which Windows version (XP, Vista, 7, 8, ...) Wine emulates?


Can't open update manger,package manager or software center.   The following code appears when I attempt to launch the above:     Could not initialize the package information  An unresolvable problem occurred while initializing the package information.  Please report this bug against the 'update-manager' package and include the following error message:  'E:Type '“deb' is not known on line 58 in source list /etc/apt/sources.list, E:The list of sources could not be read.'    Tried to 'gedit' it, apparently it doesn't handle 'E' Files?  Thank you in advance for your help.

Every once in a while I see users having issues to update due to errors like this:  E:Type 'ain' is not known on line 1 in source list /etc/apt/sources.list.d/some-ppa.list'   with varying types/line numbers/source list files (often after removing a PPA).  How can such an error be fixed?


I have been issued Schengen visa from Norway embassy. I had plans to visit my brother who is living in Norway. Is it compulsory for me to enter Norway first or can I enter any Schengen country on arrival? My visa is C-type and it's Schengen Statene mentioned in it.

If I applied for a Schengen visa from "country A" and I got the visa but I had some commitments in "country B" and I have to finish it before going to Europe should I get back to "country A" to travel to Europe or can I use the visa from any where?


Any time I try to watch a flash (or maybe HTML5) video in chrome, when I fullscreen it, Ubuntu freezes, goes black, and then my monitor says "no signal." This only happens on the second or third time of using fullscreen, oddly enough. I can do it once with no issues. This has only been an issue since the update of Chrome 40 a few days ago. The problem does not exist in Chrome. I'm using Intel Haswell graphics, if that is important.

I never had this problem until today. When I watch a youtube video everything is fine, until I make the video fullscreen. It actually continues to play perfectly when fullscreen, but when I then exit fullscreen my sidebar and topbar are gone, and the screen is just frozen. Also my cursor is gone. It does seem to respond to ALT-F4, but it takes about 15 seconds to even close the window, and after that everything is unusable (basically frozen). What's strange though, when I re-enter fullscreen after exiting (and unity being frozen) the video plays perfectly still.   For now my workaround is opening tty1 and executing pkill -u username which logs off the user. I have looked at /var/log/syslog but it seems to be empty.  Is this freezing a common problem, if not, how can I make steps to fix this?    EDIT with specs:  I'm on a simple Samsung laptop with:  Ubuntu 14.10 64-bit,  Intel® Core™ i5-3210M,  Intel® Ivybridge Mobile (So integrated intel hd graphics 4000),  8GB ram. I don't think i've ever changed my video drivers, but it's reported as i915.  Ubuntu is up to date, and my browser is Chrome 40.0.2214.91 (64-bit). (Will test out now with firefox, but already posting this because my pc might freeze again)     EDIT 2: It doesn't freeze on Firefox. Will try reinstalling chrome now... EDIT 3: Reinstalling chrome didn't help. Will try chrome 32-bit too now...


Is there any way to get remote shell (not RDP) from home PC to office PC? i have 2 pc's on 2 different places  pc number one ip : 66.33.22.885 ( home PC )  pc number tow ip : 77.13.85.676 ( office PC )  i want to connect from home to office via cmd not ( RDP ) how i can ???  and i dont know why they edited my post and delete it !!

Remote desktop is... useable, but I'd like to get a proper remote terminal window open on the Windows XP machine, like I'm able to with Linux. A quick Google points at , but it looks like it's only for Vista/Server.


I am running Ubuntu 14.04 in a Acer Aspire M5. Every time I reboot after I get the Acer logo, I get the following:  The disk drive for Xmnt/usb-Memorex_Travel_Drive_CL_07A50403BE24FFAF-0:0 is not ready or not present.  Continue to wait, or Press S to skip mounting or M for manual recovery.   I have been pressing S for the past few weeks, and then my box will boot up normally. However, I would prefer of course to not have to do this at all every time my machine goes for reboot.   Can anyone please help me here?  Thanks.

After upgrading my laptop from karmic to lucid, my fat32 partition won't mount automatically. I get the message:  The disk drive for /osshare is not ready yet or not present Continue to wait; or Press S to skip mounting or M for manual recovery   Funny thing is, if I skip, then /osshare/ is mounted once I log in.   I've a similar setup on my desktop, and it works fine. Fstab on desktop:  UUID=4663-6853  /osshare        vfat    utf8,umask=007,gid=46 0       1   /etc/fstab on laptop:  UUID=1234-5678 /osshare vfat utf8,auto,rw,user 0 0