Android set layout depending screen size
How to support different screen size in android
SQL Query; Admin Log System; Foreign Keys; Retriving multiple rows form different tables at once Table A (users)  id     | name   | ip 52433    Yashas   1.1.1.1 512      Admin    5.6.7.8   Table B (admin_record)  id    | admin | time    | date    | reason | action  52433   512     2312352   1213213   Test     WARN   id is FOREIGN key  Table B keeps a log of all actions an administrator takes on his users. And the table A stores the account information of the users &amp; administrators.  I am trying to display a list of actions taken by a administrators on a user.   I want to write a query which gets me all the rows of table B where id = fixed number.  Here is what I want to display:  "Administrator1 [Name]" took action on "User Name" for "[Note]" on XX/XX/XXXX. "Administrator2 [Name]" took action on "User Name" for "[Note]" on XX/XX/XXXX. "Administrator3 [Name]" took action on "User Name" for "[Note]" on XX/XX/XXXX.   All I have is the user's id using which I need to obtain all the entries in the log along with the administrator names. I need to obtain the admin's name, users name and all the contents of table B related to a particular user in one single query. If possible, I want the to change the field name(not literally change, but want the SQL server to send the data with new field names to separate admin name &amp; user name) of the admin's name to admin_name and user's name as . I mean something like this  SELECT users.name AS admin_name WHERE users.id = %i  AND SELECT users.name AS user_name WHERE users.id = %i   (the query isn't correct,it us just an example to show what I am trying)  Progress so far:   SELECT player.name, player.ip, admin.name, record.date, record.time, record.action, record.reason FROM admin_record AS record JOIN users AS player ON player.id = record.id JOIN users AS admin ON admin.id = record.admin WHERE player.id=%i   where admin_record is table B &amp; users is table A. NSXMLParser chokes on ampersand & To me, using Present Perfect form means the event can occur again. So, saying      someone has died   may not be grammatically correct.  Also, I noticed (it might be just coincidence):     passed away   is used more often than     has passed away   Is using Present Perfect correct here? Today my lecturer put up on the board that:  If $\lim\limits_{n\to\infty}\frac{a_{n+1}}{a_n}$ exists and $a_n&gt;0$ then   $\displaystyle \limsup\limits_{n\to\infty}\left(a_n^{\frac{1}{n}}\right)=\lim_{n\to\infty}\frac{a_{n+1}}{a_n}$  however I am not sure why this is true, can somebody give me a hint or something as to how to go about proving this.  thanks for any help Quick-and-dirty way to ensure only one instance of a shell script is running at a time Check if convergent in the end points of the convergence interval I have to find the radius of convergence for $\displaystyle\sum_{n=0}^{\infty}\frac{n}{n+1}x^n$, for x$\in$R. I think it is $r^{-1}=\lim_{n\to\infty}\frac{a_{n+1}}{a_n}=\lim_{n\to\infty}\frac{ \frac{n+1}{n+2} }{ \frac{n}{n+1}}=1$ so r=1. Then I have to find out if $\displaystyle\sum_{n=0}^{\infty}\frac{n}{n+1}x^n$ is convergent in  the end points of the convergence interval. I think I have to check for $|r|$. But we can't use ratio test (L=1) or integral test(not decreasing) for $\displaystyle\sum_{n=0}^{\infty}\frac{n}{n+1}$. How can I then check if it's convergent in the end points of the convergence interval? Applying for a USA B1/B2 Visa for an alien resident in Germany I hold an EU Blue Card and an Indian Passport and have submitted a paper to a conference in the USA due to occur in September 2019. The Blue Card will expire in August 2019 but have already obtained an extension for the same.  In order to present the paper in the conference I need to apply for a B1/B2 visa for the USA and not sure if I may be allowed to apply for one in Germany since I am not a German Citizen.  Are there any specific documents that I might need in order to apply for the B1/B2 Visa since I am not a citizen of the country where I am actually applying? Stored Procedures, MySQL and PHP The question is a fairly open one. I've been using Stored Procs with MS SQLServer for some time with classic ASP and ASP.net and love them, lots.  I have a small hobby project I'm working on and for various reasons have gone the LAMP route. Any hints/tricks/traps or good starting points to get into using stored procedures with MySQL and PHP5? My version of MySQL supports Stored Procedures. How do the radian have a unit? I'm going to accessing my ubuntu machine remotely from my windows machine through putty. Are there any suggestions for possible ways to get an X server running on my windows machine?  Thanks. If i entered "name" in my text box while it saved it must be saved like "Name"   Capital letters in the first letter of Alphabet  It must not show any error messages it must directly save 18.04 ctrl+shift to change language Can I use Ctrl+Shift for changing languages? I can't set this hotkey for changing keyboard languages.  At this moment Alt+Shift switch languages, but I can't see this hotkey in keyboard hotkeys list or in   gsettings list-recursively  org.gnome.desktop.wm.keybindings | sort | more   output. Default constructor with empty brackets Avoid large spaces between text and equations I use the options  \renewcommand{\baselinestretch}{1.25} \setlength{\parskip}{0pt} \setlength{\parindent}{0pt}    in the preamble of my document and most of the time the document looks like intended. Once in a while though, especially when I use multiline-equations, I get huge spaces right before and after the equation and the surrounding text, for example:    Is there any way I can avoid that without removing the \parskip option? What is the moment of a joint random variable? Simple question, yet surprisingly difficult to find an answer online.  I know that for a RV $X$, we define the kth moment as $$\int X^k \ d P = \int x^k f(x) \ dx$$ where the equality follows if $p = f \cdot m$, for a density $f$ and Lebesgue measure $m$.  So, what is the kth moment of, say, $(X,Y)$? $\int (X,Y) \ d P$ doesn't really seem like the answer to me.... Generate a comma-separated list of cell contents, excluding blanks To concatenate a certain four cells, I'd use:  =CONCATENATE(A2,",",C2",",D2,",",F2)   This would make it so that...   A2 = "Matthew" C2 = "Mark" D2 = "Luke" F2 = "John"   would result in Matthew,Mark,Luke,John.  But we run into problems with something like...   A2 = "Jesus" C2 = "" D2 = "Mary" F2 = "Joseph"   which would result in Jesus,,Mary,Joseph.  Here, the extra comma is undesired. Is there a way to gracefully handle this so that all non-blank cells are included in the comma-separated list, while avoiding the addition of unnecessary commas when some cells are blank?  Certainly, this can be done with a fair number of nested IFs, but I really want to avoid that if possible. Can it be done with native Excel functions, or perhaps an array formula? Or would one have to resort to VB Script for something like this? Prove that inequality $\sum _{cyc}\frac{a^2+b^2}{a+b}\le \frac{3\left(a^2+b^2+c^2\right)}{a+b+c}$ I'm training a neural network for regression. The input vector consists of $140$ entries.   For each feature vector entry, I calculate both min and max over the training set. The difference max-min of some entries are smaller than 1e-5. I understand I can normalize such feature entries by say MinMaxScalar. However, if the difference max-min is this small, can I discard such entries since they seem to be so insensitive? Aligned equation which can break through pages I'm writing long sequences of aligned math equations, and LaTeX interprete them as single, unbreakable objects... which is Ok if the equation is nowhere near the end of the page.  Q: Is there a way to (automatically) break the align equation through pages?  In the code below,  \documentclass{report}                                                           \usepackage{amsmath}                                                             \usepackage{lipsum}                                                               \begin{document}                                                                 \lipsum[1-4]                                                                     \begin{align*}                                                                   FFFFFFFFFFFFFFFFFFFFFFFF &amp;= \partial_t(p)\\                                                               &amp;= \partial_t(m v)\\                                                             &amp;= m a\\                                                                         &amp;= m \dot{v}\\                                                                   &amp;= m \ddot{x}\\                                                                  &amp;= \partial_t(p)\\                                                               &amp;= \partial_t(m v)\\                                                             &amp;= ma\\                                                                         &amp;= m \dot{v}\\                                                                   &amp;= m \ddot{x}                                                                  \end{align*}                                                                     \end{document}      all of the equation goes to the second page. I do not want that  If I break manually, by closing the align and open another, I lose the alignment with the previous part.   \documentclass{report}                                                           \usepackage{amsmath}                                                             \usepackage{lipsum}                                                               \begin{document}                                                                 \lipsum[1-4]                                                                     \begin{align*}                                                                   FFFFFFFFFFFFFFFFFFFFFFFF &amp;= \partial_t(p)\\                                                               &amp;= \partial_t(m v)\\                                                             &amp;= m a\\                                                                         &amp;= m \dot{v}\\                                                                   &amp;= m \ddot{x}\\                                                                \end{align*}                                                                     \begin{align*}                                                                     &amp;= \partial_t(p)\\                                                               &amp;= \partial_t(m v)\\                                                             &amp;= m a\\                                                                         &amp;= m \dot{v}\\                                                                   &amp;= m \ddot{x}                                                                  \end{align*}                                                                     \end{document}   I do not want that either.  So far I read about breqn packages, but it seems not to do what I would like.  Any Suggestion?? Thx. Bluetooth audio delay / lag, reason completely unclear to me I have a bit of an odd situation, and wanted to ask for ideas.   Recently started connecting a JBL Charge 2+ to my MBA 11 inch, mid-2013, via Bluetooth. I noticed that there's clear delay between sound event and sound being audible via the JBL.   The problems persists across applications (so for example, playing video via VLC means the sound isn't synced, same for youtube videos in different browsers, same for mp3s that start playing with a small delay, etc.)  The delay is minor, but noticeable, in the range of 0.5s I'd say.  At first I thought it might be a Bluetooth driver issues, but now I found out the following: just connected another JBL device, a Flip 3 to the same MBA, and the sound plays without noticeable delay. I'm not sure if they use the exact same drivers, but now I'm wondering:   Is there a chance that it's a hardware problem? Didn't really consider this a possibility, but now I'm not sure anymore. How to test, and, ideally, fix this issue? How can I isolate the reason for the audio lag with the Charge 2+?   Any help would be appreciated!