Is it possible to make the below url look more like a word/excel link? Here is a small latex example: \documentclass[10pt]{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel}  \usepackage{hyperref} \hypersetup{     colorlinks=true,     urlcolor=blue } \urlstyle{same}  \begin{document} Url: \url{https://stackexchange.com/} \end{document}  The result is:  I would like something, which looks like:  Any idea how to do that? Update I came by this solution, which is very close to what I want however it changes the font for the URL, which is not desired:  \documentclass{article} \usepackage{xcolor} \usepackage[normalem]{ulem} \usepackage{hyperref} \hypersetup{colorlinks,urlcolor=blue} \makeatletter \DeclareUrlCommand\ULurl@@{   \def\UrlFont{\ttfamily\color{blue}}   \def\UrlLeft{\uline\bgroup}   \def\UrlRight{\egroup}} \def\ULurl@#1{\hyper@linkurl{\ULurl@@{#1}}{#1}} \DeclareRobustCommand*\ULurl{\hyper@normalise\ULurl@} \makeatother  \begin{document} Url: \ULurl{https://stackexchange.com/} \end{document}

I would like the internal hyperlinks generated by  to be colored and underlined.    Reading some of the package documentation, I know that these \hypersetup keys exist:   colorlinks: when true, color the link; when false, draw a border around the link and color that. linkcolor: the color of the link (requires colorlinks=true to have any effect) linkbordercolor: the color of the link border color (requires colorlinks=false to have any effect) pdfborderstyle: keys for the pdf borderstyle dictionary.  I don't know what keys and values exist for this dictionary, but I do know that pdfborderstyle={/S/U} or pdfborderstyle={/S/U/W 1} can change the link border from a box to an underline.   But it seems impossible with this key structure to have colored links (requiring colorlinks=true and colored borders (requiring colorlinks=false.)  Here is a minimal (non)-working example ():  \documentclass{article} \usepackage{xcolor} \usepackage{hyperref}  \hypersetup{colorlinks=false,linkbordercolor=red,linkcolor=green,pdfborderstyle={/S/U/W 1}}  \begin{document} \section{To See}\label{tosee} \vskip2cm \hyperref[tosee]{just to see} \end{document}   With colorlinks=false (the default), the text is black and the border is red.  With colorlinks=true the text is green and there is no border.


I referred to the following questions:   and  on MSE, but I am still curious to know whether questions that have an active bounty are also considered and counted to appear in Hot Network Question Section.    Can a bounty question which has received several upvotes and a healthy view count still enter the HNQ?

As we know, a question with an attached bounty will most of the time get a visibility boost, mainly for two reasons:   Users will be attracted by the potential reputation gain and will check the question to see if they are able to provide an answer, Questions with an active bounty get their own tab - so anyone can quickly access them and see what is available at the moment   But is this "all"? Let me explain a little better. Here on Meta Stack Exchange, we get a ton of  and  questions, and it is not rare at all for those questions to not get an official staff answer (especially for feature requests). Often, someone offer a bounty on one of those questions to increase its visibility.  This made me wonder. I admit that I almost ignore the "featured question" tab here on this site, because I know that some questions may only get an actual answer from a staff member. Thinking about this, I was asking myself if giving a bounty has any other effect on top of getting a question "featured". For example, do bounties have any weight on the likelihood of a question to get in the "hot network questions" list? Is there some other hidden feature that will make the question more visible?  PS: notice - I am not suggesting any change in the current way bounties work, I just want to know if there is something I am missing to see in the current rules.


I have run into a strange issue that Computer A can see Computer B, Computer B can see Computer C, but Computer A can not see Computer C.   I would like to make a bash script that can be run on A that will call arbitrary commands on C, but I can't seem to get the double quotes working properly. The idea being:  AMB_CMD='source eniron.dat; cd path/to/code/; make clean all' ssh -t username@ComputerB "ssh -t username@ComputerC "$AMB_CMD""   I thought resolving what is to be running on B would fix it, like this:  AMB_CMD='source eniron.dat; cd path/to/code/; make clean all' B_CMD=ssh -t username@ComputerC "$AMB_CMD" ssh -t username@ComputerB "$B_CMD"   But I am still having issues.

I have a local machine which is supposed to make an SSH session to a remote master machine and then another inner SSH session from the master to each of some remote slaves, and then execute 2 commands i.e. to delete a specific directory and recreate it.  Note that the local machine has passwordless SSH to the master and the master has passwordless SSH to the slaves. Also all hostnames are known in .ssh/config of the local/master machines and the hostnames of the slaves are in slaves.txt locally and I read them from there.  So what I do and works is this:  username="ubuntu" masterHostname="myMaster" while read line do      #Remove previous folders and create new ones.     ssh -n $username@$masterHostname "ssh -t -t $username@$line "rm -rf Input Output Partition""     ssh -n $username@$masterHostname "ssh -t -t $username@$line "mkdir -p EC2_WORKSPACE/$project Input Output Partition""       #Update changed files...     ssh -n $username@$masterHostname "ssh -t -t $username@$line "rsync --delete -avzh /EC2_NFS/$project/* EC2_WORKSPACE/$project""  done < slaves.txt    This cluster is on Amazon EC2 and I have noticed that there are 6 SSH sessions created at each iteration which induces a significant delay. I would like to combine these 3 commands into 1 to get fewer SSH connections. So I tried to combine the first 2 commands into   ssh -n $username@$masterHostname "ssh -t -t $username@$line "rm -rf Input Output Partition && mkdir -p EC2_WORKSPACE/$project Input Output Partition""   But it doesn't work as expected. It seems to execute the first one (rm -rf Input Output Partition) and then exits the session and goes on. What can I do?


Is it possible to have blender save the single image when it finishes rendering it? I dont want to wait until its done as I let it render during the night. Ideally, I would want the PC to turn off as well when finished rendering. Thank you in advance.

I usually am able to render successfully to the c:\tmp folder, but when I came into work today, I rendered out the image on my work laptop, and everything seems to work, but I'm not getting an output to the tmp directory.  Does anyone know how to make this work?


I am running Ubuntu 18.04 and every time I run sudo apt-get upgrade, I get this error:  dpkg-deb: error: tar subprocess returned error exit status 1   dpkg: error processing archive /var/cache/apt/archives/bsdutils_1%3a2.31.1-0.4ubuntu3.4_amd64.deb (--unpack):  dpkg-deb --control subprocess returned error exit status 2 Errors were encountered while processing:  /var/cache/apt/archives/bsdutils_1%3a2.31.1-0.4ubuntu3.4_amd64.deb  E: Sub-process /usr/bin/dpkg returned an error code (1)   In addition to this, when I try to install any .deb file with sudo apt install. I get this error:  Reading package lists... Error! E: Sub-process Popen returned an error code (2) E: Encountered a section with no Package: header E: Problem with MergeList /home/paras/Downloads/code_1.37.1-1565886362_amd64.deb E: The package lists or status file could not be parsed or opened.   Please help.

The computer gave me this output in a window:  E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages E: The package lists or status file could not be parsed or opened.   How can I fix this?


Why does the article change positions in the following?  such a good person  so good a person  Haven't been able to answer my student's question on this one, and if you change the adjectives to "very good", it becomes a very good person or so very good a person. I'm sure there must be a reason. :)

You're too clever a man to imagine this.   The above sentence was , a man of excellent rhetorical skills.   Since he said it, I doubt it's wrong, grammatically. But, I wonder if there is an explanation for this. Because adjectives always come after the article not before it. e.g. You're a clever man.   How could this be, grammatically?


I only have 2 available points and I wish to forecast its value for the next year. I'm currently looking into exponential smoothing, and econometric input-output model. Which one would be more appropriate? This is about poverty.

I wish to forecast Y for year 2018 but I only have two data points of Y in years 2006 and 2012.   I already did multiple linear regression (since I have a lot of predictors) but multiple linear regression does not consider the time aspect so my predictions are limited.  I was advised to do causal forecasting instead, which will apparently give me a forecast for the next year. I researched about it but only found regression once again and a few others (econometric, input-output etc)  Is there an actual model in causal forecasting that can solve my problem?


For example, if I want to set a bit in y at position n (in C)  y = y | (1 << n)   But if I want to delete a bit in y at position n I have to use the ~ operator after binary AND.  y = y & ~(1 << n);   My question: Why Must I use the ~ operator? Is this because the result turns into negative area?

How do you set, clear, and toggle a bit?


This script should simply add a value to an array through a loop and then show all items of an array.   #!/bin/bash  data_file="$1" down=() counter=0  cat $data_file | while read line; do \     isEven=$(( $counter % 2 ))     if [ $isEven -eq 0 ]; then         down+=("$line")     fi     (( counter ++ )) done  echo ${down[@]}    exit   But all I see is empty string:  host@user$ sh script.sh data_file  host@user$   The data_file contains this:  81.11 11.63 81.11 11.63 81.11 11.63 81.11 11.63    Where's my mistake? Thanks.

I'm trying to write a simple bash function that takes, as its arguments, a number of files and/or directories. It should:   Fully qualify the filenames. Sort them. Remove duplicates. Print all that actually exist. Return the number of non-existent files.   I have a script that almost does what I want, but falls down on the sorting. The return value of the script as it stands is correct, but the output is not (unsorted and duplicates). If I uncomment the | sort -u statement as indicated, the output is correct but the return value is always 0.  N.B. Simpler solutions to solve the problem are welcome but the question is really about why is this occurring in the code I have. That is, why does adding the pipe seemingly stop the script incrementing the variable r?  Here's the script:  function uniqfile {     local r=0       for arg in "$@"     do           readlink -e "$arg" || (( ++r ))      done #| sort -u    ## remove that comment      return $r }


I am attempting to write some Python code which creates a blank data frame or group layer which can then be populated with other layers. I'm at a loss as to how to do this since I'm somewhat new to Python coding.

Does anyone now how to add a group layer with Python in ArcGIS Desktop 10?  I can use arcpy.mapping.AddLayer but surely this is only for an actual layer as opposed to a group layer.  so far I have this  import arcpy mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.listdataframes(mxd, "layers")[0] arcpy.mapping.AddLayer


As the title of the question says, every time I visit a site of stack exchange family I get the dialog for cookie consent. I accepted it multiple times (clicked on "Accept all cookies") but no way, it is still there every time I visit a page on stack exchange network. Tested with Firefox, chromium.

Recently, every time I hit a new page in stackexchange, whether it be the list of questions in a given forum, or a specific question, I am getting a pop-up like this:   Your privacy By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. Accept all cookies Customize settings  I am able to click "accept" and it will go away, but it comes back as soon as I reload the page or view a new topic.  UMatrix shows it's a script from cdn.cookielaw.org and that it's trying to set a 3rd-party cookie. My guess is that since I'm blocking 3rd-party cookies and scripts, it just keeps trying. Given how bad we know 3rd-party cookies are, and how they are used to violate privacy, track people across sites, etc., why on Earth would Stack Exchange do this?


I recently encountered a situation where I tried to use ! as a record separator for my string array in shell script. When I used it in my shell script, the script got expanded automatically. An example to reproduce the situation can be as below.   check_variable="Hello" echo "$check_variable" Output: Hello ###For multiple strings, I tried to concatenate with ! as a record separator.  echo "$check_variable !" Output: echo "$check " > Results.txt   Then after some research, I had figured out ! is in fact a special character and should not be used as record separators. So, exactly why is ! used? Is there any way I can turn off the ! character and use it in my shell script?

I used   history | less   to get the lines of previous commands and from the numbers on the left hand side I found the line I wanted repeated (eg. 22) and did  !22   at the command prompt and it worked -- executing the set of commands on the line I did at that time. I cannot figure out where the exclamation mark is used, what does it represent in terms of actions taken by bash, and where to use it. From the documentation I do not see an explanation that is 'tangible'.


I have a simple question:  Are we certain that the md5 hashing algorithm can produce $2^{128}$ different outputs ? If so, how ?  Note: Sorry if this has already been asked, I really couldn't find it.

Is every output of a hash function (e.g. SHA1, MD5, etc) guaranteed to be possible, or, conversely, are there any output values that cannot possibly be created from any input? In other words, are hash functions surjective?  If so, what guarantees this? If not, is it possible to discover such impossible outputs via an attack faster than brute force?


Is there any way to add watermark to certain PDF files stored in document folder? We would like to do a dynamic watermarking capability to the documents with confidential information of user who download the document. Is there a way to accomplish this or do we need to use a third party tool to make it happen? In our case we have a VF page that displays the document assigned to them and they document the files from there.

I have a VF page with file upload control ,Users will upload PDF file along with other details and the file will be stored in Attachments.  Requirement : When user uploads PDF then file should be Water Marked with some text OR some custom text should be included in the header/footer of the file and saved in Attachment object.  What are the options available to acheive this functionality ?  Thanks


I have a 5th level barbarian who gets two attacks, as part of his class abilities. If I choose to employ the standard two-weapon fighting style using two hand-axes, my attack sequence looks like this in a round:  1st attack: Attack with primary hand 2nd attack: Attack with primary hand  Bonus action: Attack with secondary hand.  I can choose where to place the bonus action (after attack 1 or 2) BUT I do not get it for each action, since there can't be more than one bonus action per turn.  Essentially, this nets me 3 attacks per round and not 4. Am I interpreting this correctly?

I have a 5th level fighter with the Two-Weapon Fighting fighting style.   What is the number of attacks I can make?   I say 4 attacks, but others say 3 because they say the rule on page 72 states that I get (only) 1 extra attack.


I have a problem that I can't resolve. I want two put two circuits near to each other and not on top of each other. Here is my code  \documentclass{article} \usepackage{caption} \usepackage{subcaption} \usepackage{circuitikz}  \begin{document}  \begin{figure} \centering  \begin{subfigure}[b]{0.4\textwidth}  \begin{circuitikz} \draw    (0,2) to [american controlled current source, l=$g_m V_{GS_1}$](0,0) (2,2) to [R, l=$r_{o_1}$] (2,0) (3.5,2) to [american controlled current source, l=$g_m V_{GS_2}$](3.5,0) (5.5,2) to [R, l=$r_{o_2}$] (5.5,0) (0,2) to [short, -o] (6,2) (0,0) to [short, -o] (6,0); \end{circuitikz}  \caption{with $r_o$} \end{subfigure}  \begin{subfigure}[b]{0.4\textwidth}  \begin{circuitikz} \draw    (0,2) to [american controlled current source, l=$g_m V_{GS_1}$](0,0) (3,2) to [american controlled current source, l=$g_m V_{GS_2}$](3,0) (0,2) to [short, -o] (4,2) (0,0) to [short, -o] (4,0); \end{circuitikz}  \caption{with no $r_o$} \end{subfigure}  \caption{DC small signal model} \end{figure}  \end{document}     Can someone help me to figure out how to put the two circuits beside each other and not on top of each other?

Figures are plotted vertically but i want to set them horizontally. Kindly guide me the possible options.  \documentclass[conference]{IEEEtran} \ifCLASSINFOpdf \else \fi \hyphenation{op-tical net-works semi-conduc-tor} \usepackage[pdftex]{graphics} \usepackage{algorithm} \usepackage{algorithmic} \usepackage{pgfplots} \usepackage{subcaption} \usepackage{pgfplotstable} \usepackage{amsmath} \usepgfplotslibrary{dateplot} \usepackage{cite} \usepackage{url} \usepackage{amsbsy} \usepgfplotslibrary{patchplots} \pgfplotsset{compat=1.7}  \hyphenation{op-tical net-works semi-conduc-tor} \begin{document}  \begin{figure} \centering \hspace{-2.15cm}     \begin{subfigure}{.45\linewidth} \begin{tikzpicture} \begin{axis}[     ylabel=Satisfied Requests,     xlabel=Requests,     height=5cm, width=8cm,     legend cell align=left, legend columns=-1, legend style={inner xsep=2pt, inner ysep=2pt,at={(0.365,0.216)},anchor=east,font=\tiny},     label style={font=\small},     legend columns=1,     xticklabel style={anchor=near xticklabel},     ymin=0.2, ymax=0.6, ytick={0.1,0.2,0.3,0.4,0.5,0.6},     xmin=0, xmax=1.1, xtick={0,0.2,0.4,0.6,0.8,1.0}, ] \addplot [thick,mark size=1.8pt,mark=square,red] table[x=x, y=y]   {a.txt}; %\addplot [thick,mark size=1.8pt,mark=asterisk,blue] table[x=x, y=y]  {Request vs. satisfied requests-2.txt}; %\addplot [thick,mark size=2.3pt,mark=diamond,black] table[x=x, y=y] {Request vs. satisfied requests-3.txt}; %\addplot [thick,mark size=1.8pt,mark=o,brown] table[x=x, y=y] {Request vs. satisfied requests-4.txt}; %\legend{Proactive high load, Proactive low load, Reactive low load, Reactive high load} \end{axis} \end{tikzpicture} \subcaption{} \end{subfigure}  \hspace{-2.05cm}  \begin{subfigure}{.45\linewidth} \begin{tikzpicture} \begin{axis}[     ylabel=Satisfied Requests,     xlabel=Cache size,     height=5cm, width=8cm,     legend cell align=left, legend columns=-1, legend style={inner xsep=2pt, inner ysep=2pt,at={(0.996,0.21)},anchor=east,font=\tiny},     label style={font=\small},     legend columns=1,     xticklabel style={anchor=near xticklabel},     ymin=0, ymax=1.1, ytick={0,0.2,0.4,0.6,0.8,1.0},     xmin=0, xmax=1.1, xtick={0,0.2,0.4,0.6,0.8,1.0}, ] \addplot [thick,mark size=1.8pt,mark=square,red] table[x=x, y=y]   {a.txt}; %\addplot [thick,mark size=1.8pt,mark=asterisk,blue] table[x=x, y=y]  {Cache vs. satisfied requests-2.txt}; %\addplot [thick,mark size=2.3pt,mark=diamond,black] table[x=x, y=y] {Cache vs. satisfied requests-3.txt}; %\addplot [thick,mark size=1.8pt,mark=o,brown] table[x=x, y=y] {Cache vs. satisfied requests-4.txt}; %\legend{Proactive high load, Proactive low load, Reactive low load, Reactive high load} \end{axis} \end{tikzpicture} \subcaption{} \end{subfigure}  \vspace{-0.08cm} \caption{Simulation results for Proactive vs. Reactive caching with low and high load. (a) Hit radio vs. Number of requests (b) Hit radio vs. cache size} \label{LQI-timex} \end{figure}  \end{document}      data file  x   y 0.1 0.53896 0.2 0.52122 0.3 0.50326 0.4 0.48145 0.5 0.45054 0.6 0.42319 0.7 0.40357 0.8 0.38396 0.9 0.36315 1   0.34668


I am using Ubuntu 13.10 64-bit and I would like to have a short cut that will restart the computer and one that will shutdown. I know how to make shortcuts in the keyboard settings, but I don't know the command. Thanks

Is there a keyboard shortcut available to shutdown the computer?  I know I can use the Power button, but I would like to be able to it from the keyboard.  If such a shortcut does not exist already, how do I set one?


I know that when in a SCR the anode is made more positive with respect to cathode the two outermost p-n junction get forward-biased but the middle one is still reverse-biased  so no current flows through it but when a small gate current is applied to it the middle junction also get forward-biased and allows a huge amount of current to flow through it but in my text book it is not described at the atomic level what happens it is only it's working stated. Can anyone give an explanation of what is going on the atomic level.  Thanks   Akash

As part of my 2330 lv3 am required to know about thyristors. I just want to confirm my understanding is correct. A thyristor is basically similar to a transistor, only it stays switched on when it's trigged for as long as there isn't a break in the circuit it's switching. Am I correct?


I can't install some applications using apt-get.  It shows the following error. How to solve it?  $ sudo apt-get install apache2 E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

I get this error when trying to use apt-get:  E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?     How can I fix this?


I do my work on a laptop.  I have this problem and I'm trying to find a solution which the problem is when I set screen brightness on 100%, the colors on my screen are mixing up with the backlight of the screen, and I dont get the true colors of the picture's.   When I send the pictures to other people they see a different colors like more saturation or more or less of the adjustments.   Do you have any solution for this?

I designed a mockup on my LG monitor. When I view the same design on another monitor that I own, the colors seem drastically different. I reset both of the monitors to their factory defaults, but still the issue persists. I'm wondering if some of my clients might dislike my designs because of this. What should I do?  How can I make sure that what I design is what my client sees?  Even worse still, I've realized that my laptop is showing different colors too.


I tried to flag a previously upvoted comment in the iOS App and I couldn't find the option to Flag. I then checked on other comments and on different SE-communities.  Here is what I observed everytime:   As soon as I tap Upvote, the button Flag disappears:  When I tap Undo Upvote, the button appears again:    I was able to flag the comment normally on the website itself, so it must be a bug in the iOS App.Or is this intended behavior? If yes, how do I flag an upvoted comment using the iOS App?

I often flag comments as obsolete after i.e. the suggestion has been added to the question/answer -- or for any reason that fits into 'obsolete'.  Sometimes I revisit a question from days ago and I can't flag the comments I've up voted. Which forces me to hop on my laptop and do it from the desktop site (you can flag up voted comments on the desktop site) -- that is if I'm feeling really persistent about it.  Can this functionality be added to the iOS app?


Why do materials extend proportionally to the force exerted on them (Hooke's law)? I thought that    when materials are compressed or extended under force, their atoms become closer or further apart;  the inter-atomic forces are essentially electrostatic;  electrostatic forces (and indeed most other forces) follow an inverse-square law;   So I would naively conclude that springs should follow an inverse square law.  But clearly in most situations the law is linear.  Where is my logic flawed?

Can we derive  from the theory of elasticity? I know it is not a fundamental law and therefore can be derived from more basic considerations.


I need to unscrew a screw that I can't access frontally. How can I do it? Googling a bit I was thinking of a Torque Wrench, do you think it's the right choice?

I need to remove the face of a fake drawer that is screwed from behind. Unfortunately, a kitchen sink is preventing me from using a screwdriver. There is approximatively 4cm of space. The screw head is a PZ2. Is there a tool can could help me remove this screw ?


I am new to Blender. I have some experience with 3DS Max though.  I was trying to use the little triangular widgets at the bottom left and top right of a tab, and eventually ended up with 18 of them before I learned how to get rid of SOME of them. I am left with the Blender window below, and cannot get rid of whatever this is, to show me the usual 3D window any more. If I close blender and restart and load the same .blend file, I get the same result.    Help would be much appreciated.

I accidentally opened too many menus (or windows) and I want to reset them to default.  It is really annoying, and effecting my animation.  Thanks


I created this code and most of it is working with the exception of the toUpperCase which should make every first letter of a word uppercase. There is no error so I am not sure why the method is not currently working. Why may this be the case.  let str ="insert string here" String.prototype.toCase = function () {   let arrayWord = str.split("");   for (let i = 0; i<str.length; i++){     if (arrayWord[i]===" "){       arrayWord[i+1].toUpperCase();     }     else{     }   }   let result = arrayWord.join("");   return (result) };

Is there a simple way to convert a string to Title Case? E.g. john smith becomes John Smith. I'm not looking for something complicated like , just (hopefully) some kind of one- or two-liner.


So as know, $\underset{i = 1}{\bigcup}$ is how you place text under  an operator. And $\overset{n}{\bigcup}$ is how you place text over an operator. But how do you combine the two? I've tried things like \underset\overset{i=1}{n} \bigcup as well as $\underset{i=1}\overset{n} \bigcup$ but those are syntactically incorrect. Main question: Basically, I want a union symbol with its initial index as i=1 and its ending index as n

In the example  $\cup^{i=1}_{\infty}F_i$   How do you get the i=1 directly below the union symbol and the infinity directly above?


Suppose I have an equation: $$x-\ln(x) = y$$ How would I rearrange this to make $x$ the subject of the formula? Is there a trick for such equations?

Let $a>0$ and $b \in \mathbb{R}$: Assume there exists an $x >0 $ s.t. $$x - a\log(x) = b$$ holds. How can it be determined in closed-form?


Here's my minimal problem-causing example:  \documentclass{standalone} \usepackage{fixltx2e} \usepackage{amsmath}  \begin{document}      \begin{subequations}         \begin{align}             a &= b + c\\             a' &= b' + c'\\         \end{align}     \end{subequations}  \end{document}   Here's the log output:  line 14: Missing \endgroup inserted \end{align} line 14: Missing \endgroup inserted \end{align} line 14: Missing } inserted \end{align} line 14: \begin{document} ended by \end{align}. \end{align} line 14: Missing $ inserted \end{align} line 14: Display math should end with $$ \end{align} line 14: Extra \endgroup \end{align} line 15: \begin{document} ended by \end{subequations}. \end{subequations} line 15: Extra \endgroup \end{subequations} line 17: Too many }'s \end{document}   What is the issue?

I was surprised to find that standalone package can not compile a document with an equation:  \documentclass{standalone} \begin{document} \begin{equation} % not working! F(V, T) = E(V) + D(T) \end{equation} \end{document}   Is there an option or some workaround that allows this? The current error is something like:   ! Missing $ inserted.   in line 4. (The idea of course is that the including (main) document can just \input the standalone without knowing if is going to be an equation or something else)


I am beginning to learn how to use scikit-learn and I have a hard time choosing the right model.   Here is my dataset: I have 100 persons. Each person was measured three times: baseline, first event and second event. Each measurement had 100 different markers per person that range from 0.1 to 1000. Additionally I have outcome measurements of each event: outcome can be 0, 1 or 2. My task is to find just a few markers (let’s say 10) that can predict outcome. If I am right it should be: Supervised learning/Classification problem. What model would be the best?   Thanks for your help!

I am beginning to learn how to use scikit-learn and I have a hard time choosing the right model.  Here is my dataset: I have 100 persons. Each person was measured three times: baseline, first event and second event. Each measurement had 100 different markers per person that range from 0.1 to 1000. Additionally I have outcome measurements of each event: outcome can be 0, 1 or 2. My task is to find just a few markers (let’s say 10) that can predict outcome with a good accuracy. If I am right it should be: Supervised learning/Classification problem. What model would be the best?  Thanks for your help!


I am getting very weird interpreter behaviour:  >>> _ True >>> type(True) <class 'bool'> >>> type(_) <class 'bool'>   I tried this because _ came up as a suggestion in Bpython, but it seems to work in the normal interpreter too. I am using  Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 16 2013, 23:39:35)  [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin   Can anybody explain why _ is a substitute for True? Is it legacy, similarly to how ";" can be used to end commands, but is not necessary/encouraged?  EDIT: It seems to be random. This does not happen in a new terminal, but once I start working on something _ starts becoming true. What the hell is going on?

In many symbolic math systems, such as Matlab or Mathematica, you can use a variable like Ans or % to retrieve the last computed value. Is there a similar facility in the Python shell?


I know that one can use an  to determine that $te^{rt}$ is a solution to the ODE $a\ddot{x}+b\dot{x}+cx=0$ where $r$ is the double root of the characteristic polynomial. Is there a way this can be derived explicitly without such an "educated guess"?

When solving the differential equation $y'' + ay' + by = 0$ (with constant, real coefficients $a$ and $b$, although they could be complex if you like), you do it by setting up the characteristic equation $r^2 + ar + b = 0$, finding its solutions $r_1, r_2$, and then the general solution to this equation is $Ce^{r_1x} + De^{r_2x}$. This works both when the solutions are real and when they are complex.  However, when we have a double root $r_1 = r_2$, we get a different general solution, namely $Ce^{r_1x} + Dxe^{r_1x}$. I have no trouble seing that this is indeed a solution, and intuitive reasoning on degrees of freedom dictates that we must have a linear combination of two terms in our general solution, while $e^{r_1x}$ and $e^{r_2x}$ are the same. So the fact that there is a second term of some other form is not surprising.  I have, however, yet to see a "natural" explanation of this $xe^{r_1x}$ term. If one were developing the theory from scratch, how would one find this solution (other than blind luck)? If I wanted to teach ODE's to a class of students "the right way", i.e. with good explanations and motivations for everything (as opposed to just pulling out ready-made solutions like what was done to me when I was learning this exact thing), how would I motivate even considering a term like $xe^{r_1x}$ (other than "Well, exponentials aren't quite cutting it, but this is kindof like an exponential, right? Let's try it.")? And is there a way of solving the general differential equation that does not involve splitting into cases depending on whether the characteristic polynomial is a square?


My documents language is Persian and I am using xepersian package for the matter. The font I defined for my document which is an MS thesis is B nazanin, we are told to use the font and can't change it. Apparently it does not support the bold font. Since I cannot use other fonts, what can be done about it?  \documentclass[a4paper,12pt]{report} %\setlist[itemize,1]{label={\fontfamily{cmr}\fontencoding{T1}\selectfont\textbullet}} \usepackage{pifont} \usepackage{xepersian} \settextfont[Scale=1.1]{B Nazanin} \defpersianfont\nastaliq[Scale=2]{IranNastaliq} \defpersianfont\titr[Scale=1]{B Titr} \defpersianfont\traffic[Scale=1]{B Traffic} \deflatinfont\calibri{Calibri}  \begin{document} \chapter{مقدمه} \section{پیشگفتار}   در دنیای امروزی با حجم وسیعی از اطلاعات روبرو هستیم که بوسیله‌ی سنسورهای طبیعی و مصنوعی گرفته و ثبت شده‌اند. این اطلاعات عموماً یا تکراری هستند و شامل چندین نسخه از جهان فیزیکی مشابه هستند و یا شامل چیزی فراتر از اطلاعات مورد نظر ما و آنچه ما به دنبال آن هستیم می‌شوند. اطلاعات مرتبط و مورد نظر ما معمولاً در ابعاد بسیار پایین‌تر قرار دارند. استخراج این اطلاعات به یکی از دغدغه‌های امروز دنیای فناوری اطلاعات بدل شده است، اینکه بتوان تشخیص داد که داده‌ی مطلوب و مورد نظر ما در کجای داده‌ی مشاهده شده قرار دارد.  نمایش تنک داده‌ها ابزاری قدرتمند است که در زمینه‌های نمایش و فشرده‌سازی داده‌ها در ابعاد بالا مورد استفاده قرار می‌گیرد. \end{document}

I have a 100 page document, I used colored text many places to highlight with below command in my preamble  \newcommand\bluetext[1]{\textcolor{blue}{#1}}   its working great however did not realize at the time of writing that i would require color printer for this. I wanted to change colored text to bold - I change the above command as below    \newcommand\bluetext[1]{\textbf{#1}}   It removed the colors but did not give me any bold letters, is it because of the font? or I am doing anything wrong? I am using sanskrit 2003 font.    In the attached image all the circled text should have appeared bold.  Thanks for your help - Here is the MWE  \documentclass[24pt]{article} \usepackage{fontspec} \usepackage{polyglossia} \usepackage{color} \usepackage{amstext, amsmath} \setmainfont[Script=Devanagari]{Sanskrit2003} \setdefaultlanguage{sanskrit} \newcommand\bluetext[1]{\textcolor{blue}{#1}}  %\newcommand\bluetext[1]{\textbf{#1}} % Blue Text \begin{document} १.१.१\bluetext{वृद्धिः}\textsuperscript{१/१} आत्\textsuperscript{१/१} ऐच्\textsuperscript{१/१}     \\ १.१.२     अत्\textsuperscript{१/१}  एङ्\textsuperscript{१/१} गुणः\textsuperscript{१/१}     \\ १.१.३     \bluetext{इकः}\textsuperscript{६/१} \bluetext{गुणवृद्धी}\textsuperscript{१/२}    \\  १.१.४     \bluetext{न}\textsuperscript{०/०} धातुलोपे\textsuperscript{७/१} आर्धधातुके\textsuperscript{७/१}    \\ १.१.५     क्क्ङिति\textsuperscript{७/१} च\textsuperscript{०/०}     \\ \end{document}


I am new to this field and looking for novice books to buy on physics and quantum physics...Any introductory literature recommendation would be highly appreciated. Thank you

I'm really interested in quantum theory and would like to learn all that I can about it. I've followed a few tutorials and read a few books but none satisfied me completely. I'm looking for introductions for beginners which do not depend heavily on linear algebra or calculus, or which provide a soft introduction for the requisite mathematics as they go along.  What are good introductory guides to QM along these lines?


I have a continuous distribution that I was thinking of binning for computing MI and H.  I often arbitrarily decide on bin size. Is there a general consensus on how to set bin size and number?  Thanks for your input!

I want to quantify the relationship between two variables, A and B, using mutual information. The way to compute it is by binning the observations (see example Python code below). However, what factors determines what number of bins is reasonable? I need the computation to be fast so I cannot simply use a lot of bins to be on the safe side.  from sklearn.metrics import mutual_info_score  def calc_MI(x, y, bins):     c_xy = np.histogram2d(x, y, bins)[0]     mi = mutual_info_score(None, None, contingency=c_xy)     return mi


I try to custom my beamer presentation and I want place my logo in left in the frametitle.  The best solution i found is . Others solution are very complicate for a simple task (more and more code line for just deplace the logo  ).  The command \pgfbox delete my content:    So i use this command: \logo{\pgfputat{\pgfxy(9.45,1.5)}{\includegraphics[width=1.7cm]{logo.png}}} and the problem is the "zindex" logo is lower than the frametitle so I've this rendering:

I created a presentation using the beamer class with texmaker. Right now it looks like this:    Now I would like to include a jpg where the red circle is located, so basically inside a palette. Can anybody help me how to do that?  The code:  \documentclass[t,compress,10pt,xcolor=dvipsnames]{beamer}  \usepackage{lmodern} \usepackage[labelformat=empty,labelsep=none]{subfig} \usepackage{caption} \usepackage{float} \usepackage{wrapfig}  \newcommand*\oldmacro{}% \let\oldmacro\insertshorttitle%  \renewcommand*\insertshorttitle{%   \oldmacro\hfill%  \insertframenumber\,/\,\inserttotalframenumber}  \definecolor{UniDunkel}{RGB}{73,142,137} \definecolor{UniHell}{RGB}{142,184,182}  \setbeamertemplate{blocks}[rounded][shadow=true] \setbeamercolor{structure}{fg=UniDunkel}  \setbeamercolor{block body}{parent=normal text,use=block title, bg=block title.bg!10!bg} \setbeamercolor{block body alerted}{parent=normal text,use=block title  alerted,bg=block title alerted.bg!10!bg} \setbeamercolor{block body example}{parent=normal text,use=block title  example,bg=block title example.bg!10!bg}  \setbeamercolor*{palette primary}{use=structure,fg=white,bg=UniDunkel!115} \setbeamercolor*{palette secondary}{use=structure, fg=UniHell,  bg=UniHell} \setbeamercolor*{palette tertiary}{use=structure,fg=white,bg=UniDunkel!115} \setbeamercolor*{palette quaternary}{fg=Orange}  \setbeamercolor*{sidebar}{use=structure,bg=structure.fg} \setbeamercolor*{palette sidebar primary}{use=structure,fg=structure.fg!10} \setbeamercolor*{palette sidebar secondary}{fg=white} \setbeamercolor*{palette sidebar quaternary}{fg=white} \setbeamercolor*{titlelike}{parent=palette primary}  \setbeamercolor*{fine separation line}{}  \setbeamercolor{block title}{use=structure,fg=white,bg=structure.fg!0!red} \setbeamercolor{block title alerted}{use=alerted text,fg=white,bg=alerted text.fg!0!white} \setbeamercolor{block title example}{use=example text,fg=white,bg=example text.fg!0!white}  \useoutertheme{miniframes} \useinnertheme{circles} \setbeamertemplate{footline}[frame number]  \beamertemplatenavigationsymbolsempty  \begin{document}  \section{Section1} \subsection{Subsection1} \frame { \frametitle{Frame1} }  \section{Section2} \subsection{Subsection2} \frame { \frametitle{Frame2} }   \end{document}


I am planning to dual-boot Ubuntu 16.04 using Universal USB Installer in my machine. However, Ubuntu 16.04 recommends having 3.2 GHz clock speed or better; my machine only has 2.4 GHz. Is there a version of Ubuntu that requires a minimum of 2.4 GHz? And how can I download the iso file?

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


Ideally I'm trying to put together a PHP script that I can query from any web browser and it returns the country of the IP address that accessed the PHP script.  Is this possible or is there a better solution?

I want to retrieve information like the city, state, and country of a visitor from their IP address, so that I can customize my web page according to their location. Is there a good and reliable way to do this in PHP? I am using JavaScript for client-side scripting, PHP for server-side scripting, and MySQL for the database.


I was thinking about this today...  Is it possible for a planet to be made almost entirely of water (H20)?  I'm sure that other elements would be in the mix, but I mean almost entirely made of water.  Even the core.  No rocky interior covered by water.  If so, what would the core be like?  I imagine the pressure would create something different than liquid water.

My friend and I were reading the news of the discovery of a , and it got us thinking: could there be a blob of liquid water in space the size of, say, a planet?  Just in the interest of curiosity, I want to ask about several scenarios:   Could the water being ejected by that black hole ever condense into something of the size I'm describing? Would it boil over immediately? If it would boil over, supposing the water "planet" could somehow have an atmosphere or maybe even a glass enclosure that keeps the liquid water away from the vacuum, what might happen to the planet as a result of other forces, namely gravity? Would the elements near the middle heat up and maybe fuse? Roughly how large a body of water could you have that's stable given that it could be protected from the vacuum? And just for fun, supposing the body of water was "bootstrapped" with primitive life or the ingredients for it, could it potentially support life?


I am going through mysql (through xampp phpamin)database I found there. I found there create database and collation. What is collation, Why we need that while creating  new database. can any one explain

I can read the MySQL documentation and it's pretty clear. But, how does one decide which character set to use? On what data does collation have an effect?  I'm asking for an explanation of the two and how to choose them.


Im having a problem on how can i get the string of array it gives me this error:     Request processing failed; nested exception is java.lang.NullPointerException   Error Detail:  java.lang.NullPointerException com.max.common.CampaignSyncEntity.getSyncAdKeywords(CampaignSyncEntity.java:249) com.max.adwords.testsync.AWSyncTest.runSyncTest(AWSyncTest.java:21) com.max.web.controller.CampaignSync.uploadMultipleFileHandler(CampaignSync.java:25) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)   It seems that when getting an Null array of string this error occur.  This is the code on getting the null array:  public class AWSyncTest { static CampaignSyncEntity syncEntity = new CampaignSyncEntity(); public void runSyncTest() {      System.out.println("CAMPAIGN NAME: "+syncEntity.getSyncCampaignName());     System.out.println("CAMPAIGN ID: "+syncEntity.getSyncCampaignId());     System.out.println("AD GROUP NAME: "+syncEntity.getSyncAdGroupName());     System.out.println("AD GROUP ID: "+syncEntity.getSyncAdGroupId());     System.out.println("AD STATUS: "+syncEntity.getSyncAdStatus());     System.out.println("TEXT AD TYPE: "+syncEntity.getSyncTextAdType());     System.out.println("TEXT HEADLINE: "+syncEntity.getSyncTextHeadline());     System.out.println("TEXT DESCRIPTION 1: "+syncEntity.getSyncTextDesc1());     System.out.println("TEXT DESCRIPTION 2: "+syncEntity.getSyncTextDesc2());     System.out.println("TEXT DISPLAY URL: "+syncEntity.getSyncTextDisplayURL());     System.out.println("TEXT FINAL URL: "+syncEntity.getSyncTextFinalURL());     System.out.println("KEYWORDS: "+Arrays.toString(syncEntity.getSyncAdKeywords()));     System.out.println("NEGATIVE KEYWORD: "+syncEntity.getSyncAdNegativeKeywords());     System.out.println("MATCH TYPE: "+syncEntity.getSyncAdMatchType());     System.out.println("AD CRITERIA TYPE: "+syncEntity.getSyncAdCriteriaType());     System.out.println("LOCATION: "+syncEntity.getSyncLocation());     System.out.println("LOCATION ID: "+syncEntity.getSyncLocationId());  }   }  Hope you guys can help me about my problem, thanks in advance

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


I want to play on a survival world with a neighbor, but I cannot connect to his internet so how to play with him besides a server?

Minecraft's got an "Open to LAN" feature, which can be used to set up a local server when two computers running Minecraft are on the same network. Some young relatives of mine use this to play together whenever they're in the same house, but they'd like to be able to play together from their respective residences.  A server is not optimal because it's a bit complex. I've tried using Tunngle to spoof that the computers are on the same connection to no avail.  How can I convince Minecraft's "Open to LAN" that their two separate computers are on the same network?


I am really annoyed by how little screen space is used for a question or actual content when I am not logged in to sites on the network.  I visited an AskUbuntu question and found less than 10% of the screen currently in view was what I actually wanted to see. With max resolution on my computer.    My view while looking at this page (and I'm sure many other people's view as well) is "I came here for answers to my question, not finding a Dream Job, not Signing Up and not joining a Developers Team."  I am posting this here rather than AskUbuntu Meta because most other sites (if not all of them) have the same clutter.      This needs to be fixed fast. Make the stuff a lot of viewers won't care about less intrusive.  If you have a look at my , you'll see how much I dislike distractions on these sites

With left nav, responsive design, and various new-user notices, this is what an anonymous user currently sees (browser window here is 1090px wide):    I realize that a lot of this content -- code of conduct, new-user intro, cookies notice -- is important.  And I get that the left nav is an important design element, and responsive design dictates the width of the right column.  But when you add it all up, Q&A -- what the site is about -- gets a distressingly small portion of the screen.  Can we do better?   Maybe we can make that intro/mini-tour shorter? Maybe we can hide the right column for anonymous users? Maybe some things can wait until the user's viewed a few pages? Maybe other things I haven't thought of?   My concern is that anonymous users -- people coming from Google, people who were referred to a site by users hoping to recruit them, or others who find their way to us but aren't invested in us -- will turn away before seeing how rich and helpful our sites are.  Which would be a real shame, because our sites are awesome.  First impressions matter.  When I'm asking a rabbi to check out Mi Yodeya or a professional chef to check out Seasoned Advice or my vet to check out Pets (all of these have happened), I want to make a good impression.  I want the person to see more than 2.5 questions; I want to increase the chances the person will see something interesting or say "oh I can answer that!" and dig deeper.  Yes, the other stuff is important, but maybe not now?  Is there a better way to "stage" all this information for people we haven't yet hooked?


I know Java foreach loops are only meant to read values and not assign them, but I was wondering if they can call mutator methods on object. To find out I designed an experiment. Unfortunately the experiment crashes and I'm curious as to why.  public class test {  public static void main(String[] args) {     foo[] f = new foo[4];     /*this would be a foreach loop, once I got the program working normally*/     for(int i = 0; i < f.length; i++) {         System.out.println(f[i].get());         f[i].add();         System.out.println(f[i].get());     } } private class foo {     foo() {         int x = 5;     }      void add() {         x++;     }      int get() {         return x;     }      private int x; }   }  Gives Exception in thread "main" java.lang.NullPointerException when I expected the output to be 5 6. Is it because the constructor to foo isn't being called? If so, how can it be called? Must foo be made a static class?


I want to detect when there is only one player left on a team.   I am making "Hunger Games" style PvP arena/event. When you die you go to the "Dead" team, and if you are still alive you stay on the "InGame" team.  I need to make it so if there is only one player left on the "InGame" team that it announces the winner and everybody returns to the lobby.

I want to run a command when there are only 10 entities left. I know you can use /execute unless entity to detect when all matching mobs have died, but it doesn't work if you want to run a command when there are for example 10 entities left.  A command like /execute if entity @e[limit=10] does not work, it also triggers if there is only one entity.  Such a counting system could also be used to determine once there is only one player left in an arena, meaning they have won a battle or similar.


I have a system that I would like to limit a specific user to a single app that will autostart when he logs in.  I don't see any way to do this with the toolbar/launcher active but I have seen references to a "custom Desktop" for a user but can find no specific info on how to set one up and what its limits are.   Can this be done?  Any suggestions on where to look for such info?  I have looked at "Setting Up Ubuntu as a Kiosk Web Appliance by natrinicle" and it is on a different version of ubuntu, or at least mine doesn't have any of the menus he is using.  The "Customize Ubuntu for a library Internet kiosk" just references back to that one.  I at least need one that works with 14.04.  I have tried to use the guest account but I cannot find any way to run the program.  It needs to be run sudo or setuid to another user and I can't find any way to do that in the guest account under 14.04.

I would like to customize ubuntu for a library, they only want to display a web browser with their site in full screen.  No address bar, no button user can only click the link on the page.  If library's staff enter admin user name and password they can change any settings in ubuntu.  Any suggestion or usefully link is much appreciated.


Is there any way to turn off those annoying on-site notifications (the ones under Earth icon on Facebook bar) from fanpages that I have created? I'm logged in with my private account and I don't want to get those notifications, only the ones from friends. Before answering please make sure you actually managed to find the right solution, I'm not talking about e-mail notifications.

I'm an admin of several pages on Facebook (for technical stuff like RSS imports, etc.), but neither do I contribute content nor do I care about their content.  Still, as an admin, I get notifications (upper left hand, the globe icon) about activity (someone liked this, someone posted that) on those pages in my personal (!) profile .  Does anyone have the same issue? Is there any way to explicitly disable notifications for certain pages?  (This behavior seems to be new, by the way; I'm only seeing those notifications for a few weeks now.)


If I launch Chrome using the command google-chrome then I can't use the terminal for any other operations until the Chrome instance is closed.   Is there any way to open Google Chrome by command line without loading the dynamic contents of Google Chrome into the terminal, so that I can use the terminal for other operations.

How do I run a program in the background of a shell, with the ability to close the shell while leaving the program running? Lets say my UI is having problems or for some reason, I need to boot up a program from the terminal window, say, nm-applet:  nm-applet   When it's started, it occupies the foreground of the terminal window.  Is there any simple way to run the program in the background without needing to leave the terminal open or have it occupy the whole terminal?  On that note, I did find a way to run programs from the terminal and have it allow for other inputs, by appending an ampersand (&) to the command as such:  nm-applet &   But this isn't much use as any processes started in the terminal are killed once the terminal is closed.


I am trying to wrap a call to a template member function of a template class with a free function, and I do not understand why the snippet of code below compiles with MSVC but is rejected by gcc and clang.  template <int N> struct S {     template <int I>     void f(); };  template <int N, int I> void call(S<N>& s) {     s.f<I>();               // g++-9.1 and clang++-8.0 complain here }  template void call<4, 1>(S<4>&); // The exact numbers are unimportant   This code fails to compile with g++, with the error message error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<'. Clang similarly refuses to compile this, complaining error: missing 'template' keyword prior to dependent template name 'f'.  MSVC happily compiles the full example with no errors or warnings.  Is this code valid C++ or are gcc and clang correct to reject it?

In templates, where and why do I have to put typename and template on dependent names? What exactly are dependent names anyway?    I have the following code:  template <typename T, typename Tail> // Tail will be a UnionNode too. struct UnionNode : public Tail {     // ...     template<typename U> struct inUnion {         // Q: where to add typename/template here?         typedef Tail::inUnion<U> dummy;      };     template< > struct inUnion<T> {     }; }; template <typename T> // For the last node Tn. struct UnionNode<T, void> {     // ...     template<typename U> struct inUnion {         char fail[ -2 + (sizeof(U)%2) ]; // Cannot be instantiated for any U     };     template< > struct inUnion<T> {     }; };   The problem I have is in the typedef Tail::inUnion<U> dummy line. I'm fairly certain that inUnion is a dependent name, and VC++ is quite right in choking on it. I also know that I should be able to add template somewhere to tell the compiler that inUnion is a template-id. But where exactly? And should it then assume that inUnion is a class template, i.e. inUnion<U> names a type and not a function?


Using Drupal 8, I'm trying to modify the page at "/admin/structure/types" .This page is not a form (instead it is an entity list), so it cannot be modified with hook_form_alter.  _entity_list: The value is entity_type. Provides a list of entities using the EntityListController of the respective entity. E.g. _entity_list: view_mode returns the render array of a list of view modes.  Which hook can I use to modify an entity list ?  I have tried    mymodule_structure_types_prepare_form  mymodule_structure_prepare_form   and none of those is triggered.

There's an entity created by another module and I'd like to change some of the fields used on a listing page. Currently that page is using the entity's list builder class. Is there a way I can define a new list builder class, make my changes, and use that for this entity? I have tracked this down to where D8 get's entity definition and loads the list builder class from that. I can't find a way to alter the definitions or another way to inject a different class here.  In more specific terms, I have  and want to override the functionality around EckEntityListBuilder.


I am trying to predict the amount a customer will pay. Removed zeros and standardized key columns. Data looks like this  The distribution of a dependent variable is very skewed.  I tried to apply three methods:  log square root Box-Cox  None of them satisfies me. Log transformation skewness is -0.9497961701603782  Square root transformation skewness is 3.933253401700889  Box Cox transformation skewness is 0.13615956299065202  Log transformation gave me the best RMSE so far.  0.95 for train and test RSME and CV (decision tree) 0.75 for train and test RMSE (random forest)  What else can I try here? My only guess - start to add variables, which I dropped before, some of them were highly correlated. Thanks, appreciate any tips.

I'm doing regression using Random Forests for predicting prices based on several attributes. Code is written in Python using Scikit-learn.  How do you decide whether you should transform your variables using exp/log before using it to fit the regression model? Is it necessary when using an Ensemble approach such as Random Forest?


In the attached picture, that the model is in the center of the point. I want to change from pivot point to point, where I want to picture it. In Maya 2017 Student version works like this, when it is possible to change with the D keypad.  Blender is so possible?  Thank you in advance for your help!

I want to make the origin in edit mode at a vertex, but it keeps setting it to the last clicked-on face :( So now in edit mode the pivot is on the last clicked-on face ;(


Please see the code below. ... #include <stdio.h> int main(void) {     int a[]={1,2,3,4,5,6};       printf("%d %d\n",a[1],1[a]);     return 0; }  ... Output of the above printf() statement is : 2 2 Can someone give an explanation regarding why a[1] is equivalent to 1[a]?

As Joel points out in , in  (aka: K & R), there is mention of this property of arrays in C: a[5] == 5[a]  Joel says that it's because of pointer arithmetic but I still don't understand. Why does a[5] == 5[a]?


i am trying to compare results from last month to this month ... but when i try and query with month(Date) or extract(month) it isn't pulling any of the data. here is my query  $get_last_month = "SELECT *,                          sum(va_clicks) AS last_clicks,                          sum(va_imps) AS last_imps,                          sum(va_cost) AS last_cost,                          sum(va_convs) AS last_conversions,                         avg(va_posit) AS last_position,                         extract(MONTH FROM va_date) AS last_month                     FROM va_HomeLoans                     WHERE va_list_id='$get_last_camp_name'                     AND last_month = 11"; $run_last_month = mysqli_query($con,$get_last_month); $row_last_month = mysqli_fetch_array($run_last_month);   it keeps giving me the warning of parameter 1 to be mysqli_result. obviously meaning that it is an empty query. i know that i'm doing something wrong with the query. if i take out the 'AND' statement the query runs perfectly ... so there is something wrong with that statement, but i can't figure out what.   any help would be awesome, thanks in advance!   thought i figured it out ... but still having issues even with using HAVING rather than WHERE

I wounder how I could use an alias in a where statement.  Example :  SELECT SUBSTRING(Column1, 1, 4) + SUBSTRING(Column1, 4, 3)  AS Col1 FROM MyTable WHERE Col1 = 'MySearch'   I use MSSQL 2005


In the 2016 film Ghostbusters Dan Aykroyd states:      I ain't afraid of no ghost!   To which a lady who looks like Jennifer Anniston replies:     That's a double negative! That means you ARE afraid of ghosts!   Is this interpretation technically correct? I would've thought that a literal interpretation would've implied that he does not fear the absence of ghosts (or the absence of a ghost, or the ghost), rather than that he fears ghosts.   Which is correct?

In contemporary American English usage, I come across sentences like:   I ain’t got no money.  Ain’t no man like him.    Saying ain’t no sounds incorrect to me because it is a double negative.  What is the origin of this particular construction? I wasn’t able to find anything online related to the origins of this incorrect usage.


The speed of light theory predicts that as things travel faster their mass increases, so I think we if we look at a plane accelerating from mach one to mach two and measure the relativistic mass of the plane, we'll see  an increase in relativistic mass regardless of how small. Is this true?

I learned recently that when an object moves with a velocity comparable to the velocity of light the (relativistic) mass changes. How does this alteration take place?


I'm sure this is a very simple question, but I have been confused about this topic for a while now. According to Ohm's law, resistance varies directly with voltage. This means that if resistance increases voltage increases... But obviously that's not how it really works. If I add in a resistor to a circuit, the voltage decreases. I've heard that its because a resistor reduces current which in effect reduces voltage, however I don't understand how this lines up mathematically with what I said earlier.

OK, very basic question here.  I read lots of books, searched quite a bit, and every description I read seemed to talk about the flow of electrons and right away go too deep in theory for me to grasp the basic principle of their use.  I understand a resistor limits the "flow", so that an LED doesn't blow up for example. But I fail to understand exactly what a resistor does to current and voltage...  Do resistors affect both current and voltage? In what manner?


If a sequence $\{x_n\}_{n=1}^{\infty}$ of real numbers satisfies $$lim_{n\rightarrow\infty} n\Arrowvert x_n-x_{n+1}\Arrowvert=0$$,can we prove that it is a convergent sequence?  I have tried to prove it is a Cauchy sequence but it seems hard to deal with the part of $\frac{1}{n}$.

I have tried to link with the series {$\sum \frac{1}{n}$} but it does not work.


I was thinking using the fact that $[0,1]$ is equinumerous with $\mathbb{R}$, but i cant think of a bijection from there to $2^\mathbb{N}$.

What is the simplest way of proving (to a non-mathematician) that the power set of the set of natural numbers has the same cardinality as the set of the real numbers, i.e. how to construct a bijection from $\mathcal{P}(\mathbb{N})$ to $\mathbb{R}$?


I was conducting an experiment involving the effect of large angular displacements (10°, 20°, ... 90°) on the amplitude of a simple pendulum. So far, I have found that the period of the pendulum varies according this equation:  \begin{align}T&=  2π\sqrt{\frac {l}{g}} \left(1 + \frac{1}{16} θ^2 + \frac{11}{3072} θ^4  + \frac{173}{737280} θ^6  + \frac{22931}{1321205760} θ^8\right. \\ &\left.\qquad\qquad+   \frac{1319183}{951268147200} θ^{10} + \frac{233526463}{2009078326886400} θ^{12} + …\right) \end{align}  Essentially, period increases with increasing angular displacement. However, I don't really understand why the period varies in this way. Could someone explain this to me without the use of math (no small angle approximations/Taylor series)?   For example, in this way: Although the pendulum accelerates for a longer period of time and has a greater maximum velocity, the additional distance it has to travel is greater than what its larger acceleration and maximum speed can make up for (this is just my guess).

Suppose you have a physical . It is true that as amplitude increases, the period increases. Can we demonstrate this fact without explicitly finding the period (which is pretty involved and pretty messy) in:    an intuitive fashion,  rigorously?


I have installed ubuntu gnome next to windows 10 on an acer a7 with UEFI.  I'm trying to install a nvidia driver and for that I need to disable secure boot. When I turn off secure boot, I reach a terminal instead of the ubuntu login screen. Why is that?

I want to reinstall GRUB 2 and I found these instructions: . In my case, the boot loader is installed in the EFI partition. If I use the commands provided in this guide, will GRUB be reinstalled to the EFI partition automatically, or will it be installed into the root partition where Ubuntu is installed ? Obviously, I do not want this to happen.


I noticed yesterday, that my kernel wasn't up-to-date, even though I installed updates.  I checked the installed packages and all newer linux-header* packages were installed up to the current 4.2 kernel in Ubuntu 15.10.  I checked my /boot folder and there were no newer kernel images. After seeing that, I removed all but the current kernel which, interestingly, didn't clean up my /boot folder [old kernel images were still there, I deleted them by hand now], then installed the newest kernel, but again with no success.  I also tried to just run apt-get install --reinstall on the kernel packages, but no dice either.  I checked all logs (dmesg, dpkg, syslog) I could think of but couldn't find any errors or warnings.  So with no further information about what is happening, I hope that someone here can help me figure out what's going on with my system.  History of this system:  Original 14.04, was upgraded to 14.10, then to 15.04, then to 15.10. Kernel updates, apparently, stopped working while Ubuntu 15.04 was installed.  Partitions:   /boot is a seperate partition. GRUB is installed here (already re-installed it with no change). (SSD) /home is a seperate partition. (SSD) / is a sperate partition (SSD) /var and /tmp are seperate partitions on my second harddrive   SSD is /dev/sdb, harddrive is /dev/sda.

I just upgraded from Ubuntu 15.04 64-bit to Ubuntu 15.10 64-bit. I read that 15.10 was using the 4.1 or 4.2 kernel, but I noticed that my kernel didn't upgrade.  When I type in the terminal uname -r, I get 3.19.0-18-generic  Same thing in GRUB: the only kernel I can choose is 3.19.0-18  Can someone explain how to upgrade the kernel?


Let $R$ is  an integral domain .  Show that If $R[X]$ is Euclidean domain then $R$ is a field .  I'll be waiting for your help. Thank you very much in advance!

I've just read a proof of the statement:  Let $R$ be a commutative ring. If $R[X]$ is a principal ideal domain, then $R$ is a field.  In one part of the proof there is a step which I don't understand. I'll copy the proof: Let $u\in R$ be non-zero. Then using the principal ideal property, for some $f\in R[X]$ we have $\langle u,X\rangle = \langle f \rangle \subseteq R[X]$. Therefore, for some $p,q∈R[X], u=fp$ and $X=fq$. By properties of degree we conclude that $f=a$ and $q=b+cX$ for some $a,b,c\in R$. Substituting into the equation $X=fq$ we obtain $X=ab+acX$ which implies that $ac=1$, i.e. $a\in R^\times$, the group of units of $R$. Therefore, $\langle f\rangle =\langle 1\rangle=R[X]$. Therefore, there exist $r,s\in R[X]$ such that $ru+sX=1$ and if $d$ is the constant term of $r$, then we have $ud=1$. Therefore $u\in R^\times$. Our choice of $u$ was arbitrary, so this shows that $R^{\times}⊇R \setminus \{0\}$, which says precisely that $R$ is a field. I don't understand this: "$X=ab+acX$ which implies that $ac=1$, i.e. $a\in R^\times$, the group of units of $R$. Therefore, $\langle f\rangle = \langle 1\rangle =R[X]$." Why does the fact that $a=f$ is a unit implies that $\langle f\rangle = \langle 1\rangle$? I would appreciate if someone could explain this to me. Thanks in advance.


I am thinking about commuting to school on my bike and wanted some advice on it. I do live in a very bike friendly neighborhood, but the thought of turning left on a 40mph road (no stop lights nearby and people speed) does scare me a bit.  What are your recommendations for turning left? Thank you in advance!

(United States road configuration and customs here. Sorry, those of you who drive on the left!)  On my trip home, I use a bike lane near the right side of a very busy one-way arterial street; there is a bus/right-turn lane between the bike lane and the curb. I need to turn left, crossing three lanes of traffic, at a T-intersection (no street to the right). My options are:   Turn left directly from the bike lane. Keeping a weather eye on traffic, move into the left-hand lane and turn from there. Veer right onto the sidewalk (avoiding buses, obviously); wait for the pedestrian light to cross.   Which of these is the canonically correct way to manage, assuming heavy car traffic?


I created a transparent glass object and I am able to see every mesh with the exception of leaves. The tree in the picture includes hair particles on a vertex group with a png image of a branch. You can see in the image how the trunk appears but not the leaves.

I was just testing Eevee and found that you cannot view a glass object through another glass. Is there any workaround? It works fine only If I rotate the glass window or put my camera to the back side of the scene


In button save my application is getting crashed. Please help me out with this issue.    @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_login_info);      ref = FirebaseDatabase.getInstance().getReference().child("Member");      btnSave.setOnClickListener(new View.OnClickListener() {              @Override             public void onClick(View view) {                 member.setUserName(name1.getText().toString().trim());                 member.setFirstName(name2.getText().toString().trim());                 member.setLastName(name3.getText().toString().trim());                 member.setEmail(name4.getText().toString().trim());                 ref.push().setValue("member");                 Toast.makeText(LoginInfo.this,"data Inserted Sucessfully",Toast.LENGTH_LONG).show();             }         });   Log Error      E/AndroidRuntime: FATAL EXCEPTION: main       Process: com.example.firebasesign, PID: 20460       java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.firebasesign/com.example.firebasesign.LoginInfo}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setOnClickListener(android.view.View$OnClickListener)' on a null object reference           at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2659)           at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2724)           at android.app.ActivityThread.-wrap12(ActivityThread.java)           at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1473)           at android.os.Handler.dispatchMessage(Handler.java:102)           at android.os.Looper.loop(Looper.java:154)           at android.app.ActivityThread.main(ActivityThread.java:6123)           at java.lang.reflect.Method.invoke(Native Method)           at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)        Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setOnClickListener(android.view.View$OnClickListener)' on a null object reference           at com.example.firebasesign.LoginInfo.onCreate(LoginInfo.java:34)           at android.app.Activity.performCreate(Activity.java:6672)           at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1140)           at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2612)           at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2724)            at android.app.ActivityThread.-wrap12(ActivityThread.java)            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1473)            at android.os.Handler.dispatchMessage(Handler.java:102)            at android.os.Looper.loop(Looper.java:154)            at android.app.ActivityThread.main(ActivityThread.java:6123)            at java.lang.reflect.Method.invoke(Native Method)            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)

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


