In the past few days, somebody has been randomly downvoting several of my questions.  I know SO has an automated script that detects this kind of actions using a threshold, but sometimes trolls have too much time in their hands.  I'd like to propose a way to deal with this (and, potentially, other threats): a new kind of flag that applies to a user account instead of a post. In this case, a "mass downvote" flag.  Moderators could then look at a list of downvoted questions along with a (anonymized?) list of voting users to determine if the target account is the victim of trolling, enabling them to reverse the votes and/or take disciplinary action.  ...Of course I'm open to other, completely different solutions.

Currently we capture fanatic, voting ring or rage-type activities, by measuring the number of up-votes or down-votes between the same two users in a certain (relatively short) time period. When this is detected by the system, the votes are reversed, and I've never bothered to investigate what else happens after that - though I'm sure some form of wrist-slapping ensues.  While it is intended to be well-guarded for obvious reasons, the algorithm used is not exactly a secret, and I am sure there are plenty of examples where people are dangling (maybe intentionally, or maybe by dumb luck) just on the safe side of getting caught.  Personally I believe there are active, intentional, long-term vendettas in operation right now where users either:   blindly up-vote every answer from a user; or, down-vote a particular user once or twice a day, regardless of topic or quality.   Now, maybe the first one is valid - if I'm operating in the same tag-sphere as some smart person, it may just be that I'm constantly enthralled with their answers, and I'm not even noticing who they're written by. (Though, even Skeet isn't perfect, and I haven't up-voted every answer I've seen him post.)  But still, can we do a better job of catching - or at least noticing - this activity over the long term in addition to the short term?  The behavior is the same, and shouldn't be tolerated, regardless of the time frame - vengeful rage serial voting, blind staker crush serial voting, and painstakingly patient serial voting are all undesirable behaviors IMHO.  I'm not saying it has to do anything automatically, as I'm well aware of the possibility of false positives. And I'm not even sure what to propose as a time frame or a vote threshold.      But if a large percentage of my up-votes or down-votes are against a particular user, and especially if on a majority of those posts I am the only one voting in that direction, I think it should at least be raised as some kind of flag to moderators.   This would work much like how other suspicious activity is highlighted (but also not dealt with automatically). If a pattern becomes obvious and persists, then they can intervene in some way (or not, but at least they were provided with the information - just like they can reject and ignore manual flags). Today, all I can do is e-mail team@stackoverflow.com, and unless I know exactly which person(s) are involved, there is not much they can do about it.  And you're thinking, "Meh, let some hater down-vote you once or twice a day. Unless all you're posting is utter crap, it should be statistically insignificant." You're right. But reputation is not the point, and is not the motivation behind my request. What I'd like to see curtailed is the tendency for folks to down-vote a question or answer because of who posted it, not because of what it said or didn't say. When a down-vote is personal it can leave a person second-guessing the quality of their post. Which isn't necessarily a bad thing, except when it happens repeatedly.  Sorry for the essay but I wanted to try to anticipate and cover all the objections and hole-poking.


Prove that $\binom{n}{r} + \binom{n}{r+1} = \binom{n+1}{r+1}  $  Thanks in advance, my professor asked us to this a couple weeks ago, but I was enable to get to the right answer.   Good luck!  Here is what I got up to;  $\frac{(n+1)!}{(n-r)!(r+1)!} = \frac{(n)!}{(r)!(n-r)!} + \frac{(n)!}{(r+1)!(n-r-1)!}    $

I'm trying to prove that ${n \choose r}$ is equal to ${{n-1} \choose {r-1}}+{{n-1} \choose r}$ when $1\leq r\leq n$.  I suppose I could use the counting rules in probability, perhaps combination= ${{n} \choose {r}}=\frac{n!}{r!(n-r!)}$.  I want to see an actual proof behind this equation.  Does anyone have any ideas?


I have the following line:  "14:48 say;0ed673079715c343281355c2a1fde843;2;laka;hello ;)"   I parse this by using a simple regexp:  if($line =~ /(\d+:\d+)\ssay;(.*);(.*);(.*);(.*)/) {     my($ts, $hash, $pid, $handle, $quote) = ($1, $2, $3, $4, $5); }   But the ; at the end messes things up and I don't know why. Shouldn't the greedy operator handle "everything"?

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


Personification is an object or a thing described with a human-like aspect (eg. The Sun smiled at me).   Can personification also be used to describe a human with an aspect from an object? For example, in Oliver Twist, Dickens says "[Oliver] was badged and ticketed," which describes/compares him with a package or box. Is this a usage of personification or a different type of literary device?

I want a word that means the opposite of personification.  What is the correct word for describing people with the characteristics of an object/as if they are objects?  I found the word chremamorphism on some forums, but it doesn't seem to be included in the two online dictionaries I searched.


Around 7 months ago i dropped my pc from knee high on the carpet and it went to a blue screen.  When i dropped it i was playing the game black ops 2.  In an attempt to fix it I held down the power button until it turned off then took out the battery.  After that it just wouldn't load so i decided to wipe it by holding down "0" when turning it on.  It gave me a lot of warnings and i was stupid enough to ignore them.  I have no back ups of my pc on anything.    So now every time i start up my laptop is says "Reboot and Select proper Boot device or Insert Boot Media in selected Boot device and press a key."   Above that it says PXE-M0F : Exiting PXE ROM.  We took it to some pc tech guys and after several tests they couldn't do anything.  They never told me that there was anything wrong with the hard drive or the connections inside.  I have no idea what to do and if  anyone could tell me ways i could fix this it would be very much appreciated.

My computer no longer boots Windows or the installed operating system. Instead, I may get this error:  PXE-E61: Media test failure, check cable -or- Check cable connection!  PXE-M0F: Exiting PXE ROM.   and/or one of the following messages or similar:  Operating System not found  No boot device available- No bootable devices--strike F1 to retry boot, F2 for setup utility  No bootable device -- insert boot disk and press any key  No Boot Device Found. Press any key to reboot the machine  Default Boot Device Missing or Boot Failed  Reboot and Select proper Boot device or Insert Boot Media in selected Boot device   What does this mean and what can I do?     This question comes up often and the answers are usually the same. This post is meant to provide a definitive, canonical answer for this problem. Feel free to edit the answer to add additional details.


I am using the following to define the footline element of my Beamer presentation:  \setbeamerfont{footline}{size=\large}  \defbeamertemplate*{footline}{Institute} %the fontsize changes the size of the footer {    \center{\color{algrey}{\noindent\hspace{0cm}\rule[0cm]{\paperwidth}{1pt}}}\\      \leavevmode%  %   \vspace{0.4cm}     \begin{beamercolorbox}[sep=.5em,wd=\paperwidth,ht=4.90ex,dp=1ex,center]{innerbox}%         % FAU Logo         %\begin{picture}(100.0,0.0)  %           \put(290.7,-9.85){\includegraphics[height=0.7cm]{templates/logos/logo_dummy}} %       \end{picture}         \begin{beamercolorbox}[wd=0.400\paperwidth,ht=2ex,dp=0ex,left]{innerbox}%             {\setstretch{10.0}\fontsize{5}{10}\selectfont \inserttitle \\[4pt] \insertauthor \par}         \end{beamercolorbox}         \begin{beamercolorbox}[wd=1.1cm,ht=2ex,dp=0ex,center]{innerbox}%             {\fontsize{3}{0}\selectfont\textcopyright~\the\year\\[3pt]             %Page \insertframenumber{}/\inserttotalframenumber{}}             Page \insertframenumber{}}         \end{beamercolorbox}         % Page Counter         \begin{beamercolorbox}[wd=0.425\paperwidth,ht=1ex,dp=0ex,right]{innerbox}%             %{\large Institute}\\             \vspace{-0.19cm}             \includegraphics[height=0.7cm]{templates/logos/logo_dummy}             %{\fontsize{4}{0}\selectfont\copyright~Institute, 2013\\[3pt]             %Page \insertframenumber{}/\inserttotalframenumber{}}             % \vspace{-0.5pt}         \end{beamercolorbox}     \end{beamercolorbox} }   This results in a footer rendered as:    As you can see, the title lines have no whitespace (baselineskip) between them. I tried to   set \fontsize{x}{y}\selectfont to different values manually set \baselineskip change \setbeamerfont{footline}{size=\large} change the size of the beamercolorboxes   however nothing helped separating the two title lines.

How can the line-spacing inside the headline-template be adjusted?   Consider the following code, if it is used inside a normal frame I can control the line-spacing by modifying the baselineskip in \fontsize{size}{baselineskip}.   But if I try to use it within the headline-template, changing the baselineskip does not make any difference.  \documentclass[t]{beamer}  % Fonts \setbeamerfont{title}{series=\bfseries,size=\fontsize{16}{24}}  % Headline \setbeamertemplate{headline}{%     \begin{minipage}[b][0mm][t]{85mm}%         \usebeamerfont{title}{%             \inserttitle         }%     \end{minipage}%      }  \title{Really long title to test all the three possible lines is not yet long enough but know}    \begin{document}      \begin{frame}[t]     \end{frame}      \setbeamertemplate{headline}{}     \begin{frame}[t]             \begin{minipage}[b][0mm][t]{85mm}%                 \usebeamerfont{title}{%                     \inserttitle                 }%             \end{minipage}%      \end{frame}    \end{document}       I also tried the answer , but the line-spacing remains unchanged.  \documentclass[t]{beamer}  \def\beamer@typesetheadorfoot#1{% typeset the head or footline     {\parskip0pt %\offinterlineskip%         \hbox{%             \hskip-\Gm@lmargin%             \hbox{%                 \vbox{%                     \@tempdima=\textwidth%                     \textwidth=\paperwidth%                     \hsize=\textwidth%                     \def\\{,}%                     \usebeamertemplate***{#1}%                 }}%                 \hskip-\Gm@rmargin%             }}\hfil%         }   % Fonts \setbeamerfont{title}{series=\bfseries,size=\fontsize{16}{24}}  % Headline \setbeamertemplate{headline}{%     \begin{minipage}[b][0mm][t]{85mm}%         \usebeamerfont{title}{%             \linespread{3.}             \inserttitle \par         }%     \end{minipage}%      }  \title{Really long title to test all the three possible lines is not yet long enough but know}    \begin{document}      \begin{frame}[t]     \end{frame}      \setbeamertemplate{headline}{}     \begin{frame}[t]             \begin{minipage}[b][0mm][t]{85mm}%                 \usebeamerfont{title}{%                     \inserttitle                 }%             \end{minipage}%      \end{frame}    \end{document}


