Distinguishing monochromatic light from light of a mixture of wavelengths, both of same colour

Red, green, and blue are the primary colors of light—they can be combined in different proportions to make all other colors. For example, red light and green light added together are seen as yellow light. This additive color system is used by light sources, such as televisions and computer monitors, to create a wide range of colors. When different proportions of red, green, and blue light enter your eye, your brain is able to interpret the different combinations as different colors.   My question is can the eye distinguish between light of the pure wavelength corresponding to yellow(monochromatically yellow) and a mixture of red and green light that also produces the sensation of yellow in our eyes?  The question is related to the question asked here:   But my specific question is whether the eye can distinguish between the mixture and a pure wavelength of purple.


This is kind of a meta-question for Meta Stack Exchange. You may remember my question about a . I realized it wasn't suitable for Meta Stack Exchange, and because regular users can't delete questions with answers, I decided to flag for mods to delete it. My first flag said:  I realize now that this is not^1 really about SE, so I was wondering if I could have it deleted?  It was then declined, and I got this message:  flags should only be used to make moderators aware of content that requires their intervention  I tried reflagging and changing my message to this just in case the first one was misinterpreted:  I already flagged this post asking for deletion, but it was declined. Maybe they misinterpreted my flag? Anyway, could this post be deleted by a mod (I can't; it has an answer) because I now realize it is not about SE?  It was then again declined with the same automated message:  flags should only be used to make moderators aware of content that requires their intervention  Why were my flags declined with such message when I was clearly asking a moderator to delete my question (which I can't do, therefore meaning that it requires a mod to). What should I do now? The question is off-topic, low scored (perhaps I could mark as community wiki?), and leaves an unneeded black mark on my answer list for a small matter - so I feel like it would be best deleted. I see Journeyman Geek's point though, so I am a little confused. What would the best course of action be? And I'm afraid to flag a third time, just in case it is declined and I pick up a flag ban.  I don't think this question is a duplicate of the FAQ on  because I already know how deleting works and the criteria behind it, I just want to know why my flags to delete were rejected. The proposed dup question tells you to flag for mod deletion, which I did. It doesn't provide any further info. ^1 I flagged originally without the not - oops, I was typing fast and my mind jumped over a word. For clarity purpose, I meant to add a not.


How do you extend the time required to trigger hot corner actions?

I like the concept of hot corner actions but the trigger time for hot corner actions is too quick for me to make good use of them. I keep tripping my corner actions accidentally while reaching for objects in that general vicinity of the corner.  Is it possible to extend the trigger time for hot corner actions? So I have to hover in the corner for at least a second or two before the hot corner action triggers?


Why is the d'Alembert's Principle formulated in terms of virtual displacements rather than real displacements in time?

Why is the  formulated in terms of virtual displacements rather than real displacements in time?  EDIT In other words, which step of the derivation of D'Alembert's principle (or Largrange's equation) will not work if one uses real displacements and why?


How can "of me doing something" be grammatically correct? What grammar rule is this?

The first book on my list has actually been recommended to me like   multiple times over the years of me doing BookTube.   I found that sentence in my English book, and the last part where it reads  of me doing BookTube confuses me terribly. Shouldn't the object of a preposition be a noun or pronoun, not a verb? How can verbs be nouns?  The book translated the phrase into "while/when I am doing Booktube" and so I understand what it seems to be intended to mean here.  Could it perhaps be that there are some words omitted from the full sentence that if I knew what these unwritten words were, I would then be able to understand its syntactic structure more clearly? Did it skip writing the words "when/while I am" there? Why would the subject "I" turn into "me"? Is that still the verb's subject or did changing it that way now make it the verb's object? Why would all those words go missing? It is very confusing.  If this is actually a valid type of  English syntax used by native speakers that nobody ever taught me, could you please give me some similar examples so that I can understand its exact meaning and grammatical structure?  Why aren't we taught this syntax if it is actually used in real English?


How to find hotels in Europe which allow for anonymous check-in?

A few years ago I've visited a hotel in Munich and was pleasantly surprised to find there was no reception as such. To get the keys you had to call a 24/7 support line, where you received a code to a locked box outside the hotel door, which contained the key to your room. It wasn't required to show any IDs or fill out any forms. Upon checkout you simply placed the key back into the box, no questions asked.  I'm not a paranoid person nor am I hiding from the law, however I find the concept of traveling anonymously appealing. Is there a way to find out in advance if the hotel in question allows for fully anonymous check-in? And is there a website which allows you to find such lodging?  See also a  about airlines.


Countinuity of the identity map between different topologies

Could you please verify this (rather simple) proof? I'm a bit new to this kind of reasoning.  The question is:  Let $\mathcal{T}_1$, $\mathcal{T}_2$ be two topologies on some set $X$, when is the identity map $id:X \to X$, $id(x) = x$ continuous?  Here is my reasoning:   If $\mathcal{T}_1 = \mathcal{T}_2$, then for any $S \in \mathcal{T}_2$, $id^{-1} (S) = S \in \mathcal{T}_1$ so then it's continuous.  If $\mathcal{T}_2 \subseteq \mathcal{T}_1$, then it's exactly like above, then it's also continouos.  Now:  If  $\mathcal{T}_1 \subseteq \mathcal{T}_2$ then take some $x \in U \in \mathcal{T}_2 \setminus \mathcal{T}_1$, then $id^{-1}(U) \not\in \mathcal{T}_1$, so it's not continuous.  So the identity map is continuous if $\mathcal{T}_1$ is finer than $\mathcal{T}_2$.   Is this OK?  Is there a better way to show this?  Any extra applicable theory?  Thanks in advance


Finding value of $\sin(2^\circ)\cdot \sin(4^\circ)\cdot\cdot \cdot \sin(88^\circ)$   Try: Assuming $X=\sin(2^\circ)\cdot \sin(4^\circ)\cdot\cdot\cdot \sin(88^\circ)$  and $Y=\cos(2^\circ)\cdot \cos(4^\circ)\cdot\cdot\cdot \cos(88^\circ)$  So $2^{22}XY=\sin(4^\circ)\cdot \sin(8\circ)\cdot\cdot \sin(176^\circ)$  Could some help me to solve it, thanks in advance


Does a finite $[E:K]_s$ imply that $[E_s:K]$ is finite?

Let $E/K$ be an algebraic extension of fields and denote by $E_s$ the separable closure of $K$ in $E$, i.e. the set of all elements of $E$ that are separable over $K$ (which can be shown is a (separable) subfield of $E$).  I would like to show that the implication     $\left[E:K\right]_s < \infty \implies \left[E_s:K\right] < \infty$   holds, where $\left[E:K\right]_s$ denotes the separable degree of $E/K$ and $\left[E_s:K\right]$ the 'ordinary' degree of $E_s/K$.  In the textbook I am learning with, it is said that one could use the Primitive Element Theorem to do this, but I would also be fine with any other approach, as long as it's not getting too fancy and staying in the realm of 'common' textbook theorems known when dealing with separable extensions (and I didn't see how the Primitive Element Theorem would help).  This is not my focus (I want to write a Bachelor's thesis about polynomial factorizing elements of $\mathbb{Z}[X]$), but I'm in the process of reading into commutative algebra after about 1.5 years break from it.  My idea was something like assuming $\left[E_s:K\right] < \infty$ and $\left[E_s:K\right] = \infty$ to construct infinitely many $K$-homomorphisms $E_s/K \longrightarrow C/K$, where $C$ is some algebraic closure of $E_s$, which would then contradict $\left[E_s:K\right]_s = \left[E_s:K\right] < \infty$. Of course, an infinite basis would yield infinitely many $K$-vector space homomorphisms, but getting (infinitely many) ring morphisms seems to by an entirely different ting (unsurprisingly so...). Thought of using something like     Given two roots of the minimal polynomial of one of the infinitely many elements of a $K$-basis of $E_s/K$, there is a $K$-morphism $E_s/K \longrightarrow C/K$ that sends one to the other.   but this didn't seem very fruitful. I admit I haven't spent hours on this, I just didn't get very far and should focus on moving on, while still getting an answer on the 'howto' along the road would be really nice.


Can a blood hawk animal companion be commanded to carry around their beast master?

Let's say a gnome Beast Master ranger chooses a Blood Hawk animal companion, is the companion able to follow the order to pick up and carry the PC?  I'm more looking at the possible issue of commanding a companion to carry something - since I don't think that's an explicit action that can be commanded.


NullPointerException at variable declaration

I get a NullPointerException in production that I cannot reproduce locally. The stack trace is meaningless to me, because it references a NullPointerException to a member declaration. java.lang.RuntimeException:    at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3430)   at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3614)   at android.app.ActivityThread.handleRelaunchActivityInner (ActivityThread.java:5527)   at android.app.ActivityThread.handleRelaunchActivity (ActivityThread.java:5418)   at android.app.servertransaction.ActivityRelaunchItem.execute (ActivityRelaunchItem.java:69)   at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:108)   at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:68)   at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2199)   at android.os.Handler.dispatchMessage (Handler.java:112)   at android.os.Looper.loop (Looper.java:216)   at android.app.ActivityThread.main (ActivityThread.java:7625)   at java.lang.reflect.Method.invoke (Method.java)   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:524)   at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:987) Caused by: java.lang.NullPointerException:    at org.catrobat.paintroid.MainActivity.onCreate (MainActivity.java:122)   at android.app.Activity.performCreate (Activity.java:7458)   at android.app.Activity.performCreate (Activity.java:7448)   at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1286)   at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3409)   at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3614)   at android.app.ActivityThread.handleRelaunchActivityInner (ActivityThread.java:5527)   at android.app.ActivityThread.handleRelaunchActivity (ActivityThread.java:5418)   at android.app.servertransaction.ActivityRelaunchItem.execute (ActivityRelaunchItem.java:69)   at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:108)   at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:68)   at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2199)   at android.os.Handler.dispatchMessage (Handler.java:112)   at android.os.Looper.loop (Looper.java:216)   at android.app.ActivityThread.main (ActivityThread.java:7625)   at java.lang.reflect.Method.invoke (Method.java)   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:524)   at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:987)  It is strange to me because the NullPointerExeption does not give a line where where I use a variable, rather it points at the declaration of a variable. public class MainActivity extends AppCompatActivity {     public static final String TAG = MainActivity.class.getSimpleName();     public ToolReference toolreference;   <---- NullpointerException at this line ?!?! (this is MainActivity:122)  @Override public void onCreate(Bundle savedInstanceState) {     setTheme(R.style.MyTheme);     super.onCreate(savedInstanceState);      setContentView(R.layout.activiy_main);      toolRefence = new ToolReference();     ...     }      ... }  The code snippet is a little bit simplified. Full code . I do understand why NullPointerExceptions happen, but it never happened to me that it says to me the variable declaration is a problem


