While I was on Music meta recently, a +5 popped into my achievements box.  I clicked on my notification box, and this is what I saw:    Notice that the badge I got on Literature.SE has a "Note" badge beside it.  Shouldn't it be the generic dot, even though I am on the Music stack?

It's so cool that the notification reminds you of the colour of badge you've earned. But I am a little puzzled by the symbols:      Is it feasible to use the symbol from the earned site? At the moment it uses the symbol from the site I happen to be on (as you can see by looking to the left of the dropdown in each case.)


Trying to ssh to my laptop on my android phone with a network created by my laptop, but my android phone can't even see the wireless network I made. Will be carrying laptop around in a backpack. I don't need Internet access, tried refreshing phone, waiting, refreshing. Kali linux, android phone. I tried manually changing the channel. Is it maybe a frequency or channel issue?

I am trying to connect my Galaxy Tab to the Internet through an ad-hoc network made via my PC. The PC ad-hoc settings are fine because I can use it from my iPhone and other devices.


Ask Ubuntu user here.  Recently I was banned for 7 days from reviewing. I know that particular post was audit and I clicked on Edit   ( I know it was better to use delete than edit- but I thought I can use  Edit button for such audits to pass )     Previously I was banned for 2 days. After that till today I am sure I passsed dozens of audits and no single audit fail  My question:  Why the ban has increased from 2d to 7d, even I passed  dozens of audits since my last failure ?   Ban for only single audit fail ?

I was a few times blocked from reviewing for not passing audits (rather controversial ones). Since the last block I can't remember any failed audits, but I've passed a couple of them. Now I've failed that audit on that question:  and boom     You have failed too many recent review audits – looks like you might need a break. Come back in 7 days to continue reviewing.(more)     Why have I voted to close the linked question? Because it provides no code example, only a link to the site and "please diagnose my problem with that site". I don't think such questions are good. After a year the site will be either fixed or no longer operated, and the question will be probably useless.  What is the issue? The issue is, no matter how many audits I will pass, I will be blocked for failing single one, and with current system failing an audit is the question of time, until you install browser extension checking if it's an audit.   How to fix it?    never block for failing single audit count passed audits since last review block, not only the failed ones don't count failed audits forever, use some time window remove failed audits from the history, if the audit was disputed (the action contradicting the audit was taken, for example the question in leave-open audit was actually closed)   The last point is the most important one, because current mechanism of choosing audits is overly flawed. Meeting bad audits is as sure as death and taxes.  A positive aspect of current system: I don't care for the size of the close queue anymore. At least not in the next 7 days.


I have the follwing table:     \documentclass[a4paper,preprint,aps,                    unsortedaddress]{revtex4}     \usepackage[top=2.5cm,bottom=2.5cm,                 left=3.5cm,right=2.5cm]{geometry}     \usepackage{longtable,array,booktabs}      \ifdefined\mc        \renewcommand{\mc}{\multicolumn}     \else        \newcommand{\mc}{\multicolumn}     \fi      \begin{document}           \setlength\LTleft{-3.0cm}         \setlength\LTright{-2.0cm}          \scriptsize      \begin{longtable}{ l r @{--} p{1.3cm} >{\centering}p{2.6cm}                         *{5}{p{1.25cm}} p{2.1cm} p{0.7cm} }                    %% headers and footers      \caption{Table} \\      \hline\hline     \endfirsthead      \mc{10}{c}{\tablename\ \thetable\ -- \emph{Continued from previous page}} \\      \hline     aaaaaaaaaaaaaaaaaaaaaaaa & \mc{2}{c}{bbb--ccc} & ddd & eee & fff & ggg & hhh & iii & jjj \\     \hline     \endhead      \hline     \mc{10}{r}{\emph{Continued on next page}} \\     \endfoot      \hline\hline     \endlastfoot      %% body of table          aaaaaaaaaaaaaaaaaaaaaaaa & \mc{2}{c}{bbb--ccc} & ddd & eee & fff & ggg & hhh & iii & jjj \\     aaaaaaaaaaaaaaaaaaaaaaaa & bbb & ccc & ddd & eee & fff & ggg & hhh & iii & jjj \\     aaaaaaaaaaaaaaaaaaaaaaaa & bbb & ccc & ddd & eee & fff & ggg & hhh & iii & jjj \\     aaaaaaaaaaaaaaaaaaaaaaaa & bbb & ccc & ddd & eee & fff & ggg & hhh & iii & jjj \\      \end{longtable}     \end{document}   around which I would like to reduce the left and right margin to 0.5 cm using \setlength\LTleft{-3.0cm} and \setlength\LTright{-2.0cm}. Furthermore, I have to apply \scriptsize for the table. However, none of these commands are working with revtex4. Could you please provide a solution to this problem?

I have the following table:     \documentclass[a4paper,preprint,aps,                    unsortedaddress]{revtex4}     \usepackage[top=2.5cm,bottom=2.5cm,                 left=3.5cm,right=2.5cm]{geometry}     \usepackage{longtable,array,booktabs}      \ifdefined\mc        \renewcommand{\mc}{\multicolumn}     \else        \newcommand{\mc}{\multicolumn}     \fi      \begin{document}           \setlength\LTleft{-3.0cm}         \setlength\LTright{-2.0cm}          \scriptsize      \begin{longtable}{ l r @{--} p{1.3cm} >{\centering}p{2.6cm}                         *{4}{p{1.25cm}} p{2.1cm}}                    %% headers and footers      \caption{Table} \\      \hline\hline     \endfirsthead      \mc{9}{c}{\tablename\ \thetable\ -- \emph{Continued from previous page}} \\      \hline     aaaaaaaaaaaaaaaaaaaaaaaa & \mc{2}{c}{bbb--ccc} & ddd & eee & fff & ggg & hhh & iii \\     \hline     \endhead      \hline     \mc{9}{r}{\emph{Continued on next page}} \\     \endfoot      \hline\hline     \endlastfoot      %% body of table          aaaaaaaaaaaaaaaaaaaaaaaa & \mc{2}{c}{bbb--ccc} & ddd & eee & fff & ggg & hhh & iii \\     aaaaaaaaaaaaaaaaaaaaaaaa & bbb & ccc & ddd & eee & fff & ggg & hhh & iii \\     aaaaaaaaaaaaaaaaaaaaaaaa & bbb & ccc & ddd & eee & fff & ggg & hhh & iii \\     aaaaaaaaaaaaaaaaaaaaaaaa & bbb & ccc & ddd & eee & fff & ggg & hhh & iii \\      \end{longtable}     \end{document}   which I would like to shift to the left by setting \setlength\LTleft{-3.0cm}  and \setlength\LTright{-2.0cm}. Furthermore, I have to apply \scriptsize for the table. However, none of these commands are working with revtex4. Could you please provide a solution to this problem? (This question is the same as in , but I cannot sign up with that username.)  If it is not possible, an alternative solution would also be useful for me. For this case, I attached the first page of my real table.


I tried with different ways, but not worked at all. Please any-one help me ?  I've looked at this question:      The referenced duplicate is not the same question. The referenced question is about how to use one password for normal usage and one for sudo.   This question question can imply that a person has 20 passwords (none of which needs to be sudo)

How can I give a user one password for normal usage when logging in, and another password for system administration and sudo access? I want one user to have two passwords.


As you can see in the following code, the "\n" at the beginning of the string matches the pattern.  In [103]: print(re.match("\n", "\ndfss")) <_sre.SRE_Match object at 0x03904FA8>   However, if you look at the next code example:  In [102]: print(re.match("\n", "3\ndfss")) None   you can see that this time there is no match. The difference is that '\n' is not at the beginning of the string.   Do you have any idea why there is no match in the second example?

What is the difference between the search() and match() functions in the ?  I've read the  (), but I never seem to remember it.  I keep having to look it up and re-learn it.  I'm hoping that someone will answer it clearly with examples so that (perhaps) it will stick in my head.  Or at least I'll have a better place to return with my question and it will take less time to re-learn it.


I just got the new iPhone 7 and the new wallpapers which I have seen on ads and Apple's website are missing.   How to get them on my iPhone?  Current OS: 10.1.1  I don't want to download them from the internet because of quality issue. New wallpapers look like this.

On apple.com some variations of this wallpaper are shown on iPhone 7 and 7 Plus screens:    I can't find them on my iPhone 7 (iOS 10.0.2). Are they available exclusively for 7 Plus?  Here the same question:  (but no answer).


Can anyone tell me the title and author of a book where a girl can see rings of differing colors and by stepping through those rings she is transported to other worlds?  Not every one can see the rings and only those who can are able to travel through them.    She is also transformed to a creature suitable to live in what ever alternate reality she travels to.

Looking for the title and or author of a long ago favorite; I have searched the web for it on and off for years.  I read a paperback novel about 40 years ago; it was probably a used book at that time. Probably pre-1975 publication.  In my memory it was written in the style of Andre Norton I have looked through her , but I am not finding it. It was a young adult sci-fi novel.  Plot; a young woman (gender was not strong, but I remember the main character being female) can see different colored circles floating around. When she looks at them just right, she can jump through to another universe.  In the other universe, things change.  She might become a lion, or maybe she is carrying a seed that becomes a net in the other universe.   Two bad guys are chasing her around the different dimensions, I recall one scene where they are all sliding down an icy slope and she jumps through a portal, to escape the bad guys.   There were a lot of complexities about, dimensions, what became what, different colors of portals and such.


I have learned Present-perfect in school. But I felt that foreigner used in different way of Present-perfect. What is the right tense of this sentence?    Please choose the right picture that shows the exact meaning of the sentence i.e. I have finished my homework. Is it No.1  or No.2?  I heard that the Present-perfect tells the nearest past. The blue part of the picture shows the tense of the sentence. I think No.2 is the right picture that shows the right meaning of the sentence (I have finished my homework.) The sentence below include the nearest past of Present perfect tense. Am I right?

Non-native speakers often get confused about what the various tenses  and aspects mean in English. With input from some of the folk here I've put together a diagram that I hope will provide some clarity on the matter.  I offer it as the first answer to this question. Consider it a living document. Input is welcome, and good suggestions will be  incorporated into the diagram.    Nota bene: What this is not is a discussion of whether there are  more than two tenses in English. , to which this question is not intended to supply arguments one way or the other.  Here, the aim is to provide an overview of what constructions English-speaking people use for conveying information about actions referring to past, present, and future, and to provide it first and foremost to precisely the people who are likely to use "tense" as a catch-all term in their search, rather than to linguists who know better.  Breaking News There is now an excellent ELU blog article titled  . It is highly recommended reading.


Someone gave me a pavilion g6 with grub on it but no hardrive so I bought a hardrive tried to install Windows 7 but every time I turn the computer on it says grub rescue error or something like that. Please help I have no experience with ubuntu. How do I get rid of it and put Windows 7 on there.

I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.  How do I remove Ubuntu and reinstall Windows?    Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot.


I am a NG+ level 73 and I am not able to get any legendary item. Is it even possible to get a legendary item even if I am playing at veteran level? Or do i need to have version 1.25.5.2?

