I want to get stats from the  view.  When I check the records from months ago, I see that after a point of time its stats reset daily, but there have been no server resets.  It seems there is a job running that makes this view reset. Can anyone help me with this problem? What kind of procedures will reset these views?

My boss would like me to find which (of approx 400+) stored procedures are not being used by our website any more. I'm found and reworked a script to give me the details of most recent executions, however it only goes back as far as 10:17am September 1st.  My boss assures me that (although he likes to tinker with the server in his spare time) the server has been up since May 5th.  I'm pretty new to this, so explain it like I'm a particularly simple house pet, but is there are reason why my results table only goes back 1 month, instead of the full 6? I would assume that uptime is reset if the server is restarted, but I'm not sure why I wouldn't have any history that far back.  Does viewing the procedure by using right-click -> modify count as an execution?  SQL Query  SELECT qt.text AS 'SP Name', qt.dbid as 'SP DB', qs.execution_count AS 'Execution Count', qs.total_worker_time/qs.execution_count AS 'AvgWorkerTime', qs.total_worker_time AS 'TotalWorkerTime', qs.total_physical_reads AS 'PhysicalReads', qs.last_execution_time 'Last Executed' FROM sys.dm_exec_procedure_stats AS qs CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) AS qt where qs.database_id = 5 ORDER BY qs.last_execution_time asc   My question relates more to the time frame of the results. I'm finding the information I need in the month of results I have but I'm worried there are 6 months of results that aren't being found found.  This returns May 5th:  select create_date from sys.databases where name = N'tempdb';   The following returns "2015-05-05 08:27:42.080":  SELECT sqlserver_start_time FROM sys.dm_os_sys_info;   Finally, this one returns "2013-09-15 19:34:34.667":  SELECT top 1 [rs].[destination_database_name], [rs].[restore_date]  FROM msdb..restorehistory rs  where destination_database_name = '%ID%'  ORDER BY [rs].[restore_date] DESC;


What is the adjective for "a person who is correcting someone, but is doing it in a egotistical manner?" Like they are offering to help someone but they are doing it in a way that fuels their narcissism.

Looking for a word that describes the feeling of being told something in an overly simplified manner that feels offensive.


If you do something silly like cat /var/log/wtmp your terminal can get messed up as shown in the screenshot.  I know there are a number of ways of .  One of the ways not mentioned on that post, which I was told about years ago is to run the command highlighted in a red box in the screenshot.  head /bin/ls   This works.  Why?

If I understand the cat manual correctly:       concatenate files and print on the standard output   cat will take files as argument and print them on standard output. What I don't get is if I use the command:    cat img.png > copy.png   I will obtain 2 png files identical while if I just    cat img.png     I have all chance that my terminal get messed up and misinterpret what I type.     How's that possible?   Binary values are still binary data. Why it does not simply shows a series of 0 and 1 or the interpretation of those binary data in ASCII or whatever the encoding in terminal is?   Is this behavior also possible by cating a text file containing strange characters?   Should a mechanism to prevent this behavior  like try{}catch{} statement should be implemented?


In many situations the values that a random variable, X, can take on is restricted, for example precipitation data [0,inf), that is f(x) = 0 for x < 0. We say that the support of f(x) is [0,inf).  We need to be modified when f(x) has bounded support. The simplest method of solving this problem is use a log transformation.  The idea is to estimate the probability density function (PDF) of a transformed random variable Y = t(X) which has unbounded support.  I have carries out the following steps:  (a) Transform the observations yi = t(xi), i = 1, 2,... , n.  (b) Apply the kernel method to estimate the PDF g(y) that is the density of Y = log(X).  My problem is how to estimate f(x) via kernel smooth of log(values) by using R?  Thanks

plot(density(rexp(100))   Obviously all density to the left of zero represents bias.  I'm looking to summarize some data for non-statisticians, and I want to avoid questions about why non-negative data has density to the left of zero.  The plots are for randomization checking; I want to show the distributions of variables by treatment and control groups. The distributions are often exponential-ish.  Histograms are tricky for various reasons.    A quick google search gives me work by statisticians on non-negative kernels, e.g.:  .    But has any of it been implemented in R?  Of implemented methods, are any of them "best" in some way for descriptive statistics?  EDIT:  even if the from command can solve my current problem, it'd be nice to know whether anyone has implemented kernels based on literature on non-negative density estimation


As a part-time English tutorial teacher who isn't specialized in language, I would like to ask about article usage for proper nouns and abbreviations. Do you add 'the' for the following sentences? "I have just returned from _____ Massachusetts Institute of Technology." "I have just returned from _____ Hong Kong."  "I have just returned from _____ MIT." "I have just returned from _____ HK."  The reason of asking this question is because from where I live (Hong Kong), we have a public transportation named MTR (Mass Transit Railway), which we always seem to add 'the' before 'MTR'. (Example text:  https://en.wikipedia.org/wiki/MTR)  'The MTR' also appears in one of my students' text book. ("I go to school by the MTR.") I am a bit confused by the article usage before abbreviation. My guess is:  'The' for organizations/companies; No 'The' for location and individual's name;  But I still do not know if 'the' is needed for algorithms. For instance I am writing an academic paper about Neural Network. Should I put 'the' in front of NN? (ie: The prediction is then carried out by ______ NN.) I would like to hear your thoughts about article usage for abbreviations. Thanks in advance!!!(Also I may have made some mess in the question, apologies to you who read this but passed by before.) Update:   My confusion continues as I read more stuff:  Organization and Companies: (full name) "Dragonair became a wholly owned subsidiary of Cathay Pacific after completion..."  Meanwhile: "A charter for the incorporation of the Massachusetts Institute of Technology..."   But there is some new understanding that I would like to share:  When a proper noun/abbreviation is used to describe an object, the article usage will follow the object unless it's a location. E.g.: an HMO facility, a SWAT team http://editingandwritingservices.com/using-articles-with-abbreviations/ Exception on location:  "It started operations in July 1985 with a Boeing 737-200 service from Kai Tak International Airport..." https://en.wikipedia.org/wiki/Cathay_Dragon  I will keep on updating when more questions pop up in my head. Great thanks!  Update 2: I have marked this as duplicate with .

I saw several posts about usage of "the" before acronyms, but I still haven't found any answer on my question. Let's say I developed a System for Definitions' Retrieval (SDR). So, should I refer to it as "the SDR" or just "SDR"?  The sentence is:     Integration of (the/a/?) SDR database with lexical (synonyms, antonyms, etc.) databases.


I get:  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException    ..at the line of getting the value of row:   String ENTRY = (String) table.getModel().getValueAt(row, 2)`   This is the code:   tab.setDefaultRenderer(Object.class, new DefaultTableCellRenderer() {             @Override public Component getTableCellRendererComponent(JTable table,        Object value, boolean isSelected, boolean hasFocus, int row, int col) {  Super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, col);  String ENTRY = table.getModel().getValueAt(row,2).toString();                   if (!ENTRY.equals("active")) {                     setBackground(Color.GREEN);                 }                 return this;             }         });`

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


I want to show that the following inequality holds for all $k\in\mathbb{N},k\geq 1$:  $$ \frac{1}{k}-\ln\left(\frac{k+1}{k}\right)\leq\frac{1}{k^2} $$  I already know that it is bounded. It also know that $1+x\leq e^x$ for all $x\in\mathbb{R}$. and that $e^x\leq\frac{1}{1-x}$ for all $x\in [0,1)$.

The question is to prove the inequality $$\frac{1}{n+1} \leq \ln \left(1+\frac 1n\right) \leq \frac 1n\\\forall n \geq 1, n\in \mathbb N$$  I tried using Taylor expansion but couldn't figure out anything. Any ideas? Thanks.


I have a global file that contains two other files,like this :  input{part1/chap1} input{part1/chap2}   so i have 2 figures one in "chap1" and the second in "chap2" in "chap1" my figure is : figure 1  and in "chap2" my other figure is also figure 1  I want my figure which is located in "chap2" be figure 2 not figure 1  Thank youu

Some document elements (e.g., figures in the book class) are numbered per chapter (figure 1.1, 1.2, 2.1, ...). How can I achieve continuous numbering (figure 1, 2, 3, ...)?  And vice versa: Some document elements (e.g., figures in the article class) are numbered continuously. How can I achieve per-section numbering?  \documentclass{book}% for "vice versa" variant, replace `book` with `article`  \begin{document}  \chapter{foo}% for "vice versa" variant, replace `\chapter` with `\section`  \begin{figure} \centering \rule{1cm}{1cm}% placeholder for graphic \caption{A figure} \end{figure}  \end{document}   Bonus question: Is it possible to adjust the numbering of the sectioning headings themselves? Can I, e.g., switch from per-chapter to continuous numbering of sections in the book class?


If I XOR the output from 2 CSPRNG will the result be better (more random) than the output from either one? Assume one of the PRNG is biased.

This question is related to  in intention, and  in scope.  Would I be guarding myself against future attacks on a single PRNG if I combine two (or more) together?  I am thinking of using the Fortuna PRNG together with AES in counter mode, each initialised by a different source of entropy (now exactly what the two sources will be is an open problem). The output of each will be combined with the XOR operation, they will run on a separate thread and computational power is not a problem.  My (informal) thinking is that, as long as one function remains unpredictable (in polytime), the output is secure (in polytime).  The answers may address Fortuna or AES specifically, or they may treat the generators as abstract functions. Is there a flaw in this design?


Taylor series gives $$\frac 1 {(1+x)^2}=1-2x+3x^2-4x^3+\cdots$$  is there a nice expression for $1-4x+9x^2-16x^3 + \cdots ?$  It would be helpful for a problem I am trying to solve.

The question I've been given is this:  Using both sides of this equation:  $$\frac{1}{1-x} = \sum_{n=0}^{\infty}x^n$$  Find an expression for $$\sum_{n=0}^{\infty} n^2x^n$$ Then use that to find an expression for $$\sum_{n=0}^{\infty}\frac{n^2}{2^n}$$  This is as close as I've gotten:  \begin{align*} \frac{1}{1-x} & = \sum_{n=0}^{\infty} x^n \\ \frac{-2}{(x-1)^3} & = \frac{d^2}{dx^2} \sum_{n=0}^{\infty} x^n \\ \frac{-2}{(x-1)^3} & = \sum_{n=2}^{\infty} n(n-1)x^{n-2} \\ \frac{-2x(x+1)}{(x-1)^3} & = \sum_{n=0}^{\infty} n(n-1)\frac{x^n}{x}(x+1) \\ \frac{-2x(x+1)}{(x-1)^3} & = \sum_{n=0}^{\infty} (n^2x + n^2 - nx - n)\frac{x^n}{x} \\ \frac{-2x(x+1)}{(x-1)^3} & = \sum_{n=0}^{\infty} n^2x^n + n^2\frac{x^n}{x} - nx^n - n\frac{x^n}{x} \\ \end{align*}  Any help is appreciated, thanks :)


