How to find out what package contains some Perl module

I need to install some CPAN module on my Ubuntu computer. I want to install it from deb package so I need to find out what package contains that module.  Sometimes the solution for this task is pretty simple. For example if I need to install  I just convert the name to lowercase, change :: to - and add lib to the beginning and -perl to the end. The result is the package name libfile-find-rule-perl:  $ apt-cache search libfile-find-rule-perl libfile-find-rule-perl - module to search for files based on rules   But in other cases this is not working. I want to find deb package that contains . But apt-cache search libdebian-aptcontents-perl finds nothing.  Well, in the case of  I know that it is in the package dh-make-perl, but I want to know how to find what deb package contains the module I need.


Since math is a minimalistic science, what's the idea of defining such a thing like cosecant or secant?

As we all know, math is a minimalistic science. For example we don't put into the definition of differentiable functions that they have to be continuous. So my question is this:       What's the idea of defining such a thing like cosecant  or secant?  I have never seen their use in math or other science.


Unbounded Local Error: Why Does it occur when a global variable is redefined inside a function but not when it is merely referenced?

This question stems from curiosity rather than a need to solve some particular problem. Given the two snippets of code below, why does the first produce an unbounded local error while the second does not? They appear to have the same critical sequence of operations in my mind, but there must be some under-the-hood magic at work that I am missing.      x=5      def fun1():       x=x+2                # or x+=2       print x      def fun2():       z=x+2                       print z   I understand that to make the first function work, the global function must be passed. I just want to know what the interpreter does to make those two statements much more different than they seem. Thanks.   This question is different from similar questions in that it asks for the underlying cause of this behavior and not a solution for mitigating it.


Environment Path Variable Not working properly

I've edited my .bashrc file because of errors like the one below keeps popping every time I open a terminal.  Command 'ls' is available in '/bin/ls' The command could not be located because '/bin' is not included in the PATH environment variable.   So far I've tried( in my .bashrc file):   export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin exportPATH=/usr/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games   export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" export PATH=$PATH:/usr/bin   still, I've to enter explicitly one of the above-said commands in the terminal every time I open a new one. I'm using Ubuntu 16.04.   Any help will be appreciated.


Would Schroedinger's cat smell 50% like death?

If we left Schroedinger's cat in a superposition for a week would it begin to start smelling 50% like a dead cat and 50% like a living cat? Would the smell of death immediately disappear if we opened the box and saw that it was alive?  My hunch is that the box would need to be impermeable to smells but would like this confirmed.


Short story where a moved book in a library changes time

Caution, this one is a little complicated...  My girlfriend is searching for a book her father read long time ago. Here are the snippets I'm aware of:   The story was in a book containing multiple short stories The book is maybe from around the 70's The story has time travel or alternative timelines as topic   Here is what I know from the story:   When a book's position in a library is changed it causes real events to change. Due to this change, a civilization may rise or be destroyed This change is supervised from some sort of time-watcher, institution or similar   Thanks for your help


Will Portugual Know If I Was Deported From the UK?

Back in December I didn’t have a proper working visa for the UK, so I was sent back to America. Essentially, denied entry.   I’m going to Italy in March, but I stop in Portugul for the border check. If I have a totally new, fresh passport- will Portugual know I was deported? Will I run into any issues? I wasn’t banned from the UK, they just suggested I go home and try to come back but I did have my finger prints taken.   I’m going to Italy as a tourist and staying with a host family I met in September when I was there for three months, and come March I’ll be that family’s Au Pair.


If $f$ is integrable and bounded over $[\delta,1]$ for all $\delta \in (0,1]$ then is $f$ integrable over all of $[0,1]$ $?$

Let $f:[0,1]\rightarrow \mathbb R$  be  bounded and  integrable  on  $(\delta,1]$ . Is  $f$  integrable  on  $[0,1]$ $?$   I  thought  of  the  function  ${1}\over  {x}$  which  could  satisfy  the   condition  and  prove  in  negative  only  it  is  not  bounded  on  $[0,1]$  ,  in  fact  not  even  defined  at  $0$ .  I'm unsure where to go from here.  Thanks.


Are Stack Overflow chatrooms still available?

I've used chatrooms for Stack Overflow earlier. Is it still available? When I go to  I get the message above. It's happening for a few weeks or more.


Login screen loops unless you login as Guest

I am running a VMWare Player with a Ubuntu 12.04 LTS Precise Pangolin as Guest on my Windows 7. Sometimes I get the shutdown blue screen error in Windows, this time it happened when I was running the Player. When I restarted everything Ubuntu gave me the "Login Loop" on adminstrator login. I log in and there's this black screen where I can only read:  piix4...smbus:0.0.0.07.3 Host Smbus controller not enabled .    When I go to the prompt in root mode it fails to update and only upgraded, specially some plugins ( I think graphic plugins) which also appear in one an error message after quitting the prompt, but they´are successfully installed. They are not the error message. After that I have been working with the Fail/safe Mode recovery panel. When I try to update via Root I get errors like this: W:failed to fetch http://extras.ubuntu.com/ubuntu/dists/precise/release.gpg could not        resolve 'extras/ubuntu.com  There are 8 more like this referring to areas like: -archive/canonical.com -ppa.Launchpad.net -security.Ubuntu.com -Us.archive.ubuntu.com - release.gpg                         precise-updates/release.gpg                         precise_backport/release.gpg   Final Message: some index files failed to download.....they have been ignored or old files are used. The black screens most of the time pass by too fast for me to pick up any information. But in general I think I have done everything I was able to in the recovery panel including updating network and graphic packages and recovering filesystem packages and the basic stuff ( I am a beginner regarding Linux ) in the root prompt. Now I am stuck in this screen with graphic options: - Run in low-graphics mode just for one session - Reconfigure Graphics - Troubleshoot the error - Exit to console login  I am trying to choose to reconfigure graphics but the mouse disappears in the virtual machine screen and sometimes when options change it´s only the first and last option. But this happens from the blue without messages. This particular option menu is in the regular GUI style against a black screen in Terminal style. Really strange.


I have some value in variable v, how to check it's type?  Hint: it is NOT v.dtype.  When I do type(v) in debugger, I get   type(v) = {type} <type 'h5py.h5r.Reference'>   or  type(v) = {type} <class 'h5py._hl.dataset.Dataset'>   How to check these value at runtime?  "Check" means calculate boolean result, saying if the type is given.  UPDATE  In so called "duplicate" question, it is said, that to compare type one should use  type(v) is str   which implicitly assume that types are strings. Are they?


Changing the color and labels of a plot in a loop in pgf

I’m trying to plot a the first few functions in a sequence of functions. For now my code looks like that:  \begin{center} \begin{tikzpicture}     \begin{axis}[axis lines = left,                     xlabel = $x$,                      ylabel = $y$,                     xmin = 0,                     xmax=10,                     ymin=-0.1,                     ymax = 0.4,                     legend pos = outer north east];             \addplot[domain=0:10, samples=100, color=gray, dashed]{sqrt(2)/2*exp(-pi/4)};             \addlegendentry{$\sup_{x\in I}\card{f_n}$}             \foreach \n in {1,2,...,7}{ \addplot [domain=0:10, samples=500, color=red]{sin(deg(\n*x))*exp(-\n*x)}; }     \end{axis} \end{tikzpicture} \end{center} \end{document}   But as you can see in the code each plot is red. Is there a way so that each function is plotted with a different color while still plotting them with a loop ? In the same vein can I add a legend entry for each function the loop like f_1(x), f_2(x), ..., f_7(x) ? Changing the color for each plot is discussed here  but I couldn’t get what they did working, I don’t actually understand everything (ie what does \edef or \noexpand or \temp do) and I’m not looking necessarily at having a gradient of colors, I’m ok with random colors as long as they’re different. I havent used pgfplots for a while I’m not quite sure how to go about any of this. Any help is appreciated.


Store pictures as files or in the database for a web app?

My question is fairly generic and I know there might not be an 100% answer to it. I'm building an ASP .NET web solution that will include a lot of pictures and hopefully a fair amount of traffic. I do really want to achieve performance.  Should I save the pictures in the Database or on the File system? And regardless the answer I'm more interested in why choosing a specific way.  Many thanks, Stefan   DUPLICATE: , ,  and probably some others.    COMMENT: Thanks for many good answers. I will go for a file based solution even if I like the idea of having a 100% database driven solution. It seems that there are today good solutions to do what I want with databases etc but I have a few reasons for not doing it.   I will be on a hosted solution, I have huge amount of storage(10gb) but only 300mb for the database. It will cost a lot for extra storage in the DB. I'm not an DB expert and as well not in control of settings of the DB. A DB based solution might need custom configuration as it looks like.   If we will move to run the site on our own server I might consider a DB based solution. thanks, Stefan


It is my understanding that you should use the relative pronoun "who" when addressing people. So what would be correct for a group of people?   "Jessica is the head of several teams which work on ..." or  "Jessica is the head of several teams who work on ..."


If I charge 3 capacitors in series, then connect themin parallel, where does the remaining energy go?

I'll get into the math straight away $C_1, C_2, C_3$ each are charged to $q$. The energy is $$\frac{q^2}{2\left(\frac{1}{\frac{1}{C_1}\frac{1}{C_2}\frac{1}{C_3}}\right)}$$ $$\frac{1}{2}\left(\frac{q^2}{C_1} + \frac{q^2}{C_2} + \frac{q^2}{C_3}\right)$$  If I then connect them in parallel, the energy now is $$\frac{1}{2}\left(\frac{9q^2}{C_1 + C_2 + C_3}\right)$$ They are obviuosly not equal. Can someone tell me where the difference in energy goes (and also how it gets dissipated.)


Is it ever useful to indicate an edit in my post?