The question is simple. I have created a class named "handler" and within its constructor it contains a parameter for "c", a JComponent. When this constructor is called on a certain JComponent, preferably a JPanel, an oval is drawn at the mouse's current coordinates. This is the source code:  import javax.swing.*; import java.awt.*; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.event.MouseMotionListener;  public class Handler implements MouseListener, MouseMotionListener {  Graphics g;  public Handler() {}  public Handler(JComponent c) {      if (c instanceof JPanel) {         g = c.getGraphics();         g.drawOval(mx, my, 5, 5);     }      if (c != null) {         c.addMouseListener(this);         c.addMouseMotionListener(this);     } }  int mx, my;   public void mouseClicked(MouseEvent e) {     mx = e.getX();     my = e.getY(); }  public void mousePressed(MouseEvent e) {     mx = e.getX();     my = e.getY(); }  public void mouseReleased(MouseEvent e) {     mx = e.getX();     my = e.getY(); }  public void mouseExited(MouseEvent e) {}  public void mouseEntered(MouseEvent e) {}  public void mouseMoved(MouseEvent e) {     mx = e.getX();     my = e.getY(); }  public void mouseDragged(MouseEvent e) {} }   However, this error is thrown:   Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException   Do you guys have any idea about this? If so, please post a solution.  Edit 1 I've done something new. This is my entire new code:  import javax.swing.*; import java.awt.*;  public class Handler extends JPanel {     int mx = MouseInfo.getPointerInfo().getLocation().x;    int my = MouseInfo.getPointerInfo().getLocation().y;   public Handler(BorderLayout bl) {     this.setLayout(bl); }  public void paintComponent(Graphics g23) {     Graphics2D g2 = (Graphics2D) g23;     g2.drawOval(mx, my, 30, 30);     } }   I've reworked the code greatly. Now, it extends JPanel and serves as a replacement to JPanel. So instead of instantiating a new JPanel, I'd call Handler's constructor. It also implements paintComponent, yet the oval still isn't being drawn. It yields no errors, however.


Unwanted purple background with image texture

When i add a texture image to the background of the world, an unwanted purple color comes with. I don't know how to delete it (the purple color). I see it in the preview before adding the texture image from my folder. After adding the image, the preview is OK but if i render my 3d view i have always this purple color with my image. Somebody has a solution ?   (with blender 2.74)  Thanks for your help.  Matthieu  P.S : My light is not purple and it is not a duplicate. No files are missing and i don't use blender render but cycles render. I can see my image in the preview window. My problem is : when i assigne a texture the background is a mix with purple color and my texture. I don't want this purple color !   I think it's a bug. It works great with my older version of blender (2.66a).


I am wondering if there is a way to change the math font temporarily, similar to the way it can be done in text mode:  {\ttfamily Some text in typewriter font.}   Is there a way to do $\ttfamily a + b = c$ for example?  I know I could do $\mathtt{a + b = c}$, just like I could do \texttt{text}, but sometimes the other way results in cleaner code.  Please mind I am not looking for something like $\texttt{monospace} \textit{ in math.}$ I want to be able to write complicated formulas without having to mention the font in every word, as I would do in, for example, $\Sigma_{\mathtt{i} = 1}^{\mathtt{n}}$.


What are the 'knuckles' on through-hole LEDs and photodiodes for?

I am using an IR LED and a photo diode, and I have designed the PCB according to the specifications that I found on the datasheet - i.e. hole sizes for the pins being 0.6 mm. However, on these components there are 'knuckles' (see below image) and these are wider than the hole size they quote for the pins.    So the issue is the component doesn't go low enough into the board because of these knuckles. Why are they there? How can I know how wide they are in order to make my holes account for this?


How to set the remaining height of the page to 100% after you have placed a navbar without getting scrollbar?

The Problem: I have created a Codesandbox too clearly see the problem:  I basically have just a navbar with some padding, and below is the content area. I want to color the bottom like it is right now (or rather have select the full height of this bottom area, the color is for visibility and set its height to 100 %) but without producing a vertical scrollbar. I achieved the full height on the bottom area by selecting html, body and #root and set its height to 100%. This works but it gives me the scrollbar, because I think it's adding the scrollbar to it. Is there a way to avoid this or a better way using another technique? Basically: Take all available height but don't produce scrollbar Just adding a overflow: hidden works but I think if I have scrollable content on it (the page grows) it wont be displayed so thats no real resolution for this. I'm a bit rusted honestly and maybe I'm doing it completely wrong, but googling and this SO post didnt help me much unfort:  EDIT: I tried the first answer here "The flexbox way":  This works fine but when I want a container to have scrollable content inside without scrolling the whole page it doesn't work. It adds a scrollbar. I edited the example.


Why do we work path integral quantization of bosons and fermions in coherent states?

I am not able to understand that why it is very special or convenient to work out path integral quantization of bosons and fermions in coherent states. Is it possible to work things in a very general state that could be present in the Hilbert space or any other state (but not coherent state)


What does universal quantification mean?

In ZFC, for example, there is no universal set, so what does it mean to write $\forall x (\cdots)$, i.e., for all sets something is true? Does it avoid the problem by quantifying over all elements but not allowing those elements to form a set?  A related question I have is about quantifying over infinite sets. If $X$ is a finite set with $n$ elements $x_1, x_2, x_3, \ldots, x_n$, Then it is reasonable to define $\forall x\in X :P(x)$ to be the statement $P(x_1)\wedge P(x_2)\wedge\cdots\wedge P(x_n)$ (which can be formalized using a recursive definition). But what about infinite sets? It seems that if $Y$ is a countably infinite set with elements $y_1,y_2,\ldots$, then $\forall y\in Y: P(y)$ would mean $P(y_1)\wedge P(y_2)\wedge\cdots$, which we couldn't finish stating. For uncountable sets, we would miss an element in between every time we count upwards.


Clone function on apex missing to copy fields

I've done a code to auto-renew contracts when they arrive to their renewal date.  My idea is to create an exact clone of the old contract, change it's start date for the renewal date of the old contract and put it as draft. To acomplish this I've used this:  ...     for(Contract contractToRenew: (List<Contract>) scope) {                      Contract contractToInsert = contractToRenew.clone(false,true,false,false); // (preserveId, isDeepClone, preserveReadonlyTimestamps, preserveAutonumber)                     contractToInsert.StartDate = contractToRenew.Next_Renewal_Date__c;                     contractToInsert.Renewed_Contract__c = contractToRenew.Id;                     contractToInsert.Status = 'Draft';                     contractsToInsert.add(contractToInsert);                     contractToRenew.Status = 'Finished';                     EmailsToSend.add(generateEmail(ContractToRenew));                 } ...   But still after I insert the new created contract some of the fields that were not null on the old contract are empty on this recently cloned one. And ofc I don't have any trigger or workflow that clears those fields.  As far as I've look into the clone documentation I think i'm using the clone parameters that meet my needs.  Am I using deep clone wrong? Or what else should I take a look into?


Why is the standard deviation defined using differences^2 instead of differences^4?

I've read some post about why to take the std. deviation and its benefits, here's one of them: , and another by itsols (if my memory is right), it's talking about why to square rather keep the absolute value. Standard deviation is defined as $\sigma = \sqrt{\frac{1}{N} \sum_{i=1}^N (x_i - \mu)^2}, {\rm \ \ where\ \ } \mu = \frac{1}{N} \sum_{i=1}^N x_i$.  That is, it squared all the variances, so why not use take the fourth order or even higher. so the new deviation is defined:    $$\sigma = \sqrt[4]{\frac{1}{N} \sum_{i=1}^N (x_i - \mu)^4}$$    It would still emphasize relatively larger deviations, and would also be differentiable at any point for a continuous function. Do you have any other evidence that shows the standard deviation definition is better than any other?


What android phones and tablets are compatible with Ubuntu?


JavaScript: How to find out which functions are called on event?

I have a problem, there is a website with a load of JS code. When I click on a certain element, some functions are called. How can I find out which functions (and in which files)?  For example, there's something like this  $( document ).ready(function() {    $("a").on('click', function() { $('c').css('opacity', '0.8'); });    $("ul#main li a").on('click', function() { $('c').toggle('.menu'); });    $("nav a").on('click', function() { callSomeFunctions(); }); });   And then I've got a menu like this

click

   How can I find out that those 3 lines above are executed?  Thanks!