I followed the instructions to install Ubuntu 16.04 alongside my windows 10 PC.         After I finished installation and restarted the computer, it still brings me back to previous page.

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


I'm writing a document using xepersian package to write Kurdish in Latex.Every thing work perfect but the only problem is when I want number in every place in my latex file to be like ( 123456789). but whatever I do it will change it to (١٢٣٤٥٦٧٨٩). By the way I have been used \DefaultMathsDigits command and its work only inside math but, I want to also work inside my kurdish text.  \documentclass{article} \usepackage{xepersian} \settextfont[Script=Arabic,Scale=1.2,Mapping=arabicdigits]{Unikurd Nali} \setlatintextfont[Scale]{Courier} \setdigitfont{Arial} \DefaultMathsDigits \begin{document}  گه‌ر ئه‌مه به‌كوردی بنووسم 123445 ئه‌وا ده‌یگۆرێت ب١٢٣٤٥. \end{document}   Note:- It look like there is a command (\lr ) that is solve this problem, but I think this is not practical, since in Kurdish we are using English number but arabic-like alphabet. I wonder if there should be better solution to this?

Consider the following document:  \documentclass[10pt,a4paper]{report} \usepackage{xepersian}  \settextfont{FreeFarsi}% http://sourceforge.net/projects/fpf/ \begin{document} این یک متن فارسی  است. \LR{Ch4}  ادامه متن فارسی... \end{document}   It prints \LR{Ch4} as Ch۴, whereas I want it to be printed as Ch4. But I do not want this to effect other numbers in the text. How can I do this?  I could use \begin{latin}...\end{latin} or \latin ... \persian, but they add new lines before and after the contained text.


How I can send a simple mail from Ubuntu command line without giving the password for the email account which I'm sending to?


I am new to Linux and have given Ubuntu a try. My laptop will play system sounds and test sounds but won't play sounds on videos and spotify etc through the speakers. Sound does however work through the TV when connected via HDMI cable.  What could be the problem, and how can I fix it?

Sound is not working. I get system sounds but other sources like Rhythmbox don't work


I just installed Microsoft Visio 2013. This is the only program I have that's part of Office 2013. After I restarted, Windows Update suddenly popped up with 23 new updates, all related to Office 2013, but only two are actually for Visio 2013! Most of them just say "Update for Office 2013", but there are updates Lync, OneNote, and SkyDrive Pro, none of which I own.  Do I really have to install all these updates and if not how do I get rid of them?  Thanks in advance!

On a relative's laptop I had selected custom installation for Office and installed only Word, Excel and PowerPoint. Recently I was doing some spring-cleaning and noticed that Windows Update (which is set to provide updates for all installed Microsoft products) is offering updates for Office apps that are not even installed! Take a look at a snippet of the update list below:    What do any of these have to do with the 3 installed apps?  BTW, I found a similar question , but I already know how to hide the updates and the same ones are never offered to me again, so that's not the issue here. What I want to know is, does anyone know why Windows Update thinks these updates might be required? I searched the laptop for files mentioned in the KB pages for the updates, and couldn't locate them anywhere. Should I still install the security updates at least, or are they just being offered by mistake and is it fine to hide them?


I know I can get process id of the main shell by $$, but how do you get PID of subshell created by e.g. ( ... ) from within the block?

How can I get the pid of a subshell?  For example:  $ echo $$ 16808   This doesn't work, because the original shell expands $$:  $ ( echo $$ ) 16808   Why does single quoting not work? After the original shell removes the single quote, does the subshell not expand $$ in itself?  $ ( echo '$$' ) $$   Why does eval not work either? Is eval run by the subshell?  Why does it give me the original shell's PID?  $ ( eval echo '$$' ) 16808   Thanks.


"Quasiparticles" are ubiquitous in condensed matter physics, e.g. magnons and phonons, and more generally all particles in quantum field theory are considered the elementary harmonic excitations ("vibrations") of the quantum fields. The classical analogues of these concepts are plane-wave excitations which are manifestly non-local (again, thinking of magnons and phonons as examples). Although localized instanton solutions do exist in classical gauge theories for example, they are not considered to be the classical analogues of particles in QFT's. So in what way can we see that the low-energy modes of a quantum field should be particle-like? Of course we always have particle-wave duality (which to me still feels like a phenomenological property rather than something we "see" at the level of field theory, say), but classically there are only waves, and there are no particles. Why can the harmonic (i.e. low-energy, quadratic) quantum fluctuations of fields be thought of as particles localized in space? What is the "extra ingredient" that quantum theory adds to the classical picture that "localizes" excitations?

I never learnt QFT and I apologize for my (probably) elementary question. Somebody told me that in QFT a particle is viewed as an irregularity in the field.  On the other hand, in an  in Wikipedia I see the sentence "A QFT treats particles as excited states of an underlying physical field, so these are called field quanta."  Which one of the true is a better description? The 1st description hints that the particle is a localized phenomenon inside a field that maybe occupies a big region in space. The 2nd description speaks of an "underlying" field. So, is there a field and in addition there is a particle? If it is, then what is the occupation number of that "underlying" field?  None of these approaches is clear to me, I know the approach in QM, and none of them resembles the QM.  The motivation behind my question is a certain similarity that I find between the above descriptions and the Bohm interpretation of QM, (i.e. the background field - in Bohm's interpretation there is a background quantum potential - and a particle floating in it.)  In all, is a particle treated in QFT as a localized phenomenon inside a field occupying a wider volume? I would appreciate a simple and direct answer.


I want to empty current file so I do: touch it, remove it and touch because I do not want to remove non-existing file; example             touch "$filenameTarget"            rm "$filenameTarget"            touch "$filenameTarget"   I want to be very careful with deletes.  What is the correct philosophy here?  OS: Debian 8.5

I am aware of three methods to delete all entries from a file. They are  >filename touch filename1 filename < /dev/null  Of these three I abuse >filename the most as that requires the least number of keystrokes. However, I would like to know which is the most efficient of the three (if there are any  more efficient methods) with respect to large log files and small files. Also, how does the three codes operate and delete the contents?  1Edit: as discussed in , this actually does not clear the file!


I know Physics but I don't know Math for this physics. Let me explain.   When I say I know physics I mean I know stuff like    Einsteins Special & General Relativity, Time Dilation, Gravitational Lens, Big Bang Theory, Singularity, Background Cosmic Radiation, Bohr's Model, Standard Model,  Higs-Boson, SParticles, Anti Matter,  Dark Matter, Dark Energy, Black Holes, String Thoery, M-theory, 11 Dimensions etc... etc..   Point being I'm upto speed with current theoretical and proven physics. I've not gone into Quantum Mechanics yet. I also have very very very little knowledge of the math for physics. Like I know the equations for Newtons Laws of Motion. That's not much. I had studied how to calculate gravity, mass of atom, speed of electron etc but forgot all that. I know a lot of Calculus is used for all this physics. I took calculus as well but besides Integration & Derivation I know nothing now. The problem is I choose to become a Software Engineer and have been so since the last 3 years. I want to start learning all the Math which goes into all the physics. because a few days back I wanted to calculate magnetic vortex and I cant because I dont know the math. And this problem is going to continue unless I sit down and put some effort in Math and all the modern physics will stay concepts for me, I need to pass the math barrier. So my question is where to start? Is there some online course, some books I should go though and outline of what I need to learn?  p.s. Sorry for the long description

Every once in a while, we get a question asking for a book or other educational reference on a particular topic at a particular level. This is a meta-question that collects all those links together. If you're looking for book recommendations, this is probably the place to start.  All the questions linked below, as well as others which deal with more specialized books, can be found under the tag  (formerly ).  If you have a question to add, please edit it in. However, make sure of a few things first:   The question should be tagged  It should be of the form "What are good books to learn/study [subject] at [level]?" It shouldn't duplicate a topic and level that's already on the list   Related Meta:


I recently re-imaged my Dell PC to dual-install Windows 7 and Ubuntu 12.04.1 LTS. The dual-boot was a success, since I was able to start whichever OS I wanted.   Now, I installed some software (the OpenJDK package) on the Ubuntu side of the PC. Upon restarting Ubuntu, I unfortunately lost the ability to choose the OS that I wanted to run (i.e., Ubuntu).   Ordinarily, I'd expect to:  1. Hit the power button 2. A menu (Grub?) shows up listing all OSs installed in the PC (namely, Win7 and Ubuntu) 3. Choose which OS I want and hit enter. bingo.   The problem is that I don't see that menu (step 2 above). Instead, windows automatically starts, even when I hit F12 to see the boot options, none of which I understand.   Your help would be great! Thanks! - Kiptoo

I have both Windows 7 and Ubuntu installed on a shared machine. Because a lot of the non-developers use Windows, I'd like to change the boot order to make it easier for them.  Currently the boot order looks like the following:   Ubuntu 11.10 kernelgeneric *86 Ubuntu 11.10 kernelgeneric *86 (safe boot)  Memory test Memory test Windows 7 on /dev/sda6   How do I change the default order so that Windows 7 is at the top of the list?   Windows 7 on /dev/sda6 Ubuntu 11.10 kernelgeneric *86 Ubuntu 11.10 kernelgeneric *86 (safe boot)  Memory test Memory test


and my main is  #include<iostream>  template<typename T> class Node;  //#include"Node.h" #include"BinaryTree.h"   int main() {     BinaryTree<int> bt;      //bt.Insert(20);      return 0; }   So I have two .h files BinaryTree and Node and their respective .cpp files. I am using making a class variable of type Node in BinaryTree and I have declared BinaryTree and friend class in Node. When i run the program i get the following Linker errors -   Severity    Code    Description Project File    Line    Suppression State Error   LNK2019 unresolved external symbol "public: __thiscall BinaryTree::BinaryTree(void)" (??0?$BinaryTree@H@@QAE@XZ) referenced in function _main Practice    C:\Users\u1017574\documents\visual studio 2015\Projects\Practice\Practice\main.obj  1

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


I'm using Ubuntu 12.04 and my problem is that I don't have any Internet connection and I want to use wine, MS OFFICE, Turbo C++, DOS BOX, and many more applications that are required to me. But Ubuntu needs to download dependencies so is there any package to install all the dependencies that are required for Ubuntu.

I have a friend who has got a computer that is not connected to the Internet. Is there any way to install software offline easily?


I'm having some problems with the width of fancyhdr.  using this code:  \documentclass[twoside]{octavo}  \usepackage{lipsum}  \usepackage[british]{babel} \usepackage{geometry}  \usepackage{fancyhdr}      \pagestyle{fancy}     \renewcommand{\chaptermark}[1]{\markboth{#1}{}}     \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}     \fancyhf{}     \fancyhead[LE,RO]{\bfseries\thepage}     \fancyhead[RE]{\bfseries\footnotesize\nouppercase{\leftmark}}     \fancyhead[LO]{\bfseries\footnotesize\nouppercase{\rightmark}}     \setlength{\headheight}{15pt}   \geometry{papersize={170mm, 240mm}}  \begin{document}  \lipsum  \end{document}    my header is like this:    The line separating the header from the body is too short and the number is not in the corner.  Where I'm wrong? I've used this piece of fancyhdr code several time and never has this issue.  Regards Luca

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}