I'm trying to remember the name of the book or series involving time travel through dreams. It would have been published pre-2004-2010 and was a young-adult book. I can't recall it having won any awards at the time of reading.  The plot involves a boy either in middle or high school who is part of a secret society who protect/travel through time to maintain it without messing it up or stop people from changing it. The story starts with him being told that although he has accomplished enough to earn some very high rank and "wings" he needs to to one more thing before he receives them. He needs to train some girl to be an new member. I seem to recall her at some point being in the same class and some scene with a pen (I think). They time travel by sleeping and their minds are transported and they either take the appearances of others or inhabit their bodies for a time. At some point the two travel to England and they almost get caught so they go into a room and pretend to be making out to have an excuse for why they are in the room. I recall that during this scene the boy's father wakes him up causing him to leave his partner as he was worried he wasn't waking up.   Things happen and it turns out the father used to be a part of this secret society until something went wrong with his partner, who is now the villain. I think there was something about going back in time during a plague and either the dad or his partner gives a vaccine for it to a women. I can't exactly recall what happens just mention that being the only survivor would drive her crazy or make her seem a witch to others. I don't remember where in the book, but the boy tells the girl that they must be careful in their interactions in the past so they don't mess with it and gives an example of some inventor and his invention never being invented due to time meddling.   Things happen and in the end the boys father decides to join his son to fight the big bad they succeed (either completely or to a degree) and the boy gets his wings. Actual wings as I recall.  I can't recall if this was a standalone book or the first in a series. I hope someone can help me remember the name of the book.