The following minimal example of a group plot with units shows a problem (note the spurious [m] and [s] towards the center of the figure): It seems to me that descriptions at moves the regular text of a label but not the part that concerns units. Is this intentional, fixed in a more recent version than mine, or am I doing something wrong?  \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.12} \usepgfplotslibrary{groupplots} \usepgfplotslibrary{units}  \begin{document} \begin{tikzpicture} \begin{groupplot}[ xlabel = xlabel, x unit=m, ylabel = ylabel, y unit=s, group style={     horizontal sep=0pt,     vertical sep=0pt,     group name=my plots,     group size=2 by 2,     x descriptions at=edge bottom,     y descriptions at=edge left, }] \nextgroupplot \addplot coordinates {(0,0) (1,1) (2,2)}; \nextgroupplot \addplot coordinates {(0,2) (1,1) (2,0)}; \nextgroupplot \addplot coordinates {(0,2) (1,1) (2,1)}; \nextgroupplot \addplot coordinates {(0,2) (1,1) (1,0)}; \end{groupplot}  \end{tikzpicture} \end{document}     List of packages:   *File List*  minimal.cls    2001/05/25 Standard LaTeX minimal class pgfplots.sty    2015/01/31 v1.12 Data Visualization (1.12)     tikz.sty    2013/12/13 v3.0.0 (rcs-revision 1.142)      pgf.sty    2013/12/18 v3.0.0 (rcs-revision 1.14)   pgfrcs.sty    2013/12/20 v3.0.0 (rcs-revision 1.28) everyshi.sty    2001/05/15 v3.00 EveryShipout Package (MS)   pgfrcs.code.tex  pgfcore.sty    2010/04/11 v3.0.0 (rcs-revision 1.7) graphicx.sty    2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)   keyval.sty    2014/10/28 v1.15 key=value parser (DPC) graphics.sty    2014/10/28 v1.0p Standard LaTeX Graphics (DPC,SPQR)     trig.sty    1999/03/16 v1.09 sin cos tan (DPC) graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live   pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)  ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)   pgfsys.sty    2013/11/30 v3.0.0 (rcs-revision 1.47)   pgfsys.code.tex pgfsyssoftpath.code.tex    2013/09/09  (rcs-revision 1.9) pgfsysprotocol.code.tex    2006/10/16  (rcs-revision 1.4)   xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)    color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive  pgfcore.code.tex pgfcomp-version-0-65.sty    2007/07/03 v3.0.0 (rcs-revision 1.7) pgfcomp-version-1-18.sty    2007/07/23 v3.0.0 (rcs-revision 1.1)   pgffor.sty    2013/12/13 v3.0.0 (rcs-revision 1.25)  pgfkeys.sty      pgfkeys.code.tex  pgfmath.sty      pgfmath.code.tex   pgffor.code.tex     tikz.code.tex supp-pdf.mkii pdftexcmds.sty    2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO) ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)    ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO) epstopdf-base.sty    2010/02/09 v2.5 Base part for package epstopdf   grfext.sty    2010/08/19 v1.1 Manage graphics extensions (HO) kvdefinekeys.sty    2011/04/07 v1.3 Define keys (HO) kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO) kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO) etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO) epstopdf-sys.cfg    2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live  ***********

I have a problem with the grouping options of pgfplots.groupplots. Besides the labels I have also units defined. With the option xlabels at=edge bottom only the label, but not the unit is moved to the bottom of the group (same with ylabels).  \pgfplotsset{     use units,     x unit=s, x unit prefix={}, % 5.3.1 p227     y unit=\unitfrac{rad}{s}, y unit prefix={},     xlabel=time,     ylabel=frequency $\omega$, }  \begin{groupplot}[     group style={      group name=my plots,         group size=2 by 2,         xlabels at=edge bottom,         ylabels at=edge left,     },   Any ideas how to put also the unit to the bottom?


Right before split, I  bounty on this question:      During split, above question has been moved to MSE, where bounty was rewarded.  Recently, question was . After migration, I discovered that my bounty was refunded.  Is this expected behavior? What would happen if later the question migrates back to MSE?      Not that I complain, :) just curious (FWIW I wouldn't mind if refund is rolled back either).

In March 2011 I offered a 500 bounty on one of my StackOverflow questions () and awarded it to Filip de Vos.   This question was later migrated to Database Administrators and has the following messages on it.     migrated to dba.stackexchange.com by Will♦ Dec 28 '11 at 12:25      This   question belongs on our site for database professionals who wish to   improve their database skills and learn from others in the community.   .     deleted Dec 31 '11 at 1:01   I appear to have been   on whereas Filip .  Is this a bug? Definitely doesn't seem fair or correct to me. The question still shows up in both our bounty tabs despite the migration. I would have hoped that the previously awarded bounty reputation points could still be honoured in this situation.


I am solving previous year question paper some competitive exam. Give me some hint to solve the following problem.  Let $f$ be an entire function. Suppose for each $a \in \mathbb{R} $ there exists at least one coefficient $c_n$ in $f(z) = \sum_{n=0}^{\infty} c_n (z-a)^n$ which is zero. Then,  a) $f^{(n)}(0) = 0$ for infinitely many $n \ge 0$  b) $f^{(2n)}(0)=0$ $ \forall n \ge 0$  c) $f^{(2n+1)}(0)=0$  $ \forall n \ge 0$  d) $f^{(n)}(0) = 0$ for all sufficiently large n.  Thanks in advance.

Let $f$ be an entire function and let for each $a\in \mathbb R$, there exists at least one coefficient $c_n$ in $f(z)=\sum\limits_{n=0}^{\infty}c_n(z-a)^n$, which is zero. Then    $f^{(n)}(0)=0$ for infinitely many $n\geq 0$ $f^{(n)}(0)=0$ for every $n\geq 0$ $f^{(2n+1)}(0)=0$ for every $n\geq 0$ There exists $k\geq 0$ such that $f^{(n)}(0)=0$ for all $n\geq k$   We know that $c_n=\frac{f^{(n)}(a)}{n!}$ for all $n\in \{0,1,2\ldots\}$. Thus for $a=0$, $c_n=\frac{f^{(n)}(0)}{n!}$. By hypothersis, atleast one $c_n=0$. After that I could not do anything. Please help!


Slightly related to my : What is the difference between the following:  private class Joe protected class Joe public class Joe class Joe   Once again, the difference between the last 2 is what I'm most interested in.

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


I was practicing indefinite integrals and came to this integral:  $$        \int\frac {1}{\sqrt{\sin^3(x)\cdot\sin(x+\alpha})}\,dx. $$  Everywhere there is only one method given for solving this question  which involves dividing numerator and denominator by $\sin^2(x).$  However, I wanted to know if there was any other method for solving this or not?

Solve the indefinite Integration $\int \frac{1}{\sqrt{\sin^3x\sin(x+\alpha)}}dx$   $$ \int \frac{1}{\sqrt{\sin^3x\sin(x+\alpha)}}dx=\int \frac{1}{\sin x\sqrt{\sin x\sin(x+\alpha)}}dx\\=\frac{1}{\sin\alpha}\int \frac{\sin(x+\alpha-x)}{\sin x\sqrt{\sin x\sin(x+\alpha)}}dx=\frac{1}{\sin\alpha}\int\frac{\sin(x+\alpha)\cos x-\cos(x+\alpha)\sin{x}}{\sin x\sqrt{\sin x\sin(x+\alpha)}}dx\\ =\frac{1}{\sin\alpha}\int\frac{\sin(x+\alpha)\cos x}{\sin x\sqrt{\sin x\sin(x+\alpha)}}dx-\frac{1}{\sin\alpha}\int\frac{\cos(x+\alpha)\sin{x}}{\sin x\sqrt{\sin x\sin(x+\alpha)}}dx $$  Is it possible to proceed further and complete the integration or what is the right substitution to find the solution ?  Note: I'm looking for a simple way to solve this, unlike here .


I purchased Asus F202E-CT148H VivoBook with no Optical drive and it has 4 factory installed partitions with Win 8 preloaded. I want to install Ubuntu 13.04 on it but I am not able to do so as it ts coming with pre-installed windows 8 and UEFI  , Secure boot.  I tried all possible way mentioned on youtube and ubuntu forum. With USB also its not booting after disabling secure boot, fast boot. So any one installed dual boot win8 & ubuntu on Asus F202E-CT148H, Plz help. ?

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


Construction of $V$ may be described by the following sequences:  $\aleph_o$, $\aleph_1$, $\aleph_2$, ..., $\aleph_\omega$;  $\aleph_{\omega+1}$,...,$\aleph_{\omega+\omega}$;  $\aleph_{\omega+\omega}$, $\aleph_{\omega+\omega+\omega}$, ...,  $\aleph_{\sum_{i=0}^{\infty}(\omega_i)}$.   I repeat the subscript of the last $\aleph$ for readability: ${\sum_{i=0}^{\infty}(\omega_i)}$. Can I define $\aleph_A$ , where $A={\sum_{i=0}^{\infty}}(\omega_i)$?

For any set $A$, I proved already that $|A| < |\mathcal{P}(A)|$ by injecting $A \to \mathcal{P}(A)$ by $a \mapsto \{a\}$ and then demonstrating, by contradiction, that no surjection can exist. I want to prove that there is no largest cardinal number, but the argument $$|\mathbb{N}| < |\mathcal{P}(\mathbb{N})| < |\mathcal{P}(\mathcal{P}(\mathbb{N}))| < |\mathcal{P}(\mathcal{P}(\mathcal{P}(\mathbb{N})))| < \ldots$$ Perhaps more formally, I could suppose for the sake of contradiction that $|A|$ is the largest infinite cardinal, but this theorem implies that $|\mathcal{P}(A)| > |A|$, a contradiction. How can I make this proof sufficiently formal?


Does anyone know how I would go about answering the following question?  A traffic engineering company has installed some trac cameras along a one lane road to find a relation between the number of cars passing the road and the average speed at which the cars move. The cameras show that:   Point 1: When there is 1 car passing the road, the average speed is 50km/h. Point 2: When there are 5 cars passing the road, the average speed is 45km/h. Point 3: When there are 12 cars passing the road, the average speed is 38km/h.   The traffic engineering company decides to model the average speed (shown by $u$) as a linear function of the number of cars (shown by $n$). So we want to have  $$u(n) = \alpha + \beta n.$$   Using Point 1 and Point 2 information, write the system of linear equations to calculate $\alpha$ and $\beta$. Write a MATLAB code to calculate $\alpha$ and $\beta$.

Point $1$: When there is $1$ car passing the road, the average speed is $50$ km/h.  Point $2$: When there are $5$ cars passing the road, the average speed is $45$ km/h.  Point $3$: When there are $12$ cars passing the road, the average speed is $38$ km/h.  A traffic engineering company decides to model the average speed (shown by $u$) as a linear function of the number of cars (shown by $n$). So we want to have  $u(n)=\alpha+\beta n$ .   Using Point $1$ , Point $2$ and Point $3$ information: write a system of linear equations to calculate $\alpha$ and $\beta$ using all three points; i.e. we will have three equations with two unknowns.


I just installed Ubuntu 16.04 on my Lenovo notebook with a Broadcom network device. My wifi isn't working. I tried to activate a private driver, but that didn't work.  03:00.0 Network controller [0280]: Broadcom Corporation Device [14e4:43ae] (rev 02)

I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible.   What are the steps to install Broadcom wireless drivers for a BCM43xx card?  I'm a user with no advance knowledge in Linux, so I would need clear explanations on how to make, compile, etc.    lspci -vnn | grep Network showed:   Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b]      iwconfig showed:  lo        no wireless extensions. eth0      no wireless extensions.   NOTE: Answer below is updated every time new information is added and confirmed working.


