For one of the exercises of my homework I need to answer the following question, but I am not sure how I should apply gamblers ruin theory to solve this problem (it is stated as a hint, not that I must use it). The problem is as follows:  A mouse is in a room in a circular hallway with $N+1$ rooms. In the the other $N$ rooms there is a cheese. He has a chance of $\frac{1}{2}$ to go either way every step. If he enters a room with a cheese he eats the cheese. Prove that all cheeses have an equal chance of being eaten last, namely $\frac{1}{N}$.  I see that eating the $i^{\textrm{th}}$ cheese as last has two possibilities, first mouse walks to $i+1$ and then goes to $i-1$ without passing $i$, and the other way around. But I am at loss what to do next.

For a graph $G$, let $W$ be the (random) vertex occupied at the ﬁrst time the random walk has visited every vertex. That is, $W$ is the last new vertex to be visited by the random walk. Prove the following remarkable fact:      For the   random walk on an $n$-cycle, $W$ is uniformly distributed over all vertices different   from the starting vertex.


I don't know why this is happening, but none of my content are displayed when logged out. All the content in views, blocks, everything disappear upon logout. As far as I can remember, I haven't touched any permission. In fact I created this project only a few days ago.   I have two jCarousel slideshows and a few views connected with nodequeues on my site among other things; all of them disappear upon logging out. I have already checked all permissions on views, blocks, and everything I could find.  What can I do to resolve the issue?  As an experiment I searched for a content through the search bar, and the page returned said access denied.  EDIT: Problem solved. The solution has been posted in  thread.

I haven't touched any default permissions for views in my site but they disappear for anonymous and authenticated users. In permissions 'view published content' is enabled for the mentioned roles. I have even tried rebuilding the permissions but no use.  I also checked permissions in views i.e, Access option in Block Settings and tried all combinations of it's options but still no use.  All other contents (shown through print render($page['content'])) are fine and displays upon logout but it's only the views that disppear.  I'm using Drupal 7.  I don't know what seems to be the problem, and what else to try.


I have been trying to show that if $f:[a,b]\rightarrow \mathbb{R}$ is a continuous function then $$\lim_{n \rightarrow \infty} \prod_{k=1} ^ n  \left( 1+ \frac{1}{n}f\left(\frac{k}{n}\right)  \right)= e^{\int_0 ^1 f(x)dx} $$ I have tried some approaches to prove this but couldn't find a way. Can someone kindly help me out. Thank you.

Given that $f:[0,1]\to \Bbb{R}$ is a continuous function, I need to show that $$\lim_{n \to \infty}\prod_{k=1}^{n}\left(1+\frac{1}{n}f\left(\frac{k}{n}\right)\right)=e^{\int_0^1f(x)dx}$$  Writing $$y=\lim_{n \to \infty}\prod_{k=1}^{n}\left(1+\frac{1}{n}f\left(\frac{k}{n}\right)\right)$$ and taking the logarithm of both sides and interchanging limit and logarithm(since $f$ is continuous), I get $$\log y = \lim_{n\to \infty}\sum_{k=1}^{n}\log\left(1+\frac{1}{n}f\left(\frac{k}{n}\right)\right)$$ Now I know that the limit of the Riemann sum $\lim_{n\to \infty}\sum_{k=1}^{n}\frac{b-a}{n}f\left(a+\frac{(b-a)}{n}k\right)=\int_a^bf(x)dx$. However if I want it to read $\int_0^1f(x)dx$ in the given problem, I would need the term inside the summation to read $\frac{1}{n}f\left(\frac{k}{n}\right)$. The way to do this it would seem is to take the series expansion of $\log(1+x)$ and ignoring the $x^2$ and higher order terms. Is it justifiable to do so?


I deleted my best Terraria world, and my only one, with no backup. I don't have a computer. Is there any other way to get it back? I'm literally gonna die.

I was playing terraria today, and my friend came and deleted the my world.  Is there a way for me to recover my world?


I would like to prevent the text wrap in OSX Terminal, by letting text to continue under the border. I could not find it in Preferences of the terminal.   How can you prevent text wrap in OSX Terminal?

I often read outputs in the terminal that get wrapped as they are too long. Since there is no way that I can modify the printed output, I need to let the Terminal allow for horizontal scrolling.  Is there a modification I can make to the default OS X Terminal to disable line wrapping and allow for horizontal scrolling?  Or do you know another alternative I can use?


So there is a multiplication trick It says     9×13 say Half and double everything  4.5×26 Cancel out the .5  4×26 2×52 1×104 Cancel out the even left hindsight multipliers and add the left right hand numbers  So 9×13= 104+13 = 117 I know how this can be explained by working in binary .Is there a rigorous proof how this algorithm works in binary.

I'm studying a combinatorics text () in preparation for taking discrete math this upcoming semester. I've taken a fair amount of math in college, through Calculus II, but this is my first 500+ level math course.    In chapter 2 of the  book, the author introduces an algorithm for multiplication called Russian Peasant Multiplication. I want to prove that this algorithm will always result in the product of two numbers.  I've been chewing on the proof for a while now, and just can't seem to get any traction. Thanks in advance for any help.  Description of Algorithm  I'll try to explain the algorithm clearly. The goal of the algorithm is to find the product of two numbers $m$ and $n$. The below table is filled out for $m$ and $n$:  $$\begin{array}{c} m&&n&\\ \hline \bigl\lfloor \frac{m}{2} \bigr\rfloor&& 2n \\ \bigl\lfloor \frac{m}{4} \bigr\rfloor&& 4n \\ \bigl\lfloor \frac{m}{8} \bigr\rfloor&& 8n \\ \bigl\lfloor \frac{m}{16} \bigr\rfloor&& 16n \\ \bigl\lfloor \frac{m}{32} \bigr\rfloor&& 32n \\ \end{array}$$  The sequence of numbers in both columns is the sequence $a_n = 2a_{n-1}\text{ where }a_1=2$. The columns are extended down until the value in the left column is equal to the number one. After filling out the table, the product is found by adding the values of the right column where the left column is an odd number.  For example, to multiply 18 and 37 with the algorithm:  $$\begin{array}{c} m&&n&\\ \hline 18 && 37 \\ 9 && 74 \\ 4 && 148 \\ 2 && 296 \\ 1 && 592 \\ \end{array}$$  To find the product, cross out values of the left column where the value of the right column is even:  $$\begin{array}{c} m&&n&\\ \hline \require{enclose} \enclose{horizontalstrike}{18} && \enclose{horizontalstrike}{37} \\ 9 && 74 \\ \enclose{horizontalstrike}{4} && \enclose{horizontalstrike}{148} \\ \enclose{horizontalstrike}{2} && \enclose{horizontalstrike}{296} \\ 1 && 592 \\ \end{array}$$  And add the remaining numbers in the right column to get the result: $18\times37=74+592=666$  Alternate Description of Algorithm  As an aside, here is a shorter way to describe the algorithm, repeat the below steps until the left column == 1:  • Halve the last number in the first column • Write the result below (discard the remainder) • Double the last number in the first column. • Write the result below.   Now, for every even number in the first column, delete the adjacent number in the second column. Add the remaining numbers in the second column.  What I've done so Far  I haven't been able to get much of anywhere on the proof. One thing I did was create a bit of a different way of arriving at the same outcome:  $$\begin{array}{c} m&&n&&\text{index}&&\text{remainder}&&\text{if remainder == 1, }n\times2^{Index}&\\ \hline 18 && 37 && 0 && 0 \\ 9 && 74 && 1 && 1 && 74\\ 4 && 148 && 2 && 0 \\ 2 && 296 && 3 && 0 \\ 1 && 592 && 4 && 1 && 592\\ \end{array}$$  Which brings to light the relationship between this algorithm and binary numbers (the fourth column in the above table is the product in binary, read bottom to top).   I also wrote some Python functions to help me explore the problem,


How to make a table like this? I have tried many ways to do it but all are failed. I am so confused. Thank you so much for any reply.

Is it possible to create a table like this one?    The usual structure of tables I use looks like this:  \begin{table}[H]     \begin{adjustbox}{width=\textwidth,center}     % \begin{adjustbox}{center}         \begin{tabular}{lll}             \hline             \multicolumn{1}{l}{\head{XXX}} & \multicolumn{1}{l}{\head{XXX}} & \multicolumn{1}{l}{\head{XXX}} \\             \hline             \ttfamily xxx & \ttfamily xxx & \ttfamily xxx \\             \hline         \end{tabular}     \end{adjustbox}     \vspace{ - 05 mm}     \caption{xxx}     \label{tab:xxx} \end{table}


I made a stone cabin in blender but I forgot to set materials to different parts of it and I joined it all together.  Is there a way to set materials to loose parts or do I have to separate it (which would give me about 300 loose parts)?  If there isn't, can I somehow separate loose parts one by one (so that I can separate for example all parts of roof and rejoin them separately)?

How do you add more than one material to a mesh?   I have tried adding two materials to the object, and then assigning one of the materials to a vertex-group, but I could not find a place to assign it.  I am making a striped bouncy ball that I want to deform, so adding a different material by separating the mesh into different objects would not be ideal.


Hi so I have a 2007 MacBook but there's no screen on it and I want to use an external monitor as the main display how would I go about that?

Currently the MacBook's display works as primary, so every application I open gets open on the 13" and I have to drag it to the 24". I also don't have access to the dock on my 24".  Is is possible to turn off the MacBook screen and use only the one attached via DVI?  (I've just connected my 24" HP LP2475w via Mini DisplayPort to DVI to my MacBook Pro 13", which works great except for this one thing.)


I commited my file and pushed to GitHub. But I forgot to add my HTML file. So I used git commit --amend to amend my commit. But now how can I resolve my mistake on GitHub?

When I've worked a bit with my source code, I did my usual thing commit and then I pushed to a remote repository. But then I noticed I forgot to organize my imports in the source code. So I do the amend command to replace the previous commit:  > git commit --amend   Unfortunately the commit can't be pushed back to the repository. It is rejected like this:  > git push origin To //my.remote.repo.com/stuff.git/  ! [rejected]        master -> master (non-fast forward) error: failed to push some refs to '//my.remote.repo.com/stuff.git/'   What should I do? (I can access the remote repository.)