This has been driving me crazy. I know I read this book/books (possibly a trilogy) around the same time as reading Sabriel etc and the Windsinger trilogy. I don't remember a lot but I think it was about an immortal man (Sure that his name started with A) who had bright blue or purple hair (I remember a line about how hair constantly changes colour but only a few people live long enough to see it go past grey). I think he recruits young people and sends them places to do missions (can't remember if its time travel or different universes etc) It ends with one of the girls falling in love with the immortal man and deciding to stay with him. I know that this isn't a lot to go on but if anybody knows what this is, I will be very thankful. Oh and I think one of the books was called Key to the Door or something similar?


How do I install the latest version of Apache openoffice on Ubuntu 13.10(kubuntu to be more precise) without uninstalling LibreOffice.  Yes I know LO is better for some reasons(I did my homework) but I want to install AOO for testing purposes.  Preferably with a regularly updated ppa.

I want to install OpenOffice. What can I do to install it on my computer?


As the question title says, I am wondering if there is any way for an user to review the history of flags he raised on one of the chat sites. The main sites provide a flag-summary page, but I couldn't find a way to access the same information for the chat sites.  Are those simply not available? I have found an  asking for a "chat flag history" feature to be made available to mods, but it doesn't really cover the case of an user simply wanting to review the flags it raised.  Before someone ask, I wanted to review the flag history to avoid raising the same flag on questionable content that I already flagged in the past.

