Why aren't my mathematical operators showing up?

I've inherited a fairly substantial LaTeX document as part of a new job. Unfortunately, I haven't really had time to get to grips with it and it now need to be compiled.  There are no errors (other than some biblatex warnings) but none of the mathematical operators are showing up (=, +, -, > etc.) except for \times. I've done some research and have come to the conclusion it's probably a conflict in the packages being used but I can't seem to figure out which one.  The preamble is:  \RequirePackage{xcolor}         % Extended colorsx    \documentclass{BYUTextbookUCTAS} \usepackage{natbib} \usepackage[immediate,save]{silence}  \usepackage[T1]{fontenc} \usepackage{lmodern} %definitely need this \usepackage{amsmath,amssymb} \usepackage{rotating} \usepackage{threeparttable} \usepackage{tikz} \usepackage[tikz]{bclogo} \usepackage{bigstrut} \usepackage{booktabs} \usepackage{lifecon} \usepackage{multirow} \usepackage{longtable} \usepackage{arydshln}  % Sub appendices \usepackage{appendix} \usepackage{chngcntr} \usepackage{etoolbox}   Edit: Thanks to egreg, I've managed to get the mathematical operators back but now there are some other formatting problems.  I've uploaded a PDF  showing what happens when I include/exclude the "lmodern" package.  And I've uploaded the cls file  (pastebin ).


If Voldemort died almost 8 years (May 1998) before Scorpius was born (January 2006), why did people think he was the son of Voldemort? Why were there rumors that Scorpius is Voldemort's son?   Also, we know that black hair (Voldemort) is dominant over blonde (Scorpius), and that brown eyes (Voldemort) are dominant over grey (Scorpius), which leads to more confusion as to why there were rumors.


Unable to apply readonly keyword on method scope but const is working fine

Why we can not apply readonly key word on method scope.but const is working fine.  public void show(){    const string test = "test";       } public void show(){    readonly string test="test"; }   any help would be appreciated.


What is the meaning of $F\eta$ in the definition of adjunction

I'm rather new at this so please try to make it simple.    Reading the wikipedia's adjunction Definition via counit–unit in the following link: , I came across the symbol $F\eta$, where $\eta:1_{\cal D}\rightarrow GF$ and $F:\cal D\rightarrow\cal C$ and  $G:\cal C\rightarrow \cal D$; $\eta$ is a natural transformation, $F,G$ are functors and $\cal C, \cal D$ are categories.     This is probably a silly question but what does $F\eta$ represents? is it $F\circ\eta$? In that case, how does it work? in the diagram it says: $F\eta(F)\rightarrow FGF$, but $\eta$'s domain does not contain $F$.. Clarification would be much appreciated.


Function which is continuous exactly one point and differential exactly one point

I found a Function which is continuous exactly one point and differentiable exactly one point. And 2 point continuous and 2 point differentiable and more for infinite finding this type of function is possible?


Calculate Age with months and years in SQL

I do have a requirement like I need to calculate a person age with sysdate. Calculating the persons age should be exactly greater or lesser than 75years and 09 months with the sysdate. but at some scnearios its not working out. can any one of help with this issues.  IF TO_CHAR(bday,'mm/dd')='02/29' THEN age = ADD_MONTHS(bday-1,12*75); ELSE age = ADD_MONTHS(bday,12*75); END IF;   but this is not working at some conditions. could anyone help with this requirement


How Does Surprise Work With Multiple Attackers?

I'm starting my own campaign this weekend and had questions about how the surprise aspects work in D&D 5e. I know this question has been asked before, but I have yet to see an answer describing what takes place when there are multiple attackers and defenders.   In the Lost Mines campaign, there is a goblin ambush section where EACH goblin must roll for stealth and compare it with the passive ability of the characters. As a DM, do I just arbitrarily decide which goblin attacks which character? And what if there are more goblins than characters rolling for stealth? What if multiple goblins attack one person? Or does each goblin have to have a higher stealth roll than ALL the party members passive perception? How is that all decided?


How to download 360 photos from Facebook and view them on Windows 10?

Searched the web for few hours but barely found any information. How to download 360 photos from Facebook? Could they be viewed via Windows 10 photo viewer?


I love the taste of onions and garlic and it seems lots of other people do too.  But they upset my stomach so much that I can't really cook with them.  What can I use in their place to give my food a similar flavour?


no space left in '/' but a lot space left in '/home'

i install ubuntu and followed a guide to put 20gb in '/' and the rest (150gb) in '/home'. Now i just found out that a lot of the things installed in ubuntu usually goes to '/' instead of '/home'. I have a lot more things to install.  So what is the point of '/home' ? How do I fix this ? Should I transfer 150gb from '/home' to / ?  Filesystem      Size  Used Avail Use% Mounted on udev            7.8G     0  7.8G   0% /dev tmpfs           1.6G  9.5M  1.6G   1% /run /dev/sda6        19G   16G  1.8G  91% / tmpfs           7.8G  676K  7.8G   1% /dev/shm tmpfs           5.0M  4.0K  5.0M   1% /run/lock tmpfs           7.8G     0  7.8G   0% /sys/fs/cgroup /dev/sda2        96M   29M   68M  31% /boot/efi /dev/sda8       159G  1.1G  150G   1% /home tmpfs           1.6G   56K  1.6G   1% /run/user/1000   what is /boot ? Its not '/' or '/home'


Is the computer freezing due to high temperature?

The problem is that my computer suddenly freezes, the mouse and keyboard halt and nothing works.  So I checked the CPU temperature, and I found that under BIOS H/W monitoring  CPU Temperature -> 94+ -105 Deg C Internal Temperature -> 45+ Deg C Remote Temperature  -> 45+ Deg C   Here are computer specs :  Intel Pentium 4 3.0 Ghz Windows xp sp3 1 GB RAM 256MB Graphics card   I don't have very many programs installed except Visual Studio 2010 , some multimedia players, etc.  Is it OK? Do I need to change thermal paste again?


Is it possible to post questions via email?

I don't have internet during the day and I need to post by email. Is it possible?


Is there a shared property between the type of problems that quantum computers will beat classical computers at?

I've been looking into quantum algorithms, Deutsch–Jozsa, Grover, Shor. To me all they share is that they do something in parallel and then cleverly extra some specific information for that. Which to me means QC can provide efficient parallel programming if the goal itself isnt the direct result. By this I mean if the goal was actually knowing the result of each calculation. Is there a property that all problems that QC will excel at share?


Can comeone help me? How do I show that every group of order 90 is not simple?


I just saw a question on SO that used 5 smileys in the title, the body, and if it had been possible the tag. My eyes feel so very sore right now.  What's the benefit in a title and/or question?  Am I being grumpy?  Here is the Q:   I just realized it does not render the same way on mobile and desktop. Desktop is much less aggressive.


How can editors and reviewers detect data manipulation?

I am preparing a paper in the field of Computer Science.  In order to report test results, we usually run a number of tests and report the average of those tests.  For each test, we generate random data.  Because of the randomness, at some points, the results may come out not as expected.  For instance, a graph may be like:   Usually, one should explain why on points 8, 11 and 12 there is a decrease on the plot. Probably, it is because of that randomness.  Not hand-crafting all the graph, but just manipulating a few points makes the graph acceptable:   Since three weeks or so, I work my ass off and try to figure out why my resulting graph looks like the first one. Sometimes I feel like yielding to temptation and just modify the raw data before I go crazy.  I believe, at this point the title became misleading, so let me make it clear:  I am not seeking an advice on data manipulation. I will not manipulate my data. However, I ask to myself "how the hell this can be detected?"  And now, I don't only ask to myself, but to whole community. How is this detected? For editors, referees out there, have you ever detected something like this?


How to list all files in current directory whose second character is a digit?

I tried ls ?[0-9]* ,  this matches all files in current directory, but also expands any directories in my current directory as  and matches the files in any sub directory. I want * to match only to current directory.   ---- Program output -------------------------------- f1 f2 g2t g3t  d2:  d4:  --- Expected output (text)--- d2 d4 f1 f2 g2t g3t   Here d2 and d4 are directories, while others are files. I want them to be listed as d2 and d4 and not as d2: and d4:


Differentiability of the function:$g(x,y)=f(\sqrt{x^2+y^2})$

Let $$g(x,y)=f(\sqrt{x^2+y^2})$$ with $f$ continuously differentiable($\mathbb{R}\to\mathbb{R}$) and $f'(0)=0$.      Then, is $g$ differentiable on $\mathbb{R^2}$? Specifically, does $g(0,0)$  and $f(0)$ have a role to play?


How to return multiple variables from a function to main method without arrays or loops in C++

I am required to call an input method and a calculations method from main. Input will prompt the user to input 3 variables. Without using arrays, loops, or globalized variables, how can I return the 3 variables back to main to be passed as parameters to the calculations method?


What is the purpose of a neural network activation function?

What is the purpose of a neural network having a non-linear activation function?   Is it correct to say that the non-linear activation function's main purpose is to allow the neural network's decision boundary to be non-linear?  I've read in other StackOverflow answers that the activation function "", but that is rather vague.  Another posting states that an answer in the context of , but again that is not exactly what I'm asking.


Imagine such situation: We have an empty balloon. We put a long, narrow tube into this balloon and we fill it with water.  Then, the volume (and surface) of the balloon will start to increase. The pressure in the balloon will increase, too. I conducted this reserach. I messured the height of the water in the tube (starting at the center of the balloon) and then the circumference of the balloon. Then, I calculeted diameter and pressure in the balloon  $d = L/ \pi $ (m)  $p = 10^5 + 1000 gh$ (Pa)   Then, I plotted the relation between diameter and pressure    What role in this project did surface tension play? How can I consult it to the math?


I made a very simple script  #!/bin/bash mkdir $1 && cd $1   when I execute  myscript test   It creates test directory but doesn't go inside just after. I don't understand why, on my fedora 27 this script works without any issue but on my debian stretch this behavior occurs. Could someone explain why I am having this bug.


Updating iterating array inside JavaScript ForEach

Replace an employee aged > 50 with a younger employee.   I am trying to update an item inside an array I am forEach()ing on. Assigning the current fails while noting the index and replacing the item after forEach() block works. Kindly explain this behaviour?  var youngerEmployee = {   name: {     first: 'B',     last: 'C'   },   age: 25 }  var employees = [   {     name: {       first: 'X',       last: 'Y'     },     age: 45   },   {     name: {       first: 'A',       last: 'B'     },     age: 54   } ];  /* --- Failed approach --- */  employees.forEach(    (employee) => {      if(employee.age > 50) {        employee = youngerEmployee;      }    }  );  console.log(employees);  /* --- Successful approach --- */  var i = -1;  employees.forEach(    (employee, index) => {      if(employee.age > 50) {        i = index;      }    }  );  employees[i] = youngerEmployee;  console.log(employees);