To avoid spending time on the internet I decidet to block several time wasting web sites I added rule redirecting several pages to localhost changine file     C:\Windows\System32\drivers\etc\hosts   I added following line     127.0.0.1 joemonster.org   But great idea could be redirect it to more valuable site like . The problem is that duolingo is listening on port 443.  Hosts files aren't for redirecting port but only for resolving addresses. How can I redirect joemonster to duolingo?

I'd like to do much the same thing described at  for web app development purposes, but with the twist that I'd like requests to fakedomain.com:80 to be routed to localhost:8080, say, so that I don't have to actually use my development machine's port 80.  I'd welcome answers that take the form of:   Small changes to configuration files like /etc/hosts, and/or An easy-to-configure proxy server I could run   Note:  takes the approach of setting a firewall rule to forward all incoming traffic on port 80 to port 20559. That may be an acceptable solution, but ideally, I'd like to forward only a specific domain + port combination.


This pops up every reboot in the tray:    I don't plan to ever use/install Flash so how do I get this to stop pestering?

Kubuntu 15.04 shows a notification (and a taskbar icon) on each boot, after the log in, offering me to install extra packages, specifically flash, and I really don't want to install it. I've pressed "cancel" many times, but in the next boot the notification will pop-up again.  What can I do to make the notification stop?


Using induction, Prove that any triangle can be dissected into more than six isosceles triangles. I can't figure out how to solve this using induction. Because i don't see any clear steps. What should

That's my problem: Can every triangle be divided into five isosceles triangles?  I've got to give evidence why this is true or not true...  (sorry for possible language mistakes - I'm from Germany)  Thanks in advance  Markus


I have a test class that iterates through a bunch of "educational programs my company offers" and makes sure that each program is properly embedded in our org's schema.  (I've got a utility class that stores the API names, picklist strings, etc. to expect - the test class makes sure that the "expected" values are actually there.)  I'd like to add a test to ensure that a certain string representing each program appears in the definition of a given formula field.  I always forget to update that formula field when we offer a new program.  Is there a way to use Apex to fetch a textual representation of a formula field's formula?    [Note - this is NOT about recomputing the value.  This is about inspecting the code behind the formula.  Not a duplicate to .recalculateFormulas() questions.]

I have an "invoice" custom object which has a couple of summarising formula fields in. I also have a complicated and dynamic visualforce page for building the invoice objects.  As the user is completing this form, different areas are dynamically updated to show "latest" values. This is all fine where I am copying data about or performing bespoke lookups and maths, but - in what is really the simplest case - a formula field, I can find no way to get the value to update, without performing some weird cyclic save + reload of the whole object.  This is inappropriate for a couple of reasons (the object should not be saved until the invoice is complete + accepted) and the other option I have found online is to spoof the value by duplicating my formula field maths into the custom controller and re-executing them there - also unacceptable from a code/logic location/duplication perspective.  Is there anyway to "force" an object/page to recalculate it's formula fields, either through standard or extended controllers?


As an antonym for exoticize, would you favor de-exoticize or deexoticize?  Google currently finds ~2970 results for the hyphenated version and ~440 results for the unhyphenated, but both of those numbers are so small that I wouldn't call that conclusive.  An example sentence: This novel deexoticizes/de-exoticizes Africa to the Western reader.  A general rule can be found at:   There, it is explained that prefixes are generally not hyphenated, but that there is a common exception of hyphenating prefixes when a vowel would be repeated otherwise. However, in this case, exoticize is a pretty stylized word, and I want to confirm that, in working with it, I should follow the same conventions as I would for more standard words.

Some compound words are written without hyphens (nonaggression, nonbeliever), some with hyphens (well-intentioned), and others with spaces (post office).  Is there a rule or good guide as to which option should be used?


I turned off Reflective Caustics and Refractive Caustics but my image is still full of fireflies how can i fully remove them?

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


we are trying to configure SSL certificate for our domain. SFMC account Executive is asking "Do you need 1 Configuration or 1 Domain with 2 configs?" what did he mean by that? Can someone make me understand.

I am hosting my Cloud Pages over HTTPS and I am having some issues due to Content builder assets being "http://"... What would be a correct way to ensure Content Builder uses "HTTPS" instead of "HTTP"  I have to host some of my content externally.


I have wired problem. I have this class:  public class Player { ...      protected int x; }   and in another test-class (which not extends Player):      Player p = new Player("gfdg");     p.x = 10;     System.out.println(p.x);   ^ it's actually work!  why java treat the protected as public?

In Java, are there clear rules on when to use each of access modifiers, namely the default (package private), public, protected and private, while making class and interface and dealing with inheritance?


Let $X=S^1\times I$ where $S^1\subset \mathbb{C}$ and $I=[0,1]\subset \mathbb{R}$ also define the equivalence relation ~ by $(x,t)$~$(y,s)$ if and only if $xt=ys$.   Prove that $X$/~ is homeomorphic to the unit disc $D^2=\{x\in \mathbb{R^2}: |x|\le1\}=\{x\in \mathbb{C}: |x|\le1\}$ with the induced topology.  Any hints would be appreciated.

Let $\sim$ be the equivalence relation on $S_1 \times I$ given by $(x,t)\sim(y,s)$ if and only if $xt=ys$ where $I=[0,1]$  How do I prove that $(S_1 \times I)/\sim$ is homeomorphic to the unit disk $D^2$ with the induced topology?


For example. If I have a function f(x) = y in the carthesian plane and it's limit exists, can I view that limit as a function with domain in R2 and codomain in R? If that's the case, I believe that as the derivative is a limit, then it is also a function. And what about the integral?

When learning mathematics I tend to try to reduce all the concepts I come across to some matter of interaction between sets and functions (or if necessary the more general Relation) on them. Possibly with some extra axioms thrown in here and there if needed, but the fundamental idea is that of adding additional structure on sets and relations between them.  I've recently tried applying this view to calculus and have been running into some confusions. Most importantly I'm not sure how to interpret Limits. I've considered viewing them as a function that takes 3 arguments, a function, the function's domain and some value (the "approaches value") then outputs a single value.  However this "limit function" view requires defining the limit function over something other then the Reals or Complexes due to the notion of certain inputs and outputs being "infinity". This makes me uncomfortable and question whether my current approach to mathematics is really as elegant as I'd thought. Is this a reasonable approach to answering the question of what limits actually "are" in a general mathematical sense? How do mathematicians tend to categorize limits with the rest of mathematics?


On our minecraft realm I am a necromancer. Using the /team command I control hostile mobs to attack other players. I was hoping to make a way to make my wither skeletons and vex attack other mobs. If anyone has any ideas to make this possible using command blocks please let me know

I want to make an arena where mobs will fight each other and a player can bet on one side or the other. For example: There are 2 skeletons in dyed armor; red and blue. Each color representing a team. When they spawn I want them to fight each and then when one dies I want it to announce which team is the winner and give the player the "money" due. I'm just not sure how to get the skeletons to attack each other without a player instigating it.


As noted in :     The only requirement to participate is the ability to cast both up and down-votes on the site, making this the most inclusive queue to date.   It seems wrong to block a user's ability to review First Posts and Late Answers just because their daily vote limit is reached. Therefore, I propose that...  The ability to review posts in the First Posts and Late Answers queues be limited to 20 per day, with no further restrictions.  If we want users to assist with reviews, they shouldn't have to consider how many votes they have left and remember to not use their last vote. They should be free to use their own votes as they choose, and reviewing is a separate issue.    It should be simple, but a system is not simple (IMO) when:     A user with 40 votes in a day cannot review A user with 39 votes in a day can review unlimited Review votes do not count towards the daily vote limit Votes outside review do count towards not being able to review 1 daily vote remaining allows unlimited review and unlimited votes within review   That is weird - Voting out of review is limited; Votes within review is unlimited; Yet once out of review vote limit is reached, the voting within review is no longer unlimited, and is not permitted... ?    That one vote allowing unlimited review votes is illogical (it irks me, a little, too.. like it's a bug, I know it's not, but it smells like one. I licked it once, and it tasted like one, too).

I was reviewing on , and I faced a weird thing. I can review "Close Votes", "Low Quality Posts", and "Suggested Edits" if I reached my daily vote limit, but I can't for "First Posts" and "Late Answers". Why?    If they just deserve an upvote/downvote then they should not include in the review system. But if we can improve them through leaving comments and by editing the posts then why can't we access them?


ArrayList<File> files = allFiles(Environment.getExternalStorageDirectory());  private ArrayList<File> allFiles(File root){     ArrayList<File> arrayList = new ArrayList<>();     File files[] = root.listFiles();      for(File file:files){         if(file.isDirectory()){             arrayList.addAll(allFiles(file));         }else{             arrayList.add(file);         }     }     return arrayList; }   I am trying to list out all of the files on my android device. the above code, some exception is raised:  2020-01-24 15:20:31.048 23877-23877/com.example.readingfromstorage E/AndroidRuntime: FATAL EXCEPTION: main     Process: com.example.readingfromstorage, PID: 23877     java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.readingfromstorage/com.example.readingfromstorage.MainActivity}: java.lang.NullPointerException: Attempt to get length of null array  please help me to solve this problem. thanks;

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


