Find queries appear automatically in the find fields for other applications

After years on a much older version of Mac OS, I'm now on v. 10.13.2, and I observe strange behavior when I use find functionality, in various applications.   If I search for some string in one application, when I open the search interface in another application, the same string auto-populates the search field.  It happens even when the search string is not in the clipboard, so it isn't just that the clipboard is autopasting — there's an actual transfer of the search string across applications. Affected applications include current versions of BBEdit, NisusWriter, Chrome, Firefox, the built-in Dictionary, Terminal — so I assume it's happening at the level of the operating system.  This is intrusive and unwelcome default behavior, and I'd like to know how to turn it off. I see some unanswered questions about the same issue here and there (for instance, , ).


Why 'sort' in bash gives different ouputs in different machines?

I tried command 'sort' in two virtual machines, but one gave all upper-case words before all lower-case words, and another sort in an ignore-case way.  Not ignore case:  [@sjs_100_189 tanglianrui]# sort test.txt  A T a b t   Ignore case:  [@sjs_88_171 sortedOutput]# sort -f test.txt  a A c t T   I'd like to know if there is a config file controlling the behavior of sort? If so, which one is it and how to config it? Thank you so much.


Do GBA cartridge batteries run dry after some time?

Do Game Boy Advance cartridge batteries run dry after some amount of time, like GBC/GB games do? I got ton of games, the only save files I would miss are the ones from RPG games, and maybe some platformers. Would this happen after some time?


My method keeps returning 0. Can someone help me find why the GPA will not properly compute?  public static double getGPA(String a) {     double value = 0;     double sum = 0;     for(int i = 0; i<a.length(); i++)     {         String grade = a.substring(i,i+1);         if(grade == "A") value = 4;         if(grade == "B") value = 3;         if(grade == "C") value = 2;         if(grade == "D") value = 1;         if(grade == "F") value = 0;         sum += value;     }     return sum/(a.length()+1); }


ASCII characters in an image steganography

Given an image size of 300 by 400, what is the maximum number of ASCII characters (7 bits) that can be embedded using the LSB steganography?   I would assume that every pixel can perform an LSB so would that mean 300x400 bits change? I should then divide this by 7?  I'm confused about how this works. Could you elaborate?


Newer/smaller laptops are giving "No Wi-Fi Adapter Found" message