Are $\frac {\mathbb R[x]} {(x^2 -1)}$ and $\frac {\mathbb R[x]}{(x^2)}$  Isomorphic?  Can anyone please give me a hint?  My attempt:  I can find the elements of two rings. But I have no clue to  prove or disprove that statement.


Actually how important is accepting an answer to the Stack Exchange model?

At the moment the answer seems to be not really. It's  and there have been various suggestions ranging from  to  and . If acceptance is not important to Stack Exchange then the above questioners are correct, the accept-rate should just be removed and consigned to the annals of history (it does not necessarily follow that if acceptance is important that they are wrong). Having said that, the  has started dropping, a lot more rapidly than in the past:  Year Quarter Accepted Not Accepted Accept Rate  ---- ------- -------- ------------ -----------  2008 3       14406    3693         79.6%        2008 4       29316    10409        73.8%        2009 1       40640    13641        74.87%       2009 2       55109    20866        72.54%       2009 3       71370    27464        72.21%       2009 4       82408    30724        72.84%       2010 1       104009   38091        73.19%       2010 2       112286   44839        71.46%       2010 3       130766   52886        71.2%        2010 4       142350   58440        70.89%       2011 1       182457   77480        70.19%       2011 2       199631   87173        69.61%       2011 3       206190   91454        69.27%       2011 4       208593   90520        69.74%       2012 1       242649   111889       68.44%       2012 2       247153   121580       67.03%       2012 3       247080   130932       65.36%       2012 4       233874   139374       62.66%       2013 1       25351    22308        53.19%     These stats are for open questions only as for obvious reasons a closed question may not necessarily get an appropriate answer (or any). Is acceptance an important concept to the Stack Exchange model? Would Stack Exchange have  and does it matter that it's happening less and less?


QGIS - Is it possible to display a raster label (not band value) using identify tool or any other tool?

This question , but I hope that new QGIS features may have produced an anwswer.   In the new QGIS version, are there new raster features  similar to the vector features "action button", label menu or Qt Designer form, that may allow  to display a raster label (not band value) ?


I'm new to Linux. I'm trying to make a script that prints something and initiates a shutdown command. This is my script:  #!/bin/bash      echo Hello WOOOOORRRRRLLLLDDDDDDD  echo sudo poweroff   Every time I try to run my script,using  chmod +x Hello World BASH   or     ./Hello World BASH  however, I get this error message:  chmod: cannot access 'Hello': No such file or directory chmod: cannot access 'World': No such file or directory chmod: cannot access 'BASH': No such file or directory   In general, everytime I try to run this script, the "no such file or directory" error message popped up. How can I fix this?


How to take screenshot of current screen and not only the visible desktop?

I am trying to write a program that takes a screenshot every x seconds of the entire desktop. However, using the solutions i have found online i am only getting a partial desktop capture, usually the top left quarter of the screen. I have tried a couple of different options detailed in these threads however, they both have the same issue.   How can i ensure regardless of screen resolution, that i capture the entire screen?


I need to hide/show a group of columns in Google Sheets in a simple way

I need to hide and show in a easy way a group of columns in Google Sheets. In Excel I used a Macro with a button, but in Sheets I cannot put a button.  How can I add buttons with custom functions in Google Sheets?


1. I hate them calling her fat.      2. I hate their calling her fat.   Which one is correct and which one is not ? Or do both work under different circumstances ?  Please answer with explanation. Thank you. And by correct I mean grammatical and appropriate for formal writing.


No subgroups of $A_{n+1}$ is isomorphic to $S_n$

Here is my reasoning so far.  Let $H \leq A_{n+1}$, and suppose for a contradiction $H$ is isomorphic to $S_n$. If every permutation of $H$ fixes $n+1$, then $H \leq S_n$, but every permutation of $H$ is even, so $H \neq S_n$. Hence there must exist some permutation $h \in H$ that moves $n+1$. But then I'm kind of stuck. I tried to come up with an isomorphism from $H$ to $S_n$ and find a contradiction, but there is too little information available to gain any ground.


How can I share a wifi signal with other machines on my wired network?

I want to take in a WIFI signal and provide internet service to this Ubuntu machine AND others on my hardwired ethernet connection.  I have asked this elsewhere and only got 'it's easy, use the GUI' but that was less than helpful.  Pointing me to where I can RTFM (Read The Fine Manual) is fine too, or even put the details in here somewhere!  Thanks for your support.


Google search results shows every page on my site as a separate result

I'm new to SEO but been working for a while in our own company site, I have fetch and probe everything in the GSC even sent a update sitemap recently, already processed and everything is cool, but when I search in google something like this shows up    all I want is to have all my site under the same result like this:    Could you give me some advice on it.  It's worth to say, I have everything check on the search console, my sitemap updated and valid.


How can we determine time flows in one direction?

Suppose that time could flow in either direction, forward or reverse, similar to a movie. How could our brain possibly record that time had moved backwards? Would there be any way to tell if time had run forwards and backwards countless numbers of times? Isn't it true that our brains only function in one direction of time?


How to compute $\lim _{x\to 0}\frac{(1+x)^{1\over x}-e}{x}$ without using a series expansion?

What do you think is the fastest method to find the limit $$\lim _{x\to 0}\frac{(1+x)^{1\over x}-e}{x}$$ (without using series expansion)?


I'm using php 7.3 but my string not show as well: <?php header('Content-type: text/plain; charset=utf-8'); // mb_internal_encoding("UTF-8");  var_dump($_POST); //it shows ØªØ³Øª var_dump($_GET); //it show as well   my result:


What functions satisfy $f \circ g = g \circ f\ne \text{id}$?

What functions satisfy $f \circ g = g \circ f\ne \text{id}$ and $f \ne g$?   Some thoughts: This is fulfilled for $f(x) := \alpha x$ and $g(x) := \beta x$ for $\alpha, \beta \in \mathbb{R}$ such that $\alpha \beta \ne 1$ and $x \in \mathbb{R}$ because of commutativity of real numbers, but are there other not so trivial examples and how can they be characterised?  Edit to reflect how this shouldn't be a duplicate. The accepted answer on the suggested duplicate is very interesting and informative but only deals with polynomials / rational functions and there are a lot of other functions that could fit this description (and if not, why?).


game not detecting any nearby gyms or pokestops in my area

I have been playing pokemon go for about a week now and the game worked perfectly all this time. But recently when I logged in, the game fails to detect any of the nearby gyms or pokestops. There are'nt any nearby pokemon shown in the box below as well.There are like 2 pokestops and 3 gyms in my area but the game is not detecting any of them for a couple of days now.


Problem with apt-get upgrade and dependencies

Im trying to upgrade my system but when I execute the command this happens:  plex@plex-server:~$ sudo apt-get upgrade [sudo] password for plex: Reading package lists... Building dependency tree          Reading state information... Done   You may want to run 'apt --fix-broken install' to fix it. The following packages have unmet dependencies:    libgail-3-0 : Depends: libgtk-3-0 (=3.22.30-1ubuntu4) but 3.22.30-1ubuntu1 is installed   libgtk-3-bin : Depends: libgtk-3-0 (>= 3.22.30-1ubuntu4) but 3.22.30-1ubuntu1 is installed E: Unmet dependencies. Run 'apt --fix-broken install' without packages (or specify a solution).   I have done update before and I've tried autoclean, autoremove, --fix-missing but it still doesn't work.  EDIT This is what I have in my sources.list file:  #deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/  bionic main restricted  # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://es.archive.ubuntu.com/ubuntu/ bionic main restricted # deb-src http://es.archive.ubuntu.com/ubuntu/ bionic main restricted  ## Major bug fix updates produced after the final release of the ## distribution. deb http://es.archive.ubuntu.com/ubuntu/ bionic-updates main restricted # deb-src http://es.archive.ubuntu.com/ubuntu/ bionic-updates main  restricted  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the  Ubuntu                                             ## team. Also, please  note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://es.archive.ubuntu.com/ubuntu/ bionic universe # deb-src http://es.archive.ubuntu.com/ubuntu/ bionic universe deb http://es.archive.ubuntu.com/ubuntu/ bionic-updates universe # deb-src http://es.archive.ubuntu.com/ubuntu/ bionic-updates universe  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the  Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as  to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://es.archive.ubuntu.com/ubuntu/ bionic multiverse # deb-src http://es.archive.ubuntu.com/ubuntu/ bionic multiverse deb http://es.archive.ubuntu.com/ubuntu/ bionic-updates multiverse # deb-src http://es.archive.ubuntu.com/ubuntu/ bionic-updates multiverse  ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it  includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any  review ## or updates from the Ubuntu security team. deb http://es.archive.ubuntu.com/ubuntu/ bionic-backports main restricted  universe multiverse # deb-src http://es.archive.ubuntu.com/ubuntu/ bionic-backports main  restricted universe multiverse  ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and  the ## respective vendors as a service to Ubuntu users. # deb http://archive.canonical.com/ubuntu bionic partner # deb-src http://archive.canonical.com/ubuntu bionic partner  deb http://security.ubuntu.com/ubuntu bionic-security main restricted # deb-src http://security.ubuntu.com/ubuntu bionic-security main  restricted deb http://security.ubuntu.com/ubuntu bionic-security universe # deb-src http://security.ubuntu.com/ubuntu bionic-security universe deb http://security.ubuntu.com/ubuntu bionic-security multiverse # deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse


Explain L1 vs. L2 regularization difference using the scientific mindset

I need to have job interview soon, one of the questions may be L1. vs L2 regularization. Yann LeCun explained best to my knowledge the difference between L1 and L2 regularization.  : Weights are shrunk every iteration towards zero by a constant equals to ηα. It will eliminate weights (he said inputs in error) that are not very useful.   : In the absence of any gradients from C the weights exponentially decay to zero. It tried to tell the system: Minimize my cost function but to it with the weight vector that is as short as possible.  As you can see both the regularization types will minimize/eliminate the weights that are not very useful to zero. So what's the difference really? If I just say L1 will do it based on L1 norm, and L2 based on L2 norm this is probable true but that will not be the scientific mindset.


Need help: simplifying/changing a Oracle SQL-query, so I can use it in LINQ

I have following SQL-query and I have to build it up with LINQ, but it's too complex to find an easy way. :-/  Here is the query first:  SELECT * FROM tbl_a LEFT JOIN (     SELECT tbl_a.id AS id     SUM(tbl_b.amount) AS amount     FROM (tbl_a LEFT JOIN tbl_c ON tbl_a.id = tbl_c.from_this_id)         LEFT JOIN tbl_b ON tbl_c.id = tbl_b.tbl_c_id         WHERE (tbl_c.deleted = FALSE)                AND tbl_b.deleted = FALSE                AND tbl_b.status = 2         GROUP BY tbl_a.id ) tbl_tmp ON tbl_a.id = tbl_tmp.id WHERE (tbl_tmp.amount Is NULL OR tbl_a.amount > tbl_tmp.amount)       AND tbl_a.amount > 0       AND tbl_a.item_ID = item.Id       AND tbl_a.type_ID = type.Id       AND tbl_a.deleted = FALSE   I must tell you that "item.Id" and "type.Id" are parameters of type long, so you can replace them with a number.  Can someone help me to make an alternative query with same result, so I can use it with LINQ? Or can someone convert this directly to LINQ?!


