How do I make an alias to substitute single word in a piped command?

I use aliases a lot but right now only for use cases like alias i='sudo apt-get install -y'. I often would like to add an alias in the following form:  alias cmd='echo [something] >> /path/to/file' where I would like to substitute [something] with what I enter after the cmd.  I can obviously create a one-line script,save it somewhere and make an alias to that command but since I only want to substitute only 1 word in a pipe, is there a simpler way to do this?


Windows 10 upgrade kills grub and boot-repair doesn't help

I've just upgraded to Windows 10 from Windows 8.1 on my partitioned laptop that has Ubuntu 14.04 installed. Grub no longer appeared on boot so I ran boot-repair from an Ubuntu liveUSB. This didn't seem to have any effect. I've checked and secure boot is still disabled. Log from boot-repair:  So what's next?  Update: I've attempted to use chroot to update grub from my Ubuntu partition. update-grub runs successfully finding both linux and windows boot manager but the process still doesn't have any effect. grub-install complains that it cannot find EFI directory (but I have mounted everything correctly).  Update2: Just discovered that running efibootmgr after chroot into ubuntu shows ubuntu as not being in the boot order at all. I manually changed the order and rebooted to discover that the bootorder was reset. I run in windows: bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi But this has no effect either even after reporting 'Operation Successful'.


So, I have a 3D model torso. I made only half of the body, and then used the mirror modifier to generate the other half. However, now I want to modify it asymetrically. How can I turn off the mirror modifier, and still keep the other half?


How to perfectly align UV coordinates automatically?

I have this setup:   The mesh is only the visible top side, with a mirror modifier for the bottom part. Now I want to unwrap it like in the picture. I want the inner circle (red) to go to the top of the UV map...  The problem is that no matter what automatic unwrapping I use, it never works as intended.  The closest I've gotten was by using "follow quads", but that skewed the UV map a lot:   I used the result from the second image and manually adjusted the vertices with a lot of scaling and "align auto", but its very far from perfect as you can see in the first image.  Here's what I want exactly:   The uv vertices should be distributed evenly (horizontally) The middle line (yellow) should be on a "natural" y height (so there's no stretching)   I hope it's clear what I want to achieve. I'm sure there must be some automatic way to perfectly align and distribute the UVs in this way.  By the way: If you look closely you can see that I already placed a uv seam (aligned with the green y axis in the screenshot) but that didn't really help.


Manually classifying graduated data outside of range in ArcGIS for Desktop?

I have two shapefiles representing grids with values that are symbolized with graduated colors, shown below:    You can see that the two shapefiles encompass similar ranges of data, but assign slightly different colors to ranges in these data.  I would like to symbolize the ranges in each of the two shapefiles using the same colors for the same ranges, enabling easier comparison between the files and allowing a single legend to be used.  However, when I attempt to classify the ranges with a manual interval, ArcGIS forces what should be the uppermost range to also include the minimum value from the dataset.  You can see this in the "-81.64 - 10.00" range of the left data frame, below.  This forces the entire layer to be symbolized with this color.  Essentially, ArcGIS is requiring that the minimum value in the dataset be used as a value in one of the ranges.    Is there a way to circumvent this feature?


Let $u \in \mathbb{R}^m$ and $v \in \mathbb{R}^n$ and $u,v \neq 0$. Since $u$ is an $m\times1$ matrix and $v^T$ is a $1\times n$ matrix, the product $uv^{T}$  is a $m\times n$ matrix. Then:     $$\text{rank} (uv^{T}) =1$$   Just to illustrate: pick a random vector $u$ in $\mathbb{R}^4$, and $v$ in $\mathbb{R}^5$, for example: $u= (1, 2, 3, 4),$ and $v= (1, 2, 3, 4, 5)$. The rank of the matrix $m\times n$ is $1$ which can be checked by row-reducing. Chosing arbitrary vectors $u,v \neq 0$, the rank of the product matrix mxn of $uv^{T}$ is always $1$.  Why is this?   Any help would be greatly appreciated.


I open terminal browser (Chrome for example).  I write this:  var y = "11000011010101011";      "11000011010101011"   parseInt(y)      11000011010101012   I expected 11000011010101011 but it returns me 11000011010101012.  Does anybody know why?


Intuitive reason for the $T^4$ term in Stefan Boltzmann law

The Stefan Boltzmann Law gives a relation between the total energy radiated per unit area and the temperature of a blackbody. Specifically it states that, $$ j= \sigma {T}^4$$ Now using the thermodynamic derivation of the energy radiated we can derive the above relation, which leads to $T^4$. But is there any intuitive reason for the $T^4$ term?


How can I schedule a daily backup with SQL Server Express?

I'm running a small web application with SQL server express (2005) as backend. I can create a backup with a SQL script, however, I'd like to schedule this on a  daily basis. As extra option (should-have) I'd like to keep only the last X backups (for space-saving reasons obviously) Any pointers?  [edit] SQL server agent is unavailable in SQL server express...


#!/bin/sh  if [ $(ls sample01.log | wc -l) = 1 ] then echo "File Found" > lsOutput.log else echo "File Not Found" > lsOutput.log fi   But if sample01.log is not already existing my code already returns the error:  ls: cannot access sample01.log: No such file or directory   And the code will not run anymore. The File Not Found will not be displayed anymore. I wanted to capture that error to file (No such file or directory) so each time such error occurs, it is written and documented on the log file.  Thank you.


macOS not allowing me to change file permissions though I am the sole user/admin

macOS is not permitting me to change the file permissions of any file! whenever I try to add the admin which is me, finder gives me this error:  you don't have necessary permission - operation not permitted  In spite of the fact that I am the sole user  I have tried chmod, again same error - operation not permitted  The permissions are as follows!    Screenshot of the operation not permitted error I getting


Ubuntu Dock adds a new icon when I open certain programs

I recently added Terminator (terminal emulator) to my system. When I open Terminator (whether by clicking its icon in the launcher or by hitting a keyboard shortcut), a new icon appears in my launcher (Ubuntu Dock).    What can I do to    have only a single icon and  just activate the existing Terminator window if Terminator is already running?    I don't have this problem with gnome-terminal.  I'm running Ubuntu 18.04.4 LTS.  I looked at , but it doesn't apply: my $HOME/.local/share/applications doesn't include any desktop files for Terminator.  Here's the contents of my /usr/share/applications/terminator.desktop:  [Desktop Entry] Name=Terminator Comment=Multiple terminals in one window TryExec=terminator Exec=terminator Icon=terminator Type=Application Categories=GNOME;GTK;Utility;TerminalEmulator;System; StartupNotify=true X-Ubuntu-Gettext-Domain=terminator X-Ayatana-Desktop-Shortcuts=NewWindow; Keywords=terminal;shell;prompt;command;commandline; [NewWindow Shortcut Group] Name=Open a New Window Exec=terminator TargetEnvironment=Unity   Update: I've found that I can avoid some of this problem by hitting the windows key, typing 'Terminator', right-clicking 'Terminator', and selecting 'Add to favourites'. ('Add to favourites' was never an option when right-clicking the Terminator icon in the launcher itself.) However, when I hit Ctrl+Alt+t to open a terminal, it still creates a new icon in the launcher.


Does age affect a Transformer's healing (repairing) capacity?

In humans, the younger heal faster than the elderly. Is this also the case with Transformers?   Is there any evidence that younger Autobots/Decpticons heal (repair?!) quicker than their older friends?  I came up with this question from this post on a discussion regarding Bumblebee's recovery after the events of the first Transformers film. Bumblebee loses his legs in the first film, and yet is completely healed in the second part. However, Jazz, doesn't quite recover from a similar fate.  Also, in Revenge of The Fallen we can see that JetFire is in a really bad shape, seemingly because of his age.  The link to the discussion:


Specifications:  samsung mini laptop  model code NP-N100S-E01              N100S-E01 RAM= 4GB  HARD DISC=320 GB  PROCESSOR= INTEL ATOM PROCESSOR   ATOM PROCESSOR N2100  I am installing Ubuntu 13.x OS but it is too slow , if I give any command it works after 2 to 3 min. If I can close any windows, it will close step by step slowly slowly. Why is it this much slow? This is the 3rd or 4th time I am installing Ubuntu on my laptop and I always had this problem. Please help me with your solutions.


Children's Novel, Early 2000's, Talking Tattoos

I can't remember terribly much about the book. I think it was fairly large for a child.  The main character is a teenage girl. She is part of a family/clan who all have very specific superpowers. They range in intensity and specificity, but hers was on the low end. Tattoos could speak to her, and could tell her the inner thoughts of the person to whom they were attached. This worked even with temporary tattoos and ink drawn on skin.  I remember a minor subplot of her dealing with her attraction to a boy that gets drawn into whatever the major conflict is, but has no powers (wrong place/wrong time deal).   The major source of transportation is a yellow ex-school bus that is a main feature of the family. It also appears on the cover.


Questions regarding a solution to likelihood ratio test for two-sample exponential distribution

I was viewing the solution provided by StubbornAtom in the following question:   Specifically, some of the steps aren't clear to me:    When computing $\lambda(\bf{x}) = \frac{sup_{\theta_1 = \theta_2} L(\theta_1, \theta_2)}{sup_{\theta_1,\theta_2} L(\theta_1, \theta_2)}$, as outlined by the user, one can show that the MLE under $H_0$ is given by $\hat{\theta} = \frac{\sum_{i = 1}^{n_1}x_i + \sum_{i = 1}^{n_2} y_i}{n_1 + n_2} = \frac{n_1\bar{x} + n_2\bar{y}}{n_1 + n_2}$, and the MLEs of $\theta_1$ and $\theta_2$ are given by $\hat{\theta_1} = \bar{x}$, $\hat{\theta_2} = \bar{y}$, so that one gets likelihood ratio given by $\lambda(\bf{x}) = \frac{L(\hat{\theta}, \hat{\theta})}{L(\hat{\theta_1}, \hat{\theta_2})}$. However, the user then claims that, after simplification, this likelihood ratio becomes $\lambda(\bf{x}) = \text{constant} \cdot(\frac{n_1\bar{x}}{n_1\bar{x}  + n_2\bar{y}})^{n_1}(\frac{n_2\bar{y}}{n_1\bar{x}  + n_2\bar{y}})^{n_2}$. How does the user get this simplified version of the likelihood ratio ?  How does the user see that $2n_1\bar{X}/\theta_1 \sim \chi_{2n_1}^2$ and $2n_2\bar{Y}/\theta_2 \sim \chi_{2n_2}^2$ ?  Where does the conclusion that $\lambda(\bf{x}) < c \iff$ $v < c_1$ or $v > c_2$ come from ? Also, in a formal hypothesis test, does this give us our rejection region ?    Edit: To expand upon my first question, here is what I get when computing the likelihood ratio :   $$\lambda(\bf{x}) = \frac{\bar{x}^{n_1}\bar{y}^{n_2}}{\left( \frac{n_1\bar{x} + n_2\bar{y}}{n_1 + n_2}\right)^{n_1} \left( \frac{n_1\bar{x} + n_2\bar{y}}{n_1 + n_2}\right)^{n_2}}$$  Thank you for your time!


Finetuning movement based on gradual rotation towards a target

I have an object which moves towards a target destination by gradually adjusting its facing while moving forwards. If the target destination is in a "blind spot", then the object is incapable of reaching it.  This problem is ilustrated in the picture below. When the arrow is ordered to move to point A, it will only end up circling around it (following the red circle) because it is not able to adjust its rotation quickly enough.     I'm interested in a solution where the movement speed is multiplied by a number from 0.1 to 1 in proportion to necessity. The problem is, how do I calculate whether it is necessary in the first place? How do I calculate an appropriate multiplier that is neither too small nor too large?      void moveToPoint(sf::Vector2f destination) {         if (destination == position) return;          auto movement_distance = distanceBetweenPoints(position, destination);         desired_rotation = angleBetweenPoints(position, destination);          /// Check whether rotation should be adjusted         if (rotation != desired_rotation) {             /// Check whether the object can achieve the desired rotation within the next adjustment of its rotation             if (Radian::isWithinDistance(rotation, desired_rotation, rotation_speed)) {                 rotation = desired_rotation;             } else {                 /// Determine whether to increment or decrement rotation in order to achieve desired rotation                 if (Radian::convert(desired_rotation - rotation) > 0) {                     /// Increment rotation                     rotation += rotation_speed;                 } else {                     /// Decrement rotation                     rotation -= rotation_speed;                 }             }         }          if (movement_distance < movement_speed) {             position = destination;         } else {             position.x = position.x + movement_speed*cos(rotation);             position.y = position.y + movement_speed*sin(rotation);         }         updateGraphics();     }


Is it possible to search for punctuation/special characters?

I tried to find a related question here, but was unsuccessful.  Someone on SO asked ... I tried searching SO and was presented with the search options page. Even Google fails at this search.  So my question is, is there some way to search for an exact word (in quotes) that won't cause it to fail?


Show that $d_1=\min(d(x,y),2)$ is a metric space if it is given that $d(x,y)$ is a metric space.   I am stuck at the triangle inequality part, to show that   $d_1(x,z)\leqslant d_1(x,y)+d_1(y,z)$ i.e to show that:   $$\min(d(x,z),2)\leqslant\min(d(y,z),2)+\min(d(x,y),2)$$  It is not a duplicate of  "brute force" question, maybe it is a duplicate of , can someone please post another answers before you are colsing as duplicate, I promise to vote.


Solve the integral $\frac 1 {\sqrt {2 \pi t}}\int_{-\infty}^{\infty} x^2 e^{-\frac {x^2} {2t}}dx$

To find the Variance of a Wiener Process, $Var[W(t)]$, I have to compute the integral $$ Var[W(t)]=\dots=\frac 1 {\sqrt {2 \pi t}}\int_{-\infty}^{\infty} x^2 e^{-\frac {x^2} {2t}}dx=\dots=t. $$ I've tried integration by parts to solve the integral but end up with $$ \dots=\frac 1 {\sqrt {2 \pi t}} \left(0 - \int_{-\infty}^{\infty} -\frac {x} {t} \cdot e^{-\frac {x^2} {2t}}\cdot \frac {x^3} 3 dx\right), $$ which is even worse and probably wrong.  Can anyone please help me compute the first integral and show how it becomes equal to $t$?  (I know that the Variance for a Wiener Process (Standard Brownian motion)is defined as $t$ but want to prove it with the integral above.)


Let A and B be countable sets. Is there any function f such that a certain condition holds for an uncountable number of functions g?

Let $A$ and $B$ be countable infinite sets. Is there any function $f:A\rightarrow B$ such that the number of functions $g:B\rightarrow A$ with property that $g\circ f=\mathrm{id}$ but $f\circ g\neq\mathrm{id}$ are finite, countable infinite or uncountable infinite?


Auto start PuTTY from command-line with a specific startup path

I start multiple PuTTY sessions everyday with a specific path in each session.  I have made a command in batch file as  Start "c:\putty.exe" abc@1.1.1.1 -pw abc123 22   How do I proceed further to open PuTTY directly in a specific remote directory.  I have 20 sessions.  Please assist.


Regex - Replace input and output as decimals only?

If I have an input such as any one of the following, or even something else...(these are longitude and latitude)  123.4567 N and 123.456789 W  123.45678 and -123.456789  or something like  1sd48.123457 and -1s44.456789  How would I use regex to only get the number and decimal out of it?  One express that I use is [A-Za-z]", "" which remove all the letters. What if the input contains other weird characters? I only want the number and decimal to be left behind once regex is done.


$\mathbb{Z}_{p^2}$ and $\mathbb{Z}_p\times \mathbb{Z}_p$

I try to prove if de groups $\mathbb{Z}_{p^{2}}$ and $\mathbb{Z}_p\times \mathbb{Z}_p$ are isomorphic. I was using the fact that $ \mathbb{Z}_ {mn} $ is isomorphic to $ \mathbb{Z}_m \times \mathbb{Z}_n $ if and only if $ (m, n) = 1 $ taking $ m = n = p $,in this case as $ p $ is a prime greater than 1, then $ (p, p) = p \neq 1 $ and so I don't have the isomorphism, but I don't know if this is true.


jQuery Appended button click event handler not working

I am new to jquery, I have a button click event which works well but when i use the append() to append the button inside div. The click event doesn't work  My code below:  $('#button').click(function() {     alert('works');     $('#element').show("slow"); });


Best way to select a subset of items in a long list

One of our clients wants us to build a web application to share information about the magazines he publishes. Each edition of a magazine contains a variable amount of advertisers. These advertisers come from a central pool of advertisers. This pool contains (at the moment) about 150 advertisers. Each edition of a magazine contains a subset (about 70-80) of these advertisers.  Our client wants us to come up with a way for him to add 70-80 advertisers from this list of 150 to an edition of a magazine. It needs to be as fast as possible, as easy as possible and as intuitive as possible.  What would be an ideal solution here? I was thinking about something in the lines of the image below.   List of available advertisers. List of selected advertisers. Advertisers have a delete button. Textbox with auto-suggest for advertisers in the list on the left. <Enter> removes the advertiser from the left list and adds it to the right one. Textbox gets cleared and remains focus.   My colleagues suggested drag-and-drop or just one list with a checkbox for each advertiser, but those approaches force the user to do a lot of searching and clicking. With my approach the user can just keep on typing.  Any other suggestions for this situation?


I have several power sources (up to 4) going into a circuit and I would like to be able to power it with "automatic" selection. I have looked up power OR-ing and diodes are dissipating more power than I can spare so it was suggested to use P MOSFETS because they have a lower Z.  The problem is that I can't seem to make them work even in simulation and I see a significant voltage drop. Can anyone spot the error?  EDIT: Additional information:   Input voltages might be 3.3V or 5V with +/- 5%. Current consumption from the sources can not exceed 5mA. Power source selection is done while the sources are plugged in and are not expected to change during the operation of the device. When the usage is done the sources are simply unplugged. The solution sought after is passive in order to be low cost. $2 is parts is fine, $5 is probably not. Output voltage should not be under 3V.          – Schematic created using   The main difference between my question and the one suggested as having a possible answer is that I have 4 power inputs, not 2.


how can i install adobe flash player 11.tar.gz file on ubuntu 13.04

I'm a new user of linux and intalled ubuntu 13.04 and i don't know how to install tar.gz file there. I want to install adobe flash player to play videos on firefox browser. Please give me solution


Would it be possible to update the StackExchange button drop-down to include scalable vector graphics (SVG) favicons for each site?    I didn't notice any mention of this during the  and  phases.


Inset not even, even with object scaled in object mode

I'm scaling my rectangle in object mode as suggested, and then insetting two faces in edit mode. Yet the inset is still uneven. I can only guess it's because I'm using decimals. I'm scaling thus: x: 2.92 y: 6.2 z: 0.35  If it really isn't possible to inset this evenly, what are the alternatives to getting an accurate inset?


So, recently, perhaps out of sheer boredom, I have decided to go around and collect scores of > 200 on different SE websites. Some I have gotten reputation through answers, some through questions, and, in the case of skeptics, I got the last 20 points for editing out people's mistakes (because I'm just not that skeptical).  This does leave me wondering though, how many of these sites will give me icons on my flair?    And now, your obligatory .


