Should I let a bad mark from 10 years ago discourage me from taking on a TAship?

10 years ago it was my first year in University and I bombed a course in programming. I had no programming experience and was competing with people have been programming since 10. I felt stupid and my confidence crushed back then. Since then I have done much more programming in a variety of settings, worked in industry on software projects, and created many projects using various programming languages often under deadline. I have now returned to school and I am deciding to TA a course on the very same subject I bombed in 10 years ago. However, I feel discouraged given my bad performance in this course. I feel like I still don't deserve to help to teach young people. I feel that other people are much more qualified than me even though they may be much younger. Plus I am also questioning if I actually know the concepts. Logically, a lot of the things I know and done are transferable, but I can't get over my self-doubt. In this situation, should I decide to TA this course or not?


I've seen a few posts discussing "what have you tried" comments here, but I thought I'd throw a suggestion out there after recently noticing quite a few of these comments on SO.  If the user has less than x reputation points, posts a question with a programming language tag (e.g. C#), and hasn't used the code tags in their question, then a pop up or alternative page could be shown explicitly asking the user what they have tried. They can leave this blank, but it ensures that they have purposely avoided showing code and, therefore, have not misunderstood that SO isn't for writing your code. This also helps avoid questions being closed when the user is genuinely unaware that this isn't considered a good question.   I understand not every question will be suited to this, but it might be an idea for users posting their first question or have a rep level below 15, for example.


Should I use the singular or plural verb in mathematical formulae ("Two and two make/makes four")?

I remember somebody correcting me once when I said, "Two and two makes four", since the conjunction and would imply the use of a plural verb. They would prefer I said:     Two and two make four.   I've been thinking about it and wondering if one or the other is correct, or if both are. It would seem that using the plural verb is grammatical. However, I've heard the singular verb being used more often and feel that it is correct. Is there some exception about using the singular verb in logical statements and mathematical formulae?


What is the "rate" of the "passage of time"? How does a physicist define and measure time?

I'm trying to separate common concepts of time from the use of time as a standard measurement in physics.  One thing I'm struggling to define is the "rate of the passage of time". For example, commonly we might say that something happens, or has the rate of, "every day". But "every day" isn't a rate "of time".  Let's use the example of a CPU clock "speed". "Speed" is loosely defined in physics as the distance traveled per unit of time. In the case of CPU clock speeds, the speed is the number of clock cycles the CPU can perform per second. But a second isn't a measurement of time. A second is a measurement of the rotation of the Earth. Therefore, the CPU clock speed is more accurately defined as, "the number of clock cycles the CPU can perform in 1/86,400th rotations of the Earth". It's simple substitution. The second is a portion of a minute, is a portion of an hour, is a portion of a day. A day is defined as 1 rotation of the Earth. Any relationship that the rotation of the Earth has to another "dimension" or "force" called "time", seems to be an assumption.  According to my understanding of physics, the current belief is that "time" is passing at varying rates "all the time" depending on different circumstances. "Time is passing more slowly" for objects that are larger (or vice-versa) or time is passing more quickly for objects that are experiencing more gravity (or vice-versa). So, if we've had this assumption that the Earth's rotation happens at a constant rate of the passing of time, which rate of passing time have we been... standardizing the Earth's rotation against? If 1 rotation of the Earth is equal to x units of a force called time "passing by", then are we using the rate at which time passes when it's experiencing more gravity or less gravity?  So, my conclusion thus far is that we've just been confusing time with the relatively constant motion of physical objects. Like two lights blinking at different but consistent rates. They don't blink in rates of time, they blink in rates of each other, because each of them is relatively constant. The fast light blinks 3 times for every 1 blink of the slow light. And somehow we've assumed that there's a third underlying force which is also passing by at a consistent rate where really none exists.  So, what instrument have we used to measure the rate at which a fourth dimension passes by? We have devices that compare the rates of one object in the three dimensional world with the rates of other objects in the physical world, but as far as I can tell we're always comparing the rate of one object in the three dimensional world against the rate of another object in the three dimensional world. I can't tell where a 4th dimension fits into the equation. Examples:  Carbon 14 has a half life of 5,730 revolutions of the Earth around the Sun.  The gestation period for a human baby is approximately 252 rotations of the Earth.  2,091,450 rotations of the Earth is approximately the half life of a Carbon 14 atom.  At this point Microsoft Excel would throw a "Circular Reference" error. What is physics doing differently?


I'm a math student going over some old exam questions. I have arrived at a number of questions that ask me to compute the limit of a function near a given number (2 in this case). But they appear to be harder than I first realised.  $$\frac{x^2 - 4}{x-2} = \frac{1- \frac{4}{x^2}}{\frac{1}{x} - \frac{2}{x^2}} \iff \lim_{x \to 2} \frac{1- \frac{4}{x^2}}{\frac{1}{x} - \frac{2}{x^2}}= \frac{1-1}{\frac{1}{2} - \frac{1}{2}} = \frac{0}{0} $$  Even though I used the algebra of limits I still arrived at a division of zero. I feel I have made a rookie mistake or assumption, but if anyone can help me fill the hole in my logic that would be much appreciated!


How to extend partition with free space that is before it using gparted?

I have my Windows partition (C), 9GB of free space and then I have my Linux partition. How do I expand my Linux partition with that 9GB of free space using Gparted and without losing everything I have?    If this is not possible, is there another tool (safer one) that I can use?


Details of "association bonus" don't match descriptions

I just noticed  that had a +100 association bonus listed a week after joining.  Huh?  It appears that he joined another SE and maybe got a bonus here since he hadn't initially (being his first SE)?  From the question flagged as a duplicate (similar wording to what I've seen):     The bonus is awarded because you have proven that you know your way around the basic features of any Stack Exchange website, and with those 100 extra points you can now comment, vote, flag and create bounties on all SE sites   But, that would be contrary to the meaning in two different ways. The meaning is to get over a first hump of privilege if you're experienced already. Joining a different SE does not provde any experience.  And, he's already over that hump, a week after signing up.  The answer given below explains everything, but contradicts all the documentation and previous explaination on what this is for.


How to implement draggable tab using Java Swing?

How do I implement a draggable tab using Java Swing? Instead of the static JTabbedPane I would like to drag-and-drop a tab to different position to rearrange the tabs.  EDIT: .


Can I use the Canon 55-250mm lens on my Nikon D5200 body?


How to get back deleted data using sudo rm -rf

I have deleted folder using sudo rm -rf. How to recover back?  Im not able to find it in trash folder


Treat every whitespaces as the same character in Regex

I made a regex to highlight keywords found in a text by another tool.  new RegExp(highlightedKeywords.map(v => `\\b${v}\\b`).join('|') || /.^/, 'gi'), match => `<mark>${match}</mark>`)   I would like to make this regex treat every whitespaces as the same because the tool who extract keywords from the text convert every whitespace as space, so for example I have a keyword "the cat" not found because the actual text is "the\ncat".  I don't want to ignore whitespaces because "the cat" should not match "thecat" but I would like to match "the\tcat" or even "the\n \tcat"


Looking for old sci-fi book about Dulgari Empire

Looking for 50+ year old sci fi book. The Dulgari (sp?) empire has the humans on the run. The hero is a military man who has battled the Dulgari. There are always more of their ships than ours. The initial battle he goes through a series of pre-programmed ship movements, to a draw. Ends up tricking aliens to bring fleet to earth. He signals a "drive mechanism" to start that blows up sun and destroys their fleet and give humans advantage. I remember there being a drink called the "9 Planets".


Continuous map of differentiable manifolds is differentiable if differentiable functions pull back to differentiable functions

This is Exercise 3.1.A. in      Suppose that $\pi: X\rightarrow Y$ is a continuous map of differentiable manifolds. Show that $\pi$ is differentiable if differentialble functions pull back to differentiable functions, i.e., if pullback by $\pi$ gives mpa $\mathcal{O}_Y\rightarrow \pi_*\mathcal{O}_X$.   Let $f: V\subseteq Y\rightarrow \mathbb{R}$ be a differentiable function on an open subset of $Y$. Let $(U,\phi)$ be a chart of $X$, $(V,\psi)$ be a chart of $Y$. Then $f\circ\pi(\phi^{-1})$ is differentiable and $f\circ\psi^{-1}$ is differentiable. We need to show that $\psi\circ\pi\circ\phi^{-1}$ is differentiable. I don't know how to prove this.   Can we say that since $(U,\psi\circ\pi)$ constructs a chart of $X$, by the compatibility, $\psi\circ\pi\circ\phi^{-1}$ is differentiable? This seems true but this does not use the fact that $f$ is differentiable.  Sorry I have no background of Differentiable Manifolds. Any help would be appreciated.  I also saw this post: , but I don't understand how $\gamma$ is smooth in the answer. $\gamma=\beta\circ\rho$, where $\rho$ is defined to be smooth, but $\beta$ is not.


How to zooming out multiple figures in a single slide?

I'm preparing for a presentation. I have four figures (fig 1, fig 2, fig 3 and fig 4). I want to show the fig 1 in the whole slide and then zooming it out to the top left corner of the slide. Then to show the fig 2 in the whole slide and zooming it out to the top right corner of the slide. Similarly, fig 3 to the left bottom corner and fig 4 to the right bottom corner of the slide after showing them in the whole slide. I do not have any idea on this. Any help will be highly appreciated. Thanks.


How to make an array by one string in JS

I get one string by query like '5e6,5e4,123'. And I want to make an array containing this query as below in JS.  ['5e6', '5e4', '123']   How can I make this? Thank you so much for reading it.


How to see previous look and feel from cached versions of a hacked website?

The main problem is I have no previous design samples like JPG or PSD files by which the site can be sliced again. So, I need the previous look and feel of the site before hacking. Otherwise, as I have no backup, if I know how to recover background image files for this hacked website, then it will be also fine.  I have killed whole my day to search for a solution whether there is a way to recover my theme files, specially the background image files which were used by the CSS files.   I've tried online cache solutions so far but with no luck.  For example, the following link is showing only my CSS file but I can not recover my image files.    I have also used:  but it is same.  If I use Google cache link:  then it shows me the hacked site for now (though this is not a problem as it will stay few more days until I fix and update my site!).  The solutions described into the following links are not working for me :(


Question posted on multiple stackexchange website?

So I have this question, but it's good for more than just 1 website. Is it allowed / good to post the question on the websites where I feel it should be on? My question for example:   It is a C# question but also a gis question. So it should belong on and could be usefull for either  and  .  So should I post it on both?


I wondered whether there is a order in the list of Stack Exchange sites in the Android application, as Stack Overflow and Super User, the biggest sites (I think so) are on number 1 and 3. So if there even is an order, by what variable is it sorted?


I like StackExchange's tag system.     I want to know how it works. What libraries does it use?


Induction: Prove that $4^{n+1}+5^{2 n - 1}$ is divisible by 21 for all $n \geq 1$.