I fried hamburger up and planned on making hamburger macaroni soup in my crockpot. I put the cooked hamburger in the crockpot, added uncooked noodles and the tomato sauce. Turned crockpot on low overnight. Somehow the crockpot got unplugged and my noodles didn't fully cook, and everything was completely cold by morning. Is it safe to plug in and continue cooking? My guess is the crockpot was unplugged for 8+ hours.

I left a round steak out for 7 hours in a container of cold water.  It was wrapped very well, hadn't been opened yet.  Is it ok to cook this? I planned on cooking it in the crockpot for 8 hours.


I am new to LaTeX. I have been creating a document with four chapters. As I am editing the chapters and compiling the code, sometimes Chapter 4 is being left out from the table of contents. To me, it seems that the chapter beginning after a certain page number is being left out and the problem is not specifically with Chapter 4 itself. For example, when Chapter 4 begins from page 12, it shows up in the table of contents as it should but disappears if it begins after page 12. However, I may be wrong. Also, I tried including Chapter 4 before Chapter 3 and everything worked perfectly.  Kindly help.  Here is the main.tex I am using:  \documentclass[11pt]{report}  \usepackage{titlesec} \titleformat{\chapter}  {\normalfont\fontsize{12}{15}}{\thechapter.}{1em}{}   \titleformat{\section}  {\normalfont\fontsize{12}{15}\bfseries}{\thesection}{1em}{}  \titleformat{\subsection}  {\normalfont\fontsize{11}{15}\bfseries}{\thesubsection}{1em}{}  \usepackage[a4paper,left=15mm,right=15mm,top=15mm,bottom=20mm, includefoot]{geometry} \usepackage{helvet} \usepackage{lipsum} \usepackage{fancyhdr} \usepackage{lastpage} \usepackage{setspace} \usepackage{graphicx} \usepackage{cite} \usepackage{lscape} \usepackage{indentfirst} \usepackage{latexsym} \usepackage{multirow} \usepackage{hhline} \usepackage{tabls} \usepackage{wrapfig} \usepackage{slashbox} \usepackage{longtable} \usepackage{supertabular} \usepackage{subeqn} \usepackage{subfigure} \usepackage{pdflscape} \usepackage{etoolbox} \titlespacing*{\chapter}{0pt}{10pt}{10pt} \fancypagestyle{main}{ \fancyhf{}  \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt}   \cfoot{Page \thepage\ of \pageref{LastPage}} }  \renewcommand{\familydefault}{\sfdefault} \setlength{\parindent}{.4in} \setcounter{tocdepth}{0} \makeatletter \patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{}{}{} \makeatother \patchcmd{\chapter}{plain}{main}{}{} \pagestyle{main}  \begin{document}  \include{Titlepage} \setcounter{page}{1} \renewcommand{\baselinestretch}{1} \small\normalsize \tableofcontents \renewcommand{\baselinestretch}{1} \small\normalsize \begingroup \let\clearpage\relax \renewcommand{\baselinestretch}{2} \small\normalsize \include{Chapter1} \renewcommand{\baselinestretch}{1} \small\normalsize \include{Chapter2} \include{Chapter3} \include{Chapter4} \endgroup \end{document}   Also, chapter 4 has  \renewcommand{\thechapter}{\textbf{4}} \chapter{\textbf{ChapterName}}  All text...

I am running into a rather weird error that apparently originates from the combination of \include, \let\clearpage\relax and a referenced label after a page break.  In this particular example, the label mylabel defined in the listing cannot be referenced anymore when the reference and the label are close enough to a page break.  The MWE consists of two files, the main-file and an included file. I am using the \let\clearpage\relax command to . The error does not occur if the file is \input instead of \included.  \documentclass[11pt,twoside]{book} %  \usepackage[utf8]{inputenc} % Enoding \usepackage[english]{babel} % Language \usepackage{listings} \usepackage{forloop}  \begin{document} \begingroup \let\clearpage\relax  \include{includedfile} % changing include for input would work  \endgroup \end{document}   Included file:   \newcounter{ct} \forloop{ct}{1}{\value{ct} < 40}% {%     .\\ }  Listing \ref{mylabel}.  \begin{lstlisting}[caption=somecaption, label=mylabel] some code; \end{lstlisting}   Running this example will have an output where the label cannot be referenced (even after multiple runs):    Now, one solution is to use \input as mentioned earlier but I am rather interested in why this happens. Does the \clearpage command fulfil an important function for references to work? And can the error be avoided without removing \let\clearpage\relax while using \include?  EDIT: I just found  with the same issue (though it does not have a definite answer).


I have a real problem with ubuntu VM CPU. It is a GCP machine, and I have web servers running on these 3 VMs.  TOP command result :  26271 www-data 20 0 178216 2552 640 S 95.9 0.1 1:22.56 .syslogs  ls -l /proc/26271/exe =>  lrwxrwxrwx 1 www-data www-data 0 May 4 20:18 /proc/10012/exe -> /var/tmp/.tmp/.syslogs  You can see that ".syslogs" is consuming a lot of CPU. I tried reboot many times but still ".syslogs" reappearing after few time.  My environnement : Server : Ubuntu Web Server : Apache2 DB : mysql CMS : Drupal 7

I am facing same kind of problem of having sync_supers recreated on my server, which are using high CPU usage:  4353 www-data 20 0 24392 3888 1012 R 100.0 0.0 13:15.26 [sync_supers] 5268 www-data 20 0 24392 3888 1012 R 100.0 0.0 9:42.56 [sync_supers] 4344 www-data 20 0 24264 3744 876 R 99.7 0.0 70:22.26 [sync_supers] 6792 www-data 20 0 24392 3892 1012 R 85.5 0.0 7:16.08 [sync_supers]   I have deleted few but again recreated with different pid.  Please help. I am not expertised in Ubuntu and linux, so bit difficult to trace the issue.  Thank you very much.


Basically, I have store number and Store name. I want to be able to start typing a name and select the name, but only show the store number.   If that is not possible, then I thought I can combine store number "-" name and then upon selection i should be able to Lens to the before "-".   Any idea?

I have a spreadsheet that I need to add new data to but the previous user made it so that I can't add data in a new row without moving down a lot of data which would mess with all the calculations.  What I am trying to do is to make it so I can add the new data to the side instead and still have the same drop down access the two separate columns. I attached a screen cap of an example of what I want below.  I have tried everything I can think of and all my searches come back with putting multiple columns in a drop down instead of just the data from them.  As you can see below the example has data in D1 to D5 and F1 to F5. If I wanted the dropdown to have the data from those columns how would I do it?  EDIT: Just to clarify there is data between the columns in the actual page which is why I can't just highlight all of it.


If there are any changes tell me... It should accept general mail ids "xyz@adaf@fa.com" should not accept "xyzadaf@fa.com","xyz@ad.co.in" should accept    function checkEmail(){   var emailFormat = /^[a-zA-Z0-9._-]+[@]{1}[.]{1}[a-z]{2,3}[.]*[a-z]{0,3}$/;   var email = document.getElementById("email").value;   var emailStatus = emailFormat.exec(email);   if(emailStatus == "true"){  alert("success");   }   else(emailStatus == "false"){  alert("Try again");    } }

Is there a regular expression to validate an email address in JavaScript?


How does one show that $$\sum_{k=0}^{n}\binom{n+k}{k}\frac{1}{2^k}=2^{n}$$ for each nonnegative integer $n$?  I tried using the  but I guess I am applying it incorrectly. With the snake oil technique we have $$F(x)= \sum_{n=0}^{\infty}\left\{\sum_{k=0}^{n}\binom{n+k}{k}\frac{1}{2^k}\right\}x^{n}.$$ I think I have to interchage the summation and do something. But I am not quite comfortable in interchanging the summation. Like after interchaging the summation will $$F(x)=\sum_{k=0}^{n}\sum_{n=0}^{\infty}\binom{n+k}{k}\frac{1}{2^k}x^{n}?$$ Even if I continue with this I am unable to get the correct answer.  How does one prove this using the Snake oil technique?  A combinatorial proof is also welcome, as are other kinds of proofs.

A teacher gave this as a homework question, and I have tried but haven't been able to arrive at a solution. $\sum_{k=0}^n {n+k \choose k} \frac{1}{2^{k}}= 2^{n}$ Could someone prove it, or at least point me in the right direction ?