I would like to create a list in my web application (JSF) which includes all print jobs. A status would be also very helpful (Status 1: currently print 2: waiting)  Another option should be: cancel a selected print job.  How can I do this in Java ?

I'm searching for a possibility to get a list of installed printers. I'm using JDK 1.6 with a Windows operating system. Does anyone know a solution?   Thank you in advance.


I got this div with an image inside that whenever I shrink the browser window the div starts to add space vertical. I have taken two screenshots, one screenshot describes how the div acts when it is stretched and the second shows how it pushes its height when it's shrinking.      The CSS-rules for this div is:   #Rectangle_3 {     float: left;     height: 383px;     width: 99.688474%;     background-color: white;     position: relative;     top: 0px;     left: 0px;     z-index: 75;     margin-top: 20px;     margin-left: 0%;     clear: none;     background-image:url("img/bluegreenconcert.png");      -webkit-background-size: 100%;     background-size: 100%;     display: block;     background-attachment: scroll;     min-width: 0px;     min-height: 0px;     margin-left: auto;     margin-right: auto;     clear: none;     margin-top: 0px;     max-width: none;     max-height: none;     background-position: 0% 0%;     background-repeat: no-repeat no-repeat;   }   I need help to find a solution to stop the div to push itself down when it is getting resized. Closest to a solution I have come to is to remove background-size. This will take away the extra vertical space added, though the div becomes non responsive if I do.  Here is another code sample of another div at the same page and it work as intended when resizing browser window.  #background1 {     float: none;     width: 100.2%;     height: 2735.71%;     color: rgb(0, 0, 0);     position: relative;     top: 0px;     left: 0px;     z-index: 63;     background-image:url("img/background.png");     -webkit-background-size: 100%;     background-size: 100%;     margin-top: 4px;     margin-left: -0.21%;     clear: none;     display: block;     min-height: 0px;     margin-right: auto;     min-width: 0px; }   As you can see the code samples are very similar. Though #Rectangle_3 adds extra space.

Although elements like
s normally grow to fit their contents, using the float property can cause a startling problem for CSS newbies: If floated elements have non-floated parent elements, the parent will collapse. For example:

Div 1

Div 2

    The parent div in this example will not expand to contain its floated children - it will appear to have height: 0. How do you solve this problem? I would like to create an exhaustive list of solutions here. If you're aware of cross-browser compatibility issues, please point them out. Solution 1 Float the parent.

Div 1

Div 2

    Pros: Semantic code. Cons: You may not always want the parent floated. Even if you do, do you float the parents' parent, and so on? Must you float every ancestor element? Solution 2 Give the parent an explicit height.

Div 1

Div 2

    Pros: Semantic code. Cons: Not flexible - if the content changes or the browser is resized, the layout will break. Solution 3 Append a "spacer" element inside the parent element, like this:

Div 1

Div 2

    Pros: Straightforward to code. Cons: Not semantic; the spacer div exists only as a layout hack. Solution 4 Set parent to overflow: auto.

Div 1

Div 2

    Pros: Doesn't require extra div. Cons: Seems like a hack - that's not the overflow property's stated purpose. Comments? Other suggestions?


I was hoping to hear some great tips on how to get clients. The obvious is having great photos but I want to go further into the marketing side. I've also already created a referral program, now I'm just waiting. I don't want to just wait though, I want to keep going and reach out.  One example being finding engaged couples or expecting mothers on Instagram. How do you reach out to personal accounts on instagram? How do you FIND them? Hashtag examples?  How do you reach out to your facebook friends without sounding desperate? I don't think many people see my posts offering services. I want to reach out to my friends asking if they are in need of any photos.  If you have any other ideas, I would love to know!

I'd like to increase my portrait business. I've had good experiences with family, pet portraits and High School seniors.  My local newspaper is quite expensive. I've had okay luck with Craigslist, although Craiglist shoppers are far from my ideal client that is willing to pay for quality images, fast turn around and a great experience.  I have a flyer on my community message board, but not enough traffic walks by it. I was thinking about posting at my local churches. I get a few of referrals from friends and family of clients.   What are good ways to reach my local base and increase sales?


Recently reinstalled windows and have AHCI enabled (perhaps it has something to do with AHCI mode). Basically, I have the option now to eject my hard drives in the "Safely remove hardware and eject media" facility at the bottom right of the tray bar. Except that, I would not want to eject my operating system hard drive, and probably don't really want to eject my data hard drives at any time either. Is there any way to stop windows from giving me this option? I don't want it.

The Safely Remove Hardware icon in Windows 7 offers the ability to eject my SATA drives, including the boot drive. I don't see myself ever needing this - especially not from the convenience of the tray icon.  Is there a common BIOS setting to disable hot-swappability?


Since Linux is dropping 32 Bit support because the production of 32 bit systems was closed in 2008.   I Accidentally installed Ubuntu 17.10 64bit on my 32 Bit system and I changed later to Kali Linux 2017.3 32 Bit(Still Using).    Now I want to know what problems will I face if I use a 64 Bit Os On a 32 bit System. Is My System is a Really 32Bit?   lscpu   This was the Output!  Architecture:        i686 CPU op-mode(s):      32-bit, 64-bit Byte Order:          Little Endian CPU(s):              2 On-line CPU(s) list: 0,1 Thread(s) per core:  1 Core(s) per socket:  2 Socket(s):           1 Vendor ID:           GenuineIntel CPU family:          15 Model:               6 Model name:          Intel(R) Pentium(R) D CPU 3.40GHz Stepping:            4 CPU MHz:             3400.000 CPU max MHz:         3400.0000 CPU min MHz:         2400.0000 BogoMIPS:            6782.84 L1d cache:           16K L2 cache:            2048K Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pebs bts cpuid pni dtes64 monitor ds_cpl est cid cx16 xtpr pdcm lahf_lm

I am using 32-bit Ubuntu 14.4 LTS.  How can I tell if my computer can run a 64-bit os? I am confused between architecture and CPU op-mode.  An excerpt from /proc/cpuinfo:  $ grep " lm " /proc/cpuinfo flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx **lm** constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm xsave lahf_lm dtherm tpr_shadow vnmi flexpriority   Output from lscpu:  kamal@kamal-G31T-M7:~$ lscpu Architecture:          i686 CPU op-mode(s):        32-bit, 64-bit Byte Order:            Little Endian CPU(s):                2 On-line CPU(s) list    0, 1 Thread(s) per core:    1 Core(s) per socket:    2 Socket(s):             1 Vendor ID:             GenuineIntel CPU family:            6 Model:                 23 Stepping:              10 CPU MHz:               2793.084 BogoMIPS:              5586.16 Virtualization:        VT-x L1d cache:             32K L1i cache:             32K L2 cache:              2048K …


How can i minimize my all open windows by pressing windows+d in Ubuntu? I can do this in windows easily but with Ubuntu i do not know how to do.

Like Windows, I want to hit Super+D to jump to the desktop or minimize all windows. I don't see command like that in Keyboard Shortcuts. Any idea?


I have fitted a binomial regression (glm.nb using the MASS package) to my data.   I have two questions and would be very thankfull if you could answer any of them:   1a) Can I use the Anova (type II, car package) to analyse which explanatory variables are significant? Or should I use the summary() function?  I know theta is assumed to be fixed in the Anova, which might be a problem. However, the summary uses a z-test which requires normal distribution if i am not mistaken. When looking at examples in books and websites - it seems like the summary is mostly used to test significance.  I get completely different outcomes for Anova test and summary and based on visualisation of the data I feel that Anova is more accurate.   1b) When using the Anova, both an F-test and a chisquare test give different (however, quite similar) results - is there any of these tests that is preferred for a negative binomial regression? Or is there any way to find out which test represents the most likely results? Based on visualisation, the F test seems to fit best.  2) When looking at the diagnostic plots, my qq-plot looks kinda off.  I am wondering if this is fine - since the negative binomial is different from the normal distribution? Or should the residuals still be normally distributed?

I have fitted a binomial regression in R using glm.nb from the MASS package.  I have two questions and would be very thankful if you could answer any of them:  1a) Can I use the Anova (type II, car package) to analyse which explanatory variables are significant? Or should I use the summary() function?  However, the summary uses a z-test which requires normal distribution if i am not mistaken. When looking at examples in books and websites, mostly summary has been used. I get completely different outcomes for Anova test and summary. Based on visualisation of the data I feel that Anova is more accurate. (i only get different outcomes when I have included an interaction).  1b) When using the Anova, both an F-test, chi-square test and anova (type 1) give different (but pretty similar) results - is there any of these tests that is preferred for a negative binomial regression? Or is there any way to find out which test represents the most likely results?   2) When looking at the diagnostic plots, my qq-plot looks kinda off. I am wondering if this is fine - since the negative binomial is different from the normal distribution? Or should the residuals still be normally distributed?


I have created a template named product.php with the following header:  <?php /* Template Name: Product Page */   How can I list, in a sidebar, every page that uses the "Product Page" template?  I have tried reading the wp_list_pages() function documentation, but it only seemed possible to list filtering by post_type, not by template used.

I would like to query only pages with a certain page template with WP_Query or a function that would return the post object, but I can't find any information about that on the official codex.