I had some data backed up onto an external hard drive, and it seemed fine. When I reopened the folder a few minutes later, there were only two files left instead of hundreds.  I can't think of anything  I was doing that might have caused this. I wasn't formatting or deleting anything, I wasn't doing anything to file systems, I wasn't doing anything that might have caused this.  The two files left are the two most recently edited.   find and locate commands don't show them anywhere else. Well, sorta: /home/user/.local/share/Trash/files/ contains all the directories, but they're all empty.  Is it hopeless? Is there anything I can do?

About two weeks ago I had a problem with my PC that my brother wrote a question about at .  I still haven't solved the problem, so my PC is unusable now.  Now I think that it would be simpler to re-install both Win7 & Ubuntu than repair them, but there're some data on their partitions. I want to recover this data.  These partitions are not mountable for some reason. I don't know why.  sudo fdisk -l about the problematic partitions:     Device    Boot      Start         End      Blocks   Id  System /dev/sda1            2048     147912703    73955328   83 Linux /dev/sdb2            206848   174079999    86936576    7  HPFS/NTFS/exFAT   And in GParted:      And the error of the mount command:  Failed to mount '/dev/sdb2': Invalid argument The device '/dev/sdb2' doesn't seem to have a valid NTFS. Maybe the wrong device is used? Or the whole disk instead of a partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?   And the exact same message for /dev/sda1  How can I recover my data from those HDDs?  EDIT     I have tried to specify the type of the drive:  $ sudo mount -t ext4 /dev/sda1 /olddisk mount: wrong fs type, bad option, bad superblock on /dev/sda1,        missing codepage or helper program, or other error        In some cases useful info is found in syslog - try        dmesg | tail  or so $ sudo mount -t ntfs /dev/sdb2 /olddisk NTFS signature is missing. Failed to mount '/dev/sdb2': Invalid argument The device '/dev/sdb2' doesn't seem to have a valid NTFS. Maybe the wrong device is used? Or the whole disk instead of a partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?   EDIT     sudo ntfsfix /dev/sdb2 returns:  Mounting volume... NTFS signature is missing. FAILED Attempting to correct errors... NTFS signature is missing. FAILED Failed to startup volume: Invalid argument NTFS signature is missing. Trying the alternate boot sector Unrecoverable error Volume is corrupt. You should run chkdsk.


I want to replace a string with a different string in all directory and file names, recursively.  So if I want to replace foo with bar and have this file:   foo_project/my_app/old_foo/start_foo.sh   I would want it to become   bar_project/my_app/old_bar/start_bar.sh   I have been able to do this, but it's pretty ugly.  Writing it from memory (can't copy paste so forgive typos) the command I have is:  find $PROJECT_DIR -name "*foo*" | tac | xargs -n 1 -I % bash -c "eval mv % \$\( echo % \| sed \''s/\(.*\)foo/\1$PROJECT_NAME/'\' \)"   This works for me, but it's hideous.  Is there a cleaner approach to do what I want?  To give context on above command, the issue I had was that early rename commands would break later mv commands by making the paths differ.  That's why I switched to a tac before an xargs (instead of the -evalcmd argument for find I started with) to ensure that I ran the most deeply nested renames first.  I then had to make my sed only rename the last instance of foo so I could move everything within a folder before renaming the folder.  The ugly part is the need of eval, and thus multiple levels of escaping arguments, because I didn't otherwise know how to pass the contents of xargs to the sed command.  There has to be something cleaner then this though?

I started learning linux on vmware using centos 7. I created an image directory and several layers of files and sub-directories in that folder. most of the names containing spaces. I want to use a single command to rename all the files and directories at once.   command i am using right now is  find . -type f -exec rename "find" "replace" {} \; & find . -type d -exec rename "find" "replace" {} \; Where as find is a space and replace is "-"(hiphen). I even tried below command looking at one of the answer in stack exchange.  find . -iname "find" -exec rename "find" "replace" {} \;


Let $k$ be an Algebraically closed field. Let $A,B$ be integral domains which are finitely generated as $k$-algebras.   If $A$ and $B$ are isomorphic as rings, then are $A$ and $B$ also isomorphic as $k$-algebras ?

Let $k$ be a field. Let $A$ and $B$ be two $k$-algebras, ie. two rings that are also $k$-vector spaces and their multiplication is $k$-bilinear.  Any isomorphism of $k$-algebras is also a ring isomorphism, so if $A$ and $B$ are isomorphic as $k$-algebras, they are isomorphic as rings.  I would guess that the converse fails. Is there any example of $A$ and $B$ that are isomorphic as rings, but not as $k$-algebras?  The reason I came up with this question is the following. Two affine varieties are isomorphic if and only if their coordinate rings are isomorphic as $k$-algebras. I am interested in finding an example where coordinate rings are isomorphic as rings, but the varieties are not isomorphic.


.plist and .ipa are files for iOS enterprise distribution of Apps.  I want to host them on my enterprise server for distribution. However, the server used does not allow these kinds of files.  I have uploaded them to the directory, when I try to download them I get the following error:    If I only change the extension to "txt", "rar" or any popular extensions. The file gets downloaded with no errors.  What is the problem? Is it a security measure for Windows server or just a blacklist/whitelist of files?  How to solve it.  Windows Server 2008

Is there a way to serve unknown file types in IIS 7?  I only want to do this for a single directory where execution is turned off and everything will be served as a static file.  As it is now, I have to add each file extension that I want to serve as a MIME type. I want to serve everything. How can this be done?


Possible bug (probably quickly fixed?): I get "page not found" pages when clicking any tag in the Stack Exchange search results.  Example:   Click on a tag of any answers it displays, example: [python]  It leads to:   And that page is displaying "Page Not Found" instead of a list of Python tagged questions and answers.  The root of the problem seems to be that the URL is not constructed with the question's site but with the search result (stackexchange.com) site instead, lacking the tags.  For example,  leads you to a result page, that shows today amongst its results the following question: "Why is a simulation of a probability experiment off by a factor of 10?"  If we click that title, we go on the math.stackexchange.com's site,  (), and there, clicking on "Python" rightfully leads to   However if we directly click the Python tag on the search result page on stackexchange.com, it tries do display:  (with no math.), and that one displays the page not found error.  Lastly, if the same page is displayed on, for example, the "Hot Questions" section: , clicking directly its "python" tag would lead to the proper site (math.stackoverflow.com) and not stay on "stackexchange.com".  I.e., direct clicking a tag is working properly on the front page of stackexchange.com, but not working properly on its search result pages.

If you search for something on "all sites" (using the searchbox at the top of , you'll reach the search results, e.g.  .  If you click directly on a tag on that page, e.g.        You get 404 Page Not Found error, e.g.     Steps to reproduce   Go to  and enter e.g. "keyforge" into the "Search all sites" field. Arrive at  Click on the "keyforge" tag below a search entry. Reach  (404 page not found)   Expected behaviour  Reach   System Info  Happens in both Firefox and Vivaldi browsers on Windows 10.


I was wondering why  today programmers place so much emphasis on API like DirectX, and even OpenGl. As far as I know, you'd need thousands of lines of code to make a simple 3D game using one of the aforementioned. But with game engines like Unity, the process is simplified and you can pretty much drag around shapes to create the graphics in lieu of programming it. So what I wanted to know: why is knowing APIs DirectX more preferable than being knowledgeable in Unity, other than the fact that with an API you can code it to be portable on other systems. To me it's like choosing Assembly over a high level language like C. Sure, with assembly I'll really understand what's happening at machine level, but it's take a lot longer to write programs using it and it would be a lot harder to debug.

I have observed that many big and well-known game developers often develop their own engines. Examples include Valve, Crytek, Ubisoft, Epic Games and Square-Enix.  Could it simply be because they can, or is it likely that existing engines do not meet enough requirements, so we would develop our own? I can hardly imagine a game that requires a specific engine. The likes of of Unity or Unreal are simply enough to make any kind of game; even if not, they have source code, which can be modified to satisfy even some extraordinary needs.    Why would a game developer write their own engine instead of using existing ones?


When I was doing my math team training, I encountered a hard question again.     Let $x,y,z$ be positive integers that $x<y<z$ with $$\begin{cases} yz\equiv1\mod x\\ zx\equiv1 \mod y\\xy\equiv1\mod z\end{cases}$$Find all triples $(x,y,z)$ such that the above equation holds.   Coach's hint     First, if one of the variable equals to $1$, then at least one of the other variable equals $1$ (I don't know why, so please explain also), which contradicts with they are distinct.   I have no idea how to do the question. I just found that $(2,3,5)$ is a solution but I can't find any other solutions. But I can't find any prove to prove that there are no other solutions.  Thanks for any help!

Question:  let $x,y,z$ be postive integers and  $x\neq y\neq z$ such $$xyz|(xy-1)(xz-1)(yz-1)$$ Find all $x,y,z$,  my try: $$(xy-1)(yz-1)(xz-1)=x^2y^2z^2-xyz(x+y+z)+(xy+yz+xz)-1$$ then  $$\dfrac{(xy-1)(yz-1)(xz-1)}{xyz}=xyz-(x+y+z)+\dfrac{xy+zy+xz-1}{xyz}$$ so $$\dfrac{xy+yz+xz-1}{xyz}\in N$$ Then I can't get any further  I found $(x,y,z)=(2,3,5),(2,5,3),(3,2,5),(3,5,2),(5,2,3),(5,3,2)$such it, I don't know/have any other,  also How to prove it.  Thank you very much


I've been reading on the construct of considering antimatter as matter traveling backward in time, which seems like an useful tool.  There seems to be some discussion around this concept, if antimatter is "really" traveling back in time, but from what I can tell it becomes mostly semantic/philosophical.  To avoid that, for purposes of this question, I would like to dispose of the concepts of "moving" and "time."  So, instead of considering an electron to be a particle moving in space, lets consider it a string existing in four dimensions of spacetime.  i.e. matter/anti-matter annihilation/creation are just places this string changes orientation ala Feynman's explanation of bombardiers viewing switchbacks in a road.  With that preface, then, my question is about the interaction of antimatter and gravity.  The effect of gravity on antimatter appears to still be an unknown?  If we model gravity as a curvature in spacetime which affects the path of the string.  Then wouldn't that argue that matter and antimatter portions of the electron/positron string would be affected the same?  And, as we evaluate each 3D slice of spacetime, that electrons and positrons would both appear to "move" in the same direction due to gravity?  Am I thinking about things the wrong way or missing an argument?

Confinement of antihydrogen might help provide a future answer.