I'm struggeling with variadic templates in C++: I want to call a variadic template function implemented in class A from class B which inherits from A:  a.hpp  class A{ protected:     template<typename... Ts>     void variadic(Ts... args);  };   a.cpp  #include "a.hpp" template<typename... Ts> void A::variadic(Ts... args) {/*something*/}   b.hpp  #include "a.hpp" class B : public A { public:      void func() {          variadic(4, 3.4, "hello");      } };   When I call the method (e.g. B testobj;testobj.func();) I always get the following linker error:  $ clang++ -std=c++11 main.cpp a.cpp -o main /tmp/main-2e3fd9.o: In function `B::func()': main.cpp:(.text._ZN1B4funcEv[_ZN1B4funcEv]+0x29): undefined reference to    `void A::variadic<int, double, char const*>(int, double, char const*)' clang: error: linker command failed with exit code 1 (use -v to see invocation)   If I implement the variadic method directly in the header file I don't get any error. If I put func in class A it will also compile without error.  It seems to me that the variadic template isn't visible in class B. Is there any way to solve my issue?


I have this board and it is the first time I work with it. How can I connect 2 elements in it, and how to solder IC with all the circuit lines that connect all the elements.    EDIT


What is CUPS server and how to share a printer (Locally or over a network)

The title tells you all, except that it's about sharing printers.   How do I connect to a shared printer on the network through CUPS or terminal?


On this new machine (OSX 10.11.5, freshly installed MacTex 2016) absolute positioning does not work as intended.   I have tested and re-tested with examples from the TikZ manual, and the output gives the same positioning errors, for example:   \begin{tikzpicture}[remember picture,overlay] \node [xshift=1cm,yshift=1cm] at (current page.south west) [text width=7cm,fill=red!20,rounded corners,above right] { This is an absolutely positioned text in the lower left corner. No shipout-hackery is used. };  \end{tikzpicture}    This should produce a box at the absolute lower left corner of the page, but the output I get places the box exactly at the start of the first paragraph on the page, as if overlay was ignored completely. What is causing this behavior?


HTML escapes appearing in node titles on bespoke content type — substitutions?

I have a bespoke Content Type pertaining to venues. These are not user-creatable; they are all created from importing a trusted third-party feed, which sanitised the titles before they come to me (so there's no risk of  or  here). The titles might, however, contain accented characters (é, ô etc), apostrophes (') or ampersands (&); these are coming out as HTML escapes (so &#039; instead of an apostrophe, &amp; instead of an ampersand, etc).  The Content Type Venue has a field title, which is a Node module element, so doesn't allow me to mess with its display settings. In the Node template page, I can use substitutions in the display of this title, but I can't work out how to make it be the raw text version. The title is currently set to display as %node:title and I tried using %node:title:raw and %node:title-raw in case one of those would magically work, but they had no effect.  I saw something that looks like a potential solution at  on zerotodrupal.posterous.com, which attaches to the hooks hook_preprocess_page and hook_preprocess_node, creating a new method like  function hhhdarkelegance_custom_title($node) {       return check_markup(strip_tags($node->title, '<em><em>'));   }   but, while that blog post looks like it will work well for named HTML tags, I'm not sure it will necessarily deal with HTML entities, which are what my problem is here. I suppose I could do the opposite to the blog-post code and replace out &amp; to & before display, but that feels really kludgy and, frankly, it would be nice to be able to do this just using a substitution, if possible.  Is there some way of achieving this that doesn't involve cutting code? If so, is  what is causing the HTML escapes? (The function description reads as though it's only causing the removal of HTML tags, which I am fine with either way — they won't occur in my node titles. I am wanting to stop escaping the HTML escapes, however.)  So how can I (on a specific Content Type, without worrying about security concerns) prevent Node titles from rendering HTML escape characters to the usual and just write the damn output to the page?  I did scan through several pages of similar-looking questions before posting and I couldn't find one that addressed this, so my apologies if someone has asked this already; if you point me towards it I'll be suitably embarrassed and try even harder next time. Thanks for your help, everyone!


How to add Top Bar menu; File, View, History, Tools...for applications in 18.04?

I am aware Unity is no longer the default desktop and is replaced by GNOME desktop starting 18.04 LTS.  Since 15.04 I have been using Unity.    Now I want to use the default GNOME desktop for 18.04 LTS but would like to get my application menus in the Top Bar.    Menus: File, View, History, Tools, etc from applications that I use, I cannot find anywhere.  Instead I have one option in a drop down which is generally "Quit".    There must be a default secret somewhere that lets me customize my user experience to some degree as the 18.04 LTS developers envisioned.  Where is it hiding?  How can I get my needs met according to GNOME developer design.  Thanks for your help


Call a command line from python to execute a program in batch mode with args

I need to call a program in command line that will be executed in batch mode. This program receives a file with extension .jlink that contains a series of commands that the program JLink.exe will execute and then close.  I tried to execute in the following way:  os.system('C:/SEGGER/JLink_V490d/JLink.exe -CommanderScript D:\Files\CommandFile.jlink')   But this command executes the program in normal mode, not accepting the arguments.  How can I call as execution of command line and then send that command so the program executes in batch mode with those arguments?


Can I use DC20V/6.75A instead DC20V/6.5A Power Adapter for my VisionTek VT4000 - Dual Display 4K USB 3.0 & C Docking Station?


I want to prove the following result:      Let $R$ be a ring and $M$ a maximal ideal in $R$. If $P$ is a prime ideal in $R[x]$ that (strictly) contains $M[x]$, then $P$ is a maximal ideal in $R[x]$.    I have an idea how to prove that, but I'm not quite sure if the argument is totally valid; maybe someone has a cleaner proof. My argument is like that:   $R[x]/M[x]$ is isomorphic to $(R/M)[x]$, that is a PID (since $R/M$ is a field). So, any prime ideal in this ring is maximal; If $P$ contains $M[x]$, then $P$ corresponds to a (prime??) ideal in $R[x]/M[x]$ (this needs more clarification); The prime ideal (that corresponds to $P$) in $R[x]/M[x]$ is then maximal, and this guarantees that $P$ is maximal in $R[x]$.   I'll appreciate any comment.


Enable replace image feature in LibreOffice

One of the programs I use heavily in Ubuntu is Open/LibreOffice as part of my work specifically Draw.  I recently upgraded to Natty 11.04 (clean install) obviously this has meant switching to LibreOffice. I know I can go back to OpenOffice if I want to but Oracle seem to be more interested in lawyers than FOSS and I'm sure LO will be a lot better in a short period of time.  The only problem I have found switching is a strange (irritating) difference which doesn't seem to have a config setting that I can change. In OO When I select an image and insert a new one it will "replace" the original using the same dimensions in LO this is not the case the image is simply added to the page whether you select an image on the page or not.  I did find an OO extension which provides the same functionality  Change picture extension -          The main issue is the extension doesn't use the "working directory" of LO so you have to navigate to the correct directory each time (censored). As I will be doing this for 4 pictures per document and over 1000 documents and possibly many more in the future my sanity is at stake.  So if any one has any insights on the easiest way to solve this one thanks in advance.


I'm new to Blender (so hopefully this isn't too obvious) and I've recently been trying to import obj files but when I do, nothing shows up. I'm sure the object I'm importing is .obj, and when I import it, it shows up on the scene collection menu but I just can't see it... I don't know if there's something that I'm missing here or something, but I just can't seem to see the object that I imported. Here are the steps I followed:  Clicked "File" Clicked "Import" Clicked "Wavefront (.obj)" Selected the file and imported  From there on I could see nothing. Help? (I'm using Blender 2.91.2 on Windows 10)


Does Rel=Canonical Pass PR from Links or Just Fix Dup Content

One of the issues with duplicate content is that links can be split across several versions of your page, it was my understanding the a 301 redirect is really the only option for retaining some of the link juice, however, looking at some answers here and on other forums it looks like some people believe the canonical tag will have the same effect as a 301 (in the search engines eyes).   Does the canonical tag tell the search engines that the links pointing to duplicate pages should count for the original or does it simply tell them which version of the page you want indexed?


Is “misogyny” only applicable to men? What is the antonym of misogyny?

I came across the following sentence in New Yorker’s (February 23) article, titled “In Defense of Liz Lemon”:     “She behaves as if Jack Donaghy (Alec Baldwin) is her daddy. She   doesn’t trust her own judgment, she’s bad at her job, and there’s   something awfully misogynist about all this! Liz Lemon is pathetic.”   When I checked the word, misogynist on dictionaries at hand, OALD defines it as “a man who hates women.” CALD likewise defines it as “a man who hates women or believes that men are much better than women.”  But here it is used for Liz Lemon, a woman. Is misogynist used only for male as both OALD and CALD define, or for both sexes?  According to www. memidex com, misogyny derived from modern Latin, misogamia from Greek “misein” (to hate) + “gamos” (marriage). Then, what is Latin equivalent antonym to misogamy?


Are strong, slow charge attacks or fast, weak ones better?

I have two Pidgeot. One has a special attack of 25 with 4 blue bars, and the other has a special attack of 60 with one blue bar.  I assume the blue bars are the number of times you can use that attack when it is fully charged, so the 25 deals 100 damage and the other only 60?  Which is better, weaker attacks you can use more often or stronger attacks you can use less often?


When customers reply to any of our promo emails or our ship confirmations, the email address that auto populates for our response looks like this: blablabla.hotmail.com@companyname.com  The reps answer emails really quickly and often forget to change the email to the correct format.   Is it possible to fix this, in a way that just customer email auto-populate when reps are responding back to customers?


If a creature was flying via the Fly spell and dies, does it continue flying?

The  spell states:     You touch a willing creature. The target gains a flying speed of 60 feet for the duration. When the spell ends, the target falls if it is still aloft, unless it can stop the fall.   Since the spell does not say that it ends if the creature dies, would the spell continue to hold the deceased creature aloft for the duration of the spell, as long as the caster maintains concentration?


What is /dev/ram* and how many should I have on my HDD?

I did   fdisk -l   and found that I have 15 different ramdisks which are all called /dev/ram* (where * is a number between 1 and 15.)  This seems weird, but I'm not a hardware specialist so I don't really know if they are all needed or if I should just change/delete some of them. So, is this normal and should I leave it alone, or should I change something here?


Change svg element only works some of the times

I am trying to use javascript and html5 to create a HMI for a project. In this first experiment i just want to change a text element in the svg document.  The svg object is defined in html like this:  <object id="image-svg" width="800" height="800" type="image/svg+xml" data="image.svg"></object>   This script:  function update_txtPv( val ) {     var imageSvgDoc = document.getElementById( "image-svg" ).contentDocument;     var txtPv = imageSvgDoc.getElementById( "txtPv" );     txtPv.textContent = val; }  update_txtPv( "test" );   gets called once when the page loads.  Problem is that if I refresh the page ten times it only sets the text object to "test" about three of the times.  if I add an alert( "something" ); in the beginning of the function it works.  What is going on?  //John


install ubuntu by default and lost all partitions and my data

i am new with Ubuntu. After installing Ubuntu the partitions merged and all my information was lost. How can I recover my data? I used easeus from bootable usb and it could find all my files with different size but after recovery they can not be open. my files is very important for me. so please guide me to recovery my lost data


How to write rotation data of all objects to txt-file?

I want to export the rotation of all objects to a .txt file, but I dont know the actual python ommands in Blender. Made some try with google's help:  import bpy  ob = bpy.context.object  for ob in bpy.data.objects:       f=open('output.txt','w')      f.write(ob.rotation.euler[0]) f.close()


Im trying to set up Drush 8 with MAMP Pro.  Short version:  Ive got Drush working so that when I cd to my project root and enter a command like vendor/bin/drush en ban it works fine.   Ive followed these instructions to have a site local Drush. Im trying to make it so that I can just run drush en ban not the full path.   Ive copied examples/drush.wrapper to my root and renamed the file to just drush. However when I run drush in the terminal it just returns -bash: drush: command not found. If I run vendor/bin/drush en ban again then now I get -bash: vendor/bin/drush: No such file or directory  More detail:   My .bash_profile has the following:  export PATH=/Applications/MAMP/bin/php/php7.0.15/bin:$PATH export PATH=/Applications/MAMP/Library/bin/:$PATH  When I type in which php I get the following, which is the same as I can see in MAMP's UI, so I think its correct.  /Applications/MAMP/bin/php/php7.1.1/bin/php  If I run vendor/bin/drush status I get:  vendor/bin/drush status  Drupal version                  :  8.2.7  Site URI                        :  http://default  Database driver                 :  mysql  Database hostname               :  localhost  Database port                   :  3306  Database username               :  root  Database name                   :  db_1  Database                        :  Connected  Drupal bootstrap                :  Successful  Drupal user                     :  Default theme                   :  bartik  Administration theme            :  seven  PHP executable                  :  /Applications/MAMP/bin/php/php7.0.15/bin/php  PHP configuration               :  /Applications/MAMP/bin/php/php7.0.15/conf/php.ini  PHP OS                          :  Darwin  Drush script                    :  /Users/MYUSERNAME/Sites/PROJECTNAME/1/vendor/drush/drush/drush.php  Drush version                   :  8.1.10  Drush temp directory            :  /tmp  Drush configuration             :  Drush alias files               :  Install profile                 :  standard  Drupal root                     :  /Users/MYUSERNAME/Sites/PROJECTNAME/1  Drupal Settings File            :  sites/default/settings.php  Site path                       :  sites/default  File directory path             :  sites/default/files  Temporary file directory path   :  /Applications/MAMP/tmp/php  Sync config path                :  sites/default/files/config_1j990namX0DnLC48TQyG6OJgFYvwOVORkxIedsS                                     soksn8g72IgMtMkk2PZKCHybdHvB2IqLEGw/sync


Calculate the integral $$\int_{[0,1]}x^2d\mu_F$$ where F is the cantor function. Use the following hints about the cantor function:  $F(1-x)=1-F(x)$ $F(\frac x 3)=\frac{F(x)}{2}\quad\forall x\in[0,1]$ $F(0)=0$   I thought that $$\int_{[0,1]}x^2d\mu_F=\int_{[1,0]}(1-x)^2d\mu_{F}=\int_{[0,1]}x^2d\mu_{1-F(x)}$$ but here I'm stuck and I don't know how to continue calculating this integral. Furthermore, how do we use the second and third properties when given the cantor function above?


Any Overlapping or Misordering in My Preamble?

I've used both hyperref and url to enable href and url, but heard that they're redundant. Also I realized that ordering \usepackages matters. For example,  \usepackage{hyperref} \usepackage[doublespacing]{setspace}   applies doublespacing to footnotes, while  \usepackage[doublespacing]{setspace} \usepackage{hyperref}   doesn't. So I'm trying to review all the preamble I've used to detect any unnecessary repetition or improper arrangement. Here's the code.  \usepackage[margin=1in]{geometry}      % Give 1 inch margins \usepackage[doublespacing]{setspace}   % Use doublespacing and enable SPACING \usepackage[pdfpagemode=UseNone,       % Suppress bookmarks in Acrobat     pdfstartview=]{hyperref}           % Use a default zoom \usepackage[round]{natbib}             % Alter brackets by parentheses \usepackage[font=footnotesize,         % Make captions smaller     labelsep=period,                   % Alter Table 1: by Table 1.     skip=0pt]{caption}                 % Tune the gap between captions and tables \usepackage[input-decimal-markers={.}, % Use decimal alignment     group-separator={,},               % Give thousand separators     parse-numbers=false]{siunitx}      % Use a math mode for S columns \ExplSyntaxOn                          % Make SIUNITX be compatible with TABU     \cs_new_eq:NN     \siunitx_table_collect_begin:Nn     \__siunitx_table_collect_begin:Nn \ExplSyntaxOff \usepackage{pdflscape,                 % Use a landscape mode with rotation     xcolor,                            % Enable COLORBOX     amsmath,                           % Use usual math syntax     amssymb,                           % Use some math symbols     amsthm,                            % Use theorem-like environments     textcomp,                          % Enable TEXTMINUS     cancel,                            % Enable CANCEL     tabu,                              % Enable TABU and the X columns     booktabs,                          % Enable TOPRULE, MIDRULE, BOTTOMRULE     multirow,                          % Enable MULTIROW     graphicx}                          % Enable INCLUDEGRAPHICS \setlength{\fboxsep}{0pt}              % Tune the padding setting of COLORBOXs \theoremstyle{plain}                   % Apply PLAIN to these NEWTHEOREMs \newtheorem{definition}{Definition}    % Enable DEFINITION \newtheorem{proposition}{Proposition}  % Enable PROPOSITION \newtheorem{hypothesis}{Hypothesis}    % Enable HYPOTHESIS   I'd appreciate any single comment in advance.


The question tells me to find the volume of a spherical cap with height $h$ and radius $r$ (by radius I mean radius of the cap, not the whole sphere).  Well I attempted to solve it, as $R$ is the radius of the sphere, $r =\sqrt{R^2-y^2}$ via Pythagorean theorem. Now $A$ is the cross-section of the sphere, which is $\pi\big(\sqrt{R^2-y^2}\big)^2$. That can be simplified as $\pi(R^2-y^2)$.  Then I integrated it in terms of $R$ and $R-h$ (the height of the spherical cap), and got $\pi(h^2R-h^3/3)$. But how do I express it in terms of $h$ and $r$, where $h < r$?


What is the predefined order in which man searches sections?

The description of man in its  contains the statement,      The default action is to search in all of the          available sections following a pre-defined order ("1 n l 8 3 0 2 5 4          9 6 7" by default, unless overridden by the SECTION directive in          /usr/local/etc/man_db.conf), and to show only the first page found,          even if page exists in several sections.   What exactly is meant by "1 n l 8 3 0 2 5 4 9 6 7"?


My brightness used to work normally until I did bunch of things I don't know which caused the problem. The brightness from keyboard shows me the indicator on screen but doesn't change, from settings doesn't change either.  What I did before I had the problem was :  First, I updated my system.  Second, I ran:  rm -rfv dontDeleteMe && mkdir dontDeleteMe   then:  rm -rf dontDeleteMe && mkdir dontDeleteMe   hoping to reverse it.  Then tried  to repair a tty problem.  Output of sudo lspci -v -s 00:02.0  00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02) (prog-if 00 [VGA controller])     DeviceName: 32     Subsystem: Hewlett-Packard Company Core Processor Integrated Graphics Controller     Flags: bus master, fast devsel, latency 0, IRQ 30     Memory at d0000000 (64-bit, non-prefetchable) [size=4M]     Memory at c0000000 (64-bit, prefetchable) [size=256M]     I/O ports at 4050 [size=8]     [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]     Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-     Capabilities: [d0] Power Management version 2     Capabilities: [a4] PCI Advanced Features     Kernel driver in use: i915     Kernel modules: i915   Output of sudo lshw -class display    *-display                       description: VGA compatible controller        product: Core Processor Integrated Graphics Controller        vendor: Intel Corporation        physical id: 2        bus info: pci@0000:00:02.0        version: 02        width: 64 bits        clock: 33MHz        capabilities: msi pm vga_controller bus_master cap_list rom        configuration: driver=i915 latency=0        resources: irq:30 memory:d0000000-d03fffff memory:c0000000-cfffffff ioport:4050(size=8) memory:c0000-dffff   Now, What did I do to cause my problem and how can I reverse it?


Login screen doesn't look right on Ubuntu 18.04.2 LTS

This is my login interface but I am using Ubuntu 18.04.2 LTS version.     I want to switch to the default login page.


What would be the number of inequivalent $6$-colourings of the faces of a cube?

Consider the different ways to colour a cube with $6$ given colours such that each face will be given a single colour and all the six colours will be used. Define two such colourings to be equivalent if one will get from another just by rotation. Then what would be the number of inequivalent colourings?   The answer is given $30$. But I was trying to prove it by choosing the colour in the two opposite sides.   For example, first let us choose the colours on the two opposite sides in $^6C_2$ ways, then another two opposite sides in $^4C_2$ ways, and the leftover sides in $^2C_2$ ways. So, in total, we get $15 \times 6=90$, but I think I am triple-counting the situation or thinking it in a wrong way.  Please help.


Is sweetened condensed milk a substitute for evaporated milk?

I have a recipe for Thai Green Curry that calls for evaporated milk, which I don't have. I do have sweetened condensed milk, will that do?


Is it possible to produce a 100% confidence interval for a sample mean?  Or does a 100% confidence interval imply that it is no longer a sample mean; that the population mean is already known?


So - can someone clarify this one:   I run:  git pull origin master   git status   And it then pulls the changes and says:  your branch is ahead of origin/master ... blahblah by 6 commits...   When I then run   git fetch git status   It says:  # On branch master nothing to commit (working directory clean)   So - I thought git pull does git fetch by default - so why does it says "ahead by 6 commits"  without additional git fetch?


So, to get spoilers out of the way -       Jon Snow is too honorable to break his oath and leave the Night's Watch.  However, he is stabbed a bunch, dies, and due to a line in the Night's Watch oath - "It shall not end until my death" - is able to leave without his usual reservation.   Now, this is fine from Jon's perspective.  However, there is a fairly rigid law about the Wall's deserters being punished by death. Which makes me wonder: why isn't Jon having more trouble with this?   He knows what happened, but others don't.  And the explanation that he actually did die doesn't seem like one the lands' lords and authorities would take on faith.  I know I wouldn't.  His story isn't quite like Sam's, who was sent by the Night's Watch to become a maester.  Jon is famous enough that many would know who he is, and that he has taken the black.  But a story like him dying and coming back to life is probably one that takes quite a but of time to stick - if it ever does.  A possible explanation might be that people know Jon is honorable and trust him. Or that they don't care about the law, and think that they can somehow benefit from not executing him - although the law seems to be a strict one, and not everyone seems to be psyched to help Jon out.  Or maybe by that time people coming back to life is a common enough thing that people believe it that easily.  Speculation aside, however, I am curious whether this was directly addressed from the higher-ups - the makers of the show, or the big boss himself.  Why isn't Jon executed on sight?


Proof that ODE solutions with Wronskian identically zero are linearly dependent

According to , if the Wronskian of two functions is always zero, then they are not necessarily linearly dependent.  But it seems that if the two functions are solutions of the same homogeneous second-order linear differential equation, then the condition $W[y_1, y_2](t) = 0$ does indeed imply that they are linearly dependent.  Online, I found that if two functions are real analytic and their Wronskian is identically zero, then they are necessarily linearly dependent. But there is no reason that the solutions to a linear differential equation should be real analytic.  How can we prove that the condition $W[y_1, y_2](t) = 0$ implies the linear dependence of $y_1(t)$ and $y_2(t)$? More generally, how can we prove that the condition $W[y_1, \ldots, y_n](t) = 0$ implies the linear dependence of $y_1(t), \ldots, y_n(t)$?


Is there a simple way to increment a datetime object one month in Python?

So I am trying to find a way to increment a datetime object by one month. However, it seems this is not so simple, according to .   I was hoping for something like:   import datetime as dt  now = dt.datetime.now() later = now + dt.timedelta(months=1)   But that doesn't work. I was also hoping to be able to go to the same day (or the closest alternative) in the next month if possible. For example, a datetime object set at January 1st would increment to Feb 1st whereas a datetime object set at February 28th would increment to March 31st as opposed to March 28th or something.    To be clear, February 28th would (typically) map to March 31st because it is the last day of the month, and thus it should go to the last day of the month for the next month. Otherwise it would be a direct link: the increment should go to the day in the next month with the same numbered day.    Is there a simple way to do this in the current release of Python?


How do properties work in Object Oriented MATLAB?

I am trying to create a MATLAB class with a member variable that's being updated as a result of a method invocation, but when I try to change the property within the class it (apperently, from what I understood from MATLAB's memory management) creates a copy of the object and then modifies it, leaving the original object's property untouched.  classdef testprop       properties           numRequests=0;       end       methods           function Request(this, val)               disp(val);               this.numRequests=this.numRequests+1;           end       end   end     .  >> a=testprop; >> a.Request(9); >> a.Request(5);   >> a.numRequests    ans = 0


I've a problem modifying the files' names in my Music/  directory.  I have a list of names like these:  $ ls 01 American Idiot.mp3 01 Articolo 31 - Domani Smetto.mp3 01 Bohemian rapsody.mp3 01 Eye of the Tiger.mp3 04 Halo.mp3 04 Indietro.mp3 04 You Can't Hurry Love.mp3 05 Beautiful girls.mp3 16 Apologize.mp3 16 Christmas Is All Around.mp3 Adam's song.mp3 A far l'amore comincia tu.mp3 All By My Self.MP3 Always.mp3 Angel.mp3   And similar and I would like to cut all the numbers in front of the filenames (not the 3 in the extension).  I've tried first to grep only the files with the number with find -exec or xargs but even at this first step I had no success. After being able to grep I'd like doing the actual name change.  This is what I tried by now:  ls > try-expression grep -E '^[0-9]+' try-expression   and with the above I got the right result. Then I tried the next step:  ls | xargs -0 grep -E '^[0-9]+' ls | xargs -d '\n' grep -E '^[0-9]+' find . -name '[0-9]+' -exec grep -E '^[0-9]+' {} \; ls | parallel bash -c "grep -E '^[0-9]+'" - {}   And similar but I got error like 'File name too long' or no output at all. I guess the problem is the way I'm using xargs or find as expressions in separate commands work well.   Thank you for your help


How to extract the last two (or any number) directories from a path with sed?

I'm really looking for a generic solution here, but for the sake of example, let's say I'm looking for the deepest 2 directories in a path. e.g.: Given a path /home/someone/foo/bar, how can I use sed (or awk) to get foo/bar  It would be simple if the first part of the path were always the same, but in my case, I'm looking for an expression that will work for any arbitrary path, and ideally, for any depth n.  If the path has fewer than n (in this case 2) levels, it's not important how the command behaves.  I went do this today and found it tricky. I started to write a loop to do it instead, but I can't shake the feeling that this must be possible in a single command. I could be wrong. Any ideas?


Is there a regular language to represent regular expressions?

Specifically, I noticed that the language of regular expressions itself isn't regular. So, I can't use a regular expression to parse a given regular expression. I need to use a parser since the language of the regular expression itself is context free.  Is there any way regular expressions can be represented in a way that the resulting string can be parsed using a regular expression?  Note: My question isn't about whether there is a regexp to match the current syntax of regexes, but whether there exists a "representation" for regular expressions as we know it today (maybe not a neat as what we know them as today) that can be parsed using regular expressions. Also, please could someone remove the dup since it isn't a dup. I'm asking something completely different. I already know that the current language of regular expressions isn't regular (it is how I started my original question).


I was trying to make a dualboot with ubuntu and windows 10. I didn't want the easybcd bootmenu but the grub so i deleted easybcd and other folder(I dont remember the name but it was in the C drive) from easybcd. Now when I boot i'm get this error: 0x0000098. If I click on f12 on startup I can boot into ubuntu. Does anyone know a easy way to fix this error? I realy need windows for school.


Which of the two definitions of mass is the correct?

I have searched the internet for the definition of mass when looking up about the difference mass vs inertia. There are two definitions of mass the I see: "Mass is the quantity of matter in an object," and "It is the measure of an object's resistance to acceleration." Which of these definitions is the correct? Or are they both correct and mean the same thing?


How does the usage of "have had" and "had" differ?   Here is my example from my other question:     People who have had their belongings taken will turn into miserable people.   Here are the things I seem to have gotten from StoneyB's answers:   Have had is used for one-time occurrences, but had can be used for such occurrences as well Have or simple present is used for something more habitual   So does that mean have had and had are interchangeable?     People who have had their belongings taken will turn into miserable people. [= "People who had their belongings taken will turn into miserable people."]   Is this assumption correct, or do they imply different meanings?  So a sentence like "people who smoke will get sick" means that a habitual smoker will get sick, but a sentence like "people who have smoked will get sick" means that if you have smoked even once in your life, you'll get sick. Is this exact?


I recently started using Grammarly in some of my writing and the spell/grammar checking software seems to place a comma after just about all conjunctions. I thought that a conjunction was, sort of, like a comma in a sentence, that is, it separates a thought. So, the question is, is there some rule for when it is proper to use both a conjunction AND a comma?


I wonder how to typeset the restriction of a function to some subdomain, a la $f|_A$ or $f\restriction_A$ , but with the vertical bar being as big as possible.


Definition of equation vs. expression vs. polynomial in the context of zeros vs. roots

I was trying to figure out the distinction of a root and a zero and found people in such discussions make distinctions between equation vs. expression vs. polynomial without defining them.  What is the difference exactly? I'm especially confused by function.  Likely I've forgotten many details from my high school math such as this definition.  I can tell you about functions in several programming languages, but that's not the same thing at all. So are root and zero the same things or are they applied to different things?   Interestingly two of the suggested links for this question were "Roots of Polynomial Equation?" and "Finding the zeros of a polynomial equation."


Let $A$ be an invertible square matrix. Prove that $$ |A + uv^T| = (1 + v^T A^{-1} u) |A|. $$   My attempt $|A + uv^T| = \left|A (I + A^{-1}uv^T)\right| = |A| |I + A^{-1} uv^T|$ I'm trying to use the following fact, $$(I + ab^T)^{-1} = I - \frac{1}{1+b^T a}ab^T$$ but it seems quite tricky because of the $A^{-1}$ part.


How can I change permissions on external drives right after formatting with GParted?

Using GParted, I have formatted an external HDD to ext4.  As it turns out the default is that I have no write access.  How can I change permissions on external drives?


Capitalize "possible" in the automatically inserted comments when you vote to close as a dupe

The comment reads:     possible duplicate of [link]   The missing capitalization bothers me a lot; it should be Possible.


Surjective continuous function $[0,1] \to [0,1]^2$

I was in class and the lecturer only mentioned that there exists such function. I didn't find anything about it on the internet. Is it simple? Maybe you could help me to understand that? thanks


Tikz double line core color transparency

How to remove the core color in double line in tikz ?    \documentclass[margin=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{backgrounds} \usetikzlibrary{arrows}  \begin{document} \begin{tikzpicture}[show background rectangle, background rectangle/.style={fill=lightgray}]  \draw[thin,double,-implies] (0,-0.8,0) -- (0,-1.9,0) ; \end{tikzpicture} \end{document}


Undefined Control Sequence. 1.60 \@writefi

Im having this weird error that says:  Underfined Control Sequence. 1.60 \@writefi   I can press [s] on the command line and the message is ignored, and the code still runs ...  What can be causing this error?


How does Salazar Slytherin speak Parseltongue?

From what I can tell it is an inherited skill from wizard to wizard. According to this question:  Herpo the Foul seems to be the first or one of the first who were able to speak Parseltongue.  And from what I have researched, he was an Ancient Greek wizard and there is nothing of significance if he was related to Salazar Slytherin.  So my question is, how does Salazar Slytherin speak parseltongue? (which could possibly be answered by if he was actually related to Herpo the Foul)


I have installed Ubuntu 16.04 recently. I was unable to view the wifi networks available. I had to add my wifi explicitly and even then was unable to connect to it. I checked some answers in here and ran the following command:   sudo service network-manager restart  After this, I was able to connect to the wifi but it got disconnected within 2 minutes. Everytime I connect, it disconnects in 2 mins. And after the restart, it is unable to connect.   So again I ran the following steps:   Get details of your PCI wireless card by running sudo lshw -class network Get your card model info according to the product line. For instance, as u can see in the question description it says product: RTL8723BE PCIe Wireless Network Adapter so the model of my card is RTL8723BE Open or create /etc/pm/config.d/config and add SUSPEND_MODULES="rtl8723be"(replace rtl8723be with your own model number) Then run echo "options rtl8723be fwlps=N" | sudo tee /etc/modprobe.d/rtl8723be.conf and reboot.   But even after the restart, I am unable to connect.


Can Tywin Lannister's line survive through female line?

In S04E06, it is stated several times that Tywin's family-line will end if Tyrion dies or goes to the Night's Watch, and Jaime doesn't get married - which means none of them would have children.  Now I wonder, there are still Tommen and Myrcella who are Cersei's children and thus continue Tywin's family line even if the children are considered to be Robert's children.   So what is the problem about?


Is "that" necessary in the following case?

If there's wasn't a mess in the morning, it would indeed mean (that)   she'd been sleepwalking.   Do I need the that there? Why or why not?


my bank just sent a statement titled: Banking Done Different

Is it ever correct to write Banking Done Different?  I am surprised to find this printed at the top of my savings account statement


Has anybody who started with the Dark Side switched to the Light Side?

Of course Darth Vader seems to embrace the Light Side just before his death, but he also began his training on the Light Side under Qui-Gonn and Obi-Wan. Kylo Ren also admits to "struggling" with the Light Side, but he was      trained by Luke Skywalker.   So we see that some Jedi go over to the Dark Side (Count Dooku is an example where there is no apparent "regret"). Are there any examples of Force users who begin with the Dark Side but embrace the Light Side? If not, why do all the defections seem to go one way?


No problem when "I began to learn English in 2000". But what if "I began to learn English from 2000 till now more times without success".  Verb begin something that happens in a moment, not something continuously. After that does this correct:     I have been beginning to learn English since 2000, but never continuous consistently, tenacious till now.


What is the purpose of the 10kΩ resistor in this circuit?

Below is a simple circuit involving an Arduino, a push-button, and an LED. However, I don't quite understand what the purpose of the resistor is. Wouldn't the circuit function without it?     Note: Since this question is concerning the behaviour of the circuit rather than the functioning of the Arduino, I've posted this here instead of the Arduino stack exchange.


Showing that $(C_0([0,\infty)), \|\cdot\|_\infty)$ is complete.

I need to proof that $(C_0([0,\infty)), \ \|\cdot\|_\infty)$ is complete. I think that I did it correctly (or atleast am thinking in the right direction), but I still struggle with writing it down correctly. I used that $(C_b([0,\infty)), \|\cdot\|_\infty)$ is complete, so therefore as $C_0[0,\infty) \subset C_b[0,\infty) $, I wanted to use that if $A$ is a closed subset of a complete space $(M,d)$, that $(A,d)$ is complete. Thus, it came down to showing that $C_0[0,\infty)$ is closed.  Let $f_n(k)$ be a sequence of elements out of $C_0[0,\infty)$ that converges to an element $f$ out of $C_b[0,\infty)$. I need to proof that $f(k) \in C_0[0,\infty)$.   Per the definition of convergence, we know that $\|f_n(k) - f(k) \|_\infty \rightarrow 0$ whenever $n \rightarrow \infty$. We use this to find $ |f_n(k)-f(k)| \leq\|f_n(k) - f(k)\|_\infty  \rightarrow 0$.  Then we consider $|f(k)| = |f(k) - f_n(k) +f_n(k)| \leq |f(k)-f_n(k)| + |f_n(k)|$. If we take limits on both sides, we get: $\lim_{k\to \infty} |f(k)| \leq \lim_{k\to \infty} |f(k)-f_n(k)| + \lim_{k\to \infty} |f_n(k)| = 0 + 0 = 0$ (the first term follows from what we have previously stated and the second term follows from the fact that $f_n(k)$ is an element of $C_0$. Thus, $f \in C_0$ and therefore $C_0$ is closed and therefore it is complete.  My questions are the following;   What exactly does it mean to be a sequence of functions? I used $f_n(k)$ and $f(k)$ in my proof because I saw that it was used in another exercise, but I'm not sure what it means to write that $k$ down. Is the structure of my proof sound? Is there a better way to proof such statements?   Thanks for reading,  K. Kamal


A continuous function $f: [0,1] \rightarrow \mathbb{R}$ continuous with $f(0) = f(1)$

I came across this question in Stephen Abbott's "Understanding Analysis" 2nd edition.  Let $f: [0,1] \rightarrow \mathbb{R}$ be continuous with $f(0) = f(1)$.  a) Show that there must exist $x,y \in [0,1]$ satisfying $|x-y| = 1/2$ and $f(x)=f(y)$.  b) Show that for each $n \in \mathbb{N}$ there exist $x_n , y_n \in [0,1]$ with $|x_n-y_n|=1/n$ and $f(x_n)=f(y_n)$.  For part a), I thought that I would start by splitting the interval $[0,1]$ into two halves and asserting that if $f(1/2)=c\neq 0$ then there must be some $x \in [0, 1/2]$ and $y \in [1/2,1]$ such that $f(x)=f(y)$ (by the Intermediate Value Theorem) but that did not lead me anywhere.


Computing the limit of an alternating series,

I am looking at the series   $$ \sum_{n=1}^\infty\frac{(-1)^n}{n}.$$  This series converges (conditionally) by the alternating series test.  How can I compute its limit, which is equal to -log(2)?  a) I considered $I_n = \int_{0}^1$ $\frac{x^n}{1+x} dx$ -- and showed that this goes to 0, as n goes to infinity (use dominated convergence theorem).  b) I computed [$I_k$ + $I_{k-1}$] (for k $\ge$ 1), and it equals $\frac{1}{k}$.  I should be using my results from a) and b) to compute the above limit, which is part c) of the question that I am working on.  So, I have $$ \sum_{n=1}^\infty\frac{(-1)^n}{n}  = \sum_{n=1}^\infty(-1)^n[I_n+I_{n-1}].$$    Now I'm stuck.  How should I proceed from here?    I checked, by computing explicitly, that $-I_0$ = -log(2).  But I don't know how to arrive at $-I_0$ from the summation that I'm currently at.  Thanks in advance,


Scammer gave me their banking info. What can go wrong?

I see would-be scammers all over the place trying to get my personal info. You know, they want to be generous and pay off my debt or be my sugar momma. They're all so terribly obvious. But a would-be scammer gave me their routing and checking account number. What can go wrong if I were to use that to make a payment on one of my credit cards? None of my information is out, in this scenario.


$G$ has no subgroup with index 2. How can I show that all subgroups with index 3 are normal? (The index of the subgroup is the order of the quotient set.)


Color not changing in eevee in material view

I am using a course from Udemy that says to change the color of the selected object, you should:  be in Object Mode Render engine set to Eevee View set to Rendered  I have done this, but when I choose 'Material', and try and pick a color on the color pinwheel, the object does not change.  I have tried Edit mode, View set to material, nothing appears to work.  Why is this simple task so complicated? :(


How can I remove all comments from a file?

I have a file which includes comments: foo bar stuff #Do not show this... morestuff evenmorestuff#Or this  I want to print the file without including any of the comments: foo bar stuff morestuff evenmorestuff  There are a lot of applications where this would be helpful.  What is a good way to do it?


What happens if I do not honor a futures contract?

I have little knowledge about futures contracts. The recent negative price of crude oil spurred my curiosity about this stuff.   I read this post about .  According to this post, when I buy a futures contract, I enter into a contractual agreement to buy some commodity on some future date, and I only need to pay a 2% initial margin.   Suppose the price of the commodity does not fluctuate but I change my mind and decide not to buy the commodity at maturity. What punishment could be exerted on me?   I do not want the 2% initial margin back because that is a little money compared to the real value of the commodity. If there is no extra penalty, it would be unfair for the seller — imagine the seller transports 1000 barrels of crude oil to your front door and you say "I do not need it any more, please take it away, thank you!"  Update: I did more research about this and have more questions.  If I buy a futures contract at $10 and the price of the contract drops to -$37 at the last trading day, at which price should I buy the commodity at the delivery day, $10 or -$37?   There seems not just one contract I enter into when I buy a futures contract: the original futures contract between me and the seller of the commodity(or the exchange?), the contract between me and my brokerage, the contract between the brokerage and the exchange. I'm not clear about the exact entities of each contract and the obligations involved in each contract. The contracts seem contradictory with each other, e.g., my brokerage may forcefully sell my futures contract if my account balance is not enough, which will prevent me from fulfilling the obligations in the futures contract, i.e., receiving the commodity on future date.  If I(or an institutional trader) trade directly (not via a brokerage) with an exchange(does CME accept individual traders?), does the exchange have the rights to forcefully sell my contracts at the last trading day at any price or close my position at the settlement price(say -$37)? If the exchange does so thus letting me own $5,000M to it, is it more justice for me to sue the exchange rather than let the exchange sue me? If I could hold the position, the loss caused by my not executing the delivery/receipt of the commodity may be less than $5,000M. Of course, the loss will be determined by the court, not by the exchange according to the settlement price formed by itself or a few possible conspirators.


How to make page.html.twig based on Vocabulary?

I want to make different page.html.twig according to different Vocabulary.  I found this code:  function THEME_NAME_theme_suggestions_page_alter(&$suggestions, &$vars) {   if (\Drupal::routeMatch()->getRouteName() == 'entity.taxonomy_term.canonical' && $tid = \Drupal::routeMatch()->getRawParameter('taxonomy_term')) {     $term = Term::load($tid);     $suggestions[] = 'page__taxonomy__' . $term->getVocabularyId();   } }   in . Code does not work:     Fatal error: Class 'Term' not found in...   Excuse me, what is the reason, I really need to customize the page.html.twig according to the vocabulary, you can help me？


How to get the UV corresponding to a vertex via the Python API?

How do I get a selected vertex and it's corresponding uv vertex?  A vertex I can get with  bpy.context.active_object.data.vertices[0]   A uv vertex I can get with  bpy.context.active_object.data.uv_layers['UVMap'].data[0]   But the index is not the same for uv and mesh vertex.


I want to write the name Ibn-Sīnā with macrons over the i and the a. I found out that can I add macrons using \=a and that I need \=i\ to avoid the dot over the i.   When I write Ibn-S\=i\n\=a I get an error, undefined control sequence. If I put a space after the i (Ibn-S\=i\ n\=a) it works, but I don't want a space after the i.   I also tried Ibn-S\=\in\=a but that also generated an error.   How can I do it?


i'm searching the net to solve this problem but i still don't have any clue how it will be done, or IF it CAN be done. I'll be more specific.   I need to create a custom Windows Printer Driver (i think for windows 7 and above) which will execute a simple task. This driver doesn't interface with any device but have to execute a command (launch a .exe located in a specific file system path).  Is it possible to create such "fake" driver and let windows recognise like as installed printer (for example showing the device in the printer list while printing a document).  I'm familiar with c++ and my .exe is written in c# . I will explain and answer to any clarification the community need to help me solving this issue.


Whenever $f=T(x)$ then $f(x) \geq 0$. Prove $T$ is bounded by closed graph theorem.

Let X be a Banach space and suppose $T:X \rightarrow X^*$ is linear and has the property that whenever $f=T(x)$ then $f(x)\geq 0$. Prove T is bounded.  The book gives a hint: using closed graph theorem.  I stucked at proving $|T(x_n)-T(x)|=\sup_{\|y\|\leq1}|f_{x_n}(y)-f_x(y)|\rightarrow0$.  Any suggestion is appriciated.


How to comment out multiple lines at once in Notepad++?

In Eclipse it is possible to comment out multiple lines at once by selecting them and executing CTRL + /:  // helloworld  Is this possible in  as well instead of typing /+/ in front of each individual line?


is there a formula for the sum of n'th powers

is there a formula for this sum     $\sum_{i=1}^{k} {i^{n}}$   i know of the formula for square and cubic sums,     $\sum_{i=1}^{k} {i^{2}}$,   $\sum_{i=1}^{k} {i^{3}}$   but i couldn't find a correlation between then in order to get a generic formula for the n'th power, does one exist? i couldnt find one online by googling around


When should I use velocity versus addForce when dealing with player objects?

I'm confused about these two methods in the Unity framework.  Both make the player object move, stop, change direction, etc.  When should one be used over the other and when is one appropriate?


Is it possible to create a directory and file inside /proc/sys?

I am running CentOS 6.2 and I need to create a subdirectory named "crypto" inside /proc/sys. Inside /proc/sys/crypto, I need to create a file named test which contains the value "1".


I have a EC2 m1.large Ubuntu 13.04 Instance runs PHP 5.5, PHP-FPM and NGINX. Cache is handled by Elastic Cache using Redis and the database connects to a separate m1.large MongoDB server. The content can be fairly dynamic as newsfeed can be dynamic and my server is used by an iOS app.   I am doing siege tests siege -d5 -c150 if I do only 1 siege I see responses times that are less than 1 sec. If I add another server to do another siege -d5 -c150 my response times go up the roof to 9-15 sec`  I am very new to servers setups but somethings tells me that if my server is always average of 40-50% CPU load and consuming under 1GB of ram. I shouldn't see 10++ sec latency having so much free resources?   What could be my bottle neck or even better how could I find it??     /etc/sysctl.conf are   net.ipv4.tcp_fin_timeout = 30 net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_tw_reuse = 0 net.ipv4.ip_local_port_range = 2000 65000 net.ipv4.tcp_no_metrics_save = 1 net.ipv4.tcp_window_scaling = 1 net.ipv4.tcp_max_syn_backlog = 3240000 net.core.somaxconn = 3240000 net.ipv4.tcp_max_tw_buckets = 1440000 kernel.shmmax = 1073741824 net.ipv4.tcp_rmem = 4096 25165824 25165824 net.core.rmem_max = 25165824 net.core.rmem_default = 25165824 net.ipv4.tcp_wmem = 4096 65536 25165824 net.core.wmem_max = 25165824 net.core.wmem_default = 65536 net.core.optmem_max = 25165824 net.ipv4.tcp_mem = 1474560    1966080    2949120   /etc/php5/fpm/pool.d/www.conf  pm = dynamic pm.max_children = 32 pm.start_servers = 3 pm.min_spare_servers = 2 pm.max_spare_servers = 5 pm.max_requests = 150   /etc/nginx/nginx.conf  user www-data; worker_processes 4; pid /run/nginx.pid;  events {     worker_connections 32768;     multi_accept on;     use epoll; }  http {      include       /etc/nginx/mime.types;     default_type application/octet-stream;      sendfile on;     tcp_nopush on;     tcp_nodelay on;     keepalive_timeout 15;      server_tokens off;      # allow the server to close the connection after a client stops responding. Frees up socket-associated memory.     reset_timedout_connection on;       # send the client a "request timed out" if the body is not loaded by this time. Default 60.     client_body_timeout 10;      # If the client stops reading data, free up the stale client connection after this much time. Default 60.     send_timeout 10;      ##     # Logging Settings     ##      access_log /var/log/nginx/access.log;     error_log /var/log/nginx/error.log;      ##     # Gzip Settings     ##      gzip on;     gzip_disable "MSIE [1-6]";      ##     # Virtual Host Configs     ##      include /etc/nginx/conf.d/*.conf;     include /etc/nginx/sites-enabled/*;     server {         listen 80 default;         root /var/www/;         index index.php index.htm index.html;          # php-fpm bridge         # execute all .php files with php-fpm            location ~ .php$ {               fastcgi_pass   unix:/var/run/php5-fpm.sock;               fastcgi_index  index.php;               fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;               fastcgi_buffer_size 128k;               fastcgi_buffers 256  16k;               fastcgi_busy_buffers_size 256k;               fastcgi_temp_file_write_size 256k;               include fastcgi_params;            }     } }   siege results  ransactions:                    1265 hits Availability:                  99.68 % Elapsed time:                1196.10 secs Data transferred:              21.30 MB Response time:                 11.48 secs Transaction rate:               1.06 trans/sec Throughput:                     0.02 MB/sec Concurrency:                   12.14 Successful transactions:        1265 Failed transactions:               4 Longest transaction:           26.88 Shortest transaction:           0.00