It may seem at first that we have many answers to this question but I tried them all but the update still fails.  Note: Windows 7 does not stuck in checking for updates. However, it downloads them but fails to install them : (No duplicates were found for this question).  Some of posts I've used to solve the issue:  Those all steps I have done:     1.  Stop the Windows Update related Services.    net stop wuauserv  // Ok : mean operation succeeded   net stop bits    // Ok   2. I deleted all files in:  C:\Windows\SoftwareDistribution folder and delete all the files and folders inside.    3. Restart the Windows Update related Services. net start wuauserv  // ok   net start bits      // ok        4. I have tried **Windows Update Troubleshooter** (WindowsUpdateDiagnostic.diagcab) : It said that the problems were     > solved !         Another try, I have installed the last update of Windows Update Agent-7.6      6. Last but not least: I tried to install failed updates manually but installation failed and sometimes cause system failure to start (need revert changes).  7. I tried a clean boot : disabled all non microsoft and startup services. Still updates failed with the same error.  8. Finally, I tried both WSUS offline updater 10.9 and Windows update MiniTool. Both of them failed.   Without forgetting doing a full Virus/Malware analysis and removal :D    After doing all of those steps and restarted my laptop many times the problem is not solved so any other methods to try are welcome.  Below part of my WindowsUpdate.log (Updated):  2017-01-21  21:15:20:871    1124    e2c AU  >>##  RESUMED  ## AU: Search for updates [CallId = {47F56A40-D8E6-4382-A523-1C96F796DCB9}] 2017-01-21  21:15:20:871    1124    e2c AU    # 97 updates detected 2017-01-21  21:15:20:884    1124    e2c AU  ######### 2017-01-21  21:15:20:884    1124    e2c AU  ##  END  ##  AU: Search for updates [CallId = {47F56A40-D8E6-4382-A523-1C96F796DCB9}] 2017-01-21  21:15:20:884    1124    e2c AU  ############# 2017-01-21  21:15:20:885    1124    e2c AU  Successfully wrote event for AU health state:0 2017-01-21  21:15:20:901    1124    8d4 Report  REPORT EVENT: {EAE73EBD-E9E8-49B2-A8BF-AA599200389F}    2017-01-21 21:15:20:860-0000    1   147 101 {00000000-0000-0000-0000-000000000000}  0   0   AutomaticUpdates    Success Software Synchronization    Windows Update Client successfully detected 97 updates. 2017-01-21  21:15:20:911    1124    e2c AU  ############# 2017-01-21  21:15:20:911    1124    e2c AU  ## START ##  AU: Refresh featured updates info 2017-01-21  21:15:20:911    1124    e2c AU  ######### 2017-01-21  21:15:20:911    1124    e2c AU  No featured updates available. 2017-01-21  21:15:20:911    1124    e2c AU  ######### 2017-01-21  21:15:20:911    1124    e2c AU  ##  END  ##  AU: Refresh featured updates info 2017-01-21  21:15:20:911    1124    e2c AU  ############# 2017-01-21  21:15:20:911    1124    e2c AU  AU setting next detection timeout to 2017-01-22 18:30:12 2017-01-21  21:15:20:911    1124    e2c AU  Successfully wrote event for AU health state:0 2017-01-21  21:15:20:953    1124    e2c AU  Successfully wrote event for AU health state:0 2017-01-21  21:28:07:000    1124    cf4 AU  AU setting next sqm report timeout to 2017-01-22 21:28:07 2017-01-21  23:17:05:744    1124    174c    AU  Getting featured update notifications.  fIncludeDismissed = true 2017-01-21  23:17:05:745    1124    174c    AU  No featured updates available. 2017-01-21  23:17:05:846    1124    174c    AU  WARNING: Returning due to error from GetDownloadProgressUx, error = 0x8024000C 2017-01-21  23:17:05:846    1124    174c    AU  WARNING: GetInteractiveInstallProgress failed, error = 0x8024000C

I installed Windows 7 fresh and installed SP1. Now, when I try to check manually for Windows Updates it just hangs on the Checking for updates screen.    I tried running the tools in , but this did not fix the issue either:  No matter what I do it just hangs on the "Checking for updates..." screen and goes no further.


I'm doing a WLS estimation and actually the RMSE (Root mean square error) given by the "fitlm" function is different by the one calculated by hand.  Here there is the MATLAB code  %% Generating data x=unifrnd(0,30,100,1); y=sin(x).*x;  wi=x; % weights m_hat=fitlm(x,y,'Weights',wi); % the model b_hat = m_hat.Coefficients.Estimate; % coefficients y_hat = b_hat(1)+b_hat(2)*x; % model estimation  % RMSE extracted rmse=m_hat.RMSE; % rmse "extracted" from fitlm  % RMSE by hand RMSE_with_formula=sqrt(sum((y-y_hat).^2)/m_hat.DFE))   Can somebody explain why? Which is the correct one? Thanks.

I have two models that predicted a value that is area based. I want to measure the RMSE to compare the models, but I would like it to be weighted for area so that errors on a large area are given more weight then errors on a small area. I have come up with the following function in R:  weighted.rmse <- function(actual, predicted, weight){   sqrt(mean((predicted-actual)^2*weight/sum(weight))) }   For weight I will use the area of prediction. So to my question, is this a valid method for model comparison? Is there a better way?


Given the availability of replicators, why are Ferengis so hard up for money? What drives them to continue to work so hard for money when they don't have to?   When it comes to humans, many would retire once they have enough money. Financial freedom and early retirement is a dream for almost all humans I know today.

Ferengis are all about acquisition and making a profit. But, in the age of replicators, where everything you want can be produced instantly, what would be the point of their lifestyle?


What will be the summation formula for the following series:  1+1/2+1/3+...............+1/n   Also, I am looking for a place online where I can get all list of such forumals, where I can get one please? Thanks.

How to find the sum of the following series? $$1 + \frac{1}{2} + \frac{1}{3} + \frac{1}{4} + \dots + \frac{1}{n}$$ This is a harmonic progression. So, is the following formula correct? $\frac{(number ~of ~terms)^2}{sum~ of~ all ~the~ denominators}$ $\Rightarrow $ if $\frac{1}{A} + \frac{1}{B} +\frac{1}{C}$ are in H.P. Therefore the sum of the series can be written as : $\Rightarrow \frac{(3)^3}{(A+B+C)}$ Is this correct? Please suggest.


A simple click event is not firing on my list items with the following line of code:  $("ol > li").on("click", listItemClickEventHandler);   To break down the problem, I cached the reference to the query selector first and then called the on function on it.  The query selector does return an object but I can't tell if that's the right object to set the handler on except for the fact that I've done this a million times in the past and it has worked.    function showAllCookies() {   $("ol").empty();   let all = []; //getAllCookies();   if (all) {     for(let cookie of all) {       $("ol").append(`<li>${cookie}</li>`);     }   } else {     $("ol").append(`There are no cookies to display.`);   } }  $(btnSave).on("click", function(event) {  // create cookie });  $("input[type='text']").on("keyup", function(event) {   // trigger save });  $("ol > li").on("click", listItemClickEventHandler);  function listItemClickEventHandler(event) {   let key = event.target.id;   $("#txtCookieName").val(key);   // to do   $("#txtCookieValue").val(""); }  showAllCookies(); .header {   font-size: 1.4rem;   font-weight: bold; } input[type="text"] {   width: 200px;   margin: 10px; } #errorMessage {   color: red; } li:hover {   cursor: pointer; }

All Cookies

Enter a key and value to create a new cookie or to update an existing one

   <input type = "text" id = "txtCookieName" value = "" placeholder="cookie name"/>
   <input type = "text" id = "txtCookieValue" value = "" placeholder="cookie value"/>   <button id = "btnSave">Save</button>

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