I have one older 15-inch laptop (HP Notebook) and two newer 14-inch laptops (Lenovo Ideapad and HP Pavilion). The same thing is happening when I use Ubuntu on the two newer ones, but not on the older one.  There's no wifi icon, and when I go to the wifi settings I get this message: "No Wi-Fi Adapter Found. Make sure you have a Wi-Fi adapter plugged and turned on".  I actually installed Ubuntu on the Lenovo, but I only chose the "try Ubuntu" option with the other two. I tried it with the two most recent versions, 18.04.2 LTS and 19.04, with the same effect.  I'm surprised that this problem seems rare, as I couldn't find anything very helpful online.  seems the closest to my problem, and it suggests reinstalling a kernel, but without internet, I'm obviously getting network errors in my terminal. The two problematic computers unfortunately don't have ethernet ports either, so I have no idea what to do..  Here's the output to sudo lshw -class network (hopefully it's the relevant wireless card info):     *-network UNCLAIMED   description: Network controller   product: Realtek Semiconductor Co., Ltd.   Vendor: Realtek Semiconductor Co., Ltd.   physical id: 0   bus info: pci@0000:02:00.0   version: 00   width: 64 bits   clock: 33 MHz   capabilities: pm msi pciexpress cap_list   configuration: latency=0   resources: ioport:2000(size=256) memory:c0700000-c070ffff     Output of "lspci -v":  02:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device b822   Subsystem: Lenovo Device b023   Flags: fast devsel, IRQ 255   I/O ports at 2000 [size=256]   Memory at c0700000 (64-bit, non-prefetchable) [size=64K]   Capabilities: <access denied>   Kernel modules: r8822be


How can I calculate the result of the limit of this sequence $A_{n}$?

Find $\lim_{n \rightarrow \infty} A_{n}$, where $A_{n}=\frac{1}{n+1}+\frac{1}{n+2}+ \cdots +\frac{1}{2n}$ with $n \in \mathbb{N}$. Intuitively, I thought this limit might be zero, nerverthess it isn't. I found in a book (Calculus, Spivak) that this limit can be seen like upper sums and lower sums. The answer of the problem is that: $\lim_{n \rightarrow \infty} A_{n}= \int_{0}^{1}\frac{1}{1+x}dx=log(2)$ But I still don't understand how to achieve this result, and how the upper sums and lower sums are involved in the limit of that sequence. Please help me to understand.


Motivation for not using virtual functions

I hope this question is not too vague, but coming from java, I can not think of any reason why I would use non-virtual functions in C++.  Is there a nice example which demonstrates the benefit of non-virtual functions in C++.


I would like the whitespace between two items within a table to be filled with dots.  Please consider the following picture to get the idea.    So far I tried to achieve this output with the following sequence.  %!TEX TS-program = xelatex %!TEX encoding = UTF-8 Unicode \documentclass[10pt]{article} \usepackage{booktabs}  \begin{document}  \begin{table}[!htbp]  \begin{tabular}{lrrr}         \toprule     Anzahl & Behandlungstyp & Einzelpreis & Gesamtpreis\\         \midrule     10\dotfill& Manuelle Therapie\dotfill & €32,63\dotfill & €326,30\\     10\dotfill &Krankengymastik\dotfill &€26,93\dotfill &€269,30\\         \bottomrule     \end{tabular}  \end{table}  \end{document}   This, however, yields an unsatisfactory output, where undotted gaps are left over.   How to achieve a continuous dotted line without white spaces like in the first picture?


Why does this process generate the factorial of the exponent?

Consider the process of taking a series of numbers and constructing a new series consisting of the difference between consecutive terms, and repeating this until a constant is reached:  $$2,8,18,32,50\\6,10,14,18\\4,4,4$$  When this process is applied to sequences of the form $f(n) = n^a$, the constant reached seems to always be $a!$:  $$1,2,3\\1,1$$  $$1,4,9,16\\3,5,7\\2,2\\$$  $$1,8,27,64,125\\7,19,37,61\\12,18,24\\6,6$$  $$1,16,81,256,625,1296\\15,65,175,369,671\\50,110,194,302\\60,84,108\\24,24$$  Can it be proven?


I want to make a table like the following.    In particularly what does not satisfy me is that I wanted to incorporate \multirow so that `cell1,cell2,cell9,cell10' can be centered in between the merged rows....Is there anyway to fix it?  Below is my current Latex code.  \begin{center} \begin{tabular}{ |c|c|c|c|c| }  \hline       & $\Omega\in\mathscr{P}_k, f_0 \in \mathcal{P}_{m_{f_0}}$ & $\Omega\in\mathscr{P}_k,f_0\in \mathcal{C}(\Gamma)$ & $\Omega \in \mathscr{C}, f_0 \in \mathcal{P}_{m_{f_0}}$ & $\Omega\in \mathscr{C}, f_0 \in \mathcal{C}(\Gamma)$\\ \hline  $d=2$ & cell 1 & cell2 & cell3 & cell4\\  \cline{1-1} \cline{4-5} $d=3$ & cell 1 & cell2 & cell5 & cell6\\  \hline $d=4$ & cell7 & cell8 & cell9 & cell10\\  \cline{1-3} $d\geq 5$ & cell11 & cell12 & cell9 & cell10\\  \hline \end{tabular} \end{center}


html_entity_decode not working as expected

I am moving a PHP application to another server, and I have some issues with the character decoding:  Old server (CentOS with Plesk Panel):  echo htmlentities('ú'), ENT_QUOTES, 'UTF-8'); // Result &uacute; echo html_entity_decode('&uacute', ENT_QUOTES, 'UTF-8'); // Result ú <= expected   New server (Debian dedicated server, fresh install):  echo htmlentities('ú'), ENT_QUOTES, 'UTF-8'); // Result &uacute;     echo html_entity_decode('&uacute', ENT_QUOTES, 'UTF-8'); // Result Ãº <= not expected echo html_entity_decode('&uacute', ENT_QUOTES, 'ISO-8859-1'); // Result ú <= expected   Why is happening this? Maybe a server configuration problem?


First of all, I have to admit that I do not search my problem on the web because I don't know which keywords match with my issue. I have just a couple hour experience with java and I have came across with the following syntax:  public class Simulation extends JFrame {      // some fields...      public Simulation() {     ActionListener listener1 = new ActionListener() {                  @Override                 public void actionPerformed(ActionEvent arg0) {                     InputStream pauseStream;                     try {                         pauseStream = new FileInputStream("/pause.wav");                         PM = new AudioStream(pauseStream);                     } catch (Exception e) {                         e.printStackTrace();                     }                        setPause(!isPause());                     if(isPause()) {                         button1.setText("Play");                         MGP.stop(BGM);                         MGP.start(PM);                     } else {                         button1.setText("Pause");                         MGP.start(PM);                         MGP.start(BGM);                     }                   }             };     }        // other methods }   Unfortunately, I did not understand  meaning of the following line (I mean whether its function, class or something like that) ActionListener listener1=new ActionListener() { because, as I remember there is no correspondence in C or C++ .  If I'm not wrong, by ActionListener listener1=new ActionListener() should create an ActionListener instance but what is the code in following curly brackets ?


Can the Polearm feat plus the Sentinel feat stop someone from reaching you?

Let's assume we are talking about a character with both the Polearm Master and Sentinel feats wielding a reach weapon. If an enemy enters my reach, and I hit him using the Polearm master's second perk, would the Sentinel Feat's first perk make him stop 10' from me or would he stop at 5' from me?  I think it would, but it also does seem a little too good to be true: the ability to force an opponent to wait for a full turn before making an attack, unless he happens to have a reach weapon?  To highlight how overpowered it could be:  Fighter (Battlemaster) with the two feats in question and the Precision Attack maneuver wielding a halberd. Any single Opponent who uses melee attacks and doesn't have a long reach.  Opponent's turn:  Tries to come in range to hit me. OA from Polearm Master locks him down. If I miss, use Precision Attack to make it a hit. He can't use any attacks.  Other turns:  I (and any other melee teammates) all get to use all of our attacks, and then all step back to just 15 feet from him. The first person in initiative gets swung at by the enemy's OA, but everyone else is clear.  In single enemy encounters this allows an easy pass for quite a few of them, with little regard for their stats. In duel situations, it golden.  Feats for reference. Irrelevant parts not included.       Polearm Master         ...   While you are wielding a glaive, halberd, pike, or quarterstaff, other creatures provoke an opportunity attack from you when they enter your reach.           Sentinel Feat         When you hit a creature with an opportunity attack, the creature's speed become 0 for the rest of the turn.   ...   ...


Should student or supervisor be corresponding author for publications based on student research?

Papers published from an academic project (MSc or PhD) usually have two authors; the first author is the student who mainly conducted the research, and the second author is the professor who supervised the projects.  The corresponding author is the one who take the responsibility of a paper, and thus, some believe that students are not yet prepared to take this responsibility.  Ideally, who should be corresponding author for papers published by MSc or PhD projects?  I understand that it mainly depends on personal agreements and preferences, but I want to know which case is more reasonable from academic logic?


Why should I study measure theory as a mathematician?

I am learning measure theory and i know there are some reason for introducing measure theory. I just want to know the reason behind its invention.


Let $f$ be twice continuously differentiable on $[a,b]$. Assume that $f(a)=f'(a)=f(b)=f'(b)=0$. $M=\max_{[a,b]}|f''|$. Show that $|f(x)|\leq M/16(b-a)^2$, for any $x\in [a,b]$.  At first glance, we can use Taylor formula on $[a,(a+b)/2]$, but gives the coefficient $1/8$ instead of $1/16$.   $$f(x)=f(a)+f'(a)(x-a)+\int_a^x \int_a^t f''(s)ds dt$$ implies $$|f(x)|\leq M \int_a^x \int_a^t ds dt=\frac{(b-a)^2}{8}.$$  Can we prove $1/16$ as the problem states?


font-awesome icon not working with css opacity

Here is my fiddle:   A row gets appended like so:      var tr = $("
");      tr.append($("").text(name.first));     tr.append($("").text(name.last));     tr.append($("").text(name.username));     var cell = "	";      tr.append(cell);     //div=tr.append($("").addClass("table-action-hide"));     //div.innerHTML=cell;     tbody.append(tr);   On adding a row, the data gets added to the table but the fa-trash icon is either not visible (with opacity set to 0) or always visible (with opacity set to 1) on the added row.   Also the delete function does not get called on clicking the 'fa-trash' icon.   What is wrong with the attached code ?


If a laptop is on the overhead bin and some moderate/strong turbulence occurs, it is possible that the laptop "jumps" several centimeters.  How to protect the laptop from this?


How to play blu ray .mkv files on ubuntu 20.04 LTS?

How to play blu ray .mkv files on Linux? e.g:1080p.BluRay.DD5.1.x264-NTb.mkv


I would like to use the following code to make a nice table, but I'm irritated by the inability to make the footnote of the table look nicer. FYI, I have printed this code directly from Stata using esttab, just the way I like it, so I'm not concerned about the table per se, rather only with the footnote. Any thoughts? Thanks!  The issue is that my fourth column shifts too far to the right. If I make many rows in the footer of the table, I can solve this problem, but then it looks ridiculously long. I would like to try to space out these four columns more evenly, so that I can reduce the height of the footnote.  \begin{table}[htbp]\centering \footnotesize \def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi} \caption{Rural Determinants of Gold Expenditure Incidence: comparing Pooled OLS with FE and RE models} \begin{tabular}{l*{3}{c}} \hline\hline                     &\multicolumn{1}{c}{Pooled OLS}&\multicolumn{1}{c}{FE Model}&\multicolumn{1}{c}{RE Model}\\ \hline $MPCE_{nt}$           &       0.931\sym{**} &       0.883\sym{***}&       0.983\sym{***}\\                     &     (0.356)         &     (0.319)         &     (0.325)         \\ [1em] $MPCE^{2}_{nt}$       &      -0.017\sym{**} &      -0.018\sym{**} &      -0.017\sym{*}  \\                     &     (0.007)         &     (0.007)         &     (0.010)         \\ [1em] $MaleWage_{nt}$      &       0.520         &       0.479         &       0.670\sym{***}\\                     &     (0.450)         &     (0.332)         &     (0.233)         \\ [1em] $MaleWage^{2}_{nt}$   &      -0.008         &      -0.008         &      -0.010\sym{***}\\                     &     (0.006)         &     (0.005)         &     (0.004)         \\ [1em] $FemaleWage_{nt}$     &      -1.794\sym{***}&      -1.418\sym{***}&      -1.513\sym{***}\\                     &     (0.465)         &     (0.424)         &     (0.397)         \\ [1em] $FemaleWage^{2}_{nt}$ &       0.061\sym{***}&       0.051\sym{***}&       0.060\sym{***}\\                     &     (0.014)         &     (0.014)         &     (0.016)         \\ \hline Observations        &         264         &         264         &         264         \\ $R^2$                  &       0.768         &       0.113         &                     \\ \hline\hline \multicolumn{4}{l}{Note: Dependent variable is $IncidenceGold_{nt}$ in every} \\ \multicolumn{4}{l}{estimation. The agricultural controls which have been used thus far,} \\ \multicolumn{4}{l}{i.e., $Output_{nt}$, $Foodprice_{nt}$, $Rainfall_{nt}$, and} \\ \multicolumn{4}{l}{$Rainfall_{nt-1}$, have been included, but are not reported.} \\ \multicolumn{4}{l}{Heteroskedastic and Autocorrelation Consistent (HAC) robust standard} \\ \multicolumn{4}{l}{errors are clustered at the district level and reported in the} \\ \multicolumn{4}{l}{parentheses. * p<0.10, ** p<0.05, and *** p<0.01}\\ \end{tabular} \end{table}


Tension when two connected blocks are pulled in opposite directions

Suppose there exist two blocks A and B connected by a massless, inextensible cord. Both A and B have equal masses and are acted upon by equal forces in opposite directions. So, is the tension in the string the sum of the two forces, the resultant of the two forces or something else?        <-F--  A _________ CORD__________B   --F->


Why is the output from `groups` different from `groups user` if Im currently logged in as user?

Im not sure why the following have different output. My understanding is that groups without specifying a user give all the groups the currently logged in user is a member of.  jacob@box:~$ groups jacob adm lp dialout cdrom plugdev lpadmin sambashare  jacob@box:~$ groups jacob jacob : jacob   Also what does it mean "groups of the current process" (from the groups man page)? Where are they set up?  NOTE: My distro is Ubuntu.


I have 3 Associate in Applied Science Degrees (Accounting, Legal Secretary, and Information Processing) and also a Microsoft Office Specialist (MOS) certification. How can I properly acknowledge my degrees and certification in my professional email signature?


compare two columns of different files and print if it matches

I am using Solaris 10 and so grep options involving -f don't work.  I have two pipe-separated files:   file1:  abc|123|BNY|apple| cab|234|cyx|orange| def|kumar|pki|bird|   file 2:   abc|123| kumar|pki| cab|234   I would like to compare the first two columns of file2 with file1 (search through the entire contents of file1 in first two columns) if they match print the matched line of file1. Then search for the second line of file 2 and so on.   Expected Output:  abc|123|BNY|apple| cab|234|cyx|orange|   The files I have are huge, containing about 400,000 lines, so I would like to make the execution fast.


If $Q$ is a proper orthogonal transformation matrix, deduce that $\det(1-Q)=0$.

Show that if $Q$ is orthogonal transformation matrix, then $Q^t(Q-1)=(1-Q)^t$. Deduce that if $Q$ is also proper, then $\det(1-Q)=0$. Hence show that transformation has nonzero vector that has the same components in both coordinate system.    I tried to solve this problem.I think I got the first part right,   $$Q^t(Q -1)= Q^t  Q- Q^t=1- Q^t=(1- Q)^t$$  The second part,   $$-Q ^t(1-Q)=(1-Q)^t$$  $$\det(-Q^t)\det(1-Q)=\det((1-Q)^t$$  $$(-1)^n\det(Q)\det(1-Q)=\det((1-Q)^t)$$  since the orthogonal matrix is proper which means $\det(Q)=1$ and for any matrix, its determinant equals the determinant of its transpose.  $$(-1)^n\det(1-Q)=\det(1-Q)$$  So, it's always true for $\det(1-Q)=0$  But that's not what the question asks. I haven't done linear algebra for a while and I am not sure from the concepts I used, so I would be glad if you clarify any mistake I made.


What's the opposite of oxymoron? That is, two words put together that seem identical?


How can I set up incremental backups to include my themes and customisation on Ubuntu 18.04?

How can I back up my whole system and be able to restore perfectly to where I was? I have installed some nice themes and customized quite a few things (graphically) and wouldn't want to repeat this process if I need to re-install. I guess my question is, do I have to only backup the home folder or do I have to do the whole system root folder. Many topics have advised not to backup the root folder but has let me confused. I have no problem installing Ubuntu from scratch again and importing my home folder, as long as it gives me everything back in terms of the UI and custom themes etc. I am not fussed about the actual data such as Documents, Videos etc. I have alternative methods for these via cloud based solutions. Also, I have some commands in fstab but not sure this is stored in the home directory as well? My idea was to use rsync and use sudo rsync -aAXv --delete --exclude=/dev/* --exclude=/proc/*    --exclude=/sys/* --exclude=/tmp/* --exclude=/run/* --exclude=/mnt/*    --exclude=/media/* --exclude="swapfile" --exclude="lost+found"    --exclude=".cache" --exclude="Downloads" --exclude=".VirtualBoxVMs"    --exclude=".ecryptfs"  Then set up a cron to schedule this. Can you help?


Why would jQuery selectors stop working when moving between pages of table

My jQuery works great on the initial load of my Bootstrap Table. However, after paging forward or back it stops working even though the elements haven't changed and haven't been removed. Why?  Here is my jQuery  $(document).ready(function() {   $(function(){     $(".fresh-credit-update-button").click(function(){       console.log("clicking");       var customerId = $(this).parent().siblings(".fresh-credit-update-data").attr('id');       var customerCreditUpdateField = $(this).parent().siblings(".fresh-credit-update-data");       var customerCreditUpdate = customerCreditUpdateField.html('value').val();       $.ajax({           url: "/customers/update",           data: {id: customerId, credit_amount: customerCreditUpdate},           type: "POST",           dataType: "json",           complete: function(data) {             console.log(data.responseJSON.credit_amount);             customerCreditUpdateField.val("$" + data.responseJSON.credit_amount);           },       }); //ajax     }); // button click   }); // 2nd function }); // document ready   And then here is the table its watching
 <% @all_customers.each do |individual| %>
         	         <%= "#{individual.first_name} #{individual.last_name}" %>
             <input type="text" id="<%= individual.id %>" class="fresh-credit-update-data form-control small-field" value=<%= number_to_currency(individual.credit_amount) %>>                            <button class="btn btn-med fresh-credit-update-button" type="button">Update</button>
         	         <%= number_to_currency(individual.pending_credit_amount) %>	         <%= individual.email %>	         <%= individual.accepts_marketing %>	         <%= individual.customer_status  %>	         <%= individual.tags  %>
 <% end %>


$\{E_\alpha\}_{\alpha\in A}\ ,\ E_\alpha\subset E\subset\mathbb{R}$ where $A$ is an index set (may be uncountable)  is a condition for the axiom of choice in my lecture notes, along with $E_\alpha\cap E_\beta=\emptyset$ if $\alpha\ne\beta$  Why can't we simply write $\{E_\alpha\}_{\alpha\in A}\ ,\ E_\alpha\subset\mathbb{R}$ instead? Cause for any collection of $E_\alpha$'s their union contains them all and is a subset of $\mathbb{R}$  Just for context, our version of the axiom of choice concludes by saying that $\exists V$ that contains one and only one element from each $E_\alpha$


I'm going to play a Monk character soon and I'm stuck a little bit with choosing a proper name for him. The character is calm, considered, has a buddhist type personality. I'm looking for a (probably chinese) name for him what is sounds "cool", but also have a meaning related to his attributes.  Could you give me some examples to choose from or a good source to look at?


How to play YouTube videos in VLC Player?

I am wanted to play YouTube videos through VLC Player, so I launched VLC Player and did "Open Location from clipboard", but when trying to get it to play  I just get this error:  Your input can't be opened: VLC is unable to open the MRL 'https://r3---sn-aigllnz7.googlevideo.com/videoplayback?initcwndbps=1542500&ip=82.68.87.54&key=yt6&mm=31&mn=sn-aigllnz7&gcr=gb&mv=m&id=o-AH9ajBwPvx0EAxQ6L2DcUcI_TSBAnjN7Hh6VIBGzdF7r&ms=au&source=youtube&lmt=1431931684487017&dur=250.009&sver=3&mime=video%2Fmp4&fexp=9408710%2C9414764%2C9416126%2C9416985%2C9417655%2C9417683%2C9418203%2C9419837%2C9420453%2C9421252%2C9421710%2C9422436%2C9422596%2C9422618%2C9422990%2C9423299%2C9423392%2C9423510%2C9423662%2C9423665%2C9423791%2C9424192&itag=22&upn=Pf3jNimMyMo&nh=IgpwcjAyLmxocjE0KgkxMjcuMC4wLjE&pl=22&requiressl=yes&mt=1447701954&ipbits=0&ratebypass=yes&sparams=dur%2Cgcr%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cnh%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&expire=1447723621&signature=33FD8D2110F931A28926207650A21F4FD60DBFEC6.DA4C9EC72BA62AF043526206B5113CCCF840630B'. Check the log for details.   And this output in Terminal:  VLC media player 2.2.1 Terry Pratchett (Weatherwax) (revision 2.2.1-0-ga425c42) [00000000022ab148] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. [00007f287c031138] lua demux error: Couldn't process youtube video URL, please check for updates to this script [0000000002393d88] core playlist: stopping playback [00007f287c000bf8] http access error: error: HTTP/1.1 403 Forbidden [00007f287c000bf8] http access error: error: HTTP/1.1 403 Forbidden [00007f2880006288] core input error: open of `https://r3---sn-aigllnz7.googlevideo.com/videoplayback?initcwndbps=1542500&ip=82.68.87.54&key=yt6&mm=31&mn=sn-aigllnz7&gcr=gb&mv=m&id=o-AH9ajBwPvx0EAxQ6L2DcUcI_TSBAnjN7Hh6VIBGzdF7r&ms=au&source=youtube&lmt=1431931684487017&dur=250.009&sver=3&mime=video%2Fmp4&fexp=9408710%2C9414764%2C9416126%2C9416985%2C9417655%2C9417683%2C9418203%2C9419837%2C9420453%2C9421252%2C9421710%2C9422436%2C9422596%2C9422618%2C9422990%2C9423299%2C9423392%2C9423510%2C9423662%2C9423665%2C9423791%2C9424192&itag=22&upn=Pf3jNimMyMo&nh=IgpwcjAyLmxocjE0KgkxMjcuMC4wLjE&pl=22&requiressl=yes&mt=1447701954&ipbits=0&ratebypass=yes&sparams=dur%2Cgcr%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cnh%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&expire=1447723621&signature=33FD8D2110F931A28926207650A21F4FD60DBFEC6.DA4C9EC72BA62AF043526206B5113CCCF840630B' failed   So how do I play YouTube videos in VLC Player? Or don’t I? I mean, I know you can download YouTube videos using it, so why not play them?    OS Information:  No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 15.10 Release:    15.10 Codename:   wily Flavour: GNOME GNOME Version: 3.18   Package Information:  vlc:   Installed: 2.2.1-3   Candidate: 2.2.1-3   Version table:  *** 2.2.1-3 0         500 http://archive.ubuntu.com/ubuntu/ wily/universe amd64 Packages         100 /var/lib/dpkg/status


How to disable automatic launcher icons for external drives?

I was wonder if there was a way to disable automatic launcher icons for external drives.  I plug my externals in, and immediately have to close the windows that pop up and remove the icons from the Unity Launcher.  Is there a way to disable this process and to also access my externals from the nautilus icon instead of individual icons for the externals?


"It was recommended that" + verb in present tense

It was recommended that the international development partners develop guidelines or a roadmap to help countries take the necessary steps to select the right tool for their purposes.   Why is it using present tense "develop" in the sentence which is actually a past tense "It was recommended"?


What part of speech is the word 'to' used before verb infinitives?

E.g. to write, to ask, to come and so on. Can it be considered a preposition in this situation? I know many languages allow prepositions before verbs. If it isn't a preposition, then I wonder what part of speech it can be.


Search tags in mobile version not working at all

In mobile version:   open  on any Stack Exchange site press search icon type anything type enter (or suitable sign on mobile keyboard)   Then displayed tags will not changed at all:


Why does ice melting not change the water level in a container?

I have read the explanation for this in several textbooks, but I am struggling to understand it via Archimedes' principle. If someone can clarify with a diagram or something so I can understand or a clear equation explanation that would be great.


Given a complete graph, what is the maximum number of triangles that have no edges the same?  For example, two triangles that have a coinciding edge don't work (note that intersecting is fine).   For example, if we have a complete graph with 6 vertices labeled 1-6 clockwise, the two triangles determined by vertices 1, 3, 4 and vertices 1, 5, 6 are okay but the two triangles determined by vertices 2, 3, 4 and vertices 3, 4, 5 are not because the 4-5 edge coincides. Any help would be appreciated!


Find pdf for minimum of 4 random variables

Let $X_1, X_2, X_3$,and $X_4$ be four mutually independent random   variables, each with p.d.f. $$f(x) = 3(1-x)^2\quad   \mathbb{I}_{(0,1)}(x)$$If $Y$ is the minimum of these four variables,   find the p.d.f. and c.d.f. of $Y$.   So far I have: \begin{align} P(Y \le y) &= P(\min(X_1,X_2,X_3,X_4) \le y)  \\[5pt]     &=1- P(y\le X_1, y\le X_2, y\le X_3, y\le X_4)  \\[5pt]     &=1-P(y\le X_1)P(y\le X_2)P(y\le X_3)P(y\le X_4) \tag{independence}  \\[5pt]     &=1-\bigg(\int^1_y f(x_1)dx\bigg)\bigg(\int^1_y f(x_2)dx\bigg)\bigg(\int^1_y f(x_2)dx\bigg)\bigg(\int^1_y f(x_2)dx\bigg) \end{align} And then I get stuck. I'm not even totally sure that is correct.   If anyone just has a written explanation, that would really help as I'm not entirely sure exactly what my goal is with this problem.


To all experienced theoretical physicists out there, what is the step by step process in your math education?

I am not doing a physics degree but an engineering degree but i am planning using my free time to self study all the math in preparing myself to self study subjects in theoretical physics. (I've always wanted to do theoretical physics but there are no scholarships offered in my country for the subject and my family is not rich so I had no choice but to self study)   By "self studying" I mean buying books and reading online materials on my own and try to understand everything I can.  So far this is my plan,   Analytic geometry -> Single Variable Calculus -> Advanced Calculus (basic Linear algebra + multivariable and vector calculus) -> Linear Algebra -> ODEs -> but here I am stuck as to where do I go from here?   Well first of all is this plan okay? If it is : how do I continue? Should I continue to real and complex analysis and do more things from pure math? Or should I just stick to the more computational part of math and learn more advanced techniques in solving differential equations or learn more algebraic techniques? How about geometry? Topology? Group theory and more things from pure Math?   If its not : what is the better way of doing it? Should I learn all the basic math first before reading Goldstein's classical mechanics ? Or should I just start with the physics and just pick up the math along the way?   And I also have the time issues to worry about how I wish I can just do a physics degree but unfortunately things don't always go your way. Due to imminent time constriants (engineering has lots of projects im sure) i would like my self study and learning to be as efficient as possible. Hence good advice from all experienced physicists would be very much helpful. Thanks in advance.


Why does the definition of a limit of a function not appear in textbooks on general topology?

Surely, continuity is a very basic topological concept.  But I don’t recall any explicit definition of limit of a function as we find in calculus.  I think it is incorrect to mark this question as a duplicate.  The cited other question asks for sources of where limit has been defined in topology.  I ask why limit of a function is not usually defined.  Indeed, Noah’s answer addresses this question.


Let me tell the story from the beginning: I installed Big Sur on an unsupported Mac using guidelines at Medium. In the guide it was stated that I should create a separate partition for Big Sur, and shouldn't install it on my current one. I had my SSD Called "Macintosh SSD" and later I created a partition named "Macintosh SSD Big Sur" of size 40GBs. After installation I wanted to clear the "Macintosh SSD" of size 80GBs(with old MacOS) and merge it with the new "Macintosh SSD Big Sur". This is what I initially had after formatting partition with the old MacOS  So, I used the command sudo diskutil apfs deleteContainer disk3 after which I had (free space) in /dev/disk1  I want to extend that 39.6GB partition which free space of 80,1GB but all the commands I googled do not work:(( Could you please guide me on what I should do now? Thank you in advance!


The sentence below:     Our method cannot achieve 100 percent accuracy as compared to DART method due to the imprecise modeling.    Why does the sentence above use as compared to? Can we use as compare to instead?


Space is expanding so what is time doing?

Space is expanding and as we know space and time are intrinsically linked to be now known as spacetime.  What is happening to time during expansion? Is there more time, longer time or is the time part not affected at all by expansion?


Losing internet connection intermittently

Recently I've been experiencing my internet connection being lost. The yellow triangle signals no internet connection and then picks it up again after a couple of seconds. It could be that it's been doing this for some time. I first noticed it after I started playing an MMORPG, and it annoys the hell out of me every time it happens. The intervals range from 5-45 minutes. When streaming/downloading it occurs more frequently. Sometimes it doesn't even pick up the connection and just refuses to cooperate.  I've got a web server running, but it shouldn't affect my connection. At least it didn't on Windows XP.   I've got a static IP address. I've tried letting it dynamically get the IP address but that doesn't make any difference.  At one point, I thought it could be that the modem/router got overheated or something.  So, I turned it off for a day to see if it would help. It didn't.  I removed the router out of the equation and put the cable directly into the modem.  That did seem to work, but my web server stopped working.  I'm at wits end here...    Relevant specs:              OS: Windows 7 Professional         Modem: Netgear DM111P        Router: Netgear WGR614 v7, software up to date Networks card: Realtek PCIe GBE Family Controller, all drivers up to date           ISP: Bredbandsbolaget (Sweden)   Analysis from the university of Berkeley's website Networks analyzer reported the following problems:  Direct probing of DNS resolvers (?) –     Your system is configured to use 1 DNS resolver(s).     The resolver at 192.168.1.1 (ns6.bredband.com) could not process the following tested types:          Medium (~1300B) TXT records         Large (~3000B) TXT records         Large (~3000B) TXT records fetched with EDNS0      It validates DNSSEC. It does not wildcard NXDOMAIN errors. The resolver reports a number of additional properties. Hide them.          Hostname: ns6.bredband.com         Version: Telenor DNS


Can anyone explain the difference between a ring, a group, and a field in a way so that your average 15 year old can understand?

I can not understand key difference between them, because all on the web uses mathematical notations...Can anyone explain in easy way?...please.Thanks in advance.


Is `if(CONSTANT) { ... }` optimized in C/C++?

Do modern compilers optimize a piece of code like if(CONSTANT) { ... }, where CONSTANT is a literal, template argument, const variable or constexpr variable? Do they remove the whole if(0) { ... } expression or "throw out" the if(1) part in if(1) { ... }?


TikZ: Problem with relative node positions for "big" nodes

I want to place two nodes besides each other, using TikZs right of= placement. But if the first node is two broad, like in the minimum example below, this does not work right. How can I make TikZ recognize the correct placement for the second node? EXAMPLE: \documentclass{standalone}  \usepackage{tikz}  \begin{document}  \begin{tikzpicture}     \node [] (a) {AAAAAAAAAAAA};     \node [right of=a] (b) {B}; \end{tikzpicture}  \end{document}  OUTPUT:  Thank you very much.


Protecting against "-" symbol in filenames

This question is loosely related to . The basic idea is that OP had - in filename which broke ls *.vcf. What happened is clearly understood, but the question is then, how could one 'protect'  or anticipate such filenames with the wildcard expansion ? I know one could use find , but what about wildcard expansion in shell specifically ?


How prove this inequality $\frac{a}{b+3}+\frac{b}{c+3}+\frac{c}{d+3}+\frac{d}{a+3}\le 1$

Question:  let $a,b,c,d\ge 0$,such $$a^2+b^2+c^2+d^2=4$$ show that $$\dfrac{a}{b+3}+\dfrac{b}{c+3}+\dfrac{c}{d+3}+\dfrac{d}{a+3}\le 1$$  My try: By Cauchy-Schwarz inequality,we have $$\sum_{cyc}\dfrac{a}{b+3}\le\sqrt{(\sum_{cyc}a^2)\left(\sum_{cyc}\dfrac{1}{(b+3)^2}\right)}$$ then we have only prove this $$\sum_{cyc}\dfrac{1}{(a+3)^2}\le \dfrac{1}{4}?$$ This is  not true,in fact, we have $$\sum_{cyc}\dfrac{1}{(a+3)^2}\ge \dfrac{1}{4}?$$ because we have $$\dfrac{1}{(a+3)^2}\ge\dfrac{5-a^2}{64}$$ this is true because $$\Longleftrightarrow \dfrac{(a-1)^2(a^2+8a+19)}{64(a+3)^2}\ge 0$$ so $$\sum_{cyc}\dfrac{1}{(a+3)^2}\ge\sum_{cyc}\dfrac{5-a^2}{64}=\dfrac{1}{4}$$ can see:  This methods is from: can  see:  By the way I have see this three variable inequality  let $a,b,c$ be non-negative numbers such that $$a^2+b^2+c^2=3$$  show that $$\dfrac{a}{b+2}+\dfrac{b}{c+2}+\dfrac{c}{a+2}\le 1$$  proof: By expanding,the inequality becomes $$ab^2+bc^2+ca^2\le abc+2$$ without loss of generality,assume that  $$\min(a,b,c)\le b\max(a,b,c)$$ then \begin{align*} 2-ab^2-bc^2-ca^2+abc&=2-ab^2-b(3-a^2-b^2)-ca^2+abc\\ &=(b^3-3b+2)-a(b^2-ab+ca-bc)\\ &=(b-1)^2(b+2)-a(b-a)(b-c)\ge 0 \end{align*} Equality occurs for $(a,b,c)=(1,1,1)$ and also for $(a,b,c)=(0,1,\sqrt{2})$ or any cyclic permutation.  so my Four-inequality  variable inequality,can use this methods $$\dfrac{a}{b+3}+\dfrac{b}{c+3}+\dfrac{c}{d+3}+\dfrac{d}{a+3}\le 1$$ $$\Longleftrightarrow a^2cd+3a^2c+3a^2d+9a^2+ab^2d+3ab^2+abc^2-abcd+3ac^2+9ac+3b^2d+9b^2+3bc^2+bcd^2+3bd^2+9bd+9c^2+3cd^2+9d^2-81\le 0$$ $$\Longleftrightarrow a^2cd+3a^2c+3a^2d+ab^2d+3ab^2+abc^2+3ac^2+9ac+3b^2d+3bc^2+bcd^2+3bd^2+9bd+3cd^2\le 45$$ $$\Longleftrightarrow a^2(cd+3c+3d)+ab^2d+3ab^2+abc^2+3ac^2+9ac+3b^2d+3bc^2+bcd^2+3bd^2+9bd+3cd^2\le 45$$ $$\Longleftrightarrow (4-b^2-c^2-d^2)(cd+3c+3d)+ab^2d+3ab^2+abc^2+3ac^2+9ac+3b^2d+3bc^2+bcd^2+3bd^2+9bd+3cd^2\le 45$$  Then  I can't  Thank you  very  much


lists don't clear for some reason even though it's written correctly

//clearing lists function resetLists() {  var finalColor = [];  var finalDiet = [];  var finalConservationStatues = [];  var finalScientificName = [];  var finalName = []; }  this should be clearing/resetting the lists but it doesn't when called on in the program.I have tried calling the function in different parts of the program  but it still doesn't work


Built-in Kernel logo not displaying despite me specifically compiling it to do so

Hello fellow Ubuntu users, I'm in a bit of a situation here where I cannot make the Kernel's built-in penguin logo display on top of the boot messages. I don't understand why because I compiled and installed a customized kernel with that specific option enabled and I can confirm it in uname -r. I saw something about framebuffers on what is seemingly the only other forum post on earth about this, from 2011. I couldn't really make sense of the link that the guy posted because it redirected to an Arch Linux wiki page with instructions that do not work for me (big surprise Arch isn't Debian wow).  Example: pic    Thank you in advance.  Edit: I run Ubuntu MATE 20.04 LTS, I have Plymouth disabled and want to use the feature built into the Kernel.  Edit 2: Yes I have the correct settings on in the config and I have seen that post. In fact, it's the one I'm referencing to not have helped me all that much. I'll check Gentoo wiki. Here's my config:  CONFIG_LOGO=y # CONFIG_LOGO_LINUX_MONO is not set # CONFIG_LOGO_LINUX_VGA16 is not set CONFIG_LOGO_LINUX_CLUT224=y   I obviously chose the 224-color one.


I want to search through the answers to my questions. How can I do this?  For example:  votes:10 is:answer questionBy:me   I searched meta for this already, and found a ton of questions about searching my own questions, but not about searching answers to my quesitons.


No network interfaces detected when installing Ubuntu Server on Mac Mini

I have a new Mac Mini (MacMini6,1 late 2012) that I would like to install Ubuntu Server 13.04 (ubuntu-13.04-server-amd64+mac.iso) on. But it seems like Ubuntu Server isn't able to detect my network interface, because I get the message:     No network interfaces detected   How can I fix this issue? Is there any module or driver that I can add for this?    I have now tried to install Ubuntu Server with the build-essentials package and downloaded source to the tg3-driver as suggested in the answers. But when compiling (with the make command) I get errors:  ... cc1: some warnings being treated as errors make[2]: *** [/home/jonas/tg3-3.129d/tg3.o] Error 1 make[1]: *** [_module_/home/jonas/tg3-3.129d] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-19-generic` make: *** [default] Error 2   Any suggestions?


Why use the double cover instead of the universal cover of $SO(2)$?

In QM, we are generally looking for projective representations of the underlying symmetry group (because of Wigner's theorem). So generally, we should be looking for representations of central extensions of the universal covering group, according to Bargmann. In the case of $SO(n)$ with $n>2$, the universal covering groups happen to coincide with the double coverings. However, for $SO(2)$, this is not the case. Why are we still interested only in the double cover in the case of $SO(2)$ and not in its universal cover? EDIT: To be more specific, let me restrict the question to the case of the $\mathrm{Spin}(2)$ group: Why is this group defined this way and not as the universal cover of $SO(2)$? Is there any physical reason to consider the double cover instead of the universal cover? It seems like this definition potentially excludes interesting physics from consideration.


Getting a reference of an already running session of ArcMap with ArcObjects/C#

I'm new to both C# and ArcObjects and I want to get the layers on a currently opened document, which I've done via:  IApplication app = ???; IMxDocument doc = (IMxDocument) app.Document; IEnumLayer layers = doc.FocusMap.Layers;   I have figured out how to get IApplication app if the program opens ArcMap itself[1] or if it's an ArcMap AddIn[2].   I've been trying to figure out how to reference an already running ArcMap document with a stand alone program but have come up empty handed. Is this possible?  [1]  [2] IApplication app = ArcMap.Application;


How do I find the position of a cursor in a text box? C#

I have a standard WinForms TextBox and I want to insert text at the cursor's position in the text. How can I get the cursor's position?  Thanks


What is the process that causes a collapsing star to bounce back?

Can someone explain the process by where a star collapses and bounces back.  I haven't been able to find a good explanation of the bounce. Edit here, I was wondering specifically where the energy of the bounce comes from.  It seems like the mass must decrease in proportion, or the energy must have beens stored some other way. I guess the mechanism is not completely understood, or I would ask that question.


Express the negation of the statement limit

Express the negation of the statement:   $ \forall \epsilon >0 , \exists \delta>0 , \forall x , 0 <|x-a| <\delta \Rightarrow |f(x)-a| <\epsilon \ $  Answer:  The negation is-  $ \exists \epsilon >0 , \forall \delta>0 , \exists x , 0 <|x-a| <\delta \Rightarrow |f(x)-a| > \epsilon \ $  Am I right?


How do I get this Mathematical Symbol in Latex?

I am doing a project report and there is a certain kind of relation that I want to express between two quantities A and B. The relation is something like "A is neither greater than or less than B" (These two quantities are not numbers, they are kind of valuation profiles that I need in my project). Anyways, I wanted to create a symbol to denote this relationship. Something like the image attached. Can anyone please help in creating it. (Or let me know if such a symbol already exists). Thank You..


Proof that $a^x$ is the only solution of $f(x+y)=f(x)f(y)$

Obviously $a^x$ is a solution of $f(x+y)=f(x)f(y)$. But how do I prove that it is the only solution of that functional equation (apart from $f(x)=0$ or $f(x)=1$)


Installing .zip packages with the MiKTeX package manager from a local repository

I'm in a network where I have to use local package repository. I would like to add some packages to this repository so that all computers using this repository can install it via the MiKTeX package manager. It seems to work fine with some packages, but .zip-packages are not listed in the MiKTeX package manager, even though they are copied to the local repository directory.  The specific packages are from texample:       How can I make the package manager listing these packages from my local directory?


How to make path for java to read input.txt file?

I trying to read a file, but I always get a NullPointerException. Somebody know what may be the problem? I get NullPointerException at java.io.Reader, java.io.BufferedReader, at elte.hu.eltecom.file.FileManager.readGraph and at elte.hu.eltecom.Main.main  Main:  public static void main(String[] args) {  //   if (args.length == 0) return;      FileManager fm = new FileManager();     Manager manager;     manager = fm.readGraph("szia");     User user = manager.getUserById(3);      if  (user instanceof AdminUser){         ((AdminUser) user).kickUser(manager.getUserById(1));         ((AdminUser) user).kickUser(manager.getUserById(2));          User grabowski = new User("Grabowski", Language.HUN);          manager.createUser(grabowski);          manager.linkUsers(grabowski,user);      }     fm.writeGraph(manager,args[0]); }     File Manager:  static public Manager readGraph(String s) {      FileReader fr = null;     try {         fr = new FileReader(s + "/input.txt");     } catch (FileNotFoundException e) {      }     BufferedReader br = null;     br = new BufferedReader(fr);     String sCurrentLine = null;      try {         sCurrentLine = br.readLine();     } catch (IOException e) {      }      int x = Integer.parseInt(sCurrentLine);      Graph graph = null;     graph = initGraph(x);        Manager manager = null;     manager = new Manager(graph);      int temp = 0;     boolean lineLeft = true;      try {         sCurrentLine = br.readLine();     } catch (IOException e) {     }      User users[] = new User[x];      while(lineLeft){         if (temp < x){             String line[] =  sCurrentLine.split(" ", 2);             Language language = Language.valueOf(line[0]);             User user;             String name = line[1];             if (line[1].contains("#")){                 name = name.substring(1);                 user= manager.createAdminUser(name, language);             }             else{                 user = manager.createUser(name, language);             }             users[temp] = user;         }         else {             String line[] = sCurrentLine.split(" ");             for (int i = 0; i < line.length ; i++){                 if (Boolean.valueOf(line[i])){                     graph.linkNodes(users[temp-x], users[i]);                 }             }         }          try {         if ( (sCurrentLine = br.readLine()) == null)             lineLeft = false;          } catch (IOException e) {          }         temp++;     }      return manager; } }


this is not a boarding card go to check-in for visa check and boarding card

I just bought a Ryanair plane ticket except that I did not see the QR code on the boarding pass, is that normal? the message is "". thank you.


Is it possible to correctly import matlab code with characters such as "åäö" using the The matlab-prettifier package?

In the original matlab code I commented it using characters such as "åäö" creating the following error:  Package inputenc Error: Invalid UTF-8 byte sequence.  when using \lstinputlisting[style=Matlab-editor]{example.m} Indeed the characters doesn't show up when compiling, but everything else works. Is there anything I can do here (other than deleting the characters)?


$\lim_{n\to \infty}\sqrt[n]{3^n+5^n}$  I'm stuck. Tried to apply the squeeze theorem, but found only the $\le$ side, which is $\sqrt[n]{5^n}$, approaching 5.  How do I proceed from there?


How to define orbital angular momentum in other than three dimensions?

In classical mechanics with 3 space dimensions the orbital angular momentum is defined as  $$\mathbf{L} = \mathbf{r} \times \mathbf{p}.$$  In relativistic mechanics we have the 4-vectors $x^{\mu}$ and $p^{\mu}$, but the cross product in only defined for 3 dimensions. So how to define orbital angular momentum e.g. in special relativity in terms of 4-vectors? Or more generally in $d$ dimensions?


$$\sum_{k=1}^{519}\frac{1}{k(k+2)}$$  I've been trying to figure out this summation for a while now but I can't seem to get it. I've been looking at my notes and the only trick I've been given for summations like this one is $\sum_{k=1}^n\frac{1}{k(k+1)}=\frac{1}{k}-\frac{1}{k+1}$. This doesn't help me to my knowledge because this kind of fraction decomposition doesn't work on my question. I have premium Symbolab and that says it doesn't support this kind of question. WolframAlpha gives me the decimal approximation of 0.7480 but no support work.  I'm sorry if this question has been posted here before but I couldn't find this question anywhere online.  Thank you for the help,  -jjleahy


Is it possible to derive the invariant spacetime interval from Einstein's two postulates for SR?

In many textbooks, the interval  $$ I = -(c\Delta t)^2 + (\Delta x)^2 + (\Delta y)^2 + (\Delta z)^2 $$  is taken for granted as the same for two events in any reference frame.  Is it possible to derive this just from the two postulates,   That the laws of physics are the same in all reference frames That the speed of light c is constant for all reference frames?


How to make a Python script to print stdout directly?

When I call a Python unit test I can see all the stdout directly e.g. how remote APIs are called etc., if I use the -s switch.  python3 -m pytest -s some_test.py   However if I run a script with same code which I prototyped in the test script, the stdout comes only at the end.  python3 script.py   How to make script.py to print to stdout as it comes from pytest?


Where is this dust located on my sensor?

I have a really nasty looking piece of dust on my 550D's sensor, situated in the top right-hand corner of each image I take with anything higher than f/11. I am going to get a decent sensor cleaning kit, but I'd like to know which corner of the sensor should I focus on to get rid of this annoying particle?  In other words, does a lens flip the incoming light from left to right and turn it upside down? I think that's correct, so that means the answer in this diagram will be A, correct?    And before anyone asks - yes, I will clean the entire sensor while I'm in there, but this will help me focus on this particular (pun intended) problem. Thanks in advance!


How would you decrypt an affine cipher with only the ciphertext?

If I have only the ciphertext but the alphabet and the value of a and b are all unknown ... how would I go about this? I understand decryption with the key and alphabet, that is fairly easy but if we don't have even one of them what would be my first step?   also, my goal is to have the computer return the plaintext and the alphabet &key. Without me choosing what looks like english or not.


What are Kernel Version number components (w.x.yy-zzz) called?

When looking at kernel version numbers installed in /boot using a work in progress command (find /boot/vm* -printf "%A@ %p\n") I see:  1469098968.0000000000 /boot/vmlinuz-3.13.0-92-generic 1477523408.0000000000 /boot/vmlinuz-3.2.0-113-generic 1476549941.0000000000 /boot/vmlinuz-4.4.0-43-generic 1477008540.0000000000 /boot/vmlinuz-4.4.0-45-generic 1470540722.0000000000 /boot/vmlinuz-4.6.3-040603-generic 1471805944.0000000000 /boot/vmlinuz-4.7.1-040701-generic 1472208664.0000000000 /boot/vmlinuz-4.7.2-040702-generic 1473382012.0000000000 /boot/vmlinuz-4.7.3-040703-generic 1474853146.0000000000 /boot/vmlinuz-4.7.5-040705-generic 1475960925.0000000000 /boot/vmlinuz-4.8.1-040801-generic 1477145804.0000000000 /boot/vmlinuz-4.8.4-040804-generic   What are the proper names for "w.xx.y-zzz" that follows the vmlinuz prefix?  The proposed duplicate link ()states the second segment is called the ABI Number. The answer below by muru states the fourth segment is the ABI Number however I believe both are wrong based on the links provided in my own answer below.  Keep in mind this question is about ALL four segments w.x.yy-zzz and not just the fourth segment zzz.


If hash functions append the length, why does length extension attack work?

I have understood that it's trivial to reconstruct the internal state of a hasher for many hash functions, if one only knows the output hash. Then, one can append data after the original data and obtain a valid hash for the original data plus the appended data.  However, recently .  If hash functions append the length, why doesn't that stop the length extension attacks? For a good hash function, if the attacker knows hash(message || length), there should be no way to obtain hash(message) to be able to calculate hash(message || appended_data) which would allow calculating hash(message || appended_data || total_length).  Related:  ...although the related question doesn't discuss appending of the length which MD5, SHA1, etc. do.


I have a table that takes up a full page, but I want it to start on a page that already has some text and then continue onto the next page (i.e. it's ok if the table gets broken up and spans two pages). It is a simple two column table:  \begin{table}[h] \centering \begin{tabular}{| p{.20\textwidth} | p{.80\textwidth} |}  \hline foo & bar \\ \hline  foo & bar \\ \hline  ... \end{tabular} \end{table}   I guess I need longtable? How do I use it?


If I send two rockets from the Earth in opposite directions, at, say, 60% of the speed of light relative to the Earth, then relative to each other they are travelling at 120% of the speed of light. What is my problem in reasoning?  Is it to do with the fact that due to SR their relative velocities are not 120%, in either of their reference frames? If this is the case, what is the maximum relative velocity that two bodies can have from any reference frame?


Why can't the Others go around the Wall at sea?

As explained in a  earlier , the Wall does not extend all the way to the sea on the East, and the castle there is essentially undefended anyway. Thus, wildlings -- and Stannis' army -- were able to go around it undetected.  We know that the Others and the wights they raise can't cross through the Wall, and I think we can assume that it's built to stand up to any attacks they make trying to bring it down. But there does not appear to be any reason they can't just go around like anyone else.  Possibly related: in the TV Show, we actually see the attempted evacuation of Hardhome, and the Night King allows Jon Snow and his human army and civilians to flee back to their boats to safety, even after raising a massive army of wights. You could interpret this as merely a psychological ploy, but it may be a hint that the dead can't cross the water either.  Has there been any indication (books or show) that the Others/White Walkers and their army of wights are blocked by open water, or are somehow tied to the land of the Frozen North, or that there's any other obstacle keeping them from just sailing/swimming around the Wall?


Big-O summary for Java Collections Framework implementations?

I may be teaching a "Java crash-course" soon.  While it is probably safe to assume that the audience members will know Big-O notation, it is probably not safe to assume that they will know what the order of the various operations on various collection implementations is.  I could take time to generate a summary matrix myself, but if it's already out there in the public domain somewhere, I'd sure like to reuse it (with proper credit, of course.)  Anyone have any pointers?


Configuring my sshd securely (with automation)

I've configured several systems manually.  I'd like to start working more systematically now.  I configure openssh-server more strictly than Debian defaults, to exclude password-guessing attacks.  So I worked on some sequences for system configuration.  I notice SSH is a problem.  When you install openssh-server on Debian, it immediately starts running with the default configuration (unlike Fedora).    Question: suggest a sequence for securely configuring SSH which avoids this race condition.    E.g. I want to use SSH on one desktop system, where other users have never needed SSH access.  They don't use any remote access to the system.  Working to enforce "secure passwords" would waste our time. Limiting remote access in /etc/sshd_config is simpler and better security.  I have also sometimes created local accounts for test purposes.  (Embarrassingly, I had one such account fall victim to an SSH worm).


In many lists, like profile->activity, only month and day is shown directly, but not the year.  format is shown only when hovering over the date.  This is quite distracting.  Other lists that are offered in different orders (chronological/by rating) like questions or answers always contain the year for older dates in 'yy format.


Is there a anything like a proof of Hamilton's principle? Where would I find it?


Issue in activating environment on UAT server

I was working on a script that logs in to UAT server, reroute to necessary folder and activates the virtual environment. Following is the script: function gotouat(){     branch=`getBranchName`;     echo "Logging into uat for branch $branch";     ssh -t uat "cd ../projects/$branch && source envproj/bin/activate; zsh"; }  This script reroutes to the necessary branch, but does not start virtual environment. Following are the debug logs:  debug1: Sending command: cd ../projects/test-branch && source envproj/bin/activate; zsh debug2: channel 1: request exec confirm 1 debug2: callback done debug2: channel 1: open confirm rwindow 0 rmax 32768 debug2: channel_input_status_confirm: type 99 id 1 debug2: PTY allocation request accepted on channel 1 debug2: channel 1: rcvd adjust 2097152 debug2: channel_input_status_confirm: type 99 id 1 debug2: exec request accepted on channel 1  Any help would be appreciated! Also this is my first post, so apologize for any missing information/issues. Thanks!


Inverse of the transformation $X \mapsto Y = X\cdot X^t$

I have a Matrix Y of Kind : $n\cdot I$  where $I$ is the identity Matrix of size  $n\times n$  , I need to find Matrix $X$ if it exists such that all elements are either 1 or -1 and satisfies $XX^t$ = $Y$. Please Help


Looking to texture things like odometers and general analog meters

I'm looking to texture something like this..Can I find these online or do I have to custom make them?


User with 11 rep showing as participating in suggested edits review

I noticed this doing review just now. A user with 11 rep is showing as having participated in reviewing suggested edits. Obiviously this is not high enough rep to do so, but also this user shouldn't be able to have an expandable badge on hover like this, if I understand that feature correctly.  Am I not understanding the recent reviewers list?


How is it that $\pi$ appears in so many formulas that seem to be in no way geometric.

When I first saw:  $$\frac{\pi}{4}=1-\frac{1}{3}+\frac{1}{5}-\frac{1}{7}+\frac{1}{9}\mp\cdots.$$  I was puzzled that such an expression could have anything to do with circles. There are tons more and it seems like a very large amount of summations will end up having to do with $\pi$. My question is how come $\pi$ finds its way into so many formulas, and could the above equation be thought of geometrically.


I've some issues trying to instantiate an array of templated type :  public class MyList<T extends Comparable<T>> {    private T[] data;    /**    * Initializes the list   **/   public MyList() {     data = new T[0];   }    // ... }   I assume that the type of T is defined during runtime, isn't it ?  Regards,


What is the focal length on your typical cell phone camera?

I know cell phone cameras are generally wide angle, which makes sense because  people wanna go out to dinner, or a show, or at the park with their kids, and they want to get the whole scene. And even though digital zoom is horrible...if anyone needs to get closer, they zoom.   I am not in a rush to get a wide angle lens for my DSLR just yet. For now, I believe that I can get away with just using my phone for wide shots. And yes, I know it is not necessarily the same because the available aperture and things like this.   However, I recently learned that even smartphone pictures may have EXIF metadata in them. For my phone's camera, it gave me a focal length of 5mm. Now I understand the sensor size on the cameras are much smaller, so how do I calculate the 35mm-equivalent?   Does anyone know what the focal lengths are on cell phones?


I need a vertically dashed line in my matrix, but my current solution looks like the dashes are going out of the array environment (and they are - i checked in photoshop). Can I manually shorten it by say 1 mm or 0.5 mm?  Here is MWE:  \documentclass[a4paper]{article} \usepackage{amsmath} \usepackage{arydshln} \usepackage{mathtools} \begin{document}  \begin{equation*} \setlength{\dashlinegap}{2pt} \left[\begin{array}{cccc:c} a_{11} & a_{12} & \cdots & a_{1n} & b_1 \\ a_{21} & a_{22} & \cdots & a_{2n} & b_2 \\ \vdots & \vdots & \ddots & \vdots & \vdots \\ a_{n1} & a_{n2} & \cdots & a_{nn} & b_n \end{array} \right] \end{equation*}  \end{document}


How to stop a file or folder from being indexed in GNOME?

I am running Ubuntu GNOME 15.10 with GNOME 3.18, and I would like to know if I can do any of the following and if so how:   Make it so that a folder is not indexed but leave its contents indexable (so that if I search for that folder's name in my system nothing will come up, but if I search for its contents, that will come up) Make it so that a folder is not indexable and nor is any of its contents (and if it contains sub-folders within it then it should recursively not allow any contents in them to be indexed nor the contents of any sub-sub-folders in the sub-folders etc, nor any of those sub-folders themselves) Make it so that individual files in a folder are not indexable, though not having any impact on other contents nor the parent-folder   So, are any of these variants possible? I believe the indexing program is called Tracker which indexes files and folders and their contents and allows for one to search for them on the system.


I have 2 toString methods. They all work fine.  //This toString is the attendant toString.The parameter assign is of type car     public String toString() {         return "Attendant [staffNum=" + staffNum + ", id=" + id + ", available=" + available + ", name=" + name                 + ", assign=" + assign + "]";     }   The toString below is from the car class  public String toString() {             return "Car:" + plateNum + " ID:" + carID + " Position:" + position + " Assigned to:" + assignedTo.getId()              + "(" + assignedTo.getName() + ")" + " Parked at:" + convert(currTime);         }   My problem is that if I print with the toString attendant it prints fine then for the assign variable since it is type car it calls the car toString. I can't change the car toString cause I use it as it is.  I tried some getmethods calling the car ID and position but it calls for all attendants.  I tried a null check. It would check that if assign is not null it would call the getmethods. This one crash my java.  public String strAssignAttCar(Cars assign){         String result = null;         if(!(assign.equals(null))){             result = Cars.getCarID();         }   and I get this:  Exception in thread "main" java.lang.NullPointerException     at Attendant.strAssignAttCar(Attendant.java:201)     at Attendant.toString(Attendant.java:217)     at java.lang.String.valueOf(Unknown Source)     at java.io.PrintStream.println(Unknown Source)     at Attendant.createAtt(Attendant.java:64)     at Main.main(Main.java:15)   PS:at first and most of the time the attendant parameter assign is null  please help me I dont know what else to try.


Splicing a list of names that could be different everytime

i'm currently learning python3 and my knowledge is basic in the broad scheme of things. I play a lot of computer games but one in particular, if there are enough friends on line we do a custom game between ourselves, so i made a program that randomises the players we have onto teams.  my current code works just fine, but theres a lot of repertivness. I was wondering if there is something i can do in python3 that allows me to splice a list of names in half or half + 1 no matter the amount of names input? so it finds the amount in list, halfs it (or if its odd + 1 to a side) and randomises the names and puts them into either orange or blue team.   Heres the current code:  from random import shuffle players = [''] print("\nA minimum of 6 players is required to use this script") inputPlayers = str(input("Enter player names seperated by a comma: ")) players = inputPlayers.split(", ") shuffle(players)  while len(players) < 6:     print("\nERROR!!! A minimum of 6 players is required to use this script")     inputPlayers = str(input("Enter player names seperated by a comma: "))     players = inputPlayers.split(", ")     shuffle(players)   starts off with importing shuffle, tells the user what to do and input wise and runs a while loop to make sure its done properly, after that comes the repetertiveness, which works just fine, i just dont like it  if len(players)==6:     print('Orange teams is: ')     for i in players[:3]:         print(i)     print()     print('Blue team is: ')     for i in players[3:]:         print(i)   this then carrys on for if len(players)==7: then 8 then 9 then 10! So all in all 40 lines of repeated code. I've tried using start:end but as the list isn't and interger i get an error and my knowledge doesn't cover index method it talks about using.  I know it looks silly to wanna fix something thats not broke, its more im learning and would rather do better code!  any help would be great cheers  Dan


Windows is unable to detect disk partitions

I installed Windows 8.1 Preview using the DVD yesterday after wiping off my HDD (I made a backup prior to that). While installing Windows I created only the partitions necessary to install Windows (System Reserved, C: shown in second screenshot). Further I installed Ubuntu 13.04. During Ubuntu installation I created necessary extended partitions (for OS, swap and home directory - all ext4 except swap). Later within Ubuntu I created a NTFS partition at the end (partition 4 in first screenshot). This was a primary partition. The objective behind this was that the partition must be accessible from Windows.  While Ubuntu disk utility reports the partitioning just fine (as below)  Windows disk management is showing all partitions as primary.   Thus within Windows I am able to access only C:! What puzzles me is one can't create so many primary partitions! How can I solve this issue?


Suppose that $f\in L^p\cap L^\infty$ for some finite $p$. Then $f\in L^q$ for all $q>p$ and   $\|f\|_\infty=\lim_{q\to\infty}\|f\|_q$  I've managed to prove that $\int_E |f|^q<\int_E |f|^p<\infty$ with $E=\{x:|f(x)|<1\}$   and that $\int_F|f|^q=0$, with $F=\{x: |f(x)|>\|f\|_\infty\}$.   However I don't know how to proceed in the case where $1\leq f(x) \leq \|f\|_\infty$ and to prove that this convergence.


Can I have Zscore result calculated within specific range?

I dont fully understand Zscore,  I need to standardise raw data to use them for further uses, so I though about using Zscore. When I calculated it, some of the results I got are greater than 1 and I wonder if I can control these result without ruining the standardisation . Is it possible to calculate zscore and ensure result range between 1 and -1? or i have to use other methods


I cloned a disk (SSD) and put the cloned disk into another machine. Now both systems have the same value in /etc/machine-id. Is it any problem to simply edit /etc/machine-id to change the value? Can I do this while the system is running (or do I need to boot from a Live USB)?  Is  a better alternative?  The naive use of systemd-machine-id-setup doesn't work. I tried these steps:  nano /etc/machine-id (to remove the existing value) systemd-machine-id-setup > Initializing machine ID from D-Bus machine ID. cat /etc/machine-id   The new value is the same as the old value.


Are being man and their birthday independent for two persons?

I'm given this problem:     Consider there are two applicants for a job. One of the applicants is a man, and it is known that he was born on a Wednesday. What is the probability that a second applicant is also a man?   I don't get the question. It seems that being a man for two applicants is independent regardless of the birthday or gender of the first applicant. Moreover, when there is no data, how can I calculate a probability!  Please guide me on how can I answer this question or similar ones.


option in "flag" popup for "duplicate answer"

in my attempt to review, i discover that the thing that seems to occur most often is that new users with 0/1 reputation are answering questions that have accepted answers and are years old, and the answers say almost exactly what previous answers said, and there is no activity on the question for a long time.  often, one of the answers has 10+/50+ upvotes, and still the new user is attempting to add an answer.  it would seem helpful if there were a "duplicate answer to old accepted answer" in the following dialog, because the situation is not that it is not an answer, and not that it is "poorly formatted" (though i suppose it sometimes could be considered a "content problem").  it is really merely that it is adding nothing to the discussion except noise for a question that has an accepted answer and isn't really going to get upvotes since it's really identical to an existing answer.


How do I change a spawner's type in Minecraft?

I want to change the type of my mob spawners on my server. My server is a vanilla server, as it has no mods. Is there a way I can edit it without mods? If not, is there a mod I can get to change them?


Bad value:      http://fonts.googleapis.com/css?family=Lato:100,300,regular,700,900|Open+Sans:300|Indie+Flower:regular|Oswald:300,regular,700&subset=latin,latin-ext   for attribute href on element link:       Illegal character in query: not a URL code point.   How to solve the above error and why does this error occur?


Why is my "Committed" memory so much higher than my actual RAM space?

I have run two virus scans and neither of them have found anything so far (Malware Bytes and Avira Rescue). During gaming I will get Windows popups saying that my system is low of memory and recommends closing the game. This can also happen while browsing. My computer seems to become sluggish a lot and will hang up often, such as when clicking a link from a messenger program to open in my browser.   I am unsure what is causing this. My memory usage on the processes tab doesn't add up to such a high percentage of my actual memory.    As a side note, is my Disk Usage supposed to spike up to 100% sometimes? Research seems to say so.


Let $(U(\mathbb{Z}_n), \cdot)$ the group of the units of $\mathbb{Z}_n$, and $a,b\in U(\mathbb{Z}_n)$. If $\operatorname{ord}(a)=r$, $\operatorname{ord}(b)=s$, $\operatorname{ord}(ab)=m$, $\gcd(r,s)=1$ show that $m=rs$.  Proof:   $ab^{rs}=1 \implies m\mid rs \implies rs \ge m$ $\forall π\in \mathbb{N^*}:(ab)^π=1 \implies (ab)^{π\ r}=1 \implies b^{π\ r}=1 \implies s|πr \implies s|π$. Working similar, $r|π$. So, $rs|π, \forallπ\in \mathbb{N^*} \implies rs|m \implies m\ge rs$.   Is this proof true?


How can you tile this checkerboard with trominoes?

Ok, so define a tromino as a $1$x$3$ tile. If a corner is removed from an $8$x$8$ board, is it possible to tile it with these trominoes? So far, I have concluded that you would need $21$ trominoes to tile the remaining $63$ squares. If you color the squares three different colors, it is possible to have an equal number of each. I alternated the diagonals for each color. Theoretically, a tiling should be possible right? I have been trying to find such a tiling, but each time I end up with three squares that cannot fit the shape of the given tromino. Are there any possible tilings? Thanks.


Why $f\colon \mathbb{Z}_n^\times \to \mathbb{Z}_m^\times$ is surjective?

If $m|n$. Why the map $f\colon \mathbb{Z}_n^\times \to \mathbb{Z}_m^\times$ given by $a \mod{n}\mapsto a \mod m$ is a surjective homomorphism of groups?  Attempt: I proved it is well a well defined homomorphism because the canonical projection $\overline{f}\colon \mathbb{Z}_n \to \mathbb{Z}_m$ is a surjective ring homomorphism, it extends $f$ and maps units to units.  But I can't prove surjectiveness. Given $a\in\mathbb{Z}$ such that $(a,m)=1$ I'm looking for a $k\in\mathbb{Z}$ such that $(a+k\cdot m,n)=1$. I don't know why one of the $n/m$ candidates for such $k$ makes the number $a+k\cdot m$ an unit modulo $n$.


Pipe stdout through sed or awk command BEFORE redirecting to file?

I am still kind of new to programming, but willing to learn: I am struggling with a problem in following project: I am logging analog read-outs of an Arduino board. The Arduino board sends tab-separated values (as a string) via following command to the serial device on my machine.  loop { [...] Serial.println(stringOfTabSeparatedValues); Serial.flush(); }   The values are than retrieved from the serial device and appended (logged) in file.log on my computer through following command:  ttylog -f -b 9600 -d /dev/ttyACM0 >> /dir/to/file.log   The content of file.log looks as following:  value1a value2a value3a value...  value1b value2b value3b value...  value1c value2c value3c value...  ...   This seems to work so far. However, since I would like to link/load this file content to a spreadsheet which is updated in real time, I want to get rid of the empty lines inbetween. (Why does println() generate empty lines when read by ttylog in the first place?) I would like the lines to be logged to look like following:  value1a value2a value3a value... value1b value2b value3b value... value1c value2c value3c value... ...   I figured I could use a pipe to modify ttylog stdout before redirecting that modified output to the destination file. Here is what I have tried:  ttylog -f -b 9600 -d /dev/ttyACM0 | awk 'NF' >> /dir/to/file.log ttylog -f -b 9600 -d /dev/ttyACM0 | awk 'NF' | tee -a /dir/to/file.log ttylog -f -b 9600 -d /dev/ttyACM0 | sed -i '/^$/d' >> /dir/to/file.log ttylog -f -b 9600 -d /dev/ttyACM0 | sed -i '/^$/d' | tee -a /dir/to/file.log   Unfortunately, in those cases nothing at all was written to file.log. (Why?) I noticed though, that following commands at least give my the desired output printing it to the terminal:  ttylog -f -b 9600 -d /dev/ttyACM0 | awk 'NF' ttylog -f -b 9600 -d /dev/ttyACM0 | sed -i '/^$/d'   However I do not know how to redirect that output directly to a file.  I figure my problem has something to do with both, awk and sed, normally using stdin and not stdout as input? Conclusively, I tried redirecting from ttylog to awk/sed and then to the destination file:  ttylog -f -b 9600 -d /dev/ttyACM0 >> awk 'NF' >> /dir/to/file.log ttylog -f -b 9600 -d /dev/ttyACM0 >> sed -i '/^$/d' >> /dir/to/file.log   But here stdout was unmodified written to file.log. (Why?)  Is there a way to modify the output of ttylog (stdout) BEFORE redirecting that output to a file?  Cheers and thanks in advance.


How can I safely create a nested directory in Python?

What is the most elegant way to check if the directory a file is going to be written to exists, and if not, create the directory using Python? Here is what I tried:  import os  file_path = "/my/directory/filename.txt" directory = os.path.dirname(file_path)  try:     os.stat(directory) except:     os.mkdir(directory)         f = file(filename)   Somehow, I missed os.path.exists (thanks kanja, Blair, and Douglas). This is what I have now:  def ensure_dir(file_path):     directory = os.path.dirname(file_path)     if not os.path.exists(directory):         os.makedirs(directory)   Is there a flag for "open", that makes this happen automatically?


Angle required to hit the target in projectile motion

Consider the problem of projectile motion where the angle to hit a target $(x,y)$ is asked, once given the initial velocity magnitude $v_0$. The projectile is fired from the point $(0,0)$.  Here is the final formula for theta, solving the equations of motion ()  $$\theta = \arctan{\left(\frac{v_0^2\pm\sqrt{v_0^4-g(gx^2+2yv_0^2)}}{gx}\right)} \tag{1}$$  Now if I impose $\Delta=0$ [Edit: $\Delta=v_0^4-g(gx^2+2yv_0^2)$ is the discriminant ( (for which we have the only solution $\theta=\arctan \frac{v_0^2}{gx}$) I find $$y=\frac{v_0^2}{2g}-\frac{g}{2v_0^2}x^2\tag{2}$$  Now in my view this is the equation of a parabola which describes the points $(x,y)$ in plane that can be hit only firing at $\theta=\arctan \frac{v_0^2}{gx}$, once given the initial velocity $v_0$.  On my textbook it is claimed that $(2)$ represents the equation of the trajectory of the projectile, if fired at $\theta=\arctan \frac{v_0^2}{gx}$.  I don't think that this is possible, to begin with the fact that $(2)$ does not pass through $(0,0)$.  Can anyone tell me what exactly $(2)$ means?


MacBook Pro battery drains when connected to AC power

I've been experiencing a very annoying problem lately. Often, I've got my MacBook Pro connected to  power when I'm working from the office. At home, I often leave it unplugged until the battery is too low to continue at which point I plug it in. The problem occurs when my device is connected to a power supply. My battery indicator shows 100% charge which is fine. But sometimes the battery starts draining and the menu bar icon says "Battery not charging," even when it's connected to a wall socket, and it keeps draining until absolutely dry. It doesn't even warn me the battery is running low because it shows "Power source: Power adapter" which I guess disables the Operating system low-battery warning. This has happened on multiple occasions. I've already tried several things, I've swapped chargers, swapped wall sockets, started with as few tools/apps running as possible. But the problem comes back. I also can't really tie this to a specific app or behavior,  AFAIK. Does anyone know what might be causing this behavior and what to possibly do about it?


How do you make 4e combat less time consuming?

I have recently started DMing a DnD 4e campaign after a long break from the specific game and both me and my players have been having a lot of fun with it. However one thing that is diminishing our enjoyment of it is that every combat encounter takes a really, really long time. All three of my players are low level strikers that have built a large amount of healing. The issue is that when I first presented my players with monsters they were lower or equal level foes that the players shredded through in a couple of turns with superior damage output. I responded by sending higher level foes at them. That degenerated into ninety plus minute long combat encounters where the players would wail away on the monsters high AC and HP totals while the monsters tried vainly to get past the PC's pile of healing abilities. I have chosen so far to go with longer but more challenging combat instead of trivially easy combat but this is far from ideal. My group wants time to explore their surroundings and  to roleplay which is limited if they are spending all their time fighting. This brings me to my question: Does anyone have any strategies for making combat challenging but not ultra-time consuming.


I have disk space allocated as per below.   Model: INTEL RS2BL040 (scsi) Disk /dev/sda: 1998GB Sector size (logical/physical): 512B/512B Partition Table: msdos    Number  Start   End     Size    Type     File system     Flags  1      1049kB  512MB   511MB   primary  ext3            boot  2      512MB   922GB   922GB   primary  ext4  3      922GB   1998GB  1076GB  primary  linux-swap(v1)    NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT sda      8:0    0   1,8T  0 disk ├─sda1   8:1    0   487M  0 part /boot ├─sda2   8:2    0 858,3G  0 part / └─sda3   8:3    0  1002G  0 part [SWAP]   I would like to change my swap partition to 32GB and add that left over space to the sda2 drive how can I do this from a command line.  Thanks


PHP script wait for previous one to finish

I have this example script:  <?php     $time = time();     shell_exec('nohup sleep 30 2>/tmp/test >/tmp/test &');     $time2 = time();     echo $time2 - $time; ?>   when I run it for the first time it show immediately 0 , but when I run it for the second time it wait for the sleep command to finish the it shows the 0. what should i do to make it run immediately without waiting for the sleep command ?


We booked our flight through Expedia and are traveling on 2 airlines, one PNR and no checked baggage.  Flight from Chicago on United arrives at 8:45 pm.  Flight to Lisbon on Lufthansa leaves at 10:20.  Just checking if that sounds like enough time - not sure which terminals we arrive at/depart from. Thanks for any responses.


macOS cpu/mem monitor in system tray (menu bar)

I would like to monitor CPU and memory usage in realtime with charts on a macOS system tray (menu bar). Is there a utility that provides such functionality?


How can i delete the 13.2gb photo library off of my phone?

I have already gone through the creating an empty folder and synced just that folder and when that didn't work I unselected the box to sync photos and that also did not resolve my issue.  I'm at a loss on how to remove the data from my iPhone5.  I currently have 250 photos/videos on my phone that are just over 2gb...I would really appreciate help clearing out such a large portion of my harddrive


If I run history, I can see my latest executed commands.  But if I do tail -f $HISTFILE or tail -f ~/.bash_history, they do not get listed.  Does the file get locked, is there a temporary location or something similar?


What is a fast way to find all circle sizes?

Given a completely black and white picture (so the only colors are black or white no shades of grays), there are a lot of different sizes circles on it (in black), what is a fast way to find the center coordinate of the circles and the sizes of the circles and store them as a Dictionary entry? When I mean fast I mean by if I were to call this circle finding function 10 or 20 times per second it wouldn't lag too much. Also I did some researching and found out that I could find the center of a circle or radius by taking three points on the circle, can that help?


Turn off confirmation on setting breakpoint in GDB

Setting breakpoint on shared library:  (gdb) b file.c:278  No symbol table is loaded.  Use the "file" command.  Make breakpoint pending on future shared library load? (y or [n]) y   Can I make gdb not to ask this question? (that, is, skip confirmation?)


Allow adding bounties from the Android app

(There is an  from , but none for Android, so here goes)    I was happy to see  and wanted to award a bounty. But the SE app for Android doesn't provide a button for adding bounties. Can you please give me a button to add bounty to a post using the app?   Please add this button, using the browser to add the bounty reduces the happiness.


Ring $R= \mathbb Z_3[x]/\langle x^6-1\rangle$

i) Check whether $R$ is a finite ring or not. ii) Check whether $R$ has zero divisors. iii) Check whether $R$ has nilpotent elements.  i) The field $Z_3$={0,1,2} has 3 elements but as repetitions are possible while forming a polynomial for infinite times and power of x can also have infinitely possible positive integers thus $Z_3[x]$ is not a finite ring. Again as $Z_3$[x] is not finite so will not be R. Please help rectify if I am wrong here and also need help for part ii) & iii).


T-SQL stored procedure that accepts multiple Id values

Is there a graceful way to handle passing a list of ids as a parameter to a stored procedure?   For instance, I want departments 1, 2, 5, 7, 20 returned by my stored procedure. In the past, I have passed in a comma delimited list of ids, like the below code, but feel really dirty doing it.   SQL Server 2005 is my only applicable limitation I think.  create procedure getDepartments   @DepartmentIds varchar(max) as   declare @Sql varchar(max)        select @Sql = 'select [Name] from Department where DepartmentId in (' + @DepartmentIds + ')'   exec(@Sql)


Find programs which are using a special file

I want to delete a file but it cannot be deleted because is used by another program. how can I find the program which is using this file? I've seen task manager but there is nothing there to find out it!  I'm using windows 7.


I entered Hungary as a Schengen visitor, but left on a Temp. Residence Permit. When can I return as a Schengen visitor?

I entered Hungary earlier this year (mid April), and spent my 90 days there. Just before my time was up, I applied and was approved for a temp. residence permit - which would allow me to stay (not work) until mid November.   My question: To return to Hungary, do I need to wait a full 90 days from when my RP expired, 90 days from the day I actually exited Hungary, or 90 days from the date my initial 90 days (on the schengen stamp) would expire?  Feel free to ask me to clarify anything. To note, it is important I do go back to Hungary, because my partner is there and he's recovering from an injury. We're unmarried. We obviously will need to sort out a better system.   Additional info: I'm a Canadian citizen, and I have an active working holiday visa for Ireland. We lived there and in the UK together. We're still confused whether Hungary recognizes us as common-law, therefore myself as a family member. The immigration there were not very helpful.


How to access global picklist value set in apex code

I want retrieve Global picklist Value Set and assigned them into a drop down box using apex.   How could I resolve this?


I'm being forced to use my Macbook more and more with my metered 4G connection. I really need to keep data usage limited. Windows has an  mode which really helps with this.   What's the best way to handle this issue in the OSX world? Perhaps some use of the firewall? Is there any sort of logging happening as to what is using the network?  Thanks for your help :-)


I've recently found a nice bike with a steel frame. Well I noticed the aluminium seatpost was stuck but had no idea how heavily. To be honest I never had a similar problem and underestimated that beast...  So here's my question. I'm pretty sure the problem comes from the galvanic corrosion between the two materials, I understand that the post gets thicker due to this and therefore is stuck. Now I made some measurements of the seatpost diameter which gave me 27 mm which is correct. Then I moved on to the frame, measuring the diameter just at the top and on a few positions further down. The result is, there's quite some variation: 29.7mm at top, 28.7mm further down. I've attached some photos:   to me this sounds quite heavy and I would like to have your opinion what to try next: a) try some chemicals b) cut out the seatpost c) sell the bike again (I wouldn't like to because I really like the frame, it's a Fuji Feather)  concerning a) I already tried WD40 without luck. I've got the hint to try ammonia: Remove bottom bracket, having the bike hanging upside down fill the tube with ammonia and leave it for at least 2 weeks. Then there's hope to get it out.  concerning b) what tools would you suggest for such an act? How can I prevent to ruin the frame?  thanks in advance!


Creating a 2 layer background image in CSS

I'm having some trouble wrapping my head around this.  I would like to have a solid red bar (about 200px wide) running the entire length of the page. I have this already using a small 200x1px image repeated on the Y.  I'd then like another image to sit on top of this red bar, that will be fixed to a specific position on the page at all times.  I'm not sure how to go about's creating this "Second" wallpaper.  I hope this makes sense. Thanks.


\emph not working when fontspec is loaded

The following minimal example:  \documentclass{scrartcl} \usepackage{fontspec}  \begin{document}     test \emph{emph} \textit{textit} \textbf{textbf} \end{document}   outputs this:    i.e. the \emph command is not working. There are no error messages or warnings. Removing the line \usepackage{fontspec} produces the expected result (“emph” in italics). The result is the same regardless whether LuaLaTeX or XeLaTeX is used. What’s going on?  Using updated TeX Live 2016 on Linux.


Can I travel directly to Croatia on an unused single-entry Schengen visa?

I am flying from India directly to Zagreb and flying back from Zagreb to India, on an unused single-entry Schengen visa. Will I be allowed entry? I have an Indian passport.


Why does the 40 minute question limit apply to both main and meta sites?

I asked a question on Movies & TV about a series that did not have a tag yet.  Not having the 300 rep to add a new tag, I posed the question with the closest tag I could find, and then went to meta to ask someone to add the tag...  Only to find out that I was rate limited on meta as well (at least from the iOS app).  I wanted to ask for community help on meta, since I do not believe this issue warrants a mod flag.  Why does the question rate limit apply to meta questions as well?  Is it to prevent new users from (incorrectly) flooding meta with bad, potentially off-topic questions?  That's great for keeping new users in check, but hurts more experienced users wishing to start a discussion on meta around their question.  You can see my original post on Movies.SE , as well as a second time I ran into this on ReverseEngineering.SE .


I am trying to set an image to a particular subsection by  \begin{figure}[h!]  \centering  \includegraphics[width=4.0in]{sample.pdf}  \caption{My sample}  \label{fig:mysample} \end{figure}    also tried:  \begin{figure}[h]   \centering   \includegraphics[width=4.0in]{sample.pdf}   \caption{My sample}   \label{fig:mysample} \end{figure}    However, it keeps appearing within the immediate section. How could I fix an image to a subsection?


How can I get my Android Phone to use its SD card by default?

I've installed an Android ROM on my HTC HD2, and it's working smoothly and responsively. I've gotten calling, SMS, MMS and internet to work flawlessly. I do however have one small problem. With only Android installed, my phone only has a few hundred kilobytes of space left in it's internal memory. I have an SD card inserted with 16GB available that's not being used.  After 6 hours of use I'm already getting error messages about SMS message memory being full, and I can't download apps due to the lack of space.  Any way I can get my Android phone to treat the SD card as "default" location for saving files, including images from the camera, images recieved from MMS, apps, text messages, mails and application data?


I'm fresher than the prince to Linux, I've been following the instructions here:  (the link tells what I am generally trying to do).  I'm all up and running in VBox, and am at the curl install part, I may have done the curl part a week ago I forget. So I ran this command anyway:  danjah@danjah-VirtualBox:~$ sudo apt-get install curl   Result:  [sudo] password for danjah:  Reading package lists... Done Building dependency tree        Reading state information... Done curl is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   Then:  $ curl http://npmjs.org/install.sh | sudo npm_install=rc sh   Result:  fetching: {  gzip: stdin: unexpected end of file /bin/tar: Child returned status 1 /bin/tar: Error is not recoverable: exiting now It failed   Should I be concerned? How can I test curl? How can I avoid these situations? Perhaps there's a generic way of checking to see if I've already installed packages/etc?  Case specific answers and general advice most appreciated.  cheers, d


Disable line wrapping for output in the Terminal

I often read outputs in the terminal that get wrapped as they are too long. Since there is no way that I can modify the printed output, I need to let the Terminal allow for horizontal scrolling.  Is there a modification I can make to the default OS X Terminal to disable line wrapping and allow for horizontal scrolling?  Or do you know another alternative I can use?


I was using constructors. I notice that in TabWidget class. They used super sometimes. Again, sometimes this. public TabWidget(Context context) {     this(context, null); }  public TabWidget(Context context, AttributeSet attrs) {     this(context, attrs, com.android.internal.R.attr.tabWidgetStyle); }  public TabWidget(Context context, AttributeSet attrs, int defStyleAttr) {     this(context, attrs, defStyleAttr, 0); }  public TabWidget(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {     super(context, attrs, defStyleAttr, defStyleRes);      final TypedArray a = context.obtainStyledAttributes(             attrs, R.styleable.TabWidget, defStyleAttr, defStyleRes);     saveAttributeDataForStyleable(context, R.styleable.TabWidget,             attrs, a, defStyleAttr, defStyleRes);      mDrawBottomStrips = a.getBoolean(R.styleable.TabWidget_tabStripEnabled, mDrawBottomStrips);      // Tests the target SDK version, as set in the Manifest. Could not be     // set using styles.xml in a values-v? directory which targets the     // current platform SDK version instead.     final boolean isTargetSdkDonutOrLower =             context.getApplicationInfo().targetSdkVersion <= Build.VERSION_CODES.DONUT;      final boolean hasExplicitLeft = a.hasValueOrEmpty(R.styleable.TabWidget_tabStripLeft);     if (hasExplicitLeft) {         mLeftStrip = a.getDrawable(R.styleable.TabWidget_tabStripLeft);     } else if (isTargetSdkDonutOrLower) {         mLeftStrip = context.getDrawable(R.drawable.tab_bottom_left_v4);     } else {         mLeftStrip = context.getDrawable(R.drawable.tab_bottom_left);     }      final boolean hasExplicitRight = a.hasValueOrEmpty(R.styleable.TabWidget_tabStripRight);     if (hasExplicitRight) {         mRightStrip = a.getDrawable(R.styleable.TabWidget_tabStripRight);     } else if (isTargetSdkDonutOrLower) {         mRightStrip = context.getDrawable(R.drawable.tab_bottom_right_v4);     } else {         mRightStrip = context.getDrawable(R.drawable.tab_bottom_right);     }      a.recycle();      setChildrenDrawingOrderEnabled(true); }  Why they used this inside constructor? I haven't get any documentation or class or youtube video who worked with "this" inside constructor. We usually use super. So, this used for what?


I've just started out with coding and I'm looking at making a simple Higher/Lower game. I have a random start number, and a new number set up when the 'higher' or 'lower' buttons are clicked. What I want to say though is....  If the person clicks the higher button: If NewNumberLbl is greater than round1numberlbl. then do something. Thing is im getting the issue of not being able to say  If {NewNumberLbl.Text > Round1NumberLbl.Text} {}   because I'm getting the error:     Error    1   Operator '>' cannot be applied to operands of type 'string' and 'string'   so how do I go about fixing this and making it into a type int?  Ps I was trying to create new int's , associate them with the ints within the random number methods and then call them instead?  HELP!  public Round1() {     InitializeComponent();     RandomNumber(0, 12);     NewNumberLbl.Visible = true; }  public void RandomNumber(int min, int max) {     int num = new Random().Next(min, max);     Round1NumberLbl.Text = num.ToString(); }  public void RandomNumber2(int min, int max) {     int num2 = new Random().Next(min, max);     NewNumberLbl.Text = num2.ToString(); }  private void Round1HBtn_Click(object sender, EventArgs e) {     //RandomNumber2(0, 12);     //if (newNumber >= originalNumber)      //{      //} }


Order by filter does not apply on the search results

When I select Votes in the Order by filter, type in a search word and trigger the search, the search results seems to follow the Relevance filter instead of the Votes filter. I assume this is also the same for the other Order by filter.  EDIT #1: I think my question may be a duplicate or is related to this question:


Norm of an inverse operator: $\|T^{-1}\|=\|T\|^{-1}$?

I am a beginner of funcional analysis. I have a simple question when I study this subject.  Let $L(X)$ denote the Banach algebra of all bounded linear operators on Banach space X, $T\in X$ is invertible, then $||T^{-1}||=||T||^{-1}$? Is this result correct?


The union of a finite sequence of connected sets that meet pairwise is connected

Let $X_1,\ldots,X_n$ be a sequence of connected sets s.t. $X_i\cap X_{i+1}\ne\emptyset$. The goal is to show that $\bigcup_{i=1}^n X_i$ is connected. There is a theorem that says that if the intersection of a family of connected sets is nonempty, then their union is connected. I have to use this result to prove the above by induction. The case of $n=2$ is trivial. Suppose it holds for $n$. It would be sufficient to show that $\bigcap_{i=1}^{n+1}X_i\ne\emptyset$. But how to deduce this? For example take $n=3$. Then $X_1\cap X_2\ne\emptyset$ and $X_2\cap X_3\ne\emptyset$. Why would $X_1\cap X_2\cap X_2$ have to be nonempty? One strategy would be to show that empty intersection would force one of the $X_i$ to be disconnected. For this $X_2$ might seem like a good candidate. Obviously $X_1\cap X_2\subset X_2$ and $X_2\cap X_3\subset X_2$. But neither $X_2\cap(X_1\cup X_3)=X_2$ nor are $X_1\cap X_2$, $X_2\cap X_3$ open sets of $X_2$. What to do?