I am trying to prove that the topologist sine curve is not path connected. I think I have a  proof but my proof relies on Intermediate Value Theorem. So, I was wondering if there is a way  to prove it without using Intermediate Value Theorem.  Thank You.


Show $1 + 2 \sum_{n=1}^N \cos n x = \frac{ \sin (N + 1/2) x }{\sin \frac{x}{2}}$ for $x \neq 0$


Google Webmaster change of address from old root to new subfolder

I have successfully done a 301 from example.com to newexample.com/example but Google Webmaster Tools will ONLY let me submit a change of address for root level domains e.g. from example.com to newexample.com. So, should I instead value the Webmaster Tool more and just redirect the old domain to the new root directory instead of it's sub folder, even though it is not as relevant, or stick to my more relevant 301s and just not use webmaster for change of address. Will this hurt my PR from the old site or will Google still be nice to me?


Two progress bars visible and keyboard also

Go the Stack Overflow site. Click on search bar. Change question type. two progress bars and a keyboard are visible.   It happens when connection is slow.   App Version: 1.0.89 Device Manufacturer: Motorola Device Model: XT1706   OS Version: 6.0 (XT1706_S131_160905_ROW)


Super.super notation. What am I doing wrong?

I have 3 classes. BankAccount, InterestAccount and IsaAccount. InterestAccount extends BankAccount. IsaAccount extends InterestAccount.   This is what I have got for BankAccount for the withdraw method.  public void withdraw(int amount) {     balance = balance - amount; }   This is what I have got in InterestAccount for the withdraw method. (minimumBalance is the amount belof which balance should not fall but don't worry about it)  public void withdraw(int amount) {     if (super.getBalance() - amount >= minimumBalance) {         super.withdraw(amount);     } }   The question is what should I do to make a withdraw class for IsaAccount which kind of "extends twice"? I know super.super.balance isn't the case. What's the right way to do it?


Why isn't the set of real numbers countable?

First, I should preface this by saying that I am not incredibly familiar with the mathematics at play here; I am simply trying to obtain a conceptual understanding of the answer, since my current conceptual understanding would entail that real numbers are countable. As such I will likely not be using the proper mathematical language in all cases; please bear with me.  From the Wikipedia article 'Countable set':     Whether finite or infinite, the elements of a countable set can always be counted one at a time and, although the counting may never finish, every element of the set is associated with a natural number.   The issue here is that I think one can assign a unique natural number to every real number in a manner such that you could map the real and natural numbers bidirectionally and uniquely.  I would do so with the idea that you can represent every real number with a decimal base and a decimal exponent (base * 10^exponent). The base would be the set of all integers without leading zeros; that is, where the digit at the 1's place is not 0. The exponent would be the set of all integers, excluding 0. These are both subsets of the set of integers, which is countable, and I am given to understand that a subset of a countable set is countable. Thus, for every possible base and exponent, you could assign a unique natural number.  I am also given to understand that you can assign a unique natural number to every ordered pair of two natural numbers; so, one should be able to assign a unique natural number to every pair of base and exponent (which can both be assigned unique natural numbers).  That would leave every real number (excluding 0) tied uniquely to a natural number. You could then form a set of all real numbers by 'appending' 0, and increment all the other natural number bindings by 1. At this point, you would have uniquely assigned a natural number to every real number, making the set of real numbers countable.  So... what's wrong here?


Reversing the $T(n) = \frac{n(n+1)}{2}$ formula

Can someone reverse this formula? Sorry if it's too basic, I'm an old guy and my math is rusty :-D  $s =\frac{n(n+1)}{2}$  If it ain't clear, by reverse I mean obtaining the value of n by providing s  Thanks


An implementation of the fast Fourier transform (FFT) in C#

Where can I find a free, very quick, and reliable implementation of FFT in C#?  That can be used in a product? Or are there any restrictions?


How do I find the exact area under the curve of the function $f(x)=4+3x-x^2$ on the interval $[-1,3]$ using integration. I'm super lost, and not quite sure how to start the problem.


Let $f$ be a real function defined on some interval $I$.   Assuming that $f$ both convex and concave on $I$, i.e, for any $x,y\in I$ one has $$f(\lambda x+(1-\lambda)y)=\lambda f(x)+(1-\lambda)f(y),\, \, \lambda\in (0,1) .$$ I would like to show that $f$ is of the form  $f=ax+b$ for some $a,b$.   I was able to prove it when $f$ is differentiable, using the relation  $$f'(x)=f'(y).$$  Anyway, I was not able to provide a general proof (without assuming that $f$ is differentiable, and without assuming that $0\in I$).   Any answer will be will be appreciated.  Edit: It is little bit different from tte other question . Here $f$ is defined on some interval, so $o$ not necessary in the domain. Please remove the duplicate message if this possible


find value of the $$\lim_{x\to0}\frac{e-(1+x)^{\frac{1}{x}}}{x}$$I use hospital law and can't find answer


In Harry Potter, do ghosts "live" forever?

I'm wondering if it's ever brought up in the books or other sources about the wizarding world whether or not ghosts can pass on into the afterlife.   Are there any documented instances of this happening? If not, then is it ever brought up that they theoretically can pass on?


Will the Ubuntu Edge work with 800MHz CDMA networks in India

I am based in india using Reliance, CDMA  For CDMA in India, the frequencies are:  824 - 844 MHz for the uplink (handset to base station)  869 - 889 MHz for the downlink (base station to handset)  20 MHz band for uplink & downlink. carrier freq. is 1.25MHz  since i am interested in purchasing the phone, and the phone does not come cheap , can you guys confirm that it will work in india.  Thanks Nitin


I am working on an application where I need to detect whether user has pressed ctrl+f6 for certain navigation path. How to capture ctrl+f6 key press event in javascript/jquery?


I am doing the exercises in the Cracking The Coding Interview book and I am trying to determine if there is a duplicate character in a string. I am using the ArrayList data structure. My method is of return type Boolean, which returns true if there is a duplicate and returns false if there is no duplicate character. I added a third return statement so the program would compile but it always returns false.  import java.util.*;  public class QuestionOneCrackingCode {      public static void main(String[] args) {         String s = "abcdefga";         ArrayList<String> c = new ArrayList<String>();         c.add(s);          System.out.print(check(c));     }      public static boolean check(ArrayList<String> g) {         for (int i = 0; i < g.size(); i++) {             for (int j = i + 1; j < g.size(); j++) {                 if (g.get(i) == g.get(j)) {                     return true;                 } else {                     return false;                 }             }         }         return false;     } }


How can logistic regression maximize AUC?

$AUC$ is the area under the receiver operating characteristic curve. It's said that a loss function set to $1-AUC$ can be minimized by maximizing $AUC$. How does this tie into logit (logistic) regression, if at all, and does logit regression maximize $AUC$ directly/indirectly somehow?  described mathematically for both the discrete-class and probability-based logit regression would be nice. Also, what is a rank loss function?


How do I delete lines without "." in Notepad++?

In Notepad++, I have many lines in the format:  abc.xyz   where "abc" might have space or - or numbers.  How do I delete lines without "."? So if a line does not have any ".", I want it removed completely, not even leave an empty line.


String for both Apex Class and Javascript

I am creating a dynamic query string for SOQL. Currently it is working fine as I am using database.query().  For example : string soqlStr = 'select Id, Name From Account where Name = \'Test\'';  database.query(soqlStr);   But, I want to use the same string in java script to call sforce.connection.query();  But, it seems the Javascript is not accepting the soqlStr format, because of where Name = \'Test\''.  We can use document.getElementById() in javascript, but our search page has multiple filter criteria.  is there any other solution where we can use the same soql string for both class and Javascript.


How we use while loop in latex to input multiple files in main document

I am trying to input multiple files from different directories in my main latex document and I want to use while loop to do that so that all .tex files can be read from a directory. Please give your suggestions.


This just started occurring. GET   error:10 GET     CHROME:  Failed to load resource  Uncaught ReferenceError: StackExchange is not defined   IE:  Webpage error details Message: 'StackExchange' is undefined in IE and Chrome on StackOverflow and other sites (Seasoned Advice) but not meta  Uncaught ReferenceError: StackExchange is not defined   Here is the IE error:  User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E; InfoPath.3) Timestamp: Tue, 2 Jul 2013 21:05:54 UTC  Message: 'StackExchange' is undefined Line: 20 Char: 9 Code: 0 URI:   Message: 'StackExchange' is undefined Line: 25 Char: 9 Code: 0 URI:   Message: 'StackExchange' is undefined Line: 31 Char: 13 Code: 0 URI:   Message: 'StackExchange' is undefined Line: 2804 Char: 21 Code: 0 URI:   Message: 'StackExchange' is undefined Line: 159 Char: 9 Code: 0 URI:   Message: 'StackExchange' is undefined Line: 2817 Char: 1 Code: 0 URI:   EDIT UPDATE 7/3/2013 8:50 AM CST  Still seeing this on SO and DYI.StackExchange.com sites  stub.js?v=a1bdd83c9445 cdn.sstatic.net/js GET (failed) Pending stackoverflow.com/:10 Parser 13 B 0 B 213 ms - all.css?v=8a7874f4f2dd cdn.sstatic.net/stackoverflow GET (failed) Pending stackoverflow.com/:10 Parser 13 B 0 B 74 ms   EDIT July 9 2013: Worth noting that the failed "portions" of the page that do not load are HTTPS vs HTTP on the ones that DO load properly:  Request URL:https://cdn.sstatic.net/js/stub.js?v=d2c9bad99c24  Request URL:https://cdn.sstatic.net/stackoverflow/all.css?v=2079d4ae31a4   Still seeing this error July 9 2013  Loading properly:  Request URL:http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js   EDIT: also loads OK:  Request URL:http://cdn.sstatic.net/js/stub.js Request URL:http://cdn.sstatic.net/stackoverflow/all.css   one "perhaps" relevant link: [  EDIT 7/15/2013 - partially working: IE8 working but not Chrome  Open page, bad, open linked file, gets stub.js but not CSS, yet still gives a script error:  GET https://cdn.sstatic.net/stackoverflow/all.css?v=c33c6176913b  stackoverflow.com/:10 GET https://cdn.sstatic.net/js/stub.js?v=3b6d34119f98  stackoverflow.com/:10 Uncaught ReferenceError: StackExchange is not defined stackoverflow.com/:16 (anonymous function) stackoverflow.com/:16 Uncaught ReferenceError: StackExchange is not defined stackoverflow.com/:23 Uncaught ReferenceError: StackExchange is not defined stackoverflow.com/:30 Uncaught ReferenceError: StackExchange is not defined stackoverflow.com/:35 Uncaught ReferenceError: StackExchange is not defined stackoverflow.com/:3077 Uncaught ReferenceError: StackExchange is not defined stackoverflow.com/:3090 Uncaught ReferenceError: StackExchange is not defined stackoverflow.com/:3103   in Network tab for stub:  Request URL:https://cdn.sstatic.net/js/stub.js?v=3b6d34119f98 Request Headersview source Accept:*/* Cache-Control:max-age=0 Referer:https://stackoverflow.com/ User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36 Query String Parametersview sourceview URL encoded v:3b6d34119f98   [1]: http://tools.ietf.org/html/rfc3986#section-4.2