I checked my  to see whether I can find something similar to the main-site flag-history for chat-flags, but didn't find anything. I recently had the (dis)pleasure of regularly having to deal with a user, that has been deleted multiple times. Whenever they show up (with the same nick-name) again I have to flag them again. I'd like to get an overview of how often I had to do that, and whether my flags were helpful for the moderators. As such I propose the implementation of a flag-history as it is already in place for the main-site for chat-flags, that request moderator intervention. To be completely clear I am not talking about the 10k user flags, which are acted on in a matter of sometimes seconds with instantly visible results, but about moderator attention flags from this menu:


After installing android studio and running all the commands in terminal and saving the text editor ".desktop'' file..terminal is showing the following error:  ~/Downloads$ cd ~/Downloads ~/Downloads$ sudo -i [sudo] password for arpit ~# mv android-studio /opt mv: cannot stat 'android-studio': No such file or directory ~# gedit android-studio.desktop desktop-file-install android-studio.desktop  ~# desktop-file-install android-studio.desktop Error on file "android-studio.desktop": Key file does not start with a group  ~# desktop-file-install android-studio.desktop Error on file "android-studio.desktop": Key file does not start with a group ~# ^C ~#

Please tell me the full process of installing Android Studio and its necessary dependencies.


Consider the following code:  // Only prefix operators struct prefix {     prefix& operator--() { return *this; }     prefix& operator++() { return *this; } };  // Try to represent prefix & postfix operators via inheritance struct any : prefix {     any operator--(int) { return any(); }     any operator++(int) { return any(); } };  int main() {      any a;      a--;     a++;     --a; // no match for ‘operator--’ (operand type is ‘any’)     ++a; // no match for ‘operator++’ (operand type is ‘any’)      return 0; }   I tried to create a hierarchy of classes. The base class, only to realize the prefix increment/decrement operators. And to add a postfix versions in derived class.   However, compiler can not find the prefix operation for the derived class object.   Why is this happening, why prefix operators are not inherited?