Is there a level requirement or stat requirement for getting legendary items? Or do they simply drop that infrequently that they're hard to find? Are legendary weapons more likely to drop for high level characters? I'm nearly 150 hours into this game, and have yet to get one.


$\int_0^1\frac{x^2\ln x}{\sqrt{1-x^2}}dx$    I tried putting $x=\sin \theta$ and changing the limits from $0$ to $\frac{\pi}{2}$and i got  $\int_0^\frac{\pi}{2}\sin^2\theta\ln \sin \theta d\theta$ i cannot further solve it

Evaluate $$\int_0^1 f(x) dx$$ where  $$f(x) = \frac{x^2\ln x}{\sqrt{1-x^2}}$$  I started off with the substitution $x=\sin y$, which resulted in the integrand reducing to  $$\sin^2y\cdot \ln (\sin y) dy$$  Then I used the property of definite integrals that  $$\int_a^b f(x) dx = \int_a^b f(a+b-x) dx$$  Then too it wasn't getting simplified. I tried $e^z=\sin x$, but this gave no headway because after a while I reached a complete full-stop. How should I go about this?


I want to bevel a rectangular prism, but when I stretch the prism, instead of keeping the same bevel, the bevel stretches as well. How can I get the bevel to stay the same size while the prism is stretched?

I seem to have screwed up something that allows you to inset evenly, I think I have tried every combination of settings in inset and pivot center and even is far from even.  I tried uninstalling and re installing blender 2.71 and get the same result.  The image attached is a simple default cube that I tried to inset evenly.  I have also attached the blend file link  help??


Why is the current constant in a series circuit? I am confused as I thought that the charges closer to the negative terminal move with a greater velocity than the charges closer to the positive terminal at the moment the voltage is applied?

I have read in the internet that the charges do not have any other path to go and they must go through the same in a series circuit,hence the current is same.  It was quite convincing but what confused me was: "A resistor is a passive two-terminal electrical component that implements electrical resistance as a circuit element. Resistors act to reduce current flow..."(according to the Wikipedia). This means that the resistors slow down the rate of flow of charges. By definition, electric current is the rate of flow of charges. Then must not the current be reduced in a resistor even when the amount of charge is same?


I would like to download the Stack Overflow dataset that contains the question title and top-rated answer (not answer id).

The original ClearBits link to the September 2011 data dump has broken. How can I access it and other previous data dumps? The Internet Archive only has .


I've been playing around with the Varnish cache server and I got my webpage up lightning fast, it gets 97 Points in Google's Pagespeed and 100 @ Pingdom's. I used Varnish (proxies to nginx), NGINX (only locally available, proxies *.php to php-fpm (but I think about moving to HipHop PHP Compiler)).  So as my page was  fast and only ~500/1GB of Ram were used I asked a friend of mine to perform a stress test on this machine's HTTP server. I've configured the following Anti-DDoS-mechanisms:   iptables Firewall limiting Connections / second some more iptables checks (Sessions starting with a SYN, ICMP and so on) Varnish caching Re-coded the small webpage to store some values that may be fetched often in the alternate php cache (i.e.: the currently playing song, ttl of 120 should be fine)   There is no dynamic data on the webpage except for the currently playing song which is APC-powered, and definetly no need for sessions.  So now to my problem, my friend started a DoS attack from some machine he was authorized to use and my server went down VERY fast. I was umable to get on SSH so I used a serial console and checked the varnishd logs, which showed: session start session end  And this repeating all the time. I took advance of my console access and banned the IPs, ê voila my page was back.  Now since there is no need for session I need the VCL Syntax for prohibiting all sessions except for scripts in the subdir /user.

This is a  about DoS and DDoS mitigation.   I found a massive traffic spike on a website that I host today; I am getting thousands of connections a second and I see I'm using all 100Mbps of my available bandwidth.  Nobody can access my site because all the requests time out, and I can't even log into the server because SSH times out too!  This has happened a couple times before, and each time it's lasted a couple hours and gone away on its own.  Occasionally, my website has another distinct but related problem: my server's load average (which is usually around .25) rockets up to 20 or more and nobody can access my site just the same as the other case.  It also goes away after a few hours.  Restarting my server doesn't help; what can I do to make my site accessible again, and what is happening?  Relatedly, I found once that for a day or two, every time I started my service, it got a connection from a particular IP address and then crashed.  As soon as I started it up again, this happened again and it crashed again.  How is that similar, and what can I do about it?


I'm trying to convert this Ã¼ to ü in php.  I want to get this kind of characters to correct format. this is Germany characters format. somehow the database recode is like this. but it's not a correct format.  here is my code,  //Germany $text = "Italienische GemÃ¼sesuppe"; setlocale(LC_ALL, 'de_DE');  $trans_sentence = iconv('UTF-8', 'ASCII//TRANSLIT', $text); //correct format should be like this : Italienische Gemüsesuppe   But this is not working as expected.  How do i do it ?

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