How can I disable the low battery alarm?

I have the low battery alarm disabled in the BIOS settings on my Lemur laptop, but the alarm still sounds when the battery is low.  The sound is a very loud and annoying beep that repeats every couple seconds. The laptop will last another 20 minutes without being plugged in so the battery level isn't properly being detected anymore anyways. I found that if I mute my audio then the beep stops but I obviously cannot listen to anything anymore. If i turn the volume back on even to just 1% the battery alarm is audible again at full volume.  I remember there used to be a mixer somewhere that could control the internal speaker and so if I could find that again then maybe i could mute that and fix this problem.   I have Ubuntu 14.04.  Note that I'm not talking about a low battery notification, which is something through gnome; as opposed to a low battery ALARM which is this very loud beep every couple seconds coming through the internal speaker.  Nevertheless, here are my gnome power settings:  $ gsettings list-recursively org.gnome.settings-daemon.plugins.power org.gnome.settings-daemon.plugins.power button-power 'interactive' org.gnome.settings-daemon.plugins.power critical-battery-action 'nothing' org.gnome.settings-daemon.plugins.power percentage-low 1 org.gnome.settings-daemon.plugins.power priority 0 org.gnome.settings-daemon.plugins.power lid-close-suspend-with-external-monitor false org.gnome.settings-daemon.plugins.power idle-dim false org.gnome.settings-daemon.plugins.power button-hibernate 'hibernate' org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'suspend' org.gnome.settings-daemon.plugins.power button-sleep 'suspend' org.gnome.settings-daemon.plugins.power button-suspend 'suspend' org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 0 org.gnome.settings-daemon.plugins.power time-low 1200 org.gnome.settings-daemon.plugins.power lid-close-ac-action 'nothing' org.gnome.settings-daemon.plugins.power notify-perhaps-recall true org.gnome.settings-daemon.plugins.power percentage-critical 1 org.gnome.settings-daemon.plugins.power percentage-action 1 org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'suspend' org.gnome.settings-daemon.plugins.power time-action 120 org.gnome.settings-daemon.plugins.power lid-close-battery-action 'nothing' org.gnome.settings-daemon.plugins.power idle-brightness 30 org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0 org.gnome.settings-daemon.plugins.power time-critical 300 org.gnome.settings-daemon.plugins.power active true org.gnome.settings-daemon.plugins.power use-time-for-policy false $