I have a function with the same name, but with different signature in a base and derived classes. When I am trying to use the base class's function in another class that inherits from the derived, I receive an error. See the following code:  class A {     public:     void foo(string s){}; };  class B : public A {     public:     int foo(int i){}; };  class C : public B {     public:     void bar()     {         string s;         foo(s);     } };   I receive the following error from the gcc compiler:  In member function `void C::bar()': no matching function for call to `C::foo(std::string&)' candidates are: int B::foo(int)   If I remove int foo(int i){}; from class B, or if I rename it from foo1, everything works fine.   What's the problem with this?


I read following thread unsafe example in page 871 of C# 7.0 in a Nutshell: The Definitive Reference.      public class ThreadUnsafe {     static int val1=1, val2=1;      public static void Go()     {         if (val2 != 0) Console.WriteLine(val1 / val2);         val2 = 0;     } } class Program {     static void Main(string[] args)     {         for (int i = 0; i < 10; i++)         {             ThreadPool.QueueUserWorkItem(x => ThreadUnsafe.Go());         }          ThreadUnsafe.Go();         Console.WriteLine("Press any key for continuing...");         Console.ReadKey();     } }   I have written a test program and launch 2 or more threads but cannot get the exception of division by zero.  I have also run this test program on my PC that have 4 core CPU and on 1 CPU VM, I also cannot get this exception of division by zero.  Could you help me that how can I run this sample code in thread unsafe and get the exception  of division by zero?

When writing multithreaded applications, one of the most common problems experienced is race conditions.    My questions to the community are:  What is the race condition? How do you detect them? How do you handle them? Finally, how do you prevent them from occurring?


How to derive the mean and variance by using the given conditional pdf?  please help me ~

The theorem 1 is the result in Emil Bjornson's paper (PILOT-BASED BAYESIAN CHANNEL NORM ESTIMATION IN RAYLEIGH FADING MULTI-ANTENNA SYSTEMS).  I want to know the proof omitted. Please, help me.


I have this simple treeset.   TreeSet<Fruit> treeSet = new TreeSet();     try {         treeSet.add(pear);         treeSet.add(apple);         treeSet.add(orange);         System.out.println(treeSet);     } catch (Exception e) {         System.out.println(e.getMessage());     }   when this compiles it prints it all out on the same line. How can i make it so it prints each object out on a different line?

I wish to print a Stack<Integer> object as nicely as the Eclipse debugger does (i.e. [1,2,3...]) but printing it with out = "output:" + stack doesn't return this nice result.  Just to clarify, I'm talking about Java's built-in collection so I can't override its toString().  How can I get a nice printable version of the stack?


How can I show that a bijective continuous function $f:\mathbb R\to \mathbb R$ is monotone ?  My attempts  Let $a<b$. Since $f$ is injective, $f(a)\neq f(b)$. Therefore $f(a)<f(b)$ or $f(a)>f(b)$. Suppose with out loss of generality that $f(a)<f(b)$ and let $x,y\in[a,b]$ such that $x<y$. By injectivity, $f(x)\notin \{f(a),f(b)\}$. Suppose that $f(x)\notin ]f(a),f(b)[$.   If $f(x)<f(a)$, by the intermediate value theorem (IVT), there is a $c\in[x,b]$ such that $f(x)=f(c)$ what contradict injectivity.  If $f(x)>f(b)$, by IVT we have a $d\in[a,x]$ such that $f(d)=f(b)$ what also contradict injectivity.   Then $f(x)\in [f(a),f(b)]$. We can show as well that $f(y)\in [f(a),f(b)]$ and that $f(x)<f(y)$. Therefore we have that $f(x)<f(y)$ if $x<y$.   The problem is that I'm not sure that my proof is finish. I just proved that for all $a,b\in\mathbb R$, s.t. $a<b$ the function $f$ is monotone on $[a,b]$. But may be it's enough to say that it's monotone on all $\mathbb R$. What do you think ?

Show that if $f: \mathbb{R} \to \mathbb{R}$ is a continuous injective map, then it is strictly monotonic.    Could someone give me a proof for this? I have the intuition for why it's true - I'm just having trouble expressing that intuition in a rigorous manner. Basically consider two points $x_1, x_2 \in \mathbb{R}$. By the problem statement, $f$ is continuous on $[x_1, \, x_2]$. WLOG, assume that $f$ is strictly increasing. It there exists a point where it is not increasing, then $f$ hits a value twice, and it's not injective.


I'm working with VAE and I got that problem of balacing KL-Divergence and Reconstruction loss, and I'm wondering why use a Gaussian distribution to model the latent space. Is it because we assume that out input follows a Gasussian distribution? My point is that I only get a decent Reconstruciton Loss if I set betha around 0.0001, so I understand that my latent space doesn't look like a Gaussian anymore. And if I set betha to 1, I undestand that my latent space is similar to a Gaussian but the Reconstruction Loss is too high, so I assume that my data cannot be packed into a Gaussian. So... why do we use always a Gaussian? How should I know which distribution is better? Does it depends on the distribution of the input data? Thank you so much!

I still don't understand why we force the distribution of the hidden representation of a Variational Autoencoder (VAE) to follow a multivariate normal distribution. Why this specific distribution and not another one ?   This is maybe linked with another question : Why is the weights distribution in a neural network following a Gaussian Distribution ? Is it just the application of the Central Limit theorem that tells you that many independent inputs will generate many independent errors, and the observed weights are the results of these multiple back-propagated signals... ?


I have the below video shader which is composed of an image texture node to which I uploaded this video. It is 300 frames long and I would like to repeat it for 1000 frames.  How can I do it?

I would like to create an animation where the source image changes at certain points. Cycles' Image Sequence setting on the Image Texture node looks hopeful. However, I can't seem to figure out what kind of input it wants.    Is this one of those images that are literally just a sequence of different images loaded on one? Thanks for any help!


When I recently read about the power rule for infinite sums, I thought that the sum $$\sum_{n=1}^{\infty} \frac{1}{n^{1+\frac{1}{n}}}$$ would converge, as it is akin to a $p$-series, but with an (admittedly nonconstant) $p=1+\frac{1}{n} \ge 1$, and so is strictly less than the harmonic series. However, when I ask WolframAlpha for an evaluation, it claims that the sum diverges by the comparison test. I could accept this, but for the fact that I am not aware of a particular sum strictly lesser than my above sum that diverges. What might be a sum that fulfills that criterion?

How to test whether $\sum_{n=1}^{\infty }\frac{1}{n^{1+\frac{1}{n}}}$ diverges or converges? Can I apply ratio test? Thanks in advance.


I write the command lspci: 00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1566 00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Mullins [Radeon APU A4-6000 with R2 Graphics] (rev 05) 00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device 9840 00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 156b 00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1 00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1 00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1 00:02.5 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1 00:08.0 Encryption controller: Advanced Micro Devices, Inc. [AMD] Device 1537 00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 11) 00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] 00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39) 00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39) 00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 42) 00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 02) 00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11) 00:14.7 SD Host controller: Advanced Micro Devices, Inc. [AMD] FCH SD Flash Controller (rev 01) 00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1580 00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1581 00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1582 00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1583 00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1584 00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1585 02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01) 03:00.0 Network controller: Broadcom Corporation BCM43142 802.11b/g/n (rev 01) 04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 07)

I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible.   What are the steps to install Broadcom wireless drivers for a BCM43xx card?  I'm a user with no advance knowledge in Linux, so I would need clear explanations on how to make, compile, etc.    lspci -vnn | grep Network showed:   Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b]      iwconfig showed:  lo        no wireless extensions. eth0      no wireless extensions.   NOTE: Answer below is updated every time new information is added and confirmed working.


A girl is driving a Mercedes. Or maybe she is just sitting on a driver's seat. She owns this car, or maybe the car is her mother's and she is just flossing.   If I refer to her as "a girl in a Mercedes", then there will be no meaning of driving and/or possession. Maybe she is just sitting on the passenger's seat.   If I refer to her as "a girl with a Mercedes", then there will be no meaning of being inside of the car. Maybe she is just staying near the car.   When referring to this girl, in Russian we usually say "девушка на Мерседесе" (girl on a Mercedes). Saying that we don't mean "a girl on top of a Mercedes". We mean "a girl who is driving a Mercedes", or "a girl who is sitting on a driver's seat or looking out the driver's window". It also has some connotations of possession and demonstration (of the car).  But what's with American English? What preposition would be more appropriate for this exact situation? Is there any equivalent for the Russian "девушка на Мерседесе"?  I need to refer to her in a sentence like:     There were a lot of racers. A girl (in/on/at) a Mercedes SLK250. A guy (in/on/at) a Honda S2000...   Which preposition do American English speakers use — in, at, on?  In Russian, I can also say "девушка в Мерседесе" (girl in a Mercedes). All these Russian sentences are correct and all these sentences mean that the girl is inside the Mercedes. I wonder if it's the same in American English.

Possible Duplicate:          I'm an EFL (English as a foreign language) teacher and I haven't been able to come up with a good principle for which preposition to use after get when referring to transportation.  Some examples:   Get in:   a car/taxi/van/truck, etc.  Get on:   a bus/plane/bike/truck, etc.    How can one choose whether to use in or on? Note that in some cases, such as the example with truck, either preposition is possible but the choice affects the meaning.  I've been telling my students that there is no rule, so they just have to memorize which preposition to use, but I'm really hoping I'm wrong.  This question would be better suited for the upcoming  Stack Exchange, but it hasn't entered beta yet. More .


I'been having a bad time trying to shoot photos with manual focus.  When I'm trying to shoot a picture, using the viewfinder it's really hard to see how sharp is the picture you see through the viewfinder. So, most of the time I go to live mode, zoom in, adjust the focus to what I want, then go to viewfinder, adjust everything and shoot.  Doing that, takes me like 30 extra seconds. Any advice to do all of this faster?. I know there are two options, one is the rangefinder, other is change the "ok button" setting to zoom in on live view.  I can't use the rangefinder on manual mode (it's a Shame, I would love to have the exposure meter and the rangefinder at the same time)  And it appears that the nikon d3300 doesn't have the control functions menu to change the behavior of the "ok button" during live mode.  So, How can I get sharper photos using manual focus without taking so long to focus using the live mode?

My favorite portrait lens is the Nikon 50mm 1.4G.  I love the light and what it is capable of.  My problem with it is that on my D90 the AF is sometimes horribly slow, and in many cases (mainly low light) I can't auto focus at all.  I use AF lock as much as possible, but for many shots I really wish I could just use manual focus.  The problem is that I'm usually wrong about whether my subject is in focus or at least completely in focus.  So my question is...  Are there any recommendations you can make for training my eye to be sure my manual focus is accurate?  Any diopter adjustments or calibrating tools?  Any eye exercises to train myself to recognize a true focus?  I know that I would probably have better AF performance on a more expensive body, but for now I think it's good practice to train myself in manual focus anyway.  Thanks for any assistance.


SOLVED! (see below) I'm trying to create a longtable that uses a generated input file. This is my main file: \documentclass[a4paper]{article}  \usepackage[left=1cm, right=1cm, top=2cm, bottom=2cm]{geometry} \usepackage{ifthen} \usepackage[pdftex]{graphicx} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{longtable}  \pagestyle{empty}  \begin{document}     \begin{longtable}{|l|l|l|}         \hline         Name & First Name & ID \\         \hline\hline                  \input{generated.tex}          \hline     \end{longtable} \end{document}  This is the content of generated.tex: Ebug & Dieter & 515177 \\\hline Mority & Joe & 515192 \\\hline Underland & Barbara & 515211 \\\hline Ebug & Denis & 515230 \\\hline Mustermann & Michelle & 515240 \\\hline Onemore & Karsten & 515253 \\\hline Astone & Leonie & 515271 \\\hline   However, when using \input{generated.tex}, I get the following errors during compilation: ! Misplaced \noalign. \hline ->\noalign                    {\ifnum 0=`}\fi \penalty \@M \futurelet \@let@token \LT@@h... l.25        \hline                  ? H I expect to see \noalign only after the \cr of an alignment. Proceed, and I'll ignore this case.  ?  ! Misplaced \omit. \multispan ->\omit                     \@multispan  l.26    \end           {longtable} ? H I expect to see \omit only after tab marks or the \cr of an alignment. Proceed, and I'll ignore this case.  Note that I'm using to output of the interactive mode here to get more info on the errors. These errors disappear if I remove the last \hline. Apart from those errors, I also get a weird extra row at the end of my table. This also doesn't disappear when removing the last \hline. All the errors and weird last row disappear when I simply add the contents of the generated.tex into the main file. This confuses me because \input is supposed to be the equivalent of simply adding the content of the specified file in its place. Does anyone have any experiences with this? From the error messages it looks like the problem is a carriage return at the end of the generated.tex file. SOLUTION: As Phelype Oleinik mentioned in the comments, this has to do with a change made to \input in fall of 2020. More info can be found . The solution is to define a custom command \expandableinput before the beginning of the document: \ExplSyntaxOn % providing \expandableinput \cs_new:Npn \expandableinput #1 { \use:c { @@input } { \file_full_name:n {#1} } } \ExplSyntaxOff  Then this new command can be used instead of \input.