(scroll down to the last two paragraphs for the tl;dr version)  I'm having an issue with the filter command and lambda functions:  sample_list = ["Fri", 4, "Sat", 6, "Sun", 4, 8.50] for item in sample_list:     day = filter(lambda item: item is str and sample_list.index(x) >= sample_list.index(item), sample_list)     print item     print type(item)     hours = filter(lambda x: x is int and sample_list.index(x) >= sample_list.index(item) + 1, sample_list)     print day, hours   (sorry if it's a little long)  the output reads that the item type is str, for example, even though the "item is str" condition in the lambda expression evaluates to false, making the return []. Here is the sample output:   Fri (type 'str') [] [] 4 (type 'int') [] [] Sat (type 'str') [] [] 6 (type 'int')   while I want the output to read something like      Fri 4 Sat 6   I'm just confused as to why the lambda expression seems to evaluate to False for "item is str" or "item is int."  For the record, I know that the print statements ought to have parentheses, I'm just using a web browser learning tool for Python that I assume runs an older version. When I was using 3.4.3 version, The output would return something like  (I don't have the actual output, it was something like that). I already looked up a solution to that specific issue, but I couldn't make heads or tails of it.   What it boils down to is I think there's an issue with the lambda expression confusing variable types. If you could offer advice, I'd really appreciate it. Also, I'm somewhat new to Python, so if you could use layman's terms that would help me understand better.

My  has failed me.  In Python, are the following two tests for equality equivalent?  n = 5 # Test one. if n == 5:     print 'Yay!'  # Test two. if n is 5:     print 'Yay!'   Does this hold true for objects where you would be comparing instances (a list say)?  Okay, so this kind of answers my question:  L = [] L.append(1) if L == [1]:     print 'Yay!' # Holds true, but...  if L is [1]:     print 'Yay!' # Doesn't.   So == tests value where is tests to see if they are the same object?


I have XML files of parlament protocols, of which I want to extract all of the interruptions mentioned. The interruptions are marked by brackets - like this:  Text I don't care about.  (applause from the right) Text I don't care about.    I was given this code, which seemed to work just fine:  files <- as.list(dir(pattern = ".xml")) my_list <- lapply(files, function(x) xmlToList(xmlParse(x))) my_list2 <- lapply(my_list, function(x) enframe(regmatches(x[["TEXT"]],                                gregexpr("(?=\\().*?(?<=\\))", x[["TEXT"]], perl=T))[[1]])   Like this I only got the (applause from the right), but now I realised, that this code apparently only considers text per line and I have some interruptions over multiple lines (1 - 3), like this  Text I don't care about. (applause from the right and  from the left) Text I don't care about.   If the interruption is in this format, I get no results. How do I have to change the gregexpr to look for one line, but also for multiple lines, until the corresponding ")" is found? I've been trying \n but so far no luck.  Thanks in advance  Edit  To further explain myself: I am looking at multiple hundreds of protocols (each one has its own XML file), each with multiple hundreds of these interruptions. So I am more specifically looking for a solution to extract them all with the same code.  A solution close to the code I used before would be extra helpful, since I am still fairly new to R.

For example, this regex  (.*)<FooBar>   will match:  abcde<FooBar>   But how do I get it to match across multiple lines?  abcde fghij<FooBar>


Is it possible to filter out Stack Exchange sites from the hot questions list?

Is there a way to filter the "hot questions" displayed in the Stack Exchange menu?    I have a profile on Stack Overflow and that's pretty much it. Therefore the list as it is now is pretty useless because it just adds noise - I'm not coming to Stack Overflow to discuss terrorists and the like ;-)


Having recently used Tavern on the Meta chat room for the first time, the room has the best and not-one-bit annoying notification sound when being tagged.  On the Aviation site, it's horrible. Not to mention the double/triple ding when the original message is edited. So it's become sort of an etiquette to not @ someone a lot.  I understand the sound can be switched off or the tab muted, but how can one request the Tavern's sound be applied to any site's chat?

Getting ping'd in some chatrooms (servers?) makes a nice little ding!, in some others you get a loud bonk! Inconsistency is evil, this needs to be fixed.  Or rather, instead of forcing a uniform bink! on all chat users across the network, how about making the ping notification sound a configurable preference?  We can already choose to have sound on or off. I propose to expand that into something like...   (off) Ding Bonk Lightsaber swoosh Knock-knock   Would that be feasible?


I'm just writing some small C scripts and testing them. Why dose  ~ Desktop: gcc test.c -o test ; /Users/xx/Desktop/test ;   work just fine while   ~ Desktop: gcc test.c -o test ; test ;   dose not work? Why dose OSX/ZSH need the full path to execute the binary?

I just installed Apache via MacPorts. It seems that my Mac was absolutely confused about which version of the Apache executables to run.  After moving the Apache executables that ship with the Mac to a directory that is not listed in the PATH variable, trying to run the httpd built by MacPorts fails even though the correct directory (/opt/local/apache2/bin) is listed in the PATH variable.  If I navigate to the directory /opt/local/apache2/bin and type the command httpd I still get the error message     -bash: httpd: command not found   If I type the command with the full path /opt/local/apache2/bin/httpd it works fine.  I've run the command alias to see if something was clashing but the only thing listed is:  alias wget='curl -O'   How do I find what is intercepting the command and preventing the executable being found in the directory, even when I'm inside the same directory?  By the way, the httpd file is executable:  -rwxr-xr-x  1 root      admin  442496  9 May  2012 httpd


I'm familiar with Aleph Null, Aleph 1, and Aleph 2 but are there greater [uncountable] infinities beyond (examples) Natural numbers, Real numbers, and the number of curves that can pass through a point? If so, what are some tangible examples of these cardinalities: Aleph 3, 4, ...

It's pretty straightforward to say that there is an infinite number of different sizes of infinity, but then I thought, "What size of infinity is that?"  My thoughts are that the number of unique cardinalities is equivalent to the number of real numbers, based on the fact that the cardinalities can always be ordered by increasing size. I don't really know how to prove this, though. It's mostly based on intuition, which isn't very reliable when talking about uncountably infinite sets.  I originally asked a somewhat related  at a different (and not math-oriented) forum, and the users there told me that it is not possible to talk about the number of cardinalities without talking about the set of all sets, which forms a paradox. If a set were to contain all of the different sizes of infinity, it would have to contain its own power set, which isn't possible.  However, I'm not completely convinced that it is not possible to talk about a set of all of the cardinalities. Sure, a cardinality represents a size of infinity, but I think that it should be possible to have a set of the cardinalities without having the set actually contain the various infinities. Would this avoid the above paradox?  So, is it possible to measure the number of different sizes of infinity, and what would that size be?


I'm from Trinidad and Tobago and I possess a valid US visa. I'm travelling to Minnesota and have have several connection flights to get there. Do I need anything other than the visa?

I have an H3 visa (Trainee visa) which allows me to enter the US for a specific amount of time.I am not a US citizen nor do I possess any state ID's, I will be in training in our Head Quarters in California.   My question is, am I allowed to fly domestically to other states with my foreign passport and a valid H3 visa?


I just lost 3 days worth of processing because win10 decided that the update was more important and rebooted the system without asking, notification or warning.  Is there a way to turn this ‘feature’ off for good?   Scheduling is not an option, since it will restart regardless.

We've upgraded some machines to Windows 10 and realized there were some updates which updated as required. However, I realized there was no option available to stop the download similar to that on Windows 7 and 8.1. The only way I could stop the download was to stop the Windows Update service.  My question is does anyone know of a way to stop auto updates or is stopping the service is the only solution?


I would like to forecast stock index returns with SVM, k-NN, and Neural Networks. In advance I want to select my inputs via kernel PCA (kPCA). Everything is performed in R. For the KPCA I use kernlab.   The data which I preprocess to the KPCA are various lagged input variables, where I want to identify the most explanatory lags through the KPCA. It is in xts format originally but for the KPCA I convert it to matrix.   Is there anybody who can tell me how I find out which of the original variables in the xts data matrix are considered to be most explanatory by the KPCA? Yet I am able to perform KPCA but I cannot interpret any results of it.  I have read the documentary of kernlab, so that did not help.

Is it possible to use kernel principal component analysis (kPCA) for Latent Semantic Indexing (LSI) in the same way as PCA is used?  I perform LSI in R using the prcomp PCA function and extract the features with highest loadings from the first $k$ components. By that I get the features describing the component best.  I tried to use the kpca function (from the kernlib package) but cannot see how to access the weights of the features to a principal component. Is this possible overall when using kernel methods?


We have the following code and Apex Test Class, and for some reason during Apex Test Execution (Developer Console-->Run Test) it is throwing the following error message below. Any ideas why the field could not be writable? The field in question is a   Long Text Area(32768). I checked that the user has CRUD on the object as well as FLS read/write on the field. I even gave the profile "Modify All" on the object and still the error below. System.SObjectException: Field is not writeable: My_API_Logs__c.My_Request__c EDIT: It seems like the only way to go around is to set the apex to "Without Sharing". This is strange and seems like a bug.     public with sharing class My_API_Log {  public static My_API_Log__c setErrorLogs(String strRequest, String strResponse, String strCode, String strErrorDetails, Id strContactId, String strType){         try{             My_API_Logs__c objError = new My_API_Logs__c();             objError.My_Request__c = strRequest;             objError.My_Response__c = strResponse;             objError.My_Status_Code__c = strCode;             objError.My_Error_Details__c = strErrorDetails;             objError.My_Contact__c = strContactId;             objError.My_Type__c = strType;             return objError;         }catch(Exception e){             throw e;         }     }    }  And the line of code that is failing is where the "insert" statement line is below: (DISCLAIMER: this is just a code snippet for simplicity) public with sharing class MyClass {     public static list<My_API_Log__c> lstLogs = new lits<My_API_Log__c>();          @AuraEnabled     public static string myMethod(){        string strresult = 'test';         HttpRequest req = new HttpRequest();        if(req.getStatusCode() == 200){                    insert My_API_Log.setErrorLogs('Test', 'Test,'Test', 'Test',null, 'Test'); //This is where its erroring out!        }             return strresult;     } }  Apex Test Class @isTest(seeAllData=false) public class MyClassTest{     static testMethod void testMyMethod(){         //Created Account         //Created Contact         //Created the Contact as a User (CustomerCommunityUser).           System.runAs(CustomerCommunityUser){         Test.startTest();          Map<String, String> headers = new Map<String, String>();         headers.put('Content-Type','application/json');                    MyClassMock mock= new MyClassMock(             200,             'success',             'success',             headers         );         Test.setMock(HttpCalloutMock.class, mockFailure);          String str = MyClass.myMethod();         Test.stopTest();          }     } }

We have an object (let's call it Child) with a formula field that does a lot of checking of various fields and spits out a numeric result (estimated number of days some work will take, based on a bunch of flags and conditions).  Another object (Parent) has multiple Children related to it through a lookup.   I wrote an apex class that aggregates the Children of a Parent in various ways based on several fields, including the formula result. I now want to test that logic, but when I try to create some sample Children to feed into my test, I'm told that I can't write to formula fields.  I don't want to figure out how to build a tree of objects and set specific fields to get the value I want to test from the formula field. Furthermore, the formula has a limited set of results, which may change in the future (say, the business decides that some particular type of work takes 8 days instead of 10). I want to test various edge cases that the formula can't produce today.   What's the best approach to this?


A third-party app I have requires a *.pem certificate to be able to open a wss connection. How can I generate a *.pem file, keeping in mind that I need that only for testing, therefore I want an easy, not necessarily a really secure way to do so.  I'm on Arch Linux.

I want to create self signed certificate for the website. The old certificate expired few days ago. There are more than one NameVirtualHosts hosted on systems. The commands I am using to create certificate are taken from one tutorial website and are:  openssl genrsa -des3 -out server.key 1024 openssl req -new -key server.key -out server.csr  cp server.key server.key.org openssl rsa -in server.key.org -out server.key openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt   After this in ssl.conf file I have specified under VirtualHost section along with old settings done by other admin  SSLEngine on SSLCertificateFile <full_path>/server.crt SSLCertificateKeyFile <full_path>/server.key   On starting the server I am getting following messages in log file and server fails to start.  In error_log file messages are   [Mon Jun 01 23:52:46 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)   In ssl_error_log file messages are   [Mon Jun 01 23:52:46 2009] [error] Init: Private key not found  [Mon Jun 01 23:52:46 2009] [error] SSL Library Error: 218710120 error:0D094068:asn1 encoding routines:d2i_ASN1_SET:bad tag  [Mon Jun 01 23:52:46 2009] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag  [Mon Jun 01 23:52:46 2009] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error  [Mon Jun 01 23:52:46 2009] [error] SSL Library Error: 218734605 error:0D09A00D:asn1 encoding routines:d2i_PrivateKey:ASN1 lib   I would really appreciate if some one can explain how to solve this. I have tried a few other tutorial website on self signed SSL certificates but none of the steps they mention are working.


The alternating harmonic series $a:=\sum_{n=1}^{\infty}{\frac{(-1)^{n-1}}n}$ converges by the Leibnitz-criteria. Now consider the following rearrangement of this series given by: \begin{align} S:=1+\frac{1}{3}-\frac{1}{2}-\frac{1}{4}+\frac{1}{5}+\frac{1}{7}-...+\frac{1}{4n-3}+\frac{1}{4n-1}-\frac{1}{4n-2}-\frac{1}{4n}+... \end{align} I want to see that this series converges aswell and has the same value $a$. I am stuck with this one. Does someone have a hint how to start this?   Edit: this not a duplicate to the question in the link below since I am asking on how to get the limit value of this series.

I was looking through my lecture notes and got puzzled by the following fact: if we want to find the value of some infinite series we are allowed to rearrange only the finite number of its terms. To visualize this consider the alternating harmonic series: $$\sum_{n=1}^\infty(-1)^{k-1}\frac1k=1-\frac12+\frac13-\frac14+\frac15-+\dots=0.693147...$$  But if we rearrange the terms as follows the value of the series gets influenced by this action: $$1+\frac13-\frac12+\frac15+\frac17-\frac14+\dots=1.03972...$$  So commutativity of addition isn't true on infinity? How was it obtained and how can it be proved?


I'm trying to install Spotify on my Lubuntu following this guide: .   But neither of the methods work.   With snap I get on console error: snap "spotify" not found.   And with the deb package I get   Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  spotify-client : Depends: libcurl3 but it is not going to be installed                   Recommends: libavcodec-ffmpeg56 but it is not installable or                               libavcodec-ffmpeg-extra56 but it is not installable or                               libavcodec54 but it is not installable or                               libavcodec-extra-54 but it is not installable                   Recommends: libavformat-ffmpeg56 but it is not installable or                               libavformat54 but it is not installable E: Unable to correct problems, you have held broken packages.   What can I do to install Spotify in Lubuntu 18.04? I was able to install it with snap on Kubuntu 18.04 about a month ago.

After upgrading from 10.04 to 12.04 I am trying to install different packages.  For instance ia32-libs and skype (4.0).  When trying to install these, I am getting the 'Unable to correct problems, you have held broken packages' error message.   Output of commands:  sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   After running this:  sudo dpkg --configure -a foo@foo:~$ sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


I was wondering what is the max amount of bytes per packet does google.com accept, I tested it out with CMD and turns out that it is 1472.  Why can I not ping with more bytes per packet? Is this value (1472) random or does it mean anything?

After having VPN problems with my new internet provider on LTE router Huawei B315s-22, found out such interesting behavior:  ping bite.lv -f -l 1436 -n 1 -----> Reply from 213.226.139.45: bytes=1436 time=48ms TTL=57 ping bite.lv -f -l 1437 -n 1 -----> Request timed out.                    .... ping bite.lv -f -l 1472 -n 1 -----> Request timed out. ping bite.lv -f -l 1473 -n 1 -----> Packet needs to be fragmented but DF set.   Seems for packet size range 1437—1472 ping request always times out.  Changing MTU size on the router to 1400 does not help.


This is for me the biggest unresolved question of the Books. Dumbledore planned from the beginning that Harry should first destroy all Horcruxes and then should die by the hand of Voldemort (which leads to Piton telling to Harry that he must die) and that Harry should kill Voldemort as last thing. The point is: why? Harry since The Goblet of Fire was "immortal", namely since Voldemort took Harry's blood in his vein. Quoting the 7th book, chapter 35:  ‘Precisely!’ said Dumbledore. ‘He took your blood and rebuilt his living body with it! Your blood in his veins, Harry, Lily’s protection inside both of you! He tethered you to life while he lives!’ ‘I live ... while he lives? But I thought ... I thought it was the other way round! I thought we both had to die? Or is it the same thing? [...] ‘He took your blood believing it would strenghten him. he took into his body a tiny part of the enchantment your mother laid upon ypu when she died for you. His body keeps her sacrifice alive, and while that enchantment survives, so do you’. And this all make sense with the prophecy.  So, it is clear that Harry would (or better COULD, if he chose to return back every time he died) live, even if he jumped from a cliff or someone killed him, till Voldemort was alive. Then, why not kill himself alone (or with the help of his friends) to destroy the part of Voldemort which is in him and then do the other things? Why is it so essential" that it is Voldemort to kill Harry? The only reason I could find is the fact that Dumbledore wanted Harry to accept death so that he could fully handle all the Deathly Hallows in order to have the power to kill Voldemort (and yes, the Deathly Hallows in the books have only the function of making Harry strong enough to kill Voldemort, which in the end happened and was the reason Harry won, because Voldemort died by the Elder Wand as Harry was the master of it, since Harry took it from Draco's manor. Deathly Hallows have nothing to do with Harry returning to life or anything special, they are only power). To support this, in book 7, chapter 35 Dumbledore says:  ‘If you laid hands on them, I wanted you to possess them safely. You are the true master of death, because the true master does not seek to run away from Death. He accepts that he must die’.  Still, Harry could have processed and accepted death even from other Death Eaters or other people, so I think that this is not the answer.

‘So the boy ... the boy must die?’ asked Snape, quite calmly.   ‘And Voldemort himself must do it, Severus. That is essential.’   Deathly Hallows - page 551 - UK Hardcover - chapter 33, The Prince's Tale   Dumbledore tells Snape it is 'essential' that Voldemort be the one to kill Harry, I'm assuming in order for the piece of Voldemort's soul in Harry to be properly killed as well.  But why?   Hermione destroyed the Hufflepuff cup; Ron destroyed the Slytherin locket; Neville killed Nagini; Harry destroyed the diadem and Tom Riddle's diary. So the Horcruxes were not immune to destruction at the hand of someone other than Voldemort. And as it ended up, Harry himself wasn't even a Horcrux, but rather just an unknowing host to a parasitic bit of Voldemort's soul.   Why was it 'essential' that Voldemort be the one to kill Harry in order for the piece of Voldemort's soul to die?


I have a design in Photoshop CS4 that I want to print on multiple glossy sheets of paper to create a wall-sized image.  Using the slice tool I cut it into 99 pieces, each of which I want to print on an 8.5 * 11, horizontally oriented.  How can I prepare each slice for printing? Should I create a new document for each, and if so how should I prepare the document/image size in order to make each full slice to be a full page, without losing resolution?

Is there a a way with GIMP editor to crop a big picture into several small equal sized pictures? So when all those small pictures connected in order would make a big picture.


On Ubuntu 16.04 I made bootable windows 7 using unetbootin which I downloaded from the software centre to create a windows partation for games, but on restart the unetbootin menu doesn't have any options, its just blank. All there is is "default" and a countdown which resets after hiting zero. Is there an alternative software to make bootable USB using the win7 iso which is simple to download,install and use or a fix to the unetbootin problem.

I made a bootable Windows 7 USB using UNetbootin, and when I try to boot from the bootable USB and select the Default boot menu entry, it gets stuck at the UNetbootin boot menu and it keeps repeating an Automatic boot in 10 seconds... message in an endless countdown loop. Selecting Press [Tab] to edit options and editing the options has no effect. When I go back to the boot menu, it keeps repeating the same countdown loop.   I've tried redoing the UNetbootin extraction, but I still have the same issue.


I know I can configure the Touch Bar Control Strip in System Preferences, but how do I configure the items shown when the screen is locked?  In particular, I would like to configure it so that the previous/play-pause/next and mute/volume down/volume up keys remain in the same position regardless of whether the screen is locked or not.

On the 2016 MacBook Pro with touch bar, most Apple applications allow you to customize the touch bar. It's also possible to change the control strip in the System Preferences.  However, I can't find a way to change the touch screen buttons that are displayed on the lock screen. I would like to add the backward/forward media buttons besides the play button.  Does anybody know how (or: whether) this is possible?


what are the good alternatives to Notepad++ for code editing in Lubuntu? I'm a web designer mostly wanting a good editor for php, html and css editing. I've been using Notepad++ on Windows so something similar will be nice. But I'm ready to tryout other programs which maybe different or have better features. Thanks

I use  on Windows 7 and I want to know if there is a good substitution for it on Ubuntu.   I want something that is good for editing html files.


When you click to read a Yahoo news article, the URL is suffixed with .html  Why Yahoo does not opt for pretty URLs instead? Is .html URL suffixing better for SEO?

I've always wondered about this and never found a good solution.  But  reminded me of it.  When I have a URL on my website it can be displayed and accessed any of the following ways:  http://www.somesite.com/subdirectory http://www.somesite.com/subdirectory/ http://www.somesite.com/subdirectory/index.htm http://www.somesite.com/subdirectory/index.html http://www.somesite.com/subdirectory/index.php http://www.somesite.com/subdirectory/index.asp http://www.somesite.com/subdirectory/some-relevant-keywords http://www.somesite.com/subdirectory/some-relevant-keywords.htm http://www.somesite.com/subdirectory/index.php?page=some-relevant-keywords http://www.somesite.com/subdirectory/?page=some-relevant-keywords http://www.somesite.com/subdirectory/?page=some-relevant-keywords&even=more-keywords   etc...   Now, I can understand the merits of adding keywords in the URL. Even the most basic SEO guide will mention to do just that. ... but for the sake of sanity, clarity, ease of reading, ease of use, and so on, including web compliance ...  Is it preferred to have a file-extension or not?  Really, deep down my logic tells me: yes, it should. The reason being is this stems back to the days of the past when the internet was mostly USENET, FIDONET, FTP and GOPHER.   See, if a URL has no filename, then it normally is considered a directory. This is where index.htm came about, because this by default lists the directory if no index file is found. However, soon enough, web programmers started overriding this and using index.htm to actually serve the content of that web directory as a page. The main difference, was markup language was added in, and this was parsed in the browser. With this markup language, the Content-Type:text/html; tag in the response header became the indicator to what filetype it was for any file. HTML seems to be the only "filetype" that just doesn't have consistently named extensions, except for when they are saved.  Unfortunately, once web pages became the main thing, it became a security error to actually display the directory contents, so everything stayed hidden with only the actual URL content being displayed.   Not to mention the cross-platform file-naming wars.. windows based require a 3 or less digit extension, and unix/mac can have more. So should it be .HTM or .HTML or NONE and let the platform decide?  So in essence, I guess what I am trying to figure out is beyond SEO and dealing more with aesthetics and web compliance.


Let's say I have a file which has some ls -l output:  waaa- foo.pdf -bbb- foobar.pdf -ccc- foobar waaa- foobar   I'd like to get just the first line   waaa -foo.pdf   as the final result, and I'm trying:  egrep -E "^w" .file | egrep -E "*.pdf"   Is there any way to combine these two searches?

I've been trying to find a way to filter a line that has the word "lemon" and "rice" in it. I know how to find "lemon"  or "rice"  but not the two of them. They don't need to be next to the other, just one the same line of text.


I am trying to get a list of all emails that I have sent an email to using my Gmail account. I am using Google Apps if that makes any difference.  Update: I have found , but it only looks at the sender of the emails, whereas I am looking for a list of recipients.

How can I export a list containing e-mail addresses for everyone that has sent me an e-mail?  I have all of the messages archived.


I am very new to using predicates and just learned how to write:  Predicate<int> pre = delegate(int a){ a %2 == 0 };   What will the predicate return, and how is it useful when programming?

Can you explain to me:   What is a Predicate Delegate? Where should we use predicates? Any best practices when using predicates?   Descriptive source code will be appreciated.


We're using Amazon's AWS infrastructure. At one time, we did have a load-balanced setup across geographic regions, and our database cluster was divided between those regions. To reduce costs for the time being, and to solve some clustering issues we were having, we cut back to using regions inside the US only. Our latency in other regions is now totally horrible.  Using a CDN for assets (images, files) will satisfy our file-serving needs, but our site is extremely dynamic in nature with pages saving data frequently. This is definitely a First World Problem and one that's come about since the advent of AJAX. Surely, we do not need to re-invent the wheel.  Is using other regions in AWS the only option, and will we have to suck up the less-than-desired database clustering issues? Or... is there a better way?  Also, if we went with distinct architecture in each region, i.e. different database, is there an efficient means to keep data in sync between separate clusters. We're using Percona, for the record.

I host am ExpressionEngine based website on a single Amazon EC2 instance in the US East (Virginia) region. I use Ubuntu.    The website allows members to post their content, and displays it for other members and for users who are not logged in.   Goal: I need to begin serving the same website across the globe, equally fast to Hong Kong, New York, and Los Angeles.   I considered two solutions:  1.Setting up three separate EC2 instances for three regions: Virginia, Oregon, and Singapore. Use Amazon Rot53 Geo Location to direct traffic to instances based on the browser's IP address.   Pro: the website will load fast for the region.   Contra: these will be essentially three separate websites. Unless I am mistaken?   Setting up one instance in a region equally remote from all three locations: (Ireliand), and boost the server to the highest performance available.    Pro: It will be the same website for all regions.   Contra: it will cost a lot to make it fast enough.   My challenges:   a) I do not know a way to sync server settings, database, and content between multiple Ubuntu instances in real time. If a knowledgeable person could explain to me how to do that, I would be most grateful.   b) I am not thoroughly familiar with all Amazon AWS resources. Does AWS has a built-in method that would allow me to achieve my goal of serving a single PHP / MySQL based membership website across the globe equally fast in all three chosen locations?


I know how to generate contour lines from a DEM file once the file is loaded in QGIS and I also know how to open the attribute table for the contour lines which show elevation against IDs.  Is there a way to look at elevation values against sets of longitude and latitude values in QGIS? In other words, is there a way to extract and look at XYZ data from a DEM file in QGIS?

I have a .tif file that contains all the elevation of a country.   How can I convert that to a CSV file that contains x,y,z values where x and y are the latitude longitude respectively and the z column is the elevation using QGIS?


Okay, so my machine suffered a power loss this morning, and when Time Machine went to back-up it seems to have decided it can't trust the usual event log that it uses:  02/10/2014 14:56:43.351 com.apple.backupd[63107]: Event store UUIDs don't match for volume: Macintosh HD   It then proceeds to do a deep-scan, which is understandable I suppose.  02/10/2014 14:56:43.428 com.apple.backupd[63107]: Deep event scan at path:/ reason:must scan subdirs|new event db| 02/10/2014 15:04:58.809 com.apple.backupd[63107]: Finished scan 02/10/2014 15:10:53.693 com.apple.backupd[63107]: Found 402101 files (1.8 TB) needing backup 02/10/2014 15:10:53.747 com.apple.backupd[63107]: 2.16 TB required (including padding), 1.04 TB available   However, the required space estimate is far too high; my back-up volume's total size is only 3tb, and the total data on Macintosh HD is around 2tb, this means that if I let Time Machine continue to run it's going to delete all of my backup history and then fail with a warning that it can't backup because there isn't enough space.  This is clearly wrong however, as the back-ups on the disk are valid, and should be matching most of the files found on Macintosh HD.  Is there a way I can get Time Machine to recognise this and adjust its estimate accordingly? If not then I'm going to have to start fresh with a new back-up, but that will take days to get up to date again!  [edit] I've just tried using tmutil associatedisk -a and tmutil inheritbackup to no avail, after an even longer deep scan it just starts trying to discard old backups again.

Time Machine stopped this morning, stating it has too little disk space left. It wants to back up 200 gigs, but my local hard drive has 240 gig used and 150 gig are excluded in the Time Machine options, so this leaves 90 gigs of data at most that can be backed up, and I am pretty sure only very few files have changed (no big update or similar). So I would estimate a backup of, at most, 1 gig.  How can this happen? Any idea?


I have gotten into the habit of stealing a car and taking it to Los Santos customs once an hour or so to sell. The prices have ranged from a lowly $1000 up to $8000 as the highest I've seen so far. What cars I should target to maximize this hourly profit? A top 5 list would be nice.

Note that these cars would also be outfitable with a tracker and insurance, and therefore useable as a personal car without having to buy.


I have a base class that has a template type. I am explicitly overriding this template type in the child class because that child class will only ever operate on the type that it is designed for. This is leading to linker errors however. I have two functions in the base class, one is provided since it will be common for all child classes. The other function is purely virtual and is to be meant to be overridden by the child class. I can compile and link the second function just fine, however linking the first function leads to an error:   error LNK2019: unresolved external symbol "public: bool __thiscall BaseDecoder<class APacket>::unpack(class std::vector<unsigned char,class std::allocator<unsigned char> > const &,class std::vector<class Frame,class std::allocator<class Frame> > &)"     This message sort of makes sense because there is no BaseDecoder<APacket> that implements the unpack function, just a BaseDecoder<class PacketType> implementation.  Here is my class structure:  Base class:  template <class PacketType> class BaseDecoder { public:    BaseDecoder(){};    virtual ~BaseDecoder(){};      bool unpack(const std::vector<uint8_t>& traceData, std::vector<Frame>& frameData);     virtual bool decode(std::vector<Frame>& frameData, std::vector<PacketType>& packetData) = 0; }   Derived class:  class ADecoder : public BaseDecoder<APacket> { public:     ADecoder();     ~ADecoder();      bool decode(std::vector<Frame>& frameData, std::vector<APacket>& packetData) override; }   Main:  std::vector<uint8_t>* raw_data = getRawData(); std::vector<Frame> frame_data; a_decoder->BaseDecoder::unpack(*raw_data, frame_data); std::vector<APacket> a_packets; a_decoder->decode(frame_data, a_packets);   How can I get this to link the BaseDecoder<APacket> unpack() to BaseDecoder<class PacketType> unpack() instead, since that function does not actually touch the template type?

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 kinda want to convey the point that all this individual's texts are just as meaningful as the phrase "I am Groot." Can this be done on my iPhone? That is, anytime I get a text from said individual, it will automatically reply "I am Groot."

Is it possible to set up an auto-reply to an incoming text or iMessage, either on my iPhone (or the connected Message app on my Mac)?  Ideally I'd like to customize this depending upon the sender.


Naive view of particle physics The interactions come from fermionic particles exchanging bosons. Specifically, electromagnetic interactions result from charged particles exchanging photons.   Question Is the electrostatic interaction simply a limiting case of such photon exchange at very low frequencies? This seems to be logical, since otherwise it would be instantaneous.

Since Newton's law of gravitation can be gotten out of Einstein's field equatons as an approximation, I was wondering whether the same applies for the electromagnetic force being the exchange of photons. Is there an equation governing the force from the exchange of photons? Are there any links which would show how the Coulomb force comes out of the equations for photon exchange? I know that my question is somewhat similar to the one posted here , but it doesn't really have an answer to my question specifically.


Spotify auto-launches even if I tell it not to from within its own preferences. It does not seem to be started through any of the "classic" means of auto starting a program - i.e. Login Items or user or global launch agents. Is there any way to turn off this sort of 'modern login items' in general? (official name: shared helper applications) Extra points for preventing auto-launching of any apps, especially after MacOS crashed.

I know there are Login Items under Users & Groups and /Library/LaunchAgents and /Library/LaunchDaemons under Library, System/Library and Users/FooUser/Library. And then there's right click on Dock icon -> Options -> Open at Login.  What other methods are there for apps to auto-start? The reason why I'm asking is because the Spotify App (downloaded from ) keeps starting up whenever I restart my Mac, even though I made sure there is no corresponding entry in any of the above mentioned places.


When I run my LaTeX document through pdflatex, some of the pages (the ones where figures appear) have all the text bolded.  Why, and what can I do to make it stop?

I'm using pdflatex, and use \includegraphics to include content of figures from PDF. PDF are exported from InkScape.  \begin{figure} [!h]     \centering     \includegraphics[height=3cm]{fig/SUSAN.pdf} \end{figure}   Included PDF or source SVG has same colors. Green has always RGB value (0, 255, 0). Problem occurs when I include this files from LaTeX. In output PDF on some pages colorspace is darker. Even same image on other page has different colourity.  My PDF  . As you can see on page 7 (11 in PDF) USAN areas are bright green, but then on page 5 (9 in PDF) are green points on corners more darker.


"A great deal of thoughts(are/is) into the designing of the auditorium". Is it "is" or "are"?give explanation for the correct answer.My book says it is "is".I think its a typing mistake of my book.

I am writing a literature review. My question is which sentence is correct?   Most of the existing work focus on... Most of the existing work focuses on ... Most of the existing studies focus on ...   Thanks


I'm using mainly blender for video editing usually, (and virtualdub). (yes i know it takes a bit more time, but i prefer the finer blender control) Recently I started to use 2.8 for video editing. I kinda wonder how one might create a fast forward effect. ea start at 30fps, then smoothly go to 90fps and smoothly back to 30 fps. I have some footage that contains a bit boring period, (drone flight), but i cannot realy cut it out either (that brakes the flight route, i dont want that).

I want to accelerate the speed of a video and decelerate some seconds before it ends. I wonder if it's possible to do it into the video editing. I know how to increase the speed of a strip but, what I need is a trasition between normal speed and fast speed.


In a piece I'm writing about financial markets, I'm worried that I'll stir controversy amongst economists. Do I write: I'll clarify this before a bunch of economists jumps down my throat. or I'll clarify this before a bunch of economists jump down my throat. Does the verb conjugation refer to the singular "bunch", or the plural "economists"? I see a somewhat related question  but I'm not sure it's exactly the same grammatical situation.

I am writing an ad and would like to write: "Our team of economists are at your service and available by phone or email.  They will be happy to respond...".  I know that grammatically speaking, 'team' is the subject of the sentence and, being singular, would dictate that 'it' is "at your service".  BUT, it just feels better reading this and it evokes a picture of a bunch of economists doing what they do rather than a single unit".  Is what I'm doing OK?  Should I be arrested by the grammar police?


So, the question pretty much says it all. I'm on Snow Leopard, and I do a lot of web development, particularly in Rails 3 which makes heavy use of the console.  I've seen some notable bloggers etc. mention Zsh as their preference over Bash, but I don't know what difference it would make.  Could anyone give me a good comparison of what difference there is and what might make one prefer one option or the other?

With the news that , I'm finding lots of results telling me about the switch, and that it may cause problems with shell scripts, but I'm not familiar enough with Zsh to know what those problems might be.  My shell scripts are really not that complicated, but I've only ever used Bash on macOS and Linux - zero experience with Zsh. Can anyone provide a simple practical comparison, or specific stumbling blocks I will need to know, so that I can start working towards being ready for the new shell when Catalina is released?


I'm reading Hecht's Optics and I have a problem understanding a step in the derivation of the complex notation of waves  He writes that the wave equation for a harmonic wave can be written as $\Psi(x,t) = \operatorname{Re}(Ae^{i(\omega t -kx + \epsilon)})$ which is equal to $\Psi(x,t) = A \cos(\omega t -kx + \epsilon)$. And that step I understand.  However, next he writes that because of this the wave equation can be written as $\Psi(x,t) = Ae^{i(\omega t -kx + \epsilon)}$. And that step I don't understand. Why does he write that $\operatorname{Re}(Ae^{i(\omega t -kx + \epsilon)}) = Ae^{i(\omega t -kx + \epsilon)} $?   Edit: See my reason for believing that this is not a duplicate in the comments below

I've read that plane wave equations can be represented in various forms, like sine or cosine curves, etc. What is the part of the imaginary unit $i$ when plane waves are represented in the form $$f(x) = Ae^{i (kx - \omega t)},$$ using complex exponentials?


I would like a little bit of help with Blender 2.8. I don't know why the X coordinate of the highlighted vertex is -2 in the local coordinate system ? I think it should be something like -3.4 ? Y and Z seems ok, but not the X.

I just found out about the Mesh Display : Length feature in the "N" panel (thanks to ) that allows one to measure the length of a face or vertice.  But my first encounter with this tool gives me complex feelings of love and hate, see how, as I was trying to measure the aspect ratio of this TV screen, I am getting WIDTH = 20.33 and HEIGHT = 37.57.  These values seem awfully wrong, since my betrusted eyes tell me the height should be shorter than the width.    I have tried measuring the single vertices as well, to identical results.


Hi everyone and thanks for your help. I have the following situation: a table called statements that contains fields id(int), stmnt_date(date), debit(double), credit(double) and balance(double)   I want to calculate the balance following these rules:   The first row balance (chronologically) = debit - credit and for the rest of the rows  current row balance = chronologically previous row balance + current row debit - current row credit  As you can see on the picture above the rows are not arranged by date and that's why I used the word chronologically twice to emphasize on the importance of the stmnt_date value.  Thank you very much for your help.


Hello I am a Windows 7 user and I am planning to replace it by Ubuntu. I have three drives and windows 7 is installed in drive C. I just want to know that weather all my drives will be formatted while replacing it with Ubuntu or only C drive (where my Windows 7 is currently installed)?

I am a newbie in linux. I wanted to install ubuntu to my desktop. I currently have two partitions, Windows 8 in installed on one, and i have some important files in another partition. While installing ubuntu, if I chose "Replace Windows 8 with Ubuntu", do I lose the other partition too?   And are there other ways to leave the other partition as it is, and install ubuntu in the partition  where windows was installed.


Trying to figure out what this means -> see image, any help is greatly appreciated!

What do the different colours in Ubuntu's ls command mean? For example, when I type the ls command in one of my folders, I get one of the files in light green, the other (which is a folder) in blue with green highlighting.   What do those colours mean, and there is any manual about all the colours?


I have a GMail account (aa@gmail.com) and I always log in with this account on Stack Overflow.  Now,I was forbidden to use this aa@gmail.com account but I can use new account(bb@gmail.com) .  I treasure my reputations and badges on Stack Overflow.  Therefore, when I use Stack Overflow, I want to get my reputations of aa@gmail.com by logging in with bb@gmail.com.  Can I change login account on Stack Overflow?

I no longer use the service that I originally used to register, and would like to change the service I use to log in, or at least add a second account.  Is this possible? How do I change my login provider or associate a backup method to log in?     For more information, see "" in the .


I need AltGr a lot for the purpose of {,[,],},... and it is uncomfortable to only have it available for my right hand. So, I'd like to change Caps Lock into AltGr.

I want to change the key bindings on some of the keys on my keyboard.  I want some to run commands and others to activate different keys.  What applications can I use to do this?      Index:       (from within System Settings)             I'm still looking for answers using dconf and any other method.


One of the kinematic equations, $\vec{v}^2 = \vec{v}_0^2 + 2\vec{a}\cdot \Delta \vec{x}$, involves squaring the initial and final velocities. My questions is, if velocity is a vector, what meaning does the squaring have? Does it signify taking a dot product with itself?

In the undergraduate text of physics, the equation for velocity and displacement at constant acceleration are given in scalar form. For example, my text reads  $$v^2 = v_0^2 + 2a(x-x_0)$$  But today, I am reading another text which gives the vector form for displacement. I am trying to write above equation in vector form also but how do I deal with that square in vector? I am tackling that square with dot product of two vector such that $v^2 \to \vec{v}\cdot\vec{v}$, is that correct? So what about the multiplication of acceleration and the displacement? dot product again?  This equation looks a bit confusing to me. Let's say I throw a stone upright with initial speed $v_0$ and it reaches the highest point sometimes later (so $v=0$), and the coordinate is given with y axis down and x axis horizontal. Note that the displacement is negative since the coordinate's yaxis is downward, also the gravity is along the positive y axis so the equation becomes $$   0 = v_0^2 + 2g(-x) $$ which gives $$   x = \frac{v_0^2}{2g} $$ is that right?


I have an ArrayList of testobject And I want to save it in sqlite database.      class testobject {       public static String x="";       public staticint y=0;       public static boolean z=false;  }   after some search I found  And I use it.       ArrayList<testobject> items=new ArrayList<testobject()>;  items.add(new testobject()); //To insert,  JSONObject json = new JSONObject(); json.put("uniqueArrays", new JSONArray(items)); String arrayList = json.toString(); // Insert the string into db.  //To Read, Read the string from db as String,  JSONObject json = new JSONObject(stringreadfromsqlite); ArrayList items = json.optJSONArray("uniqueArrays"); Log.d("","itemssize="+items.size);   but the problem is when I want to read my ArrayList from database, it gives this error message for this line "Log.d("","itemssize="+items.size);":    java.long.NullPointException       actually inested of this line "JSONObject json = new JSONObject(stringreadfromsqlite);" I use "JSONObject json = new JSONObject();" is it myproblem for that? whats wrong? as @satur9nine said its dosn't possible to convert my ArrayList to json. so how can i save my arraylist?

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


I am creating an app in which i am using broadcast receiver to get the content of the coming message.I am using an interface to implement the broadcast receiver binding and unbinding.This is already implemented in my another app.There it works fine,but in current app ,app crashes if the activity is stopped or destroyed which gives the following error  Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'void com.encureit.a24klen.interfaces.SmsListerner.messageReceived(java.lang.String)' on a null object reference   Here is my broadcast receiver class code:  public class SmsReceiver extends BroadcastReceiver { private static SmsListerner smsListener; @Override public void onReceive(Context context, Intent intent) {     Bundle bundle=intent.getExtras();      Object []pdus= (Object[]) bundle.get("pdus");      for (int i=0;i<pdus.length;i++){         SmsMessage smsMessage=SmsMessage.createFromPdu((byte[]) pdus[i]);          String messagBody=smsMessage.getMessageBody();         if (messagBody.contains("Password")){             smsListener.messageReceived(messagBody);         }     }  }  public static void bindListner(SmsListerner listener){      smsListener=listener; }  public static void unBindListener(){     smsListener=null; } }   I am calling these methods in my activity's onresume()    @Override protected void onResume() {     super.onResume();     SmsReceiver.bindListner(new SmsListerner() {         @Override         public void messageReceived(String messageText) {             String msg=messageText;             if (msg.contains("data")){                 //string operations             }          }     }); }   and in onDestroy   @Override protected void onStop() {     super.onStop();     SmsReceiver.unBindListener();  }   Message comes and everything works fine but when app is in background it crashes.Please help me regarding this .Thanks in adavance


I have 2000 rep points and therefore have edit privileges, but I want to suggest an edit to an answer, because I wouldn't just improve grammar and formatting, but overhaul the answer to make it more clear and concise. I think the poster would appreciate it, but I want to get their permission first.  Possible solutions:   Use a private browsing session to suggest the edit as an anonymous user Go ahead and post it (and let OP roll it back if they prefer) Write a comment asking if OP would appreciate it

I have now enough reputation points on Stack Overflow to edit every post directly. But sometimes (especially if this is about a field where I'm not savvy, or when I try to edit a question title without having understood the question itself) I might be not totally sure about whether my edit really is an improvement.  For now, I have these options:   Do the edit anyway, hope that someone else will catch it if it is wrong Don't do the edit, and hope that someone else will see this post and edit it in the right way Let a comment and hope that someone will see it (either after editing or instead of it). Flag the post for moderator attention (but will the moderators know it better?) Search the right chat room to find someone who knows more about the topic.   All these are not really optimal, I think.  I would like to have a check box     [_] Submit this edit for approval   which, when checked, would submit the edit into the usual edit approval queue. Then I would get at least one or two other pairs of eyes looking over my edit, and maybe even improving it.  (I don't really care about the +2 reputation for the edit - I think it should be without any reputation difference here.)  There's an  for nearly giving everyone the ability to suggest edits that the post owner can approve, but I'm simply interested in being able to insert them into the general edit queue where anyone can approve them.  Actually, I could do this right now by having a low-reputation sock puppet (or a totally anonymous edit), but I think this is not the intended use for sock puppets, is it? Also, I would like to be able to get feedback for my edit.


How can I generate the Wednesday 9th, 9:24pm using the daystrftime -> (DateTime) method? I am using the Time.now.strftime("%A%e, %l:%M%P") and the output is Wednesday 9,  9:24pm But how can I add the th or nd suffix? Ideal output should be Wednesday 9th, 9:24pm or Wednesday 2nd,  9:24pm or Wednesday 1st,  9:24pm

I want to display dates in the format: short day of week, short month, day of month without leading zero but including "th", "st", "nd", or "rd" suffix.  For example, the day this question was asked would display "Thu Oct 2nd".  I'm using Ruby 1.8.7, and  just doesn't seem to do this.  I'd prefer a standard library if one exists.


During a fault, how does current flow through the earth wire when the earth wire has no return path? Doesn't the earth wire in earth grounding terminate at a copper plate located deep underground, making the current flow unidirectional with no return path?

When I studied how AC mains power works, I learned that one of the wires is connected to the ground or a body of water so that it can get back to the power station. The concept baffles me. Every source of information I've come across fails to explain how it works or quickly glosses over it as if it is self explanatory.   If power can travel through the water or the earth back to the power station, then why aren't we getting vaporized when we walk on the ground near power lines?  Also, how does an isolation transformer prevent you or your equipment from getting fried? If I touch both terminals of the secondary, am I going to get fried?


How can I show that every group of order $35$ is abelian ? I know that if such a group is abelian the it's isomorphic to $\mathbb Z_{35}$ or $\mathbb Z_7\times \mathbb Z_5$. But, how can I show that any group of order 35 is either isomorphic to $\mathbb Z_{35}$ or to $\mathbb Z_7\times \mathbb Z_5$ ?

Let $G$ be a group of order 35. Show that $G \cong Z_{35}$  Now, I am going to assume that this is a LaGrange based question. Also, I know that in order to be isomorphic, it must be one to one and onto.


I'm trying to post a question on SO, and am seeing the following when I click the "Post Your Question" button:    However, there is no other info anywhere on the page as to what the error might be. Tried it twice, and still getting the same error. Bug, or PEBKAC error? If PEBKAC, how do I figure out what's preventing me from posting so I can fix it?

OK, I've been having weird problems for the last 1/2 hour trying to  on StackOverflow, and I keep getting this result (on Firefox 3.6)     The connection was reset      The connection to the server was reset while the page was loading.         The site could be temporarily unavailable or too busy. Try again in a few        moments.   If you are unable to load any pages, check your computer's network        connection.   If your computer or network is protected by a firewall or proxy, make sure        that Firefox is permitted to access the Web.      The problem seems to occur when I try to post some code with 'd--- table' in it, where 'd---' is replaced by the word drop.  I cannot post the following 3 lines, in either SO or this site, if they include the well-known SQL statements DROP.  stat.executeUpdate('d--- table if exists people;'); stat.executeUpdate('create table people (name, occupation);'); prep = conn.prepareStatement(...     'insert into people values (?, ?);');   test again:  'dro* table' 'drop ball' drop the table drop fable drop    t*ble droptable   drop a table  The evil words for me are "drop" and "table"... how come you guys can post? :(  edit: Could someone please suggest another online site that is not stackoverflow that is a quick way to try out a POST request of a text field?  UPDATE: Never mind. I don't know what the answer is, but the same problem occurs on Google's website. So it's not stackoverflow. Now to go to my IT Dept...


So, I am creating my first Pathfinder character ever right now together with some friends. We are all new at this.  I figured I'd go for a half-elven Cleric.  Everything good so far. But! The two favored classes option confuses me. I didn't find anything specific about them in the core rulebook. How exactly do they work? Are they just an inherent option that gives you bonuses if you level up in a class, regardless of whether you pursue it or not or do they count as a choice of class? Multiclassing lvl 1 upwards is kind of a weird idea and I am sure I must have gotten something wrong.  Thank you all in advance! -derhoques

I'm working on creating a half-elf paladin character for a Pathfinder game.  Full disclosure: this is the first time I've tried creating a character; I've used ones other people created before.  In the text, it mentions something about "favored classes" I believe.  What is this?


I want to get the source code for a project and then build it the same way that apt would.  E.g. I want the working source code and be able to run 'make' or similar command on the source.  How can I do that?  Specifically I want to get this source 'icedtea-6-jre-jamvm'

I am assuming that all application installed through apt-get are open source; but for those that are available in that manner, where can I get the source code for these applications as well as update them?   I have a couple applications I use regularly that aren't being actively developed any longer and I would like to add features. Where would I go to get the rights to update these applications?  In this case specifically, I am referring to the hellanzb package


I am trying to change the chars of a string one by one with for loop and the segmentation fault occurs in real_A[i]=ciphertext[i];, that's the code to change the chars of the real_A string with the ciphertext. here is my code: string substitution(string plaintext, string ciphertext) {     string real_A="ABCDEFGHIJKLMNOPQRSTUVWXYZ";     string real_a="abcdefghijklmnopqrstuvwxyz";               //change alphabets to ciphertext     for (int i=0,n=strlen(ciphertext);i<n;i++)     {         if (isupper(ciphertext[i]))         {            real_A[i]=ciphertext[i];            real_a[i]=real_A[i+32];         }         else if (islower(ciphertext[i]))         {            real_a[i]=ciphertext[i];            real_A[i]=ciphertext[i-32];      }     for (int i=0,n=strlen(plaintext);i<n;i++)     {         if (isupper(plaintext[i]))         {               //get the ascii num            int letter=plaintext[i]-65;                        plaintext[i]=real_A[letter];         }         else if (islower(ciphertext[i]))         {            int letter=plaintext[i]-97;            plaintext[i]=real_a[letter];         }     }          return plaintext;        }  How do I deal with this bug? I tried to change the string real_A="ABCDEFGHIJKLMNOPQRSTUVWXYZ"; to  string real_A[26]; but it got me more errors.

The following code receives seg fault on line 2:  char *str = "string"; str[0] = 'z';  // could be also written as *str = 'z' printf("%s\n", str);   While this works perfectly well:  char str[] = "string"; str[0] = 'z'; printf("%s\n", str);   Tested with MSVC and GCC.


I had made one function for making pagination ,sorting and  listing all in one and that function I call on load of page of body like  <body onload='MYFUNCTION(parm1,param2,param3)'>   Now i want to apply some jquery on the button which shows all document in fancybox which come by that onload but when i try to do on  $(function(){     $(#container).on('click','#button',function(){         //code here for load fancybox and getting all image stuff by ajax      }); });   than i not get that element because it cant find it on page load so what can i do  inshort - how to select element in jquery which is load after page load Thank you..

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.


If a cloud is a kilometer long and a kilometer tall and weighs about as much as 100 elephants, why it does not fall to the ground under the influence of gravity?

Clouds are made up of tiny water or ice droplets, depending on temperature. This implies that cloud density is greater than that of dry air. Why don't clouds sink through their surrounding atmosphere rather than float by in a variety of formations?


As above. Proofs, examples and counter-examples are appreciated.

Looking for elementary proof for $\rm~det(\textbf{P})$ = $\pm 1$ if $P$ is an orthogonal matrix.  I prefer a proof without using determinant of transpose matrix. My First Proof, with $\det(\textbf{P}^{t}) = \det(\textbf{P})$ If $P$ is orthogonal matrix,  $\textbf{P}^{t}=\textbf{P}^{-1}$. So, $$\det(\textbf{P}^{t}\textbf{P})=\det(\textbf{I}) \implies \det(\textbf{P}^{t}\textbf{P}) = 1 \implies \det(\textbf{P}^{t}) \det(\textbf{P}) = 1$$ because $ \det(\textbf{P}^{t}) = \det(\textbf{P})$. Therefore, $\det(\textbf{P}^{t})=\det(\textbf{P}) = \pm 1$. My Second Proof,  without $\det(\textbf{P}^{t}) = \det(\textbf{P})$ Let $\lambda$ be an eigenvalue for orthogonal matrix $\textbf{P}$. $$\textbf{P}\vec{v}=\lambda\vec{v},\quad\vec{v} \neq \vec{0}$$ $$\implies \rVert \textbf{P}\vec{v}\lVert = \lVert \lambda\vec{v} \lVert \implies \rVert \textbf{P}\vec{v} \lVert = \rvert \lambda \ \lvert \lVert \vec{v} \rVert = 1$$ because $\lVert \vec{v} \rVert = 1$ Therefore $\lvert \lambda \rvert = 1$ because $\textbf{P}$   is orthonormal matrix. $$\textbf{P} = \textbf{P}^{t}$$ Therefore $\textbf{P} = \textbf{U}^{t}\Lambda\textbf{U} $ $$\det(\textbf{U}^{t}\Lambda\textbf{U}) = \det(\textbf{U}^{t})\det(\Lambda)\det(\textbf{U})$$ $$\det(\textbf{U}^{t}\Lambda\textbf{U}) = \det(\textbf{U}^{t})\det(\textbf{U})\det(\Lambda)$$ $$\det(\textbf{U}^{t})\det(\textbf{U}) = 1 $$ (because $\textbf{U}$ is orthogonal matrix}) $$\det(\textbf{P}) = \det(\textbf{U}^{t}\Lambda\textbf{U}) = \det(\Lambda) = \prod_{i=1}^{n}\lambda_i = \pm 1 $$ $$\implies \det(\textbf{P}) = \pm 1$$


In a , I found out how to shut down all instances of running VMs started through . I'd like to call that script when logging out of my Desktop Manager which is currently Cinnamon.   Some have pointed to another similar similar, but I did not understand the selected answer(s) enough to be able to solve my issue and put anything into action. The comments below point to start on stopping lightdm. This sounds like what I'm looking for. That is how can I run a script to stop all VMs (called: stop-vagrant.sh) when my log out of my desktop manager (start on stopping lightdm)?

Since Ubuntu relies on upstart for some time now, I would like to use an upstart job to gracefully shutdown certain applications on system shutdown or reboot. It is essential that the system's shutdown or reboot is stalled until these applications are shut down.  The applications will be started manually on occasion, and on system shutdown should automatically be ended by a script (which I already have). Since the applications can't be ended reliably without (nearly all) other services running, ending the applications has to be done before the rest of the shutdown begins.  I think I can solve this by an upstart job which will be triggered on shutdown, but I am unsure which events I should use in which manner. So far, I have read the following (partly contradicting) statements:   There is no general shutdown event in upstart Use a stanza like start on starting shutdown in the job definition Use a stanza like start on runlevel [06S] in the job definition Use a stanza like start on starting runlevel [06S] in the job definition Use a stanza like start on stopping runlevel [!06S] in the job definition   From these recommendations, the following questions arise:   Is there or is there not a general shutdown event in Ubuntu's upstart? What is the recommended way to implement a "shutdown hook"? When are the events runlevel [x] triggered; is this when having entered the runlevel or when entering the runlevel? Can we use something like start on starting runlevel [x] or start on stopping runlevel [x]? What would be the best solution for my problem?   Thank you very much


Alternating work on a laptop, netbook and tablet the word wrap of a document is sometimes too long (for small screens) and too short (for large screens). This also got me thinking.  Is there a tool like HTMLTidy for LaTeX that can properly reformat/beautify a document?  Ideally it should include    Fixing of indentation and tag alignment (some editors do little to aid here) Word wrapping (hard and soft) - but definitely context aware Configuration options like for tabs vs spaces, wrapping width, tag alignment   cli tools like fold are not context aware enough (it would mangle commented sections and just focus on the wrapping aspect) and makes compilation fail at time.   link mentions texpretty and  mentions a LaTeX tidy perl script by Eric Hsu.  What experiences have you had, or what tools can be suggested (preferably cli and platform independent)?

I'm looking for a LaTeX code sniffer and/or code beautifier, because I'm creating a CI server for my LaTeX books and I wanted a few things. :D


I have a little issue. I have a figure made by 5 subifgures. They fill perfectly a page.  The problem is that, when I have some lines of text before the image, the figure goes to the next page without "splitting", so I have a page with only a few lines and, in the other page, my figure, and it's not so pleasant to see.  So I would like to have, for example, a few lines then two subfigures and the other 3 subfigures in the other page and so on. According to the white space.  I searched a bit for similar questions, but I didn't find a similar problem.  Thanks in adivce.

I think I'm not going to solve my problem with the Floats and positioning of figures. I have 4 diagramms and I need to place them on two pages and at the end of the second page the caption for all 4 figures. So two figures on each page. For the the diagramms on the second page I need to place the upper image near to the top because I need some place for the caption. On the page before I need both figures to be centered in the middle with some spacing between them. So this is my code:   \begin{figure}[c] \centering \includegraphics[width=\linewidth]{45.pdf} \end{figure} \begin{figure}[c] \centering \includegraphics[width=\linewidth]{46.pdf} \end{figure} \makeatletter \setlength{\@fptop}{0pt} \makeatother \begin{figure}[t!] \centering \includegraphics[width=\linewidth]{47.pdf} \captionsetup[figure]{font=small,skip=0pt} \includegraphics[width=\linewidth]{48.pdf} \caption{Konzentrationsprofile von Al, Re, Ta und W entlang der <110>-Richtung in der UC. } \end{figure}   The problem for the secong page was solved, but the figures on the first page were also forced to the top which I don't want!


I've played around in the past of the 2D Flash fan-made version of the popular Valve game Portal.  It has basically the exact same mechanics, but as a 2D side-view flash game.  Lately I've toyed around with creating a simplified flash version of some of my favorite franchises (such as Zelda, Mario, Splinter Cell, etc.).  Of course, nothing is "stopping" me from just using the same mechanics and just changing the name to something not copyrighted.  I have witnessed projects that have tried to directly port a 3D game into a 2D simplified version, with the exact same plot and puzzles (Ocarina of Time in 2D comes to mind), and I have seen them being shut down.  But I am not likely going to exactly duplicate any game...just borrow some of the source material and basic underlying mechanics.  For example, if I were to make a Zelda-influenced fan game, I would have items such as the Hookshot, Boomerang, and all other sorts of ones from the Gameboy Zeldas; just with a custom plot and dungeons.  With likely the same mechanics.  What are the legal issues involved in this?  I used to think it was a "Don't do this ever; it's a bad idea."  But then I've seen the Portal clone, and now I'm curious.

Most games build on other games' successes and many are downright clones. Where is the limit of imitation before legal issues come into play? Is it down to literary or graphic work like characters and storyline that cause legal problems, or can someone actually claim to own gameplay mechanics?  There are so many similar clone games out there that the rules are probably very slack or nonexistent, but I'd like to hear the views of more experienced developers / designers.


I need to create an image to be able to mount the install DVD inside virtualbox in order to boot and install Windows.  Important: I need to do it using the command line.  I tried with genisoimage  and created an image using the command below but it turned out not bootable...  genisoimage -r -J -o cd_image.iso /cdrom   What I need is to RIP my original bootable DVD into a bootable IMAGE that I can mount in virtualbox.  So I thought I would ask how to A) convert that ISO file into a bootable one or B) re-create the ISO making it bootable with genisoimage or other command.

I want to make a .iso image of a bootable OS DVD, to use in VirutalBox.    Nautilus can make a .iso, but only of data files, it seems. The .iso it created was not bootable.  What is available to make a bootable .iso from a bootable DVD?


I couldn't find this question asked anywhere else, so I thought I would ask it here: does anyone know how fast you would have to be traveling in space to feel 'wind' from the particles in front of you? Say a piece of thin, 0.05 N piece of paper traveling in perpendicular to it's width and length. How fast would it need to travel before it would experience, say, 1 N of force?

Some (generous) assumptions:   We have a spaceship that can reach a reasonable fraction of light speed. The ship is able to withstand the high energies of matter impacting at that speed.   Given the amount of matter in inter-stellar space, at high speed, would it encounter enough of it and frequently enough that an aerodynamic shape would significantly reduce its drag (and thus save fuel)?


I am writing a thesis on "Service oriented architectures in safety-critical systems" and this is right where the problem starts.  I am a bit curious about the use of hyphens in "service oriented" and "safety critical".  So far I have encountered the following versions in literature:  service-oriented, service oriented, as well as safety-critical and safety critical.  Additionally, the sources disagree on the correct abbreviation of "service-oriented architecture". There are the versions SoA, as well as SOA.  Is there a particular way to deal with these terms, or can they be defined arbitrary, as long as they are spelled the same way throughout the document?

When should we use "object-oriented" and when "object oriented" when talking about programming?  An example:     Why should I start writing object oriented code?   I personally think that there should be a hyphen, because "oriented" connects to the word "object", but I am not sure.


I recently added a Content Editor Webpart with code for an accordion. When I'm using it in on the page in edit mode, there are no issues. For reference, the end of the URL looks like this: /sites/JI/SitePages/Home.aspx  But when I go to the published page (URL like this: /sites/JI/_layouts/15/start.aspx#/SitePages/Home.aspx), the accordion no longer works. The color still changes when I hover over sections, but clicking has no effect.  Here's a stripped copy of the HTML:
Header

Lorem ipsum dolor sit
 <button class="accordion" type="button">JI Purchasing Instructions</button>

link nameLorem ipsum dolor sit

  <button class="accordion" type="button">Button Name</button>

 linkname

 Link Name

 Linkname

  <button class="accordion" type="button">Buttonname</button>

Lorem ipsum dolor sit

 Linkname

Link to  linkname

  <button class="accordion" type="button">button name</button>

 Link Name

 Link Name

 Link name

I have an SP2013 wiki page that I want to use a jQuery accordion on.  Just with some static content, not pulling any information from anywhere in SharePoint.  I created the page, inserted a script editor web part at the top, and inserted this snippet:       Then, I put the cursor under the script editor web part, and clicked on "Edit Source".  Then underneath the HTML that represents the script editor, I put this HTML (basically the jQuery accordion demo HTML):

       Section 1

Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.

       Section 2

Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In suscipit faucibus urna.

       Section 3

Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui.

       Section 4

Cras dictum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia mauris vel est.

Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.

   After I saved the page, the accordion collapsed initially (as it is supposed to), but clicking on any of the headers does not expand the section.  If I go back into edit mode for the page, it works as expected - clicking a header expands the section.  Save it again, and it stops working.  What am I missing?  I don't think what I'm trying to do is all that complicated...  EDIT 12/8: Ok, so I put the jQuery and jQuery UI scripts in the site's Site Assets folder, and the behavior is the same -- the scripts do not get loaded in IE or Firefox unless the page is in Edit mode.  Incidentally I think the other script snippet, where I hook up the accordion, is also not getting loaded unless the page is in edit mode.  The reason I think this is that I changed the way I referenced the main jQuery script (to something that didn't work), and the debugger halted on $(function () { ...., saying $ was undefined.  So if jQuery is not loaded, and the debugger thinks $ is undefined, at least it's hitting that section of code.  Which makes me think that in non-edit mode, not only is jQuery not getting loaded, but that section of script is not getting loaded either, because the debugger is not choking on $.  Can anyone provide any insight as to why the Script Editor web part seems to be not working in IE and Firefox?  (Because apparently in Chrome it works fine.)