Can I use Canon & Tokina lenses with my Nikon DS3100?

I have a Nikon DS3100.  I have now been given two lenses.  Canon Zoom Lens EF 35-80MM TOKINA 28-210MM   I have not yet tried them on my Nikon DS3100 and wondered if they are suitable to use.  Any help would be appreciated.  But please talk in layman terms as I'm not well up on camera and lenses as yet.  Thank you


Is L'Hopitals rule applicable to complex functions?

I have a question about something I'm wondering about. I've read somewhere that L'Hopitals rule can also be applied to complex functions, when they are analytic. So if have for instance:  $$ \lim_{z \rightarrow 0} \frac{\log(1+z)}{z} \stackrel{?}{=} \lim_{z \rightarrow 0} \frac{1}{(1+z)} = 1 $$  Now i'm wondering if this is correct? Also if we take $|z|<1$, is it then correct?  Thanks,


Open Data Cube: Unable to connect to database within opendatacube Conda environment

I followed the steps listed at  and did the following:  Installed Python  Installed PostgreSQL ssudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo apt-get -y install postgresql   Installed Miniconda and created a conda datacube environment conda config --add channels conda-forge conda create --name cubeenv python=3.6 datacube source activate cubeenv  datacube system check     Gives me an error stating  psql: error: could not connect to server: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?  Problem is that PostgreSQL is accessible outside the environment but not getting connected once the environment is activated. A screenshot of the same is attached.


Is the model below an example of nonlinear regression? $$y = \beta_1 + \beta_2^2x$$ Some books say, it is, but I'm not convinced as $\beta_2^2$ can itself considered a constant denoted by (say) $\beta_3$.    I have studied other examples of nonlinear regression and been convinced about them.  The question differs from an  suggested in that in my question, power is over $\beta$, the regression coefficient, while on the answer, power is over x, the independent variable.


How to get the last field in a Mysql database with PHP?

I have mysql database and I want to get the last ID from field in a table .  example : -   id   Value 1    david 2    jone 3    chris   I want a function return 3 if this table exist .


According to , "SHA-256d" was proposed in one of the Ferguson/Schneier books like so:  SHA-256d(x) = SHA-256(SHA-256(x))   Apparently, the motivation for this construction is to avoid length extension attacks.  Incidentally, SHA-256d is the hash function forming the core of Bitcoin.  According to the comment on the answer linked above, "some minor weaknesses" are known in SHA-256d. What are they?


why the varialbe is 2 in the loop?  and it is the 1st breakpoint the program meet in the loop.


If a character is drunk, what are the penalties associated to it? Are there any benefits to it? I do remember a special prestige class for monks about it, but I don't remember anything specific in the core rulebook.


Is a D&D 5e Starter Set Pregenerated Character's Attack Bonus Wrong?

I have the starter set and I am wondering if a pregenerated character's attack bonus is wrong.  The character is the Human Fighter with the Folk Hero background.  The attack bonus for the Greatsword is +4: +2 from STR and +2 from proficiency, so this seems correct.  The attack bonus for the Longbow is printed as +7, but I only see +3 from DEX and +2 from proficiency. Am I missing something?  There are a couple of others that seem to be off as well.


Shifted shapefiles with same coordinate system in ArcGIS