With the 2020 fall update, the behaviour of \input{} changed. Before, I would have a main latex document (main.tex) and then the table contents in another file (table.tex) . Importantly, the file table.tex could be anywhere on my PC, because I could add directories that the \input command went through. So my set-up looked like this: The main.tex document: \documentclass[11pt, a4paper]{article}    \makeatletter \providecommand*{\input@path}{} \g@addto@macro\input@path{{"C:/Users/me/inpath/"}}% \input finds files in this directory \makeatother  \begin{document}  \begin{tabular}{lll} \hline \input{table.tex} \hline \end{tabular}  \end{document}  Then the file table.tex that would be placed in the directory "C:/Users/me/inpath/": 1 & 2 \\ 3 & 4 \\  Unfortunately, this set-up no longer works. My question is: What is the best way to replicate this behaviour? For now, my solution would be to change the main.tex to: \documentclass[11pt, a4paper]{article}        \newcommand{\inpath}{"C:/Users/me/inpath/"}  \makeatletter\let\expandableinput\@@input\makeatother    \begin{document}  \begin{tabular}{lll} \hline \expandableinput{\inpath table.tex} \hline \end{tabular}    %%% Or alternatively \begin{tabular}{lll} \hline \input \inpath table.tex \hline \end{tabular}  \end{document}  Is there a more elegant way to achieve this? A solution similar to how things worked before the latex fall update? In which I can tell the TeX primitive \@@input where to look for files? What I have found so far is the information  and .