Can we send a link to community user reset their password and then redirect to a particular community link when the password is reset?

Is it possible to send an email to a newly created community user for them to reset their password and once successfully reset and logged-in they will be redirected to a particular community link. I would like to achieve this using APEX. Flow:  They receive mail with newly created username and link to reset password. They click on it,resets the password successfully and logs in. Redirected to custom link that looks something like this 'https://companycommunity.com/s/custompage?para1=abc&param2=efg' . This link will have different parameters for different customers.  From what I researched I can use Site.createPortalUser(user, accountId, password, sendEmailConfirmation) and System.resetpassword() can help but I cannot find a way to make the link redirect after logging in. Thanks for the help.


what is the difference between [[0 for x in range(n)] for x in range(n)] and m=[[0]*n]*n


How can I include custom post types on a tag page?

I'm using custom post types, but they don't appear on tag pages along with regular posts and i'd like to include both standard and custom post types on tag or category pages. What would be required before the loop to include all posts? (including custom type). Updated: To add, I found this code , which worked perfectly for the first part: add_filter('pre_get_posts', 'query_post_type'); function query_post_type($query) {   if ( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) {     $post_type = get_query_var('post_type');     if($post_type)         $post_type = $post_type;     else         $post_type = array('post','cpt'); // replace cpt to your custom post type     $query->set('post_type',$post_type);     return $query;     } }  Second question still remains though: Is there a way to allow readers to filter by post type? So either of the following would work..  example.com/tag/blue?post_type=custom example.com/tag/blue?post_type=post


Div in div height 100% but with a header line?

So, first of all, I want to say, that I know that similar questions existing, but no of these helped me out though.  I just want to create a frame, within a headline with 50px and another frame in this "container" with height 100%.  But this is not working.  I already tried to create multiple container as divs etc.  this is the current result.  ... and this is the current code I used.    body {   background-color: black; }  .container {   width: 500px;   height: 500px;   background-color: red;   padding: 10px; }  .top {   width: 100%;   height: 50px;   background-color: green; }  .bottom {   width: 100%;   height: 100%;   background-color: blue; }

     I want to look like this:


A problem on norm preserving and angle preserving and their relations.

I want to solve the following problem and finding some difficulties:-    I have done the part (a) easily. My problem is in part (b) and (c). In part (b) after calculation I have achieved that $\lambda_i \lambda_j=|\lambda_i| |\lambda_j|$. From this we can only say that they are of same sign. I can not understand how can their absolute values are equal. In part (c) if I assume that (b) is true then we can say that all tha eigen values are same absolute values.Am I correct?  Can someone help me please?


Proving that $x^5 = x \pmod{10}$ for every integer $x$.

Show that  $x^5 = x \pmod{10}$ for every integer $x$.   How can I approach this? Should I use induction? I am stuck trying to get it in terms of $x+1$.  Some feedback would be appreciated.


Do I download the games to hard drive?     How much is the service?   Does Steam OS make the experience better or what?


Just installed WinEdt cannot SAVE Russian characters. It warns: ``Some characters were lost while converting from UNICODE to CP 0. Save anyway?'' Probably, TeX converts all files to Unicode, but my old files are in 1251, and it cannot work with them. How to change the default coding to 1251?


Is there a utility that will give me a list of all programs installed dumped to a text file for Windows?

I'm on a machine that has a preposterous amount of software installed and I'd like to be able to generate some sort of quick report that will list all of the installed applications.  Is there a program that does this?  I am using Windows 7, however I imagine that if such a tool exists that it would exist for other versions of the Windows operating system as well.


Quadratic congruences problem $(x^2-a)(x^2-b)(x^2-ab)$ ≡ 0 (mod p)

Let p be an odd prime and let a,b ∈ Z such that p ∤ a. Prove that the congruence $(x^2-a)(x^2-b)(x^2-ab)$ ≡ 0 (mod p) is always solvable.   Not sure where to begin here.


Why use vectors to describe velocity/force/etc instead of treating magnitude and direction as separate values?

I'm only 4 weeks into my first college-level physics course, so this is a very elementary question.  Also, in asking this question, I'm just playing devil's advocate in order to better understand the historical motivation for the use of vectors to describe physical phenomena. I'm not actually proposing we stop using them.  :) So, please don't bash me for asking this innocent question.  As I was reading my textbook today, I wondered why vectors were invented and are still useful today. I have a little experience with them from my Trigonometry course, but they've always seemed a bit counterintuitive to me, as a tool for modeling and calculating.  What are the benefits of representing magnitude and direction (or other related values) with a single variable, instead of treating them as separate values with distinct variables?  What are the drawbacks (aside from increased complexity), if any, of using vectors instead of performing calculations and building models in which the speed and direction of a moving object (for example) are treated as distinct values with a distinct variable for each quantity?


How do I make Ubuntu 14.04 unreachable from physical Ethernet ports?

Suppose that I have files that I'm afraid to even expose to a system that is connected to the Internet. Therefore, I've put them on a separate computer, which does not have Wi-Fi or any other sort of Internet connection. Though, this means that it's still accessible by USB flash drives and it still has Ethernet ports (since that's relevant to my job) which can be used to connect to the Internet. I know  but can I also disable all networks, the creation of new network connections and any sort of access to the functions that might enable people to do so, unless I need them? I don't want to deal with ports every time I need to test code or equipment. I already have my firewall configured and don't want to disrupt that. What I'm essentially looking for, is a way to doubly secure the computer. What if I forget to lock my computer and within the five minutes it takes to go to the lock screen someone accesses it? Even if people can access the computer, I don't want them to be able to send anything out or in during that time, unless they provide my password. P.S. The title is about physical Ethernet ports where you have to jack a cable in, not the ports that are configured by software inside the computer.


Should I choose Indian, Asia Pacific or USA based server?

My website has 98% visitor from India and 2% from rest of the globe. Now, I am migrating to VPS.   Should, choose those hosts who have Data Center in India or nearer to India.   Will it help to load pages quickly to my users (If Data center would be nearer to India. Assume, that i am subscribing VPS from standard hosts)? Will it help in SEO too (Google search engine).


How to write LaTeX as title in acm format?

I wrote Latex as \LaTeX to properly make the right output on the title part using acm_proc_article-sp document class. But as I wrote that way, it prints a very small letter 'A' of the LATEX word.     I think it wasn't right for the 'A' gets anussual result. Are there any solutions for this?


Error CL_PLATFORM_NOT_FOUND_KHR in running HashCat 4.0.1

I've downloaded HashCat 4.0.1 form its official website. Running it show following error:  root@mstehr:~/hashcat-4.0.1# ./hashcat64.bin -I hashcat (v4.0.1) starting...  clGetPlatformIDs(): CL_PLATFORM_NOT_FOUND_KHR   I'm using Ubuntu 14.04. I can run this command successfully on another Ubuntu box.  Result of head /proc/cpuinfo:  root@mstehr:~# head /proc/cpuinfo processor       : 0 vendor_id       : GenuineIntel cpu family      : 6 model           : 58 model name      : Intel(R) Core(TM) i3-3210 CPU @ 3.20GHz stepping        : 9 microcode       : 0x15 cpu MHz         : 3192.864 cache size      : 3072 KB physical id     : 0   Result of ls lspci:  root@kmstehr:~# lspci 00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor DRAM Controller (rev 09) 00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller (rev 09) 00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04) 00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05) 00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05) 00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5) 00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b5) 00:1c.5 PCI bridge: Intel Corporation 82801 PCI Bridge (rev b5) 00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05) 00:1f.0 ISA bridge: Intel Corporation H61 Express Chipset Family LPC Controller (rev 05) 00:1f.2 IDE interface: Intel Corporation 6 Series/C200 Series Chipset Family 4 port SATA IDE Controller (rev 05) 00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05) 00:1f.5 IDE interface: Intel Corporation 6 Series/C200 Series Chipset Family 2 port SATA IDE Controller (rev 05) 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06) 03:00.0 PCI bridge: Integrated Technology Express, Inc. Device 8892 (rev 41) 04:01.0 Ethernet controller: D-Link System Inc DGE-528T Gigabit Ethernet Adapter (rev 10)   Result of ls /etc/OpenCL/vendors/:  root@kmstehr:~# ls /etc/OpenCL/vendors/ ls: cannot access /etc/OpenCL/vendors/: No such file or directory


How do I install Ububtu linux on Windows 7 machine (no CD drive), not saving Windows OK?

I want to convert my old 32 bit HP netbook with no CD drive to Umbuntu linux. I am a newby but worked in UNIX 28 years ago.


How to keep terminal session active after running a .sh script

I have a very simple run.sh script which looks like this:  #!/bin/sh echo "Hello, let's start!" cd /Users/c/Dev/App/Code/ . venv/bin/activate cd Backend export FLASK_APP=app.py export FLASK_DEBUG=1 export CONFIG=Local flask run   After I run it, I get the following:   Saving session... ...copying shared history... ...saving history...truncating history files... ...completed.  [Process completed]   Instead, I would like to get the active session as I would if I type the script manually, so simply the virtualenv active where I can then run pip install and see Flask's output.  How can I do that?


Let $[0, 1]$ and $(0, 1]$ be given in the standard topology. Prove that the product spaces $[0, 1] \times (0, 1]$ and $(0, 1] \times (0, 1]$ are homeomorphic.


A dilogarithm identity (simplification/compaction)

I'm wondering if there is any compact expression to compute (or approximate):  $$\operatorname{Li}_2(pe^{-\alpha})-\operatorname{Li}_2(pe^{\alpha})$$  or  $$\operatorname{Re}\{\operatorname{Li}_2(pe^{-\alpha})-\operatorname{Li}_2(pe^{\alpha})\}$$  The problem is that I cannot use   $$\operatorname{Li}_2(z)=\sum_{n=1}^{\infty}\frac{z^n}{n^2}$$  as for my values, $|z|$ is NOT necessarily less than 1. I am hoping, maybe, having exponential inputs to $\operatorname{Li}_2$ might do some magic. Unfortunately, $p$ and $\alpha$ are pure real. A nice approximation or any piece of advice is greatly appreciated.


What is the right way to use the `\!` spacing command?

I have noticed that I hardly ever use the \negthinspace command  \!.  This is because I don't know how to use it properly (I do use other spacing commands quite a bit, because I can better understand the guidelines of when they might be useful). When might it be considered appropriate to use this spacing command?


What do the arrows mean in this schematic?

What do the arrows mean on this circuit diagram? It is for this component:


I was trying to decide between the following two phrasings:   "People like Bob and me are built differently." "People like Bob and I are built differently."   Both sound fine to me and I was trying to figure out what the underlying structure was.  I tried breaking it down in a few ways and evaluating whether it "felt" wrong:   "I am built differently." "Me am built differently." (definitely wrong) "Bob and I are built differently." "Bob and me are built differently." "People like I are built differently." (sounds wrong) "People like me are built differently." "Don't listen to people like Bob and I." (sounds slightly weird) "Don't listen to people like Bob and me."   Do others' gut reactions match up with mine?  I was also hoping someone might have a more compelling analysis.  (I'm not too concerned about following a particular set of prescriptive rules.  But it is sometimes still interesting to see what those rules might say about a particular sentence.)


Table width exceeds the borders of paper

I am trying to make a table like the below image   here is the code i have been using:    \documentclass[runningheads,a4paper]{llncs}  \usepackage{amssymb} \setcounter{tocdepth}{2} \usepackage{graphicx} \usepackage[latin1]{inputenc} \usepackage[english]{babel} \usepackage{url}  \usepackage{float} \usepackage{booktabs}  \usepackage{hhline}% http://ctan.org/pkg/hhline  \usepackage{mathtools}  \usepackage{amsmath} \usepackage[english]{babel} \usepackage{booktabs,array}  \DeclareMathOperator\prb{probability} \DeclareMathOperator\cost{cost} \DeclareMathOperator\child{child}   \usepackage{lipsum} \setcounter{secnumdepth}{5} \begin{document}     \begin{table}[h!]   \centering   \caption{Cost oriented approach in A-ADTree}    \label{Cost oriented approach in A-ADTree}   \begin{tabular}{ |m{2.5cm}| m{4cm} | m{7cm} |}     \hline      case &  A-ADTree-Structure &  Selection metric \\      \hline         Disjunctive     &         \begin{minipage}{.3\textwidth}           \includegraphics[width=\linewidth,height=60mm]{img/conjunction-abstract-form-attack.jpg}         \end{minipage}     &      In cost oriented approach        \begin{align*}            \arg \ \min \ \cost \ i   \\            i \in \ \child(V)         \end{align*}         In probability oriented approach        \begin{align*}            \arg \ \max \ \prb \ i   \\            i \in \ \child(V)         \end{align*}     \\ \hline         Conjunctive     &         \begin{minipage}{.3\textwidth}           \includegraphics[width=\linewidth, height=60mm]{img/disjunction-abstract-form.jpg}         \end{minipage}     &         $$\ root.cost =\sum_{n=1}^{\ n} child_i.cost $$         $$\ root.probability= \prod_{n=1}^{\ n} child_i.probability $$     \\ \hline            Countermeasure     &         \begin{minipage}{.3\textwidth}           \includegraphics[width=\linewidth, height=60mm]{img/Cp.jpg}         \end{minipage}      &           \begin{align*}            \ \mathrm{Mainpro}_\mathrm{parent} \  is \ probability \ of \ parent \ node \ regardless \ of \ the \ countermeasure\\            \ \mathrm{pro}_\mathrm{parent} \ is \ the \ probability \ of \ parent \ considering \ countermeasure\\            \ \mathrm{pro}_\mathrm{child} \ is \ the \ probability  \ of \  countermeasure \ child\                   \end{align*}         \begin{equation}           \mathrm{pro}_\mathrm{parent} = \mathrm{Mainpro}_\mathrm{parent}            \times (1 - \mathrm{pro}_\mathrm{child})         \end{equation}       \\ \hline    \end{tabular} \end{table}  \end{document}   Almost everything is fine with the table, except its width exceeds the width of the paper. So, how can i fit it into the page?  The below image shows the output


Looking for book: contact with aliens, five different races, mismatched claws, biological imperative to breed

I read this book when I was a teenager, or in my early twenties, so that puts it no later than 1979. My favorite authors at the time were (of course) Asimov, Bradbury, Clarke, Heinlein, and a few others. I've looked up the bibliographies of most of these, to no avail.  The story in general: Earth people spot a small alien craft near the sun.  Investigating, they find a lone passenger, a female pilot from an alien race, whose distinguishing characteristic is that her hands are claws of two different sizes: one large, one small.  She is suspiciously quiet about how she got there (I think).  Examining the video footage, they find that, as the Earth ship approached, she jettisoned four other passengers into the sun.  There is much talk about sexual practices (which makes me think Heinlein).  Earth society is going through another "sex is sinful" stage, but the alien female has a biological imperative to breed; if she doesn't have sex, she'll die.  Since her shipmates are gone, she keeps getting sicker.  They return her to her own world, and find that there are five different races, all of which build a fully-integrated society.  The creatures are of different size, shapes and colors, but all have the same mismatched claws.  One breed of alien is like a technician, and, for example, while waiting outside by the car (which are a story in themselves), he or she uses the larger claw as a tool to repair, upgrade, or modify the vehicle.  All of the aliens are capable of things like this, so there are no businesses to take care of it.  Basically, everyone does everything, if I recall correctly.  I don't remember the resolution of the story, and probably for that reason it's been bothering me for several months. If this sounds familiar to anyone, please let me know the title and author, and if I can download a digital copy somewhere.


Creating Users on secondary server in log shipping

I have a production Server say ServerA I have setup log shipping to ServerB which is left in read-only mode. The purpose of this log shipping is to lower the load on production server for some expensive queries (painful reports).   Now if I have to create some logins using our domain accounts. I cannot do this because the secondary database is in standby mode.   I thought if I create these logins on Primary server it will be copied over to secondary server then the logs are restored there but this isnt the case.   I have done a lot of research online finding a way around to this. I found the following resources for this. I tried every method suggested in this articles but none of them seems to work.   1)   2)   3)   Has someone experienced the same issue? what did you do? Is there any way around for this issue? Any suggestions any pointer please.


Javascript to find number after character (colon)

I've looked at other answers to this question, as there have been similar ones before, but I just can't get it work. I'm new to javascript, so please be kind.  From the body of an email, I need to find a phrase that will end with "number:" followed by a number.   e.g. Sample Email Body:  ...   customer reference number: 123456   or   site reference number : 827893   ...   then that reference number '123456' or whatever it is, needs to be a variable/value I'll use elsewhere.  I don't want anything before the number, and I don't want anything after the number (eg. the next lines).  Tried this:  var str  = "reference number: 1234"; var RefStr = str.match(/number\:\s+(\d+)$/i)   But it returns number: 1234.  I think regex is not the best solution for me.          Edit, I couldn't respond to my own question, and comments don't let me format nicely.       Thanks, even though this worked in a regex checker, trying to use it in the context of the database, didn't work. I'm still working on that.  var str  = email.body_text; var refStr = str.match((/number\:\s+(\d+)$/i)[1]); externalReferenceNumberCreate(current.sys_id, 'Client reference number',refStr,'Ref number');   I know line 1 and 3 are correct, so perhaps I've messed the syntax for line 2? As   I understand that this is probably a product specific query, and perhaps more complicated than I thought.


Best text books for reference (dynamic-electromagnetic systems)?

For modeling,design and optimization purposes relative to electrodynamic systems, what text book(s) would be ideal?   I'm a mechanical engineer, and during my undergrad I used David J. Griffiths introduction to electrodynamics, which was very insightful and seem inclusive and interesting(I read it all beyond the course's requirements), and use it for reference. However, should I consider other texts?   I've came across Jackson's book, and honestly...I wasn't able to learn much beyond the first chapter.


When printing a variable that contains newlines, why is the last newline stripped?

Contents of file.txt (no weirdness, text file as defined by POSIX)  iguana gecko anole   Sample script:  #!/bin/sh  string="$(cat file.txt)"  printf '%s' "$string"   Sample output:  [coolguy@somemachine ~]$ ./script.sh iguana gecko anole[coolguy@somemachine ~]$   What happened to the last newline? Why are all are newlines except the last one preserved? It seems like we shouldn't have to use echo to add a newline if there should already be one there.


I have a separate question about the phrase "turn the gun on somebody" and "turn the knife on somebody".  It seems that, according to google, "turn the gun on somebody" is more common than "turn the knife on somebody".  Could it be that because a gun could be "theoretically" turned on, but a knife cannot be "turned on", that "turn the knife on somebody" is  idiomatically wrong?


Does casting the Glyph of Warding spell from a spell scroll take 1 action or 1 hour?

Does casting the glyph of warding spell from a spell scroll take 1 action or 1 hour?  Say a wizard has a scroll of glyph of warding (GOW). Would they be able to, at time of casting - assuming you can now cast it in one action, rather than one hour - store a spell in it, if they had remaining spell slots and a spell prepared that is able to be put in GOW?


Code works fine if the name of the string is given as parameter in function but on giving the string itself as parameter it generates error

#include<stdio.h> int main(void) {     char str1[10]="Versace";     int length(char *p);     char* reverse(char *p);      printf("Length of the array is %d\n",length("Versace"));       printf("Reversed string %s",reverse("Versace")); } int length(char*p) {      int i;      for(i=0;*(p+i)!='\0';i++);      return i; } char* reverse(char *p) {      int i,l;      char temp;      for(l=0;*(p+l)!='\0';l++);            for (i=0;i<(l/2);i++)      {            temp=*(p+i);            *(p+i)=*(p+l-1-i);            *(p+l-1-i)=temp;     }      return(p);  }  I have written a code to find the length of a string and to reverse a string.For this purpose I've made 2 functions reverse and length. But, why does this code show error? The code works fine if I use str1 as parameter in reverse function in the second printf.


Onclick javascript Button is not working