Plotting confidence intervals for the predicted probabilities from a logistic regression

Ok, I have a logistic regression and have used the predict() function to develop a probability curve based on my estimates.   ## LOGIT MODEL: library(car) mod1 = glm(factor(won) ~ as.numeric(bid), data=mydat, family=binomial(link="logit"))  ## PROBABILITY CURVE: all.x <- expand.grid(won=unique(won), bid=unique(bid)) y.hat.new <- predict(mod1, newdata=all.x, type="response") plot(bid<-000:1000,predict(mod1,newdata=data.frame(bid<-c(000:1000)),type="response"), lwd=5, col="blue", type="l")   This is great but I'm curious about plotting the confidence intervals for the probabilities. I've tried plot.ci() but had no luck. Can anyone point me to some ways to get this done, preferably with the car package or base R.


which is more effective chilling for metal casting, thick copper die or water-cooled thin copper mold?

It is will known that increasing cooling of a metal casting will lead to finer micro-structure which mean higher mechanical properties. If I have 2 molds one is thick copper die ,& second is just thin-walled copper cup or mold cooled by water. which one of them excepted to cool the molten metal i.e. aluminium faster ?   by calculation it seems that copper die have higher cooling power as it has higher thermal diffusivity , but in real life it seems water have more cooling power. I am so confused.