I've read that cmath calculates pow(a,b) by performing exp(b*log(a)). This should not be used when b is an integer, since it slows down calculations a lot. What alternatives are there when   calculating a lot of successive pow()s with the same constant a it is known beforehand that b will definitely be an integer?   I am looking for fast alternatives which are efficient in these particular scenarios.

What is the most efficient way given to raise an integer to the power of another integer in C?  // 2^3 pow(2,3) == 8  // 5^5 pow(5,5) == 3125


I am sick and tired of getting photos that turn out just slightly blurry. I can't seem to figure out why this is or how to fix it. I like to shoot at events, indoors and outdoors, action shots and candid portraits. Mostly "in the moment" stuff.  My biggest guess at the problem would be because I use the 50mm f/1.8 STM. I love the low aperture bokeh, but I'm afraid that my photos might just be a touch out of focus. With such a shallow dof, it gets blurry with even a small focus error. When shooting in the moment, it's can be a hit or miss.   Another guess might be the glass. The lens is nothing special so I wouldn't expect an incredible image, but a sharp image should be possible with most lenses.  I don't think it is motion blur cause I shoot about 1/250 or faster. Back to my hunch about the AF, I sometimes shoot with auto focus point, instead of center focus point. I just talked to another photographer who told me that's a sin. I can switch to center focus point, but that would require all my photos have the subject in the center of the viewfinder. I'd bet there's a way around this but I am not currently aware of it. And would that even fix my problem?   I'd attach two photos as an example, but I think SE compresses the photos so it defeats the purpose, so I'll add link to the original. At a glance, they look fine, but a closer look shows that the subject is not as sharp as possible. I'd love to hear any advice you have.

I use a Canon EOS Rebel T3i (600D) with the kit lens. I have experimented a lot with different settings and modes, but I feel like I have wasted many good shots that could have looked amazing, if only they were a little bit sharper.  I use auto-focus on most of my pictures and make sure to choose the right focus point, but all of my photos are still a little bit out of focus. When I zoom in, I can see that the pixels are not very crisp or well-aligned.  I am not sure if this issue is caused by my equipment or skills.