K-means : choose Optimum number of clusters based on graph

I've come into a situation where I dont understand How to choose the number of clusters. The WithinSS increases suddenly after 6. How/What do I interpret of this graph ? Background : I've applied PCA on the data set and used 4 PCs. The clustering is done on the PCs. I'm using K-means cluster algorithm in R.


I'm struggling to understand why the range of tangent function is equals to all real numbers. Because tangent = opposite/adjacent right? But the sum of the opposite^2 + adjacent ^2 must be equal to the hypotenuse^2. So doesn't that put a limit on the value of denominator (and the numerator) of the ratio/tangent, therefore putting a limit on the range of the function?   Also, I don't get how the tangent function is able to produce every single real number. Because doesn't the fact that opposite^2 + adjacent ^2 must be equal to the hypotenuse^2 prevent the tangent function from producing certain numbers? Because for any given opposite value, the adjacent value can't just be any integer. It's square must add up with the square of the opposite to equal hypotenuse squared. Doesn't that prevent the tangent function from producing certain numbers, because there are only so many combinations of opposite values and adjacent values that can occur?   Can you please explain to me why all possible real numbers can by formed by the tangent, even with these limits? Can you please explain why this is not the case as simply as possible, without using calculus (because I haven't learnt it)? I realize when you plot it, it will go up to infinity. But I want to understand why this is the case, without using calculus


Why does a fabric become darker when is wet?

When a cloth is wet, it appears to be darker than it actually is. why does its colour change to a darker shade?


I have installed the Ubuntu OS in my PC. but the adapters are not working properly in the Ubuntu OS so I want to uninstall this. due to installation is completed in the same windows partition of the hard drive (dual boot feature). my windows OS is original that have licence key, I don't want to corrupt the windows. what can I do for uninstall safely without any damage of windows?


Error 001156. increasing the length of text limit

I'm fairly new to ArcGIS for Desktop and i want to import my excel table to my personal gdb but i end up getting an  and my import fails.   I soon found out that it was the lengthy structural descriptions in my table.   Is there anyway that I can increase the text cap within ArcCatalog.   im not really good with Python either.


Short story where rain only on one side of the house gives away fake world?