How to Expand , Resize "extended partition"?

How can I expand/resize my extended partition (sda3) with unallocated free space to the left of it? I want this to be able to expand my / partition (sda5).


Politely ask a professor about my application status

I have applied to PhD programs in engineering in the US. I have contacted a professor prior to applying and based on my resume he encouraged me to apply to his university. Now I want to politely ask him about the status of my application and also politely but implicitly ask him to review my application file and also maintain my contact with the professor. The other thing is that I think that if I do not send this email, it may convey the massage that I have given up. I also want to mention that I have currently taken two other relevant courses to be more prepared before starting my program. Below I have prepared a sample email message. I would be thankful for any help and suggestions.  Dear Professor ****, First I want to thank you so much for your past encouragement regarding the next step in my academic development. I am very excited about having the opportunity to apply to the university of **** and having this honor to mention your name in my application form. I would be more than grateful if you could please let me know when I might hope to hear any response from **** regarding my application. I would also like to mention that I am taking the two **** and *** courses to be more prepared before starting my program. Again, thank you very much for all your kind consideration.


Let ${a} = \begin{pmatrix}x_a\\y_a\\z_a\end{pmatrix}$, ${b} = \begin{pmatrix}x_b\\y_b\\z_b\end{pmatrix}$, and ${c} = \begin{pmatrix}x_c\\y_c\\z_c\end{pmatrix}$. Show that $(x_a,y_a,z_a)$, $(x_b,y_b,z_b)$, and $(x_c,y_c,z_c)$ are collinear if and only if ${a} \times {b} + {b} \times {c} + {c} \times {a} ={0}.$  Hello,  Is there any other way to do this problem without bashing?  I can't seem to find a nice and slick solution to this.  Thanks in advance!


