Custom right-click action in Unity Launcher keeps cursor busy for 20 seconds

To have a "minimize window" option through right click on an icon in the Unity launcher (Ubuntu 14.04), I followed the detailed instructions  about changing a .desktop file and made a custom Firefox launcher in ~/.local/share/applications/ folder. The relevant part of the .desktop file is:  Actions=NewWindow;NewPrivateWindow;Minimize  [Desktop Action NewWindow] Name=Open a New Window Exec=firefox -new-window OnlyShowIn=Unity;  [Desktop Action NewPrivateWindow] Name=Open a New Private Window Exec=firefox -private-window OnlyShowIn=Unity;  [Desktop Action Minimize] Name=Minimize Windows Exec=sh /home/myusername/Documents/xdotool_sh/minimize.sh firefox OnlyShowIn=Unity;   The desktop action "Minimize" invokes a simple shell script, minimize.sh that has the following content:  #/bin/bash name=$1 for i in $(xdotool search --class "$name"); do     xdotool windowminimize $i done   The script uses xdotool, that can be installed from the official repositories, to find all the firefox windows, iterate over them and minimize them.  The script works and the launcher right menu option "Minimize Windows" works as well, but as soon as the windows are minimized, the mouse pointer gets in "busy" mode and stays like this for about 20 seconds (although the mouse actions are still responsive).   Does anyone know why starting a shell script from a right menu option in Unity could lead to this behaviour?  EDIT: Apparently the wait period is inevitable, as explained in Jacob Vlijm's answer. Since the mouse remains responsive, avoiding the transformation of the pointer in the spinning wheel is a partial esthetic workaround, as explained on .  EDIT2: giving the system a fake window is a better solution, as explained by Jacob below.


When you have multiple reaches, are you free to use any of them?

This question is prompted by the Eldritch Claw Tattoo which can allow your attacks to "reach a target up to 15 feet away from you..." and specifically relates to Attacks of Opportunity.  You can make an opportunity Attack when a Hostile creature that you can see moves out of your reach.  In a situation where I have a Glaive, and have activated the Eldritch Claw Tattoo, do I have 3 different reaches?  Unarmed Strike (5 feet) Glaive (10 feet) Glaive & Unarmed Strike (15 feet, thanks to the Eldritch Claw Tattoo)  Or, does the Eldritch Claw Tattoo's effect make all of those attacks' reach only 15 feet? Is this accurate, and can I make an Attack of Opportunity with any of them, where someone leaves that specific attack's reach?


Making my site more secure, Am I using password_hash correct?

I have a VERY small site and recently I've been trying to make it more secure, I used to store my passwords in plain text.  I think Im doing it right, but as a "hobby" programmer I wanna make sure so I ask you, the professionals  When a user register I do: password_hash($their_password, PASSWORD_DEFAULT) and store that in the 'password' column in the users table. I use PASSWORD_DEFAULT as that seems the best according to php.net.     Note that this constant is designed to change over time as new and stronger algorithms are added to PHP."   Sounds good!  And the Login part (very simple):  if (count($_POST) > 0) {  $username = trim($_POST['username']); $password = trim($_POST['password']);  $query = $db->prepare("SELECT password FROM users WHERE username = ?"); $query->execute(array($username)); $row = $query->fetch();  if (password_verify($password, $row['password'])) {     echo "Correct password";     // create session... } else {     // wrong password }   Maybe I should check if the username exists first but other than that what do you think?


Why are imported PDFs blurry in InDesign?

I'm creating a magazine in Indesign and have pdf ads that I imported and placed all throughout the magazine. The pdf ads are crisp and clear in their original format, but when I place them in Indesign, they're super blurry. I tried converting the pdf ads to a bunch of different formats (jpeg's, png's, etc), then placed them in Indesign. This reduces some of the blurriness, but when printed, they are still unreadable.   Just to show you what I mean, here's an ss of a pdf in Adobe Reader:    and here's how it appears in InDesign:    Both are at 100%.   Do you have any idea why I'm having this problem, and how I might be able to fix it?


How to create an OD road distance matrix in QGIS?

I'm looking for the steps required to produce an origin-destination (OD) cost matrix.  What I'm looking for is a matrix of road distances. The distance matrix tool only produces euclidian distances. The QGIS Roadgraph plugin produces the shortest road distance from one origin to N destinations. What I need is a file containing distances from all origins to the N closest destinations. I have a lot of origins so repeating the analyses with Roadgraph is not an option. Thanks again.  I'm looking for a step-by-step description, starting from scratch (ie, with my 3 shapefiles: origins, destinations, road network).


How to override some admin theme CSS rules?

Is there a way to override just some CSS rules used by the admin theme, without touching the admin theme itself (via some theme functions or module hooks)? For example, I'd like to add a text-align: right to every integer field in admin forms (and in edit nodes too).


When I check my profile, I only get to see the info about flags begin helpful/declined for posts. It says that I've got e.g. 19 reported and 15 approved for comments but I don't get to see which ones I was mistaken about.  How can I see the listing for all the three categories of flags listed together? (I'm mostly interested in the declines because I'd like to avoid raising false positives.)


Is there an English word or phrase that means "intending to help and hurting instead?"

Consider the case where a professor is erasing a board and one of the teaching assistant tries to help him by erasing part of the board.   Unfortunately, while trying to pick up the eraser, the teaching assistant bumps into the professor and they both drop their erasers.  An outside observer sees this and says the TA is ______, rather than helping.   The missing word or phrase would capture the good intentions but also express the fact that the intended help had the opposite of the intended effect.  In Mandarin Chinese, the phrase 帮倒忙 comes to mind, but the Google translation "disservice" does not quite capture it.


When “and” connects two 'subjects', can we remove the article pertaining to the second 'subject'?

When “and” connects two subjects, can we remove the article pertaining to the second subject (as in the following example)?  Original sentence:      The implementation of the algorithms on the CPU and the GPU is presented.   Sentence after removal:      The implementation of the algorithms on the CPU and  GPU is presented.   Note that the meaning intended to express in both sentences is that the algorithms are implemented both on the GPU and on the CPU.  Thanks!


SSH to computer with shared public IP and no admin rights over the router

I live in a student dorm (off-campus) and all students of the dorm share the same WAN IP (Internet or public IP), which is fortunately static. I am not an admin and have no control over the router that assigns private IPs to all of the students, so I can't really forward port 22 to my computer.  Is it still possible to establish an SSH connection to my dorm computer from a computer on campus?


Deleting another user's directories from my own

I am a non-root user, and have made a directory into which other users in my group can write. The directory is setgid, so files and directories within it have the same group.  I can delete files placed into this directory, but if a user creates a subdirectory with files in it, I can't seem to delete those. Is there something special I can do (other than, say, bothering the user in question or the sysadmin about it) to get rid of this subdirectory?  EDIT: Inevitably, of course, someone asks "why?"  The shared folder in question is a mercurial repository. We can't use a shared-account ssh-key-based server for this like mercurial-server, and we can't just host it externally for various reasons. But that part works fine. We use Redmine for project management, but it does not yet read the repo index for file contents - it reads the working directory. So the working directory must be kept up-to-date. crontab has been disabled by the sysadmin, so that's out. So I naïvely put a changeset hook in the shared repo that performed an "hg update". This seemed to work fine initially, until, of course, someone pushed a commit with a new directory. While I had vague thoughts of trying to make a setuid script for the hook, I'll probably just consider safer avenues.


First kind Chebyshev polynomial to Monomials

Express First kind Chebyshev polynomial in terms of monomials   First kind Chebyshev polynomial of order n ($T_n$) is defined in terms of cosine function as follow:  1)  $T_n(\cos x)=\cos n x$    Instead of working with cosine functions, I want to express Chebyshev polynomial in terms of monomials (powers of x) using the following recursion formula: $T_0(x)=1; T_1(x)=x; T_{n+1}(x)=2xT_n(x)−T_{n−1}(x)$ for $x \in [-1, 1]$.  For example, first kind Chebyshev polynomial of order 2 can be expressed as:  Usig formula 1) $T_2(cosx)=cos(2x)$, Usig recursive formula) $T_2(x)=2xT_1(x)-T_0(x)=2x^2-1$  If we plot $cos2x$ vesrus $cosx, cosx\in [-1,1]$ and also $2x^2-1$ versus $x,  x\in [-1, 1]$, the two plot should match.  However as "n" increases ($n\ge45$), the $T_n$ obtained as a polynomial by the recursive formula doesn't match the Chebyshev polynomial of formula (1).  Why is that????? The recursion formula is not valid for higher orders????  here is my Matlab code that compares two formulas:  clc;clear;close all; syms x;  n=45;  Tr(1,1)=1+0*x; Tr(2,1)=x; for i=2:n; Tr(i+1,1)= expand(2*x*Tr(i,1)-Tr(i-1,1));end; hold on;for x=-1:0.01:1; plot(x,eval(Tr(n)),'--bo'); end;   t=[0:0.01:2*pi]; plot(cos(t),cos((n-1)*t),'k*-')


Use the "weirdo" method to explain why the amounts of subsets with even/odd elements are equal.

I was given this identity for $n > 0$, $$\sum_{k=0}^{n} (-1)^k {n \choose k} = 0$$  I need to explain why, using the "weirdo" method, there are exactly many subsets with an even number of elements as there are subsets with an odd number of elements, and then give a combinatorial proof of the identity.  I am stuck on getting started with the "weirdo" method. Can anyone get the ball rolling with this method's use?


Why is an empty string '' encoded into 2 bytes in utf-16 but 0 bytes in utf-8 or ascii?

I was just learning about encoding strings in python and after fidgeting with it a little, I got confused by the fact that the size of an empty string ('') is 0 in utf 8 and ascii but somehow 2 in utf 16? how come?  print(len(''.encode('utf16'))) # is 2 print(len(''.encode('utf8'))) # is 0   I guess a big part of the problem is that I don't understand how utf 16 works. I don't understand why encoding 'spam' in utf 16 would be 10 bytes long instead of just 8 bytes (2 bytes (16 bits) for each character). I'm assuming that the 2 bytes are needed in utf 16 as default for any string for padding or something?  *edit  I am NOT confused about the basics of how UTF 8 or UTF 16 work and differ in storing each individual characters. I am confused about how the absence of any characters (an empty string) would be stored in 2 bytes in UTF 16 but have 0 bytes in UTF 8. (as opposed to 1 byte or 0 for both)  The link does not provide answer to my question.


Environment formatting: how to display the name of an axiom instead of its counter number