In the mid-90s I read a short story about a guy freaking out at his wife and therapist because as they were leaving the house to go on a train trip to New York City, he went back inside to grab something and noticed that out the back window it was raining, while out the front door it was clear and sunny.  This confirmed his existing paranoia that everything in his world was fake, and everyone he knew was either a robot or an actor, participating in a massive effort to fool him and keep him from remembering who he really was.  He eventually calms down and agrees to go on the trip. The story ends      with a twist where the wife and therapist have a conversation something like, that was a close one, he almost remembered. Now strike the house set and assemble the New York set.   Can anyone identify this story? It was probably in a magazine or anthology, either sci-fi or speculative fiction.


Conversion of character to String not working

String s="rahul".substring(0, 1);   s==Character.toString('r') //2nd   2nd evaluates to false but it should evaluate to true since i am converting 'r' to a String. Why i am getting false as a result?  By doing this i am able to make the condition true   //char s=name.charAt(0);  // s=='r'   ;


I would like to block sites using iptables. How do I go about this, and how do I ensure that the iptables rules are saved?


How to know the time/date of when the packages are installed?

I installed and removed so many packages on my system.But it don't know when it was installed and when it was removed.  I want to know when the packages are installed on my PC.


How does RAID controller know which bits are the right one?

If I have a RAID 1 and some bits on one hard disk flip due to error, how does the raid controller know which of the two disks contains the correct bits?


Duplicate Modifier parameters in other objects?

I have multiple objects, all of them are almost the same but scaled or with little modifications, i applied a modifier to one, but i need the same exact parameters to all the other objects, it is possible to duplicate those parameters on the other objects?  Thanks in regard.


Should I publish findings not from my field?

I have some findings (new but nothing ground-breaking) from my master thesis in the field of A which I could publish if I spent more time on the topic. However, my PhD and future specialization is going to be in B. So spending time in A and particularly trying to publish in the field may be a distraction from the B. When applying for postdocs and tenured positions, is any researcher/application assessor going to appreciate my publications from a different field?  I know one mathematician from Princeton. He comes to workshops and always solves some problem. He would never publish it (even if nobody else did) because it is a distraction from what he is doing. Then other participants write his ideas and publish it with his name as coauthors. On the other hand, my personal tutor told me that any publications are good as they demonstrate the researcher's independence and capability. Hence it seems, that unless a person is a top researcher in the field, publishing in other fields is not a distraction, but a plus.


My sir says it is better to write 0==var(some variable) instead of var==0?Why is it so?

i actually just started learning C++ and i was used to writing (var==0) like this in C but my C++ sir told me 0==var is more better way when i asked him why he told me you find out yourself so igoogled this thing but didnt find any info regarding this so im here to ask it anyone can help?


Exposure in the viewport is drasticly different than the render

Okay, I am used to slight differences between my view port and the test/final renders, but this is really odd. I have never had the exposure be this far off!  What am I doing wrong here?    I am on 2.79a. using filmic. And, I think, just my usual settings. I have tried multiple hdrs and they all are wicked bright in this file.    When I put the bullets into a new file and render with the same settings, the two match.  What did I bump with my elbow by accident?


Can I trust apps downloaded from Aptoide?

I just downloaded an app from there that is suppose to allow Screen Off Writing. After installing, it was anything but that. How much checking does Aptoide do on apps? Can I trust apps I get from there?


After apt-get update I get the following errors, what do they mean and what I can do?  http://security.ubuntu.com/ubuntu/dists/xenial-security/multiverse/dep11/Components-amd64.yml Could not open file /var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_xenial-security_multiverse_dep11_Components-amd64.yml.xz - open (13: Permission denied)*  E: Failed to fetch http://ppa.launchpad.net/apandada1/brightness-controller/ubuntu/dists/xenial/main/binary-amd64/Packages  Could not open file /var/lib/apt/lists/partial/ppa.launchpad.net_apandada1_brightness-controller_ubuntu_dists_xenial_main_binary-amd64_Packages.xz - open (13: Permission denied)* E: Some index files failed to download. They have been ignored, or old ones used instead.* Err:26 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 DEP-11 Metadata Could not open file /var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_xenial-security_multiverse_dep11_Components-amd64.yml.xz - open (13: Permission denied)*


Ubuntu 14.04 installer does not detect Windows on drive, missing "Install alongside" option

Firstly some information about my computer. I just have a C: drive and a D: drive. My C: drive just has a bunch of programs and my D: drive has all my work.  I am running windows 7 and I'm trying to also have Ubuntu on my desktop too.   I burned a ubuntu14.04.1.iso file onto a DVD. Then I rebooted my desktop and changed my boot options to boot from the DVD. It loaded ubuntu and asked me to pick my language etc etc but then these dialogs came up and I didn't know what to choose...     I didn't want to pick the first option because I was scared it might delete my windows or something so I clicked on Something else and got this window.    Now from this window I had no idea what was going on so I just quit the installation, took the DVD out and went back to windows. How am I supposed to proceed?  I remember seeing a post that said I should get an option like this, which allows me to install ubuntu with windows 7 but I never got it.    Any help is appreciated.


Is it possible to get valuetypes of fields of a JSON object without using getGlobalDescribe()

I have the following piece of code to get the valuetype. Is it possible to do this with getSObjectType() instead of getGlobalDescribe() since this is a lot slower. Apex Map<String, Object> fieldMap = (Map<String, Object>)JSON.deserializeUntyped(jSONSObject); Schema.SObjectType targetType = Schema.getGlobalDescribe().get(sObjectApiName); SObject newSobject = targetType.newSObject(); Map<String, Schema.sObjectField> targetFields = targetType.getDescribe().fields.getMap(); for (String key : fieldMap.keySet()) {     Object value = fieldMap.get(key);     Schema.DisplayType valueType = targetFields.get(key).getDescribe().getType();     if (value instanceof String && valueType != Schema.DisplayType.String)     {         String svalue = (String)value;         if (valueType == Schema.DisplayType.Date)             newSobject.put(key, Date.valueOf(svalue));         else if(valueType == Schema.DisplayType.DateTime)             newSobject.put(key, DateTime.valueOfGmt(svalue));         else if (valueType == Schema.DisplayType.Percent || valueType == Schema.DisplayType.Currency)             newSobject.put(key, svalue == '' ? null : Decimal.valueOf(svalue));         else if (valueType == Schema.DisplayType.Double)             newSobject.put(key, svalue == '' ? null : Double.valueOf(svalue));         else if (valueType == Schema.DisplayType.Integer)             newSobject.put(key, Integer.valueOf(svalue));         else if (valueType == Schema.DisplayType.Base64)             newSobject.put(key, Blob.valueOf(svalue));         else             newSobject.put(key, svalue);     }     else         newSobject.put(key, value); } insert newSobject;


Rounding floating point numbers to closest multiple of 0.005 with rounding to 3 decimal digits is producing a weird output

I wrote a small piece of code that rounds a number to the closest multiple of 0.005 but it produces a weird output, that I didn't expect. I am using Python version 3.7.3  Here is the code:  number = 1.639 print(5 * round(number / 5, 3))   Output  1.6400000000000001   Expected output  1.64   Check this  for detailed output on different values.  Can anyone tell me why this happens?


How we distinguished charges and named them so?

Benjamin Franklin thought of electricity as a fluid, and said when there is abundance of fluid it is positive, stating positively charged fluid flows in electricity. Further, Thomson found that negatively charged particles flow and not positive ones, as the cathode rays exhibited characteristics of negatively charged particles. But how we first clarified what is what? How we distinguished between two types of charges and established their properties? Positive charges repel positive charges and attract negative ones. But from there we can't say whether the particle we are trying to understand is positive or negative. So how Thomson said electricity is flow of negative charges?


Is is true that $$\lvert a+b\rvert^2\geq (\lvert a\rvert-\lvert b\rvert)^2, \quad \forall a,b\in\mathbb{R} ?$$ Is there any related result, related to this inequality?


Why has cron stopped processing commands?

My Solaris 11 cron appears to have stopped working.  Here is the last output of a cron job I run:  -rw-r--r--   1 root     root          60 Jul  2 20:30 locked_passwords.txt   I setup a test, like this:  * * * * * touch /tmp/testing.txt   It never touches the file  I checked if the service is running:  svcs cron STATE          STIME    FMRI online         Mar_09   svc:/system/cron:default   I truss the file and see this:  root   532     1   0   Mar 09 ?           3:08 /usr/sbin/cron pfexec truss -f -p 532 532:    pollsys(0xFC7FC1A8, 1, 0xFC7FC750, 0x00030414) (sleeping...)   Is my cron process sleeping? why?   UPDATE: I have restarted cron 2 times and it continues to stop. The majority of my log reads:  ! c queue max run limit reached Mon Jul 24 12:53:00 2017  ! rescheduling a cron job Mon Jul 24 12:53:00 2017  ! c queue max run limit reached Mon Jul 24 12:53:00 2017  ! rescheduling a cron job Mon Jul 24 12:53:00 2017  ! c queue max run limit reached Mon Jul 24 12:53:00 2017  ! rescheduling a cron job Mon Jul 24 12:53:00 2017    How do I diagnose this situation?


Prove convergence of sequence defined by $a_{n+1}=\sqrt{3+a_n}$

$a_1= \sqrt3 $ , all $n\geqq1$, $a_{n+1}=\sqrt{3+a_n}$, prove convergence of sequence ${a_n}$   How to prove... I don't know..


Where is the good place to ask Facebook policy related questions?

While I was searching for Facebook's developer policy questions on Stack Exchange, I found  .  After seeing that, I'm asking myself: Where would be the good place to ask a question about the  on Stack Exchange?


How can I delete all web history that matches a specific query in Google Chrome

In Google Chrome, is it possible to delete all search history that matches a specific query (for example, en.wikipedia.org)?


Do you recommend I take a course in Abstract Algebra before or after a course in Linear Algebra? I have never taken any abstract mathematics courses before. So this would be my first one.


Can Aberrant Mind Sorcerer replace a spell from the Psionic Spells feature at 1st level when the Sorcerer level is gained through multiclassing?

Psionic Spells is a 1st level Aberrant Mind Sorcerer feature that gives a fixed list of spells known at specific levels, and on 1st level the feature gives arms of Hadar, dissonant whispers, and mind sliver. This feature also has the following rule for replacing spells from the Psionic Spells list:  Whenever you gain a sorcerer level, you can replace one spell you gained from this feature with another spell of the same level. The new spell must be a divination or an enchantment spell from the sorcerer, warlock, or wizard spell list.  Given you gain a level at 1st level, and given you gain this feature at 1st level, does that mean you could then replace one spell gained from the Psionic Spells list with another spell at 1st level? (i.e. arms of Hadar for Tasha's hideous laughter) (In my very specific case I'm multiclassing into Sorcerer; if that matters.)


I have the a series of markdown files in the working directory:  $ ls *.md csv_reader.md  egrep.md  find.md  found_pdfs.md  osPathSep_help.md  readme.md  smtplib_help.md  today.md   I want to remove them except "today.md"  #!/usr/local/bin/bash for i in ./*.md ; do     if [[ $i != "today.md" ]]; then         echo $i     fi done   Run it and get   $ bash bash/remove_files.sh ./csv_reader.md ./egrep.md ./find.md ./found_pdfs.md ./osPathSep_help.md ./readme.md ./smtplib_help.md ./today.md   Nonetheless, the structured commands are not handy in the command line, how could I accomplish such a task with shorter commands