Should I be mentioning people in separate comments or a unified comment?

If two people happen to comment on a question or answer, do I have to reply to them in separate comments (as below)     @ExampleGuy no, I do not have one.   and:     @ExampleGirl I can do that.   Or should I use a unified comment:     @ExampleGuy no, I do not have one; @ExampleGirl I can do that.


Where in the DNS process are NS records used?

I register a new domain, mynewdomain.com, at a hosting company.   In the advanced DNS settings there is an A record which maps mynewdomain.com to a ip address.  In my webhost control panel, it shows me the nameservers for the domain: ns1.mywebhost.net & ns2.mywebhost.net  When I type in mynewdomain.com into a browser and hit enter I believe the following happens.   ISP resolver searches "." nameserver ISP resolver then told to search ".com" nameserver instead. ISP resolver finds mynewdomain.com, and searches the zone file to get the A record.     So my question is, where does my webhost's nameservers come into play? I believe the flaw in my logic comes from the fact that my zone file (in which the A record is kept) is stored on ns1.mywebhost.net). But if that is the case, how does my ISP resolver know to look here? (because I didn't type this into my address bar)


I have tried launching 'The Blizzard Game Downloader', using wine, yet it does not get to the loading screen before it crashes, and ends with an error message.  Neither does trying to load the game through PlayOnLinux. I am an absoloute Ubuntu Noob also.    Any help would be much appreciated. (Preferable Patch 5.4 support)


How does legacy software which writes to LPT1 address a USB printer?

I have a program which I have used for many years which manages the printing of text files according to control statements within the text file.    For instance, it will print headings at the top of each page, change lines per inch, change characters per inch, set margins, change from portrait to landscape, etc.  It does this by writing control strings directly to the printer, addressing the printer as LPT1, LPT2, or LPT3.    Now I need to use it to address a printer connected to a USB port, but I don't know how to address it.    Printer properties tell me that the printer is connected to port "DOT4_001", but when I attempt to write to that port, it simply creates a file in the current directory with that name and does not write to the printer.  Similarly, I cannot figure out how to write to that printer from a DOS window with the simple command "type file.txt >xxxx", although substituting "LPT1:" for "xxxx" works with a printer connected to a parallel port.   So my question is "How do I directly address a printer which is connected to a USB port?"


While trying to install Ubuntu one it throws me this error -   W:Failed to fetch http://ppa.launchpad.net/rabbitvcs/ppa/ubuntu/dists/**DISTRIBUTION**/main/binary-amd64/Packages 404 Not Found, W:Failed to fetch http://ppa.launchpad.net/rabbitvcs/ppa/ubuntu/dists/**DISTRIBUTION**/main/binary-i386/Packages 404 Not Found, E:Some index files failed to download. They have been ignored, or old ones used instead.   and I can't install it Thanks.


I am trying to include sound in beamer slides in such a way that the resulting pdf file works "independently" of any sound file (self-sufficient way). I found that with media9 it was possible to do so. I also found examples with movies that I wasn’t able to adapt for sound. Does anyone have a simple example (code) for sound?