I have a strange situation with one of my GIS projects. I received from a client three shapefiles in the same coordinate system (Stereographic 1970 - a projected system). All three files should align perfectly. This happens only for two of them, the third one is shifted from the rest of the project. I`ve tried to apply different methods of converting the coordinate system, reproject but no success till now.   Apparently, the shapefile that is not overlapping with the other two, is coming from a reconversion of a different coordinate system. Do you have any solution that might work in ArcGIS? Or Global Mapper?


Can I copy a folder with a progress bar?

I want to copy a folder with some kind of progress bar. I tried "pv" (Pipe Viewer) but it seems there is no way to copy a folder.   Actually I'm not interested in using a script for pv - I would prefer some 'ready-to-go' package.


Do vulnerability and resistance cancel out?

For example, I am vulnerable to fire and have an item that gives resistance to fire. Do the two cancel each other out, or does one supercede the other?


Methods for determining the convergence of $\sum\frac{\cos n}{n}$ or $\sum\frac{\sin n}{n}$

As far as I know, the textbook approach to determining the convergence of series like $$\sum_{n=1}^\infty\frac{\cos n}{n}$$ and $$\sum_{n=1}^\infty\frac{\sin n}{n}$$ uses Dirichlet's test, which involves bounding the partial sums of the cosine or sine terms. I have two questions:   Are there any other approaches to seeing that these series are convergent? I'm mostly just interested to see what other kinds of arguments might be made. What's the best way to show that these two series are only conditionally convergent? I don't even know the textbook approach to that question.


Can I use a 24V 1A AC/DC adapter on a 9V 2A device? If so, are there negative effects of doing this?

I have a gaming chair with a speaker built into it and I lost the cord for it.  I managed to find an old xbox 360 cord that fit it but it’s 24V. The chair turns on with the 24V cord but I’m trying to find out if the higher voltage is hurting it.


Login loop 14.04 but guest account is accessible

After upgrading to 14.04 from 13.10 which worked fine, I cannot get past login as it just loops back. Guest account works fine. I can login to the console by hitting Ctrl+Alt+F1 using username and password. Not sure what is causing problem. Update:  Video card is N9500GT  Tried chown username:username .Xauthority but now get only splash screen at login with password. Same thing happens in GDM.  Also tried sudo mv .Xauthority .Xauthority.bak no change.  Tried cat ~/.xsession-errors but got message that starts with can't save user-dirs.dirs and then gives more msgs and stops.   How to see what is in .xsession-errors file.


ENTITY_IS_LOCKED exception during test class

I'm getting this weird exception during test class. The test class is related to Contract object, and I'm almost sure that nothing was changed lately regarding. Also I searched my whole code, to find from were this error message come from, but couldn't find it.. Search in all apex code, triggers, validation rule, field lookup filters, custom labels.. + There is no approval process for the contract object and we didn't enable at all the apex record locking/unlocking, therefore I don't know what can lock the record...  Any other idea? Possible this is internal issue in SF?   testClsObjectCreator clsObjectCreator = new testClsObjectCreator();     Account acc = clsObjectCreator.createAccount();     Product_Family__c pf = clsObjectCreator.CreateProductFamily();     Product2 prod = clsObjectCreator.CreateProduct2(pf.Id, 'test123');     Registration__c reg = clsObjectCreator.CreateRegistration(prod, 'Module');     Contract contract = clsObjectCreator.CreateSupportContract(acc, reg);      contract.Status = 'Activated';      try{      update contract;     }     catch(Exception e){         System.debug('####' + e.getStackTraceString());          System.debug('####' + e);     }      System.DmlException: Update failed. First exception on row 0 with id 800L0000000VbUWIA0; first error: ENTITY_IS_LOCKED, An activated support contract's account can't be changed.: [AccountId]


Can I see some of Amsterdam during a five hour layover at Schiphol?

I'm changing planes in late March in Schiphol with a five hour layover. I've never been to Amsterdam.  Is there anything I can do to see a little bit of Amsterdam and not miss my flight?


I just read the answers to  and everyone said to delete the last character. My question is,  isn't the eof character the last one?


What is the cleanest way to temporarily disable a keyboard?

I have a strange problem, and it involves my keyboard and a cat.  I have a computer in a shared office, and this is my machine. But there’s also a cat in the office, that likes to walk on keyboards. So every day when I come back to log-in, I see this :     I know I can unplug the USB at night, but I am looking for a quicker way. Is there a  less-manual way? I’d like to disable the keyboard easily, and re-enable upon coming back to office


I'm trying to rewrite my URL's subdomain.  http://username.domain.com will show content of username but URL stay as http://username.domain.com . (I mean url masking)  (Username's can contain a-z 0-9 and hypens) Also if subdomain is www or api, don't redirect them  I'm using this for my .htaccess  RewriteEngine on RewriteCond %{REQUEST_URI} !^/index\.php$ RewriteCond %{HTTP_HOST} !^www\.domain\.com RewriteCond %{HTTP_HOST} ^([^.]+)\.domain\.com RewriteRule .* /user.php?u=%1 [L]   (After @mfarver's advice) I'm trying this   RewriteEngine on RewriteRule .* /user.php?u=%1 [L]   but this time getting 500 Internal Server error:  [Mon May 30 20:10:44 2011] [alert] [client 81.6.xx.xxx] /home/blablabla/public_html/.htaccess: AllowOverride not allowed here   (from error log)  My server's httpd.conf file's virtualhost settings  <VirtualHost 109.73.70.169:80>     <IfModule mod_userdir.c>         UserDir disabled         UserDir enabled USERNAME     </IfModule>     <IfModule concurrent_php.c>         php4_admin_value open_basedir "/home/USERNAME/:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"         php5_admin_value open_basedir "/home/USERNAME/:/usr/lib/php:/usr/local/lib/php:/tmp"     </IfModule>     <IfModule !concurrent_php.c>         <IfModule mod_php4.c>             php_admin_value open_basedir "/home/USERNAME/:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"         </IfModule>         <IfModule mod_php5.c>             php_admin_value open_basedir "/home/USERNAME/:/usr/lib/php:/usr/local/lib/php:/tmp"         </IfModule>         <IfModule sapi_apache2.c>             php_admin_value open_basedir "/home/USERNAME/:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"         </IfModule>     </IfModule>     ServerName DOMAIN.net     ServerAlias *.DOMAIN.net <Directory "/home/USERNAME/public_html">     Options FollowSymLinks     Allow from all     AllowOverride All </Directory>     DocumentRoot /home/USERNAME/public_html     ServerAdmin webmaster@DOMAIN.net     UseCanonicalName Off     CustomLog /usr/local/apache/domlogs/DOMAIN.net combined     CustomLog /usr/local/apache/domlogs/DOMAIN.net-bytes_log "%{%s}t %I .\n%{%s}t %O ."     ## User USERNAME # Needed for Cpanel::ApacheConf     <IfModule mod_suphp.c>         suPHP_UserGroup USERNAME USERNAME     </IfModule>     <IfModule !mod_disable_suexec.c>         SuexecUserGroup USERNAME USERNAME     </IfModule>     ScriptAlias /cgi-bin/ /home/USERNAME/public_html/cgi-bin/       # To customize this VirtualHost use an include file at the following location     # Include "/usr/local/apache/conf/userdata/std/2/USERNAME/DOMAIN.net/*.conf"  </VirtualHost>   Also *.DOMAIN.net added to my DNS ZONES as A record.


In case of complex numbers what is the value of $i^i$

Is it possible to get the value of $i^i$? I want to know what the result of it is.


Probability to choose specific item in a "weighted sampling without replacement" experiment

Given $n$ items with weight $w_n$ each -- what is the probability that item $i$ is chosen in a $k$-out-of-$n$ "weighted random sampling without replacement" experiment? Can a closed-form solution that depends only on $w_i / w_\cdot$ be derived ($w_\cdot = \sum_j w_j$.)?   EDIT: A solution that depends only on $w_i / w_\cdot$ is impossible. Assume $n=3$, $i=1$, $w_1 = 1$, and two cases: (1) $w_2 = 1, w_3 = 1 + \varepsilon$, (2) $w_2 = 2, w_3 = \varepsilon > 0$. In case (1) the probability is almost $2/3$, in case (2) it is almost $1$, but in both cases $w_1 = 1$ and $w_\cdot = 3 + \varepsilon$.  What I have tried so far to solve the problem:  Let $P^n_k(w, i)$ be the probability that item $i$ is chosen in an $k$-out-of-$n$ experiment with weight vector $w$. In the first draw, the item is chosen with probability $w_i / w_\cdot$. Otherwise, we are looking for the probability to choose this item in a $k-1$-out-of-$n-1$ experiment, with the same weight vector except for the item that has been selected. Hence:  $$ P^n_k(w, i) = w_i / w_\cdot + \sum_{j \neq i} w_j / w_\cdot \cdot P^{n-1}_{k-1}(w - j, i) $$ $$ = w_\cdot^{-1} \left( w_i + \sum_{j \neq i} w_j \cdot P^{n-1}_{k-1}(w - j, i) \right) $$  with $w-j$ being "the vector $w$ without the $j$th element".  How to solve this recurrence relation? (If it is correct at all...)


Edits must be at least 6 non-space characters

I fixed the formatting to an answer for  but was unable to proceed as I hadn't changed 6 characters. I added a couple links to utilities mentioned.  I then noticed the links weren't displaying correctly as they were inside ` ` and I was able to remove them successfully.  How come I was able to change only 2 characters this time?


how to boot without desktop environment?

I had installed Lubuntu in my old computer. It's so old that I think I should not use any desktop environment.   Is there any way to boot without Any desktop environment? I had only Lubuntu on my computer thus I didn't install grub or boot loader. I don't want to remove the desktop environment for testing reasons or start single application as posted . I want to boot into my Lubuntu normally, just without any desktop environment (e.g: LXDE), I want it like Ubuntu server.


I've been spotting what seems to me misplaced modifiers in professional writing, so I would love to get some tips on the following examples:        He'd sit until the last moment, watching them draw near.      Isn't "watching them draw near" modifying he? Then shouldn't it come at the very beginning of the sentence? It looks misplaced, but I'm doubting myself since the sentence was in a story written by a professional writer.         There is the sound of rain on the roof, intensifying, hammering at the gutters.      Is it okay if the participle and the noun are separated by a prepositional phrase?        my spirits are dreadful, owing entirely to the Horrors of every night      It seems to me that in this case, the participial clause is describing the state of my spirits being dreadful. Is it possible for a participial phrase to describe not just one word, but the entire clause?         The number of new UC students from other states and nations will continue to increase this fall, extending a trend that university officials say is financially necessary...      This seems to have a similar usage as above.  Would love any kind of input!


How can I find the distribution of a stochastic variable X^2 if X is normal standard distributed?

I am considering a stochastic variable X that is standard normal distributed i.e. $$ F_X(x) = \int_{-\infty}^x\frac{1}{\sqrt{2\pi}}e^{-\frac{t^2}{2}}dt $$ How do I find out the distribution of $X^2$?  /Gus


I'm rendering in eevee, the antler of my stag appears in viewport but doesn't in image render. Does anyone have idea of what the problem is?


How to get code coverage for independent if conditions in for loop using test class in salesforce?

I need help to get 100%  code coverage for below trigger.This trigger will prevent me creating duplicate record.    trigger DuplicateTriggerReseller on Reseller_Details__c (before insert) {     for(Reseller_Details__c reseller : [SELECT Mobile__c,Email__c,Phone__c from Reseller_Details__c ]){         //Fetching details from Reseller_Details__c and putting in -->Reseller_Details__c reseller         for(Reseller_Details__c r : trigger.new){//It will have newly entered data             //Checking  for duplicates here             if(reseller.Name==r.Name)                 r.Name.adderror('Duplicate Name');             if(reseller.Mobile__c == r.Mobile__c )                 r.Mobile__c.adderror('Duplicate mobile');             if(reseller.Email__c == r.Email__c)                 r.Email__c.adderror('Duplicate Email');             if(reseller.Phone__c == r.Phone__c)                 r.Phone__c.adderror('Duplicate phone');                     }     }     }  When i have written Test class i got code coverage of 30%. I have written below test class.Please help me on this. I appreciate your helpPlease! Test class @isTest public class DuplicateTriggerResellerTestClass {     static testMethod void method1(){         Reseller_Details__c rd=new Reseller_Details__c();         rd.Name='EliteCoders';         rd.Mobile__c='111111111';         rd.Email__c='shaik@gmail.com';         rd.Phone__c='122344566';         rd.Address__c='India';         insert rd;         Test.startTest();         Reseller_Details__c rd1=new Reseller_Details__c();         rd1.Name='EliteCoders';         rd1.Mobile__c='888888888';         rd1.Email__c='shaik.ghouse@gmail.com';         rd1.Phone__c='12345677';         rd1.Address__c='Saudi Arabia';         insert rd1;         Test.stopTest();             }     static testMethod void method2(){         Reseller_Details__c rd2=new Reseller_Details__c();                 rd2.Mobile__c='555555555';         rd2.Name='EliteCoders';         rd2.Email__c='shaik.ghouse@gmail.com';         rd2.Phone__c='9876544321';         rd2.Address__c='Saudi Arabia';         insert rd2;                 Test.startTest();         Reseller_Details__c rd1=new Reseller_Details__c();                 rd1.Mobile__c='12234556';          rd1.Name='EliteCoders1';         rd1.Email__c='shaik.@gmail.com';         rd1.Phone__c='1224357764';         rd1.Address__c='Saudi';         insert rd1;         Test.stopTest();      }     static testMethod void method3(){         Reseller_Details__c rd=new Reseller_Details__c();         rd.Name='EliteCoder';         rd.Mobile__c='222222222';         rd.Email__c='shaik.ghouse@gmail.com';         rd.Phone__c='87665433211';         rd.Address__c='Saudi Arabia';         insert rd;                 Test.startTest();         Reseller_Details__c rd1=new Reseller_Details__c();         rd1.Name='EliteCode';         rd1.Mobile__c='700000001';         rd1.Email__c='shaik.ghouse@gmail.com';         rd1.Phone__c='777777777';         rd1.Address__c='Arabia';         insert rd1;         Test.stopTest();             }     static testMethod void method4(){         Reseller_Details__c rd=new Reseller_Details__c();         rd.Name='Elite';         rd.Mobile__c='999999997';         rd.Email__c='shaik.ghouse@gmail.com';         rd.Phone__c='88888888';         rd.Address__c='Saudi Arabia';         insert rd;         Test.startTest();         Reseller_Details__c rd1=new Reseller_Details__c();         rd1.Name='EliteCoders';         rd1.Mobile__c='7777777771';         rd1.Email__c='moha.ghouse@gmail.com';         rd1.Phone__c='6666666505';         rd1.Address__c='Saudi Arabia';         insert rd1;         Test.stopTest();             }     }  when i have used multiple test methods not able to get code coverage.


Help with volume of solids of revolution

I have a region $R$ defined by $y=x^2$, $y=2+x$ and $x=0$. How would be the integrals (no need to develop them) of the solid obtained by the revolution of $R$: $a)$ around $x$-axis integrating in relation to $1)$ $x$ and $2)$ $y$? $b)$ around $y$-axis integrating in relation to $1)$ $x$ and $2)$ $y$? I just started studying calculus by myself and I would like to check some answers. In the item a.1 I found $\int_0^2\pi|x^4-(1+x)^2| dx$. Is that correct? How would be the others?


Proof that the complement of zero-measure set on $[0,1]$ is dense in $[0,1]$

As a problem during introduction to measure theory, I am asked to prove the following.  Let $A \subset [0,1]$ such that $A$ is measurable with $\mu(A) = 0$ ($\mu$ being the Lebesgue measure). Prove that $A^c =  [0,1] \setminus A$ is dense in $[0,1]$.  This makes intuitive sense to me $-$ since $\mu(A) = 0$, using that $\mu(X) = \mu(X \cap A) + \mu(X \cap A^c)$ for every $X \subseteq \mathbb{R}$ we get $\mu([0,1]) = \mu(A) + \mu(A^c) = \{\mu(A)=0\} = \mu(A^c)$. Thus, $A^c$ has the same measure as $[0,1]$. I am aware that this is not the definition of $A^c$ being dense in $[0,1]$ though, and I do not know how to formalize this proof.  Any advice would be appreciated.


Yes, of course, I want that Ubuntu Phone.   Where is the order now button?


Find the used hard disk data and solve disk pressure

I have a server which is running Ubuntu 18.04 and it is also a worker node for K8s. Sometimes I see that K8s is killing pods on this machine because of disk presseur and when I get df -h --total I can see that 85% (1.5T) of the disk is in use at /:  ~$ df -h --total Filesystem      Size  Used Avail Use% Mounted on udev            126G     0  126G   0% /dev tmpfs            26G  5.3M   26G   1% /run /dev/sda2       1.8T  1.5T  276G  85% / tmpfs           126G     0  126G   0% /dev/shm tmpfs           5.0M     0  5.0M   0% /run/lock tmpfs           126G     0  126G   0% /sys/fs/cgroup /dev/loop0       90M   90M     0 100% /snap/core/7917 /dev/loop1       90M   90M     0 100% /snap/core/8039 /dev/sdb1       9.8G  203M  9.1G   3% /boot /dev/sdb2       511M  6.1M  505M   2% /boot/efi /dev/sdb3       1.8T  100M  1.7T   1% /home /dev/loop2      128K  128K     0 100% /snap/austin/42 /dev/loop3      3.0M  3.0M     0 100% /snap/micro/648 tmpfs            26G     0   26G   0% /run/user/1001 total           4.0T  1.5T  2.4T  38% -   The problem is when I go to / and get sudo du -BG -s * I can just find 313G of that used data and nothing more:  /$ sudo du -BG -s * 1G  bin 1G  boot 0G  dev 1G  etc 1G  home 0G  initrd.img 0G  initrd.img.old 1G  lib 1G  lib64 1G  lost+found 1G  media 1G  mnt 1G  opt du: cannot access 'proc/22512/task/22580/fdinfo/20': No such file or directory du: cannot access 'proc/45752/task/45752/fd/4': No such file or directory du: cannot access 'proc/45752/task/45752/fdinfo/4': No such file or directory du: cannot access 'proc/45752/fd/3': No such file or directory du: cannot access 'proc/45752/fdinfo/3': No such file or directory 0G  proc 1G  root 1G  run 1G  sbin 1G  snap 1G  srv 9G  swap.img 0G  sys 1G  tmp 3G  usr 313G    var 0G  vmlinuz 0G  vmlinuz.old   How I can find the rest of the data and solve the disk pressure problem?  Update  My problem/question was different from the suggested solution. In that case the problem was deleted files but my problem is docker. I post an answer so I can close this question.


Cycles fire/smoke render - black particles

I trying to make jet exhaust for short jet animation, but when i trying to render it, fire and smoke are rendered as black particles.    Here's the node setup for the domain material:       EDIT  After I followed instructions to add shaders for the fire I got this result:    Here is modified node setup:


Will going part-time in undergraduate affect my graduate admission?

I'm a fourth year undergraduate student in a university in the U.S., and this is my last semester. I have already applied to graduate schools, and I'm currently awaiting responses. Since I have already finished all my requirements and am ready to graduate, I wanted to go part time this semester. I am aware of how it affects my financial aid; however, I do not know if it has an effect on my admittance to graduate school. I do not mean whether or not I get accepted (the decisions will happen without knowledge of my current semester), but whether I am eligible to attend graduate school if I have been part time for a semester. That is, will there be any potential issues when the schools that have accepted me see my final transcript and see I was part time? Is there a universal answer to this? Or should I contact each school individually and ask about their policy?   Also, are there any other potential issues with going part time that I haven't mentioned? Anything noteworthy I might have missed?


Idiom for magic object (or idea) that fixes everything

Some people hold the irrational belief that one object (or possibly idea) can fix all their problems. For example, someone who is unhappy or anxious might think that smoking is a cure to all their problems.   What's the idiom to describe this belief? I used to know it but it slipped my mind.


I just came across the following  $$\nabla x^TAx = 2Ax$$  which seems like as good of a guess as any, but it certainly wasn't discussed in either my linear algebra class or my multivariable calculus class. Is there any intuitive way to see why this should be true?


In Zelda breath of the wild do destroyed guardians rise again after a blood moon

Do guardians that have been destroyed rise again after a blood moon? I've noticed that the ones in the shrines don't.


Representing the statement using Quantifiers

I want to represent the statement "Some numbers are not real " using quantifiers. I have been told by my teacher that the correct way to represent this is  num(x)  : x is a number  real(x) : x is real     ∃x (num(x) ^ ¬real(x))    This made sense, i can translate this statement into "There exist some x such that x is a number and x is not real.  But the answer i came up by myself is this one     ∃x (num(x)=> ¬real(x))   In translation , There exist some x such that if x is a number then x is not real.   I just can't get around why my answer is wrong, for some x ; if x is a number then x is not real. Doesn't that sound very similar to the statement "Some numbers are not real".  In one of the video lectures i saw  this  example which made me even more confused.   "No dog is intelligent"   dog(x) : x is a dog  intel(x) : x is intelligent  The representation was      ∀x (dog(x) ==> ¬intel(x))   if this representation is true, how is my representation of "Some numbers are not real" wrong.   PS : I am just a beginner at Discrete math finding my way, please pardon me if the question doesn't meet the quality standards of the community.


MySQL charset error after importing Database from remote server to WAMP

I have used phpMyAdmin to export a database from my remote server to WAMP via SQL file. All php code is the same on both sites but the local site gets charset errors when pulling data out of the database (black diamonds with ? where apostrophes should be). Database Collation (both): utf8mb4_general_ci Table Collation (both): utf8_general_ci Column Collation (both): utf8_general_ci When I run mysqli_character_set_name() on the remote site it returns uft8 but the local site defaults to latin1. If I set the local site to utf8 with mysqli_character_set_name() the black triangles turn to two white rectangles with black borders. What am I missing?


I've downloaded the latest version of wubi, but for Xubuntu, Kubuntu, and Lubuntu, it is unable to find the metalink to download the iso. Is there any way to fix this, or do I have to manually dualboot?  If so, how do I manually dualboot? Thanks.


How is El Gamal different from Diffie Hellman Key Exchange

I am Reading RSA and Public-Key Cryptography by Mollin and I can't make out how El Gamal is different from Diffie Hellman Key Exchange. Any thoughts?


Prove that $\sqrt[31]{12} +\sqrt[12]{31}$ is irrational.   I would assume that $\sqrt[31]{12} +\sqrt[12]{31}$ is rational and try to find a contradiction.  However, I don't know where to start. Can someone give me a tip on how to approach this problem?


I have a page where users can add their scripts to a form and then submit them. I'm using .append() to allow users to add new scripts if required, however when a new script is added the character count for that script no longer works, even though the HTML is identical (besides IDs). Is there a way to update the DOM so it will also recognise these new divs?  Here is an exmaple:    var $scriptNumber = 2; $('.script').keyup(charCount); $('#new-script').click(addScript);  function charCount() {  var $chars = $(this).val().length;  $(this).siblings('.char-count').html($chars + ' Characters'); }  function addScript() {  $('#scripts').append('
Script ' + $scriptNumber + '<textarea id="script-' + $scriptNumber + '" class="script" cols="40" rows="3"></textarea>0 Characters
');   $scriptNumber++; } #scripts {   padding: 12px; } .script-wrap {   margin-bottom: 12px; } label {   font-weight: bold; } textarea {   width: 100%; } #new-script {   margin-left: 12px;   padding: 4px 12px;   background: purple;   color: white;   cursor: pointer; } #new-script:hover {   background: blue; }

     Script 1     <textarea id="script-1" class="script" cols="40" rows="3"></textarea>     0 Characters

 New Script


Are there inexpensive tools to monitor student iPad’s?

I am a teaching assistant for a class in which students use tablet computers to advance their projects. Yet, sometimes, we need their attention and it can be difficult for them to focus on what I tell them with such distracting tools in hand.  I am looking for a way to monitor student iPads from a teacher's iPad or computer (restrict web browsing, being able to blank the screen and etc.). Any ideas that are relatively cheap? I know similar software exists for .


Inner product of two continuous maps is continuous

Let f,g be continuous maps of S in $\mathbb{R}^n$, to $\mathbb{R}^m$. Show the inner product h(x) = $\langle f(x), g(x)\rangle$ is continuous.  My attempt: Since f,g are continuous, their product is a continuous mapping, so for $\epsilon \gt 0\: t.e\:  \delta \gt 0$ such that $\parallel x - a\parallel \lt \delta $ implies $\parallel \langle f(x),g(x)\rangle - \langle f(a)g(a)\rangle \parallel \le\parallel f(x)g(x) - f(a)g(a)\parallel \lt \epsilon$ by schwartz inequality.


Use same colors in bash tab complete and ls

Bash is using a different color for tab completion than ls. For example, my ls command uses a red color for a broken symlinks (I'm using dircolors to configure it), but if I use ls Tab, the color is blue. I already have the set colored-stats On in my .inputrc.  I remember an option like set .... ls '' which did the trick, but I accidentally didn't save this option.  So, how to make bash tab complete use the same colors as ls?


Sampling from conditional distribution using copula

I'm using Clayton copula model to generate bivariate observations. x= poisson and y=gamma with, of course, certain dependence among them.  I have generated observations (X,Y) ~ f(x,y) using copula package in r but now I need to generate observation Y|X=x ~ f(Y|X=x) ¿Is there any way/algorithm to generate samples from conditional distribution that involves the copula? For example, like this, found in Nelsen:   Generate two independent uniform (0,1) variates u and t; Set v = cu(-1)(t), where cu(-1) denotes a quasi-inverse of cu . The desired pair is (u,v).         I have the next code in r where I model the observations according to Nelsen,using the quasi-inverse of cu from cCopula function:      t<-runif(1700)     u_t<-cbind(t,runif(1700))     V<-cCopula(u_t,claytonCopula(param=0.14,dim=2),inverse=TRUE)     x<-qpois(u_t[,1],lambda=d.poisson$estimate[1])     y<-qgamma(V[,2],shape=claim_size.gamma$estimate[1],rate=claim_size.gamma$estimate[2])     plot(data_sinout$d,data_sinout$claim_size,main='Test dataset x and y',col='blue')     points(x,y,col='red')   legend('topright', c('Observed', 'Simulated'), col = c('blue', 'red'), pch=21)   The result is:    which is quite reasonable being one of my first tries.  Now I want to generate observations of Y when X=15, it means f(Y|X=15), then according to the data I expect to have low values of y, in the range of [0,50k].So, I have this code:  t_x<-15 t<-ppois(t_x,lambda=d.poisson$estimate[1]) u_t<-cbind(t,runif(1700)) V<-cCopula(u_t,claytonCopula(param=0.14,dim=2),inverse=TRUE) x<-qpois(u_t[,1],lambda=d.poisson$estimate[1]) y<-qgamma(V[,2],shape=claim_size.gamma$estimate[1],rate=claim_size.gamma$estimate[2]) plot(data_sinout$d,data_sinout$claim_size,main='Test dataset x and y',col='blue') points(x,y,col='red') legend('topright', c('Observed', 'Simulated'), col = c('blue', 'red'), pch=21)   but instead I have:    which is not what I was expecting. Any help would be really appreciate it.


I am currently learning about Radioactivity and Nuclear Physics. Why are nuclides with an even number of protons and neutrons more stable? I have read that nuclides with an even number of protons or neutrons or both, are more stable than those with an odd number of nucleons. Is this something that is based on theoretical reasoning? Or just something taken from observation? I understand that nuclides with more neutrons would be more stable due to more nuclear forces to act against the electrostatic repulsion between protons (to an extent), but I don't know why odd/even counts matter. Is there more stability due to possible greater symmetry if the nuclide has an even number of nucleons? Related:


could any one help me to find problem on this code username and password verification.  username and password are predefined just checking this    package org.test; import java.util.*;  class User{       public String username;     public String password;      public String getUsername() {         return username;      }     public void setUsername(String username) {         this.username = username;      }     public String getPassword() {         return password;     }     public void setPassword(String password) {         this.password = password;      }     public void chackLogin(){          Auth a = new Auth();          a.authentication();     }   }   class Auth{      User u; // username and pass      String auser="admin";     String apass="admin";       public void authentication(){          if((u.username==auser) && (u.password==apass))         {             System.out.println("Login Succseeful sor the user "+" "+auser);         }         else{             System.out.println("incorrect username or password");         }          }   }    public class UserAuth {      public static void main(String[] args) {          //scan Username         Scanner user=new Scanner(System.in);         String usern= user.next();          //scan password         Scanner pass=new Scanner(System.in);         String passw= pass.next();          //object of class USEr         User u =new User();          //set user and pass          u.setUsername(usern);         u.setPassword(passw);         u.chackLogin();        }  }


I do not get notified when the system adds a canned "possible duplicated" comment

This happened to me twice. Someone flags my question as duplicated and only when I visit the question I notice the comment. Before I had no proof, but today I have *evil laughter*.  This is the notifications:        I count 4, remember this number.        Lets see... umm... 1, 2, 3... 5! HA! So, there are 5 comments and one of them (the one that flagged the question as dupe) didn't get into my inbox. So, is this by design or I really should get notified?  If this is by-design, I disagree.  Note to self: I suspect other canned comments doesn't reach the OP, like the custom close reason.


Question about a short story about Martian people on Earth at the time of the Neanderthal

This story as I recall it was a short story in a compilation book of the 1980/1990s. The plot has a Martian cruise ship suffering a disaster in space. Only a handful of people get into a lifeboat and it is damaged enough they cannot get to Mars. They crash land somewhere in Europe at the time of the Neanderthals.  Using firearms and weapons they had on the ship they fight off the Neanderthals who in the story are not friendly at all. I do not recall why Mars never comes to the rescue but as the story progresses they have children and one by one the original people die off. And of course their children are the basis for the Cro Magnons.    I have been racking my brain for the title of the story or the title of the book it was in. Guess either my PTSD from Desert Storm is fogging my memory or maybe it's fading due to age. I know sooner or later I'll get the name of it. Thanks for the assist in any case.


I used the OzTeX implementation of TeX, also I used to typeset my docs in plain TeX, not LaTeX for me, so I had no problem to insert an image using the OzTeX, now I'm back to TeX docs, am using the TeXWorks frontend, but I can't insert an .eps image file, it seems the \includegraphics macro its only for LaTeX, so I can't use it, any idea on how to insert an image when using plain TeX?


I'm trying to include Arabic text in an English document (I'm a new latex user), but I can't seem to get any Arabic text to render at all, using xelatex or any kind of tex. I'm using texshop 3.51 on a mac. I can't get this basic example to work, it just displays question marks in the output pdf.  \documentclass[12pt]{article} \usepackage[utf]{arabxetex} \newfontfamily\arabicfont[Script=Arabic]{Amiri} \begin{document} \begin{arab}[voc] وَهَذِهِ فِقرَةٌ بِالعَرَبِيَة مَعَ كَلِمَة اِنكلِيزِيَة \end{arab} \end{document}     I've downloaded Amiri (and also Scheherazade and Lateef) into Fontbook, and they show up if I go Source->Font->Show Fonts in texshop. If I remove the Amiri part it still doesn't work.   Is there anything I can do? I've looked at other links here, like  and  but I can't even render any of those examples.   Thank you so much for any help! I'll love you forever if I can get this to work.


Android app doesn't render LaTeX content in comments

I'm using the Stack Exchange app for Android. The app displays TeX formulas inside questions and answers as expected, but not in comments. Here it shows only the raw TeX code. I first noticed this issue .


Image markdown breaks if the alt text contains a URL

Including a URL in the alt text for an image breaks it, as long as the URL is preceded by a space:  Normal image  ![Alt text](https://cdn.sstatic.net/Sites/stackoverflowmeta/img/logo.png)     Broken image  ![ http://meta.stackoverflow.com](https://cdn.sstatic.net/Sites/stackoverflowmeta/img/logo.png)   http://meta.stackoverflow.com">


Where do you ask about where to ask a question?

My current problem is the following: Win 7 worked fine with 2 monitors. Win 8 will not. (I just installed Win 8 this weekend.)  I searched these places, and I found the path to obfuscation.   Google, Yahoo, Bing, YouTube Code Project Stack Overflow Super User MSDN   I seriously doubt that I'm the first guy who is facing this obstruction.  Is this the place to ask questions about where to ask questions?  Does StackExchange have a place for such questions?  In the meantime, where do I find out how to get Win 8 to recognize my second monitor?


Why was this question "deleted by Community"?

This question:    It seems perfectly reasonable, but then, I posed it.  It didn't have a lot of upvotes, and it has had no answers, but that doesn't make it invalid.  It got a downvote yesterday for no reason that I understand. Today, pfft.  What's the reason this happens?


Set horizontal width on custom listings environment

I want to create a custom listings environment and want to set its width as something like 90% of textwidth, centred.  Per an  for algorithms, the first thing I tried was to embed the listing in a minipage environment. However, . I found a way to still make standard environment work, but it requires to use the escape command every time before ending the environment.  The second thing I tried was this latter command, but as far as I can see, it doesn't offer a feature to set the width of the listing or centre it.  \documentclass{article} \usepackage{listings} \usepackage{lipsum}   \lstnewenvironment{queryl} %% APPROACH 1  {\lstset{frame=shadowbox,escapechar=`}}  {}  \newenvironment{query} %% APPROACH 2  {\begin{minipage}{4cm}\centering\begin{queryl}}  {\end{queryl}\end{minipage}}   \begin{document} %% APPROACH 1 Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. \begin{queryl} begin { do nothing } end ; \end{queryl} Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.  %% APPROACH 2 Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.  \begin{query} begin { do nothing } end ;`%<- needs escape-to-LaTeX character to work \end{query}  Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. \end{document}     One can note that for the first environment, the frame extends beyond the width of the text. Also, puzzlingly the minipage environment doesn't seem to want to centre and swallows space (though I guess I could perhaps at least get that to work with tinkering).  In any case, does anyone have any ideas on how to set a width for a custom listings environment and centre it without requiring use of the escape character each time to end the environment?


How can I manually change the mouse/pointer speed?

I have an Apple Magic Mouse, and it's almost unusable since the sensitivity is too high. Yet in the Mouse/Touchpad settings, the pointer speed is set to the slowest possible setting. Is there a way to manually change this setting so that it's much slower than the slowest setting?


I already know of Xmodmap, but this won't work for me. I'm using a laptop, and I spilled coffee on the built-in keyboard and ruined it, so I'm now using a usb keyboard. On my laptop's keyboard, there are keys to control volume, but the usb keyboard does not have these buttons. Xmodmap wouldn't work for me because I'd have to physically press the volume keys on my laptop's keyboard to remap keys to them, but I obviously can't do that because that keyboard doesn't work. Does anyone know of a way to remap keys on the usb keyboard to control my volume?


Finding All Integers in such that $\phi(n)=80$

I don't know where to start with this problem so please help. The problem is:  Find all integers n such that $\phi(n) = 80$.


Prove that $y^2=x^3+23$ has no integer solutions

I am looking for a elementary (and possibly short) prove that  $$y^2=x^3+23$$ has no solutions $(x,y)\in \mathbb Z^2$.  Reducing the equation modulo $p$ didn't help.  Thanks in advance:).  Edit: I want to see a solution without using the theory of elliptic curves. This question appeared in our last exam of "introduction to number theory". We only know basic facts like the legendre symbol, hensels lemma, Chinese Remainder Theorem etc..


Retrieving Comments from a PostgreSQL DB

I'm running a project on a Postgres database and need to retrieve the comments on columns within the DB to be used as table headings and such. I have seen that there are a couple of built in functions ( and ) but i haven't been able to find examples on how to use them and playing around with them has proved pretty futile.  So I was wondering if any has been able to do this before and if so, how?


location.getLatitude() throws NullPointerException android

I'm trying to get the current latitude and longitude coordinates.   my code      LocationManager locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);      Criteria criteria = new Criteria();     criteria.setAccuracy(Criteria.ACCURACY_LOW);     String bestProvider = locationManager.getBestProvider(criteria, true);     Location location = locationManager.getLastKnownLocation(bestProvider);      if (location != null) {         onLocationChanged(location);     }     locationManager.requestLocationUpdates(bestProvider, 20000, 0, this);      double latitude = location.getLatitude();     double longitude = location.getLongitude();   error message   java.lang.RuntimeException: Unable to start activity ComponentInfo{conic.com.restaurant/conic.com.restaurant.MainActivity}: java.lang.NullPointerException             at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2338)             at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)             at android.app.ActivityThread.access$800(ActivityThread.java:151)             at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)             at android.os.Handler.dispatchMessage(Handler.java:110)             at android.os.Looper.loop(Looper.java:193)             at android.app.ActivityThread.main(ActivityThread.java:5292)             at java.lang.reflect.Method.invokeNative(Native Method)             at java.lang.reflect.Method.invoke(Method.java:515)             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)             at dalvik.system.NativeStart.main(Native Method)      Caused by: java.lang.NullPointerException             at conic.com.restaurant.MainActivity.displayListView(MainActivity.java:121)             at conic.com.restaurant.MainActivity.onCreate(MainActivity.java:50)             at android.app.Activity.performCreate(Activity.java:5264)             at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088)             at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2302)             at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)             at android.app.ActivityThread.access$800(ActivityThread.java:151)             at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)             at android.os.Handler.dispatchMessage(Handler.java:110)             at android.os.Looper.loop(Looper.java:193)             at android.app.ActivityThread.main(ActivityThread.java:5292)             at java.lang.reflect.Method.invokeNative(Native Method)             at java.lang.reflect.Method.invoke(Method.java:515)             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)             at dalvik.system.NativeStart.main(Native Method)   Here are the manifest declarations manifest declarations  <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />      double latitude = location.getLatitude(); is in line number 121   Hope you can help me.


Remove Linux GRUB and keep Windows boot loader

My operating system was Windows 7, and recently, I installed Zorin OS (linux based on Ubuntu). At first, when I turned on my laptop Windows started automatically. I used a program to make the Windows boot loader come on and ask me what to start.   If I chose Linux, then the Linux GRUB comes on and asks me what to do. I want to remove the GRUB. I want to keep my Windows boot loader.


Any way to automatically delete files created in a folder once any file is 30 days old?

I have a temporary folder in Windows 10 where I created files for temporary usage. But it gets messy once there are lot of files. I don't need files which are like a month old. I don't want to delete the files which have certain extensions but want to keep the folders. E.g. there are 4 files: Folder 1 (30 days old) Folder 2 (20 days old) File 1.ext (30 days old) File 2.ext2 (30 days old) I would like to delete only File1.ext because it has extension .ext, 30 days old and it is not a folder. So is there any way to make any files in that folder which is 30 days old, gets deleted automatically (not permanently, just move to Recycle Bin)?


How can I be sure that a directory or file is actually deleted?

I know that most files, when deleted, aren't actually removed from the disk, and can be recovered later.  How can I ensure that a directory I had deleted will actually be removed from the disk? Are there utilities for that?  I'm using Debian Linux.


Ubuntu 12.10 crackling and popping sound

I've an Asus Z92V, I am running Ubuntu 12.10 and since I installed Ubuntu on this notebook the audio keep crackling and popping continuously. Moreover the volume bar on gnome-shell panel keep jumping from low volume to high volume continuously. This is indifferently through speakers and headphones...it's an unbearable and annoying problem!!!  Since it's a common problem of Intel-HDA-audio I've found a lot of solutions and hints around web, but nothing has solved my problem...   This is the output from lspci -v | grep -A7 -i "audio":  00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 04) Subsystem: ASUSTeK Computer Inc. Asus A6VC Flags: bus master, fast devsel, latency 0, IRQ 41 Memory at febfc000 (64-bit, non-prefetchable) [size=16K] Capabilities: <access denied> Kernel driver in use: snd_hda_intel Kernel modules: snd-hda-intel   I tried to mute / unmute all mixer channels (via alsamixer), but it didn't change anything.  Please help me, guys... Thanks  P.S. output from sudo lshw -c multimedia:    *-multimedia                description: Audio device    product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller    vendor: Intel Corporation    physical id: 1b    bus info: pci@0000:00:1b.0    version: 04    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress bus_master cap_list    configuration: driver=snd_hda_intel latency=0    resources: irq:41 memory:febfc000-febfffff


Polynomials, finite fields and cardinality/dimension considerations

Can someone please give me a hint how to prove that the quotient ring $\mathbb{F}_p[x]/{\langle f\rangle}$, where $f$ is a irreducible polynomial of degree $k$ and $p$ is a prime (and $\langle f\rangle$ the ideal generated by $f$), has cardinality $p^k$ and how to determine the dimension of $\mathbb{F}_p[x]/{\langle f\rangle}$ as a vector space ?


Code Geass R2 episode 7,there is a song playing at 6:40

In Code Geass season 2 episode 7, there is a song playing at 6:40.This is about the time when Lelouch breaks his phone and throws it away when Kallen calls him. I can't find the song in the OST and I'm pretty sure it has been featured elsewhere in the series as well.  EDIT: I also noticed it play in episode 8 at 12:27.Corrected season number.


remove an open WiFi of a service provider near my house

I'm using Windows 7. There is an access point of a service provider WiFi near my house. The WiFi is not free and not WEB/WPA protected. Everyone can connect to it and it will show the company's login page. (if the username/password are put correctly, their customer can use the net.)  I'm not the customer of the company and have my own access point in my house. But my computer always connect to the network of that company. I tried to remove the network but it keep coming back and connect to that access point instead of mine.  What can I do to make my computer choose my access point first?


Java- nonstatic method cannot be referenced from a static context

Every time I try to compile my program I get this error "nonstatic method primeNum(int) cannot be referenced from a static context".   In this program, I have to write a method that determines if a number is prime and use this method in an application that determines all the prime numbers between 1 and 100.   Here is my code:  import java.io.*; import java.util.Scanner; public class Program7  { public static void main (String args[]) { Scanner scanner = new Scanner(System.in);  int x, r=0, prime; int num[]= new int[100];  while (r<100){   prime=primeNum(x);   System.out.println(prime);   r++;   } }  public int primeNum (int x){  for(i=1; i<=x; i++){   if(x%i==0)   count++;   return x;   }   if(count==2)   System.out.println();   } }


I have a homework, where I should create a database for a dental clinic using MySQL Workbench. This database will be used later for a web app for dentists.  Here is a picture of the database design:    Login Table:  Contain login information for dentists (it may be used by multiple dentists online)  The id_logged column is a foreign key of the id of logged in dentists, and it should be in all tables. (To let dentists see only their own patient info and details).  The patient_id column is a foreign key too. And it is taken from patient table and used as foreign key in med_history that represents the general medical information of the patients, patient_info that represents the general information, and the reason of visit and what tasks to do, and in the appointment table.  I have 2 questions:  1- Is there more than that information to add for a dentist database?  2- Is this database correct? Or are there errors?


How do I determine this monster's HP if I'm only given its HD?

The  from Goblin Punch states the following:     Hungry Coffin   HD 6 AC 14 Slam 2d6 or 2d8 Swallow 1d6 + swallow   Fly 9 Int 5 Morale 12   It says the Hungry Coffin has "HD 6". This doesn't help me at all, because I still don't know what its average HP is, or how to roll its HP. How do I figure this out? Thanks!


PostgreSQL: Auto update updated_at with custom column

Before, I would join multiple tables into one and return result, but in many tables I had same column names. That's why I decided to to prefix column names with table name. But that broke the trigger I had to auto-update my updated_at column.  This is the function I had:  CREATE OR REPLACE FUNCTION update_updated_at()   RETURNS TRIGGER AS $$   BEGIN       NEW.updated_at = now();       RETURN NEW;   END;   $$ language 'plpgsql';   And I would add a trigger like:  CREATE TRIGGER update_users_updated_at   BEFORE UPDATE ON users   FOR EACH ROW EXECUTE PROCEDURE update_updated_at();   But now my column is named users_updated_at and this doesn't work. My question is is there any way that I can pass the column name to the trigger and update the passed column, or is there is any other way that I am not aware of?


Equation environment with text at left and right

edit: Is there a way to accomplish the below without using the flalign environment? As I mentioned in my question, I know that it is possible to achieve what I'm asking using the flalign environment. This environment however, cannot be wrapped in a newenvironment and so the solution can't be automated. Does anyone know of another solution method?  My question is simple. I'm trying to create an equation environment that will tag an equation with both custom text and an equation number. The text should be flush left and the equation number flush right. It should look like the following.  (customTxt)                      1 + 1 = 2                                 (1)   The custom text is generated by a complicated command that does some arithmetic with counters. The equation number is just \theequation as usual.  I can certainly accomplish this using e.g. flalign:   \begin{flalign}   \mycommand && 1 + 1 = 2 && \end{flalign}   However, I can't seem to wrap this into a newenvironment. This appears to be a known issue about align cf  or . I'm working on a very long document and every equation needs to be marked like this. I'd really like to have some sort of custom equation environment that sets this up for me:   \begin{myEqn}{\mycommand}   1 + 1 = 2 \end{myEqn}   Can anyone offer suggestions? edit How do I define a shortcut or command to do this succinctly? Every time I use this command, the parts  \mycommand && ... &&   will always be the same. Is there any way to automate this? The trouble is that the solution given in the referred-to questions will not work in a \newenvironment command.


Based on , I have started building a unicorn avatar maker. It's still quite ugly, and the results aren't different enough yet, but this is what it looks like so far:  /  (removed the images from here to make this thing a little shorter). Is this just way too stupid, or should I go on? If so, any suggestions? I'm thinking of things like backgrounds etc.  Updates Update 2010/01/30: Version 0.2. Now prettier and with legs, rainbows, and stuff. Examples: Æther:  (source: ) Jeff Atwood:  (source: ) Troggy:  (source: )  Update 2010/01/31: Still version 0.2, the images are (almost) unchanged. But now its on the App Engine for everyone, so go ahead pounding my quota: https://unicornify.appspot.com/avatar/HASH?s=32 Replace HASH by the md5 hash that gets given to gravatar (or any hexadecimal number, really). Don't just copy & paste the above into your browser. I thought this was clear, but looking at the access logs, it looks like I have to explain it. The ?s=32 parameter can be omitted. The only legal values are 32 and 128; defaults to 32. Other parameters are ignored. If you take  and change the substitution line to $(this).attr("src", $(this).attr("src").replace(/www\.gravatar\.com/, "unicornify.appspot.com"));  you'll see meta the way it has been looking to me for the past days: Full of unicorns. If you just want to replace the identicons, i.e. those users that don't have their own gravatar set up, use this instead: $(this).attr("src", $(this).attr("src").replace(/(www\.gravatar\.com\/avatar\/)([a-z0-9]*)\?s=(\d+)&d=identicon(.*)$/, "$1$2?s=$3&d=http%3A%2F%2Funicornify.appspot.com%2Favatar%2F$2%3fs%3d$3$4"));  Finally, if you just want to see it once, without any greasy monkeys: Paste this javascript:(function(){$("img").attr("src", function(){return this.src.replace(/www\.gravatar\.com/, "unicornify.appspot.com")})})()  into your location bar.  Update 2010/02/14: Version 0.4 I will be deploying a new version later today. Some of you have showcased your own unicorn avatar below using a direct link to unicornify.appspot.com/avatar/.... These images will then show the updated version. If you want to preserve the historical record by keeping the old version, you'll have to host the image somewhere else, or at least change the image URL. The old ones will be available by passing an additional parameter v with the value 3, i.e. https://unicornify.appspot.com/avatar/HASH?s=32&v=3 No new old-version images will be created, but the previously created ones will still be available for a while. Since the unicorns have their own website by now, this is probably the last update I'll be posting on this question.  Update 2010/04/01 Jeff finally rolled out the Unicorn avatars for us all to enjoy.


How to pass parameter when execution .sh script

I am new to bash programming and I was trying to create a script that when you execute it with different parameter, it does different thing. Here i'm not talking about asking for a user input, but more something like this : bash maint on  (maint being the script and on the parameter) or bash maint off. How do you do this in the script %


I would like to ask if someone could help me with solving the following task.  Find the area ratio between ABC and the hatched triangle.    Thank you in advance.


Is there at least one right sentence on the list?  1) You should say it to no one  2) You shouldn't say it to no one  3) You say it to no one


Let $(P_t)_{t \geq 0}$ be a Poisson process with $\lambda > 0$. I want to show that  $\mathbb{E}(P_s|P_s) = P_s$. I compute $$\mathbb{E}(P_s|P_s) = \sum_{x \in \text{Img}(P_s)} x \cdot \mathbb{P}(P_s = n|P_s = k) = \sum_{n=0}^{\infty} n \cdot \frac{\mathbb{P}(P_s = n \cap P_s = k)}{\mathbb{P}(P_s = k)}$$ Here I am stuck, since I don't basically don't know how to compute $$\mathbb{P}(P_s = n|P_s = k) = \frac{\mathbb{P}(P_s = n \cap P_s = k)}{\mathbb{P}(P_s = k)}$$


Expected Value of the maximum of two exponentially distributed random variables

I want to find the expected value of $\text{max}\{X,Y\}$ where $X$ ist $\text{exp}(\lambda)$-distributed and $Y$ ist $\text{exp}(\eta)$-distributed. X and Y are independent. I figured out how to do this for the minimum of $n$ variables, but i struggle with doing it for 2 with the maximum.  (The context in which this was given is waiting for the later of two trains, with their arrival times being exp-distributed).  Thanks!


Extended input functionality using gets()?

I'm searching for a possibility that adds a command history as well as the possibility to edit a line already typed to a program that takes input from the standard input.  Example:  cat > example.txt This is the first or third line I have typed. Both lines are identical. This is teh second line I have typed. The word "the" is typed correc   In the situation shown above, I'd like to use the cursor keys to navigate to the typo mistake, correct it, press the "End" key and finish the line.  Because the third and the first line have the same text, some command history would also be nice.  (Of course I don't need that for cat but for another command-line based tool.)  Does some program exist that adds these features to "regular" programs?  My idea was to write a tool myself that provides a command history, which would work like this:  command_history | cat > example.txt   However, I don't want to spent any time on this if such a tool already exists or if I could reach my target by simply doing some configuration changes.


Proof by Induction: Prove that $2^n > n^2$, for all natural numbers greater than or equal to $5$

Problem: $2^n > n^2, \forall n \in \mathbb{N} , n \geq 5$ Base: $2^5 > 5^2$ Induction Hypothesis: Assume for $n = k \geq 5$ that $2^k>k^2$ Inductive Step: $$2^k > k^2$$ $$2^k \times  2 > k^2 \times 2$$ $$2^{k+1} > 2k^2$$ From there I can finish the proof by asserting that $k^2 > 2k+1, \forall k \in \mathbb{N} , k \geq 3$. Do I need to prove that $k^2 > 2k+1, \forall k \in \mathbb{N} , k \geq 3$. Or can I substitute it into my inequality?


When do I have to take care if something is a row vector or a column vector?

I understand that it is important in the field of matrix-vector multiplication when vectors can be interpreted as a matrix of one row/column vector. But I do not really understand when I should use column vectors and when to use row vectors generally - when does it make a difference? Is it more a question on asthetics/style? Let $v \in \mathbb R^d$, is it a column vector or a row vector? (I think, it depends on interpretation, doesn’t it?) When does one care about it?


How does a CM choke reject common-mode noise while allowing the signal of interest?

As far as I know a CM choke is nothing but a transformer(?).  How does it block common-mode noise and pass the signal of interest? Should we think of it as an LR filter? And how to size it if we know the signal of interest? A pictorial explanation with a circuit diagram ect helps to understand.  Edit:  Below are two scenarios where an isolated(floating/battery powered) sensor S signal is measured by an ADC device and the system is single ended. The coaxial cable’s two wires somehow are victim of CM noise. As you see the CM noise is the spike superimposed on the half sine wave desired signal:   So in the first scenario(upper diagram) I can see how the CM blocks this spike now. But in the bottom diagram there is an attempt to remove the same spike with a LPF where the LPF’s ground is the signal ground as usual. Will this attempt also remove the spike or not?


Apply formatting to all tables in a MS Word document

Is it possible to apply formatting to all tables in a single document without doing it one by one?


Why doesn't the gravitational force have a permittivity in its formula?

We know that the electrostatic force between two charges depends on the medium between the charges and its permittivity. Why, then, doesn't the gravitational force depend on the medium?


Does $3 - 4 + 1 = 0$ or $3 - 4 + 1 = -2$? Makes sense that $(3 - 4) + 1 = 0$ and $3 - (4 + 1) = -2$, but what if there are no parenthesis? Also, if I have $4$ apples and I add $1$ more apple, then I have $5$ apples, but if I eat $3$ apples, then I have $2$ left. Any ideas?


How to shuffle all songs in iOS 8.4 music app

In the old version of the music app you could shuffle all songs when songs were selected:      This feature seems to be absent in iOS 8.4 and the new music app:      What are the options for shuffling all my songs in the new version of the music app under iOS 8.4?


How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name

I've been combing this site and google for the answer and I've come up completely empty.  Basically I want to do exactly what  asks, but I need a hierarchical taxonomy.  The answer given in that post works great, but only with a single level taxonomy.  Is it possible to do what I want?  I've tried a million things, but none work, at best I can get the right permalinks but they come up 404.  To visually illustrate what I want:  /basename/ - ideally a page, but I think this will cause a permalink collision     /basename/top-cat/ - top parent custom taxonomy archive     /basename/top-cat/child-cat/ - child cat custom taxonomy archive      /basename/top-cat/child-cat/grandchild-cat/ - grandchild cat custom taxonomy archive     /basename/top-cat/child-cat/grandchild-cat/post-name/ - my custom post type post   You can do this fine with the built in posts and categories, how do you do it with custom taxonomies and custom post types?  I know that you need to use 'rewrite' => array( 'slug' => 'tax-name', 'with_front' => true, 'hierarchical' => true ), to get hierarchical slugs, which works fine on the archive pages, but the custom post type posts come up 404.  If I remove the 'hierarchical' => true part then the posts work, but I lose the hierarchical urls (only /basename/grandchild-cat/post-name/ works).  So, any solutions?  Thank you so much, this has been driving me nuts for about 3 weeks now.


In Einstein's summation convention, it is sometimes necessary to have subscript and superscript indices in a certain order. If you just use ^ and _, these indices would appear on top of one another, e.g. \Lambda^\mu_\nu. How do I escape this?  (The following is an answer to the question, but I cannot add an answer as the question is closed.) To escape this, you can type \Lambda^\mu{}_\nu  Couldn't find this on the web, so I figured I'd post it myself.


Below is a sentence from my book review. "China" is the name of the author.    Is it correct or incorrect to have a comma after the word pay?     China finds a way to dissect both a woman's desire to find love and her penchant to make a man pay, if he plays around with that love.


Unable to load images Using Glide Library

I am trying to load images using the Glide Library from firebase. The image url is correct(Checked it using Logcat) . I am using glide in an activity and not a fragment. I am getting this error  java.lang.NullPointerException: You cannot start a load on a not yet attached View or a Fragment where getActivity() returns null (which usually occurs when getActivity() is called before the Fragment is attached or after the Fragment is destroyed).  Here is my code:  public class ProfileActivity extends AppCompatActivity {  FirebaseAuth auth; DatabaseReference databaseReference; TextView nameTextView , bioTextView; String name2 , bio2 , uidString; Uri imageUri , FilePathUri; Button logOut , editProfile; private SlidrInterface slidr; CircleImageView profilepic; StorageReference storageReference; String Storage_Path = "ProfilePictures/" , downloadUrl; Context context;  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_profile);      auth = FirebaseAuth.getInstance();     databaseReference = FirebaseDatabase.getInstance().getReference();     final FirebaseUser user = auth.getCurrentUser();     nameTextView = (TextView) findViewById(R.id.name);     bioTextView = (TextView) findViewById(R.id.bio);     logOut = (Button) findViewById(R.id.logout2);     editProfile = (Button) findViewById(R.id.editprofile);     slidr = Slidr.attach(this);     profilepic = (CircleImageView) findViewById(R.id.profilepic);     storageReference = FirebaseStorage.getInstance().getReference();      Intent intent = getIntent();     Bundle uid = intent.getExtras();     uidString = uid.getString("UID");     Log.d("UID OF USER" , "UID OF USER = "+uidString);      final Context finalContext = context;     databaseReference.child("users").child(uidString).addValueEventListener(new ValueEventListener() {         @Override         public void onDataChange(DataSnapshot dataSnapshot) {             name2 = (String) dataSnapshot.child("name").getValue();             bio2 = (String) dataSnapshot.child("bio").getValue();               String gender = (String) dataSnapshot.child("gender").getValue();             String email = (String) dataSnapshot.child("email").getValue();              Log.d("TAG", "Name: " + name2);             Log.d("TAG", "Email: " + email);             Log.d("TAG", "Gender: " + gender);             Log.d("TAG", "Profile Pic URI = " + imageUri);             nameTextView.setText(name2);             bioTextView.setText(bio2);               storageReference.child("ProfilePictures").child(uidString+".jpg");             String imageUrl = (String) dataSnapshot.child("profilePic").getValue();             GlideApp.with(context).load(imageUrl).into(profilepic);          }          @Override         public void onCancelled(DatabaseError databaseError) {}      });       logOut.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {             SharedPreferences settings = getSharedPreferences(SignIn.PREFS_NAME, 0);             SharedPreferences.Editor editor = settings.edit();             editor.putBoolean("hasLoggedIn", false);             editor.commit();             boolean hasLoggedIn = settings.getBoolean("hasLoggedIn", false);             Intent intent = new Intent(ProfileActivity.this, SignIn.class);             startActivity(intent);         }     });      editProfile.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {             Intent intent = new Intent(ProfileActivity.this, EditProfile.class);             startActivity(intent);         }     });      Log.d("TAG" , "NAME OUTSIDE " +name2);    } }    If im not using using fragments why am I getting this error.  Also how will I solve this error. Please help me


How to set php session value from javascript?

i want to set php session value from javascript i know it is not possible to do from javascript so i made this code  javascript:   window.open("test.php?s=1");   php:  session_start();     if(!empty($_GET['s'])) {         $_SESSION['test']= $_GET['s'];     }   it is working and all but only problem is that it opens new window and user have to close it  is it possible to do something like that without opening new window? i know it is possible to do with xmlhttp.open but it didn't really worked for me + i have no idea how to use it, tried to understand it by searching info in google but couldn't so i figured out that this way i am doing is the simples for me just need to do it without opening new window


Some integer solutions for $a^2+b^2+c^2=d^2$

I'm looking for integer solutions to the equation $a^2+b^2+c^2=d^2$ such that $\gcd(a,b,c,d) = 1$.


Do photons actually slow down in a medium, or is the speed decrease just apparent?

Some places I've read flat out say light actually slows down in a medium, some say the speed decresae is just apparent but not real and that the photons still travel at the constant speed of light.  I'm kinda confused.


I can't log into my Gmail account. I was trying to clear the cookies and I think I touched the wrong button. Now I can't access my account I am desperate to recover it quickly.


Awaiting Associate Editor decision MEAN?

I had submitted a paper in a reputed journal in more than 2 months back. Upto one month the status was " manuscript is assigned to the editor"  Now, the status of the paper is showing "Awaiting Associate Editor decision". Please, tell what does this status indicates? Is all the reviewers process has been done??


How to toggle Target Display Mode on iMac using a non-mac wired keyboard?

I have a new Late 2013 rMBP and a Mid 2011 iMac. I want to use the iMac in Target Display Mode so I can operate it as a second monitor for the laptop.  I have two questions:   I can easily turn on TDM on the iMac using ⌘ Cmd+F2, but cannot turn it off the same way. I have to unplug the Thunderbolt cable. Anyone know why? I only have one Apple keyboard and mouse, and both are bluetooth wireless. Right now they are paired to the iMac. I will instead pair them to the laptop so I can use them on that, but I need a keyboard that can toggle TDM on the iMac. I tried using a Dell keyboard (which in my experience, Apple treats the ⊞ Win as the ⌘ Cmd key) and using ⊞ Win+F2, but it doesn't toggle it. Is there any hope to use a non-Apple keyboard to toggle TDM on the iMac?


Is it possible to decrypt a message if a hash of the message was used as a key to encryption

I encountered a scheme where a hash of a message was used to encrypt the same message:  result = Encrypt(message=m, key=hash(m))    Specifically:  result = AES-256-CBC(message=random(1..2^132), key=SHA3(message))   Is it possible for an adversary to decrypt the message if he knows the result?