I'm writing a document and my latex code linter is telling me  missing `\@' before `.' in "ABC."   The linter only gives me this warning when there is a capital letter just before a period ending a sentence that precedes another sentence. What does this \@ do? Putting it in my code doesn't seem to make any change to the document.  Minimal example  \documentclass{article} \begin{document} ABC. Hello. \end{document}

In , \@ is used after a period and before an \xspace, presumably to indicate that the preceding period (in "etc.") was not sentence-final.  In , \@ is used before a period and after capital letters, to indicate that the preceding capital letters are sentence final.  Since \@ is rather difficult to search for online, I thought I'd try to ask here: what exactly does \@ do, and how do you use it properly/consistently?  For instance, how should you input the following farcical sentence?     Languages like JS, HTML, etc. were not used by King Henry III.   EDIT: I'm accepting Barbara's answer below as it (and the comments on it) indicate the initial intent of \@: "the period which follows is sentence-final".  Its counterpart is \  (slash-space), which says "the period which precedes is sentence-medial".  Egreg's answer explains in far more detail exactly how \@ and \spacefactor work to cause the effects seen by \@ and \  after lower- and upper-case letters and punctuation.  Both are very helpful answers.  Two correct answers to my made-up sentence above is  Languages like JS, HTML, etc.\ were not used by King Henry III\@. Languages like JS, HTML, etc.\@ were not used by King Henry III\@.   The former is arguably "better style", while the latter demonstrably produces the correct result even if it seems less consistent about placement of \@ versus periods.  And a safe but slightly redundant answer blindly adds \@ before every comma:   Languages like JS\@, HTML\@, etc.\ were not used by King Henry III\@.   This last one is amenable to macro-izing: \def\acronym#1{\textbf{#1}\@\xspace} (or whatever style you'd prefer), where the \xspace disappears if the next character is punctuation, and the \@ ensures that subsequent punctuation thinks it follows a lowercase word and not an uppercase initial.


Using following code i want to get href of <A> but <A> could be at any number of inner iframes. Basically we are trying to fetch url on which our advertisement is redirecting and because of nested structure of iframe we are not able to fetch that url.  CODE:  <!DOCTYPE html>  <html> <head> <script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>   <meta charset="utf-8">   <title>JS Bin</title> </head> <body> <div style="width:300px;border:1px solid #000;" id="test">  <SCRIPT SRC="http://ib.adnxs.com/ttj?id=3234436&cb=${CACHEBUSTER}&referrer=${REFERER_URL}&pubclickenc=${CLICK_URL_ENC}" TYPE="text/javascript"></SCRIPT>  </div> <script TYPE="text/javascript"> var href=''; function recurring(target){      $(target).each(function(){         var obj=$(this);         var tagNm=($(this).prop("tagName"));         alert(tagNm);         if(tagNm.toUpperCase()=='DIV'){             recurring($(this).find("*"));         }         else if(tagNm.toUpperCase()=='IFRAME'){             console.log(obj);             recurring(obj.find('body'));         }         else if(tagNm.toUpperCase()=='A'){             if($(this).attr("href")!="" && $(this).attr("href")!=undefined){                 alert('if->'+$(this).attr("href"));                 href=($(this).attr("href"));             }         }     }); } $(document).ready(function(e) {     recurring($('#test'));     //alert('34');     alert('my href->'+href); });  </script> </body> </html>

I would like to manipulate the HTML inside an iframe using jQuery.  I thought I'd be able to do this by setting the context of the jQuery function to be the document of the iframe, something like:  $(function(){ //document ready     $('some selector', frames['nameOfMyIframe'].document).doStuff() });   However this doesn't seem to work. A bit of inspection shows me that the variables in frames['nameOfMyIframe'] are undefined unless I wait a while for the iframe to load. However, when the iframe loads the variables are not accessible (I get permission denied-type errors).  Does anyone know of a work-around to this?


Is green board or cement board required on shower/tub walls in massachusetts?

I'm replacing a one piece fiberglass tub with a two piece (tub + surround) unit.  In the bathroom right now, there's just drywall, no special material.  Should I replace the drywall with greenboard, or with a cement board material (i.e. Durock)?  How many feet adjacent to the but should be replaced with one of those two materials?  Should I also replace the material behind the vanity with one of those two?


I am trying to plot a bar chart like below:   \documentclass{standalone} \usepackage{graphicx} \usepackage{tikz} \usepackage{pgfplots} %\usepackage{subcaption} \definecolor{blues1}{RGB}{198, 219, 239} \definecolor{blues2}{RGB}{158, 202, 225} \definecolor{blues3}{RGB}{107, 174, 214} \definecolor{blues4}{RGB}{49, 130, 189} \definecolor{blues5}{RGB}{8, 81, 156}  \begin{document}  \begin{tikzpicture} \begin{axis}[  symbolic x coords={$\tau =5$,$\tau = 10$,$\tau =15$,$\tau =20$, $\tau =25$}, xtick={$\tau =5$,$\tau =15$, $\tau =25$}, %x tick label style={ %/pgf/number format/1000 sep=}, ylabel=$\mathcal{R}_{\max}$, ytick ={0.9, 0.92, ..., 1}, xlabel = Size of the Time Window, %enlargelimits=0.15, %legend style={at={(0.5,-0.1)},anchor=north}, legend style={at={(0.65,1)}, anchor=north,legend columns=-1}, ybar, bar width=5.8pt,] \addplot[style={fill=blues3,mark=none}]  coordinates {($\tau =5$,0.90) ($\tau =15$,0.91) ($\tau =25$,0.9011) };\addlegendentry{run=1} \addplot[style={fill=blues2,mark=none}] coordinates {($\tau =5$,0.9465) ($\tau =15$,0.925) ($\tau =25$,0.9314) };\addlegendentry{ run=2} \addplot[style={fill=blues1,mark=none}] coordinates {($\tau =5$,0.98) ($\tau =15$,0.977) ($\tau =25$,0.97) };\addlegendentry{run=3} \end{axis} \end{tikzpicture}  \end{document}   what I want is to fill the bars with some distinguishable patterns so that if the document is printed as black and white the figure will be understandable. How can I do that? Thanks.

Is it possible to combine a TikZ pattern with a background of a chosen color?  \addplot[black,fill=yellow,pattern=north east lines] ...   yields bars which have black stripes on white (transparent?) background, whereas  \addplot[black,pattern=north east lines,fill=yellow] ...   yields bars which are plain yellow with not stripes at all. Any chance of getting tiger-like bars (black stripes on yellow) without defining an inherently-colored pattern by hand?


If I throw only one photon at the slits in Young's double slit experiment, can I get the interface pattern?

If just a single photon hit a single slit interferometer, what would happen? Would you just see a dot on the screen, or would there be a diffraction pattern? Furthermore, if you had a double slit interferometer but also had which-path information would there still be a diffraction pattern even though there is no interference?


I have a question how can I fix the block with likes,comments,author,inside another block,cause if I make less text it will go up    .post {   display: block;   height: 200px;   width: 800px;   background-color: rgba(63, 63, 63, 0.11);   margin: 20px 20px; }  .title-block {   font-family: Calibri;   font-weight: 100;   font-size: 40px;   background-color: rgba(63, 63, 63, 0.09); }  .title {   margin-left: 5px; }  .post-categorie-block {   margin-top: 10px;   font-family: Calibri; }  .postcat {   font-weight: 600; }  .text-block {   font-family: Calibri;   padding: 10px 10px 10px 10px;   font-size: 28px; }  .bottom-post-panel {   font-family: Calibri;   background-color: #cccccc;   width: 800px;   text-align: left;   margin-top: 10px; }  .misc {   margin-left: 10px;   margin-right: 10px;   font-size: 20px; }

         Lorem Ipsum

         Категория:         Lorem Ipsum

         Lorem ipsum dolor sit ametamet, ornare sed tellus. Quisque vel elementum dolor, non eleifend nulla. Donec ut volutpat dui, porttitor pellentesque magna.

         Likes: 50         Comments: 10         Author: Lorem

    If I make position fixed, it will fix that block on whole page, I know that it is calculating margin from text block, but how do I make another way to fix it inside post block

Given the following HTML:

     Copyright Foo web designs

    I would like #copyright to stick to the bottom of #container. Can I achieve this without using absolute positioning?


Is there any pager, like less, that would allow paging result, but keeping configurable number of lines at the top always?  Example: I run a query that returns many rows from database. Results are single line of headers (column names), "border", and then the records.  Normal pager treat headers as part of the text, which is not optimal, because it's easy to forget name of the column, or their order, when dealing with sufficiently large datasets.

Suppose I have some large datafile, which overflow the screen in both vertical and horizontal direction. How can I browse this file, while the header-lines stay on the screen?  For the moment, I am using less -S, so that I can nicely scroll my file horizontally and vertically. However, when scrolling down, the header lines obviously disappear. Is there a way to keep these using less?  An alternative is using vim in split-screen mode with :set nowrap. However, now if I scroll horizontally, the top window doesn't scroll in the same way (:windo set scrollbind only works for vertical scrolling as far as I know).


We build the following service on redhat machine  version 7.2  more king.service  [Unit] Description=king Daemon Requires=network.target remote-fs.target After=network.target remote-fs.target  [Service]  ExecStart=/opt/home/king/king-server-0.216/bin/launcher start ExecStop=/opt/home/king/king-server-0.216/bin/launcher stop  Type=forking PIDFile=/opt/home/king/data/var/run/launcher.pid Restart=always RestartSec=10 StartLimitInterval=400 StartLimitBurst=5  [Install] WantedBy=multi-user.target   Now we stopped the service  systemctl stop  king.service   now we check the status of king service  systemctl status  king.service ● king.service - king Daemon    Loaded: loaded (/etc/systemd/system/king.service; disabled; vendor preset: disabled)    Active: failed (Result: exit-code) since Thu 2019-03-28 10:39:23 UTC; 35s ago   Process: 26595 ExecStop=/opt/home/king/king-server-0.216/bin/launcher stop (code=exited, status=0/SUCCESS)   Process: 26300 ExecStart=/opt/home/king/king-server-0.216/bin/launcher start (code=exited, status=0/SUCCESS) Main PID: 26306 (code=exited, status=143)   So service is down  Now , we start the script itself - /opt/home/king/king-server-0.216/bin/launcher start ( instead to do it from the service )  /opt/home/king/king-server-0.216/bin/launcher status Running as 27286   Before I continue , as I understanding now we should see the service is up , because we start the script  But when we check the service we see that service still down , in spite the script is running  systemctl status  king.service ● king.service - king Daemon    Loaded: loaded (/etc/systemd/system/king.service; disabled; vendor preset: disabled)    Active: failed (Result: exit-code) since Thu 2019-03-28 10:39:23 UTC; 35s ago   Process: 26595 ExecStop=/opt/home/king/king-server-0.216/bin/launcher stop (code=exited, status=0/SUCCESS)   Process: 26300 ExecStart=/opt/home/king/king-server-0.216/bin/launcher start (code=exited, status=0/SUCCESS) Main PID: 26306 (code=exited, status=143)   So why service not follow according to the script ?  Where I am wrong here?

I have a service that I would like to manage through systemd - let's call it foo. I wrote unit files, and they're working just fine. So, if I run systemctl start foo, the service starts correctly, and I can see its status with systemctl status foo.   However, an external program may also start the service, and it doesn't use systemd to start the service. So, the service can be running, but since it wasn't started through systemd, systemd doesn't know about it. In this case, systemctl status foo reports that the service has failed, even though its running correctly.   Is there a way to have systemd 'inherit' or 'adopt' this service, so systemctl status foo correctly reports that the service is running, even when systemd didn't start it? With SysV, I would write a small 'status' script, so I could /etc/init.d/foo status, but that doesn't seem to fit with the systemd model.  To be clear, when the external program starts the service, the service's processes are still children of PID 1/systemd. But, systemd doesn't recognize them as part of service foo, since systemd didn't start and register them.   The specific technologies are:   Oracle WebLogic (the service is a Managed WebLogic Instance) Oracle NodeManager (this is the external program that may also start the service) systemd 219


When we perform row operations on the matrix, for instance, say we are reducing the matrix to a reduced row echelon form, how does doing this help us understand what the linearly independent columns are when we are clearly making changes to the rows?

I know that I can find a basis for the column space of a matrix $A$ by reducing the matrix to reduced row echelon form $J$. The columns of $A$ corresponding to the linearly independent columns of $J$ then form a basis for $Col(A)$, because linear dependence is preserved under elementary row operations. I can't figure out why this is true though, and a google search returns nothing, so I'm sure it's simple. Can someone give me a proof?


How to qualify for heat endurance with a lvl 3 wizard is what im wondering. We have 1 feat level one and 3 feats level 3

I am building a Wizard character that focuses on using Greater Drought from the Walker in the Wastes prestige class.  The campaign is starting at level 12, so I need to figure out a way to build a Wizard 3/Walker in the Wastes 9.  I am planning on using Southern Magician and Extra Spell to get around the spell requirement, but I'm having trouble qualifying for Heat Endurance by level 3.  We are using a variant rule where, at every level divisible by 3, we get 3 feats instead of 1. At level 3, I'll have 1 feat from level 1, and 3 feats from level 3.  How can I build a character with 11 total levels of Wizard spellcasting and the Greater Drought Walker in the Wastes ability by level 12?  My current character sheet can be found .


My Macbook Pro runs 10.6.8 and I have a NTFS 500G disk. In order to write into the disk, I had tried to edit the /etc/fstab file. It did work for years, but recently, I found it do not work and I don't know why.  Can anyone tell me why it has stop working and how to fix it?  I know installing some softwares can solve this problem, but I prefer to know why the /etc/fstab file invalid now.

What is the best, easiest, preferably cheapest way to make OS X write to NTFS-formatted drives in Mac OS X?


This problem isn't of any particular importance in itself, but came up for me randomly, and though I couldn't crack it, I thought learning how would likely be instructive in improving my number theory skills.  Is it possible to completely classify the solutions to $2 \times 5^n - 1 = m^2$ in natural numbers (i.e., the values of $n$ for which the left-hand expression is indeed a square)? Those $n \in \{0, 1, 2\}$ clearly work, and after that most don't, but are these indeed all the solutions, and if so (or if whatever alternative holds), how does one see so?

What are the integer solutions to the diophantine equation   $$n^2 + 1 = 2 \times 5 ^m? $$  We have $(n,m) = (3,1), (7, 2) $ as solutions. Are there any more?    This seems like it would be a well known diophantine equation, but I can't seem to find any information about it.


I wonder why minor ticks are not displayed even though      minor y tick num=4     was specify when I use pgfplots.I know there is a way to manually add the minor y tick by        minor ytick={0.04,0.08,...,1.6}   but I want it added automatically because lots of data  like the table listed below are waiting to be processed .Here is my minimal work code  \documentclass[tikz]{standalone} \usepackage{tikz} \usetikzlibrary{calc} % \usepackage{pgfplots} \usepackage{pgfplotstable}  \begin{document} \begin{tikzpicture} \begin{axis}[title=R,                  width=8cm,height=1.1*\axisdefaultheight,                  %xmode=log,                  %ymode=normal,                  log basis x={10},                  xmin=0,xmax=2e6,ymin=0,ymax=1.6,                 ytick={0,0.2,...,1.6},                 minor y tick num=1,                 yticklabel style={opacity=1,/pgf/number format/.cd,fixed,fixed zerofill,precision=2},                 grid=both,                 every major x grid/.style={red, opacity=0.8},                 every major y grid/.style={blue, opacity=0.5},                 every minor x grid/.style={red!80, opacity=0.8},                 every minor y grid/.style={blue!80, opacity=0.5},                 ]             \addplot table[             x expr={\thisrowno{0}},             y expr={\thisrowno{1}},             ]{ 100 0.0354781 244.9   0.0363808 570.7   0.0402797 1204    0.0510097 1884.4  0.0616097 2669.7  0.0713232 3598.7  0.0808529 5098.5  0.0938683 5358.6  0.0959249 5632.1  0.0980125 5919.4  0.100159 6221.5  0.102366 6538.9  0.104629 6872.6  0.106945 7223.3  0.109323 7591.8  0.111751 7979.2  0.114237 27688   0.202986 61391   0.300919 111500  0.404596 183400  0.510449 273200  0.604212 406800  0.711876 548300  0.806257 739200  0.915297 2000000 1.36077 };% \end{axis} \end{tikzpicture}   \end{document}    Which produce     As you can see,the minor y tick not shown as expected.Any suggestion will be appreciated.Thanks a lot.

Firstly I would like a minor tick between every major tick in my pgfplots graph (and minor grids). I wrote minor tick num=1 but it doesn't work. I am not using a logarithmic axis so it is unrelated to other questions.  Secondly, why is the tick label "1" missing for each axis? How do I get that to display?     \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture}  \begin{axis}[% footnotesize, width=4in, height=4in, axis equal, scale only axis, separate axis lines, grid=both, every outer x axis line/.append style={black}, every x tick label/.append style={font=\color{black}}, xmin=0, xmax=1, xlabel={X}, every outer y axis line/.append style={black}, every y tick label/.append style={font=\color{black}}, ymin=0, ymax=1, ylabel={Y}, minor tick num=1, xtick={0,0.1,...,1}, ytick={0,0.1,...,1}, axis background/.style={fill=white}, legend style={at={(0.97,0.03)},anchor=south east,legend cell align=left,align=left,fill=white} ]  \end{axis}  \end{tikzpicture}% \end{document}


So ... I remember vaguely how to setup network with static IP.  I got dedicated server from  and for some stupid reason, it doesn't have DHCP.   Before, I would just add the static IP to /etc/network/interfaces. Now everything seems not working.   I do have some other questions though. This same partition is booted from VirtualBox/QEMU and have ens3 as network interfaces, and booted directly (reboot), it has enp2s0 as interfaces! Why?  and where is eth0?  To add more informations, this is Lubuntu on server environment. Yes it is stupid, but I don't want to talk about that.

A lot of my scripts stopped working after installing Ubuntu 15.10 and I have trouble remembering this new name as I was used to ethx and wlanx for years. Is there a reason for this change? Do I have to get used to this or can I just rename it and go back to good old eth0?  $ ifconfig  enp0s25   Link encap:Ethernet  HWaddr 77:5a:5e:a6:86:d5         inet addr:192.168.31.239  Bcast:192.168.31.255  Mask:255.255.255.0       inet6 addr: fe80::725a:b6ff:fea6:86d7/64 Scope:Link       UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1       RX packets:4833 errors:1332 dropped:0 overruns:0 frame:666       TX packets:5589 errors:0 dropped:0 overruns:0 carrier:0       collisions:0 txqueuelen:1000        RX bytes:3266446 (3.2 MB)  TX bytes:1046654 (1.0 MB)       Interrupt:20 Memory:d3500000-d3520000


I want to call a script on machine shutdown and restart. I have written code like  #! /bin/bash #chkconfig: 0 6 1 1 #description: Description of the script # processname: killfoo # this script starts and stops foo  # Some things that run always LOG_FILE="/tmp/killfoo.log"  log() { while IFS='' read -r line; do echo "$(date) $line" >> "$LOG_FILE"; done; }; exec > >(tee >(log)) # Carry out specific functions when asked to by the system case "$1" in   start)     echo "Nothing to done"     ;;    stop)     echo "Stopping script killfoo"     pkill   -9 foo >> $LOG_FILE 2>&1      ;;   *)     echo "Usage: /etc/init.d/killfoo {stop}"     exit 1     ;; esac  exit 0   I created file /etc/init.d/killfoo having executable permission.  I have enable this script for run level 0,6.  chkconfig --add killfoo chkconfig --level 6 killfoo on   But script is not getting executed on machine restart. What could be the problem ?

I have set up an init-script to control the state of a VirtualBox VM:  #!/bin/sh #chkconfig: 35 99 5 #description: vTiger virtual machine  ### BEGIN INIT INFO # Provides: vtigervm # Required-Start: $local_fs # Requider-Stop: $stop_fs # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: Manage vTiger virtual machine # Description: Utility to start and stop vTiger virtual machine on VirtualBox ### END INIT INFO  start() {     echo -n "Starting vTiger"     echo     su myuser -c '/usr/bin/VBoxManage startvm "vTiger" --type headless'     echo "Started virtual machine" >> /var/log/messages }  stop() {     echo -n "Shutting vTiger down..."     echo     su myuser-c '/usr/bin/VBoxManage controlvm "vTiger" acpipowerbutton'     while [ ! -z "`su - juhani -c '/usr/bin/VBoxManage list runningvms | grep vTiger'`" ]; do         echo -n "."         sleep 1     done     echo "Done."     echo "Stopped virtual machine" >> /var/log/messages }  status() {     echo -n "Running VMs: "     su myuser -c '/usr/bin/VBoxManage list runningvms'     echo     if [ -z "`su - juhani -c '/usr/bin/VBoxManage list runningvms | grep vTiger'`" ]; then         RETVAL=3         else         RETVAL=0     fi     echo "Queried virtual machine status" >> /var/log/messages }  echo "Called virtual machine management script with: $1" >> /var/log/messages case "$1" in   start)         start    ;;    stop)         stop    ;;    restart|try-restart|condrestart|reload)         stop         start    ;;    status)         status    ;;    *)         echo $"Usage: $0 {start|stop|restart|status}"         exit 1    ;; esac  exit $RETVAL   The system is CentOS 6.5. If I manually run service [start|stop|status] vtigervm, it works as I expect it to. If the VM is running, $? after the service vtigervm status returns 0, and 3 if it is stopped. I installed it with chkconfig and it created among a few others rc5.d/S99vtigervm and rc0.d/K05vtigervm.  The problem  When I start the system it starts the "service", but on shutdown it does not even run the scripts.  grep "virtual machine" /var/log/messages shows:  *[machine starting]* Called virtual machine management script with: start Started virtual machine *[shutdown -h now]* *[machine stopped]*   What I expect:  *[machine starting]* Called virtual machine management script with: start Started virtual machine  *[shutdown -h now]* Called virtual machine management script with: status Queried virtual machine status Called virtual machine management script with: stop Stopped virtual machine *[machine stopped]*   File permissions & etc:  # ls -lah /etc/rc0.d/ lrwxrwxrwx. 1 root root 13 7.2. 17:49 /etc/rc0.d/K05atd -> ../initd.d/atd lrwxrwxrwx. 1 root root 18 9.2. 00:06 /etc/rc0.d/K05vtigervm -> ../initd.d/vtigervm


So here's the problem. I have a rather old laptop, bought it in 2007. It's an Acer Aspire 5100-5023 if that means anything to anyone. It has an integrated graphics card, ATI Radeon Xpress 1100. ATI (I guess AMD now) no longer provides legacy support for this card.  Now I have Ubuntu 12.10. It has xorg 1.13. Unity wont run correctly with out that version of xorg. However, any existing catalyst drivers aren't compatible with xorg 1.13. The OpenGl drivers I currently have seem to be sufficient for my usualy activities. Any graphics problems encountered thus far have been tolerable, I'm even at 1920x1080 resolution (I have a monitor attached, the built in screen on my laptop could never dream to do that. It's really a dinosaur now.)  The problem arises when I try to run games. Particularly I've been trying to run Starcraft 2 through PlayOnLinux which is a front end for Wine. I have to enable the debugger to see what's wrong and it points to OpenGl not being able to render a 3d environment. Particularly err:winediag:wined3d_dll_init The GLSL shader backend has been disabled. You get to keep all the pieces if it breaks. But that's irrelevant information to my problem.  SO here's my question: What is the best alternative graphics driver for my graphics card? The proprietary drivers are not compatible with the current version of xorg while OpenGl drivers are inefficient. There are probably people working on creating a compatible driver, but I figure I'd ask to see if there are any projects out there for creating the driver that I so need.  Chances are there are other older graphics cards that are in need of compatible drivers. With such a need there is bound to be a solution.  This information may or may not be relevant. The output of dmesg | grep -i radeon is      [   64.010927] [drm] radeon defaulting to kernel modesetting.     [   64.010933] [drm] radeon kernel modesetting enabled.     [   64.011036] radeon 0000:01:05.0: power state changed by ACPI to D0     [   64.011042] radeon 0000:01:05.0: power state changed by ACPI to D0     [   64.012906] radeon 0000:01:05.0: VRAM: 256M 0x0000000070000000 - 0x000000007FFFFFFF (256M used)     [   64.012911] radeon 0000:01:05.0: GTT: 512M 0x0000000080000000 - 0x000000009FFFFFFF     [   64.012954] [drm] radeon: irq initialized.     [   64.022849] [drm] radeon: 256M of VRAM memory ready     [   64.022852] [drm] radeon: 512M of GTT memory ready.     [   64.053820] [drm] radeon: 3 quad pipes, 1 z pipes initialized.     [   64.074991] radeon 0000:01:05.0: WB enabled     [   64.075003] radeon 0000:01:05.0: fence driver on ring 0 use gpu addr 0x0000000080000000 and cpu addr 0xf04fe000     [   64.799739] [drm] radeon: ring at 0x0000000080001000     [   64.812571] [drm] radeon legacy LVDS backlight initialized     [   64.812576] [drm] Radeon Display Connectors     [   64.814687] [drm] radeon: power management initialized     [   65.090504] fbcon: radeondrmfb (fb0) is primary device     [   65.090827] fb0: radeondrmfb frame buffer device     [   65.090840] [drm] Initialized radeon 2.18.0 20080528 for 0000:01:05.0 on minor 0   The output of sudo lshw -c display is        *-display                           description: VGA compatible controller            product: RS482 [Radeon Xpress 200M]            vendor: Advanced Micro Devices [AMD] nee ATI            physical id: 5            bus info: pci@0000:01:05.0            version: 00            width: 32 bits            clock: 66MHz            capabilities: pm vga_controller bus_master cap_list rom            configuration: driver=radeon latency=66 mingnt=8            resources: irq:17 memory:c0000000-cfffffff ioport:9000(size=256) memory:b0100000-b010ffff memory:b0120000-b013ffff   Also when I go to see the graphic's menu under system information it said that the driver was unknown. However, this time when I went to check it it said "Gallium 0.4 on ATI RS480 " while earlier today it was unknown. I don't know if this has something to do with me playing around with playonlinux or a recent update.

After upgrading to 12.10 quantal, the packaged version of fglrx no longer works. I discovered that this is because there is a separate 'legacy' fglrx driver for the HD 2k-4k series cards, but it is incompatible with the xorg server on 12.10.  This is the most current version of the driver for HD 2000 through HD 4000 series cards. You can't use the non-legacy fglrx driver, but you can use the open-source radeon driver if you prefer your WM compositing to be laggy and your YouTube videos to play like they would on a Pentium MMX series:    Usually this driver can be installed in the following way, necessary because apt-get install fglrx would pull in the non-legacy driver:  wget http://www2.ati.com/drivers/legacy/amd-driver-installer-12.6-legacy-x86.x86_64.zip unzip amd-driver-installer-* sudo sh ./amd-driver-installer-*.run --buildpkg Ubuntu/quantal sudo dpkg -i fglrx*.deb sudo aticonfig --initial -f   If you use a different version of fglrx (for example, a newer 12.9 that doesn't support those cards) then the final command will give you an error no supported hardware detected or something similar. However, everything works at this point and you will get a reasonable xorg.conf:  ... other stuff  Section "Device"         Identifier  "aticonfig-Device[0]-0"         Driver      "fglrx"         BusID       "PCI:1:5:0" EndSection  ... other stuff   At this point you're supposed to reboot and everything will be working with the fglrx driver. However, upon rebooting, you'll be treated to the following errors in Xorg.0.log when fglrx attempts to load:  (EE) Failed to load /usr/lib/xorg/modules/drivers/fglrx_drv.so: /usr/lib/xorg/modules/drivers/fglrx_drv.so: undefined symbol: noXFree86DRIExtension   Some searching around will show that this is a problem with the legacy ATI drivers not supporting xserver 1.13 or newer. () ATI has released a fixed driver for its most recent (HD 5000 series or later) cards, but not for the 'legacy' cards yet. The non-legacy ATI drivers can't be used with the old cards.  What should an Ubuntu user, using one of these HD 2000-4000 series cards, do?    Wait for an updated 'legacy' ATI driver that properly works with xserver 1.13?   Downgrade back to 12.04 Precise, which uses xserver 1.11? Try to downgrade xserver on 12.10 Quantal to 1.12, which could possibly break Unity and GNOME? Forced upgrade to HD 5000 series or later card? (Not possible with integrated graphics...) Some other 1337 action that fixes this problem painlessly?


I need help in proving (or disproving) the following assumption:     $$\frac{a + c}{b + d} \leq \max(\frac{a}{b},\frac{c}{d})$$   where $a,b,c,d \geq 0$ are positive integers. Both fractions $\frac{a}{b}$ and $\frac{c}{d}$ are between 0 and 1 and therefore the conditions $a \leq b$ and $c \leq d$ hold.  Any help or ideas are appreciated, thank you!

We were trying to come up with an easy way to generate a rational number in between two existing rational numbers with a fairly low numerator and denominator (the way we were doing this earlier was to find the average of the two rationals, but that results in a denominator of up to $c * d$. Does this inequality hold for all values of $a, b, c, d$?


I have a requirement to send emails to external users using apex code , but the email limit is 5000 per day using single email messaging class.   I am using a batch job to send email , but before I get the number of records to whom I need to send email I want to know how much is the email limit left for today. Is there way to query the limit in apex code to check how much email limit is left for a day?

my email limit is exceeded after sending 10-12 emails..what could be the problem..as i have seen the limit is 1000 emails/day.i am not able to find out what could be the problem..Can some give me some suggestions. As i also know we can send 10 emails in a single transaction.I am sending emails in a batch class.  I am calling this batch class on button click and filling emailList with emailsId's.                      String query='Select id from Lead';//No use of this query                     Batch_send_emails bse=new Batch_send_emails();                     bse.query=query;                                                         bse.resendEmails=emailList;                     database.executebatch(bse);           **Batch Class**           if(!resendEmails.isEmpty())           {               for(String s:resendEmails)                {                   emailsLeads.add(s);                }           }           Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();         mail.setToAddresses(emailsLeads);        // mail.setCcAddresses(ccAddresses);         String subject='GoToMeeting Invitation Details for '+subject;         String body='test';          mail.setHtmlBody(body);          mail.setSubject(subject);         Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });          }


I'm having trouble creating a virtual environment for python on my Ubuntu desktop. I have installed virtualenv by: sudo pip3 install virtualenv and verifying it gives the following output: $ pip3 show virtualenv Name: virtualenv Version: 15.1.0 Summary: Virtual Python Environment builder Home-page: https://virtualenv.pypa.io/ Author: Ian Bicking Author-email: ianb@colorstudy.com License: MIT Location: /usr/lib/python3/dist-packages Requires:   However, when I try to create a virtual environment, I get one of these...  Command 'virtualenv' not found, but can be installed with: sudo apt install virtualenv  Why is that?

I've just created a new user account called deployer in my 16.04 VPS and I'd like to create a virtualenv inside directory Env. However:  deployer@server:~$ cd Env/ deployer@server:~/Env$ virtualenv sample -bash: virtualenv: command not found deployer@server:~/Env$ which virtualenv deployer@server:~/Env$   But when I run pip list I see:  deployer@server:~$ pip list click (6.7) .... uWSGI (2.0.14) virtualenv (15.1.0) virtualenv-clone (0.2.6) virtualenvwrapper (4.7.2)   Why can't I access 'virtualenv' ?  Edit:  deployer@server:~$ find . -iname "virtualenv" ./.local/bin/virtualenv deployer@server:~$ find /usr/ -iname "virtualenv" | grep bin /usr/local/bin/virtualenv   edit2:  deployer@server:~$ find . -iname "virtualenv" ./.local/bin/virtualenv deployer@server:~$ find /usr/ -iname "virtualenv" | grep bin /usr/local/bin/virtualenv /usr/bin/virtualenv deployer@server:~$


There is features both in windows and mac that opens a interface you can see the currently opened windows. I recently saw that feature in the GNOME workaround. Is there anything like that in the unity included in the installation itself? Or anything that can be installed through the terminal? . Reminder, i know the workspaces tool and use it frequently with pleasure. And the alt+tab is not enough.

Can someone tell me how I can get an overview of all the open windows? Like htting ctrl+s that shows all the desktops, but for the open applications?  Right now when I hit Alt+Tab it shows quite small tiles in the middle of the screen, is it possible to have all the windows fill all the screens? (Kind of like expose in OSX)  I have compiz installed, and "static application switcher" selected, but this doesn't have the result I'm looking for (and neither does "Application switcher".  Any ideas?


Often I heard photographers say that RAW is used for editing photos. I have used Adobe Photoshop Lightroom before and I don't see how capturing RAW helps.  Can anyone explain how capturing RAW helps with editing and the technical detail behind?  Is it advised to use RAW+JPEG or just the RAW considering from post processing perspective?  UPDATE: Rather than pros and cons of using RAW or examples, I need information about what aspects / data collected in RAW file helps with the editing.   While  answers this partially (it explains the way a RAW image can be edited as compared to JPEG with example photographs), the underlying principle behind using RAW for editing is not added.

In general shooting in RAW format uses a lot more file storage than JPEG. What am I gaining when shooting RAW? Besides file size are there any downsides to shooting RAW?


Given $x$, $\sin(x) \in \mathbb{Q}$, where $x$ is in degrees, we want to find all $x$ in the range $(0,90)$.  One trivial solution is $x=30$.

I am using extensively trigonometric functions when an angle is given in degrees. Some of these functions like sine or cosine have rational values, for example, the well   known example is that $\cos(\theta) =0.6 $ and $\sin(\theta) =0.8 $.       However besides the case of multiplicity of $90^\circ$ it seems there are no rational numbers $\theta$  with simultaneously rational  values of  sine and cosine.      Is it possible somehow to prove that for rational values of an angle given in degrees there are  no values simultaneously rational of sine and cosine functions, beside obvious case of multiplicities of $90^\circ$?


How to format code on Stack Exchange sites? I have used <code> block with 8 spaces before and after each line but it does not recognize my code :S

How do I post text so that it is formatted as code?  What do I need to do so that my code shows up properly — not escaped or removed — when posted? And how to get the correct syntax highlighting?     For more information, see "" in the .


$u=(3,1)$, $v=(3,6)$, $i=(2,3)$, need find $w\in \mathbb{R}^2$ such that $i$ is the incenter of the triangle $[u,v,w]$.  I have looked at some other people's approaches to this problem, but I think those approaches are too complicated, and are more like for some advanced intuitive geometer. With the fact that I'm just taking a course in geometry, my approach is probably not so elegant, but it should work. The problem is that I'm still not getting the correct answer.        Let $\alpha, \beta, \gamma$ be the three angles of $[u,v,w]$. Then bisect the three angles to assume $\alpha/2, \beta/2, \gamma/2$.   We can find that $a=(3,3)$ is the point closest to $i$ on the edge $[u,v]$.   We can now set up the following equations:         $$\alpha/2 = \arccos\left(\frac{(v-u)\cdot (v-a)}{\|v-u\|\|v-a\|}\right)=\arccos\left(\frac3{\sqrt{10}}\right)\implies \alpha = 2\arccos\left(\frac3{\sqrt{10}}\right)$$      $$\gamma/2 = \arccos\left(\frac{(v-w)\cdot (w-u)}{\|v-w\|\|w-u\|}\right)=\arccos\left(-\frac{9}{10}\right)\implies \gamma = 2\arccos\left(-\frac9{10}\right)$$   $$\beta = \pi-\alpha-\beta$$      $$ \cos\alpha =  \frac{(v-u)\cdot (w-u)}{\|v-u\|\|w-u\|} $$   Can someone please suggest what is wrong with my approach? Is there an additional equation missing? Also, I'm getting some "crazy" expression for $\beta$, which even WolframAlpha finds difficult to deal with. Is this geometric problem really that complicated?

Given $u=(3,1)$, $v=(3,6)$, $i=(2,3)$, find $w\in \mathbb{R}^2$ such that $i$ is the incenter of the triangle $[u,v,w]$.  To my understanding, in order to come up with the coordinate pair $(w_1, w_2)$, one needs to come up with six equations. I was only able to come up with four, so I'm asking to help me find the other two equations.  The distances from the incenter $i$ to the three sides of $[u,v,w]$ are equal, so I find the point $r$ on the line $[u,v]$ as follows:  $$(v-u)\cdot (i-r)=0\iff (0,5)\cdot (2-r_1, 3-r_2)=0$$ $$\implies 5(3-r_2)=0\implies r_2=3$$ $r_1 = 3$, since the difference between the first coordinates of $u$ and $v$ is zero. So we have that $r=(3,3)$, so that $\|i-r\|=1$.  So, now we can come up with the equations:   Let $s=(s_1,s_2)$ be the point on $[w,u]$ and $t=(t_1,t_2)$ be the point on $[v,w]$. Now, $$(w_1-3, w_2-1)\cdot(2-s_1,3-s_2)=0$$ Also, $(3-w_1)(2-t_1)+(6-w_2)(3-t_2)=0$ (from the other dot product). $(2-s_1)^2+(3-s_2)^2=1$ (from the fact that the incenter is equidistant from all sides of $[u,v,w]$. $(2-t_1)^2+(3-t_2)^2=1$   Now, to find $w=(w_1, w_2)$ precisely, I need two more equations. I would appreciate some hints. Moreover, I think this procedure is rather tedious, and I was wondering if there's a more elegant analytic (or maybe axiomatic) approach to this problem.


I have a manuscript under review at Nature Scientific Reports. The editorial system shows eleven reviewers invited but only one has accepted.  Is this a problem? Is it normal?

What steps does a manuscript typically go through from submission to publication (or rejection) in a typical journal? How are these steps referred to, in particular by editorial systems, and how long do they each typically take?  Note that this question is about the typical situation and hence not about:   Journals with an atypical workflow, e.g. those that allow for an instantaneous reviewer–author interaction. Exceptional steps or rare occurrences such as withdrawal or .   This is a canonical question on this topic as per . Due to its nature, it is rather broad and not exemplary for a regular question on this site. Please feel free to improve this question.


Show the series $ \sum_{j=1}^{\infty} \frac{(2^j)+ j}{(3^j) - j} $ converges.  I have looked at an answer , but I do not understand what these results give us. For example, in the first answer:     $$\frac{2^j + j}{3^j - j} \le \frac{2^j + 2^j}{3^j - j} \le \frac{2^j + 2^j}{3^j - \frac{1}{2} 3^j}$$   What do we do with the last expression? I understand we want to compare it with something, but don't see what.

Show the following series converges     $$ \sum_{j=1}^{\infty} \frac{(2^j)+ j}{(3^j) - j} . $$   I tried to use the comparison test and tried to compare it with the series of $\dfrac{2^j}{3^j}$ because this is the geometric series. However, $\dfrac {2^j}{3^j}$ is smaller than $\dfrac{2^j+j}{3^j-j}$, so by comparison test, the series $\sum_{j=1}^{\infty}\dfrac{2^j}{3^j}$ converges does NOT indicate that the series $\sum_{j=1}^{\infty}\dfrac{2^j+j}{3^j-j}$ converges... Thus I'm confused. Thanks!  Thanks!


to prove that a is a prime number, I need to show that a only has 2 divisors: 1 and itself. My approach to this question is to use the definition of divisibility and the hint in the question that since $a = k(mn)$, a will either be $a = i(m)$ or $a = j(n)$ (where i, j, k are constants) to show that either m and n either has to be a or 1. I'm not sure if the approach I'm taking is a correct/logical one.

I am trying to understand the proof for the following theorem:     Let $R$ be an integral domain. If $x \in R$ is prime, then $x$ is irreducible.   Here is the proof:    I typed this a while ago and I don't understand the part where if $x | bc$, then $x=bc$? Is something wrong at this step?  Also, is the definition of prime elements where $p$ is prime if whenever $p|ab$, then either $p|a$ or $p|b$? Now I don't feel so sure. This could be the reason why I am not understanding the proof...


I'm far back and trying to catch up in the series, but as most people confused who are at the same place as me ( On the beach with Jellal and Erza) who really is Jellal's wife?

Throughout Fairy Tail, we see that Erza loves Jellal and just him. Some examples are her blushing, trying to kiss him, and when she was turned into a little child just before Tartaros she thought her biggest problem was Jellal thinking he likes them more matured.  But does Jellal reciprocate those feelings even though he rejected her?


I am not able to find trash anywhere. Can you please tell me a command or anything like that to empty the trash using terminal ?

I visited a lot of forums but found no answer. I have 5 files in my trash bin and I can't delete them, at first after I clicked on the empty trash button it would freeze, now when I do that it just says "preparing" and displays an error while trying to delete files.  I tried deleting it via BleachBit but nothing, tried with terminal command sudo rm -Rf ~/.Trash/* it doesn't work either. I found out that one of my folders is immutable, I tried to disable that via terminal it didn't work, I can't even restore it, it freezes again.  I've been using Ubuntu 13.10 for few weeks and I am new to Linux. How can I solve this?


Blender 2.9 official Ubuntu Basic scene - default cube - no transforms, global orientation Edit - face select Select face normal to Y axis - press e to extrude - working as I would expect. However, if I select the face, then press E, then Y to extrude along the y axis, it goes in Z direction. Is anyone else seeing this? Short video of the issue at the link below:

I'm not sure if this is a bug or the side effect of some new feature, but I've been having an issue with extrusions along a specific axis in blender 2.90. I am wondering if anyone else has experienced this and can either a) explain it, or b) verify it is a reportable bug. In the images below, I have attempted to extrude a section by using the extrude hotkey E + axis letter. In the first photo, I extruded along the Y axis (E+Y), and in the second, I extruded along the Z axis (E+Z). As you can see, both "axis letters" produced movement in the same direction. I know it may be hard to tell from the screenshots, but the vertical extrusion line is green (Y) in one photo, and blue (Z) in the other, yet the extruded face moves along the same (Z) axis regardless. Selecting a face with a normal that points towards the desired direction and extruding by simply pressing E works as intended. Y-Axis extrusion (supposedly)  Z-Axis extrusion  Would someone be able to either confirm or refute that this is currently a universal phenomenon with Blender 2.90? Steps to reproduce:  Start with default cube (or added cube - makes no difference)  Select one of the "side faces"  Attempt to extrude the face along the Y axis by using E+Y  Notice that the extrusion follows the Z axis instead of the Y (If I am correct that this is a universal problem with 2.90)   If this is not a bug, but rather an intended feature, could someone please explain the logic of why this is happening? Any feedback would be very helpful.


How can I get the file path of a module imported in python. I am using Linux (if it matters).   Eg: if I am in my home dir and import a module, it should return back the full path of my home directory.

I want to detect whether module has changed. Now, using inotify is simple, you just need to know the directory you want to get notifications from.  How do I retrieve a module's path in python?


I am work on lyx and i got problem when i generated pdf?!  The error mg:  ! Package xcolor Error: Undefined color `tcbcol@back'.   The code of local layout:  Style Stop Category              MainText Margin                Static LatexType             Environment LatexName             stopp NextNoIndent          1 LeftMargin            MMM RightMargin           MMM ParIndent             MM ParSkip               0 ItemSep               0 TopSep                0.5 BottomSep             0.5 ParSep                0 Align                 Block AlignPossible         Block, Left, Right, Center Preamble \usepackage{tcolorbox} \usepackage{bclogo} \tcbuselibrary{skins,breakable} \usepackage{xcolor} \newtcolorbox{stoppi}[1][]{enhanced,   before skip=2mm,after skip=3mm,   boxrule=0.4pt,left=5mm,right=10mm,top=1mm,bottom=1mm,   colback=LightSkyBlue!0,   colframe=blue!20!black,   sharp corners,rounded corners=southwest,arc is angular,arc=3mm,   underlay={%     \path[fill=tcbcol@back!80!black] ([yshift=3mm]interior.south west)--++(0.2,-0.1)--++(0.1,-0.2);     \path[draw=tcbcol@frame,shorten <=-0.05mm,shorten >=-0.05mm] ([yshift=3mm]interior.south west)--++(0.2,-0.1)--++(0.1,-0.2);     \path[fill=MidnightBlue!10,draw=none] (interior.south east) rectangle node[white]{\Huge\bfseries\bcstop} ([xshift=-10mm]interior.north east);     },   drop fuzzy shadow,#1} \newenvironment{stopp} {\begin{stoppi}} {\end{stoppi}} EndPreamble End   Please what's the problem in this code, Regards