I have created onclick javascript button functionality but when I clicked on button I am getting "Problem with onclick javascript for this button or link was encountered: Invalid or Unexpected token". My code is  {!REQUIRESCRIPT("/soap/ajax/25.0/connection.js")}  {!REQUIRESCRIPT("/soap/ajax/25.0/apex.js")}   function post_to_url(path, method) {  method = method || 'post'; // Set method to post by default, if not specified.  var form = document.createElement('form');  form.setAttribute('method', method);  form.setAttribute('action', path);  form.setAttribute('target', '_blank');  document.body.appendChild(form);  form.submit();  }  var address1 =      '{!URLENCODE(Account.BillingStreet)}';  address1.replace(/\r?\n|\r/g, '');  var s1 = http://www.another_page.com &param=  {!URLENCODE(Account.IOG_Customer_ID__c)} %0D  {!URLENCODE(Account.Website)} %0D  {!URLENCODE(Account.Name)} %0D  {!URLENCODE(Account.Billing_Contact_Street__c)} %0D  {!URLENCODE(Account.Billing_Contact_City__c)} %0D  {!URLENCODE(Account.Billing_Contact_State__c)} %0D  {!URLENCODE(Account.Billing_Contact_Zip__c)} %0D  {!URLENCODE(Account.Phone)} ' ;  post_to_url(s1, 'POST');


How to prove second moment of a quadratic form where $Z$ has normal distribution with mean zero and covariance matrix identical?


I have a script that scans a directory and does some maintenance on the files in it. Another process creates the files in the directory (10 - 30 files per day).   The script is called via a daily cron job . What I need is to trigger the script on an event (each time a new file is created in the directory). I prefer this rather than increasing the frequency of the cron job.  How can I do that? is there a command or a program to install?  Thanks in advance for any help.


Still Getting Prompted to Install Windows 10 Despite Deletion of $WINDOWS.~BT Folder

Anyone know how to completely get rid of the Windows 10 upgrade prompt so I can install critical updates? I seemingly deleted all the necessary files and folders including the $WINDOWS.~BT folder but every time I uncheck the optional "Upgrade to Windows Home" update and attempt to install the important ones, I immediately get prompted to install the upgrade now or schedule it for later. Is there something that needs to be deleted or modified in registry to make this go away for good? What am I missing? I'm on Windows 8.1, by the way.


why does files (nautilus) open a new window although there's one already open?

When I click on "files" in the launcher it opens another window although the normal action is to maximize the window already open. It doesn't always do that. Is it a bug?


Out of curiosity I wanted to translate modus ponens into a logical statement and condense/solve it in some way, and I ended up getting True:  $p \land (p \rightarrow q) \rightarrow q$  $=p \land (\lnot p \lor q) \rightarrow q$  $=\lnot(p \land (\lnot p \lor q)) \lor q$  $=\lnot((p \land \lnot p) \lor (p \land q)) \lor q$  $=\lnot(\text{False} \lor (p \land q)) \lor q$  $=\lnot(p \land q) \lor q$  $=\lnot p \lor \lnot q \lor q$  $=\lnot p \lor \text{True}$  $=\text{True}$  I'm not really sure what to make of this. Is modus ponens a tautology? How is it useful in practice if it's not really saying anything?


I can't figure out why I'm getting a NPE where I've marked it below.  I've mocked the call to the private method getLastAcceptedVersion and the public call to queryDao.getStatus.  To add, I'm only learning about Java 8 lamdas at the moment, I guess this has something to do with where I'm going wrong.  public class myClass {  //members  public Optional<Object> getLastAccepted(Long id, Integer version) {     return Optional.ofNullable(getLastAcceptedVersion(id, version))             .map(v -> queryDao.getStatus(id, v));  ------ NULLPOINTEREXCEPTION    }  }   And my test case:  private MyClass myClass = PowerMockito.spy(new MyClass()); private QueryDao queryDao = mock(QueryDao.class); private Object obj = mock(Object.class);  @Test public void testGetLastAccepted() throws Exception{     PowerMockito.doReturn(1).when(myClass, "getLastAcceptedVersion" , anyLong(), anyInt());     when(queryDao.getRegulatoryReportingStatusbyTradeId(anyLong(), anyInt())).thenReturn(obj);     assertNotNull(myClass.getLastAccepted(anyLong(), anyInt())); }   Stacktrace:  java.lang.NullPointerException     at dao.MyClass.lambda$getLastAccepted$0(myClass .java:57)     at java.util.Optional.map(Optional.java:215)     at dao.MyClass.getLastAccepted(myClass .java:57)


I would like to use something like this in my LaTeX document: P29_Ampl_1. After this I have got an error because I use _. I can solve it by insertign $ between the P29_Ampl_1 -> $P29_Ampl_1$. It cause that text doesn't look good. How can I solve it. I would like to use P29_Ampl_1 as a normal plain text? Thanks


Is there a asymptotic formula for product of primes?

$$P(x)=\prod_{p\leq x}p$$  As you can see P(x) represents the product of primes which are not greater than x. Is there a asymptotic formula for this?


Transferring a sleeping infant from my arms to his bed

Sometimes my infant falls asleep in my arms and I need to transfer him to a more permanent position. When I try to lay him down in his crib, he wakes up and cries. Is there a good way to make the transfer without waking the little one?


I need to script toi set MAXDOP.  ----I have this script----  select cpu_count, case when cpu_count/hyperthread_ratio >8 then 8 else cpu_count/hyperthread_ratio end as optimal_maxdop_setting from sys.dm_os_sys_info   I need script to setup maxdop by using optimal_maxdop_setting output above  I do not want to take output above and plug on the query below,   sp_configure 'show advanced options', 1; GO RECONFIGURE WITH OVERRIDE; GO sp_configure 'max degree of parallelism', <OutPut of the above script>; GO RECONFIGURE WITH OVERRIDE;


Where to get the release version of lollipop for Nexus 7

I'm looking for the Lollipop OS that I can sideload to my Nexus 7 2012 and supposedly they released Lollipop for Nexus 7 2012 today (Nov 3, 2014).  Is there a site I can go to download the OTA file?  The official version is not  yet.


How to enable autologin on Ubuntu Server 14.10?

I'm looking for how to set auto-login on Ubuntu Server 14.10 from console.  All information I find out there is for 14.04, and configuration files seem to have changed a lot.


How to disable boot on MacBook Pro when lid is opened?

My new MacBook Pro powers on automatically when the laptop lid is opened.  Can I disable it ? If yes, then how to do it ?


I need to construct a track for a racing game. Can anyone suggest some good tutorials for creating a curved road.


What are such illustrations called? How are they made?

What are such illustrations called? How can they be made?


"Unmet dependencies" When trying to install KDE Plasma 5.3 on Ubuntu 15.04

I'm trying to install the latest KDE Plasma here but I'm getting  You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: kde-telepathy-minimal:   Depends: kde-config-telepathy-accounts (>= 0.9.0) but it is not installed E: Unmet dependencies. Try using -f.   and when I sudo apt-get -f install as specified and I say Y to getting 122KB of archives I get:  Preparing to unpack .../kde-config-telepathy-accounts_15.04.0-0ubuntu1~ubuntu15.04~ppa1_amd64.deb ... Unpacking kde-config-telepathy-accounts (15.04.0-0ubuntu1~ubuntu15.04~ppa1) ... dpkg: error processing archive /var/cache/apt/archives/kde-config-telepathy-accounts_15.04.0-0ubuntu1~ubuntu15.04~ppa1_amd64.deb (--unpack):  trying to overwrite '/usr/share/accounts/services/facebook-im.service', which is also in package account-plugin-facebook 0.12+15.04.20150415.1-0ubuntu1 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/kde-config-telepathy-accounts_15.04.0-0ubuntu1~ubuntu15.04~ppa1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   And whenever I try to install any other package now I get the same thing. What should I do?


Does "That" have to be next to the noun it modifies?

Inside a prep book the following sentence is WRONG on the grounds that "that" modifies the closest noun "home".     John F. Kennedy, one of the most social U.S. presidents, held many parties in his family home that featured elaborate meals of local fish and lobster, famous guest and late nights.    However, in the same book, the following sentence is CORRECT with the reasoning that "that" is not restrictive and clearly modifies parties.     John held parties for his kids that featured clowns, numerous exotic animals, and lots of food.   What am I missing here?


Why do the words hundred & thousand require "a" before them, where ten & ten thousand do not?

Not much to say here that was not said in the title... I'm wondering about adding "a" before a quantifier, and what are the rules for it. Is somehow ten considered to be plural, where hundred / thousand considered to be a group of 100 / 1000, and as a group it's singular?


Im trying to run my file and I keep getting the error:  ERROR - Error: Found biblatex control file version 3.4, expected version 3.3. This means that your biber (2.7) and biblatex (3.9) versions are incompatible. See compat matrix in biblatex or biber PDF documentation.  I already tried downloading Biber from here  I then put the biber file next to my tex document and it still gives the same error message.  I searched for Biber in the package manager and could not find it. How can I update my Biber to 2.9?  After trying to select all to update, the process won't work.


Package 'octave-octcdf' has no installation candidate (Ubuntu 18 LTS)

I need to install octave-octcdf package to work with Octave. I tried, sudo apt-get install -y octave-octcdf. But this receives an error as following; user@PowerEdge-R540:~/user/tools$ sudo apt-get install -y octave-octcdf Reading package lists... Done Building dependency tree        Reading state information... Done Package octave-octcdf is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'octave-octcdf' has no installation candidate  Can anyone help to properly install octave-octcdf package?


Overwriting GetHashCode (Enum plus Integer comparison)

I want to overwrite a GetHashCode method with following code:  public override int GetHashCode() {     var magicNumber1 = 5;     var magicNumber2 = 3;      return intType * magicNumber1 +            (int)enumType * magicNumber2; }   Is this a proper way of returning GetHashCode when one value is Integer and second an Enum?


prove that the sequence $x_{n+1} = \frac3{4-x_n}$ is converging and find its limit

prove that this sequence is converging and find its limit  $x_1 = \frac32$ $x_{n+1} = \frac3{4-x_n}$  i believe that the solution entails proving the sequence is monotone descending and its infimum is 1, but i don't know to to show that. i also tried messing with triangle inequality, but with no success so far any help into solving this will be very appreciated


Recently  as to the difference between:   I can't stop laughing.  I can't help laughing.    and it appears there is a difference in them. Is it proper to say that "I can't but laugh" can be used in place of both the examples?


Ubuntu 18.04 installed on flash drive only boots on the computer it was made on

I installed Ubuntu 18.04 (NOT THE INSTALLATION MEDIA) on a USB flash drive and it boots fine on the laptop that I made it on, but it won’t boot on any other computers.   I’m guessing maybe GRUB was installed on the laptop and not to the drive but I’m not sure.   I have semi-important stuff on it so trying to see first if there is any alternative to just erasing and retrying. I did the steps according to a tutorial and it boots fine on the computer it was made on.   If this is important or not, there is an option on my boot options that appeared after I downloaded Ubuntu on the flash drive that is still there whether the USB is plugged in or not. It's called ubuntu. It won't boot if the flash drive isn't plugged in but it's there.


Flag dialogue appears under the answer textarea on mobile

When opening the flag dialogue on the mobile version of the site and choosing the "it should be closed for another reason" option, the flag dialogue appears underneath the answer textarea making some of the flag options inaccessible. This happens to me using the native Android browser on Android 4.1.2. I don't have any other mobile devices to test with however.


Error on apt-get upgrade and install runit package

I'm trying to install , which has a dependency on the runit package.  But the runit package doesn't upgrade properly.   When I run apt-get upgrade to upgrade , the following error occurs:  Setting up runit (2.1.1-6.2ubuntu3) ... start: Unknown job: runsvdir dpkg: error processing package runit (--install):  subprocess installed post-installation script returned error exit status 1   I checked the Ubuntu bug database and I found .  Per the solution there I should fix the location of runsvdir.conf changing it from the old event.d that upstart used to use to /etc/init that upstart now uses. But in (my) Ubuntu 14.04 there is no event.d in the first place let alone a runsvdir.conf there.   I've tried installing or reconfiguring this package, rather than upgrading, but the same error occurred. It's notable that during the git package installation, this error was occurred for the first time.   root@local#dpkg -C The following packages are only half configured, probably due to problems configuring them the first time.  The configuration should be retried using dpkg --configure  or the configure menu option in dselect:  runit                system-wide service supervision  root@local#apt-get purge runit The following packages will be REMOVED:   runit* 1 not fully installed or removed. After this operation, 419 kB disk space will be freed. Do you want to continue? [Y/n] y Removing runit (2.1.1-6.2ubuntu3) ... stop: Unknown job: runsvdir Removing SV inittab entry... Purging configuration files for runit (2.1.1-6.2ubuntu3) ... Processing triggers for man-db (2.6.7.1-1ubuntu1) ... root@local# apt-get install runit The following extra packages will be installed:   fgetty Suggested packages:   socklog-run The following NEW packages will be installed:   fgetty runit 0 upgraded, 2 newly installed, 0 to remove and 16 not upgraded. Need to get 0 B/134 kB of archives. After this operation, 550 kB of additional disk space will be used. Do you want to continue? [Y/n] y Setting up fgetty (0.6-5build1) ... Setting up runit (2.1.1-6.2ubuntu3) ... start: Unknown job: runsvdir dpkg: error processing package runit (--configure):  subprocess installed post-installation script returned error exit status 1 Processing triggers for ureadahead (0.100.0-16) ... Errors were encountered while processing:  runit E: Sub-process /usr/bin/dpkg returned an error code (1)


Consider $n \ (>1)$ lotus leaves placed around a circle. A frog jumps from one leaf to another in the following manner. It starts from some selected leaf. From there, it skips one leaf in clockwise direction and jumps to the next one. Then it skips exactly $2$ leaves in clockwise direction and jumps to the next one. Then the frog skips $3$ in clockwise direction and so on. Suppose it turns out that if frog continues this way all leaves are visited by the frog. Show that $n$ cannot be odd.  My attempt,  Let frog be initially placed at leaf named $0$, and name the remaining leaves $1$, $2$ , $3$... $n - 1$  in clockwise direction. After $k$ moves the frog will be on label number $0+(1+1)+(2+1)+\ ...\ + (k+1) = k (k+3)/2$.  Thus the question reduces to proving that there does not exist any $i$ such that $n = 2i+1$ and the congruence stated below is satisfied for all $t$ for some value of $k$:  $k(k+3)/2 \equiv t \,\pmod n, \;\; 0\leq t \lt n$


Firefox suspicious subprocess (turned out to be legitimate FF behavior)

I've discovered this yesterday, as it was generating system load on otherwise idle Ubuntu 14.04 Desktop machine.  Today, I've confirmed such behavior also on another Ubuntu instance (17.10 in Virtualbox VM)  The sub-process in command line looks like below ( I've put this as picture below intentionally to prevent askubuntu.com from changing/escaping the content )   For me it looks like exploit/malware. Or at least there is something to hide.  this happens even for url


How can I send an email by Java application using GMail, Yahoo, or Hotmail?

Is it possible to send an email from my Java application using a GMail account?  I have configured my company mail server with Java app to send email, but that's not going to cut it when I distribute the application. Answers with any of using Hotmail, Yahoo or GMail are acceptable.


In formal logic, how is it possible for an argument with a contradictory conclusion to be valid?

I've recently been trying to introduce myself to formal logic, and I've hit a stumbling point:  In the text I'm reading, a valid argument is defined as "an argument in which it is impossible for the premises to be true and at the same time the conclusion false."  The text then later prompts me to declare whether it's possible for an argument to be valid with a contradiction for a conclusion. The answer key then claims that yes, it is in fact possible, but offers no further explanation. I'm also supposed to create an example.  I just can't wrap my head around this one.  Here's the example I've worked up, is this a valid argument?   If grass is green then it is raining.  If water is wet then it is not raining.  Therefore: It is raining and not raining.   My head hurts.


I'm looking for a way to illustrate Trapezoidal rule. I've seen this code to illustrate Riemann sums () but I don't see how to adapt it.  \documentclass[border=5mm]{standalone}  \usepackage{pgfplots}  \pgfplotsset{compat=1.9}  \begin{document} \begin{tikzpicture} \begin{axis}[         xtick={0,1,3,5,7,9,11,13,15,17},ytick={0,...,1.5},         xmax=18,ymax=1.2,ymin=0,xmin=0,         enlargelimits=true,         axis lines=middle,         clip=false,         domain=0:17,         axis on top         ]  \addplot [draw=red, fill=red!10, ybar interval, samples=9, domain=1:17]         {x^-1}\closedcycle; \addplot [draw=green, fill=green!10, ybar interval, samples=9, domain=17:1]         {x^-1}\closedcycle;  \addplot[smooth, thick,domain=1:17,samples=40]{x^-1};  \end{axis} \end{tikzpicture} \end{document}   Do you have any suggestion ?


John von Neumann- Exercise about a Fly and two Trains

A fly is flying between two trains, each travelling towards each other on the same track at 30 km/h. The fly reaches one engine, reverses itself immediately, and flies back to the other engine, repeating the process each time. The fly is flying at 60 km/h.  At the start the trains were separate for 180 km.  What is the distance that the fly travels to the moment when both of the trains hit each other?


How can one extract the exit code of a command?

How can one extract the exit code of a command and use it in a condition? For example look at the following script:  i=4 if [[ $i -eq 4 && $(command) -eq 0 ]]     then             echo "OK"     else             echo "KO"     fi   If both the conditions are satisfied the script should do something. In the second condition, I need the check on the exit status (and not the command output as is the case in the script given above), to know if the command was successful or not.


How do I calculate the integral $\int^{\infty}_{0}\frac{\cos(ax)-\cos(bx)}{x}dx$ without residues?

Consider the integral:  $$\int^{\infty}_{0}\frac{\cos(ax)-\cos(bx)}{x}\,dx$$  I found this problem in a subject test problem set and I'm unsure how to solve it without using the residue theorem.   I've simplified it to $$\int^{\infty}_{0}-2\frac{\sin\left(\frac{(a+b)x}{2}\right)\sin\left(\frac{(a-b)x}{2}\right)}{x}\,dx$$ but still unsure where to go from here.   There's a hint in the problem that says: " Rewrite numerator as integral over sine, estimate, and exchange order of integration." but I don't see a helpful bound to use. Bounding using the fact that $|\sin|\le 1$ hasn't gotten me anywhere helpful.   Any ideas?


$\langle x_n\rangle $ be a sequence such that $x_{(n+2)}=\frac{(x_{n+1}+ x_{n})}{2} $for all $n \in \mathbb{N}$, prove that $x_n$ is convergent

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


How can I disable the macbook keyboard with Shift key held down on a password protected macbook?

This question is a bit strange, but here's the scenario:   macbook air laptop with El Capitan Mac OS X currently logged off any account liquid damage on keyboard has caused shift key to be permanently pressed password to admin account has some lowercase letters and numbers restarting enters "safe mode"    The machine has no sensitive data, so I'm happy for a solution even if it wipes out the admin account. I'm also happy to buy a USB keyboard/plug into an external screen if that will help.  How can I disable this pesky shift key? Or disable the built in keyboard all together?


Bash - Find - move files bigger than certain size

How can I move all files bigger than lets say 10MB into a different folder?  -rw-r--r-- 1 nath nath 4,3M Apr 21  2018 "file1.mp3" -rw-r--r-- 1 nath nath 1,7M Jun 10  2017 'file2.mp3' -rw-r--r-- 1 nath nath  76M Okt 12 05:33  file3.mp3 -rw-r--r-- 1 nath nath 3,7M Mär  1  2016 'file4.mp3'   so in this case it would only move file3


How to Split a vector file into several different files using a Grid in QGIS?

I have a shapefile containing contour for a large area, and I want to split it into different shapefiles each covering a 1KM X 1KM area. I have already created the required Grid shapefile in QGIS.  How do I now split the contours using the created Grid?  I am searching for something equivalent to the  in ArcGIS.


Get complete stats of process started/terminated during login of user account

When I login, I notice many process quickly start and terminate in task manager. But it happens very fast and I cannot save details about them (like process name, command line, CPU usage,..)  How can I collect stats about them so I can view them later


See UVs for beveled curve in UV/Image Editor

So I'm making character hair and I have plane beveled on to a curve like this    Now I'm able to see the texture I apply on it, but I want to edit the UVs for it. I usually select the faces in edit mode in order to see them in the UV editor, but I'll have to convert the curve to a mesh for that.  Is there a way to do it without converting it into a mesh? I'll be duplicating this curve a lot and editing each one.  I'm using Cycles, if that makes a difference


Average polygon values for each ZIP code

I have a vector polygon feature class that I created from a raster (I did convert raster to polygon). I would like to output a table that averages the polygon values over the entire area of each zip code. For example:  ZIP     Amount 90210     16 90211     14  etc....  Each polygon is about 4km x 4km. I am using ArcGIS for Desktop 10.4.


I have suggested my mother to use Ubuntu (16.04) because she is likely to get viruses while using Windows. She agreed but gave one condition: "I must be able to watch TV-players online", and these are (both using Silverlight):   www.player.pl www.vod.tvp.pl   How to make it run?


Prove that $\gcd(3^n-2,2^n-3)=1$ if and only if $\gcd(5,2^n-3)=1$ where $n$ is a natural number.   I didn't see an easy way to prove this using the Euclidean algorithm, but it seems true that both gcd's are not $1$ only if $n = 3+4k$. Is there an easy way to prove the statement?


User account password. Stuck in guest forever?

So, the thing is I created a new admin account, deleted the old one, but pressed "lock" before setting a password for it. Now I try to unlock it and it asks me for a password I've never set.  I did this while in a guest session.  Ideas?


Alka Seltzer Model: formulas/models requested

This evening I became fascinated with how my Alka Seltzer tablet disintegrates over time within a small portion of Diet Lipton Citrus Ice Tea. I used a nearly frozen cup; tall, as one might request in a middle-class restaurant.  It is interesting to notice that the Alka Seltzer tablet attempts to float to the top of the glass; but it just cant quite make it, e.g., it keeps bobbing up and down and finally it becomes complete residue.  What are the formulas for this, completely? What might the mathematical model look like from start to finish? My first identifications include, but certainly not limited to: measuring the cup, the milligrams deposited into the cup and of course a the makings of a typical tablet of Alka Seltzer excluding room temperature?


Why is Outlook 2010 Changing my Embedded Spreadsheet to a GIF?

Years ago I figured out how to embed a spreadsheet in an Outlook email to automate a task I do regularly.  Whenever I want to send a new quote request I open an old email, tell Outlook I want to resend it, fill in the new values in my embedded spreadsheet and then send it off.  This method worked well for years.  After switching to a new computer however, I have found that when I open the latest emails I have sent, I cannot edit the embedded spreadsheet because Outlook interprets it now as a GIF.  Saved emails that I sent with the old computer however, still work fine - I can still open, edit and resend and Outlook interprets the embedded spreadsheet correctly.  I would like to figure out how to setup Outlook in the new PC correctly so that the embedded spreadsheet is interpreted correctly when the email is reopened. Some sort of security setting, maybe?  Any help anyone could provide would be appreciated.  Edit: I developed the spreadsheet originally in Excel. Then I went into Outlook, created a new email, did Insert->Object->Excel Spreadsheet. At that point I had a blank spreadsheet in my email. Then I copied and pasted the spreadsheet from Excel into the blank spreadsheet in Outlook and it worked perfectly (until this recent problem)


How can I evaluate $ \sum_{n=0}^{\infty}{\frac{x^{kn}}{(kn)!}} $ where $k$ is a natural number?

I suddenly interested in the differential equation $$ f^{(k)}(x)=f(x) $$ So I tried to calculate for some $n$. When $ k=1 $, we know the solution $$ f(x)=A_0e^x=\sum_{n=0}^{\infty}{\frac{A_0x^n}{n!}} $$ Also, for $ k=2 $, $$ f(x)=Ae^x-Be^{-x}=\sum_{n=0}^{\infty}{(\frac{A_0x^{2n}}{(2n)!}+\frac{A_1x^{2n+1}}{(2n+1)!})} $$ where $ A_0=A+B $ and $ A_1=A-B $. Inductively, I could guess that the solution of the differential equation would be in the form $$ f(x)=\sum_{n=0}^{\infty}{\sum_{i=0}^{k-1}{\frac{A_ix^{kn+i}}{(kn+i)!}}} $$ But I could neither prove that it is the only solution nor get the explicit formula. How should I evaluate $ \sum_{n=0}^{\infty}{\frac{x^{kn}}{(kn)!}} $, cause if we know the answer for it, we can evaluate the original expression by differentiating it. Thanks to WolframAlpha, I know the answer for $ k=3 $, $$ \sum_{n=0}^{\infty}{\frac{x^{3n}}{(3n)!}}=\frac{1}{3}(2e^{-\frac {x}{2}}\cos{(\frac {\sqrt{3}}{2}x)}+e^{x}) $$ I think the answer might related to $ \sin $ and $ \cos $ of $ \frac {2\pi}{k} $.


Similar saying to 'lost his/her train of thought'

Imagine someone reeling of a sentence, becoming distracted, and not being able to remember where they were in the previous sentence for a few seconds. I already know, 'lost their train of thought' but there is another similar saying, which I cannot remember.   It also being with "I lost my...." Its kind of an alternative.


Let $A \subseteq \mathbb{R}$ and $|A|=\omega$, prove $|\mathbb{R}\setminus A| = 2^\omega$. Hint: $\mathbb{R}\sim \{0,1\}^\mathbb{N}$  I'm somewhat stuck trying to prove this, could someone give some hints (no full answers please) I know $|A| = \omega < |\mathcal{P}(A)|=2^{\omega}$ (Cantor). I guess I should look for some bijective function between $\mathbb{R}\setminus A$ and $\mathbb{R}$ or $\mathcal{P}(A)$. I also don't see how I can use the hint... Should I look for a bijection between $\mathbb{R}\setminus A$ and $\{0,1\}^\mathbb{N}$? I was given another hint to use a diagonalization argument, but isn't that just usefull to prove strict equalities like $|A| < |\mathcal{P}(A)|$?


I like having a clock showing the current time and date in the menu bar, but this morning when I logged in it's not there anymore. Everything under System Settings > Time & Date > Clock is greyed out. Ubuntu 13.10 64-bit.


Why is it disadvantageous in graduate admissions to have a higher degree?

indicates that holders of a master’s degree are held to higher standards when it comes to graduate admissions. The stated requirements for some graduate programs () also outright exclude applicants with doctoral degrees. These seem to be saying that holding a higher degree prior to application is a disadvantage (a fatal one in the case of a PhD). This also applies to private universities: Stanford  (at least in computer science); .  I don't understand why:   If there are two applicants, Alice and Bob, who have achieved largely similar things, it seems logical that both should have a roughly equal chance of being admitted. However, based on JeffE's answer, if Alice has a Masters degree while Bob does not, it's Bob that gets admitted instead of Alice. JeffE's answer even indicates that if Alice has achieved slightly more than Bob, it's still Bob that gets admitted.  If graduate admissions is looking for students that are capable of succeeding in its program, then Alice should be more likely to succeed than Bob since she's already had some experience of graduate study. This should be even more the case if Alice already has a PhD – if she can do it once, she should be able to do it again.    JeffE's answer indicates that since Alice has had more opportunities than Bob, she should also be held to higher standard. However it should also be true that Alice has already achieved what Bob has yet to and in fact might not be able to achieve. Further, JeffE's answer seems to be saying that Alice should do the academic equivalent of financial engineering and pass her graduate-level courses & thesis without getting a master’s degree even if she qualifies for it, which sounds silly.  As for applicants with PhD degrees, my first guess would be that this is because , and the university is acting in the applicant's best interests. However if this is the case, then this is effectively telling the applicant "I know what you want better than you do", which also sounds silly. UC Berkeley's requirements also seem to be saying that if someone with a CV worthy of a tenured position were to apply for a PhD student position, the university will say "no" even though it's clearly better in their best interests (in terms of research output) to say "yes".   Presumably I'm misunderstanding something because if this behavior were irrational, it would already have been changed. What am I missing?  EDIT: I wonder if things are different in programs where the student is involved in research directly without spending time on coursework?


I want to get the row with the maximum value on a column. I my case I want to ptint only X that has 31. This is my code and also the output.  create temp view Private(marca) as     Select a.marca, count(*) as totaleNoleggi, count(distinct a.targa) as totaleAuto, sum(extract(hour from (n.fine-n.inizio))) as totOre     from auto a join noleggio n on a.targa=n.targa     group by a.marca;  select marca, totOre from Private  group by marca,totore order by totore desc limit 1;      marca   totalenoleggi   totaleauto  totore 1   Audi    1                  1          7 2   BMW     5                  4          7 3   VW      2                  1          1 4   X       2                  1          31      marca   totore 1   X         31   But it's a wrong approach, for example without the X , Audi or BMW has 7 but my select will print just the first Audi. So it's another method to get the maximum value


I know that the IOWait metric is the amount of time that a cpu is waiting for IO.  As I understand it IOWait always refers to disc io. But why is that?  Why doesn't network IO, presumably involving bus communication on the local system and IO for the cpu affect IOWait?  Also, can a process wanting to read from a disc cause IOWait?  Or is IO wait always a symptom of a process attempting to write disc?


These users are shown to have deduction in reputation but there are some mismatches

In this month's Users tab, at the last page, the following users are show to have deduction of reputation.  Some have offered bounties and have got downvotes, but certains users' profile doesn't show any activity of bounty or massive downvotes to their posts. I then thought, may be they would have downvoted many posts and have got -1 rep for each downvote. But this  has voted only 11 times and all are upvotes.  They have not even offered bounty or have an active bounty. Their reputation graph shows they have a rep. of 183 which matches with the up/downvotes, accepted posts and association bonus in their reputation tab.   But the block on the left shows a rep. of 83, whereas the graph shows 183. These are not matching. Similar action was found with this . They've voted only 26 times this month and not offered or have an active bounty.


whatever / what ever happened to the Unknown Comic?

Should "whatever" be one or two words in the sentence below?  Whatever / What ever happened to the Unknown Comic?  If one word or two words, why?  Thank you.


Can the volts and\or amps in a repalcement DC power cord vary without problems?

In general I've always wondered about this but now I have lost the DC power cord to my portable speakers.  The manufacture does not have a replacement or at least one I can find.  The specs are 12.5 V --- 2.5a.  Questions:  1) If I buy a generic replacement which of the voltage and amps need to match and\or if I can't get an exact match how can I vary the volts\amps ... which can I go higher or lower on.  So for example would 12 volts and 5 amps work, be harmful, or not work\not work well?  2) Do voltage\amps have some standardization on the input adapter into the device?  That is, will I also need to ensure a generic replacement also matches the portable speakers or should it just match if the voltage\amps match?  GB  p.s. I think this is the stack exchange I should be  posting this to if not please advise.


Show that if $x,y,z$ are positive integers, then $(xy + 1)(yz + 1)(zx + 1)$ is a perfect square iff $xy +1, yz +1, zx+1$ are all perfect squares.

Show that if $x,y,z$ are positive integers, then $(xy + 1)(yz + 1)(zx + 1)$ is a perfect square if and only if $xy +1, yz +1, zx+1$ are all perfect squares. Find infinitely many triples (a,b,c) of positive integers such that a, b, c are in arithmetic progression and such that $ab + 1, bc +1, ca+1$ are perfect squares.   First of all I tried to prove that $xy +1, yz +1, zx+1$ were relatively prime. I didn't succeed.  $$\gcd(xy+1, yz+1) = \gcd(y(x-z)+1,yz+1)$$  For the second problem, I have discovered the solution $(2,4,12)$ which isn't in arithmetic progression.  I have tried googling it but didn't find an easy and satisfactory solution.  Any help would be appreciated.


In my bibliography, I want to include report numbers of technical reports in teletype font. These report numbers typically consist of several blocks of letters and numbers connected by hyphens, like INSTITUTE-YEAR-MM-NUMBER. It is fine for the report numbers to have a line break after any of the hyphens.  So far, I have been using \nolinkurl without much thought, and it provides good results. Now, I need to include report numbers that have one block separated from the rest by a space. This space is suppressed by \nolinkurl.  to the same issue, the accepted answer is to use \texttt instead. However, with \texttt, the automatic line breaks don't work.  Minimal example:  \documentclass[12pt]{article} \PassOptionsToPackage{hyphens}{url} \usepackage[breaklinks]{hyperref} \usepackage{showframe} \newcommand{\thereport}{REPORT-19-12-001 SPECIAL} \begin{document} This is a long line and at the end of the line there should be \texttt{\thereport} referenced.  This is a long line and at the end of the line there should be \nolinkurl{\thereport} referenced. \end{document}     How can I have report numbers with hyphens and spaces in teletype font with automatic line breaks?


If spice is necessary for space travel, how did humans get to Arrakis in the first place?

Self explanatory:   In Dune, a central point is that the guild needs the spice melange for space travel.   So how did humans get to Arrakis/Dune in the first place then?


Probability of a picking a given number from (0,1) = 0. Is this paradoxical?

If I pick an arbitrary interval like (0,1), the probability of picking any given number (like 0.5) = $\lim_{x \to \infty}\frac{1}{x}=0$  I at first thought that this was a paradox, and questioning whether '$0$' really meant impossible. I realised that it is impossible to even pick a number between (0,1). A computer cannot do it as it would require every number in that range to chose from (infinite).  Is this really a paradox? Either interpretation of 0 being impossible or infinitesimal leads to it not being one.


Same Ubuntu installation with additional software on multiple machines?

I have 20 identical small form factor pc that are going to be used as digital signage machines. we are using ubuntu on them. So my question is, is there some way that i can install on one machine everything that is needed (ubuntu, digital signage software teamviewer chrome etc) then do a image and install it on another pc?  Something like norton ghost.  All machines are identical regarding hardware. It would save a lot of time for me.  Thanks in advance.


Exclude cell from sum in Google Spreadsheet

I am using my Google Spreadsheet to keep tabs of my incoming and outgoing money. I've made a row with ~19 cells in it, in those 19 cells I have the monthly what comes in and what goes out. At the end I add this all up and then subtract a different cell that adds up random costs.  But my problem here is that the calculation =SUM(C4:C17) counts everything, even the money that has not come in or that was spend. But I don't want to fiddle around with that calculation all the time.  Is it possible to make every cell in row C red and when it's red it does not count (so it will be ignored) but if I make the cell green it gets added in the grand total?


Prove $n!>2^n$ for $n\geq4$ using induction.

I just want to know if my proof to this question is correct. First, I proved it was true for $n = 4$. $$4!>2^4$$ $$24>16$$ Then, I assumed that it was true for $n=k$. $$k!>2^k$$ Afterwards, I tried to prove it for $n=k+1$. $$(k+1)!>2^{k+1}$$ $$(k+1)k!>(2)(2^k)$$ Since $k!>2^k$, am I allowed to simply do $$(k+1)(2^k)>(2)(2^k)$$ $$(k+1)>2$$ and this is true for all $k\geq3$. Would the last two steps be illegal because I only assumed that $k!>2^k$ is true?


How to convert SSR to Sigma Sqared of the Error Term-Matrix OLS

I'm trying to determine the variance of the error term without the residuals or the original X or Y vectors. I do have SSR. Is sigma squared of the error term just SSR/n-1? For some reason I can't find this among tutorials. Thanks


Why are Kylo Ren and Rey evenly matched in Force pulling in TLJ?

In The Force Awakens, Kylo tries to take Luke's lightsaber from the ground but Rey is able to pull it away from him with the Force.  In The Last Jedi,       Rey tries to use the Force to steal the lightsaber from Kylo but he fights her for it and they break it.     By all logic, Kylo should've been stronger in The Force Awakens than Rey and so should've been able to get the lightsaber from her then.  But then in The Last Jedi, where Rey has trained and should be stronger, they seem to be equally matched.  Is there a reason for this?


How do you isolate variables in a trig function?

I wanted to ask how you can solve an equation such as:  $$ \sin x = x + 1 $$  How would you solve for x?


How to remove Nvidia HDMI audio output in PulseAudio?

At each reboot, PulseAudio sets a sink (in my case, "HDMI Audio Output") as the default.  So, at each reboot, I don't hear any sound, and need to reconfigure the default sink each time to "Analog Output".  How do I remove/disable a specific sink such as HDMI, or set a default sink that overrides the existing sink?


I called someone on the other side of the world. Where I was, it was 9:00pm.  Where they were, it was 11:00am the next day.   This got me thinking about Star Trek. Frequently in Voyager, Tom Paris is late to his "Oh nine hundred" shift on the bridge.   In the Star Trek universe, How does the Federation determine how to set their clocks?  Do they set the ship's clocks by San Fransisco time regardless of the local time in that part of the galaxy?  Do they adjust the time to that of the local capital planet of the solar system they're in?  I'm hoping someone with an official writers guide can shed some light into this.


I have recently started using the geometry package to format the margins of my documents. Although, I've noticed that the width of the header/ footer remains the same. How can I correct this?    Here's a MWE:  \documentclass{article}  \usepackage{geometry} \usepackage{fancyhdr}     \pagestyle{fancy} \usepackage{blindtext}  \lhead{} \chead{Header} \rhead{} \lfoot{} \cfoot{Footer} \rfoot{\thepage} \renewcommand{\headrulewidth}{1pt} \renewcommand{\footrulewidth}{1pt}  \begin{document}  \newgeometry{margin=0.5in, bottom=1in, top=1in} \Blinddocument  \end{document}


CronTab is not working in Ubuntu for image compression job : "/bin/bash^M: bad interpreter: No such file or directory"

I am trying to set up a cronjob to execute the following script. The function of the script is to find and compress png and jpg files in a WordPress directory.      #!/bin/bash echo `date` >> /root/optipng.log find /home/ghost/wp-content/uploads -mtime -2 -iname '*.png' -print0 | \  xargs -0 optipng -o7 -log /root/optipng.log -preserve echo `date` >> /root/jpegoptim.log find /home/ghost/wp-content/uploads  -mtime -2 -iname '*.jpg' -print0 | \  xargs -0 jpegoptim --max=90 --preserve --totals >> /root/jpegoptim.log   So I created a file "optimize.sh" in /usr/local directory  and ran "crontab -e" and added the following command:   00 10 * * *  root  /usr/local/optimize.sh   This is supposed to run the image optimization every day at 10:00 hours but it is not working in this case, I even tried to create a log file by modifying the above command as:  00 10 * * *  root  /usr/local/optimize.sh &>/var/log/cron.log   The log file is empty and cron job is not running. I did try the other methods mentioned in Stack Overflow, none of them seemed to work. I am also listing some other tutorials which I turned for help:      Can someone please point out where the mistake is? :)  PS- I gave 700 permission to the file /usr/local/optimize.sh and I tried running the file directly via ssh and it returns the following error:  /bin/bash^M: bad interpreter: No such file or directory   Here is a picture of the exact way the commands are written using nano editor:   This question is different from others in Stack Overflow like  in the sense that the error was not in the way cron file was written, but there were some hidden spaces in the file optimize.sh.


So, to start this off. It's been almost 3 years since my family and I have had our gamecube hooked up. We could never find our power cord for it, so of course, we assumed we lost it. We kept trying to find another one. Never could, until tonight. I found our power cord in a tin bucket in our basement, and bought one of those video/audio cords are Jay's CD's and Hobbys. I thought it'd be a nice suprise for my mother on Christmas since her and I are huge Zelda fans and have not been able to play our games in awhile.  I finally have everything hooked up, and thankfully it turns on, but the color is in black and white and there's no sound. As you see in the picture, if it has hopefully shown up, that I only have the colors yellow and red hooked up, because I only have 2 middle pieces that connect them. So I'm thinking that it's only lacking color and audio because I don't have the whites hooked up, but I wanted to ask and make sure. Any comments revolving around this issue, would be greatly appreciated. Thank you.


Crookes' Maltese Cross Tube and the anode

I understand that Sir William Crookes'  shows that cathode rays travel in a straight path but I am unsure of why the cathode rays  aren't affected by the anode as there is an electric field and therefore bend.     Sorry if this is a silly question but I am relatively new to physic.


I'd like to create lights and shadows in a 2D environment, like in the image below:    I did several searches but got no results. Do you have any hint?


Is there any practical or mathematical difference between player rolling vs. DM rolling?

There are two ways that spells are rolled for in D&D 5e, depending on the spell: attack rolls rolled by the players and saving throws rolled by the DM.  But as far as I can see, saving throws could be made as attack rolls instead. I know D&D 4e did it this way, with players making attacks against AC/Fortitude/Reflex/Will Defenses instead of the DM making Fort/Ref/Will saving throws and players making attack rolls against AC.  I don't really see why the designers of D&D 5e would choose to have two different ways to roll something that, as far as I can tell, could be simplified into one mechanic (and ), so I wondered if I'm missing something important that distinguishes the two methods.  I guess it boils down to: Is there any difference in probabilities or practical concerns between one or the other method, or are they interchangeable?  This is related to  and  This question is focused on if there is any practical difference, regardless of why they actually made that design decision.


I have imported a mesh (AutoCad DXF) and I'm experiencing strange shading behavior. I've done the following to try and address the problem with no luck:  Recalculate Normals Remove Doubles Delete Loose Geometry Cleared Seam, Sharp, and Bevel Weights  There are no modifiers on the mesh.  The original imported mesh looks fine in smooth shading but I need the mesh to be in quads which causes the shading to mess up as shown in photo. I can add my .blend file but I'm not sure how to do that.


Ubuntu 18.04 fails to install from USB ISO

Just downloaded Ubuntu (.iso file) and put it on a USB to install it on another computer.  I am following the documentation provided here:   But when I get to the boot screen and select USB, it says "No USB bootable device found."    However, the USB is inserted and the .iso file is on it too. What am I doing wrong?


Where can one find quickly what is the maximum resolution that a graphics card supports?

I'm in the process of replacing two home laptops that have gotten weary with age, with rather simple/cheap desktop computers. Both laptops were unique that they were used in combination with external monitors, which was a a rather nice setup, and they (graphics cards and the external monitors) supported 1920x1280 resoution.  While browsing through ads, I noticed that it is more and more difficult to find out the maximum resolution a certain graphics card (or worse, graphics card integrated on a motherboard) supports.  Is there a place, or a way (something, anything ...) where one could go to easily find this out?


Need sample code for log4j with date extension for generated log file

I want a sample code for log4j.properties which will add date in the file name when creating. Say example i have a file catilina.2013-02-13.log which is in the format as catilina.{yyyy-mm-dd}.log  I used the below code but it does not work for me   log4j.appender.FILE.File=${log}/catilina_%d{yyyy-MM-dd}.log    Thanks,


Include graphics under enumeration, align top with number?

Currently the bottom of the image is aligned with the enumeration number, how can I align the top of the image instead?     \documentclass[12pt]{article} \usepackage{graphicx} \begin{document}  \begin{enumerate}     \item %1     \includegraphics{test.png} \end{enumerate}  \end{document}


Was Sauron aware that the Istari were maiar?

It seems apart from Saruman, Sauron doesn't pay much attention to the Istari and doesn't do a great deal to try and counter them (aside from corrupting Saruman for his own needs) which comes to my assumption that he may have not been aware they were of the same order as him.  So was Sauron aware his enemies were in fact his equals (albeit they were of a lower order of maiar)?


Access Pen Drive (MP3 Player) Via FileInfo?

I've got a Samsung Q1 attached to my computer, and I was hoping to use the FileInfo / DirectoryInfo objects to access the file on the device, however what I right click on a file in windows explorer I get a location of COMPUTER/Q1/DATACASTS/mine.mp3, and when I feed this into the DirectoryInfo object I get "Invalid network drive"  Something tells me I'm going about this the wrong way ... Is there a differant object I shoud use, or is my location string incorrect in format  Thanks in advance


I am reading a Java book and bit confused how new behave when used with String.  Let say I have a statement  String example=new String("Hello");   The book(SCJP 6 by Kathy Sierra and Bert Bates page 434) two objects will be created.  My question will "Hello" be placed in string pool and also  what will happen if i have a below statement   String s="Hello"; String example=new String("Hello");   In this case when 1 is executed Hello will be there in string pool ,what will happen when 2 statement is executed.  While searching through the internet i read that when we use intern method then only string literal are placed in string pool when we use new keyword for creating string object.  Thanks in advance.


I got a new laptop and I installed Ubuntu onto it. Before, there was no operating system.  Is there a way I can remove Ubuntu, and get back to having no operating system at all??


Having collaboration with other professors

I graduated with math degree. Now I want to conduct research which is a kind of combination of two subjects X and Y. I found another professor (by googling) in different country who is working on Y. My question is that: How can I ask the professor to have a joint work? May you please give me a proper text for my request?


Characterisation of uniformly continuous function

I have the following exercise: Let $(X,d)$, $(Y,e)$ be metric spaces.  This is the definition of distance of sets used in the exercise:  $d(A,B)=inf\{d(a,b)\colon a \in A, b \in B\}$  $d(f(A),f(B))=inf\{e(f(a),f(b))\colon f(a) \in A, f(b) \in B\}$  The exercise is:   Prove that $f\colon X \rightarrow Y$ is uniformly continuous if and only if, for all non empty sets $A$,$B$ in $X$ such that $d(A,B)=0$ we always have that $d(f(A),f(B))=0$.  If we suppose that $f$ is uniformly continuous, the implication is easy. But the converse is very hard for me. Let me show you what I have tried:  Suppose that for all non empty sets $A$,$B$ in $X$ such that $d(A,B)=0$ we always have that $d(f(A),f(B))=0$, and for the sake of a contradiction suppose also that $f$ is not uniformly continuous.   Then there exist $\epsilon_0>0$ such that for all $\delta>0$, exist $x_\delta$, $y_\delta$ in $X$ such that $d(x_\delta, y_\delta)<\delta$ but $e(f(x),f(y)) \geq \epsilon_0$.   In particular, for all $\delta=\frac{1}{n}>0$ there exist $x_n,y_n$ in $X$ such that $d(x_n,y_n)<\frac{1}{n}$ but $e(f(x_n),f(y_n)) \geq \epsilon_0$  Then $A=\{x_n \colon n \in \mathbb{N}\}$ and $B=\{y_n \colon n \in \mathbb{N}\}$ are such that $d(A,B)=0$.   Then by hypotheses, we have that $d(f(A),f(B))=0$. Then, in particular for $\epsilon_0>0$, there exist $x_n,y_m$ in $X$ such that $e(f(x_n),f(y_m))<\epsilon_0$.   But I get a contradiction if $n=m$ but I don't know how to proceed in case that $n\neq m$.   Any help would be appreciated.


When talking about terms it should be with an article (a/an) before the term?

When talking about terms it should be with article (a/an) before the term?  For example:   1 What is an urticaria?    or  2 What is urticaria?  Thanks!


I have been currently learning Drupal while trying to duplicate a Drupal application into CakePHP.  I have been looking at the  database tables to know where data is being stored so I can safely migrate any data or study how it is working.  I have researched and have come across questions like:     So far, I have only seen the title in my Drupal (7) installation.  What I have seen in my node revisions table for a recipe content type, which includes fields like, field_ingredients, field_instructions, field_description, field_preptime, field_cookingtime, just the title of the recipe. This is a sample record on my node_revision table.  nid   |  vid  |  title         |  log   | timestamp  | status | comment | promote  | sticky ------------------------------------------------------------------------------------------- 1     |  1    |  Awesome Sauce |        | 1369998600 | 1      | 2       | 1        | 0   As you can see I can only see the title. Where are the other field contents?


these are the results I get using R on my database , can someone help me interpret the results  Call: lm(formula = brevet2016 ~ diversification2013 + specialisation2013 +      depensesenRD2013 + KH2013, data = base)  Residuals:     Min      1Q  Median      3Q     Max  -230.29  -51.53   -8.63   27.68  891.67   Coefficients:                       Estimate Std. Error t value Pr(>|t|)     (Intercept)         -1.839e+02  6.304e+01  -2.917  0.00448 **  diversification2013  7.174e+01  3.925e+01   1.828  0.07094 .   specialisation2013   3.511e+00  3.341e+00   1.051  0.29612     depensesenRD2013     3.979e-04  2.626e-05  15.153  < 2e-16 *** KH2013               4.000e+02  1.188e+02   3.367  0.00112 **  --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  Residual standard error: 119.1 on 89 degrees of freedom Multiple R-squared:  0.7782,    Adjusted R-squared:  0.7682  F-statistic: 78.05 on 4 and 89 DF,  p-value: < 2.2e-16   More specifically, what does intercept,estimate, 1Q,3Q indicate? – user6465283 42 mins ago


How do I create a 10-sided die as one object?

What I'm looking to do is create a 10-sided die, specifically in the shape of a 'pentagonal trapezohedron', i.e., a polyhedron that has 10 kite shaped sides.  With the following link I was able to produce a d4, d6, d8, d12, d20, & d30:   What I'm looking for is something similar for a 10-sided die.  Thanks


Regex capturing group not working as intended

I've been struggling for two days to get this to work, but I just can't (I'm terrible at regular expressions :S).  ${test}[arg]   From this text, I need to retrieve two different things: test and arg. To do it, I have created this regex:   (\$\{(\b[a-zA-Z0-9.]+\b)\})(\[(.+)\])?   With that example, it works. However, if I try this other text: ${test}[arg1] - ${test2}[arg2], I just get one match with 2 groups: test and arg1] - ${test2}[arg2, instead of getting 2 different matches: one with groups test and arg1, and the other with groups test2 and arg2.  I hope you can help me out.  Thanks in advance.


Why is the direction of a flame is always upward?

why a candle's flame direction is always upward? What is the coposition of fire? Don't say it's energy. There is something else.


Commas in plurals of numbers (1000s vs. 1,000s) in web writing

Would I use a comma within the number 1,000 when expressing it as a plural? For example:  The laboratory contained 100s or even 1,000s of rats.  vs.  The laboratory contained 100s or even 1000s of rats.  Chicago Manual of Style dictates that these kinds of numbers should be spelled out (hundreds or even thousands of rats), but in web style, numerals are almost always preferred. I'm also working with a very small space, so spelling out the number isn't an option.  Note that this question differs from previously answered questions in that it refers to plurals of numbers.


Can I unlock an iCloud ipod that I bought and no code

i need to buy new ipod 5th gen. I keep seeing that many of them are iCloud locked. Can this lock be removed and how do I do it?


Why does Ubuntu show boot messages when starting up?

When I boot Ubuntu or Fedora, they show a black screen with a bunch of [OK] messages for startup processes.  It seems like an old style DOS system. Nowadays, iOS and Windows don't show those terminal-like results. Elementary OS doesn't show it (most of the time) either.  Can I hide them in Ubuntu?  The answer to  doesn't work in my case because my /etc/default/grub already has GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" but it still shows the boot text.   Output of apt-cache policy plymouth | grep Installed:  Installed: 0.9.2-3ubuntu17   Here's my /etc/default/grub  GRUB_DEFAULT=0 #GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force" GRUB_CMDLINE_LINUX=""      Update 7 Mar 18:   After running:  sudo apt-get clean, apt-get autoremove, apt-get update, apt-get upgrade   The result is the same: First Ubuntu boots with the logo and 5 loading dots Then, the screen show these: (a lot of them)  ... [ OK ] Started CUPS Scheduler. <more yidi yada> [ OK ] Started Run anacron jobs. [ OK ] Started ACPI event daemon. [ OK ] Started Set the CPU Frequency Scaling governor.        Starting Hold until boot process finishes up... any system changes.pp link was shut down.   Then Ubuntu shows login screen with username.  Also:  $ sudo dpkg-reconfigure -a [sudo] password for user:  Unknown option: a Usage: dpkg-reconfigure [options] packages   -u,  --unseen-only        Show only not yet seen questions.        --default-priority   Use default priority instead of low.        --force          Force reconfiguration of broken packages.        --no-reload      Do not reload templates. (Use with caution.)   -f, --frontend        Specify debconf frontend to use.   -p, --priority        Specify minimum priority question to show.         --terse         Enable terse mode.  $ sudo dpkg-reconfigure plymouth [sudo] password for user:  update-initramfs: deferring update (trigger activated) update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults Processing triggers for initramfs-tools (0.125ubuntu12) ... update-initramfs: Generating /boot/initrd.img-4.13.0-36-generic


Show that a ring with only trivial right ideals is either a division ring or $|R|=p$ and $R^2=\{0\}$.

I have trouble with the following problem: Let $R$ be a ring (it doesn't necessarily have multiplicative identity). If the only left Ideals of $R$ are $(0)$ and itself then $R$ is a division ring or $|R|=p$ for some prime $p$ and $ab=0$ for all $a,b\in R$. I tried to prove that $R$ is a domain, because if that's true then I have an easy way of proving the exercise, but I don't know if it's true that $R$ is a domain


Is it possible to make a command that create commands??  Something like:  \newcommand{apprentice}[4][forestgreen]{ % \newcommand{#2}{ \color{#1} Lærling #3}%  \newcommand{a#2}{\color{#1} #4}% }   that creates 2 new commands \#2 and \a#2 defined as shown above.  this would just be faster than doing the above 8+ times


CPU Clock speed vs number of cores for Cycles rendering with iMac?

I tried finding a previous post of mine but was unable to so I am asking for more info.  Apologies for the noob question but I am trying to decide between two iMacs since my current Late 2014 iMac is chugging more and more when rendering files using the Cycles engine:  2019 27" iMac:   3.6GHz 8-core 9th-generation Intel Core i9 processor, Turbo Boost up to 5.0GHz 8GB 2666MHz DDR4 memory (Upgrade the RAM to 64GB via 3rd party) Radeon Pro Vega 48 with 8GB of HBM2 memory 1TB SSD storage   OR  Current 27" iMac Pro:   3.2GHz 8-core Intel Xeon W processor, Turbo Boost up to 4.2GHz 64GB 2666MHz DDR4 ECC memory Radeon Pro Vega 56 with 8GB of HBM2 memory 1TB SSD storage   I googled a lot but still do not quite understand is it is better to have a higher clock speed (GHz) or number of Core to render files faster.  There is about a $2k difference between the two iMacs but want to know if that difference is worth it in the long run.  Any feedback is appreciated.


So, I am trying to center this div like shown in the picture "example" below but I am not able to figure out how to do it?  my HTML code

role

web design

client

Careerfit

sector

Recruitment

Branding oneself can be a delicate process. Bobolink, a Beirut based creative agency with an appetite for  work, came to us forhelp with overcoming the challenge of uplifting their identity. The result of our collaboration was an organic identity with youthful elegance.

   With this code its ending up like this


I had installed Ubuntu 18.04  from a usb drive in an hp/amd Windows machine  and I erased windows. installation completed but soon discovered that my network adapter was not found by the OS. how should I troubleshoot...and would like to do this installation again..