While checking my references I noticed that the urldate is printed in the wrong format. My document is being typeset in British English, where it is common to write the date as Day/Month/Year, compared to the American format Month/Day/Year. The output of my references, however, is in the American format.  \documentclass{article}  \usepackage{parskip}  \usepackage{polyglossia} \setmainlanguage[variant = british]{english}  \usepackage[backend = biber, citestyle = numeric-comp, language = british]{biblatex}  \begin{filecontents}{references.bib}     @misc{Test,         author = {NanoTemper},         title = {{This is a test title}},         year = {2019},         url = {https://example.com},         urldate = {2019-05-21}     } \end{filecontents} \addbibresource{references.bib}  \begin{document}     Foo bar\cite{Test}.     \printbibliography \end{document}     What should I use to get the British date format?

I cannot get localized dates in the bibliography when using polyglossia and biblatex. Biblatex's manual says:     biblatex automatically adjusts to the main document language if babel or polyglossia is loaded   However, the following document does not produce the desired output.  %!TEX program = lualatex \documentclass{article}  \usepackage{filecontents} \begin{filecontents}{main.bib} @Article{reference,   author        = {Doe, John},   title         = {Some title},   journaltitle  = {Awesome Journal},   volume        = {12},   number        = {8},   pages         = {1234-5678},   date          = {2018-12-11}, } \end{filecontents}  \usepackage{csquotes}  \usepackage{polyglossia} \setmainlanguage[variant=british]{english}  \usepackage[language=auto]{biblatex} \addbibresource{main.bib}  \begin{document} Citation~\cite{reference}.  \printbibliography \end{document}   The reference is typeset as     John Doe. “Some title”. In: Awesome Journal 12.8 (Dec. 11, 2018), pp. 1234–5678.   While I want the date as     11 Dec. 2018   What am I missing?


When I launch a program on windows it usually opens on top. It does not care if you are currently working on the other screen. It will take off the focus on the window you are working on and give focus to the new program that just launched.   Apple computers do not have this problem. If you launch a program it will load in the background and it will be minimized. For example I often compile my code in visual studio and that usually takes about 30 seconds. I tend to work on other stuff meanwhile its compiling. If I am typing an email for example then all of a sudden I will not be able to type any more and the program will launch on top. It will be nice if the newly launch program opened minimized flashing in the taskbar.

Are there any solutions to prevent applications stealing focus from the active window?   This is especially annoying when I'm starting an application, switch to do something else and the new application starts receiving half a sentence of text.


I am trying to use KVO to listen to collection change events on an NSArray property. Publicly, the property is a readonly NSArray, but is backed by an NSMutableArray ivar so that I can modify the collection.  I know I can set the property to a new value to get a “set” change, but I’m interested in add, remove, replace changes. How do I correctly notify these type of changes for an NSArray?  @interface Model : NSObject  @property (nonatomic, readonly) NSArray *items;  @end  @implementation Model {     NSMutableArray *_items; }  - (NSArray *)items {     return [_items copy]; }  - (void)addItem:(Item *)item {   [_items addObject:item]; }  @end     Model *model = [[Model alloc] init];  [observer addObserver:model        forKeyPath:@"items"           options:(NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld)           context:NULL];  Item *item = [[Item alloc] init]; [model addItem:newItem];   Observer class:  -(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context {     if ([keyPath isEqualToString:@"items"]) {         //Not called     } }

I am trying to get key-value-observing to work for an NSMutableArray. Below is the .h file for MyObservee, the observed class:  @interface MyObservee : NSObject {     @private int someValue;     @private NSMutableArray *someArray; }  @property (readwrite,assign) int someValue; - (NSMutableArray *)someArray; @end   The class MyObserver implements observeValueForKeyPath:ofObject:change:context:. Here is how I add the observer:  MyObservee *moe = [[MyObservee alloc] init]; MyObserver *mobs = [[MyObserver alloc] init];  [moe addObserver:mobs        forKeyPath:@"someArray"           options:(NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld)           context:NULL];  [moe.someArray addObject:@"hi there"];   How come the addObject: message isn't triggering as a change to the someArray key path? I have a feeling there's something I don't fully understand here.


Consider the phrases:  "The big yellow dog".  "The yellow big dog".  "The big little dog".  "The red yellow dog".  Only the first sounds natural. What rules of grammar say that size must come before colour? Another example:  "The big fluffy yellow dog".  Why does the order of the adjectives sound better with size->smoothness->colour rather than other orders. What rules of grammar is this?

I remember being taught that the correct order of adjectives in English was something along the lines of "Opinion-Size-Age-Color-Material-Purpose."  However, it's been a long time and I'm pretty sure I've forgotten a few categories (I think there were eight or nine). Can anyone fill them in?


Ubuntu MATE 16.04 LTS. Nettop HP260G2 with Intel 4405U CPU and DDR4 memory. Sometimes Wi-Fi comes unstable and turns off until reboot.  Installing rtlwifi_new by these instructions  changes nothing.  Boot log contains a list of messages like these:  [   45.297286] pcieport 0000:00:1c.3:    [ 0] Receiver Error         [   45.297292] pcieport 0000:00:1c.3: AER: Corrected error received: id=00e3 [   45.297658] pcieport 0000:00:1c.3: can't find device of ID00e3 [   45.297661] pcieport 0000:00:1c.3: AER: Corrected error received: id=00e3 [   45.297668] pcieport 0000:00:1c.3: PCIe Bus Error: severity=Corrected, type=Physical Layer, id=00e3(Receiver ID) [   45.297671] pcieport 0000:00:1c.3:   device [8086:9d13] error status/mask=00000001/00002000 [   45.297673] pcieport 0000:00:1c.3:    [ 0] Receiver Error         [   45.297678] pcieport 0000:00:1c.3: AER: Corrected error received: id=00e3 [   45.298027] pcieport 0000:00:1c.3: can't find device of ID00e3 [   45.302343] pcieport 0000:00:1c.3: AER: Corrected error received: id=00e3 [   45.302355] pcieport 0000:00:1c.3: PCIe Bus Error: severity=Corrected, type=Physical Layer, id=00e3(Receiver ID) [   45.302359] pcieport 0000:00:1c.3:   device [8086:9d13] error status/mask=00000001/00002000 [   45.302362] pcieport 0000:00:1c.3:    [ 0] Receiver Error         [   45.302368] pcieport 0000:00:1c.3: AER: Corrected error received: id=00e3 [   45.302718] pcieport 0000:00:1c.3: can't find device of ID00e3 [   45.302972] pcieport 0000:00:1c.3: AER: Corrected error received: id=00e3 [   45.302981] pcieport 0000:00:1c.3: PCIe Bus Error: severity=Corrected, type=Physical Layer, id=00e3(Receiver ID) [   45.302984] pcieport 0000:00:1c.3:   device [8086:9d13] error status/mask=00000001/00002000 [   45.302987] pcieport 0000:00:1c.3:    [ 0] Receiver Error         [   45.302993] pcieport 0000:00:1c.3: AER: Corrected error received: id=00e3 [   45.303341] pcieport 0000:00:1c.3: can't find device of ID00e3 [   45.307352] pcieport 0000:00:1c.3: AER: Multiple Corrected error received: id=00e3   Tried to install rtlwifi-new-dkms_0.10_all.deb driver following instructions from here:   Wifi is now working with new driver - Bluetooth symbol is hide. But boot still logging the same errors.  What's wrong here? Thanks everybody for help.

I have installed Ubuntu 15.04 on my laptop with RTL8723BE Wi-fi card. But it is always disconnecting from network. I have tried echo "options rtl8723be fwlps=N ips=N" | sudo tee /etc/modprobe.d/rtl8723be.conf but that didn't helped. What can I do to prevent the wifi from disconnecting? If I upgrade to kernel 4.X, will it help?  ~$ lspci -knn | grep Net -A2  09:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723]     Subsystem: Hewlett-Packard Company Device [103c:2231]     Kernel driver in use: rtl8723be   ~$ rfkill list 0: hci0: Bluetooth     Soft blocked: yes     Hard blocked: no 1: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no   ~$ ifconfig && iwconfig && route -n && ping -c 1 google.com eth0      Link encap:Ethernet  HWaddr 38:63:bb:cd:4a:7e             UP BROADCAST MULTICAST  MTU:1500  Metric:1           RX packets:3 errors:0 dropped:0 overruns:0 frame:0           TX packets:53 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:752 (752.0 B)  TX bytes:8445 (8.4 KB)  lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:65536  Metric:1           RX packets:3870 errors:0 dropped:0 overruns:0 frame:0           TX packets:3870 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0            RX bytes:314613 (314.6 KB)  TX bytes:314613 (314.6 KB)  wlan0     Link encap:Ethernet  HWaddr c0:38:96:6d:c4:83             inet addr:192.168.1.205  Bcast:192.168.1.255  Mask:255.255.255.0           inet6 addr: fe80::c238:96ff:fe6d:c483/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:15240 errors:0 dropped:0 overruns:0 frame:0           TX packets:14627 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:14410285 (14.4 MB)  TX bytes:2192744 (2.1 MB)  eth0      no wireless extensions.  wlan0     IEEE 802.11bgn  ESSID:"DIR-615"             Mode:Managed  Frequency:2.437 GHz  Access Point: 00:90:4C:08:00:0D              Bit Rate=150 Mb/s   Tx-Power=20 dBm              Retry short limit:7   RTS thr=2347 B   Fragment thr:off           Power Management:off           Link Quality=70/70  Signal level=-22 dBm             Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0           Tx excessive retries:0  Invalid misc:186   Missed beacon:0  lo        no wireless extensions.  Kernel IP routing table Destination     Gateway         Genmask         Flags Metric Ref    Use Iface 0.0.0.0         192.168.1.1     0.0.0.0         UG    400    0        0 wlan0 169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlan0 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0 PING google.com.Dlink (172.26.136.19) 56(84) bytes of data. 64 bytes from 19.136.26.172.in-addr.arpa (172.26.136.19): icmp_seq=1 ttl=249 time=102 ms  --- google.com.Dlink ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 102.547/102.547/102.547/0.000 ms


which Ubuntu will be better for my old pc (pentium dual core, 3 gb ram) for using python(update version), Django, other web development tools?

I'm thinking about installing Ubuntu Desktop, but I don't know what flavor is the best for my system. What are the minimum and recommended hardware requirements? What kind of CPU? How much memory? Should I have Hardware Acceleration? What flavor should I use?  This is an attempt of a canonical answer. My answers have the "official  requirements", the recommended are a mix of official sources and opinion based (along with the answer it's told the source). You can comment or edit if you feel that the information is obsolete or incomplete. It is a good rule of thumb that any system capable of running Windows Vista, 7, 8, x86 (Intel) OS X will almost always be a lot faster with any Ubuntu flavor even if they are lower-spec than described below.


Voltmeter is connected in parallel across the load. Why?

As I'm reading a course on electricity, this one says that an  should be branched inline and not on a bridge. Can someone explain to me physically why we branch a amperemeter inline and a  on a branch?


I recently asked this  here on Meta, and am wondering when it will be addressed and marked as either  or . Is there a defined time-frame for , or does it just depend on availability?

I'm not too familiar with status-tracking in general, but it seems tags exist to cover all states of these questions: -deferred, -bydesign, -planned, -declined, -completed, -review; -norepro, -reproduced.  Yet not every feature-request or bug question has one of these collectively inclusive tags.    So... why not?  Is it just a matter of convenience?  What does the default state of having no status tag mean?  That it is just a bad question?  Or that there's no consensus yet?


I know that on 32 bit system max number of memory cells in RAM is 2^32. But RAM in my computer show not exactly this size. Can someone explain why on 32 bit system size of RAM not equal max size of cells but varies(3.2 - 3.6 Gb)?

I recently upgraded my computer's RAM to 4 GB. My 32-bit Windows installation shows only 3574 MB of the memory. How can I make Windows use the full amount of RAM?


Why are there two wikis related to Ubuntu? The first one is  and the second one is . Both of them seem to be related to the community. Are the sites the same?

I realised I'm a bit confused about something. I have found three separate wikis hosted at ubuntu.com, and I'd like to know their respective purposes and relationships. I have some guesses (see below) but I'd prefer some clear/official/de facto descriptions or links.  Official Documentation () My guess: the official wiki page for running X on Ubuntu, where X is an officially supported package.  Community Help Wiki () My guess: the public wiki page for running X on Ubuntu, where X is any old thing.  Ubuntu Wiki () My guess: contributor-supported documentation for how to make contributions to the Ubuntu platform itself (not development  Ubuntu).    My primary interest here is in understand what they are so I can a) use them for my own reference, b) contribute to them if possible and c) link to them from AU (where relevant)


I am looking for a specific word to describe a concept such that its meaning is linear and one-way. Such is the case for the title of this question. X would be of this concept and Y would not, Y would be the opposite of this concept.  For example, all automobiles are motor vehicles but not all motor vehicles are automobiles.  I cannot seem to find any word to relate to this.  Any advice/guidance is very much appreciated.

I'm building a web site where I have a list of topics, and I need to denote the relation between them. e.g.:    Topic: Italian. Ancestors: Languages -> European Predecessors: Verbs, Nouns...    Another example may be:    Topic: Internet Explorer. Ancestors: Software -> Browsers Predecessors: Menus, Add-Ons, keyboard-shortcuts...     And so on.  The problem is that I'm not sure "Ancestors" and "predecessors" are suitable.    Other options I had in mind are subtopics/supertopics, and children/parents.    What do you think? Which way articulates the meaning best?


I want to implement ajax on a page .  i create a folder under plugins and put php page there and it works(when i gave the correct path in jquery). But when i try to call any WordPress functions it gives me error .  I want to do some database fetching in that file . How and where should i put the php file for simple ajax implementation ?

I'm wondering what the preferred method is for dealing with AJAX calls. Should one use the same plugin php file to process the POST or a separate one? Which is cleaner or safer?


If I had a map of the world or drew my own map texture how would I use it as a texture for a sphere mesh, and also how would I do this without an ugly seem on the part of the sphere? I want texture a sphere.

After reading  It seems that there is no perfect solution for getting rid of the stretch at the poles of UV spheres.  According to , icospheres can be used for stretch-less UV mapping:     All faces have the same area, which may be useful for certain types of UV mapping containing non-organic textures. An example that comes to mind is an isocahedral die or billiard balls where stretch must be minimized near the point where the number is printed onto the ball.   Incidentally, a lowish-poly billiard ball is exactly what I'm attempting to create.  However, my attempts at neatly unwrapping an icosphere have mostly failed (smart UV unwrap works perfectly for using baked textures, however I was hoping for something more like the example in the 6th post of , with a nice clean rectangular map).  How can an icosphere (I assumed the term "geosphere" in the thread was referring to a (geodesic) sphere made of triangles, like an icosphere) be cleanly unwrapped? Or if it's not possible, is there another way to do this which I'm missing?    I'm planning on using the resulting sphere in the BGE.


my page slows down every time I run my script, that's why I need to know how I can fix it  I have tried it on my local and public server and I have the same slow loading problem.    <form action="javascript:;" onsubmit="setSceneProducts()">     <input type="text" class="btn-transparent" id="hov" size="50" placeholder="Link Here">

              <input type="submit" class="btn btn-primary btn-lg" value="Unhide">      </form>
result here
    I would like to know if I can add a loader so that the data is displayed when the entire load is complete.

In Prototype I can show a "loading..." image with this code:  var myAjax = new Ajax.Request( url, {method: 'get', parameters: pars,  onLoading: showLoad, onComplete: showResponse} );  function showLoad () {     ... }   In jQuery, I can load a server page into an element with this:  $('#message').load('index.php?pg=ajaxFlashcard');   but how do I attach a loading spinner to this command as I did in Prototype?


I don't want to start a religious war or anything, but I do have questions about a few languages.  I have a project that was originally done in Java and was about 75% complete, but now it has to be redone, the conditions are quite different than they were 4-5 years ago when the previous code was written.  While I've been doing research, I'd like to get some background on the different languages at this point so I have a good idea what I can focus on and what I can (likely) ignore.  I see, in the FAQ, that open ended questions like this are discouraged.  But I don't know of other programming forums that aren't focused on a specific language.  So are there appropriate ways to ask such a question?  (Actually it's several questions about C++, Python, Perl, Java and cross platform stuff.)

Stuff like polls, recommendations based on subjective constraints, puzzles, webcomics etc. do not belong on the serious main SE sites, where professionals should be considered at work and having just a few spare minutes ("code's compiling") to answer questions, so they should not be distracted by such things. However, I'd also like to have a home for these things still using the SE engine. For the reason I mentioned before, this needs to be a separate place though. Let's call it four.[sitename-here].com.


I have completed the game, beaten my rival, and have talked to Professor Sycamore. but I didn't get the upgrade and I just finished the looker quest line. And I am not restarting the game. so how do I fix this?

I upgraded my Mega Ring and have been looking for Mega Stones, and I found . However, the Mega Stone isn't in the place it's supposed to be, and I'm sure the location is right. Why isn't my Mega Stone here?


Let $A=\begin{pmatrix}  5 & -2 & -7 \\  -4 & 3 & 4 \\  6 & -3 & -8   \end{pmatrix} $ and $\vec{v}=\left(\begin{array}{c} 2 \\ 1 \\ 1 \end{array}\right)$.   The first part of the problem asked to calculate $(A-I)\vec{v}$ and $(A-I)^2\vec{v}$, which I calculated to be $\left(\begin{array}{c} -1 \\ -2 \\ 0 \end{array}\right)$ and $\vec{0}$ respectively.   The question then asks to solve the initial value problem $\vec{y'}=A\vec{y}$ with $\vec{y}(0)=\vec{v}$.  I don't understand how to use what we calculated in the earlier part to help to solve this initial value problem. I determined from first principles that the eigenvalues are $\lambda=1,1,-2$ and I know that the solution of our initial value problem will take the form $\vec{y}=e^{tA}\vec{v}\ $, but I don't quite understand the significance of $(A-I)\vec{v}$ and $(A-I)^2\vec{v}$.

I have stumbled across a very old exam question from my linear algebra course and the solutions are not available. I was wondering if my working/logic is correct and if any improvements can be made.     Let  $\ B=\begin{pmatrix}     1 & -1 & 4 \\     6 & -7 & 2 \\     -3 & 1 & -6       \end{pmatrix}\ $ and $\ \vec{v_1}=\begin{pmatrix} 1 \\ 1 \\ -1 \end{pmatrix}$.      Part (i): Calculate $(B+5I)\vec{v_1}$ and $(B+5I)^2\vec{v_1}$.   Using simply matrix multiplication, I calculated $(B+5I)\vec{v_1}=\begin{pmatrix} 1 \\ 2 \\ -1 \end{pmatrix}$ and $(B+5I)^2\vec{v_1}=\vec{0}$.     Part (ii): Find all eigenvalues and eigenvectors of B.   From our calculations in part (i), we can see that $\ \lambda=-5,-5$ are two of the eigenvalues, with corresponding eigenvector $\ \begin{pmatrix} 1 \\ 2 \\ -1 \end{pmatrix}$ and generalised eigenvector $\ \begin{pmatrix} 1 \\ 1 \\ -1 \end{pmatrix}$. From the trace of B, the remaining eigenvalue is $\lambda=-2$ with corresponding eigenvector $\begin{pmatrix} -2 \\ -2 \\ 1 \end{pmatrix}$.     Part (iii): Giving reasons, write down a basis for the generalised eigenspace $GE_{-5}$ of B.   I am unsure of this part of the question. If I had to guess, I would say a basis for $GE_{-5}=\left\{\begin{pmatrix} 1 \\ 1 \\ -1 \end{pmatrix},\begin{pmatrix} 1 \\ 2 \\ -1 \end{pmatrix}\right\}$. Is this correct?     Part (iv): Solve the initial value problem $\vec{y'}=B\vec{y}$ where $\ B=\begin{pmatrix}     1 & -1 & 4 \\     6 & -7 & 2 \\     -3 & 1 & -6       \end{pmatrix}\ $ and $\vec{y}(0)=\begin{pmatrix} 1 \\ 1 \\ -1 \end{pmatrix}$.   Well, the solution to this IVP will take the form $\vec{y}=e^{tB}\begin{pmatrix} 1 \\ 1 \\ -1 \end{pmatrix}$. I noticed that $\begin{pmatrix} 1 \\ 1 \\ -1 \end{pmatrix}$ was a generalised eigenvector and hence we can write $\vec{y}=e^{-5t}\begin{pmatrix} 1 \\ 1 \\ -1 \end{pmatrix}+e^{-5t}\begin{pmatrix} 1 \\ 2 \\ -1 \end{pmatrix}t$. Thus $\vec{y}=e^{-5t}\begin{pmatrix} 1+t \\ 1+2t \\ -1-t \end{pmatrix}$


Can we transfer minecraft from android to ios with computer? Cause my brother is changing his phone and didnt want to lose his worlds. I want to transfer the minecraft file is it possible?

I'm using an Android smartphone that I purchased Minecraft PE on; now I want to transfer my world to a iPhone. I have also purchased Minecraft PE on my iPhone.


I am trying to make a software in "C++" for linux that reads the console output of the ldd console application. I would like to know if there is any '.so' library in the shared files of the system or another way of purely read the output of this command in console. Here is an example of the output of the command:   ldd ./echo     linux-vdso.so.1 =>  (0x00007fffdd8da000)     libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe95daf4000)     /lib64/ld-linux-x86-64.so.2 (0x000055a6179a6000)   This command print a list of the dependencies and the locations that has a binary file. I want to save this output in a variable or something else for  being formatted later.

I've got a utility that outputs a list of files required by a game.  How can I run that utility within a C program and grab its output so I can act on it within the same program? UPDATE: Good call on the lack of information.  The utility spits out a series of strings, and this is supposed to be portable across Mac/Windows/Linux.  Please note, I'm looking for a programmatic way to execute the utility and retain its output (which goes to stdout).


When a layer is added to QGIS, it is ordinarily added to "Layers" panel and "Map Canvas". The same thing happens when a memory layer (loaded/created by QgsVectorLayer) is added using QgsProject.instance().addMapLayer.  layer = QgsVectorLayer("Polygon?crs=EPSG:4326", "Buffer", "memory") #  QgsProject.instance().addMapLayer(layer) # after this line, layer is added to both area.   When writing a script step by step, I usually add intermediate layers to control if the script runs correctly. Then I need to remove them manually and repeatedly.  I want a layer which I add to memory to be added to "Map Canvas" only. How can I achieve that? Is it possible to break the connection between "Layers" panel and "Map Canvas".   For example, as shown in the image, I want Buffer layer to appear only in "Map Canvas", but not in  "Layers" panel.

I have a number of layers in the Layers Panel inside a group but I don't want them shown (there's quite a lot so it looks untidy). These layers are also joined to several others. Is it possible to make these layers invisible to the user (i.e. not shown in the Layers Panel, it is not about setting the visibility of the layer) but can still be joined to other layers, or perhaps to make the group invisible? Closest I found was this post but hoping there's a more direct approach:


Simulations are getting better and better over time. If technology keeps progressing like that, one day it might be possible to simulate a human brain. However, simulations work based on Newtonian laws, not quantum. I know that quantum mechanics do not influence something as big as a brain but since it is something so complex maybe the tiny difference that quantum mechanics does to each tiny interaction is added up throughout time, resulting in a totally different outcome. For example, suppose we are simulating a human inside an isolated room. In theory, we could predict in what direction he will walk after 1-hour using newtons laws (let's say... forward). But since the human brain has a lot of interactions (such as electrons in synapsis) and is a very complex structure with tons of variables, perhaps quantum effects could sum up during this one hour making it impossible to predict if he will walk forward or to the right because the result would just be probabilities of his "choice". This reasoning could be applied to many complex structures with a large number of interactions (or even any object given enough time). For instance, maybe fluid dynamics simulations could also serve as an example, like simulating a smoke explosion for a certain time span. According to my idea, after a while, all we could know are the different probabilities of the positions of each smoke particle.  Does this make any sense? Quantum mechanics makes it impossible to predict human behavior (and other complex things) with more than, let's say, 90% accuracy, during a long time period? Or the quantum effects are just so negligible that even considering millions or billions of years there wouldn't be a difference?

The possibility of randomness in physics doesnt particularly bother me, but contemplating the possibility that quarks might be made up of something even smaller, just in general, leads me to think there are likely (or perhaps certainly?) thousands of particles and forces, perhaps layers and sub layers of forces, at play that we do not know about. So this got me thinking about quantum mechanics.    I'm no physicist, but I do find it interesting to learn and explore the fundamentals of physics, so I'm wondering: Could the randomness found in radioactive decay as described in quantum mechanics be the result of forces and / or particles too weak / small for us to know about yet resulting in the false appearance of randomness?  Or rather, can that be ruled out?


This question was asked in "", that has one complicated answer. In case of someones are not strong in programming (I am working in Philosophy, Health and etc communities) this answer is not usable.  Is there a feature which allows us to download the chat discussion history to save on a local computer and open it in a documentation program (for example Microsoft Word)?  For example in comparison of Wikipedia, I have this as a suggest for add a simple future to download SE contents (Q.A story or Chat one)

How do I download all chat messages or those from a particular room (over all time)?  A script may be able to do it, but is there a more convenient way? Is there something at  all I see are the QA sites.


I am trying to install libncurses for Ubuntu 14.04. But, it is showing the following error:  root@sharwariDell:/usr/src# sudo apt-get install libncurses5-dev Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package libncurses5-dev

There are many  about Unable to locate package.  For example : if user try to install package by using apt-get then the following error shown. (Here package is used only as example for displaying error message):  sudo apt-get install package Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package package   What does this error mean? How do I solve it?    provided General solution to understand and how to solve such type of error (which is helpful for new users that may unaware of repository-apt install mechanism)  Note : For resolving unmet-dependencies, visit: .


He was stationed as a guard at northern city-gates. There were fifty guards totally, at each city-gate, appointed to protect the gate from robbers, marauders and thieves. There were two junior commanders at _____ gate, each of them commanding twenty-five guards.  Should I use each in the blank space or every? Personally, I would like to use "every", since "each" is already being used several times. Would the sentence be grammatically correct and appropriate if I use "every"?

What is the difference between the following two sentences?     Each apple is red.      Every apple is red.


I have a B1 Business visitor visa for Canada and I visited Canada on this visa for my company's business. Now I want to visit Canada. Can I travel for tourism on this business visitor visa?

I got a B1 visa (Visitor-Business) for Canada in 2012 when I traveled to Canada for a business trip from my company. It expires in 2015 and I'd love to visit the Canada again, but for no other purpose than traveling, visiting family.  I want to know, If I can legally travel to Canada with B1 visa without a real business need (assuming I'm honest);  I live in India, and I have B1/B2 from US and used same Visa for Business & Personal visits multiple times.


If we consider $(\mathbb{Z}/120\mathbb{Z})^{\times}$ ?  Using the CRT we have : $(\mathbb{Z}/120\mathbb{Z})^{\times} \simeq (\mathbb{Z}/2^3\mathbb{Z})^{\times} \ \times (\mathbb{Z}/3\mathbb{Z})^{\times} \ \times (\mathbb{Z}/5\mathbb{Z})^{\times}$  By other properties $(\mathbb{Z}/120\mathbb{Z})^{\times}\simeq \mathbb{Z}/2\mathbb{Z}\ \times\mathbb{Z}/2\mathbb{Z}\ \times  \mathbb{Z}/2\mathbb{Z}\ \times \mathbb{Z}/4\mathbb{Z}$  But we know that $(\mathbb{Z}/2^3\mathbb{Z})^{\times}$ is not cyclic and moreover $\gcd(2,2,2,4)\neq 1$ so the product cannot be a cyclic group. Does that mean that $(\mathbb{Z}/120\mathbb{Z})^{\times}$ is not cyclic too ?  Thanks in advance !

Let $U_n$ denote the group of units in $\mathbb{Z}_n$ with multiplication modulo $n$. It is easy to show that this is a group. My question is how to characterize the $n$ for which it is cyclic. Since the multiplicative group of a finite field is cyclic so for all $n$ prime, it is cyclic. However I believe that for certain composite $n$ it is also cyclic.   Searching through past posts turned up , where there was an answer containing the sentence "In number-theoretic situations there are coherent things that can be said, and/but in general I think nothing decisive can be said."  What are those number theoretic situations?  Thanks


If quarks come in three colours $r$, $g$ and $b$ than (neglecting all other quantum numbers and spacial freedom for now) a state of a quark would be a vector in $\mathbb{C}^3$.  If we are now looking for a global symmetry redefining the colours than I would be left with the unitary group $U(3)$. However the correct gauge group is $SU(3)$.

Is there a good reason not to pick $U(3)$ as the colour group? Is there any experiment or intrinsic reason that would ruled out $U(3)$ as colour group instead?


In my wordpress site i am using a quite simple jQuery piece of code:  jQuery(".first-sq").mouseenter(function(){       jQuery(".first-sq img").attr('srcset', '/wp-content/uploads/2017/01/MachineLearning_hoverx2.png');  })  jQuery(".first-sq").mouseleave(function(){    jQuery(".first-sq img").attr('srcset' , '/wp-content/uploads/2017/01/MachineLearningx2.png');  })   Now the code works but the problem is when mouseenter called it takes some time for the image to load, and you can see it being loaded. or in other words, the image revealed in portions. Is there a way to load all the images the document might use ,when document load, so when in situations like my mouseenter the image will show immediately and wont have to load?

I'm looking for a quick and easy way to preload images with JavaScript. I'm using jQuery if that's important.  I saw this here ():  function complexLoad(config, fileNames) {   for (var x = 0; x < fileNames.length; x++) {     $("<img>").attr({       id: fileNames[x],       src: config.imgDir + fileNames[x] + config.imgFormat,       title: "The " + fileNames[x] + " nebula"     }).appendTo("#" + config.imgContainer).css({ display: "none" });   } };   But, it looks a bit over-the-top for what I want!  I know there are jQuery plugins out there that do this but they all seem a bit big (in size); I just need a quick, easy and short way of preloading images!


I expected to update a user within users by doing find and setting the the returned value. However, console.log(overview[userI]); does not return print null.  var user = users.find(u => u.id===newUser.id); var userI = users.findIndex(u => u.id===newUser.id);  user = null;  console.log(overview[userI]);   I then ran the following example:  var inventory = [     {name: 'apples', quantity: 2},     {name: 'bananas', quantity: 0},     {name: 'cherries', quantity: 5} ];  function findCherries(fruit) {     return fruit.name === 'cherries'; }  let fruit = inventory.find(findCherries); // { name: 'cherries', quantity: 5 } fruit.quantity = 6; console.log(inventory);   However, this time inventory is indeed updated as I expected with cherries now with a value of 6.  Why do I not see this behaviour in my first example?

The primitive types (number, string, etc.) are passed by value, but objects are unknown, because they can be both passed-by-value (in case we consider that a variable holding an object is in fact a reference to the object) and passed-by-reference (when we consider that the variable to the object holds the object itself).  Although it doesn't really matter at the end, I want to know what is the correct way to present the arguments passing conventions. Is there an excerpt from JavaScript specification, which defines what should be the semantics regarding this?


I need a non-generic class containing a method with two generic parameters . In this method my goal is to compare two generic parameters and return the greater value.  How can I do it? public class generic <T extends Comparable<T>>{      public T Max( T pv, T sv){         if(pv.compareTo(sv)>=0){             return pv;         }else {             return sv;         }     }      public static void main(String[]args){         generic g = new generic();         System.out.println(g.Max( 2, 7));     } }

Consider this example (typical in OOP books):    I have an Animal class, where each Animal can have many friends. And subclasses like Dog, Duck, Mouse etc which add specific behavior like bark(), quack() etc.  Here's the Animal class:  public class Animal {     private Map<String,Animal> friends = new HashMap<>();      public void addFriend(String name, Animal animal){         friends.put(name,animal);     }      public Animal callFriend(String name){         return friends.get(name);     } }   And here's some code snippet with lots of typecasting:  Mouse jerry = new Mouse(); jerry.addFriend("spike", new Dog()); jerry.addFriend("quacker", new Duck());  ((Dog) jerry.callFriend("spike")).bark(); ((Duck) jerry.callFriend("quacker")).quack();   Is there any way I can use generics for the return type to get rid of the typecasting, so that I can say      jerry.callFriend("spike").bark(); jerry.callFriend("quacker").quack();   Here's some initial code with return type conveyed to the method as a parameter that's never used.   public<T extends Animal> T callFriend(String name, T unusedTypeObj){     return (T)friends.get(name);         }   Is there a way to figure out the return type at runtime without the extra parameter using instanceof? Or at least by passing a class of the type instead of a dummy instance. I understand generics are for compile time type-checking, but is there a workaround for this?


I know a template file like the following can create a bunch of users they doesn't exist yet. ubuntu01:passwd:2000:10000:,,,:/home/ubuntu02:/bin/bash ubuntu02... ubuntu03... ...  To copy a few files to each of them, I guess I can run command like cp /path/to/file /home/ubuntu01 cp /path/to/file /home/ubuntu02 cp /path/to/file /home/ubuntu03 ...  Is it possible to do the job when I create the users?

i have on my server a settings i use for all my users. every time i create a new user i have to copy all the settings over and over.  for example:   .vimrc. .profile .bashrc firefox homepage to our intranet evolution settings (server and username) etc...   i saw skel can do it, is there a easy way to setup a user with my settings when i adduser?  thanks


Gedit usually shows the menu bar when the mouse is hovered over the top of Unity (desktop) no matter where or how gedit is displayed. This is ok.  When started from terminal using   sudo gedit   there is no menu bar anywhere.   crashed the system.  Alt+F does not work.  "To show the menu in the window's title bar go to Settings >> Appearance >> Behavior and click Show Menu In The Window's Title Bar." from   This change does work normally but still no menu bar with sudo gedit  I could go on with at least 5 other attempts but figure you get the idea.  Can this be fixed?

While trying to follow , I encountered the following error while attempting what seems like a simple sudo edit operation:  $  sudo gedit /var/lib/dpkg/status  ** (gedit:14898): WARNING **: Command line `dbus-launch --autolaunch=0bd873023a78bdb34ca1b9650000000b --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n Cannot open display:  Run 'gedit --help' to see a full list of available command line options.   Running the same without sudo correctly launches gedit, but of course without editing ability. Does anyone have any idea what is going on?


I have this sentence:     Can you share those documents with me?   And I want to add an incidental text like "(no problem if they are in progress)".  Shall I add that text before or after the quastion mark?     Can you share those documents with me (no problem if they are in progress)?   or     Can you share those documents with me? (no problem if they are in progress)   or      Can you share those documents with me? No problem if they are in progress.   Edit: This is not the same topic as in  because in that case, the question was only related to the text inside parantheses.

I know that when brackets enclose part of a sentence, the full stop goes outside.     I tripped over this morning. I was distracted by a plane (which turned out to be Superman).   If it's a full sentence, the full stop goes inside.     I tripped over. (I was distracted by a plane that turned out to be Superman.)   What happens when there's a question mark and only part of the sentence is a question?     I tripped over this morning. I was distracted by a plane (or was it Superman?)      (or was it Superman?).      (or was it Superman)?   What happens to the full stop that belongs to the rest of the sentence, and why?


Why is an alpha particle emitted  from any radioactive element if it is decaying? Why can it not emit multiple protons + neutrons one after the other or any other particle that is heavier than an alpha particle? Is it due to the fact that the atom can become stable faster by emitting multiple alpha particles rather than more number of protons and neutrons individually, If yes then why can it not emit bigger particle directly to form the stabler element (i.e the product of the decay chain)

It is said in many textbooks that alpha decay involves emitting alpha particles, which are very stable. Indeed, the binding energy () is higher than for $Z$-neighboring stable isotopes. But the binding energy is lower than, for example, ${}^9\mathrm{Be}$ (). My question is why aren't other nuclear compounds ejected from heavy nuclei, e.g. ${}^9\mathrm{Be}$?  The   $$e^{-\frac{4\pi}{\hbar}\frac{Ze^2}{4\pi\epsilon_0}\frac{1}{v_\alpha}}$$ decreases exponentially in $Z$, so it explains intuitively why lower-$Z$ particles would tunnel more often. Specifically, it would explain why we would see ${}^9\mathrm{Be}$ emission ${e^{-2}}\simeq 0.14$ times as often compared to ${}^4\mathrm{He}$ emission. Also, the particles need to form in the nucleus prior emissions; but with a similar binding energy per nucleon (~7.08 MeV for ${}^4\mathrm{He}$ vs. 6.47 MeV for ${}^9\mathrm{Be}$) and higher total binding energy for the ${}^9\mathrm{Be}$ nucleus, I would expect that its formation in the same order of prevalence as the alpha particle (according to Ohanian, between 0.1 and 1 alpha particles are in existence at any moment in time).  Can anyone explain this? A reference to an article/textbook would be preferable.  EDIT Same goes for ${}^{16}\mathrm{O}$ which is also a double magic isotope, as 'anna v' pointed out. For it, the Gamow factor is smaller by $e^{-4}\simeq 0.02$, and emission should still be viable.


I am creating a script which would enable me do something in a shorter amount of time. Is there a way that I can rename a file automatically from:  WDMyCloud_plexmediaserver_1.16.1.1291.bin(07082019)'   to  WDMyCloud_plexmediaserver_1.16.1.1291.bin   So it would detect the numbers, but would delete the part after .bin.  I am using Ubuntu.

I have a directory full of images:  image0001.png image0002.png image0003.png ...   And I would like a one-liner to rename them to (say).  0001.png 0002.png 0003.png ...   How do I do this?


Prove that $\sum_{k=1}^{n-1} (n-k) cos\frac{2πk}{n}=\frac{-n}{2}$ where  n $\ge$3  is an integer .  My approach, we need to find real part of the equation. Where k is increasing, i am getting confused. Is there any other method of approaching this question.

Prove that the sum $$\sum_{k=1}^{n-1} (n-k)\cdot\cos\left(\frac{2k\pi}{n}\right) $$ Is an integer for any $n\geq 3$.  I found this in my textbook but am unable to evaluate this sum. Any help would be appreciated.


What is the difference between running N separate time series regressions relative to running a panel (POLS for example) with and without dummies for the N entities? It would be useful to get some intuition about the impact on the coefficients and standard errors.

Assume the true (cross-section) regression model is  $$ Y_i = \alpha + \alpha_mD_m + \beta X_i + \beta_m X_iD_m + \epsilon_i $$  where $D_m$ is a dummy for gender (equal to 1 if individual is a male).  Assume I have a random sample of the above population, of size $n$. Now, instead of estimating the above, I estimate separate models for each gender:  $$ Y_i = \rho + \phi X_i + \mu_i $$  for female individuals and  $$ Y_i = \rho_m + \phi_m X_i + u_i $$  for male individuals.  Is it always the case that the probability limit of the estimators converge to the true parameter, as below?  $$ \rho \overset{p}{\rightarrow} \alpha $$  $$ \rho_m \overset{p}{\rightarrow} \alpha_m $$  $$ \phi \overset{p}{\rightarrow} \beta $$  $$ \phi_m \overset{p}{\rightarrow} \beta_m $$  I cannot think of any reason why the above is not true.  I ask this because I wonder if instead of estimating a model for a whole sample full of dummies to account for group effects, I can estimate a simpler model for different groups. Naturally, assuming that $n$ for each group is sufficiently high.


Prove the following identity : a)$$ \binom{n+1}{2m+1}=\sum_{k=0}^n \binom{n-k}{m} \cdot \binom{k}{m} $$ where $n$ and $m$ are positive integers  $\binom{n}{m}=\frac{n!}{(n-m)!m!}$ , for $n\geq m$  and $\binom{n}{m}=0$, for $n<m$  Idea: If we choose $2m+1$ numbers from $n+1$ then one number is in the middle. If this number is $k+1$ then $0\le k\le n$ and we have to choose $m$ numbers to the left to it, ${k\choose m}$ and $m$ numbers to the right of it, ${{n-k}\choose m}$.  How to proceed with this idea?

I am trying to get a combinatorial proof for this summation identity, for $0\leq k\leq \frac{n}{2}$ $$\sum_{m=k}^{n-k}\binom{m}{k}\binom{n-m}{k}=\binom{n+1}{2k+1}$$  The way I interpreted is that, for the right hand side $\binom{n+1}{2k+1}$ is the number of ways to choose $2k+1$ from total of $n+1$, then for left hand side, condition on dividing $n+1$ into two groups of size $m+1$ and $(n+1)-(m+1)=n-m$, then if choose $k$ the group of $n-m$ then it gives $\binom{n-m}{k}$, so there are $2k+1-k=k+1$ to choose from the group of size $m+1$, this is $\binom{m+1}{k+1}$, therefore I got the left hand side as $\sum_{m=k}^{n-k}\binom{m+1}{k+1}\binom{n-m}{k}\neq\sum_{m=k}^{n-k}\binom{m}{k}\binom{n-m}{k}$. what did I do wrong here? please help.


I am having a hard time figuring out what protocol does Teamviewer VPN use. Is it IPSec transport mode or tunnel mode? Or is it something else?  I was not able to find any documentation related to this..

I was just teaching someone a little about SSH & VNC. I said I'd show him some things with TeamViewer. Then he asked me "Soo.. is this a VNC client? And I wasn't sure.   What protocol does TeamViewer use? It's obviously similar to VNC & RDP and so on. However, I can't seem to find much information on it.


Log into , click on the My Profile button at the top right and then scroll down and select either French or German as a language at the bottom.  When you scroll back up you'll find that the translation of the English word Edit overlaps the picture and quote lines as the French modifier and German Bearbeiten translations are longer words and the layout has not been adjusted to account for that. E.g.

The Buttons "Bearbeiten" to edit my profile and tags are drawn over my profile picture. See screen-shot below.


I have linux Fedora.  I am trying to change the local ip address by 2 ways:   With sudo ifconfig <interface_name> <ip_address> netmask <netmask_address> With ip -  sudo ip link set dev <interface_name> down sudo ip addr add 192.168.1.12/24 dev <interface_name> sudo ip link set dev <interface_name> up    in both ways ping works but Internet connection seems to be down and doesn't work at all.  I looked at this links:       but I didnt really got the answer I was looking for.

I am trying to change my IP address using terminal commands.  When I use ifconfig 10.10.10.134 netmask 255.255.255.0 I can change the IP address and can still connect to my network (I can ping other devices), but I can no longer connect to the internet. Is there something else I should be doing, or even a different command I should be using?


I want to install Ubuntu 14.04 LTS and Windows 10 on my PC,but I really don't know what is optimal way to partition the drive.  I can use 4 Primary partitions. This means that I will use 2 Primary partitions for the Windows 10 OS, for Drive C: and D: . Now I don't know what partitions should I make primary for the Ubuntu 14.04 OS. I am thinking to make the following partions:   Directory /, Size 40 GB, File System Ext 4, Type Primary,at the beginning of the drive Directory /boot, Size 5 GB, File System Ext 4, Type Primary,at the beginning of the drive Directory /Home, Size 300 GB, File System Ext 4, Type Logical,at the beginning of the drive Swap space 10 GB, Type Logical, at the end of the drive.   I don't really know the difference between Primary and Logical partitions. I red that directory / and /boot should be Primary. I don't know if making /home and swap directories logical is going to affect the OS negatively.  I plan to use Ubuntu 14.04 more often, than Windows 10 OS if this matters somehow.

Currently I'm running Vista on my laptop but it's getting slower each day, so I decide to install an Ubuntu on my laptop, while for some reason I still need to keep the Vista.  Right now I have two disks under Vista: C:/ for the Vista system and installed software,  D:/ for my personal data, e.g, music, movie, photo.   I want to keep some of the personal data and delete something unnecessary to spare about 50GB space.  So my question is this: is there a way to 'cut' the free 50GB into a independent disk, say E:/, so I can install Ubuntu on it, while not affecting my Vista system?


This is a follow-up to this question:    I have build an SSIS package on my local machine but when deploying to a server, I get the following error:  "To run SSIS package outside of SQL Server Data Tools you must install Derived Column of Integration Services or higher."    Can an SSIS 2012 package in fact be run on a server that doesn't have SSIS installed?

NOTE that the title of this qusetion is a verbatim error message specific to this user. The error message illustrates a bug in the dtexec application, which substitutes a user variable into the error message string. In this case, the standard message Standard E dition is replaced with send successful email.  The 'standard' error message would be :  Description: To run a SSIS package outside of Business Intelligence Development Studio you must install Standard Edition of Integration Services or higher.    Version SSIS 2012. Package was originally 2005 ver. Package on file system.  DB Engine / Agent on Host 1, SSIS on Host 2.  Execution from Host 2 runs successfully. Execution from Host 1 gives the error in the question subject. Saw , but engine and agent are installed on Host 1. Has anyone seen this? Google returns no results when searching on the exact error (subject line is exact, wording is odd in the error message).  Thank you!


I have been working through exercises in a book on polynomials. There is a section in the first chapter on some basic number theory.  I am having trouble completing one of the exercises. Part (e.) of the exercises goes like this : "We say that the solution of a congruence $ax \equiv b ( \mod m)$ is unique modulo $m$, or simply, unique, if the difference between any two solutions is divisible by $m$. In other words, the requirement is that $au \equiv av \equiv b (\mod m)$ implies $u \equiv v (\mod m)$. Show that the solution of the congruence is unique if and only if $\text{gcd}(a,m) = 1$." Here a solution to the congruence is some $x \in \mathbb{Z}$ s.t. $ax \equiv b(\mod m)$ is true. I suspect $u$ and $v$ are two arbitrarily chosen solutions. I think I am able to prove the forward implication but not the backwards one. We see : \begin{equation} au \equiv av \equiv b ( \mod m) \Rightarrow m | (au - b) \text{ and } m|(av-b) \end{equation} Where $x|y$ means that $y$ is divisible by $x$. The above implies : \begin{align} & \Rightarrow m | \left[ (au - b) - (av - b) \right]   \\\\ & \Rightarrow m | \left[ (au - av) + (b - b ) \right]  \\\\ & \Rightarrow m | (au - av)                            \\\\ & \Rightarrow au \equiv av ( \mod m) \end{align} So this implies : \begin{align} \Rightarrow m | (au - av) \Rightarrow m | a(u-v) \end{align} We then see : \begin{equation} \text{gcd}(a,m) = 1 \text{ and } m | a(u-v) \Rightarrow m | (u-v) \text{ and } m \not | a \end{equation} Where $m \not | a$ means that $a$ is not divisible by $m$. So in this case : \begin{equation} u \equiv v ( \mod m ) \; \checkmark \end{equation} So here I've shown that : \begin{equation} \text{gcd}(a,m) = 1 \text{ and } au \equiv av \equiv b (\mod m) \Rightarrow u \equiv v (\mod m) \end{equation} But I haven't shown that : \begin{equation} \text{gcd}(a,m) \neq 1 \text{ and } au \equiv av \equiv b (\mod m) \Rightarrow u \not \equiv v (\mod m) \end{equation} Can anyone help me with how to prove the converse ?

I know that there exists at least one solution, because $ax \equiv b \mod m \implies ax - b = qm$  Rearranging terms gives $ax - qm = b$, and since $d | a$ and $d | m$, so $d | b$ it can be said that $b \equiv 0 \mod d$.  I implemented Euclid's extended algorithm and have been able to experimentally verify that the claim holds, but I do not see a pattern or how I can begin to show there are exactly $d$ solutions.  def euclid_extended(x, y, i=0):   if y == 0:     print("iteration {0} returns ({1}, {2}, {3}) - base case hit with ({4}, {5})".format(i, x, 1, 0, x, y))     return (x, 1, 0)   else:     (d, a, b) = euclid_extended(y, x % y, i + 1)     print("iteration {0}. ({4}, {5}) => ({1}, {2}, {3})".format(i, d, b, a - b * (x//y), x, y))     return (d, b, a - b * (x//y))


I have submitted a paper in an Elsevier journal. The paper has gone through the "Under Review" stage and was subsequently given the status "Under Editor Evaluation".  The paper is now back to "Under Review". What does this mean in practice?  This is not a duplicate question. I am aware of the journal workflow. This is a specific question about a particular scenario.

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.


I'm new to Blender. I want to insert character animation in a live-action video. I downloaded a simple rigged 3D figure, and created a keyframe animation. Now, what I'd like to do is to export that short animation sequence, so I can insert it into my motion-tracked video. Now, how can I export then import that animated figure coughing, and then insert it into the video and duplicate it? EDIT: Problem solved. I KNEW this was a simple fix.. All I needed to do was to save the file, then go into the file (that I wanted to IMPORT the animation into), then use "append" to import the object from that Blender file. It kept the animation and model intact, and now I have the little dude coughing on my 3D tracked video! huzzah.

I have created several designs for a particular project and they are related, but I don't want to have to keep recreating any similar elements, such as shared materials or textures.  How can I use the existing data in a new Blender file?