I want to find all $\lambda \in \mathbb{C}$ such that there exists an entire non-constant function $f$ with $f(z)=f(\lambda z)$ $\forall z \in \mathbb{C}$.  My idea was the following: Since $f$ must be entire on the whole complex plane it can be represented as taylor series around $0$. So I get then in total  \begin{align*} \sum\limits_{n=0}^\infty \frac{f^{(n)}(0)}{n!}z^n=f(z)=f(\lambda z)=\sum\limits_{n=0}^\infty \frac{f^{(n)}(0)}{n!}\lambda^{n}z^n. \end{align*}  Now I (hope I can) conclude that  \begin{align*} f^{(n)}(0)=f^{(n)}(0)\lambda^{n}. \end{align*} Therefore, either $f^{(n)}(0)=0$ or $\lambda^{n}=1$ must hold.  First I conclude that $|\lambda|=1$ must hold, therefore $\lambda=e^{i\theta}$ for some $\theta \in [0,2\pi].$ If now there exists $n\in \mathbb{N}$ such that $\theta=\frac{2\pi}{n}$ then I have $\lambda=e^{i\frac{2\pi}{n}}$ and therefore $\lambda^n=1$. For such functions I might be able to define a entire function $f$, such that all derivates in $0$ vanish except all $kn$ derivatives in $0$.  I just wonder if those are all and my thoughts were correct? Thanks in advance.

For which $a \in \mathbb{C} -\ \{0,1\}$ does the equation $f(z) = f(az) $ has a non constant solution $f$ with $f$ being analytical in a neighborhood of $0$.  My attempt:  First, we can see that any such solution must satisfy:  $f(z)=f(a^kz)$ for all $k \in \mathbb{N} $.  If $|a|<1$:  The series $z_{k} = a^k$ converges to 0 which is an accumulation point, and $f(z_i)=f(z_j)$ for all $i, j\in \mathbb{N} $. Thus $f$ must be constant.  If $|a|=1$:  For all $a \neq 1$ , $f$ must be constant on any circle around $0$, so again $f$ must be constant.  My quesions are:   Am I correct with my consclusions?   Also, I'm stuck in the case where $|a|>1$. Any ideas?  Thanks


how long does it take to install play on linux via the terminal? I got as far as the end user agreement and nothing has happened past that


I have the following setup:  main.cpp:  int main() {     vector <Tour> tourList;     Tour* tour_ptr;      for (unsigned int i = 0; i < tourList.size(); i++)     {         tour_ptr = &tourList[i];         tour_ptr->display();     } }   Tour.h:  class Tour {    public:     virtual void display(); };   Tour.cpp:  void Tour::display() {     cout << "Tour ID: " << getID() << "\n";     cout << "Description: " << getdescription() << "\n";     cout << "Tour Fee: $" << getfee() << "\n";     cout << "Total Bookings: " << getbookings() << "\n\n"; }   GuidedTour.h:  class GuidedTour : public Tour {     public:             void display(); };   GuidedTour.cpp:  void GuidedTour::display() {     Tour::display();     cout << "Max Tour Group Size: " << getMaxTourists() << "\n";     cout << "Tour Guide: " << getGuideName() << "\n";     cout << "Tour Date: " << getTourDate() << "\n\n"; }   GuidedTour inherits from the Tour class, and I've specified the display() function as virtual in the base Tour class, but for some reason, the GuidedTour display() function never gets called, only the base function gets called every time. What am I doing wrong?

Someone mentioned it in the IRC as the slicing problem.


I was working on some code recently. Here's the gist -   class Student {    private String name;    private List<Performance> performances; }  class Performance {    private Student student;    private List<Integer> perfData; }   Student & Performance have a circular dependency. Is this bad? How do we prevent / break this up without losing the ability to find all performances of a Student and given a Performance map it back to a Student.

Given an aggregation of class instances which refer to each other in a complex, circular, fashion: is it possible that the garbage collector may not be able to free these objects?  I vaguely recall this being an issue in the JVM in the past, but I thought this was resolved years ago.  yet, some investigation in jhat has revealed a circular reference being the reason for a memory leak that I am now faced with.  Note: I have always been under the impression that the JVM was capable of resolving circular references and freeing such "islands of garbage" from memory.  However, I am posing this question just to see if anyone has found any exceptions.


Since "information" is an uncountable-noun and "references" is a countable noun, which sentence is correct?      Please let me know if any additional information or references are needed.     Please let me know if any additional information or references is needed.

We always get work done, regardless of what mood Bill or I is/am/are in.   Which form of 'be' would be used here?


There's a student in my class who obviously has some serious body hygeine issues. To preface, this is a fairly packed class -- about 60 students in a small lecture room.  The class is about 2 hours long. The problem has been so bad that when the student comes up to ask a question the stench hits hard. The problem is so bad lately that in the past month, people will leave a seat distance away from this one person, even standing up for the entirety of the lecture just to avoid sitting next to this person when the only seats available are next to the person.   I don't know how to approach him and to ask that they take care of their body. Or will I be a prude if I do try to get him to shower? Maybe it's a unique body issue that he can't fix (unlikely), but I really want to solve this before exams come up, which are going to cause issues. No one has come up to talk to me privately about it but the problem is incredibly obvious.  What should I do?

I teach engineering at a community college in the US. I currently have a student with very poor hygiene. He stinks pretty badly, has obviously greasy hair, doesn’t change his clothes frequently, and I usually seat him in the back of the room (during exams and labs, when I have power over seating arrangements) so I don’t have to smell his (relatively strong) body odor.  This student has also spoken with a colleague of mine about his low self-esteem. He’s worried that he isn’t making friends, and doesn’t know if the people he hangs out with are hanging out with him because they want something from him (help with classwork) or because they are truly friends.   In my opinion, this student follows me around like a puppy, and he tries too hard to impress people (students and faculty alike). I am a young-ish female faculty member and I try to create very large boundaries, especially with my male students. As an example, he frequently finds the need to explain to me (in way too much detail) why he gets questions wrong on exams (I don’t care, and I don’t need to know, which I’ve told him several times with no success).  So, I would like to mention to this student that his hygiene is off-putting and isn’t helping him out in the friends department. However, because he already follows me around like a puppy dog, I don’t want to encourage any more interaction from him. Additionally, it frankly embarrasses me to have to bring up hygiene issues with somebody in their late teens / early twenties. How can I bring this issue up while still maintaining my boundary as a female faculty member who doesn’t want her male students following her around and asking her for advice all the time?  I was hoping that I would be finished up with this student by now, but I am the only professor who teaches Electrical Engineering courses, so I can’t recommend that he take classes with someone else, or ask another colleague to discuss this with him. He will be taking another of my courses next semester and I don’t personally know any of his other intended professors for next semester to ask them to bring it up.


Recently, (on meta), I was able to answer  30 seconds after it was closed.  Close time:  2013-12-05 02:37:22Z Answered at: 2013-12-05 02:37:52Z   This is fine. It is not a bug, rather it is  as pointed out .  While answering the question, there seems to be an interval in which (web sockets?) check if a question has been closed or not. If the check returns true, you are presented with the following message:          After closing some questions, I found that the interval seems to be under 1 minute. (I got ~22 seconds, ~49 seconds, and ~13 seconds when testing)  In other words, if you are typing an answer to a question, you have less than a minute to submit your answer - assuming the question has been closed. You will then be presented with the message above and the submit button will now be disabled.  <input id="submit-button" type="submit" disabled="disabled">         There are no evident problems with this. It seems to work well; however, if you edit the HTML and remove the disabled="disabled" attribute, you can bypass this and submit an answer.  Here is  on SO where I did this. (10k users only - I deleted my answer)  Close time:  2013-12-05 19:11:28Z Answered at: 2013-12-05 19:41:06Z   By removing the disabled attribute, I was able to submit an answer ~30 minutes after the question was closed.  Should this be allowed or not?  from Jan 2011, Jeff points out:     the grace period for answer submission is now 4 [hours] after after question closure   Yes, the quote does say after twice.  Despite the fact that this comment was written ~3 years ago, there is still a 4 hour grace period in place. After sitting on a particular answer for ~5 hours, I failed to submit an answer and was presented with the following:        This grace period is intended for people already answering a question before it has been closed. So why is the submit button immediately disabled upon being notified that the question has been closed? This defeats the entire purpose of a grace period. Especially since it can be bypassed.

Question:   Answer:   The question was closed at 11:57:57 (according to the hover-over-"x-mins-ago" bar) and the answer was posted at 12:16:35. It's a fairly lengthy answer, so it's possible that it was started to be written before it was closed but I swear I've started to answer a question then I got a banner along the top saying "this question has been closed" and the answer was no longer post-able.


I took my daughter and son for a ride in there Red Rider Wagon on the weekend. We went down a small incline on one block in our neighborhood. My daughter, who is 5 years old, asked me in her own way, what effect does the mass of the kids in the wagon and the incline of the hill have on their speed?

If mass is added to a toy car (29.7g) and dropped down a wooden ramp would it affect its speed making it go faster? I know friction comes in to play to, so if you could give me an answer or an equation to show this that would be.


I'm making a CMS and trying to convert post links to pretty ones like so:  Original Link:  http://localhost/index.php?id=13&category=Uncategorized&title=just-a-link   Converted Link:  http://localhost/13/Uncategorized/just-a-test   I'm using Apache2 on Linux Mint and my website is located in:  var/www/html   I loaded mod_rewrite using sudo a2enmod rewrite then restarted apache2.  my apache2 config file is /etc/apache2/apache2.conf inside it i have:  <Directory />     Options FollowSymLinks     AllowOverride None     Require all denied </Directory>  <Directory /usr/share>     AllowOverride All     Require all granted </Directory>  <Directory /var/www/html>     Options Indexes FollowSymLinks     AllowOverride All     Require all granted </Directory>  #<Directory /srv/> #   Options Indexes FollowSymLinks #   AllowOverride All #   Require all granted #</Directory>   and here is my .htaccess file located in var/www/html/.htaccess  RewriteEngine On RewriteRule ^([^/]*)/([^/]*)/([^/]*)$ /single.php?id=$1&category=$2&title=$3 [L]   I have also restarted apache2 several times, but it just doesn't work.  Here is the loaded modules from phpinfo, (you can see that mod_rewrite is loaded) (pls see two images below to understand what problem i'm having)  core mod_so mod_watchdog http_core mod_log_config mod_logio mod_version mod_unixd mod_access_compat mod_alias mod_auth_basic mod_authn_core mod_authn_file mod_authz_core mod_authz_host mod_authz_user mod_autoindex mod_deflate mod_dir mod_env mod_filter mod_mime prefork mod_negotiation mod_php5 mod_rewrite mod_setenvif mod_status   If i directly take $_GET values from url without mod rewrite it works but with pretty urls I can't get $_GET values anymore.  not pretty:   pretty:

This is a  about Apache's mod_rewrite.   Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This includes such things as:   Changing HTTP to HTTPS (or the other way around) Changing a request to a page which no longer exist to a new replacement. Modifying a URL format (such as ?id=3433 to /id/3433 ) Presenting a different page based on the browser, based on the referrer, based on anything possible under the moon and sun. Anything you want to mess around with URL   Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask!  How can I become an expert at writing mod_rewrite rules?   What is the fundamental format and structure of mod_rewrite rules? What form/flavor of regular expressions do I need to have a solid grasp of? What are the most common mistakes/pitfalls when writing rewrite rules? What is a good method for testing and verifying mod_rewrite rules? Are there SEO or performance implications of mod_rewrite rules I should be aware of? Are there common situations where mod_rewrite might seem like the right tool for the job but isn't? What are some common examples?   A place to test your rules  The  web site is a great place to play around with your rules and test them. It even shows the debug output so you can see what matched and what did not.


Using ajax i request a authenticationID like this:     This is wrong because the real HTTP-Transfer is this:    (By the way: response-type is "application/json;charset=UTF-8")  I see a clash between  -1369082024195183657 and  -1369082024195183600   How to prevent the rounding or is it a bug?

Is this defined by the language? Is there a defined maximum? Is it different in different browsers?


I'm a beginner in SQL however I have two tables one LibraryTable where I have list of songs, and another table called Playlist, I'm using netbeans to program a prototype jukebox, and I can add songs from the Library to my playlist, and I can increment playcount of all the song that where added to the playlist, however both LibraryTable and Playlist have a column called playcount, I want know how I would go about updating the playcount column in LibraryTable with the the playcount column in my Playlist table.

I have a database with account numbers and card numbers. I match these to a file to update any card numbers to the account number, so that I am only working with account numbers.   I created a view linking the table to the account/card database to return the Table ID and the related account number, and now I need to update those records where the ID matches with the Account Number.  This is the Sales_Import table, where the account number field needs to be updated:  LeadID  AccountNumber 147         5807811235 150         5807811326 185         7006100100007267039   And this is the RetrieveAccountNumber table, where I need to update from:  LeadID  AccountNumber 147         7006100100007266957 150         7006100100007267039   I tried the below, but no luck so far:  UPDATE [Sales_Lead].[dbo].[Sales_Import]  SET    [AccountNumber] = (SELECT RetrieveAccountNumber.AccountNumber                            FROM   RetrieveAccountNumber                            WHERE  [Sales_Lead].[dbo].[Sales_Import]. LeadID =                                                  RetrieveAccountNumber.LeadID)    It updates the card numbers to account numbers, but the account numbers gets replaced by NULL


Package graylog-web 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 'graylog-web' has no installation candidate

I am trying to setup  on Ubuntu 14.04. I tried to find out installation steps on internet I found few links. but their method of installation is manual I mean installation from the source. and I don't want to follow installation from source because posts are old, some are talking about graylog2(I could not found difference between normal graylog and graylog2), their source package is old so there configuration files are not matching with latest configuration files.  so I decided to setup latest greylog from official documentation at      I have installed latest  and . after that I followed steps to install graylog-server and graylog-web from official documentation.    $ wget https://packages.graylog2.org/repo/packages/graylog-1.0-repository-ubuntu14.04_latest.deb $ sudo dpkg -i graylog-1.0-repository-ubuntu14.04_latest.deb $ sudo apt-get install apt-transport-https $ sudo apt-get update $ sudo apt-get install graylog-server graylog-web   I am able to see configuration files after installation  /etc/graylog/server/server.conf /etc/graylog/web/web.conf   I am able to see other files at   /usr/share/graylog-server /usr/share/graylog-server/bin /usr/share/graylog-server/graylog.jar /usr/share/graylog-web /usr/share/graylog-web/bin/ /usr/share/graylog-web/conf   I configured /etc/graylog/server/server.conf and /etc/elasticsearch/elasticsearch.yml with help of  and able to run graylog-server by running     java -jar /usr/share/graylog-server/graylog.jar server   this shows me   Started REST API at <http://127.0.0.1:12900/ Graylog server up and running.   After that I am not understanding how to setup graylog-server and graylog-web properly because these steps are not complete. I will appreciate if someone could give clean steps for proper setup. thanks in advance


Would like to generate some random strings to be used as database keys.   Essentially these will be UUIDs, however they do not need to conform to any particular spec aside from the necessary 122-128 bits of randomness.  Most of the code will run in a browser. As I understand it, Javascript running with a browser cannot be trusted to properly seed its random number generator. Instead I was hoping to seed the random number generator with some random data from the server, then generate multiple "UUIDs" starting from that seed.  Is there a good random number generator that can be used for this purpose?

The JavaScript  function returns a random value between 0 and 1, automatically seeded based on the current time (similar to Java I believe).  However, I don't think there's any way to set you own seed for it.  How can I make a random number generator that I can provide my own seed value for, so that I can have it produce a repeatable sequence of (pseudo)random numbers?


We are currently using SVN as our version control, I was asked to evaluate git, I found it to be a great version control and would like to migrate one of our projects into it. I searched the internet for migration tools, and was hoping to pick this community brain as to which tool is better. the SVN check in history must be migrated as well, this is a must have feature.  Thanks in advance.

I read the Git manual, FAQ, Git - SVN crash course, etc. and they all explain this and that, but nowhere can you find a simple instruction like:  SVN repository in: svn://myserver/path/to/svn/repos  Git repository in: git://myserver/path/to/git/repos  git-do-the-magic-svn-import-with-history \ svn://myserver/path/to/svn/repos \ git://myserver/path/to/git/repos   I don't expect it to be that simple, and I don't expect it to be a single command. But I do expect it not to try to explain anything - just to say what steps to take given this example.