Very often you will find a section which looks like the following in a post:     Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.      Edit:      Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.   Find an example of such an edit  (edit #2).  I have mainly found two areas where this is used:   To provide a better answer/question, basically rendering the "old" part obsolete To add information    Highlighting which part of the post was added in an edit seems to serve one purpose, which is to help people who have already read the post quickly find what has changed.  But isn't the idea of Stack Exchange posts that they answer questions for everyone who might find them in the future? Why should they care about which part has been added as an edit? Shouldn't we strive to change our post to incorporate the new information in a natural way and deleting obsolete parts of the post?  I found myself removing these blocks often with edits since I don't see a reason how they could be useful. But they are so frequent that I started questioning myself as to whether I am right by doing so.   So my question is: Is there ever a situation in which it is better (not just OK) to simply append new information in an "Edit" block?


Is there an order to learning non-technical design theory I should follow?

TLDR; I already know how to use design software but I don't know how to design. Bottom Line: Is there a specific sequence to follow for a proper education in the soft skills of design (theory, concepts, process, etc.)? Background I'll start with a little background about me to show the motivation about the question, isn't really necessary to answer the question. I'm 23 years old and finishing my degree on engineering informatics. When I was 14 years old, I learn HTML/CSS. I can use a lot of Adobe Suite software to make a lot of things (PS, AI, Pr, etc..). Then, as time passed by, I started learning some computer science oriented things. I can make a website really fast, etc.. But, my problem is, I'm not in some kind of "design thinking". I like design (if I weren't getting an engineering degree I probably would have gotten a design degree). I like design a lot, and I would love to learn more of design. I would love to make "pretty things" by my own, as a designer does. But I can't study to get a design degree due to my priority list (I want to achieve other goals more in this moment of my life), but what I really want is to learn some design on my own. Long form question Is there some way to emulate a design degree/program with books and others static resources? In my 6 years of study I have taken everything from books. My teachers made everything faster, but I don't think that passing through a computer science degree was really necessary: books + internet + practice told me almost 95% of what I learned there. But there is a problem, as you can see in this question: . There are good books and bad books. And frankly, a lot of bad books. I didn't find a reliable list of design books. There are a lot of blogs with "list of books to learn things", but most of them are really just a list taken from somewhere else... For example, I could read this list , but I need to go in order, starting from the basics. So for that I could take graphic design courses, like this:  (or any other program, it's just an example) and try to learn from the topics that the program shows, but it is still unclear about what I should learn because there isn't, for example, a course in "color theory". They are more like "design I", "design II", "design III". I think I'm gonna need to search for the syllabus for a particular course. I really want to improve my design skills, but I don't want to get a degree in it.  I've been an autodidact all my life (see background) and at this point, I ask: My research I have searched a bit about this, and here on StackExchange there are a lot of question that are close, but not getting to the heart of the issue. : The answer is just a "look at those website's" (And okay, this could help a bit, but I don't think one will get to a degree level just looking on some websites, or it is?). : 2 or 3 books to learn design, the same as above. This could help a bit, but won't get me to a degree-equivalent level (I'm looking for something more like computer science's courses which have their own book for the topic. Does something like this exist in graphic design?). : This could be the same question that I have, but the answer didn't satisfies me, I need a lot more detail (for example, more books or guides to follow). DISCLAIMER  does not answer this question. It's the first question to answer before getting to this one.


Why is electric charge the conserved quantity corresponding to global $U(1)$ symmetry?

An example of a symmetry transformation for certain Lagrangians (notably the canonical complex scalar field Lagrangian) is multiplication of the fields by a complex phase. When we multiply the fields by a spacetime-dependent phase and demand that the Lagrangian is left unchanged under the transformation, then we must introduce a new gauge field, and this field is nothing but the photon field, which is a combination of the vector potential A and the scalar potential φ.   Furthermore, from the Lagrangian, we can derive the equations of motion for the fields, and in the example just mentioned, the equations are indeed the Maxwell equations. And since for every symmetry, there is a conserved quantity, the conserved quantity there is electric charge. Can you please explain why it turns out to be electric charge?


Differences between looping with an integer or an iterator in C++

As a C++ newbie, I am just discovering iterators. I realize that one can use either an int or an iterators for loop through any container. Consider for example  #include <iostream> #include <vector>  int main() {     std::vector<int> v;     v.push_back(1);     v.push_back(4);     v.push_back(8);      std::cout << "i is an int: ";      for (int i = 0; i<v.size();i++)     {        std::cout << v[i] << " ";     }     std::cout << std::endl;      std::cout << "i is an iterator: ";     for (std::vector<int>::iterator i = v.begin(); i!=v.end();i++)     {        std::cout << *i << " ";     }     std::cout << std::endl; }   which outputs  i is an int: 1 4 8                                                                                i is an iterator: 1 4 8     Generally speaking,   is there any advantage of using one or the other method? Is one faster than the other one? When should I use an int and when should I use an iterator?


Area 51 does not work via the android app

Area 51 is not available via the android app. It does not appear in the list of sites.   I have noticed that comments on example questions do however trigger an app notification.  is it a bug or am I missing something?


how to remove � sign in php while displaying content from mysql table

The web page shows the content as below       Golden Temple�is a Sikh�Gurdwara�located in the city   of�Amritsar,�Punjab,�India. It was built by�Guru Arjan, in the 16th   Century.   but the actual content is as below     Golden Temple is a Sikh Gurdwara located in the city of   Amritsar,Punjab,India. It was built by Guru Arjan, in the 16th   Century.   please help me


Making all row sums and column sums non-negative by a sequence of moves

Real numbers are written on an $m\times n$ board. At each step, you are allowed to change the sign of every number of a row or of a column. Prove that by a sequence of such steps, you can always make all row sums and column sums non-negative.   I am supposed to find an algorithm to prove this statement. Nevertheless, I tried induction on $m$ and $n$, but that did not work out well.  My first instinct was to make all the row sums non-negative. Now, we start to make the column sums non-negative. Take the first column. Call it $C_1$. If it is already non-negative, then move on. If not, then switch the sign of every number in this column. Note that this might make some row sums negative. Let these rows be called $R_1,\cdots R_k$. Note that after the switch, $C_1\cap R_i$ must be a negative number. To see why this is so, simply assume to the contrary and note that if it were positive, the row sum of $R_i$ has increased from its previous value, and hence can't be negative. So switch all the $R_i$. Clearly, this makes all the rows non-negative again. $C_1$ also remains non-negative, because switching all the rows turn the $C_1\cap R_i$ into positive numbers, and hence the column sum of $C_1$ increases, and hence remains non-negative.  I have also figured out an algorithm to turn the second row non-negative without altering any of the rows or the first column, but I am stuck here.  I also thought about using the extremal principle. Simply consider the configuration of the board which maximizes the number of positive rows and columns, but I haven't been able to proceed.  Any help will be appreciated.


I have a dataset, containing min. and max. dates for each row. What would be the best syntax for Amazon Redshift/Postgres to mark the rows, if they are in a certain timerange? Here's a little Excel example for better understanding:


So, I play a game and I am unable to quickly reach my 6,7,8,9,0 keys.   Is there any way that I could revamp my keyboard keys so that, for example :   z would result in the same keystroke as my 6 x results in 7 c results in 8  ` results in 9 r results in 0.   I tried using key flipper and the keyboard setting to change the shorts for text but all that allows you to do is change function keys and that didn't lead me anywhere.  Does a program exist, or can I make an AppleScript that allows me to have such a function?


How can I prove that $\lim\limits_{n\to\infty}\frac{n+\sin n}{n+1} = 1$

How to prove $\displaystyle \lim\limits_{n\to\infty}\frac{n+\sin(n)}{n+1} = 1$ ?  The beginning:  Fix $\epsilon$ > 0. Is there an $N\in \mathbb{N},$ such that $$n\ge N \implies\left|\frac{n+\sin(n)}{n+1}-1 \right|<\epsilon?$$  $$\left|\frac{n+\sin(n)}{n+1}-1 \right|<\epsilon \iff$$  $$\left|\frac{\sin(n)-1}{n+1}\right|<\epsilon \iff$$ $$\ldots$$   I got that $n > \frac{2}{\epsilon}-1$, is that right?   N=(max or min ?) {0, $\lfloor\frac{2}{\epsilon}-1\rfloor$}  I hope that the task is understandable. Thank you for answering.


Why are even/odd functions called even/odd?

Bit of a silly question, someone told me that the reason even functions are called 'even' and odd functions are called 'odd' is that all (single-variable) monomials with even powers are even functions and all monomials with odd powers are odd functions. In addition, this implies that the MacLaurin series (if it exists) of the odd part of a function is a linear combination of monomials with odd powers and similarly for the even case.    I've done a google search about this, but I haven't had much success. Does anyone know if this the actual origin of the names 'even' and 'odd'?


Indian Visa in expired passport, new passport with husband's surname

I have an Indian visa valid till 2013 in my old passport. But since I just got married I'm changing my surname and hence changing my passport.  Will my Indian visa in my now old passport be valid, provided I have all Marriage documents?


Convergence of series implies convergence of Cesaro Mean.

Proof.  Let $\sum_{k = 0}^N c_k \rightarrow s$, let $\sigma_N = (S_0 + \dots + S_{N-1})/N$ be the $Nth$ Cesaro sum where $S_K$ is the $Kth$ partial sum of the series.  Then $s - \sigma_N \\= s - c_0 - c_1(N-1)/N + c_2(N-2)N +\dots+c_{N-1}/N \\ =c_1/N + c_2 2/N + \dots + c_{N-1}(N-1)/N + c_N + \dots$  Where do I go from here?


'Launch terminal' launches terminator instead of terminal

I recently installed terminator in Ubuntu 14.04 TLS but when using the keyboard shortcut Ctrl+Alt +T it launches the terminator instead of the terminal. I'd like to regress back to having the shortcut launching the terminal but not sure how. Note that on the keyboard/Shortcuts/Launchers, the shortcut seems to be correctly mapped to 'Launch terminal'.   Many thanks!


I have written a program in C++ in Linux (Ubuntu 12.04) platform which print my required output into the stdout in every second. It means, after 10 seconds, I have 100 lines (each stdout in every second is 2 lines report) in the stdout.  This is my applied simulation format and i cannot change any variable or method to write the output into the variable instead of the stdout.  I am going to save this output into the string variable instead of the stdout. How is it possible by C++ language?


I have a table with index (autoincrement) and integer value. The table is millions of rows long.  How can I search if a certain number appear in the last n rows of the table most efficiently?


Python debugger shows type(value) as  but "value is str" is False

I have the following function that checks whether a given value is None and additionally in the case of a string,  whitespace. These invalid cases return TRUE. But for some of my values I see in the debugger that value is str returns FALSE even when I verify that type(value) is str. How's this possible? def noneOrBlank(value):     if value == None:          return True     elif value is str and len(value.strip()) == 0:         return True             else:         return False   The function is called as agreement.start_date = dateutil.parser.isoparse(form['startDate']).date()                         if not noneOrBlank(form.get('startDate')) else None   The string that comes in has some kind of datetime value.


How to add 'New File' to the OS X Finder context menu?

I am using a Mac--which is running OS X 10.10.3. I want to add a 'new file' button to the context menu--the menu that pops up when you right-click in a Finder window/on the desktop.


finding string between two specified characters in asp.net c#

here i need to split only 246925795 from these  where string between ?id and &authType please someone help me


What is easiest way to prove that $\sqrt 8/2$ is equal to $\sqrt 2$.

What is the most easy way I can prove $\sqrt 8/2$ is equal to $\sqrt 2$  I have done $(\sqrt 8/2)^2$ but at the end it gives me $\pm \sqrt 2$ and not positive $\sqrt 2$ So how?


Unable to open/connect to Oracle 12c Enterprise Manager Express

I have a just installed a new single instance installation of Oracle 12c (12.1.0.2.0 on Windows x64) with ASM.  The database itself is working OK (can be accessed locally and remotely via port 1521), however I am unable to open Enterprise Manager Express.  (I have tried different browsers).  The listener is up and seems to be configured for Ent. Mgr. Express, plus I can telnet into the relevant ports (tcp:8080 and tcps:5500), however when connecting via a web browser, no data is returned (verified using Fiddler).  Because ASM is being used, there could be two listeners, however all services are actually exposed via the Grid listener, there is no listener configured against the database home.  Any advice would be appreciated as I am not sure where to look next.  "lsnrctl status", "lsnrctl services" output and listener.ora contents are given below.  Thanks,   Chris  "lsnrctl status" output is as follows:   LSNRCTL for 64-bit Windows: Version 12.1.0.2.0 - Production on 15-JUN-2015 23:07:45  Copyright (c) 1991, 2014, Oracle.  All rights reserved.  Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=cba***.cbailiss.com)(PORT=1521))) STATUS of the LISTENER Alias                     LISTENER Version                   TNSLSNR for 64-bit Windows: Version 12.1.0.2.0 - Produ ction Start Date                15-JUN-2015 23:02:00 Uptime                    0 days 0 hr. 5 min. 47 sec Trace Level               off Security                  ON: Local OS Authentication SNMP                      OFF Listener Parameter File   C:\app\grid\cbailiss\product\12.1.0\grid\network\admin\listener.ora Listener Log File         C:\app\grid\cbailiss\diag\tnslsnr\cbaz***\listener\alert\log.xml Listening Endpoints Summary...   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=cbaz***.cbailiss.com)(PORT=1521)))   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.0.0.5)(PORT=1521)))   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=cbaz***.cbailiss.com)(PORT=5500))(Security=(my_wallet_directory=C:\APP\ORACLE\admin\orcl\xdb_wallet))(Pre sentation=HTTP)(Session=RAW))   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=cbaz***.cbailiss.com)(PORT=8080))(Presentation=HTTP)(Session=RAW)) Services Summary... Service "+ASM" has 1 instance(s).   Instance "+asm", status READY, has 1 handler(s) for this service... Service "orcl" has 1 instance(s).   Instance "orcl", status READY, has 1 handler(s) for this service... Service "orclXDB" has 1 instance(s).   Instance "orcl", status READY, has 1 handler(s) for this service... The command completed successfully   listener.ora contents:  listener.ora Network Configuration File: C:\app\grid\cbailiss\product\12.1.0\grid\network\admin\listener.ora Generated by Oracle configuration tools.  VALID_NODE_CHECKING_REGISTRATION_LISTENER = SUBNET  LISTENER =   (DESCRIPTION_LIST =     (DESCRIPTION =       (ADDRESS = (PROTOCOL = TCP)(HOST = cbaz***.cbailiss.com)(PORT = 1521))     )   )  ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER = ON   "lsnrctl services" output:  LSNRCTL for 64-bit Windows: Version 12.1.0.2.0 - Production on 16-JUN-2015 00:15 :04  Copyright (c) 1991, 2014, Oracle.  All rights reserved.  Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=cbaz****.ad.cbailiss.com)(PORT=1521))) Services Summary... Service "+ASM" has 1 instance(s).   Instance "+asm", status READY, has 1 handler(s) for this service...     Handler(s):       "DEDICATED" established:0 refused:0 state:ready          LOCAL SERVER Service "orcl" has 1 instance(s).   Instance "orcl", status READY, has 1 handler(s) for this service...     Handler(s):       "DEDICATED" established:0 refused:0 state:ready          LOCAL SERVER Service "orclXDB" has 1 instance(s).   Instance "orcl", status READY, has 1 handler(s) for this service...     Handler(s):       "D000" established:1 refused:0 current:0 max:1022 state:ready          DISPATCHER <machine: CBAZ****, pid: 1804>          (ADDRESS=(PROTOCOL=tcp)(HOST=cbaz****.cbailiss.com)(PORT=51202)) The command completed successfully


How can I achieve portability with sed -i (in-place editing)?

I'm writing shell scripts for my server, which is a shared hosting running FreeBSD. I also want to be able to test them locally, on my PC running Linux. Hence, I'm trying to write them in a portable way, but with sed I see no way to do that.  Part of my website uses generated static HTML files, and this sed line inserts correct DOCTYPE after each regeneration:  sed -i '1s/^/<!DOCTYPE html> \n/' ${file_name.html}   It works with GNU sed on Linux, but FreeBSD sed expects the first argument after -i option to be extension for backup copy. This is how it would look like:  sed -i '' '1s/^/<!DOCTYPE html> \n/' ${file_name.html}   However, GNU sed in turn expects the expression to follow immediately after -i. (It also requires fixes with newline handling, but that's already answered in )  Of course I can include this change in my server copy of the script, but that would mess i.e. my use of VCS for versioning. Is there a way to achieve this with sed in a fully portable way?


Chat shortcut [metaso] expands to a URL that's missing a letter

In chat, the short code [metaso] expands to http://meta.stacexchange.com/ (no typo, the missing 'k' is the bug I'm reporting).  (And since this is too short a bug report, I'll note that I think that [metaso] should probably point to .)


Can't find or install Canon MP230 on Ubuntu 12.04

I have recently purchased a Canon MP230 for college and I am trying to install it onto my computer which is running Ubuntu 12.04. I have checked the connections and it is switched on.  I initially couldn't find the printer in system settings. The only options given was URI and Network Printer. Eventually, after installing updates, it found a printer connected through USB. When I searched the database, it didn't have the model of this printer. I tried searching for the PPD file but couldn't find it on the installation disk. (I'm still new to Ubuntu in some aspects). I tried typing the make and model in manually but it wouldn't search for the drivers. I downloaded the drivers from the Canon Europe website, both the Debian 32 bit version and the RPM version. The RPM version wouldn't install at all and the debian I tried running through the Software Center. I tried to access the printer again through system settings and it will not find it as happened before the updates. I proceeded to install through the terminal but it could not find a connected printer.   I have an art project due in 2 weeks and need the printer and scanner up and running asap.


Can't use mouse to place an insertion point or drag-select text in Word; cursor moves as commanded by mouse

My cursor moves okay, as commanded by the mouse, but, in MS Word, I can't place an insertion point nor can I drag-select text.  Also, I have to shut down Word using Alt+F4, since shutting down with the X in the upper right corner generates a failure.


I am interested in showing  that: $$\int_0^{\pi /2}\frac{dx}{\sqrt{\cos{x}}}=\int_0^{\pi /2}\frac{dx}{\sqrt{\sin{x}}}=\frac{\Gamma^2(\frac{1}{4})}{2\sqrt{2 \pi}}$$ I've come across this equality without anything else, would you please help me what I should do?


How can I "group by" and sum a column in excel?

I'm trying to figure out how to "group by" values in an Excel spreadsheet.  Given the following example (this is an inventory sheet I use at my restaurant:)    At the far right of the spreadsheet there is a column named Cost of Goods Sold.  I would like to be able to come up with a total COGS figure for each Category.  Is this possible in excel? Moreover, I'd like to do it in a separate worksheet so that the first worksheet (what is pictured) isn't affected.  Any ideas?  Thanks!


Disclaimer: My knowledge of the x-men franchise comes from the films, not comics or cartoons. Sorry if the answer is obvious in a different medium.  Okay, so Wolverine, of the X-men, has claws. They are shape in a knife-like way, with a sharp blade on one side, but I'm nor sure they should. Here's some known facts.   His mutation provides two powers, an ability to heal almost any wound at high speed (which also allows him to never visibly age), and retractable bone claws. The claws are comprised of multiple bones, resembling the bone structure of hands and feet. His bones were infused with an alien metal, Adamantium, at a later date by William Stryker. The rest of his bones are the same shape (we see x-rays, they're normal). We see him escape immediately after the metal is implanted, there's no time for someone to add more metal or sharpen the blades.   So why would they be bladed, and not the same shape as they used to be?


So today in my school our neighbor class monitors were complaining to that few of our students were yelling and making noise. Actually the case was that we were having very aggressive debate over a question. The question is quite simple but there is lot of confusion regarding it's solution because according to different students there are two very different approach toward this question. The question is,     Question: Find the derivative of    $$f(x)=x+x+x+x+x+...\quad x \mathrm\quad {times}$$   So here are two approach that my classmates are pretending to do.   First one (that I think is the correct approach) is that we can simplify the above function as $x$ times $x$ ( i.e. $f(x)=x^2$**)** , so that equation becomes,     $$f(x)=x^2$$   and simply we can write      $$f'(x)=2x$$   But my classmates are pretending to say that there is another way ( that I think is wrong ) to do this. In this method without simplifying the $f(x)$ we can differentiate individual terms in the sum. i.e.     $$f'(x)=\frac{d(x)}{dx}+\frac{d(x)}{dx}+\frac{d(x)}{dx}+\frac{d(x)}{dx}+...\quad x \quad\mathrm{times}$$   $$\implies f'(x)=1+1+1+1+1...\quad x \quad \mathrm{times}$$      $$\implies f'(x)=x$$   So in this way we are having two different answers (i.e $2x$ and $x$). However I know that $2x$ is the correct answer but honestly speaking I am really tiered to explain them how. However I tried to tell them that in second method (that I think is wrong method) we unintentionally ignore that $x$ times term and didn't involve in the differentiation while we do take care of that in the first method (that I think is correct).  Some are saying that $x$ is right while some are pretending to $2x$ to be right while some are saying that that both are wrong. I need a perfect answer that can satisfy my classmates.  Thanks!


Exponential distribution with mean 1/lambda

Let x1,x2,x3,.......xn be independent and identically distributed random variables from exponential distribution with mean 1/Lambda. Let Sn=x1+x2+......+xn and N=infimum(n>=1:Sn>1) then what is the variance of N.


What an example of holomorphic function $f_n\to f$ s.t. $f$ is not holomorphic?

I think that if the sequence $f_n$ converges pointwise to $f$ (and not uniformly), $f$ is not always holomorphic. Then I searched concrete examples of $f_n$ such that $f$ is not holomorphic, but I couldn't find such a $f_n$. As a side note, I thought of $U$ as a unit disk $D\colon=\{z\in\mathbb{C}\mid |z|<1\}$ when I searched that. Is there the concrete example? I would appreciate it if you propose that example!


I am following the instructions to install Drush that are listed on this page:   I seem to be getting a syntax error within the code:  [user@localhost ~]$ wget https://github.com/drush-ops/drush/releases/download/8.0.0-rc4/drush.phar --2015-11-16 16:23:02--  https://github.com/drush-ops/drush/releases/download/8.0.0-rc4/drush.phar Resolving github.com (github.com)... 192.30.252.131 Connecting to github.com (github.com)|192.30.252.131|:443... connected. HTTP request sent, awaiting response... 302 Found 2015-11-16 16:23:05 (1.47 MB/s) - drush.phar saved [3496991/3496991]  [user@localhost ~]$ php drush.phar core-status  Parse error: syntax error, unexpected '[' in phar:///home/user/drush.phar/includes/output.inc on line 188   I am not seeing this error on Google. Any idea how to fix it?


Bypassing/Resetting Locked Win 10 Password

The church I go to gave me a computer and said I can have it an play with it. I seems to be the secretary's old Desktop. It is a Dell (maybe Windows 10) Desktop computer. They don't remember the password and all possible passwords they came up with were wrong. Being that I don't have any password for any account on the PC, I am having a very hard time resetting/bypassing the password. Is there any way I can bypass or reset the password? Any suggestion is helpful; best answer is the one that allows me to somehow get in.  Do note that as far as I know, any method that involves changing the boot order settings (if that is even the technical term for it) to get the PC to run a USB or CD won't work because that requires a password - a password I don't have and would like to get. Unless I misunderstood the directions. Even completely wiping it gives me troubles; I can't select any options when the "wiping wizard" (hardly not the technical term for it) runs. Thus I am coming here for you guys' wisdom and expertise on computers. Hopefully someone can help despite all of my attempts and limitations.  More Info  The account is a local account and I have nothing to reset the password or retrieve it. I have at my dispense a USB I can use for any solutions. To specify, I cannot log into the only account on the computer. Just wanted to specify.  UPDATE: By removing the PSWD jumper, restarting the PC, shutting it down and putting the jumper back in, I have removed the admin password. Now what can I do from here?  Why this is not a duplicate  As I have stated before, I am trying to log into a locked computer without using the password. I am not trying to gain admin rights of anything. Any answer in the question that needs to be longed into the PC to work won't work for me.


I was reading the Wikipedia page of , and according to it,  cupboard is pronounced /ˈkʌbərd/ and not /ˈkʌpbɔːrd/.  I see why the /b/ is merged into the /p/ sound, making cupboard sound like "cu-board", but it seems very strange to me that the /ɔ/ is reduced to just /ə/ sound.   Is "cupboard" really pronounced as /ˈkʌbərd/?


Does a site's bounce rate influence Google rankings?

Does Google consider bounce rate or something similar in ranking sites?  Background: here at Stack Exchange we noticed that the latest Google algorithm changes resulted in about a 20% dip in traffic to  (and a much smaller dip in traffic to ). Stack Overflow traffic was not affected.  There was an  which hypothesized that bounce rate might be a ranking signal in Google's latest Panda update.  According to Google Analytics, these are our bounce rates over the last month:  Site           Bounce Rate Avg Time on Site -------------  ----------- ---------------- SuperUser      84.67%      01:16 ServerFault    83.76%      00:53 Stack Overflow 63.63%      04:12   Now, technically, Google has no way to know the bounce rate. If you go to Google, search for something, and click on the first result, Google can't tell the difference between:   a user who turns off their computer a user who goes to a completely different web site a user who spends hours clicking around on the website they landed on   What Google does know is how long it takes the user to come back to Google and do another search. According to the book  (page 47), Google distinguishes between what they call "short clicks" and "long clicks":   A short click is a search where the user quickly comes back to Google and does another search. Google interprets this as a signal that the first search results were unsatisfactory. A long click is a search where the user doesn't search again for a long time.   The book says that Google uses this information internally, to judge the quality of their own algorithms. It also said that short click data in which someone retypes a slight variation of the search is used to fuel the "Did you mean...?" spell checking algorithm.  So, my hypothesis is that Google has recently decided to use long click rates as a signal of a high quality site. Does anyone have any evidence of this? Have you seen any high-bounce-rate sites which lost traffic (or vice-versa)?


I have PC (Windows) and laptop (Ubuntu 19.04). Both of them connected through WiFi. When I type in google "what is my IP" it shows me IPv4 on windows and IPv6 on Ubuntu. What I have to change on Ubuntu to get IPv4?


Notify me when a question receives an answer

Sometines I find questions that I am interested in but haven't received an answer yet. I would like to 'subscribe' to this question and be notified by email when it receives an answer.   This is different from the favorite button, where you should come back another day to see if tge favorited question has received any answer.  You can even have some types or categories of subscription like:   notify me when it receives any answer notify me when the OP selects an accepted answer   I think this is a good feature to have that will increase the overall user experience of a user in any SE sites.


Model a tube with round ends and apply a colorful gradient

I'd like to model a tube with both ends rounded. After that i want to add a colorful gradient to it.  I know a little about building a tube via bezier curves and a cylinder but the tube has open ends.   How would you try to model it?  Attached you find a picture what I would like to build.


Multiple downvote(s) or upvote(s) reputation cost

What happens if you receive, say, 5 upvotes or 5 downvotes (meaning multiple upvotes or downvotes) on a question or answer?  Is your reputation going to reduce only the amount or multiplication of factor?  Example  Say a person receives 3 downvotes in a question. His/her reputation is 500.  So will this bring down his/her reputation to 498 (-2 for downvote) or 494 ( -2 * 3)?


How to show that $\exists \lim_{x\rightarrow1^{-}}\sum_{n=0}^{+\infty} (-1)^n x^{n^2} = 1/2$?

It is a well known fact that for $|x|<1$, we have $$\sum_{n=0}^{+\infty} (-1)^n x^n = \frac{1}{1+x}$$ How can we prove that  $$\exists \lim_{x\rightarrow1^{-}}\sum_{n=0}^{+\infty} (-1)^n x^{n^2} = 1/2$$ and how would the results change if we replace $n^2$ by $n^k$ for some $k$?  It is not very difficult to observe that this is an alternating series and that it converges for $|x|<1$. The problem lies in the boundary, where the sum is divergent and so we can't apply Abel's theorem. Maybe there are some results in Tauberian theory but I don't know much about it.


Null object reference Android after OnCreateView

I'm getting null pointer reference error on CrimeFragment .  crimeFragment's onCreateView method :   @Override public View onCreateView(LayoutInflater inflater, ViewGroup container,                          Bundle savedInstanceState) {     View view =  inflater.inflate(R.layout.fragment_crime, container, false);     try {     Button submit = (Button) view.findViewById(R.id.submitButton);     submit.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View view) {             Toast.makeText(view.getContext(), "Cant save yet!", Toast.LENGTH_SHORT).show();             EditText id = (EditText) view.findViewById(R.id.crimeID);             EditText des = (EditText) view.findViewById(R.id.crimeDesc);             Crime crime = new Crime();              String desS = des.getText().toString();             String idS = (id.getText().toString());             if(desS == null || idS == null){                 Toast.makeText(getContext(),"Blank fields !",Toast.LENGTH_SHORT).show();                 return;             }             crime.setId(Integer.parseInt(desS));             crime.setDesc(desS);             addCrime(crime);         }     }); }     catch(Exception e){         e.printStackTrace();     }     return view; }   I have read the fragment lifetime documentation & so have grabbed view components only after inflating them in OnCreateView. So why is it showing null object?  MainActivity class  :    @Override  protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);     FragmentManager fm = getSupportFragmentManager();     CrimeFragment frag = (CrimeFragment) fm.findFragmentById(R.id.main_container);     if(frag == null){         frag  = new CrimeFragment();         fm.beginTransaction()                 .add(R.id.main_container,frag)                 .commit();     }     List<Crime> crimeList = frag.getCrime();  }   any suggestions is most welcome.


Flex: Figure out when the running swf was compiled?

Is there anyway in a flex application to figure out (in runtime) when the running swf was compiled?  I'd like to compare this with the latest file version of the swf on the server and detect if there's a newer version on the server and if so force the user to reload their browser to get the new version.   I need this to also work with swfs from the cache.


Why does the natural logarithm function pop up as default link function when doing Poisson regression?

What is the philosophy behind the logarithm as link function for Poisson regression? What is it about count variables that modelling them as a GLM with the natural logarithm function is appropriate?  I suppose it has something to do with the definition of the Poisson distribution, for which the probability function is exponential in lambda?


I'm going to permit redirections ">>" and ">" for the www-data user in sudoers but I can't find this.


If you have a graph with 1 node and no edges and you then remove this 1 node, is the remaining a graph with 0 nodes or is it not anymore a graph?  Alternative formulation: Is there something such as a empty null graph?


Why can I ping IP addresses from 127.0.0.1 to 127.255.255.254?

I thought that the local IP address of my machine is 127.0.0.1  I do not understand why am I able to ping IP addresses until 127.255.255.254


In an astronomical context, the authors of a paper desire to use a Gibbs algorithm. Please note: I am inexperience in MCMC algorithms, and specifically in Gibbs sampling.  What we want, in essence, is the full posterior distribution, given some data: $P(X,Y|data)$. To achieve this, we sample from the marginal distributions $P(X|Y,data)$ and $P(Y|X,data)$. In the stationary situation, sampling from these would be statistically identical to sampling from the full joint probability distribution, as I understand it.  Now, the authors note that in this particular case,   " (...) unfortunately the two marginal distributions $P(X|Y,data)$ and $P(Y|X,data)$ are in general both much narrower than the marginalized distribution $P(X|data)$: given a particular a particular $Y$ [in this case, lensing potential], $X$ [in this case, the delensed CMB] is given essentially by a delta function. This means that naive Gibbs iterations will not converge within a reasonable time."   Now these statements are completely lost on me. So my question is twofold:   The statement about the delta function is meant as explanatory supplement I think, but it doesn't clarify anything for me. Why is this 'essentially a delta function'?  Second, and more importantly: OK, suppose the conditionals are 'much narrower'. So what? Why is $P(X|data)$ even relevant, aren't we interested in $P(X|Y,data)$, $P(Y|X,data)$ and ultimately $P(X,Y|data)$ only in Gibbs sampling? Why would narrow conditions mean slow convergence?   The paper in question is a review paper by Challinor and Lewis, 2006. The arxiv print can be found here:    And the text I'm referring to is at the end of section 8, delensing the sky.


Where is ubuntu installed? Lack of space error

My other PC runs Ubuntu - been a while now, maybe a few years. I get an error dialog box after start-up which says I dont have enough space, like only 2 or 300MB left. It gives me the option to analyse the HD. Im looking at the result now in the "Disk Usage Analyzer". At the top it reads;  Total filesystem capacity: 152.3GB (used: 114.2GB, available: 38.1GB) I have one HD with 3 partitions, I think.  So I am lost, but if yu can tell me how to tell which partition the Ubuntu system is installed on, I might be able to move some files around to try to make more space. Thx Greenie


US Citizen visiting Canada with a pending passport

I'm visiting Canada in 2 weeks with my family and have yet to order my passport. So, there is no guarantee that I will have my passport in time for the trip even if I did pay for the expedited process. When it is time to reenter the US from my trip, will they accept that I have my passport pending and just check with my birth certificate and social security card? Or will I be trapped in Canada?  Extra info: We are traveling by car. I live in North Carolina so I can't get an enhanced driver's license or a NEXUS pass.


What is the name of the first decade in a century?

80s: the "Eighties"   90s: the "Nineties"   00s: the ???   For that matter, what is the second decade called? The "tens" just doesn't sound right.


This is my error:  java.lang.NullPointerException: Attempt to invoke virtual method 'void   android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference   This is part of my code:  public static final String PLACEHOLDER_LIST_FILE = "placeholder_file"; public static final String STORY_NUMBER_FILE = "story_number_file";   Button button3; Story story; EditText placeholderField; TextView wordsLeftText; Set<String> placeholderList; int storyIndex; int placeholderCount;  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.display);      // Restore preferences     SharedPreferences placeholderSettings = getSharedPreferences(PLACEHOLDER_LIST_FILE, 0);     placeholderList = placeholderSettings.getStringSet("placeholders", null);     if (placeholderList == null) {         placeholderList = new HashSet<>();     }      SharedPreferences storyNumberSettings = getSharedPreferences(STORY_NUMBER_FILE, 0);     storyIndex = storyNumberSettings.getInt("story_number", 404);     storyIndex = 404; // Used to test spinner      if (storyIndex == 404) {         storyIndex = getIntent().getIntExtra("selected_story", 404);     }      InputStream is;     is = this.getResources().openRawResource(getStoryNumber(storyIndex));     story = new Story(is);      for (String currentPlaceholder : placeholderList) {         story.fillInPlaceholder(currentPlaceholder);     }      @Override protected void onStop() {     super.onStop();      SharedPreferences placeholderSettings = getSharedPreferences(PLACEHOLDER_LIST_FILE, 0);     SharedPreferences.Editor editor1 = placeholderSettings.edit();     editor1.putStringSet("placeholders", placeholderList);     editor1.apply();      SharedPreferences storyNumberSettings = getSharedPreferences(STORY_NUMBER_FILE, 0);     SharedPreferences.Editor editor2 = storyNumberSettings.edit();     editor2.putInt("story_number", storyIndex);     editor2.apply(); }   What I want to fix:  When I press the button in the second activity to continue to the 'input'activity. Without getting a crash and the nullpointer error.   What have I done to try and fix it:  Look at people who also had the problem, but their fixes don't apply to my code.  I have also no idea why I can't declare it to null.   Any help would be appreciated.  p.s. If you guys see any error in my code please tell me


Is there a limit to the number of magic rings a character can wear on one hand?

I know that in previous editions you could only have one magic ring per hand, is that true in 5th edition (RAW) as well?


What importance of battery " voltage" between cathode and anode in photocell?

In photocell at threshold frequency $f=f_0$ and voltage $>0$ (between cathode - and anode +)   Is current $=0$ at $f=f_0$ and $v>0$? When voltage $>0$ and $f=f_0$, Does photoelectron have KE to go to anode?


Can principal component analysis be applied to datasets containing a mix of continuous and categorical variables?

I have a dataset that has both continuous and categorical data. I am analyzing by using PCA and am wondering if it is fine to include the categorical variables as a part of the analysis. My understanding is that PCA can only be applied to continuous variables. Is that correct? If it cannot be used for categorical data, what alternatives exist for their analysis?


Why is the suid bit having no effect on a shell or perl script?

As an experiment in playing with the suid bit, I tried writing a script to run apt-get update from a bash script, and then set the suid bit on it, so I could just run ~/update or something.  apt-get update could be anything here - some program that listens on a privileged socket, or writes to / or anything else that has to be run as root. Please don't latch on to apt-get update here.  First try is this, which didn't work, failing with can't get lock, are you root?. The reason would seem to be .  #!/bin/bash apt-get update   So I thought I'd try to bypass the shell, but this didn't work either, for the same reason.  #!/usr/bin/perl system("apt-get", "update").   I've got the permissions correct (afaik) - sudo chmod 4755 ~/update.  Have I misunderstood setuid, or am I just missing something simple?


Can we feel weightless if Earth's angular velocity is big enough?

According to Fn=Fg-Fc , if earth's angular velocity is big enough to make Fc equal to Fg, would we feel weightless? I did some basic calculation earth has to rotate at 1 rev/5064s at equator for Fc to equal Fg.


Is it possible to flash an android phone with different custom rom

I have an Invents A3 plus Chinese  phone which is softbricked when you press the power button it only shows blank screen some times it shows a logo with scratches l did try to find the stock ROM  if any one knows how to fix my invens let me know. It use SPD3 android version ,8.1


Junit Testing a multithreaded application with Database access

Here's a fun one.  I have an an application that runs under tomcat with servlet access. The underlying implementation uses a ThreadPoolExecutor to subdivide the tasks, at this point just an email distributor. I have been adding JUnit tests, slowly getting the code coverage as reported by cobertura to an almost acceptable level.  Some background on the JUnit testing in place:   In the @BeforeClass I am setting up the context for DB connection lookups that are valid in the test environment. In the Servlet test, I am using HttpUnit to acquire an InvocationContext and then an instance of the servlet. Then, I call the primary method in the servlet that does all of the work, and eventually calls out to a thread manager for the appropriate distribution method, and uses the ThreadPool defined earlier. The problem occurs in the spawned threads. The DB access from the servlet works just fine using the created context setup in the @BeforeClass. The Threads don't have access to that context, and fail to get DB Connection info, causing failures in the Thread code.   So, bottom line, anyone have an idea how to test the Thread code, that wants DB access? Or even an entirely new method of unit testing that would work with a multithreaded application that wants DB access.  Any additional details can be provided to a point. I hope I have provided enough information, that providing actual code won't be necessary.


I am about to buy MacBook Air from Kuwait, and I wonder if I can purchase warranty from Canada since am living in Canada and am a student of a University there?


If $G$ has more than one nontrivial elements with order 2, how to show that $\prod^n_{x=1}a_x=1$?

Let $G$ be an abelian group of  order $n$, and $a_1,a_2,...a_n$ its elements. If $G$ has more than one nontrivial elements with order $2$, how to show that $\prod^n_{x=1}a_x=1$?


How to write a macro that randomly chooses a word from a set of words?

I am currently working on a technical report using pdflatex and noticed that I overuse the term "w.r.t." (at least I wrote a command for it).  Is there a way to write a macro that randomly chooses "x", where "x in {with respect to; concerning; with regard to; ...}" such that I do not have to replace each instance of my command \wrt manually in the document?  PS: I tried using the search function, but did not find anything suitable. If there is, I am fine with a polite redirection. :)


I am testing for a given post request field on a script that can be called either from the command line, or over HTTP as a GET or POST request. As such, $_POST can be undefined. Is there a simple way of rewriting this statement?  if (isset($_POST) && isset($_POST['function']) && $_POST['function'] == "login"):   I could suppress errors with the @-operator — is that bad practice?  if (@$_POST['function'] == "login"):   I could use PHP 7.0's null coalesce operator, but that introduces a useless literal purely designed to throw a false:  if (($_POST['function'] ?? null) == "login"):


i have this problem. Let $\Omega$ a bounded domain, connexe and regular, and let $f \in L^2(\Omega).$ Let the variational problem: Find $u \in H^1(\Omega)$ such  $$\int_{\Omega} \nabla u \nabla v dx + (\int_{\Omega} u dx)(\int_{\Omega} v dx) = \int_{\Omega} f v dx, \forall v \in H^1(\Omega)$$ Deduce the boundary problem associate to this variational problem ( study the two cases $u \in  H^2(\Omega)$ and $u \notin H^2(\Omega)$.  in the case 1: $u\in H^2(\Omega)$  In this case, we have that $$\tag{1}\int_\Omega \nabla u\nabla v=-\int_\Omega v\Delta u+\int_{\partial\Omega}\frac{\partial u}{\partial\nu}v,\ \forall\ v\in H^1(\Omega)$$  From $(1)$, we conclude that $$\tag{2}-\int_\Omega v\Delta u+\int_{\partial\Omega}\frac{\partial u}{\partial\nu}v+\int_\Omega (\int_\Omega u)v=\int f v,\ \forall\ v\in H^1(\Omega)$$  If we take $v\in C_c^\infty(\Omega)$ in $(2)$, we can conclude by the Fundamental Lemma of Calculus of Variation that $$\tag{3}-\Delta u(x)+\int_\Omega u=f(x),\ a.e.\ x\in\Omega$$  My question is: how we use the Fundametal Lemme Of Calculus Of Variation to deduce this? and why we choose $v\in C^{\infty} (\Omega)$? why we can't work with $v \in H^1(\Omega)$?  My second question is: we put $$a(u,v)=\int_{\Omega}A \nabla u \cdot \nabla v dx + (\int_{\Omega} udx)(\int_{\Omega}vdx), \forall v \in H^1(\Omega)$$ How we prouve that $a$ is coercitive. for this, i process by absurde, so we have to prouve that $$\forall v \in V, \exists \nu > 0; a(v,v)< \nu ||v||^2_V$$ we choise $\nu=\dfrac{1}{n}$ , so we have $$\forall n \in \mathbb{N}, \exists v \in H^1(\Omega):a(v_n,v_n)<\dfrac{1}{n}||v_n||^2_V$$ I don't understand how we use the Rellich theorem to conclude the coercitivity.


Remove duplicate array from parent array in php?

I want to remove duplicate entry from the following array. Any idea would me appreciated.  Array (     [0] => Array         (             [key1] => 14             [key2] => 32         )      [1] => Array         (             [key1] => 14             [key2] => 11         )      [2] => Array         (             [key1] => 14             [key2] => 11         )      [3] => Array         (             [key1] => 14             [key2] => 31         )  )   Array key [1] and [2] having duplicate array with same values. I want to remove this duplicate array and the output should be like this:                                           Expected Output Must be like this  Array (     [0] => Array         (             [key1] => 14             [key2] => 32         )      [1] => Array         (             [key1] => 14             [key2] => 11         )      [2] => Array         (             [key1] => 14             [key2] => 31         )  )


Do there exist groups $X,Y$ such that $X/Y,Y$ are commutative/cyclic but $X$ is not?

Let $X$ be a group and $Y$ a normal subgroup of $X$. I am interested in the following two statements:        If $Y$ and $X/Y$ are commutative, then so is $X$.      and        If $Y$ and $X/Y$ are cyclic, then so is $X$.      For 1, I am able to conclude $b^{-1}a^{-1}ba \in Y$ for all $a,b \in X$. Similarly $a^{-1}b^{-1}ab \in Y$. I think the quotient of the dihedral group $D_6$ divided by the group of rotations provide a counterexample to 1.  For 2, I am not aware of any potential counterexamples. If 2 is false, then it immediately follows that 1 is false.  The converse to both of these statements are true.


Dropdown inside the second last column of each row except the first one in the last cell not working

Below is the code  I will try to ask this question again later on


Calculate Laurent series for $1/ \sin(z)$

How can calculate Laurent series for   $$f(z)=1/ \sin(z) $$ ??  I searched for it and found only the final result, is there a simple way to explain it ?


How do I simply recover the only file on an empty disk just deleted?

Usually, the best way to recover a deleted file is to have backups and that, if the backup failed, you should immediately remount the drive read-only. (See this thread:  )  But in some occasions, if the deleted file wasn't that important, it just would save some time to just "undelete" it.  Is there a simple way I could try on bash for the case that the deleted file on an ext4 filesystem was the only file on the disk, especially, if the disk is not used otherwise?


Referring to an event that occurred before another event in the past

I'm writing about an event(A) in the past and relating this to another event (B) which occurred before the first event. Which is a better way to frame this:  In the backdrop of the September 11 attacks which happened two months ago, the capture of Kabul ...  Is it better to use 'prior' or 'earlier' instead of 'ago'?


sum of integers using order of integers and primitive roots

Sorry for my interruption, I am looking for a solution to this question: Calculate $$\sum_{k=0}^{2001}\left \lfloor \frac{2^k}{2003}\right \rfloor$$ without using computational engines, with $\lfloor x \rfloor$ denoting the largest integer that does not succeed x. I hope you can answer this question. And sorry for my mistakes, English is my second language.


I use  for my command-line tasks while managing the servers where I work. I usually run small commands (mostly file-system tasks) but sometimes I run more extensive tasks (like DBA).  The output of those tasks is important to me. Since I use Ubuntu and OS X (both Terminal Windows) for my tasks, yet I need to use screen, the scrolling is not available, so any long output (think a 500-row table from a select) is invisible for me. Mouse-wheel is out of the question.  When I say "scroll is invisible for me, I mean this:    I was thinking about two options:   Pause (think paginate) the output of a certain command. When the output begins, it would let me read what's happening, then I press "Enter", then the output continues until there's nothing more to show. Scroll inside screen. But I don't know if this is possible.   Of course, I don't know if those options are actually possible. If they are, how can achieve them? Other alternatives will be well received.


Is the expression "What hath alienators wrought" correct, concordance-wise?

I have seen the phrase "What hath alienators wrought" in the name of an article. Searching throught the web I learned that "hath" is the version of "has" in old English, but in the singular case (mostly used in the phrase "What hath God wrought", I guess it's biblical). Therefore, I am guessing that the phrase "What hath alienators wrought" is wrong and should be "What have alienators wrought".  Can someone tell me if I'm correct in my guessing or nor, and why? Thanks.


You have developed an artificial amoeba, and you can control exactly how it divides. Each individual amoeba can be instructed to divide into A, B, or C amoebas. That is, if you instruct an amoeba to divide into A, this amoeba will disappear, and  A different new amoeba will appear.    You start out with K amoeba initially, and you want to give them instructions such that at the end, you have exactly N amoeba left. Giving an instruction is a costly affair because it requires you to produce some biochemicals, and so you want to give as few instructions as possible.     Find and write the minimum number of instructions that you should give to end up with exactly N amoebas. If it cannot be done, write −1 instead. Note that each instruction is given to a single amoeba, and not all of them together.  Find the minimum number of instructions needed for these instances: (a) K = 23, A = 7, B = 12, C = 16, N = 114 (b) K = 9, A = 7, B = 15, C = 16, N = 76       This problem is from pen & paper test, ZIO-2019.   My attempt:-   extra Amoebas to produce = 114 - 23 = 91   Amoeba added by each instruction, A = 6 , B =11 , C = 15   I manually tried to find , n(A)=1,n(B)=5,n(C)=2 .   But my process took very long time, because im pretty noob in alogs. So is there any mathematical method to get the answer , instead of trying to put each value manually to get the answer


I want to be able to be able to format date/time input for my function.  Currently, I have a function that basically appends a 0 to a number if it is only 1 digit long.  def format_num(str(num)):     if len(num) < 2:         return "0" + num     return num   I was wondering if there was a more pythonic way to do this.


Can you identifiy this short about teenagers on a raft getting swallowed up by an oil slick?

In the spirit of all the story identification today, I'm looking for some kind of TV episode about some teenagers who were at a lake.  Slowly, one by one, they get swallowed up by some kind of oil slick looking thing.  It was some kind of dumb creature that lived in a lake swallowing up kids and looked like a black oil slick.  I remember it being part of a show of shorts.  Maybe something like Tales from Crypt possibly?  It was probably around 15 - 20 minutes long.  It was pretty cheesy from what I remember; probably something produced in the late 80's or early 90's.  It's something I remember making fun of with my brother when we were young.


For an unknown to me reason, LaTeX started giving me this error: Ouch---my internal constants have been clobbered!---case 14. It throws the error even before it starts reading the file, so even if I run LaTeX or pdfLaTeX without any arguments I still get the error message and nothing else.  I took a look at this , but I'm not familiar with TeX inner workings at all, so I didn't find it helpful.   I tried completely uninstalling LaTeX and reinstalling it, but that didn't fix the error.  I'm running TeXLive on Linux Mint 14, kernel Linux 3.5.0-17-generic (x86_64).  Here's output from dpkg --get-selections | grep tex  biblatex                    install dblatex                     install gettext                     install gettext-base                    install jadetex                     install latex-beamer                    install latex-xcolor                    install libdjvulibre-text               install libexttextcat-1.0-0             install libexttextcat-data              install libgettextpo0:amd64             install libgettextpo0:i386              install liblatex-encode-perl                install liblocale-gettext-perl              install libptexenc1                 install libtext-bibtex-perl             install libtext-charwidth-perl              install libtext-glob-perl               install libtext-iconv-perl              install libtext-wrapi18n-perl               install luatex                      install plymouth-theme-ubuntu-text          install preview-latex-style             install tex-common                  install tex-gyre                    install texlive                     install texlive-base                    install texlive-bibtex-extra                install texlive-binaries                install texlive-common                  install texlive-doc-base                install texlive-extra-utils             install texlive-font-utils              install texlive-fonts-extra             install texlive-fonts-extra-doc             install texlive-fonts-recommended           install texlive-fonts-recommended-doc           install texlive-generic-extra               install texlive-generic-recommended         install texlive-lang-cyrillic               install texlive-latex-base              install texlive-latex-base-doc              install texlive-latex-extra             install texlive-latex-extra-doc             install texlive-latex-recommended           install texlive-latex-recommended-doc           install texlive-luatex                  install texlive-math-extra              install texlive-pictures                install texlive-pictures-doc                install texlive-pstricks                install texlive-pstricks-doc                install texlive-publishers              install texlive-publishers-doc              install texlive-science                 install texlive-science-doc             install texlive-xetex                   install   The only idea I have is that a package I installed recently called , which I need for my research, might have messed with my latex installation.  Please, let me know if anybody has any idea as to how this issue could be fixed as I cannot use LaTeX on my computer anymore.  Thanks


vSphere 5.5 in HA Environment and Autostart VM's

We have the setup as above which is "managed" by our vendor. During a recent power outage we found that none of the VM's came up upon the return of power (roughly 25 VM's), which once we discovered this issue we had the vendor start them up for us.  Looking into why they aren't setup to auto-start the vendor told us that since we are running in High Availability (HA) that this was not possible.  Is this true? I know how I can setup VM's to auto-start and looking at the configuration screens it appears you can do this with our datacenter. If not directly possible using the given tools is there scripting we could do to make this possible?  Thanks


Fixing "Page is not mobile friendly" report from Google test

In search results google reports "this page is not mobile-friendly". I want to fix this.   when I test my website in the mobile-friendly test, it reports:   Content wider than screen. Clickable elements too close together.   How can I find the items/content that are creating these problems?  Any help would be appreciated.


I have assembled an audio amplifier, starting from a cheap tpa3116d2 circuit board. It is powered up by using another cheap step-up circuit to reach 14V (manufacturer suggested 24V). I wanted to dissipate any potential heat by adding a (oversized) vent to the circuit. Both the amplifier + step-up are supplied by a 12v PSU from an old desktop pc. To feel safe that this setup wouldn't burn my house, I had decided to add a fuse on the +12V line between the PSU and the vent+stepup circuit, on a small prototype PCB. I had placed it the closest I could to the 12v connector. I had some 250V rated glass fuses, I had found (by trial and error) that the 0.5A glass fuse does its job (the 0.25A fused as soon as I have turned on the amplifier), and it has protected the speakers from a overcurrent spike by opening the circuit (the amplifier does not turn on properly when the volume is set to high on boot). Do I have to worry about the fact that the glass fuses are 250V and not 12v rated? Are there any factors to take into account when considering fuses?


Getting approximate value for variable instead of exact value

I'm getting approximate values for start variable in below code:  start = 1 end = 2 incr = 0.2 while start < end:     print(start)     start = start + incr   Actual output: 1 1.2 1.4 1.5999999999999999 1.7999999999999998 1.9999999999999998 Hit any key to close this window...  Expected output: 1 1.2 1.4 1.6 1.8  I couldn't figure out why this is happening.


I am working on a character and the mouth looks like this so far:    My problem: The upper and lower teeth booth go beyond the black part. My goal is to neaten the mouth up so that it has a linear form and no parts stick out into the brown part as the teeth do now.   My idea was to take the black shape, copy it in front and somehow to achieve that all parts outside the shape's form vanish. I just want to neat up the mouth. But I haven't found out how to do this. Any ideas?


A) He was arrested by police. b) He had been arrested by police.  In newspaper reporter want to tell about past event that has already happened.  In above statements Reporter conveyed same meaning, that police have arrested criminal and he is still in there custody.  I am aware that above sentence are In past Tense i.e. former is in simple past and later is in Past perfect. And also in Passive voice  My question is that why reporter purposely used was and had been in sentence? instead of that he could have used Present perfect. e.g he has been arrested by police.  Also Some times reporters does not use simple past before using past perfect.  e.g. He had been arrested by police when I was reached on the spot.


An $n\times n$ complex matrix $A$ satisfies $A^k=I_n$, where $I_n$ is $n\times n$ identity matrix and $k$ is positive integer $\gt1$. Suppose that 1 is not an eigen value of $A$. Then which of the fallowing is necessarily true?  1) $A$ is diagonalizble  2) $A+A^2+...+A^{k-1}=0$  3) $tr(A)+tr(A^2)+...+tr(A^{k-1})=-n$  4) $A^{-1}+A^{-2}+...+A^{-(k-1)}=-I_n$  I think 1) and 2) are ture.


I need an English expression ( preferably slang ) to express my willingness and commitment to do something ( e.g I will put my heart and soul into it )


How can you run Skyrim in borderless window mode?

I've noticed Skyrim has some issues when minimizing. This is a real pain when playing on multiple monitors and you attempt to find something on the other monitor. Is there anyway to enable borderless window mode in Skyrim?


What to do with an insignificant intercept in a GARCH model?

I have fitted model to my data and estimated parameters both using R and Matlab. Here are my results:          Estimate  Std. Error  t value Pr(>|t|) mu     -0.000188    0.000386 -0.48707 0.626206 omega   0.000002    0.000002  0.87820 0.379837 alpha1  0.062080    0.019779  3.13870 0.001697 beta1   0.925053    0.021205 43.62490 0.000000   Do I have to reject both mu and omega parameters? Is it really that bad? Does my model not fit the data well at all? Or have I missunderstood something?


C# generics: how to simplify call of the specific type

I have a code like this:    if (args.ElementType == typeof(SomeFirstClassName))   {     args.Result = GetResult<SomeFirstClassName>(args);   }   else if (args.ElementType == typeof(SomeSecondClassName))   {     args.Result = GetResult<SomeSecondClassName>(args);   }   How I can simplify this code, if I will have a many types? For example, can I do something like below?  args.Result = this.GetResult<**args.ElementType**>(args);   I cannot put the variable Type (args.ElementType) to the <>. Is it limitation of C#?


Is there a way in Blender to push faces like Sketchup does?     The best I can get is doing a regular extrude and a lot of work to clean the "mess" up...    Thank you for your time!


How to define the exponential function without calculus?

For fun, I would like to define the complex exponential function from these two properties:   $\exp(0) = 1$ $\exp(z + w) = \exp(z) \exp(w)$   From here, I would like to find a way to compute values of $\exp(z)$, or at least to compute $\exp(1)$.   So far, I found only two ways:   Noting that $\exp'(z) = \exp(z)$ and solving the differential equation, which leads to $\int \frac{\exp'(z)}{\exp(z)} dz = \log(\exp(z)) + C = z$. Noting that $\exp'(z) = \exp(z)$, computing its Taylor series and checking that what I get is an entire function.   The first approach is simply wrong because it involves logarithms, which I have not defined yet. The second approach looks much better. I haven't tried, but I guess I can find a way to manipulate the Taylor series to obtain the limit definition of $e$ and conclude that $\exp(1) = e$, which is my aim.  However, I'm struggling to find another way that does not involve differentiation or limits in general. I would be happy to find a way to say $\exp(1) = e$ without calculus. I think that the irrational nature of $e$ forces me to use limits -- am I right?


Confusing and overly complicated code sample at university

So at our university, they've been printing out the following piece of code on the coffee cups :  void f(char *x, char*y, int z) {     int z2 = (z + 7) / 8;     switch (z % 8)     {         case 0:         do          {             *x++ = *y++;         case 7:             *x++ = *y++;         case 6:             *x++ = *y++;         case 5:             *x++ = *y++;         case 4:             *x++ = *y++;         case 3:             *x++ = *y++;         case 2:             *x++ = *y++;         case 1:             *x++ = *y++;             } while (--z2 > 0);     } }   Running it, I've figured out it just copies z bytes from the address pointed to by y, into the address pointed to by x.  It seems to me as if the code is just needlessly complicated and ugly , with the switch statement and especially the confusing do while loop beginning in case 0 and ending in case 1. Wouldn't a simple for loop suffice ? :  void ff(char *x, char *y, int z) {     for (int i = 0; i < z; i++)         *x++ = *y++; }   As far as I could tell, it does the same thing, unless there's something I'm missing?


Convert column to Row for query with joins MYSQL

How do I convert the GROUP_CONCAT row result as a separate columns for this query? SELECT Email, Address, CityName, StateName, PostalCode, GROUP_CONCAT(DISTINCT     CONCAT(       PP.PrefKey     )   )     FROM Profile P      LEFT JOIN ProfileAddress PA ON  P.ProfileID = PA.ProfileID      LEFT JOIN ProfilePrefs PP   ON PP.ProfileID = PA.ProfileID     WHERE P.ProfileID = 6;   DESIRED OUTPUT OF QUERY RESULT email | address | cityname | statename | postalcode | availability | certifications | commute .... ProfilePrefs  table


Is it possible to use Change Tracking on a Replication target?

We have a setup where the production SQL Server databases are replicated to an offsite location using SQL Server Replication (transactional replication).  I am looking at using  to get the updated data in order to perform some processing and add values to a cache. Before I start down this road, does anyone know if it's possible to use Change Tracking on a replication target? It seems like it should work, but it also seems complex enough that there would be gotchas.


Why capacitor pass AC and block DC current?

We know that in circuit capacitor block the DC current and pass AC current. My question is how a capacitor block DC and pass AC?


Ubuntu on 32-bit UEFI - optimal solution

I have a computer (Asus T200TA) with 2G RAM and 32-bit UEFI [Yep, what a wonderful idea to put 32-bit UEFI!]. I have two options:   Install a 64-bit system, boot manually and install grub-efi-ia32. Drawback: 2G is not much, systems with such low RAM are said to run better on 32-bit systems. Install a 32-bit version. (but from my state of knowledge it's not trivial to boot)   Which option would be better?


How to mount a vdi file in ubuntu 13.10?

I'm trying to mount a vdi file in ubuntu 13.10. I tried to  sudo apt-get install virtualbox-fuse   but it complains about not finding the package.  Converting it to raw is not really an option for me, I don't have enough free space.


I have a large number of ECW format raster images and would like to use with GDAL (and ultimately in QGIS) on Mac OSX.  Having seen that there is no official ESRI support for the ECW library on any other platform other than Windows, I managed to get hold of the old version of the libecwj2-3.3 library. There are a few versions knocking around, but none of them will successfully compile.  Anyone had any success compiling the ECW library on OSX (10.6.7) and then compiling GDAL with ECW support.


I have a string:  produits/mousse-de-montage/marque/pbb/item/promax-pro-expansion   Everything that goes after produits is optional and must be captured by groups, here is my regex  /^.*produits(.*)?(\/marque\/.*)?(\/item\/.*)?/g   For some strange reason,  he put those 3 groups into a single one. If i remove question mark, he will split in 3 groups.


What is the difference between shares, stock and stakes? For a layman, many times it seems they are used almost interchangeably.


How do I use Tellraw Selectors on Bedrock Edition?

I’m trying to get a custom “player joined the game” message on my bedrock edition world but it won’t work. When I type  /tellraw @a {“rawtext”:[{“text”:”hi “},{“selector”:”@p”}]}   it doesn’t error but in chat it only says hi. I’ve tried searching a bunch of sites but I can’t find anything. Does anybody have any ideas? I really don’t want to use a say command because of the brackets.


Can I write a paper out of a simple idea?

Sometimes I have simple ideas that can be useful. They could be obvious or not, or it is possible that no one ever considered them the way I did.  For example:  To gather information about the statistics of the unemployed in a city or state, I suggest to build a website in which unemployed people register and enter their information. This information is very useful for decisionmakers on unemployment. But, after a while these statistics are not valid. On the other hand, unemployed people are very reluctant to update their employment status via the Internet or they don't have access to it. To solve this problem, we can send an SMS to them and they answer with 1 (as employed) and 0 (as still unemployed), then we integrate these answers to the central database. This way, we have up-to-date information in periods.  The idea was that simple, however maybe no one in our country implemented it. Could it be a paper? If yes, what can it include? Because it is as short as the above. Should I, for example, explain how we integrate the SMSs to the database (however, it may be simple too or the subject of other tools or papers). If I implement the system, should I provide the statistics of unemployment in a city or the percentage who contribute the plan? Totally, I don't know what else such a paper should cover.  For another example, suppose that I am the first one who invented the sliced bread. How long could my paper be and on what would I probably argue?    However it was just an example and after some research I may realize it is not workable, but I should say I actually built the website for an organization in my city one year ago (However not the SMS and updating part), then I was thinking if I can make a paper out of it. Maybe I could use some parts of the real data I gained in such paper, for example the people who registered (which was more than 80% of all the unemployed ranging from 20 to 40 years old) and those who had a cell phone (which was more than 98% of them), this topic shed some lights on my way.


I need to prove the following statement or find a counter-example: Let $u\in L^1\cap C^2$ with $u''\in L^1$. Then $u'\in L^1$.  Unfortunately, I have no idea how to prove or disprove it, since the $|\bullet|$ in the definition of $L^1$ is giving me huge problems. I found counter-examples if either $u\notin L^1$ or $u''\notin L^1$, but none of them could be generalized to a example that satisfies all the conditions.


I am attempting to dynamically add FrameLayouts inside a RelativeLayout but am getting the following error:  java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.RelativeLayout.addView(android.view.View)' on a null object reference  which occurs during rl.addView(fl)  public class StartingPage extends AppCompatActivity {  //set to 1 temporarily int count = 1;  @Override public void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_starting_page);      RelativeLayout rl = (RelativeLayout) findViewById(R.id.mainMenu);     FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 100, Gravity.CENTER_HORIZONTAL| Gravity.CENTER_VERTICAL);      for(int i=0; i < count; i++){          FrameLayout fl = new FrameLayout(this);        fl.setLayoutParams(params);         TextView item = new TextView(this);        fl.addView(item);         rl.addView(fl);     } }  }   My research seems to conclude that this would work, why is the FrameLayout fl null? I understand that a LayoutInflater is an option, which I have briefly tried to no avail, but it seems that many people were simply able to create the layouts and views and add them to the desired parent in this simpler manner.   <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"     android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"     android:paddingRight="@dimen/activity_horizontal_margin"     android:paddingTop="@dimen/activity_vertical_margin"     android:paddingBottom="@dimen/activity_vertical_margin"     android:id="@+id/mainMenu"     tools:context="com.marcel.joseph.project.Main_Menu">  </RelativeLayout>   Furthermore, what makes a layout null? Is it the lack of children, undefined attributes, or something else?  Thanks


unable to remove the lubuntu desktop environment

I'm using ubuntu 14.04.1. I installed lxde for lubuntu desktop environment. But it's creating a lot of problems for me, so I want to completely remove it now. I read the instructions online and followed them. I've removed all the files by all the ways explained on askubuntu and ubuntuforums. But it's not gone yet. But as explained in question  hasn't work for me. Please suggest, I don't want to re-install my ubuntu.


Why do video streaming services buffer when I plug in my headphones?

I've noticed while using Netflix, Xbox Video, and Amazon, when I plug in my headphones the video will buffer as if the audio output change affects the streaming services.   Can anyone explain why this happens?


Error when attempting to view the tour's revision history

On Latin.SE, I am getting a 404 error when clicking any of the three "history" links on the .  That is, this:        Gives this:        All three editable sections have a revision history with two revisions or more, and all three give an error.  The actual links are , , and .


Will it be more useful to study Sage+Python or R in statistics?

What are the pros and cons between  and Python versus R if I would like to do statistics on Linux? I know that I can use R inside Sage but in what order should I study those programs?


Does the point at which salt is added to a dish affect how the flavor is changed?

If I'm preparing a dish for myself and someone on a low-sodium diet, I will withhold adding salt while cooking.  Instead, I'll season my plate after serving.  However, I can't seem to get the same flavor from adding salt after-the-fact as I do when I'm salting while preparing the dish.  Is this all in my head or is there actually a difference in how the flavors are affected depending on when the salt is added?


Prove that $f(x) = x$ has a solution on [0,1]

Let $f:[0,1]\to [0,1]$ be a continuous function. Prove that $f(x) = x$ has a solution in $[0,1]$.  So, here, $f(0) = 0$ and $f(1) = 1$ and $f'(x) = 1$. Now, can we conclude that there is at least one solution and that is...


I have an 8 MB pdf file that definitely doesn't need to be that big. How can I reduce the size of this pdf file in Windows?


MacBook battery versus Tesla or Chevy Battery

I am curious to know from other users who are knowledgable with LiION batteries.  I work on a MacBook and just recently got a new machine.  From all my research of LiIon batteries, the optimal life to maintain the charge from studying EV-Car technology is to maintain charge from 20%-80%.  Is the same true on the MacBook?    Since both use LiIon i figure there should be parallels, but I figure there are differences with power management which may be chip-based.  Thoughts?  Thanks in advance.  Tri


How to compute the second fundamental form of the parallel surface

Given a regular surface $S$, we can compute the second fundamental form of it. Now, from the old surface, we can create a new one $T = S + tN$, where $t$ is the given fixed real number and  $N$ is the Gauss map i.e. $ T = \{ P + tN(P) : P \in S \} $. How to compute the second fundamental form of this new surface $T$ if the second fundamental form of $S$ is given?


Create a query step by step, should I use IEnumerable or IQueryable?

I'm using Entity Framework 6 and vb.net 2017. I have 2 cases when I need to create a query step by step :  query = (From t in context.myobj1s select t)  if (condition1) then      query = query.where(Function(t2) t2.value1 < 5) If (condition2) then      query = query.where(Function(t2) t2.value2 > 120)  query.tolist   and  query = (From t in context.myobj1s.Local select t)  if (condition1) then      query = query.where(Function(t2) t2.value1 < 5) If (condition2) then      query = query.where(Function(t2) t2.value2 > 120)  Mybindingsource.Datasource = query.tolist   My question is: how should I declare query in each situation:   Dim query as IEnumerable(of myobj1)   or   Dim query as IQueryable(of myobj1)


My question is about how dangerous a momentary amount of current is vs the duration.  Like is there a reasonably consistent relationship between current duration through the body and relative danger?  I.e. 1 amp for 1 second vs 0.01 amps for 100 seconds.  I imagine that's a bit complex to determine, but otherwise is there a duration for which a normally deadly amperage would shock someone but not cause a heart attack?  I read an article about research into a possible electric weapon that would shock someone on the scale of nanoseconds to stun them without risking killing them.


I am running Ubuntu 16.04 and have a problem with libxcursor1:amd64 which is causing everything to run really slow and not allow packages to be updated.  I have tried apt-get -f install to fix things and got this:  dpkg: error processing package libxcursor1:amd64 (--configure): package is in a very bad inconsistent state; you should reinstall it before attempting configuration Errors were encountered while processing: libxcursor1:amd64 E: Sub-process /usr/bin/dpkg returned an error code (1)   I have tried to force it to remove the package and reinstall it (failed). I have tried going into recovery mode and running it before everything loads, and this failed. Really stuck, as the laptop is unusable.  Thanks, Dom.


A good edit to my answer was incorrectly rejected

to my answer was nice and added example code. It improved the answer. Somehow four reviewers have rejected it! I have since manually added the code to the answer, but the reviews were IMHO ridiculous.  Could the moderators remove any black marks the editor (also asker of the question) got for this incorrectly rejected edit?


If $A$ is an $n \times n$ matrix and $ A^2 = 0$, then $\text{rank}(A)\le n/2$.

Was revising for a Linear Algebra when I came across this question.     "Given a Matrix $A$ over $\mathbb{R}^{n \times n}$, and $A^2 = 0$,   show that rank($A$) $\leq n/2$"   My attempt:  I was thinking of the theorem from Cayley-Hamilton but the matrix is a $n \times n$ matrix hence that's probably invalid.  Is there perhaps a significance of $A^2 = 0$? apart from a special case of the nilpotent matrix?


Complete list of help center magic links

Where is the complete, canonical list of magic links to the Help Center? The  seems quite short.


Condescending, empathising or 'let us reason together' "we"

What is the term for the condescending usage of "we" that essentially means "you"?  For example, when talking to a child, you might say "we need to be on our best behavior."  A slight variant could be the instructive tone commonly found in mathematical proofs, e.g. "we see from (xxx) that (yyy), which tells us that (zzz)..."  I thought for quite some time that this was the meaning of "the ", but it turns out that is a different thing.  What is the condescending usage actually called?


Can I stay in the uk for up to 3 months when am on a standard visitor visa valid for 6 months

I want to get a four months leave of absence from uni which is a dead semester because am going to apply for the visiting visa. What I would request to know is If I request for a period of 3 months in my application. I can get that requested period ??  Thank you


How to find similatrites between two files?

Hi i am new for linux i have two files in that one have sequence_id (file_1) and another has sequence_id with sequence (file_1). I have to do if the if the sequence_id (file_1) present in file_1 to be stored in new file.  Example: File_1  lcl|NW_002477239.1_gene_517 lcl|NW_002477243.1_gene_364 lcl|NW_002477248.1_gene_148 lcl|NW_002477249.1_gene_419 lcl|NW_002477249.1_gene_95    File_2  >lcl|NW_002477253.1_gene_1 TGATGGAAGCTTCCAATTCTCCCGACCAACAATCAGTGCTCAGTGAATCTATCCTTGTTAGCGAGTCGCTTGTTCCA >lcl|NW_002477239.1_gene_517 ATGGCTGATTTTGCAAAGGATCCTGCTCTCAACGCAGCATTATCTGCACCATGGGCGTTTCTCTGCCCTACATCAGAATTAAACGATACCATA   Expected output:  >lcl|NW_002477239.1_gene_517 ATGGCTGATTTTGCAAAGGATCCTGCTCTCAACGCAGCATTATCTGCACCATGGGCGTTTCTCTGCCCTACATCAGAATTAAACGATACCATA   Please help me to solve this problem.


Will I still receive OTA updates after rooting my Nexus 5?

I just wanna ask that after rooting Nexus 5 will I be receiving OTA updates by Google ? Or I'll have to install a custom ROM ?


how to migrate web parts with .wsp solution package from sharepoint 2007 to sharepoint 2010

can anyone please provide steps to follow for migratng custom web parts which has code based .wsp file form sharepoint 2007 to sharepoint 2010.Thanks in advance


I am leaving Jamaica to go to Austria, what should I write as my entry state of  first entry? I will be leaving to study for 4 months. Also, I am not sure what I need to write for member state (s) of destination. Should I write Austria since this is the main destination?


Projecting polygon when calculating its area using R?

I have a broad range of polygons (in vector format and in SpatialPolygonsDataFrame class), some going east-west, others going south-north, while even others span polar regions or very large ranges as mid-to-high/low-to-mid latitudes/longitudes. In addition, as a single polygon can consist of several merged sub-polygons, they do not necessarily have to be aggregated or continuous, but can instead be chopped-up across large ranges. I have until now calculated the area without projecting the data using gArea {rgeos} as follows gArea(SpatialPolygons(spdf@polygons)). Since I am not interested in visualization of any maps but only comparing polygon area and range sizes, I reckoned that the unit (square degrees vs. square meters) did not matter... but now I am not so sure.   So my questions are;  (i) Calculating polygon areas, would I need to project my data using an e.g. equal area projection?     If yes,   (ii) Since I do not care about any map visualizations and my polygons can span very broad ranges making it hard to find a single best projection, can I use the same projection for all polygons e.g. Lambert azimuthal equal-area projection when calculating the area?


ASP.NET MVC application displays nothing in IE/Firefox?

I use Chrome as my primary browser, but wanted access to Firebug to debug some javascript. With webforms projects, I simply run them, copy-paste the address the project is running at into Firefox or IE and go from there. This doesn't seem to work now that I'm using MVC - Firefox and IE both render a white page. A view source on either browser shows me that the HTML is there, but simply not being rendered. Works perfectly in Chrome, though.  Not sure what's going on here...has anyone had experience with this bizarre issue?  EDIT:  @prashant - clarified title, thought tag was enough, sorry.  @tomas - doctypes are correct, does not happen on a fresh MVC project (it renders fine)  @robaticus - saving the page as .html renders fine in firefox. Thought you might be on to something with Javascript, and it appears that is the problem. If I remove this section from my Site.Master template:  <script type="text/javascript" src="../../scripts/MicrosoftAjax.js" /> <script type="text/javascript" src="../../scripts/MicrosoftMvcAjax.js" /> <script type="text/javascript" src="../../scripts/jquery-1.4.1.min.js" />   everything works fine then, the page renders. The page itself doesn't have any special javascript, just those three declarations in the master it inherits. The file paths are accurate and they exist - what's the deal here? It's not a specific javascript file, either - as long as any of those 3  tags exist, bad things happen.


Why does bright pure red/green/blue light look white if bright enough?

I believe that white light is white because it contains every wavelength, as white by itself has no frequency by itself.  Can somebody explain why really bright pure red, green, or blue LEDs seem white to us and to cameras?  Also, can a bright light ever be pure(eg is it possible to emit a pure red/pure blue/pure green bright light only with wavelengths in the range of that light), or will the inherent brightness of a light force other wavelengths into the light?