Nautilus 3.6 - look for filenames in current directory before general search

Is there a way to set the new Nautilus in Ubuntu 13.04 to have an old behaviour I liked, namely:   Type something An item matching that name will be selected (pretty much like using the Tab key in a terminal)   This used to be virtually instant and quite convenient, but now it does a deep search across a variety of parameters when you start typing.   The deep search is useful, but by far the more frequent task is to select something within the current directory by name, which the old function satisfied perfectly.  Is there a way to restore this behaviour? I couldn't find an option in Preferences.  If possible, I'd like to avoid a roll-back as I hate to fight progress, but if that's the only option I'll take it.


Convex function of independent vs. correlated random variables

Let $f\colon\mathbb R \to \mathbb R$ be convex and $X_1,\ldots,X_n$ be i.i.d. random variables. Is it true that $\mathbb E f(n\cdot X_1) \ge \mathbb E f(X_1 + \cdots + X_n)$? It seems like one approach is to show that $X$ is a mean-preserving spread of the average of $n$ independent copies of $X$. Is there a name for this sort of result? (Also, is there a name for this sort of inequality?)


What are some practical examples of a constant current source?

Please don't state the obvious that nothing is a perfect constant current source.  And please do not give examples of how to create them from components.  I looked at this  which stated the obvious - that you can not have a perfect current source.  So when I say constant current source, I am not referring to the mathematical concept used in circuits, but "natural" components that provide a close approximation to this. Key word is approximation.  A bit of research pulled up one interesting example which was a solar cell.  Is this a valid example?  A google search pulls up a similar Quora question . Which gave the example of a solar cell.  This is a more technical site and I was looking for a more engineering answer not a mathematical or laymen's answer.  Thanks.