The definition for marker below is from tcolorbox.doc.s_main.sty. With earlier versions of Texlive (and tcolorbox), this worked fine, but with updated Texlive, it does not.  \documentclass{article} \usepackage{xcolor,tikz,tcolorbox} \usetikzlibrary{shadows} \tcbuselibrary{skins,hooks} \makeatletter % from tcolorbox.doc.s_main.sty \newtcolorbox{marker}[1][]{enhanced,   before skip=2mm,after skip=3mm,   boxrule=0.4pt,left=5mm,right=2mm,top=1mm,bottom=1mm,   colback=yellow!50,   colframe=yellow!20!black,   sharp corners,rounded corners=southeast,arc is angular,arc=3mm,   underlay={%     \path[fill=tcbcol@back!80!black] ([yshift=3mm]interior.south east)--++(-0.4,-0.1)--++(0.1,-0.2);     \path[draw=tcbcol@frame,shorten <=-0.05mm,shorten >=-0.05mm] ([yshift=3mm]interior.south east)--++(-0.4,-0.1)--++(0.1,-0.2);     \path[fill=yellow!50!black,draw=none] (interior.south west) rectangle node[white]{\Huge\bfseries !} ([xshift=4mm]interior.north west);     },   drop fuzzy shadow,#1} \makeatother   \begin{document} \begin{marker}   Hylo! \end{marker}  \end{document}   This gives the following error  ! Package xcolor Error: Undefined color `tcbcol@back'.  See the xcolor package documentation for explanation. Type  H <return>  for immediate help.  ...                                                l.34 \end{marker}  ?   Why are tcbcol@back and tcbcol@frame undefined if they work in the code for the package's documentation? Alternatively, what are the correct names for the colours which were tcbcol@back and tcbcol@frame?  My version of tcolorbox is 2019-09-19.


Just that question. How to keep it on?  My pwd has numbers and it is weird to not type them on the numpad for me (tried and retried numlockx properly on many ways found on the net, no success) p.s. on the bios everything is as it should (i have pwd on win 7 and numlock is on automatically).

I am trying to force numlock to be on upon initial boot at the login screen on Ubuntu 12.04. The only solutions I have found so far switch numlock on only after initial login.  I'm looking to force numlock to be on when the login screen is displayed, and before the user has logged in. Can anyone assist?


I remember this from my younger years, and now I've been searching all over the internet and can't find it. Here's what I can remember:    The game is designed by the girl's father (I think). At some point she enters a place/room that is all white, and she says that this part of the game has not been finished yet.  The boy owns a jetpack in the game.  They live in a treehouse in the jungles on some beach.  Inside the game they have a joystick that controls a lot of things in their environment.    Any leads would be really appreciated!

So, I only saw a single episode of this during my childhood - 10 or more years ago I had guess -  where there is a group of children whose father programmed a game and they ended up in the game and can't get out. Inside the game they have a base inside a tree house and I believe they were able to communicate through the computer screen with people inside the RL house.  Yeah, I know this might sound quite vague, but it was the very first encounter I had with VR and kept me fascinated for ages and might be one of the reasons I got 'into' VR, so would love finding it back.


Why do we use Non-negative matrix factorization?What is the advantage and superiority of other matrix decomposition methods?

I am wondering why matrix factorization techniques in the machine learning domain almost always expect the provided matrix to be non-negative. What is the advantage of this constraint?  Background: I want to use matrix factorization algorithms for a sparse user-item matrix containing positive and negative implicit feedback. Is there any another possibility to set interactions with negative indications apart from fields that denote that no interaction happened between the user and the item?


When an answer has been deleted the information on unanswered question tabs still says that users modification was the last to the thread. For instance on Stack Overflow right now the top two  are listed as having been modified by .    While waiting for a moderator Zerkms, modified several answers in an effort to remove spam. However, once these answers were removed Zerkms still appears as the last person to modify the thread. While I imagine the hidden/deleted answers still exist somewhere causing this to occur, it can be confusing if you don't know why Zerkms is listed, as his modification is found nowhere within the linked question.  I would propose that when an answer / modification is deleted / rolled back, that the associated user is removed as the last modifier.

.       The  has no sign of the user sharth The  also does not have any sign of related activity   I would like to know why the user's name is associated with the question. At least why their display name shows up as having modified the question timeline activity.  Possible reason that I can think of is that, .  Is this the reason?  Is there a way (for normal users), to look for such details, other than looking at the user activity and the question's revision history.


How do I change the font in the list under Coursework to match the font in the rest of the latex document using awesome-cv?

I'm a beginner in LaTeX, and I was trying to edit a template to make my Resume. I'm using  template, as present in .    In this, I need to make a bulleted list of a few entries in 2 columns. It appears like:    exactly the way I want. But it doesn't match the style of rest of the resume. I have used    \begin{multicols}{2}     \begin{itemize}         \item item 1         \item item 2         \item item 3         \item item 4         \item item 5         \item item 6     \end{itemize} \end{multicols}   to achieve the above. How do I ensure the template font size/style applies to the above entries?


Does windows 7 stay on the computer or get deleted? if it does delete windows i wont download Ubuntu. So, does windows get deleted? and if not how to i change back and forth between the two?

I currently have Windows 7 on my computer and I want to install Ubuntu alongside Windows safely.  Could someone please provide clear instructions?


We are planning on having a staff meeting tomorrow**;** Friday, June 5th 11am-12 noon in our conference room. Semi colon, or comma?

My teacher was explaining how sometimes a comma isn't enough to make a sentence correct, and that sometimes you have to use a semicolon. I am having trouble figuring out when you should use which.   Can someone please explain?


I am playing Skyrim Dragon-Born DLC on a PC. I have a bounty, but I can't hand myself in -- I just get attacked.  It stated that I attacked somebody at a shrine by accident, but after that I didn't commit any crimes.  It's weird how I get attacked instead of them talking to me. It seems like there is no way to get rid of the bounty.  I have tried on many occasions to hand myself into a different place from where I originally committed the crime.

I accidentally killed a noble, now every guard wants to kill me. Is there any way I can get rid of the bounty?


While studying , I found a question with the following (strange) statement:  std::cout << (1 + 3)[a] - a[0] + (a + 1)[2];   The answer then explained, (1+3)[a] is the same as a[1+3], which is still strange for me.  May I ask for the history of this? Why it's so and how it helps to allow this?

As Joel points out in , in  (aka: K & R), there is mention of this property of arrays in C: a[5] == 5[a]  Joel says that it's because of pointer arithmetic but I still don't understand. Why does a[5] == 5[a]?


I recently tried to install Ubuntu on my Sony Vaio laptop (Windows 7, 64 bits). I downloaded the .iso file from Ubuntu website and burned it on a DVD.  But when I booted the laptop with the DVD, I got first the keypad icon, then chose the language and the choice whether to Install or Try Ubuntu. Whatever choice I made, it seems that it stops working, I got a black screen, I could not hear the DVD turning, etc...  I also tried to boot with a USB, same story. And I also tried to boot another computer from the DVD and this time I worked. So I don't think the CD wasn't burned correctly.

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


I'm trying to achieve the next thing. When I put the s as a string such as "Hello", I want it to split for the number in part_length. Meaning that if I put 1 in part_length, the operation result would be: "H e l l o s", if I put 2 in part_length, it would print "He ll os" This is the code I have now: def split_in_parts(s, part_length):     for num in range(part_length):  print(split_in_parts("Hellos", 1))  But I can't figure out how to split the words according to the numbers, which I believe I lack the knowledge in commands. I've tried commands such as ' '.join() but in that case it separates in a way that it is not accordingly to the numbers.

I have a Python script which takes as input a list of integers, which I need to work with four integers at a time.  Unfortunately, I don't have control of the input, or I'd have it passed in as a list of four-element tuples.  Currently, I'm iterating over it this way: for i in range(0, len(ints), 4):     # dummy op for example code     foo += ints[i] * ints[i + 1] + ints[i + 2] * ints[i + 3]  It looks a lot like "C-think", though, which makes me suspect there's a more pythonic way of dealing with this situation.  The list is discarded after iterating, so it needn't be preserved.  Perhaps something like this would be better? while ints:     foo += ints[0] * ints[1] + ints[2] * ints[3]     ints[0:4] = []  Still doesn't quite "feel" right, though.  :-/ Related question:


How to compute all homology groups of  $S^1 \times (S^1 \vee S^1)$?  Thank you. I don't see how to define a simplicial structure.

I'm trying to solve question 2.2.9(b) in Hatcher's Algebraic Topology.   Question: Calculate the homology groups of $X=S^1 \times (S^1 \vee S^1)$.  My attempt: I try to use the Mayer-Vietoris sequence.   Let $A=S^1 \times (S^1 \vee \text{small bit}) =S^1\times S^1$ and $B=S^1 \times ( \text{small bit} \vee S^1)=S^1 \times S^1$. (Unsure how to express this, but hopefully this is clear enough.)   Then $A\cap B=S^1\times \{\text{point}\}=S^1$ and $A\cup B=X$.  The Mayer-Vietoris sequence then gives us an exact sequence in reduced homology as follows:  $$0 \to \mathbb{Z}^2 \to \tilde{H}_2(X) \to \mathbb{Z} \to \mathbb{Z}^2 \to \tilde{H}_1(X) \to 0.$$  Is it possible from this exact sequence to determine the homology groups, in some algebraic fashion? Or do I need to determine what the maps are? How do I determine the maps?


I have 2 files with 7 fields and I want to print the lines which are present in file1 but not in file2 based on field1 and field2.  Logic: I want to print all the lines, where there is a particular column1 and column2. And we do not find the set of column1 and column2 in file2. Example: "sc2/10    10" this set you would not see in file 2, therefore it is printed as output.  File1:  sc2/80         20      .        A       T         86       F=5;U=4 sc2/60         55      .        G       T         76       F=5;U=4 sc2/10         10      .        G       C         50       F=5;U=4 sc2/68         20      .        T       C         71       F=5;U=4 sc2/24         24      .        T       G         31       F=5;U=4 sc2/11         30      .        A       T         60       F=5;U=4   File2:  sc2/80         20      .        A       T         30       F=5;U=4  sc2/60         55      .        T       T         77       F=5;U=4  sc2/68         20      .        C       C         01       F=5;U=4 sc2/24         29      .        T       G         31       F=5;U=4 sc2/24         19      .        G       G         11       F=5;U=4 sc2/88         89      .        T       G         51       F=5;U=4   Expected Output:  sc2/10         10      .        G       C         50       F=5;U=4  sc2/11         30      .        A       T         60       F=5;U=4    I would appreciate your help.

Is there any tool that can get lines which file A contains, but file B doesn't? I could make a little simple script with, e.g, perl, but if something like that already exists, I'll save my time from now on.


For example, using this bpy.ops.view3d.view_axis(type='TOP') I can set view axis to "TOP". But how can I get current view axis? Something like this for example: if bpy.ops.view3d.view_axis == 'TOP':     # Do something...  Please note: the question is about finding view axis, but not about to know if the view is perpective or orthographic.

What is the python command to check if current view is in orthographic or perspective mode?


I am recommending the usage of a Postgres+PostGIS database to a client for storage of their Geospatial Data. I need to recommend the processes for maintenance of the database.  The Client is an Oracle user, so they are used to constant active maintenance of databases.  My personal experience of PostGIS has only been on small to medium databases, and they have been very low maintenance, requiring vacuuming once in a few months.  Where can I read about maintenance of Postgres+PostGIS databases?

What PostGIS documentation have you come across that has been helpful when tuning PostGIS for a production environment?  I would like to get together with my DBA to setup a Postgresql/PostGIS installation that is fit for production. I have read that there is some tweaking involved to achieve this, and I was hoping to find the answer on the .  So far I have found some documents on the OpenGeo site helpful, .  And this  is the kind of information I have found helpful, this is probably just basic DB stuff but to me its good stuff.  I would be interested to see what resources have helped others in achieving a stable production installation of PostGIS.


I have the following code:   public void refresh(){         View rootView=getView();         final SharedPreferences pref = this.getContext().getSharedPreferences("MyFav", 0);         final SharedPreferences.Editor editor = pref.edit();         Map<String,?> entries = pref.getAll();         final Set<String> keys = entries.keySet();}   This function is inside a fragment and I am calling it from Activity as follows:-  public void onBackPressed() {         super.onBackPressed();         FavLegislator fav =new FavLegislator();         if(frag.equals("true"))             fav.refresh();         finish();     }   The shared preferences might have changed in the Activity. I just want an updated list of preferences when the Activity closes.  I am getting the following error on the back button press of Activity:  11-27 10:06:24.126 31645-31645/com.app.congress.congressapp E/AndroidRuntime: FATAL EXCEPTION: main Process: com.app.congress.congressapp, PID: 31645 java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.SharedPreferences android.content.Context.getSharedPreferences(java.lang.String, int)' on a null object reference   at com.app.congress.congressapp.FavLegislator.refresh(FavLegislator.java:85)   at com.app.congress.congressapp.legislator_info.onBackPressed(legislator_info.java:466)   at com.app.congress.congressapp.legislator_info.onOptionsItemSelected(legislator_info.java:454)   at android.app.Activity.onMenuItemSelected(Activity.java:2912)   at android.support.v4.app.FragmentActivity.onMenuItemSelected(FragmentActivity.java:361)   at android.support.v7.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:147)   at android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:100)   at android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:100)   at android.support.v7.widget.ToolbarWidgetWrapper$1.onClick(ToolbarWidgetWrapper.java:194)   at android.view.View.performClick(View.java:5201)   at android.view.View$PerformClick.run(View.java:21163)   at android.os.Handler.handleCallback(Handler.java:746)   at android.os.Handler.dispatchMessage(Handler.java:95)   at android.os.Looper.loop(Looper.java:148)   at android.app.ActivityThread.main(ActivityThread.java:5443)   at java.lang.reflect.Method.invoke(Native Method)   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)   Can some one please let me know why I am getting the above error and how to fix it?

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


Does the set  {$ 1,\frac{1}{2},\frac{1}{4},\frac{3}{4},\frac{1}{8},\frac{3}{8},\frac{5}{8},\frac{7}{8},\frac{1}{16},\frac{3}{16},....$} dense in [0,1].  I am not sure about that.   I think it is not dense in [0,1] because the set contains rationals of the form $\frac{m}{2^n}$, where $m,n\in N$.   Am i correct? If not please give me a proof and also help me to gain intuition. I want intuition and hint rather than proof. Please leave the proof for me. My question in different from the previously asked question because I'm in need of intuition and the answers there doesn't give me enough satisfaction.

How can I show that the set of rational numbers with denominator a power of two form a dense subset of the reals?


Let $A \subset \Bbb{R}^n$ . Show that $$A^{\circ} =\left(\overline{(A^c)}\right)^c$$

Prove that $\overline {A^\complement} = (A°)^\complement $   To show that $\overline {A^\complement} \subseteq  (A°)^\complement$   We first show $A^\complement \subseteq  (A°)^\complement ...(*) $  We know that since $ A°\subseteq A \qquad (*)$ is automatically follows .  The part I didn't understand is the following:     Then we conclude that since $ (A°)^\complement$ is closed    $\therefore \overline {A^\complement} \subseteq  (A°)^\complement$


$(document).ready(function(){          var status;         var photo_url;         var ext;      $("#photo_file").change(function() {          photo_url = this.value.split("\\").pop();          ext = photo_url.split('.').pop().toLowerCase();          if ( (ext == "jpg" ) || ( ext == "jpeg") ||  (ext == "png") ) {             $.get('ajax/post.php', {photo_url: photo_url});         } else {               alert("incorrect file type, allowed: jpg, jpeg, png.");         }      });   this is "post.php"  <?php      $photo_url = $_GET['photo_url'];      $file_path = 'uploaded_photos/' . $photo_url;     $photo_url = 'img/' . $photo_url;      move_uploaded_file($photo_url, $file_path);  ?>   Everything works fine i get the filename of photo but i can't move it to another folder using move_uploaded_file(); function.

I would like to upload a file asynchronously with jQuery.     $(document).ready(function () {     $("#uploadbutton").click(function () {         var filename = $("#file").val();          $.ajax({             type: "POST",             url: "addFile.do",             enctype: 'multipart/form-data',             data: {                 file: filename             },             success: function () {                 alert("Data Uploaded: ");             }         });     }); });  File <input type="file" id="file" name="file" size="10"/> <input id="uploadbutton" type="button" value="Upload"/>     Instead of the file being uploaded, I am only getting the filename. What can I do to fix this problem?


I make a network call (using curl), and filter the result (using grep) to get HTTP/1.1 200 OK. Then I want to transform it to a JSON hash (so I can use it in jq).  I want this transform: HTTP/1.1 200 OK  --->  { "status": "HTTP/1.1 200 OK" }  So I tried: curl ... | grep ... | sed -E 's/^(HTTP.*)$/{"status":"\1"}/' But it gives this strange output: "}status":"HTTP/1.1 200 OK  I also tried saving to file foo first: cat foo | sed -E 's/^(HTTP.*)$/{"status":"\1"}/' But it gives the same nonsensical output.  Interestingly, this works: echo 'HTTP/1.1 200 OK' | sed -E 's/^(HTTP.*)$/{"status":"\1"}/'  Where is my mistake?

#!/bin/bash echo "$(curl -s -I https://google.com|grep Server)" abc   returns:  abcer: gws   and bash -x shows:    ++ grep Server ++ curl -s -I https://google.com ' abco 'Server: gws  abcer: gws   but    echo abc "$(curl -s -I https://google.com|grep Server)"`    returns  abc Server: gws   In other words, if I add text AFTER the curl command, it gets mangled, but it's ok if I add it before curl. What is happening? I cannot figure it out.


How can I create file shortcut (.lnk) to Windows 10 Start?  I mean the shortcut which opens that popup window which appears after click to START button on a keyboard.

Am currently working on a business process automation software and literally user actions are simulated by robots. I need to pass some information to the start menu of my windows 7 and i was wondering if the windows start menu could be opened using a powershell script? As the information to open a powershell can be understood by the robots. Please any suggestions would be nice.


This is a problem I really have each time I want to peel them. Over the years I used forks, spoons and knifes but always the Avocado gets damaged as it is mushy, pulpy when I peel it and gets a mess. Is there any method than can I use to properly peel it or perhaps a tool developed for this purpose?. If there is a video or picture that can accompany the answer that would help me a lot.

Making solid pieces out of a ripe avocado is a difficult business (for me, anyway). What is the best way to remove the peel and pit without ending up with a pile of green mush? I can sometimes remove the peel without too much difficulty, but that pit always gives me grief.


Is it possible to use Android apps in Ubuntu? This question was allready asked and answered before but now we are over 4 years later. Is the situation unchanged?

Is it possible to run Android apps on Ubuntu? And I don't mean inside an emulator, but natively, as you would with any other application installed using the Ubuntu Software Center.


I've got five equivalences to prove, and four of them were easily proven; Given K an ordered field, I had to show that the five statements are equivalent:  1 - K is complete (aka every non empty with an upper bound set has a supremum).  2 - K is archimedean and has the property of the nested intervals.  3 - Every non-decrescent sequence with an upper bound converges in K.  4 - Every limited sequence on K has a converging subsequence.  5 - Every Cauchy sequence in K converges.  I showed the implications in the following order: $1 \implies 3 \implies 2 \implies 4 \implies 5$, however I can't at all prove that $5 \implies 1$. To be honest, I can't really figure out how to show that 5 implies on any other of those.  Whatever I try requires me creating a Cauchy sequence so that by hypothesis it converges, and then have some fancy result to prove one of the other equivalences, but the problem is that I can't show that any sequence I try making is a Cauchy sequence to actually make use of the hypothesis because I lack the archimedean property.  So my question is, given K an ordered field and supposing that every Cauchy sequence in K converges (and only that), how can I show that K is complete? Or even any of the other equivalences would help a lot, it would take an extra step, but still.   And for the archimedean + nested intervals part, simply proving that K is archimedean would easily save my day. Whatever I find on the internet uses the archimedean property with the every Cauchy sequence converges property to do so, but I don't think I should be able to use it to prove without having it as an hypothesis in the first place. Any ideas?

I'm trying to prove that; If any Cauchy sequence is convergent in an ordered field F, every nonempty subset of F that has an upperbound has a sup in F.  Let A be a nonempty subset of F that is not a singleton and has an upperbound in F. Let $a_0 \notin v(A)$ and $b_0 \in v(A)$. It's written in my book that for every $e \in P_F$, there exists $N \in \omega$ such that $N≧(b_0 - a_0)/e$.  I think this is not accurate since it hasn't showed that such F is Archimedean.. Is such F archimedean? Or in such a condition does there exist such N?  -Definition of a Cauchy sequence; For every $e\in P_F$, there exists $N\in \omega$ such that if $i,j≧N$, then $|x(i) - x(j)| < e$. ($x:\omega \to F$ is a sequence)


The case is closed now. The case is closed by now. The case has been closed by now.   What exactly is the difference between them?

Consider these examples:   By now the desk should be looking significantly tidier!  By now, the failure of regulators to contain dangerous forces should be well accepted.  By now I own some forty copies of the magazine.  By now the blue of twilight is glowing.  He used leverage, but by now applied concerted discipline to contain his risks.    I wonder if I can use "now" instead of "by now" to convey the same meaning. I would think "by now" refers to a moment until now, but why not use past tense or present perfect tense in the these examples?


we have programs at work that I would like to use on my linux laptop, is there a shell program i can run to be able to use them or must i have a dual boot system, limited HD space. Regards Gavin

Can .exe and .msi files (Windows software) be installed in Ubuntu?


I decided to try learning to code again for the upteenth time and I'm currently trying to refresh my memory by creating a banking program where a user can withdraw and deposit money. I'm trying to create a function that checks if a user input is a number that goes beyond the cent value and then prompts them to re-enter if so. Unfortunately, when I run the program it will always tell me that there is an invalid entry. #include <iostream> #include <cmath>  using namespace std;  // The following is the function spoken of. double yagoof(double c) {     double cent = .01;     double rem = fmod(c, cent);     cout << rem << endl;      while (rem != 0) {         cout << "Invalid entry. Please enter a number rounded to the nearest cent.\n\n";         cin >> c;         rem = fmod(c, cent);         cout << rem << endl;     }     return c; }  int main(){ ... }  I added the "cout << rem..."s after getting frustrated and wanting to see if I can figure something out. It will always tell me that rem is '.01'. I guess I'm curious as to what I did wrong here. I've reviewed it in my head a few times and I'm not getting anywhere. I can post the whole code if needed, I just didn't do it now because it has a bunch of notes.

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I'm trying to do this problem out of Atiyah-Macdonald:     Show $\Bbb{Z}_m\otimes_{\Bbb{Z}}\Bbb{Z}_n=0$ if and only if $m,n$ are coprime.   First, suppose $m,n$ are coprime. Then there exist $s,t$ such that $sm+tn=1$. For any pure tensor $a\otimes b$, we have  $\begin{align*} a\otimes b&= ab\otimes 1\\ &= ab\otimes(sm+tn)\\ &= ab\otimes sm+ab\otimes tn\\ &= ab\otimes sm\\ &= abm\otimes s\\ &= 0 \end{align*}$  so $\Bbb Z_m\otimes\Bbb Z_n=0$. Is this correct?   I also don't know how to prove the other direction. If $m,n$ are not coprime I'm pretty sure that the element $1\otimes1$ is nonzero, but I don't know a good way to show this.

Consider the $\mathbb{Z}$ module $\mathbb{Z}/n\mathbb{Z}$. What is $\mathbb{Z}/n\mathbb{Z} \otimes_{\mathbb Z} \mathbb{Z}/n\mathbb{Z}$?


I have got my working holiday visa. Before I enter the Schengen area, can I cancel it? If I cancel it, will it become a problem? (i know it would be recorded).  So, if I cancel it, can I still use my 3-month free visa to entry Schengen countries? Also, is it a bad idea to let it expire ? Thanks.

I've been given a Schengen visa valid for 1 month.  Unfortunately, I won't be able to travel during the dates I've specified in my application.  What should I do?  Do I just not use the visa?  Or should I let the embassy know so they can cancel it?


Way way way back before windows 10 was even a thing. There used to be a thing called all CPU meter and one for GPU as well.  They are great when you have dual monitor and want to know if CPU usage spiked a lot or what not while playing a game on the main monitor. It doesn't even hurt that you can see if a video game froze and crash on top of other usages.  However with windows 10 64 bit (gaming reason) being the main OS to be on now. Gadget cease to be a thing long ago because of security concerns which is understandable. However it does leave me without an alternative option that I am current aware of. I want it to be easy to move around across multiple-monitor so something like sidebar system resource monitor wouldn't be that good. Ditto for that tiny task manager icon on the taskbar. Especially since the taskbar are usually obscured by the game in fullscreen already anyway.  Heck at this point I would settle for something little less feature. For reference:

I have upgraded from Windows 7 to Windows 10 and I miss the Desktop Gadgets from Windows 7. What happened to them and can I bring them back?


I am trying to validate a XML file against many XSD files. At this moment I can only manually enter the xsd schema. ( I mean that I check my XML file and look at the XSD definition). How can I detect the XSD schema files in any of the XML file?  What I tried so far: // Following method check the xml file against multiple xsd schema files.  public static void XSDValidation() throws SAXException, IOException, ParserConfigurationException {      try {          SchemaFactory schemaFactory = SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema");          Schema sch = schemaFactory.newSchema(new Source[] { new StreamSource(new FileInputStream("role-1.2.xsd")),                 new StreamSource(new FileInputStream("role-1.1.xsd")) });          Validator validator = sch.newValidator();          validator.validate(new StreamSource("role.xml"));          System.out.println("INFO: Validation is done successfully.");      } catch (Exception e) {         System.out.println("ERROR: Validation is failed.");     } }   I use DOM Parser and Java 8.  Advance thanks for all help.   EDIT: @ kjhughes I did not simply ask     What's the best way to validate an XML file against an XSD file?   My question: how can we detect the XSD schema files in a XML file. For instance when I want to validate a.xml which includes b.xsd and c.xsd, I want to detect these files automatically and in a true order. I mean that if the XML use firstly the namespace from c.xsd then it should be detected. In my example the XSD schema files and their order were written manually by checking inside of XML.

I'm generating some xml files that needs to conform to an xsd file that was given to me.  What's the best way to verify they conform?


hi every one i have big problem i want to include some graphics in my PDF but there are in other folder i want to include them with out moving them  i use commend    \usepackage{graphicx}  \graphicpath{c:/Documents/mypicture/mypicture1.jpg}  \begin{document}  \includegraphics[height=\baselineskip]{mypicture1.jpg}  \end{document}   but i have problem please help me i use xe-latex compiler. and what happen if they are more than one image for example :c:/Document/my pictures/picture1.jpg c:/Document/my pictures/picture2.jpg

I am using MikTex 2.9 and TeXstudio for my TeX preparation. I would like to set the path to my figures folder, which contains all the figures, plots etc. required for my work.   I used \graphicspath to set the directory, but it gives me an error message:  \documentclass[12pt]{article}  \usepackage{graphicx}  \graphicspath{D:/LATEX/Reports@IIT/figures}  \begin{document} \includegraphics[width=4.5cm,height=4cm,angle=0]{logo.jpg}  \end{document}      Error: Package pdftex.def Error: File `logo.jpg' not found   However, when I prepend the filenames of the images with the same path in the \includegraphics command, it works just fine:  \documentclass[12pt]{article}  \usepackage{graphicx}  \begin{document}  \includegraphics[width=4.5cm,height=4cm,angle=0]{D:/LATEX/Reports@IIT/figures/logo.jpg}  \end{document}   Why is \graphicspath not setting the path?