Recently in my class, we used the Bohr model to consider the motion of the nucleus about the center of mass of the electron-nucleus system. I understand that this also happens in the Earth-moon system, where the Earth is kind of wobbling along a point, i.e. the COM is actually inside the surface of the Earth. Our teacher told us to quickly calculate the radius and speed of the electron, and that we can simply substitute the reduced mass of the electron in the electron-nucleus system in the original equation (which didn't consider nuclear motion).  I have tried my best to derive it using four equations (centripetal force on electron and nucleus, angular momentum conservation, and com) but I can't get the expression.

Why is a proton assumed to be always at the center while applying the ? Isn't it a quantum particle?


Sorry for my bad English.   I have a problem with removing the space between left bracket and multiple root square.  I use code   \documentclass{article}  \usepackage{amsmath}  \usepackage{letltxmacro}  \LetLtxMacro{\oldsqrt}{\sqrt}  \renewcommand{\sqrt}[2][]{\oldsqrt[#1]{#2}}   \begin{document}  $\left(\sqrt{3} \right)$ $\left(\sqrt[3]{4}\right)$    \end{document}   But only space in the left one got removed.

This code  \documentclass{article} \usepackage{amsmath} \begin{document}     \[ J(\sqrt[n]{x}) \] \end{document}   compiles into this:    The spacing after the opening parentheses is ugly. What's the proper way to fix this?


I have been a member on StackOverflow for years, but have never been extremely active. I'm trying to get a little more active, but when I go to the "Unaswered" section on StackOverflow, I get questions tagged with tags I setup years ago. These questions are no longer extremely relevant to me, so I'd like to setup new tags to help filter the Unaswered questions. I saw how to change the tags to ignored, but that doesn't remove them from the view, it just grays them out.

What are watched tags and ignored tags? How do they work? What are tag subscriptions? What are interesting tags? On Stack Overflow, the content of the main page question list appears to be influenced by watched and ignored tags. How does that work?   For more information, see "" in the .


Find a vector equation and parametric equations for the line segment that joins $P$ to $Q$. Here $P(1,-1,7)$ and $Q(7,5,1)$.   I have tried to find $r(t)$ by using the formula $r(t)=p+t(p-q)$ but it is wrong. I am making a stupid mistake.

Suppose that $P = (1,1,7)$ and $Q = (8,6,1)$. Inside parenthesis are x-coordinate value, y-coordinate and z-coordinate. The question is to find vector and parametric equation for a line segment.   Now, I used equation that goes like $(1-t)<1,1,7>+t<8,6,1>, where, 0\leq t\leq 1$.   But, the answer says that I am wrong. So, I am wondering what is going on.   Also, why do we write parametric equations? Are they really different from vector functions anyway?   If vector function is $<2t,3t,1>$, according to my knowledge, parametric equations would be $x(t)=2t, y(t)=3t, z(t)=1$ ....


The table cards were Q,Q,9,9,4  All four suits were on the board.  Player one had Q,3.  Player two had 9,8.  Which player wins?

In Texas Hold'em poker, there are some cases where a particular card, often called kicker, acts as a tiebreaker between players to determine who wins the pot, or if the pot has to be shared.  For some combinations such as three or four of a kind, there is no doubt: the kicker is the 5th card of the chosen combination, and determines the winner.  Example     Alice has 7 and 10   Bob has 7 and K   On the board are 7, 7, 2, 3, 4   In that case, both have a three of a kind. But because Bob has a king and Alice only a 10, he wins.  Most of poker websites explaining the rules clearly mention the role of the kicker applying to three of a kind and double pairs. But much fewer say something about colors, straights and full houses, and I found many contradicting answers. I also asked the question to some used online poker players and they also gave me contradicting answers.  I have tried to search for official tournament rules, but most of them only explain what happens with bad behaviors, bad deals, incorrect or confusing betting, showing cards when you shouldn't, acting when it's not your turn, etc. without mentioning subtleties about combinations at all.  To simplify my question, I will take three examples; I think it's better to start with examples before getting to the general answer if one exists. So, what's happening in the following 3 examples? Could you give a more generalized answer?  Example 1 - Flushes     Alice has 2♣ and 3♣   Bob has 4♣ and 5♣   On the board are 6♣, 8♣, 10♣, 2♥, 5♦   Contradicting answer 1: it's a tie, because the highest card included in the flush is the 10, which everybody chooses to include in their 5 showdown cards. Contradicting answer 2: Bob wins, because he has the greatest private card that is part of the flush  Example 2 - Straight     Alice has 6 and K   Bob has 6 and J   On the board are 4, 5, 7, 8, 10   Contradicting answer 1: it's a tie, because the greatest card in the straight is the 8 for both Alice and Bob Contradicting answer 2: Alice wins, because she owns an extra king, compared to the jack of Bob  Example 3 - Full house     Alice has 3 and 7   Bob has 3 and 6   On the board are 3, 3, 2, 2, 5   Contradicting answer 1: it's a tie, because one is supposed to choose only five cards to make a combination, and a full house is already five cards. There couldn't be any kicker, and thus their showdowns are strictly equals. Contradicting answer 2: Alice wins because of her extra 7, compared to the 6 of Bob  Thank you very much for your answers.  Note: I'm unable to post next to you, so I edit my own post; strange not be able to answer to an answer.  Ok, So if I summarize what you are saying :   In the flush case, Bob wins because at some point, their hand differs. Technically, I can continue comparing the highest private card to decide who wins. I had it correct. In the straight case, if the highest card of the straight is public, then it's technically always a tie, no matter what the players had as second private card (asuming that only one of the two cards was part of the straight). In a full house if both players have the same triplet and the same pair, it's always a tie, no matter what the players had as second private card (assuming again that only one of the two was part of the full house).   Please confirm me that what I summarized is correct.  Thank you for your answer.


Let $m,n\in\Bbb N$ be positive with $m>n$. Prove that $\nexists A\in M_{mn}\ \&\ B\in M_{nm},\ AB=I_m$ (The $m\times m$   Identity matrix)   I have noticed that this is not true if the matrices are multiplied the other way. That is, say $B=\begin{bmatrix} 1 &0  &0 \\   0&  1& 0 \end{bmatrix}$ and $A=\begin{bmatrix} 1 &0 \\ 0&1 \\ 0&0 \end{bmatrix}$ Then the product $BA$ yields $I_2$, But not the other way. Here this does not contradict with the statement in the question because of the order of the matrix mentioned in the question (that is the one with a higher number of rows should be multiplied first). So, a proof for the given question is highly appreciated

Let $m > n$ be positive integers. Show that there do not exist matrices $A ∈ R_{m×n}$ and $B ∈ R_{n×m}$ such that $AB = I_m$, where $I_m$ is the $m × m$ identity matrix  If someone could explain it with an example, it will be appreciable.


I'm trying to install Ubuntu 16 on my Acer Travelmate that came with a pre-installed Windows 10.  I installed Ubuntu from an USB device along with Windows 10. The installation was successful, but Windows 10 keeps booting every time.  I followed some instructions I came accross and I ensured that:   UEFI is enabled Secure Boot is disabled the Fast Startup option in Windows 10 is disabled the boot sequence is in the right order   No matter in which order I boot the hard drives in, it will always result in booting Windows and not showing the boot menu.  Also, I used  to fix this problem. It didn't help but gave me some (hopefully) useful information:   What could I try next?

I installed Ubuntu 14.04 onto my Acer Aspire E15. The PC has a 500 Gigabyte HDD.   During the installation it divided the HDD into separate partitions. However every time I turn on the PC it goes directly into Windows 8.1. It doesn't allow you the opportunity to select which OS you want to use.   Question 1: How do I set the PC so it will allow me to select the OS?  Question 2: And if #1 isn't possible. How to I remove Ubuntu from the PC and recover the partition for Windows


Prove that for a subset $A$ of $\mathbb{R}$, if $|A|=\omega$ then $|\mathbb{R}-A|=2^{\aleph_0}$.  Clearly, $|\mathbb{R}-A|\le 2^{\aleph_0}=|\mathbb{R}|$. It suffices to show that for a countable $A\subseteq \{0,1\}^{\mathbb{N}}$ we have $\{0,1\}^{\mathbb{N}}\le \{0,1\}^{\mathbb{N}}-A$, since $\mathbb{R} \sim \{0,1\}^{\mathbb{N}}.$ The idea: Somehow identify $\mathbb{N}$ in $\{0,1\}^{\mathbb{N}}$. Since $|A|\le \omega$, we can then identify $A$ in $\mathbb{N}$ (all within $\{0,1\}^{\mathbb{N}}$). Thus, we will be able to 'transfer' the elements of $A$ to new elements of $\mathbb{N}$ (in $\{0,1\}^{\mathbb{N}}$). An element not in $A$ is mapped to itself. This way, after we remove $A$, we will still have 'a copy of' $A$ in $\{0,1\}^{\mathbb{N}}-A$, proving that $\{0,1\}^{\mathbb{N}}\le \{0,1\}^{\mathbb{N}}-A$. Is this idea OK? This problem is given before the introduction of AC, and therefore, before the proposition that there is always an injection from $\mathbb{N}$ to an infinite set $X$. This means that, in principle, I can't use the fact to identify $\mathbb{N}$ in $\{0,1\}^{\mathbb{N}}$. Are there more elementary approaches to this problem? Thanks.

I'm currently reading a little deeper into the Axiom of Choice, and I'm pleasantly surprised to find it makes the arithmetic of infinite cardinals seem easy. With AC follows the Absorption Law of Cardinal Arithmetic, which states that for $\kappa$ and $\lambda$ cardinal numbers, the larger infinite and the smaller nonzero, then $\kappa+\lambda=\kappa\cdot\lambda=\max(\kappa,\lambda)$.  I was playing around with the equation $k+\aleph_0=\mathfrak{c}$ for some cardinal $k$. From the above, it follows that $\mathfrak{c}=k+\aleph_0=\max(k,\aleph_0)$, which implies $k=\mathfrak{c}$.  I'm curious, can we still show $k=\mathfrak{c}$ without the Axiom of Choice? Is it maybe possible to bound $\mathfrak{c}-\aleph_0$ above and below by $\mathfrak{c}$? But then I'm not quite sure such algebraic manipulations even mean anything, or work like that here. Certainly normal arithmetic does not! Thanks.


I want to install Windows 10 on my HP with current Ubuntu OS.I have made USB bootable   I have change boot order on my BIOS but when I insert USB nothing happens,I was expecting installation process.What is the problem?

I'd like to create a Windows bootable USB stick, but I don't have a Windows machine with me at the moment to do so. How could I achieve the same using Ubuntu?


sudo blkid and cat /etc/fstab info  I have tried options given below, but nothing worked.  After logging in, type "journalctl -xb" to view system logs,  "systemctl reboot" to reboot, "systemctl default"  or ^D to try again to boot into default mode".    PS:  [UNSUPP] Starting of Arbitrary Executable File Formats File System Autmount Point not supported. [FAILED] Failed to start Load Kernel Modules.

The latest kernel is causing problems with my sound, which worked fine with an older version. As I have only Ubuntu installed, Grub is not getting displayed while booting. How can I manually choose my kernel version while booting?


Whenever I try to set the performance mode of my Nvidia 525M gpu from adaptive to performance, it actually works, but only until I reboot my PC. After a reboot/relog I have to do it all over again via nvidia-settings.    What is the official/safest way to make that change permanent?  Why doesn't nvidia-settings save the performance mode it has been set to? Is it a bug?   I am using the official Nvidia 331 drivers provided by Ubuntu 12.04.4 64-bit LTS.  Thanks!

I've been trying to turn off nvidia PowerMizer (that is set the performance level to 2 - max). I can do it with nvidia-settings, but it goes back to default after restart. Here's what I have tried:   nvidia-settings as root - saving settings to xorg.conf and ~/.nvidia-settings-rc adding options nvidia NVreg_RegistryDwords="PerfLevelSrc=0x2222" to /etc/modprobe.d/nvidia.conf - nothing happened adding Option "RegistryDwords" "PowerMizerLevel=0x2" "PowerMizerLevelAC=0x2" to xorg.conf under device section : gdm did not start up - had to delete xorg.conf to recover adding Option "RegistryDwords" "PowerMizerEnable=0x0" to xorg.conf: nothing happened   Any idea how I can do this?     P.S. Ubuntu 12.10


I have a table with 2 columns plateno and alerts.  table Data  plateno    alerts   A         1   B         2   C         2   A         3   B         2   A         4   A         1   Now I want to get the result like this:  alerts->   1  2  3  4 --------------------------- A          2  0  1  1 B          0  2  0  0 C          0  1  0  0   I mean 'A' has two alerts of type '1',1 alert of type '3' and '4'...and so on..  Here is my query I am trying with  Select count(alert)  from mytable  group by plateno

Trying to find some simple SQL Server PIVOT examples.  Most of the examples that I have found involve counting or summing up numbers.  I just want to pivot some string data.  For example, I have a query returning the following.  Action1 VIEW   Action1 EDIT   Action2 VIEW   Action3 VIEW   Action3 EDIT     I would like to use PIVOT (if even possible) to make the results like so:  Action1 VIEW EDIT   Action2 VIEW NULL   Action3 VIEW EDIT     Is this even possible with the PIVOT functionality?


How to show that $\sqrt{p}$ is an irrational number, given that $p$ is a prime number?  $\sqrt{p}=\frac{a}{b}$  $p=\frac{a^2}{b^2}$

If $p$ is a prime number, then $\sqrt{p}$ is irrational.  I know that this question has been asked but I just want to make sure that my method is clear. My method is as follows:  Let us assume that the square root of the prime number $p$ is rational. Hence we can write $\sqrt{p} = \frac{a}{b}$. (In their lowest form.) Then $p = \frac{a^2}{b^2}$, and so $p b^2 = a^2$. Hence $p$ divides $a^2$, so $p$ divides $a$. Substitute $a$ by $pk$. Find out that $p$ divides $b$. Hence this is a contradiction as they should be relatively prime, i.e., gcd$(a,b)=1$.


I have a 3x3 zero matrix a = [ [0,0,0], [0,0,0], [0,0,0] ]  Suppose I want to add 1 to the first element of the matrix. I use : a[0][0] += 1  I thought it would add 1 to the a[0][0]th element and the matrix a would be : a = [ [1,0,0], [0,0,0], [0,0,0] ]  But , in reality the matrix is now : a = [ [1,0,0], [1,0,0], [1,0,0] ]  Why is 1 added to a[0][1] and a[0][2] also ? Full snippet : a = [[0] * 3] * 3  a[0][0] += 1 print(a)

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


My 12 month old has been waking at 4-4:30 am for quite some time. He usually doesn't require anything to go back to sleep but just wakes crying and grizzly. Sometimes I go in and give him his dummy other times he still has his dummy so I just lay him back down and he goes back to sleep until about 7am. I cannot work out why he is waking at this time and how to get him to just sleep through.

We are trying to get our 12 month olds sleep routine improved now that both of us will be returning to work.  We've been working on getting the settling routine sorted out each night, and haven't quite yet got to him falling asleep on his own, but he does now settle quickly at the end of the routine in our arms.  We will be moving to trying to get him to settle in his cot soon.  Once settled he will tend to do about 3-4 hours in his cot before waking screaming.  When cuddled he will settle down in about 10 minutes and can generally be put back in his cot.  However often he will wake several times.  Last night he went down at 8, woke at 10, woke at 12, woke at 1am.  Each time putting him back in his cot.   At that point we gave up and brought him into our bed where he slept through to 6am.  When waking up he is often on either all fours or standing in the cot whilst screaming.  The main problem is that he's no longer sleeping "solidly" and will often poke and prod his mum in his sleep, and she therefore doesn't get a great nights sleep.  And with us both back to work we both need our sleep as much as possible.


My iPhone 6 is locked to icloud,, it has never been synchronized with iTunes i need a way to backup it,, is there any modded iTunes or any program can help me.

I am the owner of an iPhone 4s. One day I tried to put my SIM card into my iPhone and the next thing I saw on my phone was "Activation Required".  Unfortunately, I have forgotten my iCloud Apple ID and Password. I tried to find it with iForgot but it is not finding my name. I created the iCloud email. How can I find it and regain access to my iCloud account?


I am aware of why the Axiom of Choice is equivalent to the the statement that every surjection splits. However, I don't see why we don't also need AC to show that every injection splits.  In particular, for any injection $f$, we need to pick some element in the domain of $f$ to which elements in the codomain of $f$ are sent in the case that those elements are not in the image of $f$. This shows moreover that left inverses are not in general unique. How can we do this without AC?    EDIT: My real issue here is in the comparison of the proof of "$f: A \to B$ is a surjection implies $f$ has a right inverse" with the proof "$f: A \to B$ is an injection implies $f$ has a left inverse", and the use of the Axiom of Choice therein.   In particular, one apparently need not invoke AC in the injection proof to select in advance a single element $a_0 \in A$ for which to send $b \in B$ in the case that $b \notin f(A)$. But then, in the same way, in the surjection proof surely one may select for each $b \in B$ a single element $a_b \in f^{-1}[\{b\}]$ which then determines a function $g: B \to A$ such that $fg = \text{id}$, all without AC? We know each $f^{-1}[\{b\}]$ is not empty, so pick an element in $f^{-1}[\{b\}]$ (in the same way we did so in the injection proof by picking $a_0 \in A$) and send $b$ to that element.

Suppose $f:X\rightarrow Y$ is a surjection and you want to show that there exists $g:Y\rightarrow X$ s.t. $f\circ g=\mathrm{id}_Y$. You need the AC to show this.  However, suppose $f$ is a injection and you want show there is $g$ s.t. $g\circ f=\mathrm{id}_X$. Then, according to my textbook, you don't need the AC to show this.  This is counterintuitive to me, because it's like you need a special axiom to claim that an infinite product of big sets is nonempty, while you don't need one to claim that an infinite product of singleton sets is nonempty, which seems smaller than the former.  So why don't you need the AC to show the latter?  EDIT: $X$ should be nonempty.  EDIT 2: I realized (after asking this) that my question mostly concerns whether the AC is needed to say that an infinite product of finite sets is nonempty, and why.


Is there a command directly in the QGIS field calculator that is equivalent to Excel's  (without exporting to a CSV file)?    I want to check whether the sum of items in the attribute table which fulfill a specific condition (same ID) is above or below a certain treshold.  =SUMIF(RANGE,CRITERIA,[SUM_RANGE])

I would like to calculate the sum of values in one column, based on values in another column. To illustrate my question I uploaded the picture below. The second column consists of zipcodes, the third total sales. I would like to know what the total sales per zipcode are? So in this case:  What is the sum of column three for column two's value 1023? Output then should be 4 (0+1+1+2+0). The sum for 1024 then should be 11,5 following the same logic.  As this is quite a large dataset I would like to have the QGIS field calculator (or any other tool) calculate a new field which states the total sales in the zipcode. So far I can't seem to get it working and was hoping someone here could help me.  As you can see I have some missing values, is this a problem in calculation? Perhaps good to mention is that it is a table.


As the title says, I want to remove the taxonomy slug from URL. Instead, I want to keep the post type slug. For example: I have a post type called "Books" (rewrite_slug = books) and a taxonomy called "Genre" (rewrite_slug = genre) which includes "Science fiction", "Drama", "Comedy" etc.   Right now I have two options which work:  site.com/books/genre/comedy/   and  site.com/genre/comedy/   I want the url to look like:  site.com/books/comedy/   Is there a simple rewriting rule for this?

I am having trouble working with WordPress rewrite rules, and could use some help.  I have a custom post type called _shows_.  All shows have a single custom taxonomy category _show-category_. A _show_ will never have more than one _show-category_.  I would like my urls to route in this manner:  www.mysite.com/shows/  =>  archive-shows.php  www.mysite.com/shows/%category%/ => taxonomy-show-category.php  www.mysite.com/shows/%category%/%postname%/ => single-shows.php   So as a real world example, lets say we have a _show-category_ "Foo" and a _show_ post titled "Bar" that has "Foo" as it's _show-category_. I would expect my WordPress app to look like this:  www.mysite.com/shows/foo/ => shows all posts under the foo category www.mysite.com/shows/foo/bar => shows the indivual post   I try to avoid plugins when possible, but am open to any solution.


I'm trying to get a nomenclature running in LaTeX. The problem is that the nomenclature never is printed. I got an example from :  \documentclass{article} \usepackage[utf8]{inputenc}  \usepackage{nomencl} \makenomenclature  \begin{document}  \nomenclature{$c$}{Speed of light in a vacuum inertial frame} \nomenclature{$h$}{Planck constant}  \printnomenclature \end{document}   Without printing errors this wouldn't even create a PDF.  I use Ubuntu 15.04, I have almost all texlive-packages installed, I compile using TexStudio and XeLaTex.  What must I do to get the nomenclature running?

I have used the package nomencl. In my code I have incorporated the \nomenclature as well. But when I compile, it is not showing me any results. My code is :  \documentclass[pdftex,12pt,a4paper]{report} \usepackage{nomencl} \makenomenclature \begin{document} ---page numbering and other things included----- \include{symbols} -----others--- \end{document}   symbols.tex  \chapter*{NOTATIONS} \addcontentsline{toc}{chapter}{Notations} \nomenclature{$G_e$}{Equivalent Shear Modulus} \printnomenclature   Shall I use \nomenclature while explaining the chapter. Will It give me the same results? like  \documentclass[pdftex,12pt,a4paper]{report} \usepackage{nomencl} \makenomenclature \begin{document} ---page numbering and other things included----- \include{symbols} \include{chap3-calculate_w} -----others--- \end{document}   symbols.tex  \chapter*{NOTATIONS} \addcontentsline{toc}{chapter}{Notations} \printnomenclature   chap3-calculate_w.tex  \chapter{SETTLEMENT RESPONSE OF GEOSYNTHETIC REINFORCED GRANULAR FILL SOFT SOIL} \label{chap:W} \section{INTRODUCTION} In this thesis, the methodology to determine an  Equivalent single layer shear modulus \nomenclature{$G_e$}{Equivalent Shear Modulus},$G_e$ value for a...etc   I am not getting the output in both these. Can someone help me with this?


sudo fdisk -l  sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set   How to access permission to sda ( Primary HDD )

I have run following command accidentally   sudo chown [username] -hR /   Now sudo su getting error:  sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set   How to Solve This?


Is there a way to log out of Stack Exchange?  Or does each community have its own log out?  I haven't found a way to log out in any of my accounts or the help page.

Per the title, where is the logout button?  All the existing questions I can find refer to the previous design of the site, where hovering over your name in the top bar brought up a menu.


I am stuck for weeks with the following problem:     Let $A$ and $x$ be $n \times n$ and $n \times 1$ matrices, respectively, with all entries real and strictly positive. Assume that $A^2 x = x$. Show that $A x = x$.   This was on the first problem set on a course of linear algebra based on the book written by Hoffman & Kunze. We haven't seen eigenvalues and eigenvectors yet. So, while any solution that uses anything more advanced than the first 3 chapters of that book is welcome (it may incentivize me to study something!), it does not solve the problem.  Can anyone help? Thanks!  EDIT: My question was marked as a exact duplicate of a question by Igor Caetano Diniz. While that is the exact same question, that post has one wrong answer and one answer that has a theorem that I haven't studied yet. So it doesn't solve my problem.

Let $A$ and $X$ be matrices $n \times n$ and $n \times 1$, respectively, with all entries real and strictly positive. Assume that $A^2 X = X$. Show that $A X = X$.   What I thought:  (i) $A^2 X = X \Rightarrow A (A^2 X) = A (X)$ for distributive law $ A(A^2 X) = A A (Ax) = AX \Rightarrow A^2(AX) = (AX)$, i.e., $A^2 Y = Y$ for $Y=AX$.  (ii) $A^2 X = X \Rightarrow (A^2-I)X = 0$. Be $X = (x_1,x_2,\ldots,x_n)^t$. So, $x_i > 0 \quad\forall i \in \{1,2,\ldots,n\}$. So, $det(A^2 - I) = 0 \Rightarrow det(A-I) = 0$ or $det(A+I) = 0$.  But, if $det(A+I) = 0 \Rightarrow (A+I)Y = 0 \Rightarrow AY = -Y$.   So $Y\neq X$ because if $A_{ij}>0 \quad and \quad x_i > 0 \Rightarrow AX \neq -X$  So, $det(A-I) = 0 \Rightarrow$ There is a vector Z that  $(A-I)Z = 0 \Rightarrow AZ = Z$.  So, I need conclude that Z = X.


In the last episode, Kanade graduated and disappeared. After that, there's a scene where Otonashi meets Kanade outside in the afterlife world. Did they reincarnate and meet again, or have they met before when they were still alive?

In Angel Beats, Kanade clearly entered the afterlife before even Yurippe did, yet Otonashi arrived later. Technically, Kanade must've died after Otonashi.  How is it possible that Kanade has Otonashi's heart?