I am trying to create links from \index commands to corresponding index entries. When hyperref package is loaded, page numbers in index are, by default, linked to the page on which \index command for that entry appears. But it does not work another way around (forward-linking).  When checking correctness of index, it would be useful if I could click on indexed word in PDF (#2 in ati macro in MWE below) and it would take me to the place in the index in which corresponding entry appears. Actual index has many pages, so it is not sufficient to just determine page number where index starts, because given entry can actually appear few pages later.  My first idea was to add label to index entry and then create hyperlink from indexed word. Attempt in doing so is reflected in commented atiwl macro below. Unfortunately, this didn't compile. (Even if it did, there would be a problem with adding unique labels to each entry). Second idea to test if using label could work was to add one label directly to .ind file, like this:  \item Index entry 1, \hyperpage{1}\label{linkedentry}   Altought it compiled, resulting link did not work in PDF.  MWE:  \documentclass{book} \usepackage{blindtext} \usepackage{makeidx} \makeindex \def \ati#1#2{#2\index{#1}} % "Add to index" macro % \def \atiwl#1#2{\hyperlink{linkedentry}{#2}\index{#1\label{linkedentry}}} % "Add to index with label" macro \usepackage{hyperref} \begin{document} \blindtext  Some text and \ati{Index entry 1}{indexed term}.  \blindtext  Some text and \ati{Index entry 2}{another indexed term}.  % \blindtext  % Some text and \atiwl{Entry with label}{some indexed text}.  \printindex  \end{document}   I am not sure if this is relevant to the solution, but I use texindy as index processor. And actually, I use splitidx package and accompanying splitindex command line tool, because I need many indexes. In MWE, though, I used makeidx to make it more universal for other people with the same problem.  Is there any way to create link from #2 in ati macro to corresponding index entry?


Pronunciation Deleting /t/ Between Consonants

When I pronounce the phrase:   "Look, it's the first day. I don't wanna be late."  I think that the /t/ in the words "first" and "don't" can be deleted. Am I right? I'm talking about casual speech.  Below is the phonetic transcription. I stressed the content words (the bolded words) without shifting stress for special meaning. I deleted the /t/ in both words, though.  lʊk, ɪts ðə fɜrs deɪ. aɪ doʊn wʌ nə bɪ leɪt.


How to prove that limit doesn't exist using epsilon-delta definition?

It is easy to prove the limit exists, all we have to show is there exists a relationship between $\delta$ and $\epsilon$. But how are we supposed to prove limit doesn't exists? The problem is when we are proving for a limit we already know what the limit is and with that, algebra is all that's needed.   Please show through an example (you may show that $\lim_{x\rightarrow0} \frac{1}{x}$ doesn't exist)  If possible please use the explanation scheme that is used by this answer


Can't install Wine on ubuntu studio 19.10

So, I have Ubuntu Studio ver. 19.10. I'm trying to install Wine so I can run Windows VSTs (Toneforge, Odin II Guitar, Mjolnir Drums). However, whenever I type  sudo apt install --install-recommends wine-stable   I get the error  E: Malformed entry 58 in list file /etc/apt/sources.list (Component) E: The list of sources could not be read E: Malformed entry 58 in list file /etc/apt/sources.list (Component) E: The list of sources could not be read   I also have the source, but I can't figure out how to build it. Can anyone help?


Wifi speed dropping for HP Pavilion 15-n097sa

I recently moved to Ubuntu 14.04 from Windows 8.1. I have quite a problem with my WiFi speed dropping. When I checked it at speedtest.net it went from 30Mbps to less than 1Mbps then goes up again to about 18Mbps in just a few seconds. That's happening all the time making video calls impossible as well as streaming music and watching videos on YouTube. The problem is not existent in when running Windows. I have a "Integrated 10/100 BASE-T Ethernet LAN" with just the stock driver on a HP Pavilion 15. The power management of wlan0 is off. I have almost no knowledge of the terminal so if you help me please explain it like I'm a complete noob (which is true). Cheers!    lspci -vnn | grep Network:  08:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8188EE Wireless Network Adapter [10ec:8179] (rev 01)


Name of a sci-fi story about cannibalism

I remember reading a story in which unwanted infants were sold as food in open markets, although I don't think that was the main theme of the story.  It was published in a monthly science fiction magazine (i.e. Analog, Fantasy & Science Fiction, Astounding Stories, etc), so it could have been a short story, novella, or serial.  It was in English.  I think it was in the 1970's, but I've been reading science fiction since 1954 and it could have been anytime since then.    I thnk they were sold alive. I don't know why they were sold.  They were infants, i.e. under a year old.  The planet was not Earth.  The inhabitants were intelligent, but I don't recall whether they were native or colonists.  I remember a scene in which a woman was grocery shopping and checked an infant's leg for tenderness by squeezing it.


A published article () contains these 2 sentences:     Moreover, misreporting may be caused by the application of incorrect rules or by a lack of knowledge of the statistical test. For example, the total df in an ANOVA may be taken to be the error df in the reporting of an $F$ test, or the researcher may divide the reported p value of a $\chi^2$ or $F$ test by two, in order to obtain a one-sided $p$ value, whereas the $p$ value of a $\chi^2$ or $F$ test is already a one-sided test.    Why might they have said that?  The chi-squared test is a two-sided test.  (I have asked one of the authors, but gotten no response.)  Am I overlooking something?


Function $ f $ defined on unit disk $ D $ has real values on $ \partial D $, why is $ f $ real valued?

I have a function $ f $ that is analytic on the unit disc and real valued on the unit circle. I want to prove that $ f $ is real valued on the unit disk.   I know that I need to use the identity theorem, but I am unsure how. The only thing I can think to do is:  Let $ g $ be some real valued function s.t. $ g(e^{i\theta}) = f(e^{i\theta}) $ then $  f = g $, but this argument obviously isn't sound. Any help would be greatly appreciated.


Do adjustable length lightsabers exist in Star Wars universe?

I always see blades of lightsabers have more or less the same length (dual blades are double). Why is that?  Can't a longer or shorter length be advantage in some case?    I am NOT expecting infinite length lightsabers (due to energy issues), but have we seen adjustable length blades in the Canon?


Eekkkk! Apparently Gaming.SE does not exist (aka Site Search in topbar has trouble finding some sites)

NOTE: This issue was first brought up in , but since that post is now locked, I want to initiate a proper feature request to update this functionality.   The site search built into the new top-bar is a great feature, but as discussed in , it is incredibly unforgiving.  In particular you run into problems trying to find some sites by the URL.    When using the search, the feature only looks in the site name and the subtitle/description for the site.  Where this becomes a problem is for sites that had graduated and have received their own name, and the URL no longer matches the site name.  For example, trying to find Gaming.SE:    If you know Gaming.SE existed, but did not know the name was "Arqade", you might run into problems.  "Gaming" yields no results.  If you searching for "game", you do find it because "videogamers" (sic) is part of the description, however, it buried under "Game Development", "Board & Card Games", and "Role-playing Games", so you don't see it unless you scroll down.  You encounter a similar problem with several other sites:    if you are searching for "Seasoned Advice", you won't find it with "Cooking" since it is not referenced in the site's description. In fact, this one is impossible to find as "food" isn't mentioned either.  The only cooking term that you could find the site by is "Chef". "Mi Yodeya" also has the same problem since "Judaism" is not mentioned anywhere but the URL.  "Jewish" is mentioned in the description, but has virtually no characters in common with Judaism save the "J". Amateur Radio's URL is Ham.SE, so that's another tough one to find. Mathematics has a closely related problem since most users who learned UK English might search for "maths", which does not return anything either.   Not all sites have the same problem since the name is close to the URL or the URL is mentioned in the description (for example "Ask Different" references "Apple", "Home Improvement" references "DIY" in the description), but this can make finding specific sites problematic for users who might not be familiar with the boutique name of the site and only know it by the URL.  Can the search be updated to reference the URL, or at least the descriptions also include some reference to the URL Name for all sites to make it easier to find.


My question is related to rogue archetype assassin. On surprise rounds if I hit a creature it is automatically a critical hit. But what if I rolled a natural 20 on attack during surprise round? Does that count as double critical hit?   I'm asking this because on lv 17 assassin gets Death Strike that doubles the damage dealt when you attack and hit a creature that is surprised, it must make a Constitution saving throw (DC 8 + your Dexterity modifier + your proficiency bonus). On a failed save, double the damage of your attack against the creature. So that is damage rolled x4 by the rules, so if you roll a nat 20 on a surprise attack does that make it x6?


Determine type and brand of Bluetooth card in laptop?

I'm working on migrating my Windows 7 machine over to Linux and I'm researching compatibility. I've been able to determine the main things such as my video card, processor, storage, WiFi card, etc. but I haven't been able to determine what make and model my Bluetooth card is.  Is there a way to quickly and easily determine the make and model of my Bluetooth card in Windows 7?


GeoTools CRS.getAxisOrder(CRS.getAxisOrder("EPSG:4326")) returns EAST_NORTH (LON_LAT)

All is in the title, with GeoTools if I do :  AxisOrder order = CRS.getAxisOrder(CRS.getAxisOrder("EPSG:4326"));   It returns EAST_NORTH (= LON_LAT), but EPSG:4326 is defined as ordering latitude first and then longitude, as stated here :   So, what is happening here ? Am I doing something wrong ?


So...as what do we close too localized questions now?

So we got  which works very well and is very nice and handy. But there is one question left, as what do we close ?  It actually helps , "too localized" was removed because it was misused most of the time:     5(A). "Too Localized" is no longer necessary since the specific   off-topic reasons now address its main use case. (new)      Too Localized was, by far, the most misused close reason in our   surveys, with both Community Managers and Moderators deeming over 50%   of randomly sampled TL closures to not have merited closure (including   on SO).      Today, TL is used helpfully on code dump questions on SO, but the new   OT reasons are where this is now correctly addressed. SO can use   "Large blocks of code with requests for debugging without meaningful   supporting info" as a specific OT reason.   But the new dialog leaves us with only four options:        Programming questions are off-topic on Meta Stack Overflow.   This question does not appear to seek input and discussion from the community. If you have encountered a problem on one of our sites, please describe it in detail.   Changes to the system or to the circumstances affecting the asker have rendered it obsolete. If you encounter a similar problem, please post a new question.   Other (add a comment explaining what is wrong)      Only the "other" reason does very well fit on "too localized" questions now, doe we close it with that?


When Maz gives Lukes lightsaber to Finn he still has his blaster across his back. The next time we see him is when he comes out of the rubble and he only has the saber which he uses to take down a stormtrooper.  Where did his blaster go?


How many grizzly bears did they spook in this sentence using “a couple of”？

I came across this sample sentence in Oxford Dictionary，under the entry "spook":     They spooked a couple of grizzly bears.   I consulted an Oxford dictionary of English-Chinese edition, and it translates the sentence into  "They frightened two grizzly bears".   Maybe OK but I am still not fully convinced it means only two bears in the sentence. Does "a couple of bears" necessarily mean two, or have a meaning of more than two in most cases? As to in this sample sentence, I would prefer to interpret it as "they frightened some grizzly bears"(maybe they weren't quite sure of or didn't notice the exact number).  Help me.


During a Clash of Clans war, which team is determined to win when the star total is even and the total destruction is also even?


Plot x y data from different files/tables

I have two data files (xxxx.txt and yyyy.txt), each only containing one column of x and y data respectively. Now I want to plot these two data together in a simple 2D diagram. Has anybody an idea how this is possible?  Until now I always had my x and y data in one file together (two columns, first x, second y). So there was no problem and I plotted my data like:  \begin{tikzpicture} \begin{axis}    \addplot table {datatable.txt}; \end{axis} \end{tikzpicture}   Does anybody have a helpful idea or solution?


Can a Pixie float over the middle of a pit?

Pixies have an altitude limit of one, meaning they can only ever be one square high when they end their turn.  But if the party comes upon something like a chasm or a large pit, can the Pixie end their turn flying above the drop without falling, since they aren't technically increasing their altitude above the limit?


Is it common to use the phrase “come with” without specifying with whom

We’re going to the pub. Want to come with?”    I have heard this from an American colleague. Though this sounds odd to the majority of us, however, since I am not sure of the usage, I am asking how common is it to use the phrase “come with” without specifying with whom.


How to generate geometric or Gaussian distributed numbers from from uniform distributed numbers in matlab

I want to generate geometric or Gaussian distributed random numbers without using "geornd" or "randn" functions present in MATLAB library. How can I generate random numbers with those distributions by using only the "rand" function used to generate uniformly distributed random numbers. I want to do this because Uniform distribution is the most basic type distribution and any other distribution can be generated from this distribution. A small code example would be very helpfull..!!


Are there C++ free and fast (maybe standalone) refactoring tools for Windows?

At the moment I am working in a pretty big project and I have been been asked to refactor some old code. Most of the refactoring is setting apart a big class into smaller components and functions.  I've searched and seen some other  related with the topic but I am not very happy with the proposed options. The problem with these is that   Everybody here uses VS2005 in Windows and I am not very keen on using different editors for the same project. The Reactor! plugin for VS2005 is just too slow to work with. Reactor!Pro is not for free and I am not that sure it would work faster.   I was just wondering if there is any lightweight standalone GUI-based free tool that does not make my computer work slower than a lame snail. It does not have to make 150 refactorings just the basics. Maybe I am asking for too much!


Theme Image Style for image located in module directory

Probably coming at this from too much of a Drupal 6 view point but...  How do I theme an image in a given image style when that image lives in a module folder?  This is driving me batty and I know I'm just missing something simple.  Here is some example code showing what I'm trying to do:  $file_uri = 'public://sites/all/modules/my_module/logo.jpg'; $data['logo'] = theme('image_style', array('style_name' => 'medium', 'path' => $file_uri));   Even if I use file_build_uri(), I end up with a path to a file that doesn't exist. If I move the image to the files directory and change the $file_uri to 'public://logo.jpg', it works just fine.  Do I need to copy the image to the files directory as part of the module code?  If so, isn't this ridiculous?  What am I missing?  Is there documentation on how to do something like this?  I've spent over an hour mining the Drupal documentation and came up completely dry.


How do we go about imbalanced data for prediction problem?

As in classification we have imbalanced classes, we use up-sampling or down-sampling and other techniques, what do we do when we have imbalanced data in prediction problems, for example, I have distribution of outputs like 90% value1, 5% value2, 3%value3, 2% value4?


I feel like this is an extremely simple question but somehow I cannot solve it.      Is it possible to unnest $$\sqrt{1+\sqrt2}\quad?$$    This was motivated by the .   If we let $x^2=1+\sqrt2\implies x^4-2x^2-1=0$ and after solving with substitution $u=x^2$, the argument is circular.


Whenever I google for Lubuntu, lubuntu.net is always appear on the top result. I thought that this was the official site (wasn't sure about this).   However, I've just noticed that there are two sites for Lubuntu. lubuntu.net vs lubuntu.me  only offers older version 19.04 while  offers latest version which is 20.10. Are they from similar or different team? Which one is the official site for Lubuntu?


Where are the system spellchecking dictionaries?

I would like to use the spellchecking dictionaries bundled with OS X from the command line (hunspell), but can't seem to find them. In /System/Library/Spelling there are only 2 files pl_PL.{aff,dic}, and find / -name '*.dic' revealed nothing.  I know I can dowload dictionaries from OpenOffice etc., but I'd like to find the ones bundled with OS X.  EDIT To clarify, there are at least two kinds of dictionaries in OS X:   Definitions used in Dictionary.app. I'm not interested in those. Word lists used by the system spellchecker (red dotted lines). I know OS X uses hunspell because  says so, and there are numerous posts on how to add new ones (, ). Just, I don't want to add new ones but use the English one that obviously comes with the system.


How to merge multiple records outside of a for loop?

I have a list of master accounts that each map to a single duplicate account. I want to merge each master with its corresponding duplicate using the merge DML operation.  I'm currently doing this in a for loop:  for (Account master : listMasters) {     Account duplicate = mapMasterToDuplicate.get(master);      try {         merge master duplicate;     } catch (DmlException e) {         ...     } }   Is there a way to do this without executing DML in a loop?  I am implementing this in a batch class, and I am limiting the scope size when I execute the batch job, so I'm not too worried about exceeding governor limits. I just want to check if there's a more efficient method of accomplishing this batch merge that I couldn't find.


Is it common to include author without any contribution in a paper?

I have recently finished a paper and send it to my supervisor for review. He corrected it and before submission, he added some authors (some labmates, collaborators) who have no idea about my project. Also, he did not even ask me before adding though I worked so hard for that project. How ethical it is? Because he is my supervisor, I could not raise my voice. But I think this is not right. Is it so common phenomenon in academia?


How to get source code of specific URL in JavaScript?

I want to get source code of specific URL in JavaScript. I can get source code of current web page with this code: document.documentElement;  But I don't know how can I get source code of specific URL. (I want to use documentElement anyway)


Inserting multiple rows in a single SQL query?

I have multiple set of data to insert at once, say 4 rows. My table has three columns: Person, Id and Office.  INSERT INTO MyTable VALUES ("John", 123, "Lloyds Office"); INSERT INTO MyTable VALUES ("Jane", 124, "Lloyds Office"); INSERT INTO MyTable VALUES ("Billy", 125, "London Office"); INSERT INTO MyTable VALUES ("Miranda", 126, "Bristol Office");   Can I insert all 4 rows in a single SQL statement?


How do you convert a jQuery object into a string?


How do I upgrade to Lubuntu SaucySalamder?

I am using Lubuntu on a virtual machine and have many files on here. Months ago, I kept getting pop-ups which asked me to update to Lubuntu 13.10 (I believe it was 13.10) Saucy Salamander but I kept saying 'Remind me later'. Now, I can't apt-get install anything and I keep getting these type of errors:  404  Not Found [IP: 91.189.92.201 80]   This post () suggested that I upgrade (I should upgrade to Lubuntu Saucy Salamander). I don't want to download anything from here () because I am afraid I will lose all my important files. Instead, I kept waiting till I got that pop-up again asking if I want to upgrade but I never get that popup anymore. I tried restarting my VM but still no popup. I then tried starting up the Software Updater but it keeps giving me an error saying:  Failed to download repository information. Check your internet connection.    even though I can access the internet with no problems.   I tried installing packages from Synaptic Package Manager but it also gave me the   404  Not Found [IP: 91.189.92.201 80]   errors. How do I upgrade to Lubuntu 13.10 Saucy Salamander? Or how do I get Lubuntu to send me that 'upgrade to Saucy Salamander' pop up again? The one time I want to get the popup, I'm not getting it anymore -.-.


This is one of the most annoying duties in the kitchen, for me.  What are yours tips and tricks to peel hard boiled eggs easily?


A word or term to describe someone who likes to make people look stupid

Is there a word for someone who tries to trip you up during conversation almost so you muddle your words and sound confused to the point where they appear to have have won a debate?  Someone who uses tactics such as these to appear that they've won a debate without actually winning based on the merit of what they have said.  They'll instead try and trip you up, or purposely respond to what you said as if it was outrageous, ridiculous or comically funny?   Their responses have no substance but their tactic is to attack what you have said, if this makes sense?  It's almost like a 'troll' but their tactics are not readily apparent to others as being 'trolling'.  Ideally you'd like to be able to say "She is such a/an X" or "She wins all her arguments through being an/a X" or "She wins her arguments by doing X" or "She only won that debate through her X tactics". Something along these lines would be helpful.   Edit: this question was marked a duplicate but the duplicate post isn't exactly the same as what I am asking. The confusion tactic is an element of their behaviour but it's also to ridicule or pick one word of what you said and attack that specific use of word, etc. All your answers have been very helpful. Thank you


5 persons own a safe with a number of locks (arranged parallel, i.e. all locks must be opened to open the safe).  One lock can have any number of keys. The owners want any combination of (a minimum of) 3 persons to be able to open the safe.   I can see that one solution is to have 5!/(3!2!)=10 locks and distribute the keys according to the permutations owners. But is that also the minimum number of locks?  Edit: following new searches using the work "lock" I see that the question might be a duplicate. I see also that my own solution may be wrong according to a comment


Is the convex hull of closed set in $\mathbb R^{n}$ is closed?

Is convex hull of closed set in $\mathbb R^{n}$ closed?


Let $f$ be a function on $[a,b]$ whose set of discontinuities has measure zero. Show that $f$ is measurable.

This questions comes from Royden Chapter 5 on page 106. I am able to answer the question if we add the assumption $f$ is bounded. Assuming $f$ is not necessarily bounded, here is my idea. Consider the set $A_c=\{x\in [a,b]  : f(x)<c\}$. We need to show that for each $c\in \mathbb{R}$ this set is measurable. Now, if we consider $f|_{A_c}:A_c\mapsto \mathbb{R}$, then we can use the fact that a bounded function whose set of discontinuouties has measure zero must be Riemann integrable. Then we can say, using boundedness, Riemann integrability on $A_c$ $\implies$ Lesbesgue Measurable on $A_c$ $\implies$ $f|_{A_c}$ is measurable on ${A_c}$. In particular, $\{x\in A_c : f|_{A_c}(x)<c\}=\{x\in [a,b] : f(x)<c\}=A_c$ is measurable. This concludes my attempt. Does this seem reasonable?


Excuse me, my question is, will there be a problem if I download the Ubuntu file from here and put it on CD? I mean, if I download the file here and put it in a CD, can I install it with the same CD, or do I have to buy it?


AttributeError on sys.getsizeof(): not part of sys

I am trying to find out a variable size in memory. So I tried using sys.getsizeof(var) but I keep getting an error:   AttributeError: 'module' object has no attribute 'getsizeof'   I searched for solutions online but still no luck. I also re-installed the Python version that I am using and I am still having the same problem.


What would it look like if we broke the speed of sound underwater?

Would anything special happen as we approach the speed of sound? Would there be a sonic boom?


How can I remove duplicates out of an ArrayList?

for (int i = 0; i < arrayP.size(); i++) {          if (arrayP.get(i) == What to put here?) {               arrayP.remove(i)         } }   If I put i+1 it just compares side by side. How can I get it to run through each element?   Element 1 then run through the whole ArrayList. Then element 2 run through ArrayList.


I'm writing Puppet configuration to automate the creation of an Elastic Search repository resource. Unfortunately, as far as I can tell, there's no way to specify this configuration in the Elastic Search YAML configuration file, so I'm stuck with HTTP and curl. I've declared the following as resources:  file { 'curator_repository_config':     path    => "${elasticsearch::install_dir}/config/s3-repository.json",     owner   => $elasticsearch::user,     group   => $elasticsearch::user,     mode    => '0400',     content => template('chromeriver/curator/s3-repository.json.erb'), }  exec { 'create_es_repository':     command => "curl -is -X PUT 'http://localhost:9200/_snapshot/s3' -d @${elasticsearch::install_dir}/config/s3-repository.json",     unless  => "curl -is -X GET 'http://localhost:9200/_snapshot/s3'",     path    => '/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin',     user    => $elasticsearch::user,     require => [         Service['elasticsearch'],         File['curator_repository_config']     ] }   Understanding Puppet configuration isn't necessary to answer this question, but the above essentially creates a file called s3-repository.json which contains configuration details with are ultimately used in the POST to Elastic Search.  The second resource conditionally executes, only running if the return code from the following command is non-zero. It essentially does this:  #!/bin/bash if ! curl -is -X GET 'http://localhost:9200/_snapshot/s3' &>/dev/null; then     curl -is -X PUT 'http://localhost:9200/_snapshot/s3' @/path/to/s3-repository.json fi   The problem I'm having is that curl returns 0 for a 404 on the GET request. I'd like to have curl return 1 if the response is a non-200 response.  Is there an easy way to do this with curl?


Playonlinux on Ubuntu 14.04 LTS: unmet dependency error

Iam not able to install playonlinux on Ubuntu 14.04 LTS. following msg is being displayed  The following packages have unmet dependencies: playonlinux: Depends: python:any (>= 2.7.1-0ubuntu2) but it is a virtual package          Depends: imagemagick but it is a virtual package


Elementary solution to $ \int \frac{1}{x^5+1} \, dx $

Since  is heavily downvoted, I'm not sure if the moderators will delete it before I can post my answer.  Here's my attempt: Following JG's remarks, we have $$ x^5 + 1 = \frac14(x+1)(2x^2 + x(\sqrt5 - 1) + 2)(2x^2 - x(\sqrt5 - 1) + 2) $$ Then by , we have $$ \dfrac1{x^5 + 1} = \dfrac4{(x+1)(2x^2 + x(\sqrt5 - 1) + 2)(2x^2 - x(\sqrt5 - 1) + 2)} $$ is equal to $$ \dfrac2{5+\sqrt5} \cdot \dfrac1{x+1} -\dfrac{4\sqrt5}{(\sqrt5 - 1)(5+\sqrt5)} \cdot \dfrac x{2x^2 - x(\sqrt5 - 1) + 2} + \dfrac4{(\sqrt5-1)(5+\sqrt5)} \cdot \dfrac{x + \sqrt5 + 1}{2x^2 + x(\sqrt5 - 1) + 2}$$ What's left is to apply $ \int \dfrac1{x^2+a^2} \, dx = \frac1a \tan^{-1} (\frac xa) + C$ and $ \int \dfrac{1}{x^2-a^2}\, dx = -\frac 1a \tanh^{-1} (\frac xa) + C$.  Obviously all the calculations above are fairly tedious. Is there a(another) way to evaluate this indefinite integral? To clarify, I'm not interested to see ANY roots of unity ($\omega $) in the final result. Naturally, I'm also interested if there's other approach is applicable for the indefinite integral of $\frac1{x^n + 1}$ for all positive integers $n$.


Is there a tool to update my PPA sources.list entries after upgrading?

When I upgrade from one version of Ubuntu to the next, the upgrade tool rightly disables all my PPAs, so that software compiled for or otherwise tied to the old version of Ubuntu does not interfere with the new version that I just upgraded to.  Is there any way to automatically re-enable and update any PPAs that provide packages for the new version of Ubuntu? For example, suppose I'm currently running Maverick, and I have two PPAs enabled, "foo" and "bar". Suppose that "foo" provides packages for both Maverick and Natty, while "bar" provides packages for Natty only. Is there a tool I could run after updating to Natty that would re-enable my "foo" PPA and update it to point to the Natty packages, while leaving the "bar" PPA disabled?


Let $R$ be a ring satisfying $(xy)^3=xy$ for all $x,\, y\in R$. Then $R$ is commutative. Any suggestion how to prove it?


How to reset Apple ID PW without knowing original PW and answer to security question?

I cannot use iCloud since I forgot the password for my MACBookPro original APPLE ID. The email address associated with this ID is no longer valid and the security question was never set up. How do i reset the password? I want to change the ID and use new PW to access icloud.


At a family dinner, my 18-year-old niece asked my sister, "May you please pass the salt?" My sister said that she was impressed with her daughter's politeness, but that that particular wording was not correct.  My niece said that she had been taught to say that (by whom she could not say, but probably by her father—the parents divorced years ago.)   Despite our best attempts, we were unable to convince her of the illogical nature of the "May you please" construction.  How would you explain it to her?


Mac book pro 16 slows down completely when connected to an external monitor

I have a Macbook Pro 16" and recently purchased a 24" (HD) Dell monitor via HDMI (via a USB-C to HDMI converter) After about 20m of usage, my mac comes to a crawl and really slows down. It becomes impossible to work on the machine. Plugging out the monitor fixes the issue in no time and I can see the kernel_task process (in Activity monitor) hit 900% to 1500% of CPU. Specs I am running macOS Big Sur It is a 2019 model with Intel Core i9, 16 Gigs of RAM and  the AMD Radeon Pro 5500M 4 GB graphics processor


how it is different ==, equals with using nextLine or without it

why different between using nextLine or without nextLine      str==str2 is false but  str4==str5 is true   There are some Example code.  Scanner scan = new Scanner(System.in); System.out.println("Input data1"); String str = scan.nextLine(); System.out.println("Input data2"); String str2 = scan.nextLine(); String str3 = str; String str4 = "a"; String str5 = "a";  System.out.println("str==str2 : " + (str==str2)); System.out.println("str2==str3 : " + (str2==str3)); System.out.println("str==str3 : " + (str==str3)); System.out.println("str4==str5 : " + (str4==str5)); System.out.println(""); System.out.println("str.equals(str2) : " + (str.equals(str2))); System.out.println("str2.equals(str3) : " + (str2.equals(str3))); System.out.println("str.equals(str3) : " + (str.equals(str3))); System.out.println("str4.equals(str5) : " + (str4.equals(str5)));   input same data,  output  str==str2 : false   str2==str3 : false   str==str3 : true  str4==str5 : true  str.equals(str2) : true   str2.equals(str3) : true   str.equals(str3) : true   str4.equals(str5) : true


My computer cant read Ubuntu 12.04.3 LTS (Precise Pangolin) from CD-ROM

I have an emachines E525 I had to put the ISO on a blank disk and set the boot up USB CD-ROM and it does not see the CD, I tried the ISO on virtual box and it will not load it.  Failed to open the optical disk file C:\Users\DONNA\Desktop\ubuntu-12.04.3-desktop-i386.iso.  Could not get the storage format of the medium 'C:\Users\DONNA\Desktop\ubuntu-12.04.3-desktop-i386.iso' (VERR_NOT_SUPPORTED).  Result Code: VBOX_E_IPRT_ERROR (0x80BB0005) Component: Medium Interface: IMedium {05f2bbb6-a3a6-4fb9-9b49-6d0dda7142ac} Callee: IVirtualBox {fafa4e17-1ee2-4905-a10e-fe7c18bf5554} Callee RC: VBOX_E_OBJECT_NOT_FOUND (0x80BB0001)


Finding example of a convergent series $\sum a_n $ such that $\sum a_n^2 $ does not converge

I'm feeling that examples for this would arise from some alternating series, in particular of the form $\sum (-1)^nx_n$. But I'm having trouble finding a concrete example. Thanks!


Suppose I have two noisy measurements of a state (e.g. a radar detecting the position of an object). I model each measurement as a normal distribution, and I know the mean and variance of each measurement (each measurement has its own variance). I want to take two of these measurements, and find the expected true state.  Now, I know that the mean of two normal distributions is just the average of the two means. However, I am puzzled by the intuition behind this when I consider my problem.  Below is a plot of two noisy measurements (red and blue), and the average of their means (green):    The red measurement has a mean of 10 and a standard deviation of 20. The blue measurement has a mean of 2 and a standard deviation of 0.1. So, the average of the two means is 6, which is the green line.  But looking at this plot, it seems very strange that the expected state (green) is not much closer to the blue measurement, given that the red measurement is so uncertain and the blue measurement is very certain. So the expected state seems to be completely independent of the uncertainty in each measurement.  If I were to take this to the extreme, then the red measurement could have an infinite standard deviation, and would effectively be a uniform distribution. And the average of the two means would be nowhere near the blue measurement; it would be dominated by the red measurement, even though the red measurement actually contributes nothing due to its infinite uncertainty.  Am I misunderstanding how to fuse two noisy distributions?  Is there a better way to fuse the distributions that would make the average make better use of the measurement uncertainties?  Thanks!


typedef struct{     int tournamentNo;     char tournamentName[61];     char toutnamentDate[15];     char tournamentCity[21]; }Tournament;   printf(" : %d ", sizeof(Tournament));  result: 104  actual: 61+15+21 + 4 = 101  typedef struct{     int tournamentNo;     char tournamentName[20];     char toutnamentDate[15];     char tournamentCity[21]; }Tournament;   printf(" : %d ", sizeof(Tournament));  result: 60  actual: 20 + 15 +21 +4  = 60  Why different this ?


How do I turn off some formats in GeoServer's WMS?

I have published a couple of layers on my Geoserver.  To be complaint with the T&C of my data provider, I need to block the access of some of those layers as Vector data. Hence I have already blocked the WFS services on these Layers.  I came to know that even on the WMS service, you can get Vector Data, if you use GeoRSS and some of the .   How do I block GeoRSS, SVG & UTFGrid as formats in the WMS Service?


Beamer (beamer 2018/02/20 v3.50) overlays are nor aligning anymore. How to fix it?  MWE:  \documentclass{beamer} \title{Foo}    \begin{document} \begin{frame}[t]\frametitle{Foo}     \begin{figure}         \includegraphics<1>{figure1.pdf}         \includegraphics<2>{figure2.pdf}         \includegraphics<3>{figure3.pdf}         \includegraphics<4>{figure4.pdf}         \includegraphics<5>{figure5.pdf}                     \includegraphics<6>{figure6.pdf}     \end{figure}     \end{frame} \end{document}


I have been having a hard time identifying the stem for my kitchen sink. Any input would be appreciated. The did not help as this stem has 11 points  The broach diameter is 0.375 inches and the height is ~1.2 inches.


OneDrive for Windows 10 - Remove logged out account

I'm using the  (unified for both personal and business account) and I configured two accounts on it:   My personal account (the same I log in on Windows) My business account   Some months ago I left my previous company and I have no more access to the second account (the business one) and every time I login on Windows 10 I receive a message saying that username or password are wrong.  It's quite annoying and I would like to remove this account, but I can't since there is no "unlink" button on the settings window of OneDrive (probably because it's stuck at the login phase).    What could I do? Is there any "manual" trick (e.g. removing the account from a configuration file or the Windows register)?  Thanks!


Automatically switch gpu graphics driver when gaming

I have installed Ubuntu GNOME 15.10. I installed the nvidia tested proprietary driver and then I restarted. Afterr that I selected as primary GPU the Intel driver for normal use. However, when I enter a steam game(Portal) the graphics is bad so In order to play normal I have to switch manually to the nvidia driver again and reboot again. After the game I have to manually select as primary driver the Intel one and reboot again. It is so boring. QUESTION: How to automatically switch gpu graphics driver when I enter a game or something that needs more GPU?


How to install google drive on Ubuntu 15.10?

Can anyone tell me how to install google drive in Ubuntu 15.10?


I have a Dell Inspiron 910 and am receiving a running in low graphics mode error.  I believe the error was caused by attempting to install a game I did not have the proper space for. I have tried a few of the fixes described in previous posts but have had no luck. I get messages that I have zero space remaining.


What parts do I need to change to convert from flat handle bar to drop bar?

I am thinking about getting a drop bar for my Merida Speeder 200 (2015). But I am told that I need to change some other parts as well.   My bike has V type brakes, 3 speed front derailleur and a 9 speed Tiagra read derailleur.   Which shifter-brake lever(I mean road bike type shifter) is compatible with my bike I don't know. Also do I need a modification on brake system? Do I need to change any other parts? Most importantly, what would the cost be?  Can you help me?


Using oracle 11g  How do I get 00000 when the results are empty. I have tried coalesce and nvl - not working.    select lpad(movie_id, 5, '0') as MOVIE_ID from schema_A where movieB='642354';


The hyperphysics article defines osmosis as a process driven by internal energy and internal energy is defined as energy associated with random,disordered motion of molecules. Osmosis develops pressure and lifts weight so it has the output of a machine.  But what drives osmosis? Is osmosis driven at the expense of thermal energy although there is no temperature gradient?


How to draw a graphic using axis environment

How to draw this graph in LaTeX?   Here is an orientation code:  \begin{tikzpicture} \begin{axis}[xlabel=$x$, ylabel=$y$, grid=major, xmin=-7, xmax=7, ymin=-30, ymax=30, height=60mm, width=70mm] \plot[blueline, line width=1pt] plot[domain=-4:4, samples=100] expression{x^2}; \end{axis} \end{tikzpicture}


Is it possible to send and receive faxes over an Android phone?

Can an Android phone make phone calls in order to send fax? I mean, is it technically possible  with Android? Without using 3rd party servers.


I'm using excel to populate some data and create a report using the following code:  Excel.Application app = new Excel.Application(); Excel.Workbook workbook = app.Workbooks.Open(templatePath); Excel.Worksheet worksheet = workbook.Worksheets[1];  worksheet.Cells[1, 2] = myInbox.FolderPath; worksheet.Cells[2, 2] = DateTime.Today.ToShortDateString(); worksheet.Cells[2, 4] = DateTime.Now.ToShortTimeString();  app.Visible = true; workbook.RefreshAll();   This all seems to work fine, however when I look at task manager I notice several instances of excel open in "background processes". There appears to be one instance of excel for every time I have run the code despite closing excel each time.  These background processes don't even appear if I open Excel manually.


I encounter the font used for add-edge many times among documents generated from LaTeX, e.g. beamer presentations. But I have no idea how can I use this font in my own document written from scratch. How can I include this font into my document?  FYI the source of the algorithm is .


Ubuntu 18.04.3 LTS install issues. Can't connect to hyperV install. Also can't install from USB

I'm trying to install Ubuntu 18.04.3 LTS on a high end Lenovo Thinkpad which I intend to use for development due to it's GPUs.  First attempt was to install on a HyperVisor VM.  I briefly saw a some sort of boot error message the first time I connected to it, but it worked for about 10 minutes.  After that I lost connection to the VM and I could never get back.  I ended up deleting that VM and creating a new one, but never could get a system I could connect to.  When I attempt to connect I get a tiny white screen, then a full sized black screen, then a message to try to reconnect.  I tried next to boot off the USB drive and install, but the installer freezes and crashing before the install process starts.  All of this made me think there was some sort of BIOS driver compatibility issues so I tried upgrading BIOS, but I still can't get anything to work.  Any suggestions?  I could pay for support if something thinks they can help.


How do i limit the amount of time a python script runs

So i use a python scrips that sometimes on some ips it just hangs. I run the script on about 250 ips. With xargs from a sh script  How would i i limit the time of the py script runing. If it hang for more than 30 sec for example to leave/kill ?  I dont want to use time as it is server dependant. I was thinking more of a python function


Is it possible to use index and match while adding values?

I'm using this formula in my main worksheet in cell N3:   =IFERROR(INDEX(Totals!M$3:M$33,MATCH($B3,Totals!$K$3:$K$33,0)),0)   Details:   $B3 lists first/last names on main worksheet. Totals!$K$3:$K$33 lists first/last names on "Totals" worksheet. M$3:M$33 contains a numbers.   I'm looking for a way to count the numbers in column "M" if the names in column "K" match/are duplicates.  Row 3     "K" = David / M = 39  Row 4     "K" = Angela / M = 53  Row 5     "K" = Angela / M = 3  Row 6     "K" = Paul / M = 61  Row 7     "K" = Betty / M = 49  Desired result: If $B3 = Angela, then "56" is the result found in cell N3 on the main worksheet.


I am not able to understand the following assignment  statement:  ImageButton btnsave = (sender) as ImageButton;   what it actually does?


I need to deserialize a JSON string into a type which is not know at compile time. There are several classes that it can be deserialized into. The name of the class is provided as input into the application and based on that I want to instantiate the class (already done this through reflection): var type = Type.GetType(className); var myClassInstance = (IParser)Activator.CreateInstance(type);  ...and then use its type as the generic type parameter for JsonConvert.DeserializeObject<typeof(myClassInstance).Name>(jsonString) but that doesn't work. How can I provide the class to DeserializeObject<>() dynamically?


See attached picture. I am not sure if the title is correct. The door bell button (the plastic cover area) broke. Can anyone tell where can I buy this exact doorbell?


Are users' reputation scores on the home page supposed to stand out that much now?

It seems a couple minutes ago, a change was applied to the styling of the homepage, with users' rep scores now being much darker (and standing out more):        Compare with the former light grey colouring (image courtesy of ):        Is this intentional? If so, why? It highlights something that's not really relevant, in my opinion.


Has anyone successfully installed CUDA 5.5 on Ubuntu 13.10 64-bit?

I tried to install a CUDA 5.5, following the steps on the Nvidia website, using the deb file for Ubuntu 12.10 (the latest version I could find on Nvidia website), but the installer fail to begin, telling me there are some dependency issues:  The following packages have unmet dependencies.    cuda : Depends: cuda-5-5 (= 5.5-22) but it is not going to be installed.  E: Unable to correct problems, you have held broken packages.


LSOpenURLsWithRole() failed with error -10810 - Downloaded app does not start

I'm trying to run an application downloaded from the internet (e.g., Jabref) but it seems that it fails silently. When I try to open it by double clicking it, nothing happens. When I use the terminal I get the following message:     LSOpenURLsWithRole() failed with error -10810 for the file .../xxxx.app   I tried several suggestions that I found here like changing permissions and modifying the Info.plist file, but nothing works.  Because it's a Java application, I tried to run it through terminal using      java -cp "CLASSPATH" MAINCLASS    and it works fine.  Just to mention that I get this error not only with this app, but for a few other applications.  Thanks in advance.


(fresh installation) should I remove Nouveuau before install NVIDIA driver?

(Ubuntu 16.04) (GF9600GT)  Should I remove Nouveuau before install NVIDIA driver?


Absolutely continuity and Lipschitz-like continuity

I'm trying to figure out if the following is true or false:  Let $\mu$ and $\nu$ be finite measures on Borel subsets of $[0,1]$,and $\nu \ll \mu$ ($\nu$ is absolutely cts with respect to $\mu$). Does there exist always a $C \in \mathbb{R}$ such that $\forall A \subseteq [0,1]$ that is Borel, we have $\nu(A)$ $\lt$ $C \mu (A)$.  The Radon-Nykodym theorem seems to almost suggest that is true, if I knew it was bounded, then I could say $\nu (A) \le \int_{A} g \ d\mu \le \int_{A} C \ d\mu \le C\mu (A)$, where $C$ is the bound. However, I don't know if it is bounded and in fact, I could take an unbounded function that is still integrable on $[0,1]$, such as $\frac{1}{\sqrt x}$.  I can't even be sure if it is true or false.   Thank you!


Casting shadows for transparent textured material

I have two concentric cubes, both UV-textured, and sharing a material. The outer cube has a texture that is partially transparent.   When I render the scene, the inner cube acts as if the outer cube is fully opaque, and no light falls upon it.  I'd like the outer cube to only cast a shadow for the opaque parts of its texture, rather than all of it.


Leave Ubuntu server to compute in background

I have access to a server running Ubuntu 12.04 LTS. I connect to it using XManager or PuTTY. But as soon as I close my client, I will be logged from the server. So is there a way how I could shut down my local machine and let the server compute for me.   I normally use the server for builds.


Why should I buy bonds for my long-term portfolio when bonds have a lower upside than stocks?

I am one of those people who have 100% of their long-term portfolio in stocks (both in individual stocks and diversified index funds). I have an investment horizon of 50 years, so by "long-term", I mean 50 years. I have recently began to question the wisdom of a 100% stock allocation for my long-term portfolio. Most people seem to prioritize stocks over bonds. Some even ignore bonds completely. Newer brokerage firms such as Robinhood do not even support bonds! Common reasons for preferring stocks include:  Stocks prices can go up a lot, but the upside in bonds is severely limited (i.e. unlike stocks, bonds can't double in value within a few years) On a 50-100 year price chart of American stock indexes, stocks had an astronomical return compared to bonds.  Therefore, trade stocks instead of bonds, and hold stocks for the long-term. I used to subscribe to the "common wisdom" above. However, I have recently become more skeptical:  The S&P 500 has not beaten bond indexes over the last 20 years (2000-2020). Indeed, by looking at the price chart of the S&P 500, one observes that 2000-2020 is not the only 20 year period when stocks have underperformed bonds! Although it is possible that stocks have the magical property that makes them outperform bonds over a very long period (e.g. 100 years), there could still be decades where stocks underperform. The 50-100 year price chart of American stock indexes is irrelevant on its own, because it exhibits survivorship bias. With hindsight, one could say that the performance of the American economy was exceptional. Over the last 50-100 years, the stock markets of countries with revolutions, wars, famines, and long-term economic stagnation have probably had lower returns. By only looking at American markets to conclude that stocks outperform bonds over very long periods, one is probably submitting to survivorship bias and hindsight bias.  My questions are:  Why do people recommend a portfolio allocation in bonds when the historical record says that stocks outperform bonds over the very long run? Are the reasons I listed above correct? Is it wise to hold 100% stocks in long-term (50 year) portfolios?  By "stocks", I mean both individual stocks and diversified index funds (diversified across industries, geography, and economies). I do not care about year-to-year volatility. I only care about what the returns will be near the end of the 50 years.


Common collector amplifier current amplification

given:    Re = 500 Ω   Rb = 261 kΩ     What can we tell about the current amplification? Is this circuit useful?


How to make skill use on investigations "important" but failure not derail the plot?

Well guys, following previous recommendations here I was able to build a Horror Themed Savage Worlds campaign that has made my players excited. However they're still getting used to the style, as well as I am. In order for them to hurt the major evils of the adventures they have to find their Form (physical appearance, name), Truth (How the creature came to be) and Reason (What the creature wants to), so they have to do research, kill lesser creatures, and run away from the big baddie of the adventure as they seek what it is.  Well, this is my problem:  How can I make them use skills significantly?  I'm used to railroading my players, even with mysteries, and I don't know how to put their skills for significant use. An example is, they usually require Streetwise or Investigation to gather clues and such, however, I wonder what to do if they fail the roll... If they fail they're not supposed to find anything, so chances they never finish the adventure are well, high, that and I have no idea how to give them additional, interesting ways for them to find the truth. So do I give it no matter what they rolled? How do I make use of their skills important and not just busy-work without having a failure on a roll completely stop their progress in the investigation?


Right adjoint is fully faithful iff the counit is an isomorphism (without Yoneda)

Exercise 2.12(a) from Leinster:     Show that for any adjunction, the right adjoint is full and faithful if and only if the counit is an isomorphism.   Note: The exercise is given before the chapter on representables and the Yoneda lemma, so I wouldn't like to use those. There is a  which partly covers what I'm asking, but the answer uses the Yoneda lemma and other stuff from  (whereas this exercise is from Chapter 2).    Suppose $F:\mathscr A\to \mathscr B,\ G:\mathscr B\to\mathscr A$ are functors and $F\dashv G$. So there is a bijection $$\mathscr B(F(A),B)\cong\mathscr A(A,G(B))$$ denoted by $f\mapsto \bar f$ in either direction. The counit of adjunction is the natural transformation $$\epsilon: FG\to 1_\mathscr B$$ whose component at $B\in\mathscr B$ is   $$\epsilon_B=\overline{1_{G(B)}}:FG(B)\to B.$$  The question asks to prove that $G$ is full and faithful iff $\epsilon$ is a natural isomorphism. The latter happens iff $\epsilon_B$ is an isomorphism in $\mathscr B$ for all $B\in\mathscr B$. So it suffices to show that $G$ is full and faithful iff each $\epsilon_B$ is an isomorphism.    I really don't see how to prove either direction. For example, suppose $G$ is fully faithful. Then there is a bijection $$\mathscr B(B,B')\cong \mathscr A(G(B),G(B'))$$ for all $B,B'\in\mathscr B$. Thus there is also a sequence of bijections  $$\mathscr B(B,B')\cong \mathscr A(G(B),G(B'))\cong \mathscr B(FG(B),B')$$ (the cited question calls these bijections natural isomorphisms, but at this point Leinster doesn't even interpret the adjunction bijection (the second bijection above) as a natural transformation (he only gives some "naturality conditions" which at this point are not interpreted as a natural isomorphism; and I also treat the first $\cong$ above as a mere bijection).   So every arrow $g:B\to B'$ corresponds in a unique way to an arrow $FG(B)\to B'$. But (1) I don't know any explicit formula for this correspondence (the first $\cong$ is just applying $G$; the second is taking bar, but there is no explicit definition of a bar in Leinter's text), and (2) even if I knew the explicit correspondence law, I don't see how it would help me.  The other direction is also not clear.  Addition: the naturality conditions in Leinster's notation:


Part of the model doesn't show vertices on it. Error message under Transform tab is "Nothing selected"

I'm super new to Blender and I don't know what I did wrong. I was modeling just now, and all of sudden I can't select any vertex on part of my model because there isn't any!  If I switch to edge mode or face mode, the non-affected part of the model behaves normally, but by selecting any edge or face of the problematic part of the model, no gizmo shows, and I see an error message of "Nothing selected" showing under the Transform tab, and I can't use any mesh tool on them. E.g. hit E and no gizmo is there.  FYI, I don't have any modifier on the mesh as you can see on the first screengrab. I could totally extrude faces and merge vertices just half an hour ago.


Importing variable not giving the desired value

It this game the score is set you 0 at the beginning and added to if you answer a question correctly, If i check the score by printing while I'm playing it gives the correct value but when the score is shown on the certificate it displays 0 no matter what.  Here's the code for the first file (The game part)  import pygame, time pygame.init() WHITE = ( 255, 255, 255) BLACK = ( 0, 0, 0) screen = pygame.display.set_mode((600, 600)) ButtonA = pygame.image.load("A.png") ButtonB = pygame.image.load("B.png") ButtonC = pygame.image.load("C.png") a = screen.blit(ButtonA,(50,400)) b = screen.blit(ButtonB,(250,400)) c = screen.blit(ButtonC,(450,400)) pygame.display.flip()  score = 0 if __name__ == '__main__':     for event in pygame.event.get():         if event.type == pygame.QUIT:             sys.exit()         if event.type == pygame.MOUSEBUTTONDOWN:             pos = pygame.mouse.get_pos()             if a.collidepoint(pos):                 screen.fill(BLACK)                 Correct = font.render("You are correct!", True, WHITE)                 Correct_rect = Correct.get_rect()                 Correct_x = screen.get_width() / 2 - Correct_rect.width / 2                 Correct_y = 150 - Correct_rect.height / 2                 screen.blit(Correct, [Correct_x, Correct_y])                 pygame.display.flip()                 score = score + 1                 print score                 time.sleep(2)   And here is the code for the part where it puts the value on a certificate which currently throws up nothing but the number 0  import pygame, sys, eztext from pygame.locals import * from eztext import Input #Importing the variable score from Question1Easy import score Name = self.value #Setting the variable score (an int) to a string Score = str(score)   How do I get the second file to grab the updated value of score instead of the static 0?


For the past year, I've been hearing a lot about Probabilistic Programming (PP) frameworks like  and , and how great PP is. And today, someone shared this link with me:    However, I don't really follow what is special about it since it feels like whatever you can do in PP you can do in any other general purpose language. I'm sure there are technical aspects about PP that make it attractive (e.g. parallel computing), but this aside, is PP really any different from any other language?  Question: I was wondering if there was a consensus of what PP was and how it differs from other statistical-focused software like R, Matlab, Mathematica. It should be noted that PyMC3 and Stan are focused on more Bayesian analysis.  Doing a little research on Google, I came across the following two definitions. The first more abstract, and the second more about PP's technical characteristics.     1.2. Probabilistic Programming Is      Instead, probabilistic programming is a tool for statistical modeling. The idea is to borrow lessons from the world of programming languages and apply them to the problems of designing and using statistical models. Experts construct statistical models already—by hand, in mathematical notation on paper—but it's an expert-only process that's hard to support with mechanical reasoning. The key insight in PP is that statistical modeling can, when you do it enough, start to feel a lot like programming. If we make the leap and actually use a real language for our modeling, many new tools become feasible. We can start to automate the tasks that used to justify writing a paper for each instance.      Here's a second definition: a probabilistic programming language is an ordinary programming language with rand and a great big pile of related tools that help you understand the program's statistical behavior.      Both of these definitions are accurate. They just emphasize different angles on the same core idea. Which one makes sense to you will depend on what you want to use PP for. But don't get distracted by the fact that PPL programs look a lot like ordinary software implementations, where the goal is to run the program and get some kind of output. The goal in PP is analysis, not execution (added emphasis).   --   I'd like to know if the general statistical community agrees with these two definitions of PP, and if there are any other characteristics this definition may be missing.