I am using the following environment to write axioms in my thesis  \theoremstyle{definition}   \newtheorem{myax}{Axiom}   As expected, if I write    \beging{myax}[Axiom of Choice] \end{myax}   I get   Axiom 1(Axiom of Choice)  I was wondering if I could display bold the text in [ ], hiding the rest (Axiom 1)  Thanks in advance   I am using the folllowing code  \usepackage{amsthm}  \theoremstyle{plain} \newtheorem{myth}{Theorem}[section] \newtheorem{myprop}[myth]{Proposition} \newtheorem{mylemma}[myth]{Lemma}  \theoremstyle{definition} \newtheorem{mydef}{Definition}[section] \newtheorem{myax}{Axiom}  \theoremstyle{remark} \newtheorem{myrmk}{Remark}[section] \newtheorem{myex}{Example}[section]   Code with ntheorem  \usepackage[amsmath,thmmarks]{ntheorem} \theoremheaderfont{\bfseries\upshape} \theorembodyfont{\itshape} \theoremseparator{. } %%%%%%%%% \theoremstyle{emptybreak} \theorembodyfont{\upshape} \setlength{\labelsep}{0pt} \newtheorem{myax} %%%%%%%%%% \theoremstyle{plain} \newtheorem{myth}{Theorem}[section] \newtheorem{myprop}[myth]{Proposition} \newtheorem{mylemma}[myth]{Lemma} %%%%%%%%%% \theoremstyle{plain} \theorembodyfont{\upshape} \newtheorem{mydef}{Definition}[section] %%%%%%%%%%%%%%%%%     \makeatletter \newtheoremstyle{remark} {\item[\hskip\labelsep\theorem@headerfont ##1\ \textup{##2}\theorem@separator]} {\item[\hskip\labelsep \theorem@headerfont ##1\ \textup{##2}\ (##3)\theorem@separator]} \makeatother \theoremstyle{remark} \theoremheaderfont{\itshape} \newtheorem{myrmk}{Remark}[section] \newtheorem{myex}{Example}[section] %%%%%%%%%%%%%%%%%     \theoremstyle{nonumberplain} \theoremheaderfont{\itshape} \theorembodyfont{\normalfont} \theoresymbol{\ensuremath\square} \newtheorem{proof}{Proof}  \usepackage{cleveref} \crefname{myth}{Theorem} \crefalias{Myth}{myth} \crefname{myprop}{Proposition} \crefalias{Myprop}{myprop} \crefname{mylemma}{Lemma} \crefalias{Mylemma}{mylemma} \crefname{mydef}{Definition} \crefalias{Mydef}{mydef} \crefname{myrmk}{Remark} \crefalias{Myrmk}{myrmk} \crefname{myex}{Example} \crefalias{Myex}{myex} \crefname{myax}{Axiom} \crefalias{Myax}{myax}  \begin{document} \begin{myth}  My theorem. \end{myth} \end{document}


Retrieve a value from program arguments on eclipse

I want to set up a main class that pass a string to another class from the prompt dialog on Eclipse.  So I set up a Program argument on "Run Configurations" as a ${string_prompt} variable. When I run my program the input dialog appear and I input a value.  I then retrieve the input on my main class from the index 0 of the String[] args argument:  if ( args.length > 0 ) {b = new BrowserHandler(args[0]);}   and pass it to my BrowserHandler class constructor, that retrieve it and set the String as the input value.  I successively try to call a method named SetBrowser() from the main class. It has to check the validity of the aforementioned String:      public static void main(String[] args) throws Exception {          BrowserHandler b;          if ( args.length > 0 ) {b = new BrowserHandler(args[0]);}         else b = new BrowserHandler();          b.setBrowser();         if ( !b.valid ) System.out.println("Browser not valid");          else {             //do something         }      }  }   The BrowserHandler class:  public class BrowserHandler {  public String browser; Boolean valid = true;  public BrowserHandler(String browser){     this.browser = browser.toLowerCase(); }  public void setBrowser() {         if ( this.browser == "firefox" ) {              System.out.println("...setting firefox");             this.driver = new FirefoxDriver();          }         else valid = false;  }   The problem is that the String browser of the browserhandler class get the variable, but when it comes to check the value of the string it always fails the condition, setting valid to false.  I cannot figure it why is that, despite having tried to debug it. Any suggestion that could lead me to the reason of it?


I want to show that $S_n \cong A_n \rtimes  C_2$.   Take a transposition $\tau \notin A_n$. Then it is clear that   $$\langle \tau\rangle \cap A_n = 1$$ $$A_n \tau = S_n$$ $$A_n \unlhd S_n$$  and thus $$S_n \cong A_n \rtimes_\phi \langle \tau \rangle$$  with $$\phi: \langle \tau \rangle \to Aut(A_n): \mathcal{\tau} \mapsto (A_n \to A_n: \sigma \mapsto \tau^{-1} \sigma \tau = \tau \sigma \tau), 1 \mapsto 1$$  I'm now trying to see what $\tau^{-1} \sigma \tau$ looks like, as I would like to write:  $$A_n \rtimes_\phi \langle  \tau \rangle \cong A_n \rtimes_\psi C_2$$  for some homomorphism $\psi: C_2 \to Aut(A_n)$.  How can I proceed?


Why is the node editor showing different kinds of nodes?

I have been following  tutorial until I started adding nodes. The problem is that he has completely different nodes than I have. Even nodes that are created at start are different (I have Material and Output and he has Render Layers and Composite). Have I missed something or should I use different nodes than he?


What are the properties of dragon bones?

I've heard of certain properties being attributed to things such as dragon tears and scales, are there any established properties for dragon bones in crafting or other applications?


Mongodb restrict access on collections level

I'm building a backend system using MongoDB. Now I want to restrict access on certain numbers of database collections to this system. For example I have users, admin_users, pageviews and I want this system to be able to read and write only admin_users and pageviews collections but no read or write access on users colection. Is there any ways to do so?


I have a British passport from 2006 September and going to Florida. The passport in has camera symbol. Is it valid?

I am going to Florida in a few days. I have a British passport that I acquired in September 2006. It has a "camera" symbol on front and is biometric. Just seen news items that only passports from October 2006 or later will be accepted by the USA. Is my passport valid for travel to the USA? I do have a valid ESTA.


Word style "keep with next" except on last item

I'm writing specifications using Word documents with a general style like this:  # Heading 1 intro paragraph * bullet1 * bullet2 * bullet3  # Heading 2 intro paragraph * bullet1 * bullet2  # Heading 3 intro paragraph * bullet1 * bullet2 * bullet3 * bullet4 * bullet5   I want each heading, intro paragraph, and associated bullets to stay together whenever possible. As such, I have styles for each with the Paragraph option "Keep with Next" checked. However, this results in everything sticking together too tightly.  To fix it I currently go to the last bullet in each list and change its style to one that does not have "Keep with Next" checked. For example, the bullets have a style "ReqBullet" and I create another style "LastReqBullet" that inherits from "ReqBullet", but which has "Keep with Next" turned off.  (I could alternatively override the setting on each bullet, but doing it via a style makes it easier to apply, and also easier to see where it is set.)  Using manual style application is slightly cumbersome, and error-prone. If I add a new item to the end, I have to swap styles. Often I will forget to apply the style until I realize that the formatting is wonky.  The question  Is there a way hidden in the bowels of the Style settings to say either:   Keep this paragraph with the next but only if it's the same style, or I don't care what the previous paragraph told you, do NOT keep me with it (which I could apply to  the headings)


From my understanding, dynamic networks are similar to traditional models except that they function in continuous time and have edges and nodes that evolve over time? Is this a correct understanding? Also why are they probabilistic?


Can you break up your Attack action for a bonus action?

You can do it to move:     If you take an action that includes more than one weapon attack, you can break up your movement even further by moving between those attacks. For example, a fighter who can make two attacks with the Extra Attack feature and who has a speed of 25 feet could move 10 feet, make an attack, move 15 feet, and then attack again. (PHB 190)   It would be necessary for the Great Weapon Master feat:     On your turn, when you score a critical hit with a melee weapon or reduce a creature to 0 hit points with one, you can make one melee weapon attack as a bonus action   As a level 17 Fighter, if I can not place a bonus action between attacks, there are two possibilities:   I have to wait until I finished all 4 attacks of the action, to make another attack as a bonus action the bonus action attack is wasted unless the kill or crit happens on the 4th attack   So can I take a bonus action in the middle of the attacks of an action?


How to capture detail of craters on the moon?

How can I photograph the moon so that I see detail of the craters and mountains?   I have a Canon EOS 550D (T2i) and tried "No Flash", "P" as well as creative auto mode, but to no avail. Every time I get a completely white moon.


I have a wrapper class which contains a list of sobjects, i want to have th sorting on the fields of these objects in the wrapper list: The apex code is as follows:  Class jobsWrapper {     public JobSuite__Job__c job { get; set; }     public JobSuite__Job_Task__c jobTasks { get; set; }      public JobsWrapper(JobSuite__Job__c objjobs, JobSuite__Job_Task__c objjobTasks) {         // if(jobTasks== NULL){jobTasks = new List<Job_Task__c>();}         job = objjobs;         jobTasks = objjobTasks;      }      public JobsWrapper() {         if(jobTasks== NULL) {             jobTasks = new JobSuite__Job_Task__c();         }          if(job == NULL) {             job = new JobSuite__Job__c();         }             } }   I want to allow sorting the wrapper list by the fields in the job - like client, jobname, jobnumber etc and fields from the task object as taskname, reviseddue dateetc.  How can I do this? Please help, thanks in advance.


I recently started mining in the Raven Rock Mine. I went a little further into the mine, but now I can't move.  It looks like I'm stuck in a gap between first- and third-person view.  I can't move, open menus (except settings and quest), fast travel, reload, save, crouch, or look around. I set my saves to "manual" to avoid the glitch that makes the game freeze while autosaving.  Basically, it seems like I'm screwed.   Any suggestions?


Proving measurable function: Real versus rational number

I am working on this problem$^{(1)}$ on measurable function like this:     Show that $f$ is measurable if $(X, \mathcal A)$ is measurable space, $f$ is real-value function and $\{x \mid f(x) > r \} \in \mathcal A$ for each rational number $r.$   Earlier on the text gives this definition$^{{2}}$ of measurable function:     A function $f : X \to \mathbb R$ is measurable or $\mathcal A$-measurable if $\{x \mid f(x) > a \} \in \mathcal A$ for all $a \in \mathbb R.$   To an untrained eyes, the problem with this problem is that there seems to be no problem at all, except, perhaps, that the exercise says "$\forall r \in \mathbb Q$", whereas the definition says "$\forall a \in \mathbb R.$" Am I on the right track here? Please help me going forward if this is the right issue to tackle.  Thank you for your time and help.    Footnotes:  (1) Richard F. Bass' , 2nd. edition, chapter 5: Measurable Functions, Exercise 5.1, page 44.  (2) Definition 5.1, page 37.


Why recommend tantalum over ceramic capacitor for voltage regulator?

The  recommends using tantalum capacitors on the input and output.  What is the reason for this?  What advantage does tantalum have over a ceramic capacitor? A 10μF tantalum capacitor , while a 10μF ceramic capacitor .  The ceramic capacitor is also a bit smaller physically.  Plus, you don't have to worry about getting the polarity wrong on a ceramic capacitor.  I believe there is also less concern about conflict minerals with ceramic capacitors. What advantage does the tantalum capacitor offer, and why does the datasheet recommend tantalum for the input and output capacitors of the voltage regulator?  What exactly would happen if a ceramic capacitor was used instead? Note: To everyone who's claiming this is a duplicate of , that question is about tantalum versus electrolytic capacitors, while my question is about tantalum versus ceramic capacitors.  Related, but not the same.


If an animal is not a predator (e.g. a herbivore), but has nothing that eats it, what is it called?

Most animals I have heard of, such as killer whales, great white sharks, and other apex predators are, well, predators. But what would you call an apex non-predator?


Evaluate $\int \log(1+2m \cos x+m^2) dx$

The question is to evaluate $$\int \log(1+2m \cos x+m^2) dx$$ when $m > 0$   I noticed that $(1+2m \cos x+m^2)$ can be written as $(1+me^{-x})(1+me^{ix})$ and then I can apply the Taylor expansion of $\log(x)$ but I am not sure if the approach is correct.


I have a column which should define in list if the issue is in status: -Not Started, Active, Completed.   I would like to ideally add some colour to this by the row for example if completed it is green or active it is red. Then it highlights the whole row, do you know if this can be edited within the columns settings or if there any step by step instructions that can be followed to make this change? (ideally for someone new to sharepoint)  Thank You


How to apply colour options to the contents of TikZ nodes when the content includes \sbox{}\usebox{}?

Thanks to Sašo Živanović for helping to identify the problem which arises as a result of my trying to apply options such as blue or text=blue to nodes within  trees which include turnstiles from the  package.  Normally, if I apply a colour option such as blue to a TikZ node, the content of the node is coloured, whether it be text or maths.   However, if the node includes a turnstile provided by the  package, then the colouration only affects content before and after the turnstile. The turnstile itself is not affected.  If I use text=blue, only the content prior to the turnstile is coloured. Neither the turnstile nor anything after it is affected.  Outside the tikzpicture environment, however, turnstiles are coloured normally, along with their surrounding text or maths.  For example,  {\color{blue} \[   p \leftrightarrow q \sststile{}{} p \rightarrow q \] } \centering  TikZ/blue:  \tikz{\node [blue] {$p \leftrightarrow q \sststile{}{} p \rightarrow q$};  }  TikZ/blue text:  \tikz{\node [text=blue] {$p \leftrightarrow q \sststile{}{} p \rightarrow q$};  }   produces    Sašo Živanović has established that the issue here is not specific to turnstiles but applies to any content which uses \sbox{} in a similar way. For example:  \newsavebox\mybox {\color{blue} This is in blue. \sbox{\mybox}{This is in a box.}\usebox{\mybox} This is in blue.}  \tikz{\node[blue]{This is in blue. \sbox{\mybox}{This is in a box.}\usebox{\mybox} This is in blue.};}   produces    , to which I am also indebted to Sašo Živanović for directing me, seems related.   I am guessing from the discussion there that the \sbox{} is executed before the option blue or text=blue is applied to the node content, so that the active colour at the point when the box is saved is not sensitive to the options applied to the node.   Is this correct? Is the effect avoidable? And why does text=blue do something different? Shouldn't the effect of the \sbox{} be limited to its group, so that even if its contents remains black, following content should be appropriately coloured?  Complete MWE:  \documentclass{article} \usepackage{turnstile,tikz} \begin{document} {\color{blue} \[   p \leftrightarrow q \sststile{}{} p \rightarrow q \] } \centering  TikZ/blue:  \tikz{\node [blue] {$p \leftrightarrow q \sststile{}{} p \rightarrow q$};  }  TikZ/blue text:  \tikz{\node [text=blue] {$p \leftrightarrow q \sststile{}{} p \rightarrow q$};  }  \newsavebox\mybox {\color{blue} This is in blue. \sbox{\mybox}{This is in a box.}\usebox{\mybox} This is in blue.}  \tikz{\node[blue]{This is in blue. \sbox{\mybox}{This is in a box.}\usebox{\mybox} This is in blue.};}  \end{document}


What is the term for a founding member of a group that gives its name to the rest of the group?

I'm struggling to recollect a word, and I can't manage a Google search which has helped me! I am trying to remember the term for a "founding member". For example, what is amborella in reference to Amborellaceae or rose to Rosids, or magnolia to Magnoliids. I'm sure there are examples outside of flowers too! Thanks!


regualr expression: re.match does not work but re.search does

I am working with python 2.7 on Linux. I prepare a regular expression which should detect that a string  is in the following format:  tcp:IP_ADDR:PORT-IP_ADDR:PORT or udp:IP_ADDR:PORT-IP_ADDR:PORT  I have the following short script for regular expression:  import re my_str="tcp:192.168.0.1:111-10.0.0.2:22" regx_ip = r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}' regx_hostfwd = r'["tcp" | "udp"]?:%s?:\d+-%s?:\d+' % (regx_ip, regx_ip) if not re.match(regx_hostfwd, my_str):       print("fail") else:     print("success!")   When I run it I get: "fail" However, when I change it to use re.search, thus: ...  my_str="tcp:192.168.0.1:111-10.0.0.2:22" regx_ip = r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}' regx_hostfwd = r'["tcp" | "udp"]?:%s?:\d+-%s?:\d+' % (regx_ip, regx_ip) if not re.search(regx_hostfwd, my_str):      print("fail") else:     print("success!")      ...  and run it, I get "success!". I don't understand what is the reason for this. According to my understanding, match looks from the start of the  input while search looks anywhere in the input. According to my understanding, in this case it should return success in both cases. What should I do so it will return success also when using "match"?   Regards, Kevin


What is the difference between fixed effects model and random effects model for a meta-analysis of sample correlations?

Fixed effects model seems to differ from random effects model for a meta-analysis of sample correlations in terms of assumptions. What is key assumption for a fixed effect model?


When Jack entered the room, I had not recognized him because he lost so much weight.   For above sentence,I use past perfect tense(had not recognized),because there were two situations in the past.  But the real answer is     When Jack entered the room, I did not recognize him because he lost so much weight.   So, why did they use simple past (did not recognize) although there were 2 situations in the past?


What is the cause of this sudden drop in CV queue size?

At Sat, 30 Nov 2013 14:51:01 GMT, there was a sudden drop in the close votes review queue size from 98932 to 98314. This is about 600 questions over the course of one minute.  It doesn't seem like a routine cleanup script. If it was, this is a very odd time for it to run. Also, the drop occurred over the span of a minute, so it's highly unlikely there was simply increased review activity. So, I ask: What was its cause?         (yes please don't shoot me I know my freehand circle is blue) (it's actually a dark teal look again) (the source for this script I  (slightly modified), found through  post)  Raw data:  Epoch time  CV Size 1385822821  98932 1385822881  98932 1385822941  98932 1385823001  98932 *** 1385823061  98932 *** 1385823121  98314     [author's note: the difference between iterations is 60 seconds] 1385823181  98314 1385823241  98314 1385823301  98314 1385823361  98314


On my activity impact page, it says I have cast 45 votes:        However, when I click on the link, and go to my votes cast details, it says I have only cast 40 votes:        Why is there a difference between the number of votes?


Can anybody please let me know what I am missing?

I have type the following code.  \begin{align*} \RR = \left\{ a_1 = \begin{pmatrix}                      0 & 0 \\                      0 & 0                     \end{pmatrix},               a_2 = \begin{pmatrix}                      1 & 0 \\                      0 & 0                     \end{pmatrix},               a_3 = \begin{pmatrix}                      0 & 1 \\                      0 & 0                     \end{pmatrix},               a_4 = \begin{pmatrix}                      0 & 0 \\                      0 & 1                     \end{pmatrix}  \\               a_5 = \begin{pmatrix}                      1 & 1 \\                      0 & 0                     \end{pmatrix},               a_6 = \begin{pmatrix}                      0 & 1 \\                      0 & 1                     \end{pmatrix},               a_7 = \begin{pmatrix}                      1 & 1 \\                      0 & 1                     \end{pmatrix},               a_8 = \begin{pmatrix}                      1 & 0 \\                      0 & 1                     \end{pmatrix}          \right\} \end{align*}


How to extract email:pass using batch or vbs?

I have a text file named file.txt which contains,  myname1234@gmail.com: myname1234@gmail.com:password000 secondmail@hotmail.com: secondmail@hotmail.com:qwerty123 philip007@ymail.com: philip007@ymail.com:iloveyou   I am running a vbs program,  Const SCRIPT_NAME = "Extract E-mail Addresses" Dim objFSO, objFil, arrAdr, varBuf, varInp, varOtp Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFil = objFSO.OpenTextFile("file.txt") varBuf = objFil.ReadAll objFil.Close arrAdr = Split(FindString(varBuf, "\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b"), ",") Set objFil = objFSO.CreateTextFile("results.txt") For Each varBuf In arrAdr     objFil.WriteLine varBuf Next objFil.Close Set objFil = Nothing Set objFSO = Nothing MsgBox "Extraction complete.", vbInformation + vbOKOnly, SCRIPT_NAME WScript.Quit  Function FindString(strText, strFind)     Dim objRegEx, colMatches, objMatch     Set objRegEx = CreateObject("VBscript.RegExp")     With objRegEx         .IgnoreCase = True         .Global = True         .Pattern = strFind         Set colMatches = .Execute(strText)     End With     For Each objMatch In colMatches         FindString = FindString & objMatch.Value & ","     Next     If Len(FindString) > 0 Then         FindString = Left(FindString, Len(FindString) - 1)     End If     Set objRegEx = Nothing     Set colMatches = Nothing     Set objMatch = Nothing End Function   Expected output,  myname1234@gmail.com:password000 secondmail@hotmail.com:qwerty123 philip007@ymail.com:iloveyou   But, Actual result,  myname1234@gmail.com myname1234@gmail.com secondmail@hotmail.com secondmail@hotmail.com philip007@ymail.com philip007@ymail.com   My need : I like to filter only email:password from the file.txt text file. But, using above vbs i can only able to filter email address. Please fix my code to get my expected output. Thanks a lot in advance.  Note : The email and password may vary with different text files. Also am noob to vbs. Being frank i got the above code from Quora. Kindly help me. Even same solution using batch program is also fine for me. Waiting for valuble solutions :)


I've seen many trailers and other gameplay videos showcasing how you can switch from 3rd to 1st person on the fly. However, I don't recall this ever being mentioned in the tutorials (unless I missed it) and I also don't remember seeing it in the control layout in options. Now, I've tried pressing every button that makes sense (ie obviously leaving out the share button) but they all seem tied to an existing function/skill. Am I missing something?  I'm playing on the PS4 (left the tag out since this question isn't specifically about the PS4 itself).


Where can I find information about upcoming special issues in a field of study?

How can I find information about upcoming special issues related to a special field of study? There are good websites for upcoming conferences but I could not find any place to search for special issues.


What is the reason behind creating objects of sub-class using its super-class while using collections?

Often I see on many websites that while working with collections in Java, tutors write the code as:   List al = new ArrayList(); List li = new LinkedList();   instead of   ArrayList al = new ArrayList(); LinkedList li = new LinkedList();   Is there any specific reason why it is written that way? Does it have any advantages over the ones written below?


An Occlumens is a practitioner of Occlumency, while Occlumency means closing the mind. Despite being in the same school with two great Legilimens (Dumbledore and Snape), he was only discovered to be an impostor after the last round of the Triwizard Tournament in Goblet of Fire:  “Moody,” Harry said. He was still in a state of complete disbelief. “How can it have been Moody?” “This is not Alastor Moody,” said Dumbledore quietly. “You have never known Alastor Moody. The real Moody would not have removed you from my sight after what happened tonight. The moment he took you, I knew — and I followed.”  Does this mean that Barty Crouch Jr. is an Occlumens? Because if not, then Snape or Dumbledore would have found it out earlier, right?


Would a C++  compiler be able to compile some large sets of C++ classes without modifications?   Is C++ CLI a superset of C++?


Is it true that an entire function, whose $Re(s)\gt0$, then it has to be a constant? I think this is true and we could use Louville's theorem to prove this, but not sure.


Calculate integral of exponential to the x suared (Simple Gaussian Integral)

For: $\int_{-1}^{1}{\frac{1}{\sqrt{2\pi}} e^{\frac{-x^{2}}{2}}}dx $ A method I saw (but did not get the right result) was to set: $I = \int_{-1}^{1}{\frac{1}{\sqrt{2\pi}} e^{\frac{-x^{2}}{2}}}dx $ and $I = \int_{-1}^{1}{\frac{1}{\sqrt{2\pi}} e^{\frac{-y^{2}}{2}}}dx $ then by calculating  $I^2 $ I could make use of polar coordinates since $x^2+y^2=r^2$ and $dxdy=rdxd\theta$ Any other process I may use instead? I just need to be pointed in the right direction


How to deal with a student found seeking an answer to a coursework question online?

I have just found that a student has posted one of their assignment questions on a forum and is seeking help in getting a solution.  I have a good idea who the student is, but no definitive proof. How would you handle this situation?


I had a question about dynamic vspaces () and there was a hint I should use a stretchable glue. Searching with Google didn't give me a helpful answer.  I would be glad, if someone can explain it and give me a simple example to understand how it works.


What creatures can cast spells from spell scrolls?

The DMG outlines what it means to be a spellcaster:     If the prerequisite is to be a spellcaster, a creature qualifies if it can cast at least one spell using its traits or features, not using a magic item or the like.   The requirement to cast spells from scrolls as referenced by the Spell Scroll magic item (DMG pg. 200) says:     ...if the spell is on your class's spell list, you can use [it]...   But creatures don't typically have spells lists as they have traits or features for casting spells.  Does that mean that no creature is able to cast spells from scrolls even those categorized as spell casters? What creatures can cast spells from scrolls?  Note: This question differs from  as this question pertains to creatures specifically which that question does not address.


Does it make sense to replace a factory Win8 64-bit OS with a 32-bit one on a netbook-like Intel Celeron 847 laptop with 2GB non-extensible (soldered) RAM?


How to reduce complex combination of capacitors into simpler circuits?

Well I am not able to understand how to reduce Complex/Mixed Combinations of Capacitors into simpler circuits.  Well there is one Complex Circuit of capacitors which I was able to reduce into simpler one.(How did i know... because I got the right answer)  Here it is:    But I couldn't able to figure out the basic logic behind the conversion of Complex Circuit into Simpler ones. The concept of solving these questions are vague in my mind.  That's why I stuck in a question in which the circuit was very complex.  The picture is:    Now C=18 microfarad and C1= 12 microfarad(If anyone want to get the equivalent capacitance between P and Q)  How to reduce it in a simpler circuit?  So  a. What is the basic logic behind the conversion of Complex Combination of Capacitors into Simpler ones?  b. If a combination of capacitors can be converted into a Wheatstone Bridge is there any combination of same capacitors other than Wheatstone Bridge so to get  same equivalent capacitance?


Show a,b,c congruences when $a^2+b^2=c^2$

i would like to know how to prove that if $a^2+b^2=c^2$ then   a) $3|a$ or $3|b$  b) $5|a$ or $5|b$ or $5|c$  c) $4|a$ or $4|b$   Also that $a^2+b^2+c^2+1$ can't be divisible by 8  Thank you very much!


Why does my CGI script complain "Can't locate CGI/Session.pm in @INC"?

I am having a html file which will accept and send the login and password. It is sent to the file login.cgi.  **   html file   **  <form method="POST" action="login.pl">

     Username 	     <input type="text" name="usr" size="20">

     Password 	      <input type="password" name="pwd" size="20">

     <input type="submit" id ="Login" value="Login" name="login"/>

   **   .pl   **  #!/usr/bin/perl    # login.pl   use CGI;   use CGI::Carp qw/fatalsToBrowser warningsToBrowser/;   use CGI::Session ( '-ip_match' );    $q = new CGI;    $usr = $q->param('usr');   $pwd = $q->param('pwd');    if($usr ne '')   {       # process the form       if($usr eq "demo" and $pwd eq "demo")       {           $session = new CGI::Session();           print $session->header(-location=>'home.html');       }       else       {           print $q->header(-type=>"text/html",-location=>"LoginHtml.html");       }   }   elsif($q->param('action') eq 'logout')   {       $session = CGI::Session->load() or die CGI::Session->errstr;       $session->delete();       print $session->header(-location=>'LoginHtml.html');   }   else   {       print $q->header;       print <           <form method="post">           Username: <input type="text" name="usr">            Password: <input type="password" name="pwd">             <input type="submit">           </form>   HTML   }   After starting the apache server, i open the page and enter the username as demo and password as demo and click on the button.  I get the following error:     Software error:      Can't locate CGI/Session.pm in @INC   (@INC contains:   /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi   /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi   /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi   /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi   /usr/lib/perl5/site_perl/5.8.8   /usr/lib/perl5/site_perl/5.8.7   /usr/lib/perl5/site_perl/5.8.6   /usr/lib/perl5/site_perl/5.8.5   /usr/lib/perl5/site_perl   /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi   /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi   /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi   /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi   /usr/lib/perl5/vendor_perl/5.8.8   /usr/lib/perl5/vendor_perl/5.8.7   /usr/lib/perl5/vendor_perl/5.8.6   /usr/lib/perl5/vendor_perl/5.8.5   /usr/lib/perl5/vendor_perl   /usr/lib/perl5/5.8.8/i386-linux-thread-multi   /usr/lib/perl5/5.8.8 .) at   /var/www/cgi-bin/login.pl line 6.   BEGIN failed--compilation aborted at   /var/www/cgi-bin/login.pl line 6.      For help, please send mail to the   webmaster (root@localhost), giving   this error message and the time and   date of the error.   Please help me out to resolve this error.  **   EDIT 1   **  Problem resolved after installing CGI-Session-4.42.  Thanks to all of you, for your help.


Convergence of the power series $\sum_{n=1}^\infty\frac{(1+n)^n}{n!}x^n $

Consider the power series $$\sum_{n=1}^\infty\frac{(1+n)^n}{n!}x^n $$ Now the ratio test shows that the given power series converges absolutely $|x|< 1/e$ and diverges for $|x|>1/e$. But all the tests I know(Raabe's test) are failing at $|x|=1/e$.  Any help will be highly apprecieated.


I have a table with three columns namely username, latitude and longitude. My queries are going to be range queries for latitude and longitude together. Should I use a single column index or multicolumn index. What are the performance advantages and disadvantages for both?


how to check disk partition in Ubuntu 12.10 and do partition for other OS

I want to check my disk partition in Ubuntu as i want to install windows OS and create partition


Given the coupon collector's problem, the expected number of coupons is calculated as follows:  $E[X] = N \sum_{i=1}^N \frac{1}{i}$  This assumes we can draw one coupon at a time.  Let's assume one can draw a pack of size $m$. All coupons in a pack are independent, which means there may be duplicates in one pack. In each draw we are only interested in one coupon which we do not have yet. All other coupons are discarded for that draw. Drawing packs is repeated until we have all $N$ coupons.   How do I calculate the expected number of draws for that case?


What is the best way to infuse mint into a tomato sauce?

I want to create a tomato based mint sauce. I have access to fresh mint. What is the best way or the best time while cooking the sauce to incorporate the mint? Are the flavor components in mint water or fat soluble?


I have scheduled a cron job to run every minute but sometimes the script takes more than a minute to finish and I don't want the jobs to start "stacking up" over each other. I guess this is a concurrency problem - i.e. the script execution needs to be mutually exclusive.  To solve the problem I made the script look for the existence of a particular file ("lockfile.txt") and exit if it exists or touch it if it doesn't. But this is a pretty lousy semaphore! Is there a best practice that I should know about? Should I have written a daemon instead?


How can a sine function be transformed to have flat peaks?

I'm trying to create a sine function that will fit a geochron clocks day/night line. Right now I just started with a simple sine function, using map coordinates, which is this y=69sin(x-15)+2 but the peaks of the function should be flat which was not achieved with this function. Any advice on how to relatively easily transform the function to get this effect?   This is the online geochron clock that I was looking at


I installed Ubuntu on my old pc. I thought only C drive would be formatted, but the entire harddrive got formatted and partioned into one.


Why does egrep not find white space correctly in history listing?

I have this in my command history:   280  ls -l | egrep -v '^d'   348  ls -l | egrep '^d'   375  git help ls-tree   376  git ls-tree   377  git ls-tree HEAD   378  git ls-tree HEAD^   379  git ls-tree HEAD system   380  git ls-tree HEAD system/   381  git ls-tree HEAD^ system/   460  ls   463  ls   464  ls /*   465  ls */   466  ls -d */   468  ls -d */   469  ls -d *  I can list all commands that end with / like this: history | egrep "/$"  But if I want to list all commands that start with ls, and I type this: history | egrep "^\s*\d*\s*ls"  It returns nothing. However, if I the output the text to a file and copy the output to regex101.com, then this regex correctly finds all commands that start with ls. Is there some other variable I need to use other than \s to identify whitespace in the output with egrep?


Enabling modules my site has been partially crashed?

When I enabled some modules (Drupal Chat, Chat room, and Node.js) my site crashed, and it reported some errors; I have removed my modules entirely, and reloaded the site, but still the errors are showing on the dashboard.     PDOException: SQLSTATE[40001]:  Serialization failure: 1213 Deadlock found when trying to get lock; try  restarting transaction: DELETE FROM {semaphore}  WHERE  (name = :db_condition_placeholder_0) AND (value =  :db_condition_placeholder_1) ; Array (     [:db_condition_placeholder_0] => menu_rebuild     [:db_condition_placeholder_1] =>  20854936424f460742220126.19788787 )  in lock_release() (line 254 of /var/www/mute/includes/lock.inc   How can I fix this?


I just received a PhD invitation letter from a German University which mentions that my remuneration will be 2/3 of full TV-L 13 position. I do not know what a TV-L 13 position is (Google is of no help here), and didn't want to be rude, so I am asking here first. Is this a common position or specific to Germany? If anyone knows, currently how much remuneration corresponds to a TV-L position?


When I grab an object I move the originpoint of it, instead of the object itself. What has happened and how can I change it back?


My / partition ran out space. I don't know how to extend this partition.  Please help.  Thanks.


If everything in the universe doubled in size overnight, would it be noticeable?

By my understanding, if everything doubled in size, such as the Sun and the Earth, and because the space in between them (which is nothing) can't expand, would the gravities greatly change and the Earth be pulled into the Sun?


What is the difference between ''I often listen to the radio'' and ''I often listen to radio''?

What is the difference between ''I often listen to the radio before I go to the bed'' and ''I often listen to radio before I go to the bed''?  Why is the second one not correct? It was marked as uncorrect in a Cambridge English excercise.


nginx https www redirect to non-www using let's encrypt certbot

Hi this must be a basic question but I haven't seen an answer with cerbot considerations (if there are any considerations). How do I get https www to redirect to non-www instead of timing out?  The https www version of my site times out instead of redirecting to non-www, whereas all other versions (http and https non-www) work fine.  Preferably I would like to future proof so that I can renew the certs through certbot and not need to manually change the nginx config afterwards.  The nginx server config is shown below:  server {     listen 80 default_server;     listen [::]:80 default_server ipv6only=on;     server_name www.mydomain.com mydomain.com;      listen 443 ssl; # managed by Certbot     ssl_certificate <path_to_cert> # managed by Certbot     ssl_certificate_key <path_to_key>; # managed by Certbot     include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot     ssl_dhparam <path_to_this>      if ($scheme != "https") {         return 301 https://$host$request_uri;     } # managed by Certbot }


Make "compact view" as a default directory view instead of "icon view"

How can I make "compact view" the default for all directory views in File Manager, instead of "icon view" ?


How does Charles Xavier pay for all of the gadgets at the X-Mansion?

In mainstream Marvel Comics, how does Charles Xavier pay for all the gadgets at the X-Mansion? I understand that the mansion itself has been in his family, but the Danger Room, Cerebro, the X-Jet, missile defense systems, and all of the advanced technology must cost and arm and a leg, not to mention the electricity and other materials to power them. And unlike Bruce Wayne over at DC Comics, Xavier doesn't have a company generating revenue to pay for it.  How does Charles Xavier pay for all the gadgets at the X-Mansion? Does one of the mutants have the power to print money?  This question was inspired by Atop the Fourth Wall's , which jokingly suggested that Xavier got a Pell Grant for the school to fund missile defense systems.


I'm trying to get a hold of the Saleforce stack and so far i have created a custom controller and have access to the data i need on a visual force page. However i'm not sure how to translate this to a lightning component.  As an example here's my simple vfp...  <HTML> <script src="staticResource"></script> <script>   audiojs.events.ready(function() {     var as = audiojs.createAll();   }); </script> <audio src="mp3URL" preload="auto" /> </HTML>   I know that i use the following code to load my script  <ltng:require scripts="{!$Resource.audiojs}" afterScriptsLoaded="{!c.afterScriptsLoaded}" />   But i'm not really sure how to translate the rest of my code to the component. What i would like to do is have a quick action button where a user can play audio stored on a salesforce object without having to switch pages.


Chemical Spill on Land (ArcGIS, ArcMap 10.4.1, Hydrology Tools)

I'm a very new ArcGIS user currently working on my first project regarding chemical spills on land.  The Background:  Software that I have to use is ArcMap.  Currently, I am trying to use the pour-point tool to delineate the flow path from a proposed spill/leak point of a chemical bearing pipeline.  So far I have used only the Hydrology Toolset and this is what I did in sequence...   Filling the LiDAR Data Generate Flow Direction Generate Flow Accumulation from the Flow Direction Delineate the drainage Basin and also turned it to polygon features to outline the flow accumulation passages. I created a new point shapefile and assume it as the "proposed leaking point" (Please view the hand drawn diagram below)   The problem:  Firstly I measure by estimating the distance of the "proposed leaking point" to the nearest flow accumulation line (12m). Then I run the snap-pour point tool with a little addition to the measurement (snap-distance: 15m). After it transforms the point shapefile of the "proposed leaking point" as a pour-point (as shown in blue in the diagram below) and snapped it to the nearest highest flow accumulation point... I then use the watershed tool..  However... This only delineates the whole stream (watershed) which contributes to the pour-point. This is not what I am looking for as it is not taking into account the "proposed leaking point".  The Question:  How do I get the delineation or the flow line of the chemical from the "proposed leaking point"?    ArcMap is not working so I had to draw this.  Edit: Additional Images   Image above shows the pour-point that creates a watershed of the contributing streams.   Image above shows where I would like the flow line to be if there is a leak at that point of the pipeline.


For , his accounts tab shows three entries for "Database Administrators". It's the same account listed three times:


I've just earnt the Announcer badge for a deleted question, which feels wrong

I recently filed what I initially thought was a bug, but was mostly user error here on Meta, and tweeted about it. Once it was pointed out to me that it was user error about 2 hours after I posted it, I deleted the question.  I've just been awarded the  for that deleted question, which while nice from a badge point of view feels fraudulent, as most people would see the question as a broken link:


Laptop sometimes won't come out of sleep mode since updating to 21.04

This is on an ROG Zephyrus M15. I updated Ubuntu to 21.04 a couple days ago, and since then there's been three times when I try to get it out of sleep mode it won't do it. I have to hold the power button until it turns off then start the computer again. I'm pretty sure it's related to the update since it didn't happen before it, but it's happened three times in just a couple days. If anyone has any advice that could help prevent this I'd appreciate it. Thanks.


Prove that $x^n$ is a convex function on $(0,\infty)$

Intention  The clear solution is to use the fact that $x^n$ is twice differentiable. But I want a more direct proof. To be clear I want to prove this result without referencing the idea of a derivative.  My work  I decided to start with the inequality I wanted to prove, and work backward to an inequality that is obviously true.  Start with $$(ax+by)^n\leq ax^n+by^n\quad (1)$$  where $a$ and $b$ are positive real numbers such that $a+b=1$. Then (1) can be rewritten as  $$(a-a^n)x^n+(b-b^n)y^n-\bigg(\sum\limits_{k=1}^{n-1}{n\choose k}(ax)^k(by)^{n-k}\bigg)\geq 0$$  I am stuck here.


How to set closeDate of a Case record in the test Method?

I am writting a test method, where I have to set closedate of a case record to an old date.  I know, i can make Status to "closed", but it will give you close date as Today.  Is there any other way, where I can set the close date to an old date?


I know I'm asking for the close-to-impossible -- as a real full-backup certainly requires root permissions. But still there are many folks around not wanting to root their devices -- afraid of voiding their warranties or bricking their devices, or just not having their devices supported by any rooting method.  I also know there were a lot of questions asked already on this topic, and I checked all of them having the backup tag -- none covers the entire topic, all just have pieces, and especially people new to Android (but other non-power-users as well) would have a hard time figuring out the best way.  So I want a detailed canonical answer to the question:  Not involving root-solutions, how to achieve a backup as close as possible to a full backup?  Please do not give simple one-liner answers like "Use app xyz [full-stop]." If mentioning an app (and I doubt a single app would be the answer here), include what parts are covered by it -- as well as ideas on how to fill the gaps it leaves. (And to make it absolutely clear: I know the first thing coming to mind is Titanium Backup -- I use it myself, but this does not apply here: This question is strictly about methods for non-rooted devices!) Moreover, the answer should be as generic as possible in terms of applying to a wide range of devices (i.e. it should not be restricted to one device or manufacturer).  I already mentioned having investigated all questions here tagged backup. These will certainly be helpful providing details for answers here, so I will list up the topmost ones concerning my question:            All these provide some details for my question (so feel free to get inspired by them) -- but I feel there are still details missing. Also it would be helpful to have a summary -- say, an answer including the full description of "the maximum possible".  A last criterium: While I'd consider cloud-based solutions legit, I'd favour local solutions. If you can provide both: all the better. But some people value privacy quite high (I'm one of them), and thus would not trust their data to some cloud service.    Thanks to Ryan, we now have a solution for a really complete backup of all apps and their data -- which I didn't dare to hope for! The only disadvantage: His solution only works for less than 10% of all Android users; namely those whose devices are running at least with Android 4.x.  So again, I ask the close-to-impossible: Any solutions applicable at least on Gingerbread (2.3.x) or, better, even Froyo (2.2.x) -- so they cover the majority of current devices? These solutions may involve multiple tools (try to keep it as simple as possible though; think of your mother to follow your instructions ;)  And keep in mind: NO ROOT!    To further motivate high-quality answers (and hopefully avoid low-quality ones), I will be a harsh one here: As I rarely do, I will down-vote answers not fitting the mentioned criteria on one end -- but on the other end, I will setup a bounty for the best answer (which cannot be done immediately, but earliest after 2 days).


Is there a limit on how many Single Entry Visas I can get for Thailand per year?

Is it possible to get multiple Single Entry Thai Tourist Visas per year?  I am currently considering going to Thailand 2-3 times in the next 12 months:   August/September for Kitesurfing in Ko Pha Ngan December-February for Kitesurfing in Hua Hin February-March for Kitesurfing in Hua Hin   2./3. are the most important to me, but if possible I would also like to go the 1. time.  I am simply planning to go as a Tourist, I don't intend to do any kind of work in Thailand. I would apply for the Multiple Entry Thai Tourist Visa, but am currently staying in Japan and don't intend to go back to my home country before. I understand I can only apply for the Multiple Entry Tourist Visa in places where I can claim residence.   I have entered Thailand the last time on 28th of December 2016 and stayed the maximum amount of possible days: 97 (60 day tourist Visa + 30 day extension + 7 day extension).  I am a German citizen/digital nomad being paid from the US.  Does anyone have any knowledge or experience with this?


Why don't Jedi simply fight using the Force instead of the more cumbersome lightsaber?

By using the Force, they can control the minds of their opponents and make them commit suicide. Fighting with lightsabers is more cumbersome in comparison, not to mention using blasters is more efficient.


I went to upvote , which is on a , and I received this error message: "This comment is not eligible for voting or flagging"    I then went to flag it, and it let me flag it. I also tested another comment with a different flag reason other than "other:needs mod attention" and that worked as well.    I don't think you're suppose to be able to flag comments on locked posts. So it's probably a bug that I was able to.  If for some reason this is by design now, then the error message should be updated by just removing the "or flagging" part.


Display positive question record actual number/ratio for user convenience

Personal Opinion Example Badge: When I click on the  (Picture One) I can see percentage, but why not on this  (Picture Two)... generally new user are confused by seeing this... I think need positive record can be replaced with "Ratio" or "Number" as per as requirement with text, etc. for the user's convenience... Edit Example Model I want to replace (need positive question  record) text from (Picture Two) with Example as a => 0.1/0.5 positive question record ratio (like the Electoral badge shows 51/25 on question area) End Edit From this  (total questions - negative questions - closed - deleted)/total questions ≥ 0.5  Picture One  Picture Two


select top 10 records for each group in sql

i have table below field  Hour,PathId,Duration,Event,CellId,Channel  Here each cellid have four pathId(i.e, 0,1,2,3),Each pathId have many Events,Channel and Durations.   Now i want to display top 10 records(each pathId) for each cellid.  (group by cellid, pathid and channel we got duration.. we take top ten each pathid based on duration)  i have 50+ cellid and each cellid have four pathid(i.e, 0,1,2,3)  pls help me  !   !


How can we interchange union and intersection in   $$\bigcap_{\gamma < \kappa}[\bigcup_{n<\omega}I(\gamma,n)]$$


What is the difference between the blackness of a Black Hole and the blackness of a Black Body?

Light cannot escape the gravitational pull of the black hole and hence the 'black hole' is black. Any object that is black in color, absorbs all wavelengths of light and reflects none. So it appears black.   Could someone explain the key difference between these two phenomena ?


Should we place custom back button for websites?

How about a website that has 4 pages with list and detail view structure?  Hope most of the users will be aware of using browser back button to go back to previous screen. Or should we provide a custom back button on the website?


Can you spot my mistake in the following line? $\cos(2\pi t)=\Re(\exp(2\pi it))=\Re((\exp(2\pi i))^t)=\Re(1^t)=1$


I'm about to switch my OS from Windows XP to Ubuntu on an HP laptop, primarily for internet use. Is there an "idiot's guide" anywhere here that I can print up before I try it? The plan is to put the OS on a separate USB hard drive so, if I really mess up, I won't lose everything on the laptop HD.  I have some technical programs on the laptop that won't run on anything but Windows so I will still need XP on occasion. Thanks.


After rebooting with a Hard disk drive with ubuntu 18.04 ISO inside and clicking "Install Ubuntu", I got a black screen. My laptop is Lenovo

I'm trying to install ubuntu 18.04 on windows 10 Lenovo by rebooting with a usb hard disk drive. I got to the boot menu here:  Then, I selected "Install Ubuntu" and clicked "e". Then I replaced "quiet splash" with "nomodeset" ( shown in this picture)  Then I got a blank screen. Any advice on this? Thank you


I've been reading code produced by other developers on my team, they seem to favor using += for String concatenation, whereas I prefer using .concat() as it feels easier to read.  I'm trying to prepare an argument as to why using .concat() is better, and I'm wondering, is there any difference in efficiency between the two?  Which option "should" we be taking?  public class Stuff {      public static void main(String[] args) {          String hello = "hello ";         hello += "world";         System.out.println(hello);          String helloConcat = "hello ".concat("world");         System.out.println(helloConcat);     } }


Adding Subsurface Modifier to Cylinder Not Smooth

I'm trying to get a nice rounded end to a cylinder. When I add a subsurface modifier plus an edge loop, the edge looks 'choppy':    Is there a way I can get this smooth? I've done this previously, but this was by adding a sphere at the ends. It would be nice to not have to add extra objects if possible.


Comparing Standard Errors, t-Statistics, P-Values, Logistic Curve Fitting Exercise

I have two growth curve data sets, A (Martians) and B (Venusians). Data point sets of age (0 (birth) - 250 months, X axis) against height (0 - 200 centimeters, Y axis). The first set (A) contains 67 X Y point pairs, the second set (B) contains 27 point pairs. I have fit both data sets to my favorite version of the Logistic Equation using NonlinearModelFit. NonlinearModelFit returns estimates for my two independent variables: Increment, (N0), and Time Coefficient (k). Then following I invoked "ParameterTable" calculating: (1) Standard Errors (2) t-Statistics and (3) P-Values for both of the curve fitting exercises, Martians and Venusians. Of the three Parameters: Standard Errors, t-Statistics, and P-Values, which parameter indicates a better fit to an energy conservative logistic equilibrium? Standard Errors on the calculated Time Coefficients (k)? t-Statistics on the calcuated Time Coefficents (k)? My question, is growth on Mars more of an energy conservative mechanical process than growth on Venus? Are data sets with different numbers of point pairs directly comparable on Standard Errors, t-Statistics and P-Values?


Hardware Description Language questions: Stack Overflow or Electrical Engineering Stack Exchange?

I've been learning VHDL and as I get some questions in my head, I wonder where should I put them. So where should VHDL, Verilog and other HDL questions go? Or does it depend on the question?


Occasionally I want to cd into a directory where my user does not have permission, so I resort to sudo.  The obvious command sudo cd somedir doesn't work:  $ sudo mkdir test $ sudo chmod go-rxw test $ ls -l drwx------ 2 root     root  [...snip...] test $ cd test -bash: cd: test: Permission denied $ sudo cd test sudo: cd: command not found   Using sudo su works:  $ sudo su # cd test   Is it possible to make this into a one-liner? (Not a big deal, just idle curiosity :)  The variations I tried didn't work:  $ sudo "cd test" sudo: cd: command not found $ sudo -i cd test -bash: line 0: cd: test: No such file or directory $ sudo -s cd test   The last one doesn't give an error, but it cd's within a new shell that exits by the end of the line, so it doesn't actually take me anywhere.  Can someone enlighten me as to why this happens? Why is sudo cd not found, when for example sudo ls ... works fine?


What does this circuit do?  It looks a little bit like a flip-flop to me, but it doesn't exactly match the circuit for an SR flip-flop .  Is this just a different way to implement an SR flip-flop, or is it something else entirely?  Thanks!  Edit: To clarify, DTR and RTS in this circuit are both 3.3V level signals, not RS-232 level signals.  This circuit comes from .  (So, DTR and RTS are coming from the CP2104 USB-to-serial converter chip.)


how can we print a char array such that after comparison, I did append to string builder and then converting to char array.   import java.util.*;  public class duplicatesremoval {      public static void main(String[] args){          Scanner sc=new Scanner(System.in);         String input=sc.next();         String output= "";            char[] str=input.toCharArray();         char[] str1=output.toCharArray();          StringBuilder sb = new StringBuilder(64);           for(int i=0;i<str.length-1;i++){             for(int j=0;j<str1.length-1;j++){                 if(str[i]!=str1[j]){                     sb.append(str);                     sb.append(str1);                      char[] result = sb.toString().toCharArray();                 }              }          }         System.out.println(result); // error result cannot be resolved to a variable.          sc.close();     }  }   I did even tried using result.toString but it didn't work. Thank you


$\Bbb Z$ as a $\Bbb Z$-Module is not artinian but noetherian

I' ve read that $\Bbb Z$ as a $\Bbb Z$-Module is not artinian, but noetherian.  I' ve thought a lot about this, but I can' t find a proof of that. It might be easy, but I just can' t imagine how to proof that.  Does somebody can help me? I really want to understand this.


What do you call the little black nub on the end of a scanner's USB cable?

This a scanner's USB cable , I'm wondering what's the little black nub on the end of the cable and what's it for ?


What does the number 2 mean in this picture?    Thanks.   Sorry I'm not a math expert.  I need this to make a program in C to generate a trinomial triangle for a guy who asked it on StackOverflow (it is his homework). Gotta earn that reputation. You know how it is!


Let $R$ be a ring, and let $S$ be an $R$-algebra. Let $M$ be an $R$-module. Under what conditions on $R$, $S,$ and $M$ is it true that we have the following isomorphism of $S$-modules? $$S \otimes_R \operatorname{Hom}_R(M, R) \simeq \operatorname{Hom}_S(S \otimes_R M, S)$$  I know there is an obvious map from the left-hand side above to the right-hand side (namely, send a map $\phi \colon M \to R$ to the map $\operatorname{id} \otimes_R\, \phi$), but I do not know what conditions are required for there to be an inverse map. Does this have anything to do with $M$ being torsion-free as an $R$-module?


It's heresy I know, but look at . It's raw, hand written HTML, it's plain, boring typography, it's something any UX or Graphic designer would scoff at if you handed it across their desk. But it works, and it works well.  Drudge's design has been fairly consistant and it's pretty much exactly what it looks like, it's raw HTML and it has barely been changed since . Lots of mud is slung at it's design, but it's considered by some to be .  Drudge's design scores great on conventional measures of usability: It's effective, users find stories that they consider interesting and stories are prioritized to indicate "big" news. It's always clear what's a link (underlined) and what's not. It's efficient, there's hardly any interface and a simple click on a headline takes you where you need to go. Arguably it's satisfying, it's a highly ranked site, though I don't have any user satisfaction surveys on hand.  So when can something aesthetically "ugly" give great UX and how? What else does deliver this ugly but beautiful level of effective plainness?  is another example of this, though arguably not as great from a usability standpoint. I don't often see sites like Drudge Report, but it's interesting to consider such an unconventionally minimalistic implementation and where it can be applicable.  Update: I'm not talking about just usability; it's long been known that you can have a super efficient and effective design and people hate it because it looks like crap. I'm talking about designs that look "ugly" but still leave the user with a good or even a great experience, experiences people enjoy for than just the bare functional reasons, but not because of pleasant, trumped up aesthetics either.


I've seen a lot of questions like this throughout the web but they're mostly from 2 or 3 years ago, so I decided to ask to have some updated answers.   I'm 16 and I want to start publishing and using the benefits that comes with the Developer Program. In the legal agreement says that I should be over 18, and I'm not so, i can't do it. I've contacted the apple developer support and they told me that I should use a account in my father's name. We reside in Brazil. With that, I had some doubts:   Will the name on the App Store be mine or my father's? In the future, when I'm 18, this account can be transferred to my name?   Besides that, if someone has any advice or (legal) workaround I'd appreciate it, thanks


What is the process for screening a movie today?

Perhaps a bit of an odd question, but I've always been intrigued by all aspects of the entertainment industry.   After the post-production process, what is the process for a typical screening of a major film? The distribution company sends out copies how...? Obviously not using film reels.   Once they receive a copy, how does a movie theater essentially 'play' a movie?


Failed to download repository information ubuntu 14.04

I am a new user of Linux migrating from Windows. I do not know much about Ubuntu. I've installed Ubuntu 14.04 version. At start, Software Center was working, but now Software Center is not working. It is showing this error:     Failed to download repository information. Check your internet network   Please tell me the solution of this problem, and also give me some useful tips % tricks about linux.


Is there a way to convert the code below to have a dot added between the numbers it puts out? I'm not trying to use an algorithm or foreign library. I'm trying to continue my python knowledge with the built-in modules first  print(list("😀".encode("utf-8")))


Show that from any five integers, one can always choose three of these integers such that their sum is divisible by 3.  I wasn't sure how to solve this problem, can someone please help? Thanks!


Can a character use her movement to help someone else stand up?

Standing up takes , and you can also  during your turn. Neither of these things indicate whether or not you can help someone else stand up on your turn. If you can  or , then it makes sense that you would be able to help someone else stand up. Do the rules allow this?


Listing causes strange vertical spaces when put it on the next page

I have simple document:  \subsubsection{Dodanie testu} \begin{lstlisting}[caption={ComplexTest},label={lst:complex-test}]     public class ComplexTest{          public testComplexAddition(){             Complex a = new Complex(1,2);             Complex b = new Complex(3,4);                } \end{lstlisting}     Some text    \subsubsection{Uruchomienie testów} Some text   \subsubsection{Napisanie kodu} Some text   with these settings for my listings:  \lstset{ language=Java, captionpos=t, tabsize=3, frame=none, keywordstyle=\color{blue}, commentstyle=\color{darkgreen}, stringstyle=\color{red}, numbers=left, numbersep=-8pt, showstringspaces=false, basicstyle={\small\ttfamily} }   my output looks like for first page:   for second page:    but when I put \pagebreak just before \begin{lstlisting} to have it on the next page I have got strange vertical spaces between subsubsections and texts. There is the output:    PS. The same occours when I put additional lines of code to my listing and Latex implicit breaks line and put these lines on next page.


I've just upgraded to Ubuntu 13.10 and I'm seeing a strange behaviour. All windows I open have a black, boxy border, including popups, as you can see in the provided image. (The black box in the bottom right is a terminal, which fails to display any text. However, I can enter commands and they execute.) I followed the steps in this post:  to reset Unity using the unity-tweak-tool. Although helpful, that did not fix the issue. I'm thinking this may be a graphics card driver issue.  Any help is much appreciated.


Interpretation of the ending of Lost In Translation

Bob Harris gets ready to leave Japan and initially bids goodbye to Charlotte near  the elevator in the hotel.  He sees her again on the way and they share a kiss and he whispers something in her ear to which Charlotte acknowledges. I cannot wrap my head around the significance of that scene, what does it mean?  Anyone explanation would be greatly helpful.


Suppose two sets of 2 elements, $\{x_1, x_2\}$ and $\{y_1, y_2\}$ are uniformly and independently chosen from the set of integers ${1, . . . , r}$

Suppose two sets of 2 elements each, $X = \{x_1, x_2\}$ and $Y = \{y_1, y_2\}$ are uniformly and independently chosen from the set of positive integers ${1, . . . , r}$. What is the probability that the sets $X$ and $Y$ are disjoint?


sir unfortunately my copy of windows8 was not genuine and i am unable to install Ubuntu 12.01 version if the formatting is the way i lost most of my data so my query is thier any possibility of installing Ubuntu along with windows please reply


cmake linking templete class gives undefined reference

File struct Base|       Foo |           | Foo.hpp & Foo.cpp        Bar |           | Bar.hpp & Bar.cpp        main.cpp & CMakeLists.txt  Bar.hpp template <typename Ty> class Bar { public:     float Value() const; };      Bar.cpp #include "Bar.hpp" template<typename Ty> float Bar<Ty>::Value() const {     return 1234.0; }  Foo.hpp #include "../Bar/Bar.hpp" class Foo : public Bar<int> { public:     float Get() const; };  Foo.cpp #include "Foo.hpp" float Foo::Get() const {     return Value(); }  the main part of CMakeLists.txt add_library(Bar_lib Bar/Bar.cpp Bar/Bar.hpp) add_library(Foo_lib Foo/Foo.cpp Foo/Foo.hpp) target_link_libraries(Foo_lib Bar_lib) add_executable(testing main.cpp) target_link_libraries(testing Foo_lib)  The main.cpp file just calls foo.Get(), and when I run cmake&make it gives /usr/bin/ld: libFoo_lib.a(Foo.cpp.o): in function `Foo::Get() const': Foo/Foo.cpp: undefined reference to `Bar<int>::Value() const'  But when I put everything into main.cpp file, it will successfully compile. So I know it has something to do with make. My question is how can I modify the CMakeLists.txt or even the cpp file to get this thing run? I'm a noob in cmake, so I'm sorry if I asked a dumb question. Big thanks to every suggestion


Why haven't I gotten the Extra Toppings hat?

I recently  on Stack Overflow and to my knowledge it meets the criteria for Extra Toppings:   Has > +3 score Competing with already accepted answer Answer & Question were after Winterbash started   Could it be that I answered a day after the competing answer was accepted or that I've hit the rep cap? I was thinking maybe the hat check hadn't run but someone has already received the Glasses With A Number On Top while meeting the criteria after me. Are there some hidden criteria?  This has got to be a bug with Stack Overflow, because  from Workplace.SE triggered the hat, and the competing answer was posted a year after the original one.  from Graphic Design.SE also triggered the hat and the poster got the hat within 30 minutes of the post (the linked post was originally unaccepted).  tried to get the hat on Stack Overflow but didn't get it and was eventually disqualified due to it being accepted.


The user name remains displayed when selecting another site (tablet device only)

When selecting a new site in the app, the user name remains displayed in the bar above.       How to reproduce:   Look at a user's profile. Click "All (number) sites" Click one of the icons that are displayed in the left.   The user name at the top remains displayed.     App Version: 1.0.89 Device Manufacturer: asus Device Model: K011   OS Version: 4.4.2 (JP_K011-JP_user_3.1.23.189_20141124-user-20141124)


Sanity check about Wikipedia definition of differentiable manifold as a locally ringed space

Most textbooks introduce differentiable manifolds via . This has the advantage of being concrete, but the disadvantage that the local coordinates are usually completely irrelevant- the choice of atlas and chart is arbitrary, and rarely if ever seems to play any role in differential geometry/topology.  There is a much better definition of differentiable manifolds, which I don't know a good textbook reference for, via . This definition does not involve any strange arbitrary choices, and is coordinate free. Paragraph 3 in Wikipedia (which is the actual definition) states:   A differentiable manifold (of class $C_k$) consists of a pair $(M, \mathcal{O}_M)$ where $M$ is a topological space, and $\mathcal{O}_M$ is a sheaf of local $R$-algebras defined on $M$, such that the locally ringed space $(M,\mathcal{O}_M)$ is locally isomorphic to $(\mathbb{R}^n, \mathcal{O})$.   This confuses me, because I don't see why such a sheaf should be acyclic, or where conditions like "paracompact" or "complete metric space" or "second countable Hausdorff" are implicit. So either:   The wikipedia entry has a mistake (I would want to sanity-check this before editing the entry, because this is such a fundamental definition which thousands must have read). Somewhere in that definition, the condition that $M$ be paracompact is implicit.   Question: Should the definition above indeed require that $M$ be second-countable Hausdorff or paracompact or whatever? Or is it somehow implicit somewhere, and if so, where?    Also, is this definition given carefully in any textbook?  Update: I have editted the Wikipedia article to require that $M$ be second-countable Hausdorff. But I'm still wondering if there is a textbook covering this stuff, and whether requiring the sheaf to be acyclic might have worked instead as an alternative.


Why are only the Lagrangian and Hamiltonian used in mechanics?

Why is it that we have a closed set of four functions, connected by Legendre transforms, in thermodynamics but nobody ever mentions but two of the corresponding functions in mechanics?  I've read that the Lagrangian L(q, q') corresponds to the tangent bundle of the configuration space in differential geometry, while the Hamiltonian H(p, q) corresponds to the cotangent bundle. If we call the mystery functions in mechanics X(p, p') and Y(p', q'), what do they correspond to in differential geometry?  Note that is order to get an exact one-to-one correspondence with the thermodynamic functions, with all of the plus and minus signs coming out the same, it is necessary to re-define the Lagrangian as L=V-T, instead of the conventianal L=T-V.


Why didn't Snoke sense this in "The Last Jedi"?

Supreme Leader Snoke is a powerful user of the Force, and he is shown to be able to initiate telepathic connections between two people who are strong in the Force across great distances (among other powers).  But why didn't he sense what was going to happen in the Last Jedi?      Snoke asks Kylo to kill Rey since she wouldn't join the First Order. Kylo seems to get ready to kill Rey, but as Snoke keeps talking, Kylo takes control of Rey's light-saber (which was sitting by Snoke) and kills Snoke with it.   Snoke even says (just before this event happens) that he is able to sense each of Kylo's thoughts. This was such a significant event and change in the plans (Snoke's plans), why wasn't he able to sense what was happening right next to him?


Why is this query producing a "List has no rows for assignment to SObject" error?

I'm attempting to put this into a VF page which will be the New page for an object. The code is supposed to run this query based upon the value of a field, but I'm getting this error when trying to create a New record :   List has no rows for assignment to SObject   I'm guessing it's because there is not yet a value in the field which is being used to query upon? But that's just my (semi) educated guess. I tried putting those IF ELSE statements in it :   public with sharing class MyController5 {      public account acc {get;set;}     public string names {get;set;}     public Contract_Overview__c contract {get;set;}     string contractid;      public MyController5(apexpages.standardcontroller controller){         acc = new account();         contractid = system.currentpagereference().getparameters().get('id');         contract=[select account__c,Subsidiaries_On_Contract__c from Contract_Overview__c  where id =:contractid];     }      public list<selectoption> getitems(){         List<selectoption> options= new list<selectoption>();         account a =[select name , (select name from Subsidiaries_and_Brands__r) from account where id =:contract.account__c];          if (account.isEmpty(){             name == ‘No Sub Selected Yet’;         } else {           For(SubsidiariesAndBrands__c s : a.Subsidiaries_and_Brands__r){             options.add(new SelectOption(s.name,s.name));         }         return options;     }      public void execute(){}      public void save(){         contract.Subsidiaries_On_Contract__c=names;         update contract;     }  } }   but that's giving me this error when I try to save the code :   Error: Compile Error: line 18:14 no viable alternative at character '‘' at line 18 column 14   Line 18 is this one :   name == ‘No Sub Selected Yet’;   I guess I'm referring to the wrong variable, or just not assigning it the correct alternative ? Does anybody have an idea on this ?   Thank you very much for any help.


If $ f(f(f(x)))=x$, does$ f(x)=x$ necessarily follow?

Does $f(f(f(x)))=x \implies  f(x)=x$? Is it necessary for it to follow? How do we prove this? Do we have to substitute some special $x$? Or is it some other consideration of its properties?  Edit: does it follow in the special case when f is surjective? Or would we wind up with the same thing?


I've been perusing the questions on this forum for sometime now and I think I'm developing an interest in taking part in an adventure.  I see a lot of people take part online or over Skype.  Would anyone have any suggestions on the best way to get started?  I'm a 100% novice, other than playing Baldur's Gate and similar games. Are there any websites / forums that could help me out?  I'd like to meet some people, develop a character and take part in an adventure.


(a) For this problem, define a nonstandard die as a 6-sided die that is equally likely to come up on each side, but has a different set of numbers than the usual 1,2,3,4,5,6 on its sides. A standard die will be the usual fair die bearing the numbers 1,2,3,4,5,6.   Is it possible to design a pair of nonstandard dice, with positive integers on the faces (not necessarily all distinct), so that the probability of rolling any given total on those two dice is the same as the probability of rolling that total on two standard dice? The two dice do not need to be identical. If it is possible, do it. If it is not possible, prove that it is not possible.  Some hints I got were to try to construct a pair of nonstandard dice such that the generating function for their sum matches the corresponding g.f. for a pair of standard dice and to note that the g.f. for a pair of standard dice can be factored quite a bit (you can reduce it to factors of degree 2 or less).  I still can't figure it out after rereading the textbook and looking at a few examples.  Can anyone help me?


Help me set constant current to 1.5mA output and LED to 20mA

I don't understand enough to accomplish this, constant current output to 1.5mA LED current to 20mA its simply been too long since I learned these things. Im only modifying an existing (likely popular) circuit.    Greatly Appreciated.


LaTex problem with matrix left alignment on the margin

I want my matrix to align next to the left margin, but it does not work at all. Here is my code:   \begin{equation}     E=     \begin{pmatrix}         1 & 0 & 0\\         0 & 1 & 0\\         0 & 0 & 1     \end{pmatrix}     \nonumber \end{equation}   Thank you in advance.


How to use different logins for the same account?

I usually login using my Google account. But sometimes I don't want to login with my Google account, and I would like just to enter my username and password in Stack Exchange and logon to my current account. How to organize that?  I am trying to add more logins:    But I don't see "Create Stack Exchange login" or something like that.


I use a bunch of Adobe products like InDesign and Lightroom, but they are trigger happy when you use a Magic Mouse and a slight touch will send the current pages/images sideways or jump multiple images. There is a Terminal script to stop sideways scrolling which I've set and confirmed that the option is set to false in the prefs, but this makes no difference. Any other ideas on how to do this so it stops sideways scrolling? Otherwise, a good replacement mouse for graphics/photography work.


I installed PasswordSafe 0.93 beta by downloading its deb-package from SourceForge and have it taken care of using Ubuntu Software Center.  Now PasswordSafe asks me every time what psafe3-file to load instead of offering me a default one - as it used to be with the Windows version of it. So I thought about having a look at PasswordSafe and its (probably existing) config files and see if I can edit them appropriately. But this endeavour fails at locating the program and its related stuff.  How do I go about finding it?


Is there a method to export the URLs of the open tabs of a Firefox window?

If I have a Firefox window open that contains 10 tabs, is there a way in Firefox or by a plug-in to get the URLs of those 10 tabs as a text file or some other format?  Right now if I want to do this I need to copy the URL of tab A, paste it somewhere, move to tab B, and repeat.  I could also bookmark all the tabs into a folder and export that, but that seems like such a hassle.  If there is no such method, could someone point me to some documents that describe the basics of writing a Firefox plug-in.  I am willing to write this myself if there is no "standard" way.


How to calculate the integral $\int_{0}^{\frac{\pi}{2}}\sin^{2x}\theta d \theta$

Not sure how to do this one I know it might have something to do with reduction formula but not sure where to go


I have wrapped the Exception in my java class into a custom exception. I want my custom exception to receive two parameters, one the message and second a list.  But the problem is listOfFailedRecords has to be generic.   Something like,   throw new MyException("Failed due to dependency", listOfFailedRecords)   And the MyException class would look like,  public class MyException<T> extends Exception {     List<T> listOfFailedRecords;     MyException(String message, List<T> listOfFailedRecords) {         super(message);         this.listOfFailedRecords = listOfFailedRecords;     } }   But the problem is Java doesn't allow generic class to extend Exception class.  What should be the approach now? Should I pass a list of Objects to this exception as   List<Object> listOfFailedRecords   Or is there a better way?


Stack Exchange site for code optimization

Where can you post questions about optimizing code?  Like I want to post a question about a piece of C code I have written and then solicit input for how to make it execute faster on various platforms. Is there such a Stack Exchange site?


Project only required shapefiles in folder

I have 8 shapefiles in a folder with shapefile 1 and 8 in the same projection and the others (shapefile 2-7) if different projections.   Is there a way to use python to use shapefile 1 as the projection template to project shapefiles 2-7 in a new folder but also to only copy shapefiles 1 and 8 in the output folder without reprojection them but also not using hard values to keep the script flexible?  I have been trying to use batch project, but am having trouble excluding shapefiles 1 and 8, or only including shapefiles 2-7. Should I be using the Describe.SpatialReference to filter out?


Skiplagged's website makes it seem like no big deal (i.e. just bring your passport and get off where you want). And of course you need to get a visa if either, or both, your final destination and "layover destination" require it.  But is it really that simple? Like domestic skiplagged?  I.E. If I want to go to Seoul and there is a cheap ticket that layovers in Seoul but final destination is actually Taiwan. Neither requires a visa so I would just get off in Seoul?  Has anyone actually done this? What was your experience?  Thanks.  DUPLICATE FLAG: I went to the link for the "duplicate"question, it doesn't really answer what I am looking for. That one is about hidden city travel and other airlines knowing; even if they did, which I'm sure they don't, I don't see why they'd care about what you did on another airline.


I do not see the option to install Ubuntu alongside Windows in the installer.


Gmail filters/labels: Force email to stay in Inbox?

I receive email to these addresses:   my-team@example.com : This is my team's primary method of communication. I want all of this email to go to my Inbox. other-team@example.com : This belongs to another team at my organization, but I monitor it. I have a filter on this sort of email. It skips the Inbox. I'll usually read it later.   If an email is sent to both my-team@example.com and other-team@example.com, the label for 'other-team' is applied, and the email is removed from my Inbox. But, this email was sent to my-team@example.com, so I would like this email to remain in my Inbox.  How can I tell Gmail to leave any email to my-team@example.com in my Inbox, even the email matches other rules?  Or, to ask the question another way, can I tell Gmail to stop processing filters after it has matched a filter? This is a common practice with Microsoft Outlook.  I tried to create a Filter using a Label named "Inbox", but Gmail says "Sorry, you can't create a label named "inbox" (it's a reserved system label)."


I am a Canadian citizen living in Mexico with a status of a permanent resident FM2 card with a house a Mexican drivers license and my truck which is originally from Canada has been imported to Mexico and is legally registered and has Mexican plates with vehicle insurance. My question is can I drive my vehicle to Canada from Mexico and enter Canada for a 1 or 2 month vacation. I believe that I may have to up my Liability coverage to at least $200,000 Canadian or more.


How can I properly clean an acer laptop keyboard after a spill?

So it happened; I spilled juice on my laptop's keyboard.  It was only a little bit, but enough to instantly terrify me and make the necessary precautions to ensuring my laptop's safety.   So I did turn off the laptop, remove its battery, and turn it upside down, as I read from a  recommending so. It now remains upside down, and hasn't been turned on since. I cleaned between the keys as much as I could, but glancing at the keyboard, I could still see dried juice stains under some of the keys. (My laptop is an Acer 5560 series, so there is space between each key).   I'm ambivalent as to whether it's safe turn it back on. I feel like it may be a good idea to open up my laptop, and see if I can get a better look at the keyboard that way. But I'm not experienced with computer hardware, and I don't want to harm my computer in the process.   I'd like to know whether it's a good idea to try opening my laptop, and getting some of the dried liquid clean. If not, how else can I make sure the laptop won't be harmed, knowing the nature of the keyboard?


Running command on multiple files within multiple directories

I want to run the command   python quast.py -o quast contigs.fasta   but I want to do this for multiple contigs.fasta files in multiple directories.  I'm running OSX.


SQL Query; Admin Log System; Foreign Keys; Retriving multiple rows form different tables at once

Table A (users)  id     | name   | ip 52433    Yashas   1.1.1.1 512      Admin    5.6.7.8   Table B (admin_record)  id    | admin | time    | date    | reason | action  52433   512     2312352   1213213   Test     WARN   id is FOREIGN key  Table B keeps a log of all actions an administrator takes on his users. And the table A stores the account information of the users & administrators.  I am trying to display a list of actions taken by a administrators on a user.   I want to write a query which gets me all the rows of table B where id = fixed number.  Here is what I want to display:  "Administrator1 [Name]" took action on "User Name" for "[Note]" on XX/XX/XXXX. "Administrator2 [Name]" took action on "User Name" for "[Note]" on XX/XX/XXXX. "Administrator3 [Name]" took action on "User Name" for "[Note]" on XX/XX/XXXX.   All I have is the user's id using which I need to obtain all the entries in the log along with the administrator names. I need to obtain the admin's name, users name and all the contents of table B related to a particular user in one single query. If possible, I want the to change the field name(not literally change, but want the SQL server to send the data with new field names to separate admin name & user name) of the admin's name to admin_name and user's name as . I mean something like this  SELECT users.name AS admin_name WHERE users.id = %i  AND SELECT users.name AS user_name WHERE users.id = %i   (the query isn't correct,it us just an example to show what I am trying)  Progress so far:   SELECT player.name, player.ip, admin.name, record.date, record.time, record.action, record.reason FROM admin_record AS record JOIN users AS player ON player.id = record.id JOIN users AS admin ON admin.id = record.admin WHERE player.id=%i   where admin_record is table B & users is table A.


Is there an advantage to cutting joints in concrete rather than tooling them?

There were a few concrete driveways poured in my neighborhood this year. The contractor (largest in the area) took, what I always thought was, an unconventional approach to the joints.  Typically, I would expect them to pour the concrete, and then tool the joints in.  This company poured the driveways on one day, then returned a day later to cut the joints in with saws.  Is there some advantage to cutting the joints, as opposed to tooling them?


A file Cat within a folder Dog owner  -rw- 1 rich v 12 15:40 Cat   What is the shell command to remove others' read access from file Dog?


IPC Mechanisms in C# - Usage and Best Practices

I have used IPC in Win32 code a while ago - critical sections, events, and semaphores. How is the scene in the .NET environment? Are there any tutorial explaining all available options and when to use and why?


Prove that the diophantine equation $x^4-2(y^2)=1$ has only 2 solutions. Any hint on how to start and what to do .. I do not have a lot of experience on non linear diophantine equations and do not know how to approximate them. So far I can see that for $y=0$, $x=1$ is one solution.