I have no texture image but colors and shading in materials. I want to export it in fbx so those materials(no image texture) with my shaders will be applied in the result. I'm absolutely new to shading and baking stuff so I would like you to explain it to me if you could. There's also a little bit of glitter on the material made by Voronoi texture just for the record.  here's the .blend file of model

I used node textures in a mesh I exported to .FBX.  I then imported it into Unreal Engine 4 and it didn't import any textures; I clicked the Upload Textures option in Unreal Engine.  Is there something I'm doing wrong or is it Blender?


I'm making chicken chili. Or trying to... This morning I turned on my crockpot to high for about 40 minutes. I then drove to work and replugged it, about an hour after unplugging it. After cooking it for 5 more hours, should it be safe?

If I left food out of the refrigerator for some period of time, is it still safe? If I left it out too long, can I salvage it by cooking it more?


I am using a 2012 miniMAC; Catalina OS 10.15.7; Blender 2.90. In Blender I have called up archipack, tried rendering the thumbs, which I though was working; Pointed the file directory where the archipack marlib blend should be and still get the following error messages when I select door or window.  Ironically, the wall loads just fine. Here is the error message: Traceback (most recent call last):   File "/Applications/Blender.app/Contents/Resources/2.90/scripts/addons/archipack/archipack_preset.py", line 475, in invoke     self.menu = PresetMenu(context, self.preset_subdir)   File "/Applications/Blender.app/Contents/Resources/2.90/scripts/addons/archipack/archipack_preset.py", line 222, in __init__     self.make_menuitem(filepath)   File "/Applications/Blender.app/Contents/Resources/2.90/scripts/addons/archipack/archipack_preset.py", line 299, in make_menuitem     image.colorspace_settings.name = 'Raw' TypeError: bpy_struct: item.attr = val: enum "Raw" not found in ('AppleP3 Filmic Log Encoding', 'AppleP3 sRGB OETF', 'BT.1886 EOTF', 'BT.1886 Filmic Log Encoding', 'Filmic Log Encoding', 'Linear', 'Non-Colour Data', 'sRGB OETF')  location: <unknown location>:-1 ```

Whenever I try to add a window using archipack, I get an error. Before, it was a black screen but I did the render thumbs thing and now it is this.


How to delete files that says "source path too long" I could not able to delete a folder completely from my computer because one of the files in the folder is giving out error "Source Path too long for delete".  Operating system : Windows 7

Windows seems to have a length limit on file names when trying to delete, though it won't prevent those files from being created.  Our build process creates a number of temporary files (many build off of a WSDL) that run afoul of this limit.  Our ant script is somehow able to delete them when doing a clean, but sometimes I need to delete the workarea directory (where all the temp files go) without actually doing a full clean from ant.  This is the same errors , but the answers there don't really work for me as I'm dealing with a directory, not a file, and I don't always know what specific files or subdirectories are causing the problem.  And I'm trying to avoid any manual process (other than triggering a single command) to actually delete them.  If I try deleting the directory from Explorer I get the error   Cannot delete [file name]: The file name you specified is not valid or too long.   Specify a different file name   Trying Remove-Item in powershell gives the following error:  Remove-Item : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. At line:1 char:12 + Remove-Item  <<<< -force -Recurse <directory>   Does anyone know of any tools or easy ways to get around this delete error without having to manually find the problem files and move/rename them?


Did all three stories in The Fountain (2006) happen?  The "present" story, with the doctor and his dying wife presumably happened, that's not in question.  But what about the "past" timeline, with the conquistador and the search for the Fountain of Youth?  Is that just a visualization of Izzie's story that she was writing?  And what about the "future" timeline, with the astronaut who is presumably the doctor? Is this really happening?  There are links between the three.  When the conquistador finds the Ziggurat with the Tree of a Life, we see the astronaut from the future, who helps him pass to the garden.  At the end of the present timeline, a tree is planted that seems to be the tree in the space bubble, and the doctor's discovery of a cure for all disease seems to be what is keeping the astronaut alive.    Are they all happening?

Darren Aronofsky's '' was advertised as a time travel love story. Was it, or was it something else? Were we to take the time shifts literally, or figuratively?


Consider a star, for simplicity a non rotating one. The corresponding spacetime will be similar to a Schwartzschild one (if the star is static and spherically symmetric).  Outside the star we will have exactly the Schwartzschild fall-off, while inside the star we will not have a horizon or a singularity, since the matter content of a sphere contained in the star is proportional to the sphere volume itself.  If this star collapses into a black hole, for the same reason I would not expect the black hole to necessarily contain a naked singularity.  I would say that the distribution of matter related to the black hole is all inside the Schwartzschild radius, but couldn't it be that once you enter it the matter spatial distribution prevent the singularity at the center?  The argument seems very similar to the one used in the stellar case.  I think that any motivation on the line of: "inside the horizon of a Schwartzschild metric all the geodesics will crush into the singularity" should be reviewed because you could have a non point-like matter distribution inside and a non Schwartzschild metric, like in the stellar case.  I think that maybe, if you have even the thinnest shell of empty space right inside the horizon photons there will start falling and therefore anything else at smaller radii will be falling, hence bringing to a pointlike singularity.  But even if that was correct, I still think we could have cases where there is no empty space inside the horizon.  So, I would very much appreciate any insight on how are we sure that star collapse in General Relativity brings to a singularity. If it is true, how can it be fully proved? And in particular, where the reasoning in the case of a BH with no empty space would fail?

If a large star goes supernova, but not enough mass collapses to form a black hole, it often forms a neutron star. My understanding is that this is the densest object that can exist because of the Pauli exclusion principle: It's made entirely of degenerate matter, each particle of which cannot occupy the same quantum state of any other.  So these objects are so massive that they gravitationally lens light. If you make them more massive, they bend the light more. Keep going and going until they bend the light so much that light passing near the surface can barely escape. It's still a neutron star. Add a bit more mass, just enough that light passing just over the surface cannot escape. Now it's a black hole with an event horizon (I think?). Does this mean the neutron star has become a singularity? Isn't it still just a neutron star just beneath the event horizon?  Why are black holes treated as having a singularity instead of just an incredibly massive neutron star at its center? Does something happen when an event horizon is "created?"


While I am slowly learning how to build an android game, I would like to build images for a game, especially texture atlas.   But the only image handling system I am familiar with is Photoshop. And I am not sure it is a good tool to organize images and to get coordinates for game dev.   Is there any good tool for this purpose? If photoshop is still good for this, any reference to show how to do it would be appreciated.  UPDATE: the second question was  But still want to hear more options.  UPDATE2: In case you are using libgdx, I found .

Is there an industry standard file format for texture atlases?  What are the apps that take a directory of images and turns it into a texture atlas png and a text file describing what's on it?  This is primarily for use in OpenGL iPhone/Objective-C, but it seems like there ought to be a standard across many platforms.  I can create these by hand or by writing a script to simply tile them, but it seems like there would be some tools already made for this.


Is it possible to install and run Ubuntu on a laptop with touch screen features?

Can Ubuntu 16.04 work with touch screen computers?  The question '' only had one answer that was related to Ubuntu touch, and didn't say anything about the standard Ubuntu (I couldn't leave a comment cos I only have 18 reputations).  Is Ubuntu compatible and usable with touch screens and 2-in-1 computers?


Let's say an email is sent from party A to B.  Let's refer to the set of headers that B views as Headers 1.  Party B then replies to or forwards the email to party C.  Let's refer to the set of headers that C views as Headers 2.  Does any information from Headers 1 persist separate from or as a part of Headers 2?

I am wondering if when an email is forward does it lose its original headers?


I have a following javascript in my asp.net mvc code  var filter = /^([a-zA-Z0-9_.-])+@@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;                         if (!filter.test(email.value)) {                             document.getElementById("usererror").textContent = 'Please Enter Valid Email';                             email.focus();                             return false;                         }   Validation is working fine other then it doesn't check dot requirement after @ symbol. Please help me in correcting the regular expression.  Answer: Now using following pattern in my mvc form  var filter = /^([a-zA-Z0-9_.-])+@@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;

I am tired of always trying to guess, if I should escape special characters like '()[]{}|' etc. when using many implementations of regexps.  It is different with, for example, Python, sed, grep, awk, Perl, rename, Apache, find and so on. Is there any rule set which tells when I should, and when I should not, escape special characters? Does it depend on the regexp type, like PCRE, POSIX or extended regexps?


Here is the theorem that way it was given to me...     Show that the highest power of a prime $p$ dividing the binomial coefficient   ${n\choose m}$ equals the number of carries when $m$ is added to $n-m$, [EDIT] *in base $p$.   How do you go about proving this? I looked around and it seems the proof requires Legendre's formula but I'm not familiar with it. I'm not good with binomial coefficients and identities to begin with and I was given an example of this using binary code but I don't have any experience with that so I'm still lost.   If this is a duplicate question than I apologize in advance.

How to prove the theorem stated .     Theorem. (Kummer, 1854) Let $p$ be a prime. The highest power of $p$ that divides the binomial coefficient $\binom{m+n}{n}$ is equal to the number of "carries" when adding $m$ and $n$ in base $p$.   So far, I know if $m+n$ can be expanded in base power as  $$m+n= a_0 + a_1 p + \dots +a_k p^k$$ and $m$ have to coefficients $\{ b_0 , b_1 , \dots b_i\}$ and $n$ can be expanded with coefficients $\{c_0, c_1 ,\dots , c_j\}$ in base $p$ then the highest power of prime that divides $\binom{m+n}{n}$ can be expressed as  $$e = \frac{(b_0  + b_1 + \dots b_i )+ (c_0  + c_1 + \dots c_j )-(a_0  + a_1 + \dots a_k )}{p-1}$$ It follows from  page number $4$. But how does it relate to the number of carries? I am not being able to connect. Perhaps I am not understanding something very fundamental about addition.


I can't get security (the command line interface for the keychain) to retrieve passwords with security 2>&1 >/dev/null find-generic-password -ga <name> over SSH. It only seems to work in physical console sessions - is this actually intended behaviour?   For example, in a normal console session the above command retrieves the password without any problems. SSH to localhost and run it again though and it returns an empty string.  I need the ability to login over SSH and run a script that draws a password down from the keychain for authentication; am I right in thinking Apple have shipped a command line client that breaks in SSH sessions or have I missed something?

I am storing various passwords (e.g. for remote email servers) in my keychain. From the command line, when logged in locally, I can retrieve these via:  security unlock-keychain ~/Library/Keychains/login.keychain <enter password> security find-internet-password -s smtp.gmail.com -a foo@gmail.com <dumps keychain attributes, not including password> security find-internet-password -s smtp.gmail.com -a foo@gmail.com -g <dumps keychain attributes, including password>   However, the results cannot be achieved when run remotely (ssh'ing in to the box from somewhere else):  security unlock-keychain ~/Library/Keychains/login.keychain <enter password> security find-internet-password -s smtp.gmail.com -a foo@gmail.com <dumps keychain attributes, not including password> security find-internet-password -s smtp.gmail.com -a foo@gmail.com -g <nothing printed, to stdout or stderr>   Moreover, the return value of the final command (using -g) is 36.  I've dumped the output of set from a local login and compared it to a remote one, and the missing environment variables are:  Apple_PubSub_Socket_Render GPG_AGENT_INFO SECURITYSESSIONID TERM_PROGRAM TERM_PROGRAM_VERSION TERM_SESSION_ID XPC_FLAGS XPC_SERVICE_NAME   What am I missing?  I do have SSH_AUTH_SOCK set to a valid value (returned from ssh-agent).


What should be the passive voice of  below given sentence?     My father promised me a gift.   I am confused  between these two options .   A gift was promised to me by my father.  Or  I was promised a gift by my father.  To me both sentences convey the same meaning but if it is asked in exam and I have to choose between them then which one should I choose and why it is better than the other ?

What is the passive voice of the following sentence?     My friend gave me this book.   Is it:     I was given this book by my friend.   or     This book was given to me by my friend.


my problem should be fairly simple but I am a LaTeX Noob... :) Using WinEdt 10 under Windows 7, compiling with PDFTeXify (standard).  If I use basic symbol commands like \pi or \leftrightarrow, no matter whether in floating text or math environment, the file does not compile any more. Otherwise, it does.  Error-Message I get:  ! Missing $ inserted.  inserted text (in <> brackets)  $ 1.87 ...r = i - \pi  ?  ! Emergency stop.   What is going on here? I am puzzled... :)

Hello I've been having a "Missing $ inserted" on my latex document and i'm not sure what to do. I've tried asking previously but wasn't able to fix it.  I'm not sure at all what I'm doing wrong but i get an error Missing $ inserted. $ on the 2nd line with c)\  The text works fine separately but when put with the rest of the document i keep on getting errors.  The rest of the text works fine and there are no $ signs that are not already paired in previous parts  \noindent c)\\ coordinates = (99,85),(190,220),(286,383)\\ \begin{align} error&= \left | y-(a+bx) \right |\\ E&= \left | y-(475.5+1.253x) \right |\\ (99,85): E&=\left | 85-(475.5-1.253(99) \right |\\ &=\left | 85-(351.5) \right |\\ &=266.5\\ (190,220): E&=\left | 220-(475.5-1.253(190) \right |\\ &=\left | 220-(237.5) \right |\\ &=17.5\\ (286,383): E&=\left | 383-(475.5-1.253(286) \right |\\ &=\left | 386-(117.2) \right |\\ &=265.8\\ \end{align} $\therefore$ \text{Next location is "The Reservoir" at (190,220)} \end{document}   This is link to writeLatex online document   Is anyone able to help with this? Error is at end.


Use the definition of the derivative to find $f'(x)$ for $f(x)=\sqrt{x-2}$. The answer that I got was $$\frac{1}{2(x-2)^.5}$$. Is this correct? The second part asks use your answer from part 1 to find the equation of the line tangent to $f(x)=\sqrt{x-2}$ at the point $(6,2)$. How do I do this?

Use the definition of the derivative to find $f'(x)$ for $f(x)=\sqrt{x-2}$. I don't even know where to start with this. I have done $\sqrt{x-2}= (x-2)^.5$.  Is this correct?


I'm writing a linguistics paper and I need to use the example environment a lot. I have noticed in some papers that examples are presented in parallel, that is with 2 different examples starting on the same line, with glosses under, but I have no idea of how to achieve that myself. I enclose a snip from a paper to illustrate what I mean and what I would like to achieve.   I use the cgloss4e and gb4e packages for example, and the documentation that I've found does not provide any information on this.   A MWE would be:   \documentclass[12]{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{cgloss4e} \usepackage{gb4e}  \begin{document}  Some text.   \begin{exe}   \ex \gll Ein hund \\ a dog \\ \ex \gll Un chien \\ a dog \\  \end{exe}   \end{document}   The two examples follow each other, although I would want them to be on the same line.   I've found no questions on this issue on this forum. Any thoughts?

For reasons of space I am trying to put pairs of correct and pairs of wrong examples next to each other in multicols environment. However, no matter what I do, they never align correctly. I tried \bigskip to fill the missing gloss line and even \hspace to create an empty line. I'll be very grateful for any suggestions where the problem lies and for any solutions. This is my first post, so I hope to get the MWE right.  \documentclass[11pt,a4paper]{article} \usepackage{gb4e} \usepackage{multicol} \begin{document} \begin{exe} \begin{multicols}{2} \ex \begin{xlist} \ex \gll Dies ist korrekt\\ this is correct\\ \glt \lq This is correct' \ex \gll \'{E}sto est\'{a} correcto\\ this is correct\\ \glt \lq This is correct' \ex \gll Hii ni sahihi\\ this is correct\\ \glt \lq This is correct' \end{xlist} \columnbreak \ex \begin{xlist} \ex[*]{\gll Dies falsch ist\\ this wrong is\\ \glt \hspace{1cm}} \ex[*]{\gll \'{E}sto mal est\'{a}\\ this bad is\\ \glt \hspace{1cm}} \ex[*]{ \gll Hii sahihi si\\ this correct not.is\\ \glt \hspace{1cm}} \end{xlist} \end{multicols} \end{exe} \end{document}


I am a Spanish linguist working on writing my dissertation using RMarkdown. My document was compiling fine into a pdf until I tried to add examples and glosses using the gb4e package. I am working on a Mac running Big Sur 11.1, pdfTeX 3.14159265-2.6-1.40.21 (TeX Live 2020), R 4.0.3, and RStudio Version 1.3.1073. I started with a small rdm document until I had it working fine. I ran into the problem  when I moved the chunk into the actual manuscript that I get the error "TeX capacity exceeded, sorry [parameter stack size=10000]". Here's the toy document that does compile fine: --- title: "testing_latex" author: "Erwin Lares" date: "1/5/2021" output: pdf_document header-includes: - \usepackage{gb4e} ---  See (\ref{stm-n-lit}) shows the literal sentence. (\ref{stm-n-idm}) shows the idiomatic sentence. (\ref{stm-plain}) shows an unambiguous sentence that can only be interpreted compositionally.  \begin{exe} % sets up the top-level example environment \ex  \begin{xlist} % first embedding (alphabetical numbering) \ex\label{stm-n-lit}     \gll Mary kicked the bucket, she stubbed her toes. \\     Mary kick-PAST the bucket, 3S bruised-PAST 3S-POSS toe-PL \\     \trans ‘Mary made contact with the bucket with her toes forcefully ’ \ex\label{stm-n-idm}     \gll Mary kicked the bucket, she's dead. \\     Mary kick-PAST the bucket, 3S COP-PRE dead-adj \\     \trans ‘Mary is dead.’ \end{xlist} % end first embedding \ex\label{stm-plain}      \gll This example does not contain sub examples.\\      DEMO-SING example DO-helping NEG contain sub examples\\     \trans ‘This is a plain example’ \end{exe}  The problem comes up when I include this piece of code in my manuscript. When I try to knit my document, something breaks and produces the error in question. Here's a copy of the manuscript. I realize that the output in the YAML is different, but I need a pdf_document2 for the bookdown package. Any suggestions would be most appreciated. --- title: "Experimental Design" author: "Erwin Lares" date: "12/23/2020" output:   bookdown::pdf_document2: default   bookdown::html_document2: default header-includes: - \usepackage{graphicx} - \usepackage{float} - \usepackage{longtable} - \usepackage{gb4e} ---  <!-- code_folding: hide -->   {r loading-library, include=FALSE, echo=FALSE} #install.packages("networkD3")  #library(networkD3) library(tidyverse) library(DataEditR) #library(gt) library(kableExtra) library(tinytex) library(rmarkdown) library(bookdown) library(knitr) library(skimr) library(RColorBrewer) library(broom)  \begin{exe} % sets up the top-level example environment \ex  \begin{xlist} % first embedding (alphabetical numbering) \ex\label{stm-n-lit}     \gll Mary kicked the bucket, she stubbed her toes. \\     Mary kick-PAST the bucket, 3S bruised-PAST 3S-POSS toe-PL \\     \trans ‘Mary made contact with the bucket with her toes forcefully ’ \ex\label{stm-n-idm}     \gll Mary kicked the bucket, she's dead. \\     Mary kick-PAST the bucket, 3S COP-PRE dead-adj \\     \trans ‘Mary is dead.’ \end{xlist} % end first embedding \ex\label{stm-plain}      \gll This example does not contain sub examples.\\      DEMO-SING example DO-helping NEG contain sub examples\\     \trans ‘This is a plain example’ \end{exe}

I was using this:    To try and create numbered examples in my document.  However, when I load it and put the example exe in that link in one of the separate Tex files (Introduction.tex) I include in main.tex, I get:  ./Chapters/Introduction.tex:14: TeX capacity exceeded, sorry [parameter stack s ize=10000]. \gb@ifnextchar #1#2#3->                        \let \reserved@d =#1\def \reserved@a {#2}\def \reserv... l.14 ... and political news \cite{washington_post}                                                   .  More importantly, when ...   Which is not even referring to the exe example I inserted but a couple of blocks of tex above it.  For info, here is my full code before my document begins:  \documentclass{report} % [fontsize=11pt,border=5pt] % standalone for the tree \usepackage{forest} % This overrides warnings like http://tex.stackexchange.com/questions/52576/difference-between-bookmark-levels-greater-than-one-what-does-this-mean \usepackage{bookmark} \usepackage{amsmath} \usepackage{subcaption} \usepackage{standalone} \usepackage[round]{natbib} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[utf8]{inputenc} % This is for hyperlinks \usepackage{hyperref} \hypersetup{     colorlinks=true,     linkcolor=blue,     filecolor=magenta,           urlcolor=cyan, }  \urlstyle{same} % Not sure why I need to use this % \usepackage{graphicx} % \graphicspath{ {images/} } % \usepackage[pdftex]{graphicx} % fontsize=11pt,twoside]{scrartcl} % This is for numbered examples \usepackage{gb4e}   Would appreciate some help as I feel like my Latex is very messy here.


So I have this code:  \begin{center} \footnotesize \begin{tabular}{| c | c  c  c |}       \hline       \multirow{3}{*}{Equipment acquired at start of year} & \multicolumn{3}{c|}{Replacement cost (\$) for given years}\\       \cline{2-4}       & 1 & 2 & 3\\       \hline       1 & 4000 & \multicolumn{1}{|c|}{5400} & 9800\\       2 & 4300 & \multicolumn{1}{|c|}{6200} & 8700\\       3 & 4800 & \multicolumn{1}{|c|}{7100} & -\\       4 & 4900 & \multicolumn{1}{|c|}{-} & -\\       \hline \end{tabular} \end{center}   Which produces this table:    What I want is that the column 3 is evenly width like column under 1 and 2. Also I want "Equipment acquired at start of year" to be centered between the two multirows.  Any ideas?

So I have this code:  \begin{center} \footnotesize \begin{tabular}{| c | c  c  c |}       \hline       \multirow{3}{*}{Equipment acquired at start of year} & \multicolumn{3}{c|}{Replacement cost (\$) for given years}\\       \cline{2-4}       & 1 & 2 & 3\\       \hline       1 & 4000 & \multicolumn{1}{|c|}{5400} & 9800\\       2 & 4300 & \multicolumn{1}{|c|}{6200} & 8700\\       3 & 4800 & \multicolumn{1}{|c|}{7100} & -\\       4 & 4900 & \multicolumn{1}{|c|}{-} & -\\       \hline \end{tabular} \end{center}     What I want is that the column 3 is evenly width like column under 1 and 2. Also I want "Equipment acquired at start of year" to be centered between the two multirows.  Any ideas? xD


I have this service enabled by systemctl:  [Unit]      Description=The Oracle Database Service      After=syslog.target network.target      Wants=network.target      [Service]     LimitMEMLOCK=infinity     LimitNOFILE=65535      Type=simple      KillMode=none      SendSIGKILL=no      TimeoutSec=5min  RemainAfterExit=yes      TimeoutStopSec=5min      User=oracle      Group=oinstall      ExecStart=/home/oracle/acciones/doc/startup.sh     ExecStop=/home/oracle/acciones/doc/shutdown.sh  [Install]      WantedBy=multi-user.target graphical.target   The service is working, but after reboot or shutdown the log message indicates that shutdown script was not finished correctly. I am using RHEL7.

What do I need to put in the [install] section, so that systemd runs /home/me/so.pl right before shutdown and also before /proc/self/net/dev gets destroyed?  [Unit] Description=Log Traffic  [Service] ExecStart=/home/me/so.pl  [Install] ?


If $\langle x_n\rangle $ is a sequence of positive real numbers such that $$x_{(n+2)}=\frac{(x_{n+1}+ x_{n})}{2}$$ for all $n \in \mathbb{N},\ $ let $x_1 <x_2$  then subsequence of odd terms is increasing and subsequence of even terms is  decreasing .But how to prove it mathematically? We have   $$x_{(n+2)}-x_n=\frac{(x_{n+1}- x_{n})}{2}= \frac{(x_{n}- x_{n-2})}{4}$$ How to proceed from here? Any hint please.

If $x_1$, $x_2$ are arbitary real numbers, $\alpha\in (0,1]$ and  $x_n=\alpha x_{n-1}+(1-\alpha)x_{n-2}$ for every positive integer $n$ (>2), show that the sequence $\{x_n\}$ is convergent. (Given $x_1<x_2$)  I cannot rearrange to test convergency. Please help me by solving the problem.   Edit  I want to prove by using the property below:     If $\{x_{2n}\}$ and $\{x_{2n-1}\}$ converges to same limit $l$ then $\{x_{n}\}$ converges to $l$.


I need some persistent storage across spot terminations.  My approach to solve the problem is    Write a startup script that attaches and mounts the persistent volume  Snapshot this state and register a private AMI Launch Spot instances based of the private AMI   searches in this forum [] suggests this is the correct procedure  My startup script:  #!/bin/sh  echo "executing startup script"  # attach the EBS volume to this machine aws ec2 attach-volume --volume-id vol-7bef1d96  --instance-id  $(wget -q -O - http://169.254.169.254/latest/meta-data/instance-id ) --device /dev/xvdg  sleep  10  # mount the attached EBS volume echo "mounting the  attached volume" sudo mount /dev/xvdg1 /home/ubuntu/persistent/  #run script echo "starting the  dummy program in background" python2 persistent/dummyProgram.py &   The script works perfectly if executed manually. However when it is executed by cron the  only the echo statement are executed  the crontab task is  @reboot /path/to/startupScript.sh   How do I solve this problem?  The corrected  crontab entry reads :  USER=username PATH=content of $PATH @reboot /path/to/startupScript.sh

This is a  about using cron & crontab.   You have been directed here because the community is fairly sure that the answer to your question can be found below. If your question is not answered below then the answers will help you gather information that will help the community help you. This information should be edited into your original question.  The answer for 'Why is my crontab not working, and how can I troubleshoot it?' can be seen below.  This addresses the cron system with the crontab highlighted.


I'm trying to open web browser when someone clicks on textview but as soon as i run the app i get the Null pointer exception error   java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setMovementMethod(android.text.method.MovementMethod)' on a null object reference  In the xml file                    <TextView             android:id="@+id/btnadfree"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_alignParentLeft="true"             android:layout_below="@+id/txtfeedback1"             android:layout_margin="0dp"             android:background="@drawable/shopping"             android:gravity="center"             android:padding="10dp"             android:textColor="@android:color/white"             android:autoLink="web"             android:typeface="sans"/>   in the java file  txtadfree = (TextView) findViewById(R.id.btnadfree);       txtadfree.setMovementMethod(LinkMovementMethod.getInstance());     txtadfree.setOnClickListener(new View.OnClickListener() {          public void onClick(View v) {             Intent browserIntent = new Intent(Intent.ACTION_VIEW);             browserIntent.setData(Uri.parse("http://www.google.com"));             startActivity(browserIntent);         }     });

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?


On Blender I like to model helicopters, guns, cars, tanks. The modelling isn't the problem. The problem is getting reference images of the small details, Most of the things I need I can just search on google and find a picture of it. The problem comes when for example I was modelling a AH-6 Little bird and finding what the avionics and general interior is a nightmare, any suggestions of efficient ways of getting reference images?  Thanks for any help :D

I'm a newbie.  I've gone through a number of tutorials and want to get some actual experience with modeling. But, I don't know where to go to get good reference images for modeling with front/sides views.  Can anyone recommend the best places to find such images?


I recently encountered a symbol $\wp$, and its meaning confuses me. For example, while $\forall$, $\angle$ have a definite meaning in mathematics, so what does the symbol $\wp$ mean?

What is the name of the character whose code is $\wp$ ?  Thanks


I think that's a python beginner question.  my goal is to pass a variable (idx) to a function that is given as argument.  I tried to wrap the function call, to pass the variable as argument, but for some reason the result is not as I expected.  Here is the code:  for idx, path in enumerate(paths):   def _mf(t):     return make_frame(t, idx)    clip2 = VideoClip(_mf, False, 10)   This loop will iterate for 2 items. And the two clip will call the make_frame function respectively. But the the second argument (idx) will always be "1" for both clips. I don't understand this.  Can anybody help me? Thanks

What exactly are the Python scoping rules?  If I have some code:  code1 class Foo:    code2    def spam.....       code3       for code4..:        code5        x()   Where is x found?  Some possible choices include the list below:   In the enclosing source file In the class namespace In the function definition In the for loop index variable Inside the for loop   Also there is the context during execution, when the function spam is passed somewhere else. And maybe  pass a bit differently?  There must be a simple reference or algorithm somewhere.  It's a confusing world for intermediate Python programmers.


Solve the following limit:   $$ \lim\limits_{n\to\infty}\prod\limits_{1\leq k\leq n}\left( 1+\frac{k}{n} \right)^{\frac{1}{k}} .$$   Here is what I do:  Take the logarithm: \begin{align} \lim\limits_{n\to\infty}\log \prod\limits_{1\leq k\leq n}\left( 1+\frac{k}{n} \right)^{\frac{1}{k}}&=\lim\limits_{n\to\infty}\sum_{k=1}^{n}\frac{\log (1+\frac{k}{n})}{\frac{k}{n}}\frac{1}{n}\\ &=\int_{0}^{1}\frac{\log (1+x)}{x}dx \end{align}  Then I am stuck. How to integrate $ \int_{0}^{1}\frac{\log (1+x)}{x}dx $?  The question is from: (8) of   Edit: Different approaches are very welcome! The hint says 'estimate from above and below'. Maybe someone can provide a solution without integration?

Compute the limit:  $$\lim_{n\to\infty} \left(1+\frac{1}{n}\right)\left(1+\frac{2}{n}\right)^{\frac{1}{2}}\cdots\left(1+\frac{n}{n}\right)^{\frac{1}{n}}$$


We assume that gravitational potential energy at a height $h$ from the Earth's surface is $mgh$. Is that accurate or only approximately correct ?    Here is my approach.   On the surface of the Earth,  $U_s = -\dfrac{GMm}{R}\tag*{}$ ($R$ is the radius of the Earth)  At a height from the Earth's surface, $U_h=-\dfrac{GMm}{R+h}\tag*{}$  When we take the difference, we can find that  $U_h-U_s =-\dfrac{GMm}{R} \left(\dfrac{h}{R+h}\right)\tag*{}$ (If I haven't made any miscalculations)  What can I say from this?

We know that if an object has been lifted a distance $h$ from the ground then it has a potential energy change:  $$\Delta U = mgh $$  so $h$ is proportional to $\Delta U$.  However, we have also the gravitational potential energy law:  $$ U= -\frac{G M m}{r} $$  where the distance is inversely proportional to the potential energy.  What did I miss? Is the distance of the object proportional or inversely proportional to the potential energy?


My website keywords are not indexing. I have changed all pages meta and updated new content but still my keywords are not showing in Google serp. What should i do please tell me some suggestion. I am doing all the off page activities of the website last 2 months.

What are the best ways to improve a site's position in the Google search results?


I would like to know if there is any way to put all the buttons (max, min and close) to the left since in retouches only puts it in some applications and with the latest version of gnome does not let me. Use ubuntu 19.10 Thank you.

Is there a way to the switch gnome-shell window buttons to the left? I've gotten so used to them being on the left that them being on the right has thrown me way off.  (gnome shell has them defaulted to the right corner)


When I am viewing pages, I sometimes see an ad that I don't have time to investigate at the moment, and I don't always bookmark them.  I believe the system needs to have some way or search where I can see the currently running advertisements.  Ideally this would also be the official list of all the community ads.  As a regular users of serverfault I see the ads running in the sidebar.  In a several cases I have  investigate the product, and a couple cases actually purchased something because of the advertisement.  Recently I had remember seeing one interested and I wanted to find it again, so I went to the main page, and just kept re-refreshing the page a lot.  This creates needless traffic, may mess up your stats, and is not very easy to find a particular ad.

nhj asked the other day,  In , I wrote:     We were thinking of putting together a "sponsor gallery" of sorts that listed out all of the sponsors with a brief description. Kinda in the vein of what we have on the every-now-and-then  at TDWTF.   So, consider this the discussion for that topic.   What would you like to see in a sponsor gallery? Should it be one big, long list? How does the order get determined? Should we organize the sponsors based on tags (and if so, what about sponsors who target like java and .net)? What about former sponsors... do they get removed from the list, or go on like the "past sponsors" section/page?  Keep in mind that this is not something we intend to charge extra for... this is more a service to the you, the members, than anything else. I've gotten postive feedback from the TDWTF "gallery", as a lot of readers come through RSS, have adblock running, etc.


Is it OK to take a two-month-old baby out in fresh air and cool weather (14 C, 57 F) if properly warmed by adequate clothing? How long can the baby be outside?

I understand that newborn's immune system is still weak and crowds/strangers are to be avoided. Knowing this, how soon can I take my newborn outside, for example to take ~1 hours walk in a non-crowded park? Any particular things to pay attention to when doing this?


So i was wandering is there a way to transform object 2 into object 1, without going into edit mode and deleting all extra vertice from object 2 i tried the un-subdivide option but it did something else :/ help please.

I am wondering if there is a modifier or tool that will essentially undo a subsurf or subdivide command.


For simplicity let us consider one-dimensional quantum-mechanical systems only. Given any state $\rho\in\mathcal{B}(\mathcal{H})$ and its Wigner function $W_\rho(x,p)$, there are several properties it always satisfies,   it is real-valued and bounded in absolute value by $2/\hbar$ from above, its marginals are well-behaved probability distributions, its overlap $\int W_\rho(x,p) W_\sigma(x,p) \mathrm{d}x\mathrm{d}p$ with the Wigner function of any other state $\sigma$ is nonnegative.   Given an arbitrary function $W(x,p)$, we can reconstruct a state $\rho$ it corresponds to iff all of these conditions are met using the Weyl transform. If some properties are not satisfied, the resulting operator will be unphysical—non-Hermitian, unnormalized or non-positive. The question is how to check the conditions prior to the calculation.  The first two are usually fairly easy to check but the latter involves going through all states of the system. Even if we restrict ourselves to pure states, this still iterates over all rays in an infinite-dimensional linear vector space and is as such usually done finding a proof tailored to the specific case. Is there a simpler (algorithmic) condition which can replace the third bullet above and implies its validity?

For any quantum state defined with a continuous position, the  is a quasiprobability distribution on phase space. It has many properties, such as that its marginal are probability distributions, although the function itself can be negative.  Usually, people refer to the Wigner function (or any of several related function such as the Q-function, the Husimi-function, etc.) in the way that they have a quantum state and ask about the properties of its Wigner functions. Or, given Wigner functions with certain properties, what are the corresponding properties of their quantum states.  Q: I'm interested in the other direction. Given an arbitrary function from phase-space, what are necessary and sufficient conditions for this function to be the Wigner function of a quantum state?  Certainly, all mathematical properties listed in the Wikipedia article linked to above are necessary, although some are probably redundant. But are they sufficient? This paper  also gives certain properties, but I could not find an answer to my question, neither there, nor anywhere else.


So the problem is this:  My laptop has a dualboot setup. It has windows-10 and Ubuntu-16.04 LTS on it. When I boot into windows and connect to the WIFI at my home, and then go to "FAST.com", I get the speed of about 30Mbps.  Now, when I boot into Ubuntu, connect to the same access point and then again test the speed at the same website, I always get approximately half of what I was getting on windows, i.e., ~15Mbps.  Can you suggest the probable cause of this issue?  EDIT: here is the output of of the requested command:  $ lspci -knn | grep Net -A2 07:00.0 Network controller [0280]: Intel Corporation Wireless 3160 [8086:08b3] (rev 83) Subsystem: Intel Corporation Dual Band Wireless AC 3160 [8086:8470] Kernel driver in use: iwlwifi

I have looked through all the previous questions but turning power management off for the Wi-Fi card didn't work. This problem seems to be with the Lenovo Thinkpads. I switched to Ubuntu 11.10 from Windows 7 3 days ago so I'm new to the operating system.


I have several repositories listed in my source list and some ppa added as sources  Can I know from which one specific package has been installed?  It is still possible if after installation repository was removed from source list?

Is there a method or command which can tell from which repository a package is coming from?


I am having trouble wrapping a tikzpicture, which is a matrix of nodes, within a subfigure. I would like this tikzpicture to be captioned and labelled. However I am getting the following error:  Undefined control sequence. <argument> \pgf@matrix@last@nextcell@options   l.23 }  ?    Here is the code that reproduces the issue.  \documentclass[12pt]{book} \usepackage{subfigure} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{figure}[ht] \centering \subfigure[Laplacian $9 \times 9$ filter]{ \begin{tikzpicture}[cell/.style={rectangle,draw=black}] \matrix[matrix of nodes]{ 0& 0& 1& 1& 2& 1& 1& 0& 0\\ 0& 1& 3& 5& 5& 5& 3& 1& 0\\ 1& 3& 5& 3& 0& 3& 5& 3& 1 \\ 1& 5& 3& -12& -23& -12& 3& 5& 1 \\ 2& 5& 0& -23& -41& -23& 0& 5& 2 \\ 1& 5& 3& -12& -23& -12& 3& 5& 1 \\ 1& 3& 5& 3& 0& 3& 5& 3& 1\\ 0& 1& 3& 5& 5& 5& 3& 1& 0 \\ 0& 0& 1& 1& 2& 1& 1& 0& 0 \\ };  \end{tikzpicture} \label{fig:log-filter-discret} } \hspace{.2in} \subfigure[LoG representation]{ \includegraphics[width=.45\linewidth]{log-img.png} \label{fig:log-filter} } \caption{discretized LoG and its representation} \end{figure} \end{document}

For  I wanted to define a shortcut for creating a matrix inside a tikzpicture. As a minimal example, consider  \newcommand\mymatrix[1]{     \begin{tikzpicture}         \matrix[matrix of math nodes] {#1};     \end{tikzpicture}% }   which would then be used as  \mymatrix{     a & b \\     e & f \\ }   But LaTeX complains about Package pgfbasematrix Error: Single ampersand used with wrong catcode at the line with the closing brace of \amatrix{}. Why does it do that and how can I avoid it?


I've been trying to get an animation sequence working for a game for Wpf. Being new at WPF, I didn't find a XAML answer that worked. I managed to piece together some C# code, and it worked but then I found I could not change the Image Source afterwards. I did many searches on the internet, tried things like changing the caching, but nothing had any effect.  In the code below, statement marked "This assignment ignored" is just that. No exception or other error, just stepping through it shows the assignment was not honored. I did find an answer while searching on a related topic (which I'll give in an answer post), but I wanted to post this in hopes of saving other developers a lot of frustration with this issue and how to make a WPF image animation of an explosion. The actual images don't matter, use whatever ones you want.  The XAML  <StackPanel Background="#333333">     <Button x:Name="boomButton" HorizontalAlignment="Center"                      FontSize="24" VerticalAlignment="Bottom" Click="boomButton_Click" >BOOM</Button>     <Button x:Name="resetButton" HorizontalAlignment="Center"                      FontSize="24" VerticalAlignment="Bottom" Click="resetButton_Click" >Reset</Button>      <Image x:Name="bmb" Source="Images\bomberbase.png" Stretch="None" /> </StackPanel>   C# Backend Code  public partial class MainWindow : Window {     public static BitmapImage mBoom1Img, mBoom2Img, mBoom3Img;     public static BitmapImage mBomberImg, mBlankImg;     public static BitmapImage mUnknownEnhancementImg, mAirfieldCraterImg;      public MainWindow()     {         InitializeComponent();          mBoom1Img = BitmapImageFromSource("Images/boom1.png");         mBoom2Img = BitmapImageFromSource("Images/boom2.png");         mBoom3Img = BitmapImageFromSource("Images/boom3.png");         mBomberImg = BitmapImageFromSource("Images/bomberbase.png");         mBlankImg = BitmapImageFromSource("Images/blank.png");         mUnknownEnhancementImg = BitmapImageFromSource("Images/unknownEnhancement.png");         mAirfieldCraterImg = BitmapImageFromSource("Images/airfieldCrater.png");     }      public static BitmapImage BitmapImageFromSource(string aRelPath)     {         BitmapImage bi3 = new BitmapImage();          bi3.BeginInit();         bi3.UriSource = new Uri(aRelPath, UriKind.Relative);         bi3.EndInit();         return bi3;     }       private void resetButton_Click(object sender, RoutedEventArgs e)     {         bmb.Source = mUnknownEnhancementImg;   // This assignment ignored     }      private void boomButton_Click(object sender, RoutedEventArgs e)     {         ObjectAnimationUsingKeyFrames animation = new ObjectAnimationUsingKeyFrames();         animation.BeginTime = TimeSpan.FromSeconds(0);         animation.Duration = new TimeSpan(0, 0, 0, 3, 0);          DiscreteObjectKeyFrame fbmb = new DiscreteObjectKeyFrame(mBomberImg, TimeSpan.FromMilliseconds(0));         animation.KeyFrames.Add(fbmb);          DiscreteObjectKeyFrame f1 = new DiscreteObjectKeyFrame(mBoom1Img, TimeSpan.FromMilliseconds(200));         animation.KeyFrames.Add(f1);         DiscreteObjectKeyFrame f2 = new DiscreteObjectKeyFrame(mBoom2Img, TimeSpan.FromMilliseconds(400));         animation.KeyFrames.Add(f2);         DiscreteObjectKeyFrame f3 = new DiscreteObjectKeyFrame(mBoom3Img, TimeSpan.FromMilliseconds(600));         animation.KeyFrames.Add(f3);         DiscreteObjectKeyFrame f4 = new DiscreteObjectKeyFrame(mBlankImg, TimeSpan.FromMilliseconds(1000));         animation.KeyFrames.Add(f4);          animation.Completed += new EventHandler(animation_Complete);         bmb.BeginAnimation(Image.SourceProperty, animation);     }      private void animation_Complete(object sender, EventArgs e)     {         // This unlocks the animation's hold on the property!         //bmb.BeginAnimation(Image.SourceProperty, null);          bmb.Source = mAirfieldCraterImg;   //  This assignment ignored     } }

I have something like this:   barProgress.BeginAnimation(RangeBase.ValueProperty, new DoubleAnimation(     barProgress.Value, dNextProgressValue,     new Duration(TimeSpan.FromSeconds(dDuration)));   Now, how would you stop that animation (the DoubleAnimation)? The reason I want to do this, is because I would like to start new animations (this seems to work, but it's hard to tell) and eventually stop the last animation...


I am new to web dev, I was building a test site and I wanted a h1 tag with the background color only covering the text content of the tag and not extend to the whole width of the tag.  Visually, the h1 tag text should be center aligned with the browser's width and the background color should only encompass the text.  I have tried using the width attribute of the tag but it actually nullifies the alignment of the text to the browser's width.  Can I do it with CSS alone?

I have a layout similar to:  <div>     <table>     </table> </div>   I would like for the div to only expand to as wide as my table becomes.


I've been trying to determine what are the extreme point of the unit balls of $\ell^1$ and $\mathcal{C}[0,1]$.  I think that I cracked the real case (I got for $\ell^1$: $\{e_n\}_{n\in \mathbb N}\bigcup\{−e_n\}_{n \in \mathbb N}$, and for $\mathcal{C}[0,1]$ the constant functions $f=1$ and $f=−1$).  I had a little trouble figuring out what should be the answer in case the field is $\mathbb{C}$. I think it should be (for $\ell^1$) all the $\{e_n\}_{n\in \mathbb N}\bigcup\{−e_n\}_{n \in \mathbb N}\bigcup\{ie_n\}_{n\in \mathbb N}\bigcup\{−ie_n\}_{n \in \mathbb N}$, and (for $\mathcal{C}[0,1]$) the functions $f=1,f=−1,f=i,f=−i$. But I can also see it go to (for $\ell^1$) all the $\{ae_n:|a|=1\}$, and (for $\mathcal{C}[0,1]$ all the constant functions $f=a$ with $|a|=1$.  I would like some guidness if possible. Knowing the right answer could help, as well as the intuition behind and maybe some tips on how to get there. Thanks!!

I've been trying to determine what are the extreme point of the unit balls of $\ell^1$ and $C[0,1]$.  I think that I cracked the real case (I got for $\ell^1$: $\{e_n\}_{n\in \mathbb N}\bigcup\{-e_n\}_{n\in \mathbb N}$, and for $C[0,1]$ the constant functions $f=1$ and $f=-1$).  I had a little trouble figuring out what should be the answer in case the field is $\mathbb C$. I think it should be (for $\ell^1$) all the $\{e_n\}_{n\in \mathbb N}\bigcup\{-e_n\}_{n\in \mathbb N}\{ie_n\}_{n\in \mathbb N}\bigcup\{-ie_n\}_{n\in \mathbb N}$, and (for $C[0,1]$) the functions $f=1, f=-1, f=i, f=-i$. But I can also see it go to (for $\ell^1$) all the $\{ae_n:|a|=1\}$, and (for $C[0,1]$ all the constant functions $f=a$ with $|a|=1$.  I would like some guidness if possible. Knowing the right answer could help, as well as the intuition behind and maybe some tips on how to get there. Thanks!!


I think I may have stumbled upon a paradox today:  $$\ln(1) = 0$$ $$\ln(1) = \ln(-1^{2}) = 2\ln(-1)$$ $$\ln(-1) = \ln(e^{\pi i}) = \pi i$$ $$2\pi i = 0 \rightarrow i = 0$$  I can't seem to find the error with my logic. Any help would be greatly appreciated

I was trying to solve for $i^i$.  I got distracted and did the following: $e^{i \theta} = \cos(\theta) + i\sin(\theta)$ $e^{i 2\pi} = cos(2\pi) + i\sin(2\pi) = 1$ ||| Take ln() of two sides of equation: $\ln(e^{i2\pi}) = \ln(1)$ $i2\pi = 0$ Clearly this is false. What did I do wrong?


I have a table in sql server 2008 with format:  Name                                   number a                                       123 a                                       231 b                                       521 b                                       236   then i want get result :  Name                                    number a                                        123,231 b                                        521,236

I'm trying to migrate a MySQL-based app over to Microsoft SQL Server 2005 (not by choice, but that's life).  In the original app, we used almost entirely ANSI-SQL compliant statements, with one significant exception -- we used MySQL's group_concat function fairly frequently.  group_concat, by the way, does this: given a table of, say, employee names and projects...  SELECT empName, projID FROM project_members;   returns:  ANDY   |  A100 ANDY   |  B391 ANDY   |  X010 TOM    |  A100 TOM    |  A510   ... and here's what you get with group_concat:  SELECT      empName, group_concat(projID SEPARATOR ' / ')  FROM      project_members  GROUP BY      empName;   returns:  ANDY   |  A100 / B391 / X010 TOM    |  A100 / A510   So what I'd like to know is: Is it possible to write, say, a user-defined function in SQL Server which emulates the functionality of group_concat?   I have almost no experience using UDFs, stored procedures, or anything like that, just straight-up SQL, so please err on the side of too much explanation :)


I am still confused with this integral: $\int \dfrac{1}{1+x^4}dx$  There one solution was given by a pupil that we write it as $\dfrac{x^2+1-(x^2-1)}{2(1+x^4)}$  Then split into two terms and proceed by putting $x+{1\over x}=t$ and completing the square.  My question is can we approach this question using other technique, most obviously partial fraction? The roots are complex, so how do we deal with it? Also please tell me a general procedure for such questions! Thank You!

I don't know how to integrate $\displaystyle \int\frac{1}{x^{4}+1}\mathrm dx$. Do I have to use trigonometric substitution?


I'm trying to learn some basic modeling in blender, working on a long concrete hallway. there are supposed to be fluorescent lights on the ceiling of said hallway, and i made those out of emission+glossy shaders in the mesh itself. but this is resulting in an extremely noisy render, even at 1000+ samples. I've tried changing clamp, filter glossy, caustics, nothing seems to be effective. might just be my pc, not sure. here's the .blend file:  pc specs: OS: windows 10 pro 64-bit CPU: AMD Athlon II x4 640 Motherboard: MSI 870-G45 RAM:8GB GPU: MSI NVIDIA GeForce GTX 650 render @ 128 samples:  it might just be too dark i dunno

I know that this question is a bit old or maybe overdone, but I'm running the latest edition of Blender and when I use the Cycles engine I get really fuzzy results and I can't find a simple, non-compromising solution to the quality.  I don't know exactly what I'm doing wrong here, but I'm sure others share my frustration.  Leaving everything in default settings, I started a new project and switched to the Cycles render.  I duplicated the cube and set colors for two Diffuse BSDF shaders, then went ahead and made walls and a floor all sharing the same diffuse shader.  I made two windows to emit blue light.  The screenshot has gaps between the walls because of the setup:  I'm aware that it's considered very incomplete and many have come to terms with some amount of noise, but is this normal?  Furthermore, with default settings or not, I can't change the amount of noise produced.  Supposedly, using "progressively refine" in the rendering tab should make it refine itself indefinitely, however Cycles only counts to 10 refines and then stops, creating a render which is a pixel-perfect match of the ordinary rendering method when it's completed.  I understand that there are tricks that can be used to reduce noise, but at the cost of extra processing time and usually small quality conflicts, like blurring.  My question essentially boils down to is this Cycles' current limit?


I listen to Apple Music (subscription), and when I play an album I can't find a way to play the songs in order.    If I have an album pulled up and tap the first song, it plays and when done skips to a random song on the album.  If I click the ellipses and hit ...    and then the (what appears to be) "play album" button, it still randomizes...    Is there a way to make songs on an album play in order?

When I play any album in Apple Music on my iPhone 6 Plus, iOS 10.1.1, the tracks are shuffled. i.e. when I press the >> button some track other than the next one is played.  The only icon related to shuffling that I can see anywhere in the app is 'Shuffle all'.  When I play an album I want to hear the tracks in the original order. How do I achieve this?


Now, before you flag this question as blatantly off-topic, I claim to have a scientific basis for this(!): not some drug or remote control, but parasitic infection. While reading about , I found this:  Parasites that induce behavioral changes in their hosts often exploit the regulation of social behavior in the brain...For example, Toxoplasma gondii attaches to the hypothalamus rather than target a specific cellular pathway; this broad targeting leads to a widespread increase in host dopamine levels, which may in turn account for the loss of aversion to cat odor...This rise in dopamine levels induces a loss of aversion to cat odor in the rats, increasing the risk of predation by cats, T. gondii’s definitive host.  Now, if a parasite can prevent mice from being afraid of cats, how hard would it be for another parasite to prevent humans from caring about each other's life(!)? Can a parasite develop some method by which it can alter behavior of humans in such a way that they just start killing each other for no reason? How easy/hard would it be for a parasite to do so? Note: although it is just a curiosity question about whether it is possible or not, giving some description of neural pathways which stimulate social behavior in humans and how they are regulated would be much more appreciated.

Zombies have been a part of popular culture for decades. The living dead rising up to take over the world is a terrifying concept, worthy of  and television hits. Some of those  are based on infection by viruses or other organisms.   Is it possible to bring dead tissues back to life by virus infection?


How should I proceed to obtain the  following table:     What I've tried is:   \begin{tabular}{ | c | c | c | c | c | } \hline  7 & 4 & 7 & 9 & 27\\ \hline  10 & 9 & 9 & 6 & 34\\ \hline  17 & 13 &  16 & 15 & \multicolumn{1}{r}{ } \\ \hline \end{tabular}   but it does not work anymore.  Thanks!

I want to remove the border of the top left table cell (top-border and left border of this cell). My table looks like this:  \begin{table}[!ht]       \centering     \begin{tabular}{|c|c|c|c|}    \hline              &  Item1 & Item2 & Item3 \\ \hline     Group1 & 0.8 & 0.1 & 0.1 \\ \hline     Group2 & 0.1 & 0.8 & 0.1 \\ \hline     Group3 & 0.1 & 0.1 & 0.8 \\ \hline     Group4 & 0.34& 0.33& 0.33 \\ \hline     \end{tabular} \end{table}   Does somebody have a hint how i can do this?


Code used for decoding: Base64.decodeBase64("String");  Commons-codec jar version: 1.9  Exception: nested exception is java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.decodeBase64(Ljava/lang/String;)  Environment Details: OS: SunOS Version: 5.11 Java Version: 1.8.0_221 (Oracle corporation)  Same WAR working in below environment Environment Details: OS: AIX Version: 7.1 Java Version: 1.8.0_191 (IBM JDK)

I'm getting a NoSuchMethodError error when running my Java program.  What's wrong and how do I fix it?


import java.lang.String; public class Test {     public static void main(String[] args) {         String a1="ka";         String a2="ka";          System.out.println("a1==a2?  "+(a1==a2));         String a3="k";         String a4=new String("k");         System.out.println("a3==a4?  "+(a3==a4))         System.out.println("a3==a4?  "+(a3==a4.intern()));         String a5="k";         String a6=a4+"a";         System.out.println("a1==a6?  "+(a1==a6));     } }   Output that i got:  a1==a2?  true a3==a4?  false a3==a4?  true a1==a6?  false    a1===a2 is true as line 5 will not create new String literal in string pool area.Only reference to previously created string is returned. a3==a4?  false as a4 will have refernce to the String object instead of the string in the string in string pool area. My question is if a3 is referencing the string constant instead of the String object, how is it able to use the methods of the String class? a4.intern() will return the reference to the string in the string pool which happens to be same as a3  a6=a4+"a" will create a new string "ka". But this actually make use of StringBuilder class and its append method . It is then converted to string using toString(). Does this process store the newly created string "ka" in the string pool area? Since the string is already in the pool the code at line 12 should return the reference to it. So the a1==a6 should be true.rt? I am new to java. Please guide me where i am doing the mistake?

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I'm from India. I applied for a business visa to Spain for 90 days. I got the Visa approved with Multiple visits. But it's been approved only for 30 days. I need to be there for another 1 month for my Business trip. Why did this happen and could I extend my Visa after reaching Barcelona?

My daughter applied at the Italian Consulate in Philadelphia, and they gave her two entries for 20 days (we thought it was for 20 days each entry). She was in Italy 12 days, then went to England for 1 week and flew to Venice to take a 10-day cruise. She couldn't make it because they said she has only 8 remaining days, but she still has a land tour already paid this week.  What can she do? Can she extend the Schengen visa for 12 more days? Right now, she is in Madrid, but next week she has to fly from Barcelona to Paris to start with the tour. What would happen if she decides to take the tour with the expired visa? She is a US permanent resident.


Which one is correct? Can i use them interchangably and is there a common rule for such constructions? Thanks in advance.

This question is relatively simple. I don't understand why we never use passive form of to infinitive after the adjective unless the subject is "it".  For example:     He is difficult to please.   People consider the example above a correct sentence. But:     He is difficult to be pleased.    People, for example, my teacher, said it sounds wrong and told me not to write this type of sentence. Is it grammatically flawed, or is it just a stylistic choice?


After update I got UK keyboard added to my list. Can't remove it.  I tried  1)  2) and regedit IgnoreRemoteKeyboardLayout  None above worked

I have just updated to Windows 10 April 2018 Update (1803 / 17134.1)  I had my laptop configured completely as UK with only a UK keyboard layout  Since the update, a US keyboard has been added so I now see the switch icon in my task bar    It appears that all the keyboard language settings are now migrated to the new Settings app and no longer in the old Control Panel    However, as can be seen from the screenshot above, the Remove button under the newly added US layout is greyed out (as is the UK one)  How can I remove the US layout?  UPDATE 1: I just updated my desktop and it hasn't added a US keyboard!  UPDATE 2: I added a third language (French) and was able to remove it, the button was enabled. The US remove button remained disabled both after adding French and after removing it.  UPDATE 3: I added another English language (Australian) and this cannot be removed! Button is disabled  UPDATE 4: I followed this  except I removed the values from the keys for all users and also the values under the Substitutions key. The task bar switch icon is gone but I still have all 3 languages in Settings still


I recently crossed 2k rep on SO, which got me access to the review queue for suggested edits. I am not clear on what basis edits are to be accepted/rejected. I did a search for FAQ and suggested edits which turned up nothing.   Is there a canonical post that covers/explains review actions on the Suggested Edits review queue? Should a FAQ be created that covers the working of the Suggested Edits review queue as well as how to handle it?   I did see the FAQ  and  but both appear rather vague when it comes to actual reviews. Also, I have reviewed a fair bit of First Posts and Late Answers but those review actions seemed comparatively simpler.

About reviewing The review queues contain posts that possibly need further action from the community, like improvement, closure or deletion. By presenting those posts for peer-review, the system aims for higher quality content. Some user actions, such as suggesting an edit, casting a flag, close vote or reopen vote, or posting for the first time, can trigger the inclusion of a post on a review queue. There are also posts included on the queues algorithmically, such as the contents of Late Answers and Low Quality Posts. General guidelines  Always read the full post you are reviewing. Don't rush. Take the necessary time to read the post carefully. If you don't care about a post, just click Skip or Not sure. When you need more context, open the post link to see the question and all answers. Most posts coming up for review can be improved. Use the Edit option, and edit thoroughly. If you're unsure how to review a post (perhaps it's outside your areas of expertise), skip it. Someone who understands it better will review it later.  Guidelines for specific review queues         (Stack Overflow only)


\begin{tikzpicture}[scale=0.5]         \draw [<->,thin] (-5,0) - - (5,0) node [right] {$x$};         \draw [<->,thin] (0,-3) - - (0,3) node [above] {$y$};         \draw[color=blue]   plot (\x,{sin(\x r)})   node[right] {$f(x) = \sin x$};        \draw[color=red]   **plot (\x,{sin(\x r)})**   node[right] {$f(x) = \sin (x+2)$};               \end{tikzpicture}    how can I draw the sin2x!!!!I already draw the sinx!! please help!!!

Trying to plot the sin(x) function, I get this result:    The MWE is here:  \documentclass{standalone} \usepackage{ pgfplots} \begin{document} \begin{tikzpicture} \begin{axis} \addplot[samples=500]{sin(x)}; \end{axis} \end{tikzpicture} \end{document}   cos(x) looks like an inverted parabola and tan looks just like sin.  I'm using pdflatex and MiKTeX. Any ideas?


I have an html page which gets loaded via ajax, the newly loaded html content has the following html. It typically works great when I load the html first and then initialize the javascript.   Change password   My js:  $('.ajax-button').on('click', OnLoadContent);  function OnLoadContent(e) {     e.preventDefault();     var pageurl = $(this).data('url');     $.ajax({         type: "GET",         url: pageurl,         success: function(data) {             alert(data);             $("#content-container").html(data);             window.history.pushState({path:pageurl}, '', pageurl);         },         error: function(response) {            alert("ERROR:" + response.responseText);         }     }); }   However since it's new html content that's being loaded I think the problem is the javascript already exists when the html content is loaded via ajax, so the click functionality doesn't work unless I click again. I'm wondering how I can fix this?

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


I have an article to be written with 1 inch margins, with figures of course in the figure environment. [...] I now narrowed down the problem to the use of \abstract{...}. I use  \documentclass[12pt]{article}    \usepackage[a4paper, margin=1in]{geometry} \usepackage{graphicx,authblk}     \usepackage[english]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc}    \usepackage{csquotes}  \begin{document}     \abstract{Lorem ipsum dolor sit amet, \ldots}  \section{Test}     Test  \begin{figure} \centering \includegraphics[width=0.8\textwidth]{fig_Test.pdf} \caption{This is a long sentence used as caption. It has  to be so long to illustrate my problem.} \label{fig_Test} \end{figure}  \end{document}   If I remove the \abstract directive, everything works fine. But as soon as the \abstract instruction is there, its formatting (narrower textblock than standard) is kept for the subsequent sections, and the captions are wider than the text block. What to do, if I do want to provide an abstract for the paper?

I am having trouble making the caption beneath a figure to be of same width of the figure (less than the width of the paragraphs in the same page). How can I force the caption width to be the same as the figure width?


I have $$7+i,\quad\quad 5+3i\in\mathbb{Z}[i]$$  The answer is given as $$7+i=(5+3i)\cdot 1+(2-2i)$$  $$5+3i = (2-2i)\cdot 2i+(1-i)$$  $$2-2i=(1-i)\cdot 2$$  So $hcf(7+i,5+3i) = 1-i$  What I don't understand is how they're finding what to multiply by, like in the first line, they multiply $5+3i$ by $1$, in the second line they multiply $2-2i$ by $2i$. I tried using the fraction $\frac{7+i}{5+3i}$, and then rationalising the denominator but it got complicated and didn't look anything like what they've gotten. Could someone explain their steps in more detail?

Let $\mathbb Z [i] =\{a+bi: a,b \in \mathbb Z\}$.  What is the gcd of $11+7i$ and $18-i$ in $\mathbb Z [i]$?


Suppose my opponent has  in play, and I have a . The former says I can only cast spells any time I could cast a sorcery, and the latter says I can cast spells any time I could cast an instant.  In this case, looking it up on Oracle gave me a direct answer in the past rulings: Teferi's ability overrides the Leyline's.  But is this just an arbitrary decision? When cases like this come up, how can I decide which effect wins out without searching for specific rulings on each combination? As a general rule, when something like this happens in play, how should I figure out the result?

With the reprint of  in Core Set 2020, the interaction with  came to mind and I couldn't figure out what is right.  If I have the Leyline and my opponent has Teferi, may I cast spells during my opponent's turn?


I'm running the Postfix mail server ru000397.widhost.net. I'm getting some of these messages in postmaster@ru000397.widhost.net.  The mail service is working and, obviously, there is much free space on all drivers.  Transcript of session follows.   Out: 220 ru000397.widhost.net ESMTP Postfix  In:  EHLO m145.gem.godaddy.com  Out: 250-ru000397.widhost.net  Out: 250-PIPELINING  Out: 250-SIZE 52428800  Out: 250-ETRN  Out: 250-STARTTLS  Out: 250-AUTH CRAM-MD5 DIGEST-MD5 LOGIN PLAIN  Out: 250-ENHANCEDSTATUSCODES  Out: 250-8BITMIME  Out: 250 DSN  In:  MAIL FROM:<mailman@m145.gem.godaddy.com> BODY=8BITMIME  Out: 452 4.3.1 Insufficient system storage  In:  RCPT TO:<info@gilperformance.it>  Out: 503 5.5.1 Error: need MAIL command  In:  DATA  Out: 503 5.5.1 Error: need RCPT command  In:  QUIT  Out: 221 2.0.0 Bye   For other details, see the local mail logfile   main.cf:  master.cf:   Here is my df outputs:  [root@ru000397 ~]# df -h Filesystem      Size  Used Avail Use% Mounted on /dev/sda2        22G   20G  1.5G  94% / tmpfs           7.8G   12K  7.8G   1% /dev/shm /dev/sdb        2.7T  1.7T  867G  67% /usr/local/psa  [root@ru000397 ~]# df -i Filesystem        Inodes    IUsed     IFree IUse% Mounted on /dev/sda2        1455328   242748   1212580   17% / tmpfs            2035051        2   2035049    1% /dev/shm /dev/sdb       181141504 11000662 170140842    7% /usr/local/psa   Here is my message_size_limit:  [root@ru000397 ~]# postconf -n|grep message_size_limit message_size_limit = 52428800

I have a server which uses Postfix as the mail system. The issue I am having is I am not able to send or recieve email. If I send an email I get an instant reply from the server which says:  Subject:    test Sent:   16/05/2011 19:08  The following recipient(s) could not be reached:  'myemail@mydomain.com' on 16/05/2011 19:08 452 4.3.1 Insufficient system storage   I have check the following:  Disk space, there are gigabytes of free space on all partitions. Mailbox quotas, there are no quota,s set on any mailbox.  I cleared all the mail logs and rebooted the server but I still cannot send email. does anyone have any pointers for me to look at next.  I have looked at the main.cf file and here are the results:  virtual_mailbox_domains = $virtual_mailbox_maps, hash:/var/spool/postfix/plesk/virtual_domains virtual_alias_maps = $virtual_maps, hash:/var/spool/postfix/plesk/virtual virtual_mailbox_maps = hash:/var/spool/postfix/plesk/vmailbox transport_maps = hash:/var/spool/postfix/plesk/transport smtpd_tls_cert_file = /etc/postfix/postfix_default.pem smtpd_tls_key_file = $smtpd_tls_cert_file smtpd_tls_security_level = may smtpd_use_tls = yes smtp_tls_security_level = may smtp_use_tls = no smtpd_sender_restrictions = check_sender_access hash:/var/spool/postfix/plesk/blacklists, permit_sasl_authenticated, check_client_access pcre:/var/spool/postfix/plesk/non_auth.re smtp_send_xforward_command = yes smtpd_authorized_xforward_hosts = 127.0.0.0/8 smtpd_sasl_auth_enable = yes smtpd_recipient_restrictions = permit_mynetworks, check_client_access pcre:/var/spool/postfix/plesk/no_relay.re, permit_sasl_authenticated, reject_unauth_destination virtual_mailbox_base = /var/qmail/mailnames virtual_uid_maps = static:110 virtual_gid_maps = static:31 virtual_transport = plesk_virtual plesk_virtual_destination_recipient_limit = 1 smtpd_client_restrictions =  myhostname = mydomain.com message_size_limit = 2048000000


How can I get UTC value in Java of any given time and date with the respective time-zone?   Say for example my current time zone is Asia/Kolkata, now how can I get UTC value of say 1.00 am on 21/07/2018?

When I create a new Date object, it is initialized to the current time but in the local timezone. How can I get the current date and time in GMT?


I want to place a div inside another div to the bottom right of the container. The container will contain text and I don't want the inner div to overlay the text. The inner div must always keep his space but the rest of the outer div will contain text.  This is an illustration of what I mean. Blue is the inner div and the orange is the outer div. This is what I have till now: .received_withd_msg {    display: inline-block;   max-width: 65%;    min-width: 10%;  }  .inner {   position: absolute;   right: 0px;   bottom: 5px;   color: #646464;   font-size: 10px;   margin-top: auto;   padding-left: 12px;   min-width: 45px; }

Every time I try to do something seemingly-simple in CSS, it doesn't work.  I have a content div that contains a 460x160 image. All I want to do is position the image at the bottom-right corner and wrap my text around it.
          text text text text text text ...
   So I want it to look like:  ------------------ | text text text | | text text text | | text text -----| | text text |    | ------------------   Doing it with a top-left or top-right image is cake:  #contents img { float:right; }  ------------------ | text text |    | | text text -----| | text text text | | text text text | ------------------   Now how do I push that to the bottom? The best I've come up with so far are:  #contents img { float:right; margin-top: 90%} // really needs to be 100%-160px  ------------------ | text text      | | text text      | | text text -----| | text text |    | ------------------   In this case the text does not print in the margin, so there is white space above the image.  #contents { position:relative; } #contents img { position:absolute; right:0; bottom:0; }  -or-  // move the img tag under the text in the html and: #contents img { float:right; margin-top:-160; }  ------------------ | text text text | | text text text | | text text -----| | text text | te | ------------------   In this case the text prints over or under the image.  So... how can I accomplish this?


This question was marked as duplicate of . I am not asking how to create enumerations, I'm asking how to create constants, and that is the difference between the questions.  This question was marked as duplicate of . While the answers do explain how to create constants in python they don't explain how to create them in Enum like style, which is what my question is asking for.  I need to create constants in my python code. I don't want the user to be able to modify them. I found , but it is not exactly what I need. I need to be be able to use them just like enums, without creating and instance.  For example:  class MyConstClass(object):     Const0 = 0     Const1 = 1     Const2 = 2  myfunc(MyConstClass.Const0) MyConstClass.Const1 = 20 # Raise an exception   I also don't want to create a module, just like it is done   Is there a way to do it?

I'm mainly a C# developer, but I'm currently working on a project in Python.  How can I represent the equivalent of an Enum in Python?


So I have a few links that's values are stored in jQuery and then are used as a variable for the PHP file it calls. In that PHP file, it outputs the same exact links so the process can continue without refreshing the page. But, the second time clicking the links does not produce the jQuery POST ajax call to the php file.   Here is my jQuery code  jQuery('.wantedStatus').on('click', function(event) {     var anime_id = <?php echo $anime_id; ?>;     var anime_list_entry_id = <?php echo $anime_list_entry_id; ?>;     var wantedStatus = jQuery(this).tex        jQuery.post("/path/to/php/file/updateStatus_animelist.php", {firstParam : anime_id, secondParam : anime_list_entry_id, thirdParam : wantedStatus}, function(data) {          //this is your response data from serv          console.log(data);          jQuery('#anime_list_update').html(data);     });     return false; });   The links that activate this function.  Watching Plan to watch On hold Dropped   Now these exact links are outputted from the updateStatus_animelist.php and so when they are clicked again, they don't work.


There is one property of electric lines of forces which states that:     Electric field lines start and end at 90 degree at the surface of the conductor.   But why is that so? Is there any proof for this statement or is it observed by any experiment?

Since the electric field inside a conductor is zero that means the potential is constant inside a conductor, which means the "inside" of a conductor is an equal potential region.   Why do books also conclude, that the surface is at the same potential as well?


Just because she chopped off their arms and de-toothed them, wouldn't they still be clamoring to eat her, like all the other walkers?

In both the comics and the show, Michonne first appears with two walkers that she essentially keeps as pets.    The comics sort of half-explain this - as per :     She notices walkers don't attack one another and hacks off the arms and lower jaws of Mike and Terry. She chains them up by their necks to use them as escorts for an escape that was successful.   In , we see that even if they still sort of smell like Walkers, the Walkers can smell/detect the living and will attack.  In ,      We see Andrea effectively making a new "pet" so that she can use to deter the Walkers that she comes across on her trip to the prison. Along the trip, she is shown to come within close range of Walkers, but they give her space when she points the "pets" in the right direction.   Why would the Walkers not just attempt to go around the "pets"? What about them creates an effective protective barrier?


Often code mistakes are only 1-3 characters but completely invalidate the code if uncorrected.  Are the reasons for this restriction in regular edits documented and well known?  Do these reasons apply to coding corrections (esp. by original author)?  Is there a reason we have this unfiltered restriction on code primary stacks like Stack Overflow?  Is this feasible to change?

I tried to update a jQuery code block that was missing a curly brace. The code is incorrect, but I cannot edit it since changes under 6 characters are not allowed (at least at my level of rep?).  I understand why you don't want to allow minor copy-editing, and I agree that's fine for textual descriptions and regular writing, but 1 character can make a big difference in code.


I have a folder called webdriver.   I cannot open it or delete it.  When I try to open it, it says access is denied.    When I try to delete it, it says:    When I try to change the owner, it says "Unable to display current owner" then "Access is denied":

I can't delete a certain folder in Windows 7. It's not a system folder. It was created by an app. I get an error message "You need permission to perform this action. You require permission from Tony....". I am an admin and logged in as myself Tony. I have full ownership of the folder with full control permission. I rebooted the machine. I killed the app which created the folder. I am out of ideas.  Why is Windows 7 not letting me delete the folder?


I am a fan of Jordan Peterson. If you know him you will know that he can express his thoughts very well in language. He can give words to thoughts. Is there any word which can describe a person who can express his thoughts in words? Word tried: outspoken But it is not exactly hitting home. It emphasizes on frankness and controversial ideas.

I am looking for a single word for a person who is able to explain himself very clearly and using the best possible words, etc. I am not looking for "perspicuous", etc. The focus is more on the language part: someone who uses the right language and words to describe himself. I know the word exists but its just skipping my head at the moment!!! Please help.


How come atoms can have such a wide range of appearance, as well as atomic & chemical properties?  At one point you have something invisible & gaseous at room temperature, add a few protons/neutrons/electrons, and you have something solid & shiny. Seems like a huge difference for a small change.  Even within the same element you can have a wide spectrum of properties - carbon for example has a few quite different allotropes (e.g. diamond vs graphite vs Q-carbon).  I'm not so much interested on how these differences arise (e.g. valence electrons), but rather why they are so varied. (Which is why I don't think this is a duplicate of either  or )

How does adding one more particle to the nucleus of an atom give that atom new properties? I can see how it changes it's mass, that's obvious... But how does it give that new atom different properties like color?  A good example would be: start with a copper atom (Cu), with the atomic number 29, thus Cu has 29 protons, and you add one proton to the nucleus you are left with an atom of Zinc (Zn) with the atomic number 30, thus 30 protons. The first element mentioned is a totally different color than the second, and conducts electricity better etc.  Not only protons, but neutrons, which are the same type of particle (Baryon) affect the properties of the element in a much different and much less important manner. Adding a neutron only creates an isotope of that element, not a different one all together, unlike adding a proton.  Also, it is obvious that adding (or subtracting) electrons does not make a difference. For example, if you remove 28 electrons (I know that would take huge amounts of energy, but lets ignore that) that "orbit" the copper atom, we are still left with a copper atom, although a ion, but still a copper atom.  So, its apparent that only protons play a major role in "making" elements different from each other. How and why?  Also, the same can be asked about the protons themselves and quark flavor.


How can I expand root "/" partition by that 4.48GB unallocated partition?  I have LiveCD with GParted, but I dont know how to shift that partition.

Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?


At first I had an account in stack overflow of reputation 221. The I joined Mathematica and got the reputation of 101 in Mathematica. When I came back to stack overflow I found that my stack overflow account had also received +100 association bonus. I then decided to join Physics and received 101 in Physics but this time my stack overflow account was not given +100 . Why did this happen??

Not sure if it is a bug or not, but it feels like a bug to me. When I got to 200 rep on SO the other day I got +100 rep to all my accounts including SO. So my rep jumped up to 300 on SO.  Considering there are others on SO with rep between 200 and 300 I think it is possible that the +100 was supposed to apply only to the linked accounts, not to the account with 200+.


Is logistic regression only for binary classification or can it be applied for multi class classifications as well.  Also, can you please list down what are other classification methods for multi classes(for more than 2 classes)

I need to analyse data and am unsure whether or not I should use a multinomial logistic regression analysis or a binary logistic regression analysis. I have just conducted a latent class analysis and am interested in seeing if my variables can predict class membership. There are only two classes and so my response variable only has two categories; however the variables range from having 2 to 3 to 4 and are mostly nominal categorical data.


Where can I download Ubuntu Server 12.04 or 14.04?

I'd like to install Ubuntu server on my machine, is there a step-by-step instructions on how to accomplish that or a guide that will just go through the basic steps of installing Ubuntu Server from beginning to end.  Instructions originally for 13.04.


Whenever I boot up Windows 10 something is taking up so much I/O time that I can't do anything for about 10 minutes. So I ran Resource Monitor (via Task Manager) and found that the system is using a very high I/O rate. I can't see which file it is. Note that this happens before I login.  Does anyone have any suggestions?

In august 2015, I have upgrade my laptop from windows 8.1 to windows 10. But it spends always 10 minutes to boot it. It is not normal that it spends so long. What can I do for boot him faster? Below some information about my laptop.   age: +/- 2 year (on august 2015) edition: Windows 10 Home   File trace are removed.  Update:    I must also say that always there comes a windows update, I have the same problem again form slow booting. Is it good that I turn off the updates? If yes, how can I do that? Also it is in periods that my pc booting to slow. Some time it is like normal (a few seconds) and other times a few minutes. I don't know how it comes that it is fast or slow.


I'm trying to give my image uploader some kind of rightclick->upload functionality. Currently I use the nautilus-scripts folder, but that puts the menu entry behind an unapparent "Scripts" item.  I've tried looking it up but I can only find people referencing nautilus scripts or Nautilus Actions (which isn't what I want for packaging).

From time to time I come up with ideas of actions I'd like to have available in the context menu of Nautilus. How do I add them there? Is there something like a Thunar UCA plugin for Nautilus?


Here are the contents of the files. First the templated class : in the .h file :  template <class T> class templatedClass {     public :      templatedClass(T val);     ~templatedClass() {}      void writeV();      T v; };   in the .cpp file :  template <class T> templatedClass<T>::templatedClass(T val) {     v = val; }  template <class T> void templatedClass<T>::writeV() {     std::cout << v << std::endl; }   Everything is fine when build.  Now the inherited class : in the .h file :  class inheritedClass : public templatedClass<float> {     public :      inheritedClass(float val);     ~inheritedClass() {}      void write(); };   in the .cpp file :  inheritedClass::inheritedClass(float val) : templatedClass<float>(val) {  }  void inheritedClass::write() {     writeV(); }   When building I received the following link errors :   Undefined symbols for architecture x86_64:   "templatedClass<float>::writeV()", referenced from:       inheritedClass::write() in inheritedClass.o   "templatedClass<float>::templatedClass(float)", referenced from:       inheritedClass::inheritedClass(float) in inheritedClass.o   What is wrong with my code? Have I to use special building options in XCode to succeed?  Thank you for your answer.

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


I am very new to dungeons and dragons and for our group of friends I was picked to be the DM, I read the rules and understood them for the most part but some attacks have me stump for example if a goblin hits it would do Hit: 5 (1d6+2) what has me confused is the number on the far left, the 5.

My friends and I are very new to D&D, played like 3 times. In a monster's stats next to weapon damage it says stuff like "+11 to hit" and "Hit: 5 (1d8+1)". For the premade characters it just says things like "+4, 2d6 + 2 slashing", though. Why are there two "hit" numbers for monsters? Which do I use for the d20 roll to hit against a target's AC?  I mean for example like in the Ogre entry in the "" article on monsters.


Let $G\subseteq GL_n(\mathbb{C})$ a Zariski-closed linear subgroup and $X\subseteq G$ closed with $X*X\subseteq X$ and $e \in X$. Then $X$ is a subroup. I am not sure how to start here. I know that $X^{-1}$ is also closed and that $e\in X\cap X^{-1}$. Is that going to help me?  Thank you.

A closed subset of an algebraic group which contains $e$ and is closed under taking products is a subgroup of $G$.   Denote this set as $X$. If the condition of $X$ being closed is dropped, this statement does not hold. The set of nonzero integers in $\mathbb{G}_m$ over $\mathbb{C}$ is a counterexample.  It suffice to prove that for any $x \in X$, $x^{-1}X = X$. As $X$ is closed under taking products, it is clear that $X \subseteq x^{-1}X$. In order to prove the inverse inclusion, the closedness of $X$ (under Zariski topology) must be used.   Let $\phi: G \rightarrow G, y \mapsto x^{-1}y$ is a homoemorphism of $G$ as an algebraic variety. So $x^{-1}X = \phi(X)$ is a closed subset of $G$ containing $X$. But Why are they equal?  Thanks very much.


I'm on my second day trying to figure this out.  I've got a select / option list that's created dynamically from an AJAX call.  The AJAX call populates the options (Jira projects) and when the user chooses a project from the options, I want to fire an event so I can capture the chosen project, then make another AJAX call to populate the properties for that specific project into another select / option dropdown.  The initial AJAX call looks like this (slightly modified from the original ), and populates the dropdown just fine (you need to be logged onto Jira for this to work properly):  JS:      function getProjects(){     var jiraProject = $.get( "https://jira.atlassian.com/rest/api/2/project", function() {       alert( "success" );     })       .done(function() {             jiraProject = jiraProject.responseJSON;             var select = document.getElementById("jiraProjectsList");             for (i = 0; i < jiraProject.length; i++) {                 var opt = document.createElement('option');                 opt.value = jiraProject[i].name;                 opt.innerHTML = jiraProject[i].name;                 select.appendChild(opt);             }             $('#jiraProjectsList').hide().show();//refreshes the option list         alert( "second success" );       })       .fail(function() {         alert( "error" );       })       .always(function() {         alert( "finished" );       });      // Perform other work here ...      // Set another completion function for the request above     jiraProject.always(function() {       alert( "second finished" );     }); }   HTML:  <label for="jiraProjectsList">JIRA Projects</label> <select name="jiraProjectsList" id="jiraProjectsList" data-native-menu="false" class="filterable-select"></select>     I can't seem to figure out how to get the change event to fire when a user selects an option.  Here's an abbreviated selection of the various things I've tried:  $("#jiraProjectsList").change(function() {     alert("Inside jiraProjectList change function");     var selectedProject = $(this.val());     console.log(selectedProject);     getComponents(selectedProject.key);//next AJAX call });  $("#jiraProjectsList").find(":selected").change(function(){     alert("hi mom!"); });   From  I've tried:  $('#jiraProjectsList').on('change', function (e) {     var optionSelected = $("option:selected", this);     var valueSelected = this.value; });   From , I've tried:  $('#jiraProjectsList').find('option').click(function () {     var optionSelected = $(this);     var valueSelected  = optionSelected.val();     var textSelected   = optionSelected.text();     console.log(optionSelected);     console.log(valueSelected);     console.log(textSelected); });  $('select').change(function () {     var optionSelected = $(this).find("option:selected");     var valueSelected  = optionSelected.val();     var textSelected   = optionSelected.text(); });   Using this function I can get the project name after it's been selected if I call it specifically during program flow:  function getSelectedProjectName(){     var projectName = $("#jiraProjectsList").find(":selected").text();     console.log(projectName); }   Question:  How do I fire a change event on a dynamically created option / select when a user makes a choice?  Answer: (from SO thread this was marked a duplicate of):  $(document).on('change', '#jiraProjectsList', function(){     var optionSelected = $("option:selected", this);     var valueSelected = this.value;     console.log(optionSelected);     console.log(valueSelected); });

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


Let V be a vector space, W and W' be linear subspaces of V. Show that:  $W\cup W'$ is a linear subspace is equivalent to $W\subseteq W'$ or $W'\subseteq W$    I have already shown that left follows from right (<-), but I can't figure out the conclusion from left to right (->).

I'm having a difficult time understanding this statement. Can someone please explain with a concrete example?


Really the title says it all. I want to set a shortcut that will enable/disable (toggle) keyboard shortcuts. Is this even a possibility? It would be really useful for things like Blender where many shortcuts overlap, without having to permanently disable or change your system shortcuts.

The great JetBrains IDEs (IDEA et al.) assign pretty much every conceivable keyboard shortcut to some function. While mildly overwhelming at times, it also makes for efficient use.  My problem is that Unity assigns some of these shortcuts as well, and they take precedence. One particularly annoying example is CTRL + ALT + L. The issue has been explored before .  However, neither of the approaches is satisfactory.   Turning off system shortcuts globally impedes my overall productivity with the system. Switching to a different keymap in IDEA will confuse the hell out of me when I develop on different platforms (and have to choose different mappings).   Is there a way to turn off system shortcuts only when a certain application is active, i.e. running and in focus?  I'd be willing to run a script every time I launch the application.


I have a situation when I try to see if my data set ("sample") is a good representation of a larger data set ("population") that I have. In Stata, I use the cluster command on the both data sets trying to detect patterns that can be later compared for similarity in order to decide if the sample is indeed representative of the population. 1) In Stata, how can I comrade the slitters of the two data sets statistically? 2) In Stata, what else can I do to compare the two data sets for similarity?

Say I generate a dataset $X$: the first $i$ samples follow $x_i\sim N(\mu_1,\Sigma_1^2)$, the next j samples follow $N(\mu_2,\Sigma_2^2)$ and the last $l$ samples from $N(\mu_3,\Sigma_3^2)$. Naturally, I denote the clusters $(1,2,3)$ by the order of creation.  When using kmeans(X,3)$clusters I get the predicted assignment of the samples, but here lies the problem: kmeans might enumerate the clusters differently, for example set $N(\mu_2,\Sigma_2^2)$ as cluster#3 and vice versa. In this situation, I cannot compare the 'original' cluster assignment (say $(1,1,2,2,2,3,3,3,3,3)$) with the predicted one (say $(1,1,3,3,3,2,2,2,2,2)$). this will result with only 20% accuracy, even though the actual accuracy is 100%.  Any ideas of how to map the centroids or measure the accuracy of the kmeans performance?


I've searched a lot of the questions here and I found that they either very old or suggesting using prepared statements PDO which I am not using.  So I need your help please.  I have a small discussion/chat box where a user submit a message using a <textarea>  What I need is sanitize and filter the user input so it only accepts plain texts (e.g. no tags, no html tags, no scripts no links, etc).  Also, it is important to allow line breaks.  Based on my reading I am doing the following in the following order:   trim() htmlentities($comment, ENT_NOQUOTES) mysqli_real_escape_string() nl2br()   Is what I am doing is right? or I am missing something?  Also is there anything I have to do when echoing the data from the db?  really, appreciate your help and kindness

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


I know how to run a command using cmd = subprocess.Popen and then subprocess.communicate. Most of the time I use a string tokenized with shlex.split as 'argv' argument for Popen. Example with "ls -l":  import subprocess import shlex print subprocess.Popen(shlex.split(r'ls -l'), stdin = subprocess.PIPE, stdout = subprocess.PIPE, stderr = subprocess.PIPE).communicate()[0]   However, pipes seem not to work... For instance, the following example returns noting:  import subprocess import shlex print subprocess.Popen(shlex.split(r'ls -l | sed "s/a/b/g"'), stdin = subprocess.PIPE, stdout = subprocess.PIPE, stderr = subprocess.PIPE).communicate()[0]   Can you tell me what I am doing wrong please?  Thx

How do I execute the following shell command using the Python  module?  echo "input data" | awk -f script.awk | sort > outfile.txt   The input data will come from a string, so I don't actually need echo.  I've got this far, can anyone explain how I get it to pipe through sort too?  p_awk = subprocess.Popen(["awk","-f","script.awk"],                           stdin=subprocess.PIPE,                           stdout=file("outfile.txt", "w")) p_awk.communicate( "input data" )   UPDATE:  Note that while the accepted answer below doesn't actually answer the question as asked, I believe S.Lott is right and it's better to avoid having to solve that problem in the first place!