I constantly need to add reference lines to my PGF plots which should match the data. I am looking for ways to implement a command that does this automatically and I am hoping someone can give me some pointers on the best way to do this. The following MWE with the comments hopefully illustrate the point: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest}  \begin{filecontents}{line12.dat}   x y   1 48.43734545112396   2 89.8468830844395   4 210.67967341436497   7 475.619178754322   8 603.599030569327   9 821.1933877936549 \end{filecontents} \begin{document}  \begin{tikzpicture}   \begin{axis}[xmode=log,ymode=log,xmin=1, xmax=10,domain=1:10]     % This is the line plot     \addplot[scatter,only marks,mark=o,draw=black] table[x=x, y=y] {line12.dat};     \label{myline}      \addplot[dashed] {x^2};  % This is the reference line which does not match the data      % To make the reference line f(x) align with the data,     % I have to multiply by a constant: mean(y_i / x_i**2)     \addplot[dashed] {18.89041408136126 * x^2};  % This is the reference line      % I want to implement a command that does this automatically like this     % \addref[dashed, x=x, y=y] {line12.data}{x**2};      % Or even just referencing the line if that is somehow possible     % \addref[dashed, data=myline] {x**2};   \end{axis} \end{tikzpicture} \end{document}   Once I know how to implement this, I am hoping to introduce some logic to remove outliers as well or use other functions to find the constant (like the median).


how do i delete all non filtered rows in Excel

if i have an excel sheet and i filter by a certain column, how do i then delete all non visible rows?


What is a word for the receiver of a notification?

I don't believe "notified" is accurate, as it implies the notification has been already made and received.    I'm looking for a word that labels a recipient that specifically is waiting for a notification.  The word "recipient" is technically viable, but then one asks "what are you receiving?  A gift?  A punishment?  An inheritance?".    Does a word exist that encapsulates being a recipient of,  specifically, notifications?


How do I get the PID of a conhost process associated with the batch file and cmd process that created it?

Say I have several conhost processes that happen to be running already. Now I run a batch file, which starts a cmd process which, in turn, causes another conhost process to open up. From within the batch file    I know I can , but  I don't know how to get the PID of the associated conhost process.   My goal is to be able to close down all the other conhost processes that were running previously (or possibly after the batch file was run) and not close the conhost associated with the very batch file and cmd.exe doing all the closing. If that conhost gets closed, so will its cmd process and the batch file will end prematurely (I want it to do other things after that).  This is not a duplicate of the question asked in the link above. That question only dealt with getting the pid of the cmd, not the associated conhost PID.


Virtual method only works for base class pointers

Below is the perhaps most simple example of a virtual function in C++:  #include <iostream>  class A { public:     virtual void f() {         std::cout << "A";     } };  class B : public A { public:     void f() {         std::cout << "B";     } };   int main() {     {         // calls f() in derived class         A* a = new B();         a->f();     }     {         // calls f() in base class         A a = B();         a.f();     } }   The output of this program is BA. I expected it to be BB, i.e. call the base class in any case. Why does using a base class pointer make a difference here? I didn't find the explanation in the standard.


Is a Canadian visa necessary if I travel Europe/Toronto/Los Angeles?

I planned to visit USA, landing in Los Angeles from Milan.  The flight has a change at Toronto, where, if possible, I won't exit the  international area, and then take another flight from Toronto to LA in 2 to 3 hours.  Assuming I'll ask for a USA visa, is a Canadian one requested for this sort of transfer, or do I just need the USA visa?  EDIT : I think my question is different from the one linked above, because I'm not interested in entering the country, just waiting for the next plane


The function $f(z)=z+\frac{1}{z}$ maps $\Omega$ biholomorphically on the upper plane

The question states:     Let $\Omega$ be the upper half plane minus the unit disk. Show that the map $f: z \mapsto z+1/z$ maps $\Omega$ biholomorphically on the upper plane. Describe the preimages of the lines $\mathrm{Im}(z)=\text{a constant}>0$.   So how exactly does one show the mapping is biholomorphic. I'm not sure where I should start, so unfortunately I haven't made any progress


Why should triangle meshes be avoided for character animation?

I've read many times that triangles should be avoided in meshes, too give one reference: "Introducing Character Animation with Blender by Tony Mullen" says that equilateral triangles work fine as long you don't deform them.  It seems to be common in game development that the models are triangulated.   What issues are introduced by using triangles? Does the same apply for n-gons?


Why can't I send ZIP files in Apple Mail from an iCloud account?

When I try to send a zip file to a gmail user from Apple Mail with my iCloud address, I get the following error. My zip file is 5 MB but contains a lot of files inside the archive (that's why I zipped it so I wouldn't be sending a hundred separate files). Basically, Apple Mail treats the zip archive like it is unzipped or something like that. Does anybody know a workaround?


how to permanently disable ubuntu updates & hide install updates button pic included

how to permanently disable ubuntu updates pop up & hide or remove Install Updates button pic included see below:


How to turn display off and ignore mouse movement?

I'd like to put the built-in display into standby (E.G. xset dpms force off) and keep the display off even if the mouse moves. That is, I want to ignore mouse movement for the purposes of waking the display. How can I achieve this?  The use case is: I'm using Synergy to control other machines, and the built in display on the host generates a lot of heat. if I'm not actively using it, I'd like the display to sleep while focused on another machine.  The accepted answer in  doesn't work for me because  I want X11 to be able to receive mouse input, I just don't want that mouse input to wake the screen (I.E. that suggestion causes Synergy to lose access to the mouse input)


Which of these suggested edits count is correct?

I have got three different suggested edit counts on my . I am wondering which one is correct. First, one is my , it shows the suggested edit count as 67.  Second, when I look at the detail of any suggestion, like  one and click on More, I get Editor Stats, which says “Devraj Gadhavi had 69 edit suggestions approved, and 5 edit suggestions rejected”.  Third, when I look at the review queue for  or  and hover my mouse over the badge progress bar it shows 45 against .  By searching the , I have come to conclusion that the 2nd one could be due to some posts being deleted, after my suggested edit was approved. But what about the 3rd one? Which is correct? 1st or 3rd?  EDIT This is not answered by  similar question. As, according to  answer  So what seems to be happening is:  the "Editor Stats" count all edits, live or not  the "Suggestions" page lists only live edits  the reviewer badges only take live (and approved obviously) edits into account    If 2 and 3 both show only live edits, then they should be equal. But they are not. My suggested edits are  69 + 5 in editor stats. 67 in suggestions page 45 in the badge progress


I have a very simple question: What is the terminal command for changing the volume? I ask because I want to set a keyboard shortcut via the keyboard settings and I need the terminal command for it.


Can massive damage knock out rather than causing instant death?

Suppose, as happened last night, a character intends to subdue rather than kill an opponent. She made a melee attack, hit, declared her intent to knock out. The damage roll was enough to reduce the opponent to zero and the remaining damage exceeded the opponent's maximum HP. Now we would seem to have two rules invoked:  Instant Death. Massive damage can kill you instantly. When damage reduces you to 0 hit points and there is damage remaining, you die if the remaining damage equals or exceeds your hit point maximum. (PHB p.197) Knocking a Creature Out. When an attacker reduces a creature to 0 hit points with a melee attack, the attacker can knock the creature out. The attacker can make this choice the instant the damage is dealt. The creature falls unconscious and is stable. (PHB p.198)  So which rule takes precedence? Or is it neither?


We have several MySQL backup files of a database in *.SQL format and we want to restore the database by using these files. However, as the sql files contains "DROP TABLE" definitions, running one script cause to remove the data created by the previous script. In addition to these sql files, we have also some other backup folders containing *.FRM and *.MYD files. In all of two cases I think these backups are Differential or Incremental and we have to merge/combine all of them. If so,  how can we combine them without losing data? As I have no experience on MySQL, could you explain a way by using MySQL Workbench if it is possible? Thanks in advance.  Some lines from one of the sql file:  DROP TABLE IF EXISTS `BLACKLIST`;     CREATE TABLE `BLACKLIST` (       `ID` int(11) NOT NULL auto_increment,       `NAME` varchar(30) NOT NULL,       `SURNAME` varchar(30) NOT NULL,       PRIMARY KEY  (`ID`),       UNIQUE KEY `BLACKLISTINDEX` (`NAME`,`SURNAME`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8;


How do I install a .deb file via the command line?


Can an Eldritch Knight Attack Twice With Green Flame Blade and War Magic?

An 8th-level Eldritch Knight has a sword. The War Magic class ability says:  When you use your action to cast a cantrip, you can make one weapon attack as a bonus action  And the cantrip Green Flame Blade says:  You brandish the weapon used in the spell's casting and make a melee attack with it against one creature within 5 feet of you  So I think that means there are 2 sword attacks in total for that turn. One attack is a bonus action, and one is a side effect of the cantrip. In addition to that are the flame effects of the cantrip as well. (The 2 attacks are not related to the Extra Attack Fighter class ability, which requires taking the Attack action, which is not being done here.) Is the above information correct?


How can I locate cause of full file system if du -x doesn't show a problem?

DUPLICATE of    What is method for locating culprit to "full" disk?  I have nothing large on the filesystem, but "phantom files" seem to have filled up the / partition.  DU does not show where the issue is:  root@godzilla:/# du -hx --max-depth 1 4.0K    ./snap 15M     ./bin 17M     ./sbin 1.8G    ./usr 8.0K    ./media 6.4G    ./var 56K     ./tmp 167M    ./boot 4.0K    ./stuff 4.0K    ./srv 56K     ./home 118M    ./root 4.0K    ./mnt 8.2M    ./etc 856M    ./lib 4.0K    ./lib64 4.0K    ./opt 16K     ./lost+found 9.3G    .   df shows that the / partition is full!  root@godzilla:/# df -h Filesystem                         Size  Used Avail Use% Mounted on udev                               1.9G     0  1.9G   0% /dev tmpfs                              395M   12M  384M   3% /run /dev/mapper/Godzilla--PC--vg-root  225G  225G     0 100% / tmpfs                              2.0G     0  2.0G   0% /dev/shm tmpfs                              5.0M     0  5.0M   0% /run/lock tmpfs                              2.0G     0  2.0G   0% /sys/fs/cgroup tmpfs                              395M     0  395M   0% /run/user/1000 /dev/sdb                           687G  290G  363G  45% /stuff/drive2 /dev/sdc1                          699G  361G  338G  52% /stuff/drive3


If i have a complex object, what is the best practice pattern to write code to compare 2 instances to see if they are the same


Is there a model relating GW signal and luminosity of the merger / burst?

To understand fully the importance of the recent observation I would like to know if it is possible to infer the distance or luminosity (in whatever wavelength, or say, the overall power) of the source (or those of the burst after merging) of GWs. This could locate the event by two independent measurements thus improve confidence on current knowledge of distance   A second question, if it makes sense and has an answer that does not require GR maths: how GWs decay (if they do) while travelling, and if there is any shift due to expansion of space. In my naive interpretation there should not be but I apply a very simple reasoning here (just consider "proper points" in space, the passing way should not change its frequency - Assuming  G wave are not single impulse but a frequency can be defined).


Keyboard shortcut keys with no scancode?

I have a Microsoft Wireless Keyboard 2000, model #1477, running on Ubuntu 16.04 32-bit with a strange issue. It has a row of shortcut keys along the top (one of the reasons I chose it), but only half of them work.  I thought the nonfunctional keys weren't assigned and just needed to be mapped, but going through the keys using showkey --scancodes doesn't provide any response. Does this mean the keys aren't sending any signal at all to the system? That seems extremely weird to me. There is , but I wanted to find out if there was a native way to get these keys working before I started trying to wrestle a Microsoft driver into cooperating.  Here are the keys by label and the scancodes for those that give them:  (home icon): 0xe0 0x32, 0xe0 0xb2 (envelope): 0xe0 0x6c, 0xe0 0x6c 0xe0 0xec (1): (2): (3): (4): (5): (star): 0xe0 0x66, 0xe0 0x66 0xe0 0xe6 (- magnifying glass): (+ magnifying glass): (play/pause): 0xe0 0x22, 0xe0 0xa2 («): 0xe0 0x10, 0xe0 0x90 (»): 0xe0 0x19, 0xe0 0x99 (speaker down): 0xe0 0x2e, 0xe0 0xae (speaker up): 0xe0 0x30, 0xe0 0xb0


Expected time to roll all 1 through 6 on a die

What is the average number of times it would it take to roll a fair 6-sided die and get all numbers on the die?  The order in which the numbers appear does not matter.  I had this questions explained to me by a professor (not math professor), but it was not clear in the explanation.  We were given the answer $(1-(\frac56)^n)^6 = .5$ or $n = 12.152$  Can someone please explain this to me, possibly with a link to a general topic?


Detecting whether my wireless card supports mac address spoofing?

In order to get around an  someone suggested spoofing my network cards mac address.  How do I detect whether the wifi card supports mac address spoofing?  There is material out there on this, but it is very dated.  How do you do this on Ubuntu 17.10?  I ended up just running this:  sudo macchanger --mac 00:11:22:33:44:55 wlan0   Use iwconfig to detect the name of your wireless card.  Unfortunately this did not resolve the issue with Starbucks WIFI.


Determine a basis for $\mathbb{Q}(\sqrt{2},\sqrt{3},\sqrt{5})/\mathbb{Q}$.

Given a basis for $\mathbb{Q}(\sqrt{2},\sqrt{3},\sqrt{5})/\mathbb{Q}$.   Considering $\mathbb{Q}(\sqrt{2},\sqrt{3})/\mathbb{Q}$ then, $\lbrace 1, \sqrt{2}, \sqrt{3}, \sqrt{6} \rbrace$ is a basis.  But $\lbrace 1, \sqrt{2}, \sqrt{3}, \sqrt{5}, \sqrt{6}, \sqrt{10}, \sqrt{15} \rbrace$ is not a basis for $\mathbb{Q}(\sqrt{2},\sqrt{3},\sqrt{5})/\mathbb{Q}$. I Know that $[\mathbb{Q}(\sqrt{2},\sqrt{3},\sqrt{5}):\mathbb{Q}]=8$.  I would like some help. My difficulty is not to prove that a given set is a basis, I can not find a basis.


I am looking for a way to create a legend in a regular tikzpicture. I found this    but I don't know    how to put the legend at the wanted position and how to add an entry with just a number instead of a symbol, like '1  number of ...'.   I don't need this. I just want to create easily a box where I have colored lines, colored circles/rectangles.. and colored numbers and the description next to.  Can anyone help me?


Recursively download site including files without extensions

I'm trying to download some files from an apache server with indexing turned on (so the pages are just hierarchical lists of links to files) however the files don't have extensions. I've tried wget with --accept=".*" but that doesn't work. It downloads the html ok.  Does anyone have any suggestions? I don't mind using a different tool.  Thanks  Joe


Show that $(\mathbb{Z}[x]/(x^{n+1}))^{\times}\cong \mathbb{Z}/2\mathbb{Z}\times\Pi_{i=1}^n\mathbb{Z}$.   Anyway how and what method is used to prove this. I still have no idea now. really thanks for your help


How to show that $f(A)$ is an open interval.

I was reading Hanhn-Banach separation theorem and it is written that      " Since $A$ is convex ,open subset of a normed $\mathbb K$-linear space and  f is $\mathbb R$-linear and continuous so $f(A)$ is an open interval."   Since A is convex f(A) becomes an interval but why open?  Please someone help. Thank you..


after install ubuntu 12.10, there's no anything just background and cursor

I'm a newbie and knew linux ubuntu a month ago. I just installed ubuntu 12.10 with windows xp. It's success, but after login just background, no bar, no button and there is no anything. What is the problem?


How to install texlive on ubuntu and how can I locate texlive after installation?

Months ago, I successfully installed TeXLive on ubuntu 12.04. Weeks ago, I updated my system from 12.04 to 14.04 but my TeXLive stopped work. So, I tried to uninstall my TeXLive and install it again. But now I have some problems about the process.  After I install TeXLive with the command sudo apt-get install texlive-full, I cannot find the texlive folder in /usr/local/. But if I use the command tex --version, I can still see the version information of the TeXLive. So, what is wrong with the installation? Where can I find the location of the texlive/ folder?


Update Android on non famous manufacture Android Phone

I have a  with Android 2.2.1 (which is very old). I want to upgrade it to the new version (2.3 Gingerbread). In Settings > About phone it shows that there are no updates to the firmware.  How should I update my device? It is not a popular phone and I cannot find an updated ROM for it.  If it matters, the phone has a 500 MHz CPU, 200 MB RAM with 250 MB ROM.


How to Take full document screenshot including non visible parts

How can I take a screenshot of the full web-page (including non-visible parts) with Selenium/WebDriver using c# and the ChromeDriver?  So that is full page, including elements that are not in view, but for which you need to scroll down.  Here is my current code:   Screenshot capture= ((ITakesScreenshot)driver).GetScreenshot();  capture.SaveAsFile(@"D:\FilePath\screen1.jpeg");


I imported an SVG, scaled it and rotated it. And all looked clean, until I bent it into a sphere, applied a material onto it to see that the mesh has toooooo many horizontal wires and almost no vertical wires making it unable to bend it vertically.  I followed the instructions  from  [and a lot from the comments :P] Here's a screenshot that explains what I'm talking about:    What should I do so that the mesh is clean with evenly distributed wires allowing the 2D structure to bend the right way?    I'm expecting in such a way that it would have minimal number of wires allowing it to be bent nicely (just like a 16x16 lattice is bent nicely into a sphere without any random wires)  EDIT:  Regarding Remesh modifier (answer for the tagged possible duplicate question), it seems it doesn't work well here. Here's what happens when I apply Remesh modifier. [It doesn't improve with increase/decrease in Octree Depth or sharpness or threshold]


How do I open Chromium in incognito mode by default?

I would like to be able to open Chromium in incognito mode automatically. I'm new to Linux and I love it so far but I haven't yet found a way to do this. I'm using Ubuntu 14.04.


vertically align top line of item contents with item number

\begin{enumerate}     \item This looks good.     \item       $\begin{aligned}         \mathrm{This} &= \mathrm{is} \\                       &= \mathrm{not\ nicely\ aligned}       \end{aligned}$     \item \begin{tabular}{ccc}             & Neither & is \\        this & table.  &    \\     \end{tabular} \end{enumerate}   It currently looks like this:    But I want it to look like this:    Vertically-aligned so that the top line of the ... item contents, lines up with the item number.


When I open the attribute table in QGIS 2.14 it looks like this:    In 2.18 the attribute table for the same project looks like this:    How do I make the attribute table of 2.18 look like the attribute table of 2.14?  How can I get the 2.18 attribute table to display the rows and columns that I see in 2.14?


How do I allow a program to continue running depsite an Exeption/error happening?

So I have an issue. My RPC calls will fail due to "NullpointExeption". Meaning that one column contains null in value. This is done on purpose, as I am gonna fill this column with value at some time. How can I allow the Java code to ignore/ or allow this error to happen thru error handling??  @Override public List <BreakRegistered> getAllRegisteredBreaks() throws IllegalArgumentException {     List<BreakRegistered> resultsfromquery = null;    ResultSet resultSet = null;     try {        //Execute query kaldes på resultsetter, fordi der kun nedhentes data        resultSet = getAllEmployeesBreaks.executeQuery();        resultsfromquery = new ArrayList<BreakRegistered>();         while (resultSet.next()) {            resultsfromquery.add(new BreakRegistered(                    resultSet.getTimestamp("time").toString(),                    resultSet.getTimestamp("checkedOut").toString(),  //Error occurs HERE!                    resultSet.getString("navn"),                    resultSet.getInt("medarbejderID")));        }    } catch (SQLException sqlException) {        throw new IllegalArgumentException(" \"getBreaks\" fejlede");    } finally {        try {            resultSet.close();        } catch (SQLException sqlException) {            sqlException.printStackTrace();            close();        }    }     return resultsfromquery; }


I've been using Ubuntu for months now and I will like to make a donation of $20.00 (its worth $200.00) Seriously, I checked out the website, and couldn’t find anywhere to donate. How can I make a donation?


$$(\vec{a}+\vec{b})\cdot[(\vec{b}+\vec{c})\times(\vec{c}+\vec{a})]=2\vec{a}\cdot(\vec{b}\times\vec{c})$$   Is there an option to prove it using the properties of dot and cross product? or do I need to take a general vectors to show it? can I use vectors in $\mathbb{R}^2$


Best way to show relevant experience when applying for a loosely related Masters?

I am currently in full time employment, but looking to return to University in order to complete a Masters in Computer Science in 2018, so I have plenty of time to implement your suggestions here.  My Bachelors was in an Economics related field, but I only managed to achieve a Third, due to personal reasons and a general lack of passion for the subject area, I should have done a Bachelors in Computer Science, but hindsight is 20:20  I graduated around three years ago and have been in positions with a heavy programming element, having implemented some projects using OOP and T-SQL on a regular basis in real life applications. I believe I will be able to handle any of the programming requirements of any such Masters in the Computer Science field because of this.  Obviously, institutions requiring a strict degree level are closed to me, but many institutions I am interested in state that work experience will be taken into consideration.  How do I best present my experience and attitude to these institutions?  Edit: Thanks for all the good advice so far, just to add that I am UK based, but you have given truly actionable steps so far.


Final transformation matrix to transform world coordinate into vrc

For a 3D scene in the world coordinates, its View Reference Point $\mathrm{VRP}$ is at $(5,2,1)$, and a viewer is looking towards point $A=(1,1,1)$. Construct a transform matrix which will map  world  coordinate  points  to  a  right-handed  $(UVN)$  viewing  space,  so  that  VRP  is    the  origin,  the  line  joining  $\mathrm{VRP}$ to  $A$  is  the  positive  $N$  axis,  and  the  view-up  Vector  is $(0,0,1)$.     I have calculated the translation matrix:  $$ T= \begin{pmatrix} 1 & 0 & 0 & -5 \\ 0 & 1 & 0 & 2 \\ 0 & 0 & 1 & -1 \\ 0 & 0 & 0 & 1 \\ \end{pmatrix} $$  I have calculated the rotation matrix:  $$ R= \begin{pmatrix} -0.6 & -0.8 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ -0.8 & 0.6 & 0 & 0 \\ 0 & 0 & 0 & 1 \\ \end{pmatrix} $$  But what would the final transformation matrix $M$ be? My lecture slides tell me it would be rotation matrix multiplied by translation matrix, with the last column multiplied by $-1$ except for the $1$. This would equal:  $$ M = R \times T =  \begin{pmatrix} -0.6 & -0.8 & 0 & -1.4 \\ 0 & 0 & 1 & 1 \\ -0.8 & 0.6 & 0 & -5.2 \\ 0 & 0 & 0 & 1 \\ \end{pmatrix} $$  But this answer here:   just adds them together somehow. Which one is correct?


Description of one side ideals in the ring of matrices

Where to find a description, with proofs,  of  all one side ideals of the ring of matrices over field?


I installed the following driver for an external wireless usb adapter from this page:    But the adapter is still unrecognized. How do I get it to be recognized?  The driver is rt2800usb  lsusb Bus 002 Device 010: ID 7392:a812 Edimax Technology Co., Ltd  uname -r 4.13.0-37-generic


How to react when the right answer is given in the comments?

I was wondering, it happened to me a few times that I answered a question in the comments section. This answer finally helped the user to solve his problem, ut as I gave it into the comments section, no answer was accepted, and I didn't receive any reputation.  What am I supposed to do then?  Write an answer and ask the user to accept it?  Or leave it unanswered?


How can I change HTML attribute names with jQuery?

I would like to change all the names of the attributes where class="testingCase" throughout all my whole html document.  e.g. Change:  Blabla Bloo   To this:   Blabla` <a class="testingCase" href="#" newTitleName="name of another testing case">Bloo</a>`   I was thinking of a find and replace but that seems a lot of code for something so easy. Is there a jQuery function for this or a simple method?


I'm using Ubuntu 12.04 and I want to block usb storage on it. What is the correct way to do this?


I am getting null pointer exception when I an trying to putExtra from intent

I am trying to call intent I set putExtra in first Activity as follows. In first activity  public void onClick(View v) {     int position = getAdapterPosition();     final Intent intent;     intent = new Intent(c, WhenCardClicked.class);     intent.putExtra("title",titles[position]);     intent.putExtra("desc",details[position]);     intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);     c.startActivity(intent); }   In WhenCardClicked.java  protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_when_card_clicked);     Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);     setSupportActionBar(toolbar);      TextView textView = (TextView) findViewById(R.id.title);     TextView textView1 = (TextView) findViewById(R.id.desc);     String title ="";     String desc = "";     title = getIntent().getExtras().getString("title");     desc = getIntent().getExtras().getString("desc");     Log.d("Debugtext", title+" "+desc);     if(title != null)textView.setText(title); }   In content_card_demo.xml  <TextView     android:layout_width="wrap_content"     android:layout_height="wrap_content" android:id="@+id/title"/> <TextView     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:id="@+id/desc" android:layout_below="@+id/title"/>   I am calling intent in first activity. But I am getting      Null pointer exceptioava.lang.NullPointerException: Attempt to invoke   virtual method 'void   android.widget.TextView.setText(java.lang.CharSequence)' on a null   object reference at   quickbook.com.recyclerlayout.WhenCardClicked.onCreate(WhenCardClicked.java:28)


Compute : $$L=\lim_{x\to 1^-} \left(\prod_{n=0}^{\infty} \left(\frac {1+x^{n+1}}{1+x^n}\right)^{x^n}\right)$$   My try:   Writing out the first few terms I noticed that the limit can be expressed as $$L=\lim_{x\to 1^-} \frac 12\left(\prod_{n=1}^{\infty} (1+x^n)^{x^{n-1} -x^n}\right)$$ $$L=\frac 12\lim_{x\to 1^-} \left(\prod_{n=1}^{\infty} (1+x^n)^{x^{n-1}}\right)^{1-x}$$  Converting to exponential form I get $$L=\frac 12 \exp {\left(\lim_{x\to 1^-} (1-x)\sum_{n=1}^{\infty} \left(x^{n-1}\ln(1+x^n)\right)\right)}$$  And got stuck here. I did try to use approximation $\ln x\sim x$ hereon to get final answer as $\frac {\sqrt e}{2}$ but I think it was improper to use approximation and hence I believe that the answer I got is flawed. I also noticed that the form I obtained is quite similar to be used for a Riemann Sum but I didn't get a way to tackle the problem using that way.  Can someone please help me with this problem....


Can a Familiar use "help" action to give advantage on ranged attacks?

According to , it appears a Familiar can take the Help action and grant advantage to an ally -- but can the same thing be said if I'm trying to hit with a ranged attack, such as eldritch blast or witch bolt, or even just a bolt from my crossbow?  Does this ability of the familiar to take the "help" action and confer advantage extend to ranged attacks, whether shooting with my light crossbow, or casting spells?  If so, it would be another feather in the cap of the Chainlock -- and if not, nothing is lost.  I don't believe this is a duplicate of , because that one asks, more or less, what actions will and won't end invisibility -- I'm asking about conferring advantage.


Determine whether $f(x)={\sin x \over x}$ is uniformly continuous in $\mathbb R$

Determine whether the function$$f(x)={\sin x \over x}$$is uniformly continuous in $\mathbb{R}$.  I am using the definition that for $\epsilon>0$ there exists $\delta>0$ such that $|f(x)-f(y)|<\epsilon$ whenever $|x-y|<\delta$.


Is every fundamental force a bend or a wave in some kind of field?

Gravitational force is a bend in the space-time fabric.....so I would like to know that is every other fundamental force is a bend or a wave in some kind of field/s?


Direct Proof of infinitely many prime numbers

We all have seen and know of Euclid’s proof by contradiction, but I’m wondering if there is such thing as a direct proof? Also, the theorem isn’t posed as an “if-then” statement, so I can not even imagine how an alternative proof would be structured.


Options to hide reputation information on Stack Overflow?

Is there a way to view the site without having to look at reputation information? I do not want to track my rep information or see anyone else's.  I think that'll let me focus more on the questions themselves.  Is anyone else interested in this feature? I don't see anything on Stack Overflow itself, but are there any add-ins or  scripts that do this?


Prove: $ \frac{1}{\sin 2x} + \frac{1}{\sin 4x } + \cdots + \frac{1 }{\sin 2^n x} = \cot x - \cot 2^n x $

Prove    $$ \frac{1}{\sin 2x} + \frac{1}{\sin 4x } + \cdots + \frac{1 }{\sin 2^n x} = \cot x - \cot 2^n x $$   where $n \in \mathbb{N}$ and $x$ not a multiple of $\frac{ \pi }{2^k} $ for any $k \in \mathbb{N}$.   My try. If $n=2$, we have  $$\begin{align} \frac{1}{\sin 2x} + \frac{ 1}{\sin 4 x} &= \frac{1}{\sin 2x} + \frac{1}{2 \sin 2x \cos 2x } \\[6pt] &= \frac{ 2 \cos 2x + 1 }{2 \sin 2x \cos 2x} \\[6pt] &= \frac{2 \cos^2 x - 2 \sin^2 x + \cos^2 x + \sin^2 x}{2 \sin 2x \cos 2x} \\[6pt] &= \frac{3 \cos^2 x - \sin^2 x}{2 \sin 2x \cos 2x} \end{align}$$  but here I got stuck. I am on the right track? My goal is to ultimately use induction.


Removing the content of a directory recursively

I want to delete the content of a folder without deleting a folder: all files and all sub folders with sub files. This doesn't delete anything  sudo rm -rf /folder1/*   Why not? How to get it to work?


How to add a ssh user who only has permissions to access specific folder?

How to add an ssh user who only has permissions to access specific folder?  useradd -d /var/www/xyz.com.tr/musteri  -s /bin/bash -g sshd musteri   I created a user called musteri. I set its home folder and group. So, I want to integrate musteri users into "/var/www/xyz.com.tr/musteri". I don't want it to access another folder.


No admin access to BIOS to change boot priority

When I'm trying to boot my PC from the Xubuntu minimal CD, it fails. It just goes straight to the other operating system, windows vista.  I don't have admin access is that occurring the problem? My computer is really old. It is the 32 bit.  How to solve this problem?


Seeking training resources in Python as applied to geodatabase management?

I've taken ESRI database courses, which have been helpful to my work but I also need training in Python as applied to geodatabase management?


Create multiple rows based on repeated columns

I have a csv (technically, an Excel spreadsheet) that has rows/columns like this:  AC-10   ECLO-1  ECLO-2 AC-11   PESL-1   AC-13   ABCD-2  ABDE-3  AGTU-5   What I'd like to do is create two columns so that it looks like this:  AC-10   ECLO-1   AC-10   ECLO-2    <- Notice the 'AC-10' is now repeated with the (former) 3rd column as its value AC-11   PESL-1 AC-13   ABCD-2   AC-13   ABDE-3    <- Repeated row, new value from old column AC-13   AGTU-5    <- Repeated row, same idea   Is there a relatively pain-free way to do this in Excel? I'm trying to avoid scripting out a solution.


I'm not sure why in some situations articles are not going before a noun. E.g. I found this sentence:     The best time to go out for dinner.   Why is not here a dinner? This  says that we don't put articles in front of noun if is already some determiner before, like this and that. But for is not a determiner, so I'm wondering why it's not correct to say a dinner?


So I have  installed for MinGW. And while it works flawlessly, I'm a bit at a loss on how to add it to my path permanently. If anyone could help me understand the batch file and how to (what folders/paths to add) to my PATH, I would appreciate it. (Mainly the C include stuff.)  I am trying to add specifically these batch file locations to my full path so I can use it anywhere, instead of having to run this file everytime. How do I do that? It's installed to: C:\MinGW.  Relevant bat file:  @echo off if not exist "%~dp0bin\gcc.exe" goto epicfail if "%X_DISTRO%" == "nuwen" goto :eof set X_DISTRO=nuwen if exist "%~dp0git\cmd\git.exe" set PATH=%~dp0git\cmd;%PATH% set PATH=%~dp0bin;%PATH% set X_MEOW=%~dp0include;%~dp0include\freetype2 if defined C_INCLUDE_PATH (set C_INCLUDE_PATH=%X_MEOW%;%C_INCLUDE_PATH%) else (set C_INCLUDE_PATH=%X_MEOW%) if defined CPLUS_INCLUDE_PATH (set CPLUS_INCLUDE_PATH=%X_MEOW%;%CPLUS_INCLUDE_PATH%) else (set CPLUS_INCLUDE_PATH=%X_MEOW%) set X_MEOW= goto :eof  :epicfail color 4f echo ERROR: You must run %~nx0 from the root of the distro. echo        Don't copy or move this batch file. title ERROR goto :eof


Radius and domain of convergence for $\sum _{n=1}^{\infty}2^n x^{n^2}$

Another Question on Radius of convergence :  Calculate Radius and domain of convergence for $$\sum _{n=1}^{\infty}2^n x^{n^2}$$  I used the formula $\lim_{n\rightarrow \infty} |\frac{a_n}{a_{n+1}}|$ to calculate radius of convergence.  I have $\lim_{n\rightarrow \infty} |\frac{a_n}{a_{n+1}}|=\lim_{n\rightarrow \infty} |\frac{2^n}{2^{n+1}}|=\frac{1}{2}$   So,radius of convergence is $\frac{1}{2}$ for $\sum _{n=1}^{\infty}2^n x^n$ but how would i use this to calculate radius of convergence for $$\sum _{n=1}^{\infty}2^n x^{n^2}$$  If i have series something like $\sum _{n=1}^{\infty}2^n (x^n)^2$  I would have just write radius of convergence is $\sqrt{\frac{1}{2}}=\frac{1}{\sqrt{2}}$  But in this case i do not know what to do.. please help me to see this.  Another point is I some how tried to use : For $\sum_{n=1}^{\infty}a_nx^n$ radius would be $R$ where  $$\frac{1}{R}=\lim \sup \sqrt[n]{|a_n|}$$  My book says that if I have some thing like  $$\sum _{n=1}^{\infty}a_n x^{n^2}$$ I could use same formula with $$\frac{1}{R}=\lim \sup \sqrt[n^2]{|a_n|}$$  I am not very sure if i can really use it but if i use that, I would get :  $$\frac{1}{R}=\lim \sup \sqrt[n^2]{2^n}=\sqrt{2}$$  SO, radius of convergence would be $\frac{1}{\sqrt{2}}$  which is not much different from what i have got with previous case of $\sum _{n=1}^{\infty}2^n (x^n)^2$   I would like to know more about something similar to this..  Even if i have $\sum _{n=1}^{\infty}a_n x^{n^2}$ or $\sum _{n=1}^{\infty}a_n x^n$, the radius of convergenc is not changing.  Please help me to look into this in more detail.  Thank you


how to sort dictionary by value alphabeticallly?

So I have a dictionary, with keys and values, and the values are letters. I want to sort the dictionary so that it prints alphabetically according to the values, but I just can't figure out how to go about it.  For example, I have this dictionary:  dict = {5 : 'B', 7 : 'A', 9 : 'C'}   How do I get this to be sorted so that it prints out as follows?:  {7 : 'A', 5 : 'B', 9 : 'C'}


Ensure that loopback root and host are unmounted on shutdown

I'm trying to setup a Linux system that runs from an LVM-formatted image file. After some tinkering with the initramfs and boot options I managed to make it up and running by mounting the host file system to /run/initramfs/host, losetuping the image to /dev/loop0 and making sure the kernel and udev detect the LVM (and the root LV) in there. So far so good.  The problem is that when shutting down (or rebooting, or …) the system neither the  root file system nor the host are unmounted properly, because of a chicken-and-egg scenario: the root (or /oldroot, as it's referred to by the shutdown script) cannot be unmounted, because /oldroot/run/initramfs/host is still mounted, and the host cannot be unmounted, because doing so would make /oldroot inaccessible.  Unclean shutdowns aren't the end of the world, because both file systems are journaled, so during the next boot fsck simply replays the journals, but obviously clean shutdowns would be better.  So the question is: is it somehow possible to arrange the shutdown sequence (I can modify the shutdown script), or the bootup sequence (perhaps by moving the host mount point to a different place) so that both file systems can be cleanly unmounted?


How to convert a list of images with "random" names to an mp4 timelapse using ffmpeg?

I have a series of images taken at regular intervals, with semi-random names: img1_abR39v34ef.jpg img1_f9bv2fxzEr.jpg img1_bFg984fsg5.jpg img1_9b83273fed.jpg ...  I have a text file that lists all the images in the correct order. Note that simply sorting the list won't work, so the text file of image names is important. I know how to do something like this: ffmpeg -i img1_%06d.jpg ...  But this requires the images be named in sequential numbered order. I could write a script to copy all images in order to another folder under sequential numbered names, but this is an extra step that would require extra space and processing time. Can I somehow get ffmpeg to read from the text file I have of the images in the correct order and generate a timelapse video?


I have 2 dropdown menu. when i click on the first one the second one should display value related to the first choice. however when I select a the first one, i get this.     Error: Unknown column 'abc' in 'where clause'   below is my code. Can some one tell me what i am doing wrong. Thank you in advance.  <?php  include ('db_connect1.php');  $query_parent = mysqli_query($conn, "SELECT * FROM field") or die("Query failed: ".mysqli_error()); ?> <!doctype html>   <meta charset="utf-8"> <title>Dependent DropDown List</title>      <form method="get"> Parent Category <select name="parent_cat" id="parent_cat">     <?php while($row = mysqli_fetch_array($query_parent)): ?>     <option value="<?php echo $row['field_name']; ?>"><?php echo    $row['field_name']; ?></option>     <?php endwhile; ?> </select>

  Sub Category <select name="sub_cat" id="sub_cat"></select> </form>    //loadsubcat.php <?php  include ('db_connect1.php');  $parent_cat = $_GET['parent_cat']; $test="SELECT * FROM courses WHERE field_id = {$parent_cat}"; $query = mysqli_query($conn,$test) or die ("Error: ".mysqli_error($conn)); while($row = mysqli_fetch_array($query)) { echo "<option value='$row[course_id]'>$row[course_name]</option>"; } ?>


How do I burn a multi-track .img image to a CD-R or CD-RW?

I have an .img file sizing about 600 MiB. When I wanted to burn this file to a CD (not a DVD), I could not find any program capable of doing so. I tried K3b, Brasero, and AcetoneISO. Nothing was able to burn the .img file.  Then i tried to convert it to an .iso with AcetoneISO, but it said i would lose important tracks (multitrack disc). The outcome was a file of 160 MiB or so, so I figured this was no solution either.  I do not want to write the .img image to a  USB stick, but only burn it to a CD. In the case that such an .img image is from a bootable CD, I cannot simply dump its contents to a folder by copying and then burn that folder to the CD-R after mounting it. Doing that would fail to produce a bootable CD.  Is there any program in Ubuntu's repositories that can do this? Is there another way to convert the file?  This is not a duplicate of  because I am asking how to burn an .img image to CD-R or CD-RW and not an .iso. I am not able to find any CD-R software for burning .img image files to a disc.  The reason this is not a duplicate is that I am asking for a method for  how to burn an .img (not an .iso, nor a .bin/.cue) image to a CD-R in Linux. The linked question does not appear to answer this. I am unable to find any burner in the repos in Xubuntu that does this. AcetoneISO does mount the image, but that is not what I want, since it is a multi-track .img (all tracks in one .img file). I also want to burn it to a CD-R so that it remains bootable. K3b and other burners do not accept any .img file for burning.  Converting it to an .iso with AcetoneISO or any other program makes it lose the additional tracks beyond track 1 and possibly also to lose the bootable aspect.


If $a, b, c$ are positive real numbers such that $abc=1$ prove that $\frac{a^3}{(a-b)(a-c)} + \frac{b^3}{(b-a)(b-c)} + \frac{c^3}{(c-b)(c-a)} ≥ 3$

If $a, b, c$ are distinct positive real numbers such that $abc=1$, prove that   $$\frac{a^3}{(a-b)(a-c)} + \frac{b^3}{(b-a)(b-c)} + \frac{c^3}{(c-b)(c-a)} ≥ 3.$$  I tried to do this problem by assuming that $a<b<c$. By using this, the first and the third term of the inequality are positive and the second is negative. Thus, we can obtain the minimum value of the expression by minimizing the sum of the first and the third and maximizing the second. I'm stuck at this part and would appreciate if someone could help me.


I am writing a bash script to look for a file if it doesn't exist then create it and append this to it:  Host localhost     ForwardAgent yes   So "line then new line 'tab' then text" I think its a sensitive format.  I know you can do this:  cat temp.txt >> data.txt   But it seems weird since its two lines. Is there a way to append that in this format:  echo "hello" >> greetings.txt


Get the name of the reference that the extension method was called on

Let's say I have and extension method called MyExtensionMethod.  I want to use it like this:  var x = new MyClass() x.MyExtensionMethod()   Then, inside the extension method, I want to get the name of the reference that it was called on:  public static void MyExtensionMethod(this object param) {     //get the name "x" somehow }   Is this possible?


What is the probability of exactly two accidents on at least one day of a week, in case of 7 indistinguishable accidents per week

If 7 accidents (all are indistinguishable i.e we care only about whether accident happen or not, not the details of it) happen in a week.  What is the probability of exactly two accidents on at least one day of a week.  My solution is given below  $$ \frac{1}{13 \choose 6} \Bigg[{7 \choose 1}{10 \choose 5} - {7 \choose 2} {7 \choose 4} + {7\choose 3} 4 \Bigg] = 0.681 $$  I used the equation that number of ways $r$ balls can be arranged in $n $ cells in ${n+r-1 \choose n-1}$ distinguishable ways.  Is it correct ?


Here is my problem:  Use induction to show that for $n\ge1$, $$\frac{4^n}{\sqrt{4n}} \le \frac{(2n)!}{(n!)^2}\le \frac{4^n}{\sqrt{3n+1}}.$$  What I have so far:  For $n=1$ it is $2≤2≤2$, and I tried to originally do this problem by assuming that the case holds for $n\ge 1$, and if it hold for n+1, than it should hold for all $n\ge 1$.  I started with $n+1$ case: $$\frac{4^{n+1}}{\sqrt{4(n+1)}}\le\frac{(2(n+1))!}{((n+1)!)^2}\le\frac{4^{n+1}}{\sqrt{3(n+1)+1}},$$ but this did not really lead me anywhere.


Departure time of given flight at given date

I have been looking on the internet for a solution to my problem. I had a flight delay of over 6 hours at Paris CDG, and for my complaint form I need to know the exact departure time of my flight, but I do not remember exactly.   Is there a website where I can know that?   For example: Flight AF0422 the 4th March 2014.   Thanks a lot! I hope this is the place to ask this kinds of questions, if it isn't forgive me and would be grateful for suggestions of where to find the info.


How can I change my circumstances to get a better chance of getting a visitor visa next time? The refusal was base on spending 12 months’ worth of savings on 6 day trip


In some PSE questions or answers such as  there appears the notion of "accelerating frame" or (more or less equivalently) "noninertial frame".   What's the definition of this notion?, i.e. How are given participants (or, if you prefer, "point particles"$\,\!^{(*)}$) who "keep sight of each other" supposed to determine whether they (pairwise) belonged to the same "noninertial frame", or not?  $(*$: Cmp. the notion of "inertial frame", in distinction to "inertial coordinate system", of  We should, strictly speaking, differentiate between an inertial frame and an inertial coordinate system, although in sloppy practice one usually calls both IFs. An inertial frame is simply an infinite set of point particles sitting still in space relative to each other.$)$.  Follow-up: The new (follow-up) question to be asked to fully address this question has been submitted as


My mother was a refused a UK visa due to her previous visa application containing an erroneous statement. What are my options?

My mother was denied a visa to attend my graduation and she has been crying since she received this heartbreaking news. I really want her to attend my graduation. How do I remedy this problem?  After working for an organisation, she started her own business and she attached a document showing her business registration and business account details.  The last application she did was done by an agent as she was feeling poorly during that period. So the agent mentioned that she has no relative or dependent.


Blender adding unnecessary edges to flat surfaces

I'm trying to make a beveled "B". I have a perfectly flat B that I'm extruding, but Blender keeps adding unnecessary lines. Scaling to Z 0, limited dissolve, etc will not remove them. Deleting them breaks the face. These lines mess up the bevel process, even if I only select the 90 degree edges of the geometry. How do I force blender to just generate a flat, uninterrupted top surface?


This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. See  for more information.   This is a community wiki for IDEs available on Ubuntu. Please post one IDE per answer (including more than just a screenshot or a link, please at least put a short description).  In your answer, tell us what the IDE is for (which language(s) or if it is RAD capable).


How to convert an account from Yahoo to an OpenID?

Every time I login, it is through my Yahoo account. Is there a way to convert it into an OpenID type account?


Can I find out the return value before returning while debugging in Visual Studio?

Take the following function:  DataTable go() {     return someTableAdapter.getSomeData(); }   When I set a breakpoint in this function, is there a possibility to inspect the returned value? go() is directly coupled to a datagrid in an .aspx page.  The only way to inspect the returned datatable is to use a temporary variable. However, that's a bit inconvenient. Isn't there another way?


Link pdf/jpeg to locations in QGIS all coming from a standard folder

I am currently making a geotechnical database for a company as a student.  One of the goals is to locate all CPT data and make it so that if someone clicks on the CPT location they get an image of (or a link to) the cpt results.  The data would be in a folder together with the QGIS project which would be transferred within the company.  So, they would get a folder from me and if they open it on their pc they should be able to just run the qgis project and have acces to the hyperlinks.  What is the best method to do this?


How to prove or disprove this statement about convergent sub-sequences?

I need to prove through a proof or disprove through a counter example that if $a_n$ is a sequence which has three sub-limits ( $a_n$ has three sub-sequences that each one of them have different limit)and $b_n$ is another sequence that has  two sub-limits( $b_n$ has two sub-sequences that each one of them have different limit) then could it be that there is a sequence $c_n$ that happens to be  $c_n$=$a_n$+$b_n$ and is convergent ? (convergent here means that $c_n$ has only one limit!!) any piece of advice is appreciated!!


Terminal input changes on SOME incorrect commands

I enter a command like this one:  find . -type f -exec chmod 644 {} +`   The ` on the end breaks the command and the next fields are:  > > >   etc. There I can write whatever I want and quitting this happens only through Ctrl+C.  My question is: what are those > that I am getting to? I am not finding any information on why this is happening and what is its purpose.


I've been spoiled by Visual studio 2008 and Eclipse and have to do a little maintainence work on a VB6 app.  Does anyone know of an alternative/ updated IDE for VB6?  A rewrite is not an option I'm just fixing a couple of bugs and it's a big codebase.


Why does underlined text not get wrapped once it hits the end of a line ?

Sometimes I want to underline some text, and it extends past the end of a line.  Why does \underline{} not automatically wrap my text for me ?    Also, how can I underline text so that it will still wrap ?


For any positive integer $n$ show the inequality holds : $$\left|\sum_{i=1}^{n}\frac{\mu(i)}{i}\right|\le 1$$ I tried induction. when $\mu(n+1)=0$ it is trivial. But what if $\mu(n+1)\ne 0$? I am stuck there. Can someone help me? Thanks.


Show that both mixed partial derivatives exist at the origin but are not equal

$$f(x,y) = \begin{cases} \displaystyle \frac{xy(x^2-y^2)}{x^2+y^2} & \text{if } (x,y) \neq (0,0), \\ 0 & \text{if } (x,y) = (0,0). \end{cases}$$ I tried finding both mixed partial derivatives but they ended up being the same for that function. I must be failing to take into account something dealing with the fact that it is piece-wise. I still need to show the mixed partial derivatives exist. How can I do all of this?


How to find out all installed software in our RedHat Enterprise 5 server?

We're moving servers and I need to make a list of all software installed in our server so we could install it too in the new one we'll get.  Current server details:   Redhat Enterprise Linux 5 Using Virtualmin / Webmin to do occasional config changes I know basic SSH commands, enough to move files around, restart services, install & uninstall, etc.   Is there a command I could use to make a list of all installed software in our server? And also possibly find out what version we're using?


Why do nodes exist in wavefuncions of electrons?

Nodes are points in space around a nucleus where the probability of finding an electron is zero. However, is there a reason for the existence of Nodes? I'm looking for an intuitive explanation if possible and links to any literature that gives the math behind :)


Is there a non-technical gender-neutral term for child above the age where a person is no longer considered a child?

A person is their parent's child always, but past an arbitrary age, it's no longer appropriate to call them a "child".   I'm familiar with the term "Offspring", but that sounds technical, is there a more conversational synonym?


Language technique of preposition starting a sentence?

Specifically, in F. Scott Fitzgerald's 'The Great Gatsby':     With the influence of the dress her personality had also undergone a change.   The phrase "With the influence of the dress" is known as a 'prepositional phrase', but is there a specific term for the preposition starting a prepositional phrase? If so, what is this language technique?


Do algebraic fields in mathematics have any connection to the fields in physics?

Basic question, but is there some sort of connection between the two, or are they just separate definitions.


How to remove/hide the recycling bin and All site content from the quick launch or remove the quick launch altogether?

Ho can I remove the recycling bin and the 'All Site Content' link from the quick launch or remove the quick launch altogether


What is the difference between Dim v As String() and Dim v() As String?

This may sound trivial, but what is the difference between  Dim v As String()   and  Dim v() As String   in VB.NET?


When should we consider a dataset as imbalanced?

I'm facing a situation where the numbers of positive and negative examples in a dataset are imbalanced.  My question is, are there any rules of thumb that tell us when we should subsample the large category in order to force some kind of balancing in the dataset.  Examples:   If the number of positive examples is 1,000 and the number of negative examples is 10,000, should I go for training my classifier on the full dataset or I should subsample the negative examples? The same question for 1,000 positive example and 100,000 negative. The same question for 10,000 positive and 1,000 negative. etc...


Can copy command in postgresql append data to a file?

I want to add some data from a postgresql table to a text file. But already some data is present in the file. I do not want to delete that data. Is it possible? The questions asked earlier were the one in which the table name was dynamic. But in mine, it is not. All I am asking for is to append data. Also, the answer given is for Unix, not windows.


Could the equations of physics evolve over time?

Current equations describe everything pretty well but there are some issues considering inflation, quantum gravity, black holes,... How would we be able to verify that these do not evolve over long time periods, say several centuries? How would we describe someting like this? What would be the implications?


Is there any way to automatically scale matching parentheses by default?

I tend to use \left( and \right) (and its cousins) all over the place. Is there a way to make this automatic scaling the default behavior in math mode? On the very rare occasions that I don't want automatic scaling I'd then like to write \( and \).


Simplify: $\sin \frac{2\pi}{n} +\sin \frac{4\pi}{n} +\ldots +\sin \frac{2\pi(n-1)}{n}$.

Can you help me solve this problem?     Simplify: $\sin \dfrac{2\pi}{n} +\sin \dfrac{4\pi}{n} +\ldots +\sin \dfrac{2\pi(n-1)}{n}$.


10k-tools lists items I've already dealt with

My 10K-tools items currently lists:    What I have a problem with is that I've flagged both these posts as being "not an answer" and also cast the only "delete" vote that is listed with the second post. However, neither post is being removed from my list of items to review:     Why is this the case?


I have a java project written with eclipse and when I tried to run a class file using windows command prompt, I had the following error:  Exception in thread "main" java.lang.NoClassDefFoundError: com/csvreader/CsvWriter  The code is running well on eclipse but not on command prompt. Do anyone know why? Thanks in advance!  I have checked that the builtime classpath and the runtime classpath is the same.


What happens if I overload a load balancer? Can I have two load balancers, and how would I set this up?

I have a question about scalability. Here's what I know so far:  If I have an application that exceeds the provision of a single machine, it's possible to scale horizontally by adding additional machines. A load balancer would distribute traffic among those machines.  However, what happens when the load balancer gets overloaded? Could anyone provide an explanation about how I could set up a second load balancer using NGINX?


Number of matrices with positive determinant whose entries are {1,-1}

How many different matrices  $3 \times 3$ matrix, whose every entry is 1 or -1, have positive determinant?   My approach: I found out the possible values of determinant of all such $3 \times 3$ matrices whose entires are 1 or -1: {-4,-2,0,2,4}.  The number of matrices with positive determinant = number of matrices with negative determinant by symmetry, (as we can just multiply each entry with -1, and sign of determinant would change as it's an odd degree).  So the answer would be $\frac{2^9-n(0)}{2}$ where n(0) is the number of singular matrices(determinant 0).  For n(0), any two rows/columns must be proportional to each other i.e. all 1 or all -1 or one of them 1 and the other -1.(4 possibilities for two such choosen rows/columns).  So I tried to count it as follows: $({3 \choose 2} \cdot 4 \cdot 2^3)\cdot 2=192$ for rows and columns. However this includes cases with three rows /three column repeated as well, for which we must subtract the over counted cases.  For all 3 rows/columns to be proportional there are $(3\cdot 2 +2) \cdot 2 = 16$ ways of which each is counted thrice. So a total of 48 repeated cases.  So n(0)=192-48=144.  This gives number of matrices with positive determinant as $\frac{512-144}{2}=184$,  However the answer is given as $96$.  Where am I going wrong?  Also is there a more systematic way of doing this question?


Can I insert a comma in this sentence like this:  "Consequently, the type of the vehicle they are using can be specified as well as if they are walking or stationary somewhere."  Or is the sentence better without it:  "Consequently the type of the vehicle they are using can be specified as well as if they are walking or stationary somewhere."


Step by Step enable remote login to home ubuntu machine?

To clarify, this is ask:  I have a home computer running ubuntu. I want to be able to ssh into it from a remote location such as a cafe where I will bring a laptop.   My attempts thus far have been unsuccessful: I set up my router to forward port 22 to port 22 on my home computer's ip address. When I ssh@, I get connection refused.   I can't find an online comprehensive guide on how to do this. I know it involves setting a few things such as static IP address on the home machine, as well as router port forwarding. Past this, there are many questions such as how specifically to set the static IP (there seem to be several ways), what IP address to use, what port to forward on the router, what port to choose to forward to on the home ubuntu machine, ssh details when logging in via that particular port, etc.


C++ const std::map reference fails to compile

Is there a reason why passing a reference to a std::map as const causes the [] operator to break? I get this compiler error (gcc 4.2) when I use const:     error: no match for ‘operator[]’ in   ‘map[name]’   Here's the function prototype:  void func(const char ch, std::string &str, const std::map<std::string, std::string> &map);   And, I should mention that there is no problem when I remove the const keyword in front of std::map.  If I've been instructed correctly, the [] operator will actually insert a new pair into the map if it doesn't find the key, which would of course explain why this happens, but I can't imagine that this would ever be acceptable behavior.  If there is a better method, like using find instead of [], I'd appreciate it. I can't seem to get find to work either though... I receive const mismatched iterator errors.


how to leave a picture for background of the grub?

I want to change the background of the grub and leave a picture for it`s black color. is it possible to do this? thanks for your any advance.


I'm trying to understand ssh's -t option:     -t      Force pseudo-terminal allocation.  This can be used to execute arbitrary screen-                based programs on a remote machine, which can be very useful, e.g. when implementing                menu services.  Multiple -t options force tty allocation, even if ssh has no local                tty.   So, TTY is a device. A way to refer to a TTY is by descriptor (which is obtained by opening the TTY device). STDIN, STDOUT and STDERR are descriptors. But they do not necessarily refer to a TTY device. -t option forces them to refer to a TTY device. Is this the correct way of reasoning in order to understand what this option does?  And what is so special about TTY which may not be achieved using ordinary STDIN, STDOUT and STDERR?  An example of use case of -t option is welcome.  By which mechanism does ssh allocate that TTY? Does ssh create new TTY on server or on client? How to check this? (a new node in /dev/ must appear or something...) And how this new TTY is tied to existing STDIN, STDOUT and STDERR?


Definition of cosinus: Taylor series vs. right-triangle

Is it possible to give a formal proof that the definition of cosinus by a series is the same as done in geometry using right triangles? If the answer is yes, then please give the proof here.


Is there a keyboard shortcut for "Show Hidden Files" in the Finder in El Cap?

Related:    Looks like there was a keyboard shortcut for it. But in 10.11.6 all I get when I press Cmd Shift . is the bonk sound.    Is that keyboard shortcut gone? What's an easy way to get it back?   Note that the shortcut works in file dialogs but not the standard Finder window.   Not a duplicate: the top ranked question on  does not work in El Cap.


I deleted Terraria so the local data would be deleted.   I tried re downloading the game but there was no old data that I played. Is it possible to get back? Will Copytrans Shellbee work?   My device is the iPad 4, running the iOS version of Terraria.


I want to draw the rotation animation of this triangle around the oz axis, and fix the frame (x_0, y_0, z_0)

I want to make an animation, to show the rotation of this plate around the axis oz, I used this code   \documentclass[border=5pt]{standalone} \usepackage{tikz,tikz-3dplot} \begin{document} \tdplotsetmaincoords{70}{110}% deu angle $\theta_d$ atour de (x) et $\phi_d$ autour de (z) \begin{tikzpicture}[tdplot_main_coords,scale=5]    \pgfmathsetmacro{\r}{.5}   \pgfmathsetmacro{\O}{45} % right ascension of ascending node [deg]   \pgfmathsetmacro{\i}{45} % inclination [deg]   \pgfmathsetmacro{\f}{45} % true anomaly [deg]    \coordinate (O) at (0,0,0);    \draw [thick,->] (O) -- (1.5,0,0) node[anchor=north east] {$x_0$};   \draw [thick,->] (O) -- (0,1,0) node[anchor=north west] {$y_0$};   \draw [thick,->] (O) -- (0,0,1.5) node[anchor=south] {$z_0$};   \fill[black, tdplot_main_coords] (0,0,0) circle (0.5pt)node[medway, anchor=-30]{$O$};    \tdplotsetthetaplanecoords{45}   \draw [thick,tdplot_rotated_coords,color=violet,->] (O) -- (1.5,0,0) node[anchor=north east] {$z$};   \draw [thick,tdplot_rotated_coords,color=violet,->] (O) -- (0,1.65,0) node[anchor=north west] {$x$};   \draw [thick,tdplot_rotated_coords,thick,dashed, color=violet,->] (O) -- (0,0,1) node[anchor=south] {$y$};    \draw [tdplot_rotated_coords, fill=yellow!20!gray] (O) -- (1,0,0)--(0,1,0)--cycle;     \tdplotdrawarc[thick, tdplot_main_coords, color=red, ->]{(0,0,0)}{\r}{0}{45}{anchor=105}{$\varphi$}    \tdplotdrawarc[thick, tdplot_main_coords, color=red, ->]{(0,0,0)}{\r}{90}{135}{anchor=180}{$\varphi$} \end{tikzpicture} \end{document}   to produce the figure in 3D as shown in the image above, but I have not yet familiarized with the animate package to make latex animations.  could anyone help me to do this? Thanks in advance.


Evaluation of $\int^1_0\frac{x^b-x^a}{\ln x} d x=\ln{{\frac{1+b}{1+a}}}$

$$\int^1_0\frac{x^b-x^a}{\ln x} d x =\ln{{\frac{1+b}{1+a}}}$$ The  part inside $\ln$ is absolute value. A solution including integration under the integral can be found . Which used the identity $$\int^1_0x^{\alpha} dx =\frac{1}{1+\alpha}$$. Multiplies both side by $d{\alpha}$ and integrates with respect to $\alpha$. Are there other methods to prove this identity?  Thank You.


New question asking form sometimes leads to accidental double posts of questions

I've noticed that with the new question asking form, sometimes, attempting to submit a question will post two identical copies of the same question.  I've  (), but at the time, I assumed it was just a temporary fluke. As far as I remember, I just reviewed the question, saw no errors, and submitted it. (That's all the info I have.)  However, I just saw this happen to someone else, so it can't just be a fluke on my end. , and . The author claims there that they did indeed double click the "Review" button, but their question didn't go through since it didn't have a required tag, but when they tried to submit the question with the required tag, they only clicked it once.  Also, now that I think about it, it could not have been just a temporary client-side issue on both our ends. The system is supposed to  if one tries to post more than one question in 30 seconds. Neither of us got a CAPTCHA. This means that the server accepted the double post, and so it's a server issue.  This has the effect of denying users badges that they would have otherwise qualified for, since a single negatively-received, closed, or deleted question . This means that even if the double post is deleted and the original is upvoted, the user won't qualify for that day since they've made a "bad" question on that day. (While they may be able to later reverse this 60 days later by undeleting and re-deleting their question - questions deleted more than 60 days later aren't considered "deleted" for the check - they often won't be able to, since most of the time, users will have downvoted the double post, which also disqualifies one from the badges.)  Can an employee go through server logs to see what happened in both these cases, and add some safeguards to prevent accidental double submissions of questions? This seems to have come up when the new asking form was deployed.  Update: There was another case just now:  was . As both have the exact same time of submission, this is an instance of this bug, since as I said above, this thing is ordinarily prevented by a CAPTCHA.


How to calculate centroid of a polygon defined by a list of longitude/latitude points?

I've imported some polygons (ways) from OpenStreetMap and now want to calculate the centroids of them.  For this purpose I wrote following code:      final List<Point2D.Double> points = getPoints();     final Point2D.Double actualCentroid = calculateCentroidOurWay(points);      LOGGER.debug("Centroid, x: " + actualCentroid.x);     LOGGER.debug("Centroid, y: " + actualCentroid.y);  private Point.Double calculateCentroidOurWay(final List<Point2D.Double> aPoints) {     final Building objectUnderTest = new Building();      objectUnderTest.setPolygon(new Polygon(aPoints));      return objectUnderTest.calculateCentroid(); }  @Override public Point2D.Double calculateCentroid() {     double x = 0.;     double y = 0.;     double area = 0.;      for (int i = 0; i < polygon.getPoints().size() - 1; i++) {         final Point2D.Double point = polygon.getPoints().get(i);         final Point2D.Double pointN = polygon.getPoints().get(i + 1);          final double temp = point.getX() * pointN.getY() - pointN.getX() * point                 .getY();         x += (point.getX() + pointN.getX()) * temp;          y += (point.getY() + pointN.getY()) * temp;          area += temp;     }      area /= 2.;      x *= 1 / 6. * area;     y *= 1 / 6. * area;      return new Point2D.Double(x, y); }   private List<Point.Double> getPoints() {     final List<Point.Double> points = new LinkedList<>();      points.add(new Point.Double(132.1764353, 43.3539477));     points.add(new Point.Double(132.1771393, 43.3539409));     points.add(new Point.Double(132.177145, 43.3542587));     points.add(new Point.Double(132.1768224, 43.3542618));     points.add(new Point.Double(132.1768183, 43.3540332));     points.add(new Point.Double(132.1766516, 43.3540348));     points.add(new Point.Double(132.1766564, 43.3542949));     points.add(new Point.Double(132.176566, 43.3542957));     points.add(new Point.Double(132.1765705, 43.3545391));     points.add(new Point.Double(132.1769718, 43.3545353));     points.add(new Point.Double(132.1769691, 43.3543859));     points.add(new Point.Double(132.177131, 43.3543843));     points.add(new Point.Double(132.1771321, 43.3544446));     points.add(new Point.Double(132.177341, 43.3544426));     points.add(new Point.Double(132.1773296, 43.3538152));     points.add(new Point.Double(132.176433, 43.3538238));     points.add(new Point.Double(132.1764353, 43.3539477));     return points; }   The result of the calculation is  Centroid, x: 1.8787362164666136E-11 Centroid, y: 6.162273026564668E-12   which is obviously wrong (it's not a latitude/longitude pair).  When I use Java Topology Suite, it returns same results.  private Coordinate calculateJtsCentroid(final List<Point2D.Double> aPoints) {     final CentroidPoint centroidPoint = new CentroidPoint();      for (final Point.Double curPoint : aPoints) {         centroidPoint.add(new Coordinate(curPoint.x, curPoint.y));     }      return centroidPoint.getCentroid(); }   How should I change my code in order to get the centroid of the polygon as a point identified by latitude and longitude?


I'm currently trying to set up a small static website with my domain from NameCheap using AWS S3, but I'm having trouble correctly pointing requests to the corresponding S3 bucket.  These are my configurations for the services I use:  NameCheap  CNAME         www  example.com.s3-website-ap-northeast-1.amazonaws.com. URL Redirect  @    http://www.example.com/   AWS S3  Static Hosting example.com.s3-website-ap-northeast-1.amazonaws.com.   I am fairly new to web hosting/domain stuff so please bear with me, but from what I understand from my registrar configuration is: users entering the naked domain example.com are redirected to www.example.com which then points to the AWS S3 bucket. Then the CNAME record then points to the corresponding AWS bucket.  Howeverwhen I try to visit www.example.com I somehow get pointed to the www.example.com bucket instead of the example.com bucket landing me to the AWS Bucket not found page.  Extra Details   I've checked with DNS Checker that www.example.com's CNAME record indeed points to example.com.s3-website-ap-northeast-1.amazonaws.com.. I've also tried making a www.example.com bucket then redirecting it to example.com but it seems it points to the actual domain instead of the bucket therefore causing a redirect loop. example.com->www.example.com->www.example.com (Bucket)->example.com->∞


How can I defend my JavaScript game from robbers?

I want to defend my js game, because as you know if we inspect the element, we can see the js and the html source. I know, that I can obfuscate it, but if I do it, I only earn  that they can't really change the game.  So is there any way to defend, or every js game would be open source?  Thanks.


Converting from UEFI to Legacy after Ubuntu installation

I have installed Ubuntu 18.04 in UEFI mode in laptop pc which has Windows installed in legacy mode. Even though the grub menu appears it doesn't work. Each time I have to press f9 to enter the boot menu and select the UEFI file shimx64.uefi to launch Ubuntu. Is there any way to fix this? Like converting the boot mode to legacy? I tried reinstalling Ubuntu; but it automatically installs in UEFI mode.


Let a, b and c be odd positive integers . Show that the quadratic equation 𝑎𝑥^2+𝑏𝑥+𝑐=0 has no rational solution.

To prove this, I think the Δ should =$k^2$ so I let a=2p-1, b=2q-1, c=2r-1, where p, q, r are all positive integers, then I calculated $ b^2-4ac$ which is $-16 p r + 8 p + 4 q^2 - 4 q + 8 r - 3$ and find it hard to prove that $-16 p r + 8 p + 4 q^2 - 4 q + 8 r - 3 ≠ k^2$ so how to prove Δ ≠ $k^2$ and is it possible to use method of contradiction ( let a root $x_0$= p/q and $gcd(p,q)=1$)


for a personal project i need to define a template class for a better optimization.  I have followed exemple, but it doesn't compile yet cause i want my template class inherit from an interface. Can someone tell me how to use it, here is my code :   My dot HPP  template<typename T> class Container : public IOP { public:    Container();    T val;    int getpr() const;    IOP *operator+(const IOP &r) const;    IOP *operator-(const IOP &r) const;    IOP *operator*(const IOP &r) const;    IOP *operator/(const IOP &r) const; }   My dot cpp where there is my functions (constructor ...)  Container::Container() {  }  int Container::getpr() { ... }  ... etc   And i want to use my class like that :   Container<long> test;   or   Container<int> test;   Thanks for any help, link or explanation.  compilation error for the moment :   Container.cpp:13:1: error: expected a class or namespace Container::Container() ^ Container.cpp:13:12: error: C++ requires a type specifier for all declarations Container::Container() ~~~~~~~~~  ^ Container.cpp:24:20: error: expected a class or namespace std::string const &Container::toString()                    ^ Container.cpp:29:5: error: expected a class or namespace int     Container::getPrecision   ()


How to show just a few objects in the attribute table?

I am pretty lost with the attribute table, so I couldn’t figure out the already existing answers about it (using QGIS 2.12.3.). I have a shapefile with all the protected areas in one region. Since I don’t need all of those protected areas, I would like to know how I can hide all the other objects? I have to search for the objects through their name and really don’t know how to use the dialog with all its functions.


How to select Country dropdown in Amazon site?

I am learning selenium web driver and practicing Amazon site. I found a difficulty to automate the country selection in Amazon site. Kindly help me what locators methods to be used to select the country on the pop up.    Switch to Alert is not helping me..!


error paragraph ended before \ProvidesPackageRCSi was complete

I'm new using LaTeX and in this moment I have a problem with the next code, i appreciate your helping, next I will show u my code and then my error:  code  \documentclass[12pt,letterpaper]{article} \usepackage[utf8]{inputenc} \usepackage[spanish, es-tabla]{babel} \usepackage[version=3]{mhchem} \usepackage[journal=jacs]{chemstyle} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{makeidx} \usepackage{xcolor} \usepackage[stable]{footmisc} \usepackage[section]{placeins} %Paquetes necesarios para tablas \usepackage{longtable} \usepackage{array} \usepackage{xtab} \usepackage{multirow} \usepackage{colortab} \decimalpoint                           %Usa como separador decimal el punto en lugar de la coma  \usepackage{pythontex} \usepackage{subfigure}                                      %Crea subfiguras \usepackage{color}                      %Paquete emplado para manipular los colores \usepackage{fancyhdr}                                           %Encabezados y pies de pagina \usepackage{flafter} \usepackage{txfonts} \usepackage{MnSymbol}  \usepackage{multicol}    \usepackage{listings}                     %Paquete para agregar codigo \usepackage{graphicx} \usepackage{lmodern} \usepackage{fancyhdr} \usepackage[left=4cm,right=2cm,top=3cm,bottom=3cm]{geometry}  %Formato del título de las secciones  \usepackage{titlesec} \usepackage{enumitem} \titleformat*{\section}{\bfseries\large} \titleformat*{\subsection}{\bfseries\normalsize}  %Creación del ambiente anexos \usepackage{float} \floatstyle{plaintop} \newfloat{anexo}{thp}{anx} \floatname{anexo}{Anexo} \restylefloat{anexo} \restylefloat{figure}   %Modificación del formato de los captions \usepackage[margin=10pt,labelfont=bf]{caption}  %Paquete para incluir comentarios \usepackage{todonotes}  %Paquete para incluir hipervínculos \usepackage[colorlinks=true,              linkcolor = blue,             urlcolor  = blue,             citecolor = black,             anchorcolor = blue]{hyperref}  \begin{document} \renewcommand{\labelitemi}{$\checkmark$}  \mbox{     \begin{minipage}{5cm}         \includegraphics[width=7cm]{minas.png}      \end{minipage}     \begin{minipage}{13cm}     \begin{center}         \textsl{         \textbf{\large Laboratorio de Hormigón I.}\\         \textbf{\large Profesora: Lucia Salazar Estrada.}}     \end{center}     \end{minipage} } \vspace{0.5cm}  \begin{center}     \textbf{\LARGE{Práctica IV Mezcla del concreto hidráulico. }}\\     \textbf{Desarrollo de ensayos para normas NTC 396 y NTC 1926}\\     \vspace{7mm}         \textbf{\large{Juan Manuel Julio Bedoya}}\\         Estudiante de ingeniería civil.\\     \textbf{\large{Julián Andrés Lastra García}}\\         Estudiante de ingeniería civil.\\     \vspace{4mm}     \textbf{\large{Grupo 5}}\\     \today \end{center}  \vspace{7mm}  \end{document}   error     line 11 paragraph ended before \ProvidesPackageRCSiwascomplete.to be   read again...


Problem with \includegraphics - file not found!

I am trying to include a graph in a tex document. I do realize that there have already been several questions asked about this topic, but I think by now I have tried all suggested solutions but none seem to work. This is the minimal example:  \documentclass[12pt]{report} \usepackage{graphicx} \graphicspath{{C:/Users/felix/Desktop/Bachelorarbeit/TeX/BA_text2/images}} \usepackage[a4paper]{geometry}  \begin{document} \begin{figure} \includegraphics[scale=1]{gap_v3_v4_AT.png} \end{figure} \end{document}   Information about my setup:  I am using Texmaker and MiKTeX 2.9.   Things I have tried:   Absolute and relative paths,  not initialising a figure environment, including the directory where the graph is in the MiKTeX Options-> root directory (was suggested in one of the answers to a similar question)   There is definetly a .png file with the same exact name in the folder set by \graphicspath.   I would be really grateful for any ideas!


Let consider a square $10$x$10$ and write in the every unit square the numbers from $1$ to $100$

Let   consider   a  square $10\times 10$   and  write  in  the   every   unit  square    the   numbers   from  $1$  to  $100$   such  that   every  two   consecutive  numbers  are  in   squares   which  has  a  common edge.  Then  there  are  two  perfect  squares   on  the  same line  or  column. Can  you   give  me  an  hint? How  to  start?


I have come across some confusion making my system accept multiple languages.  Prior to setting up my database, I did some research as to which collation was best to use to support as many languages as possible. I was advised utf8_unicode_ci was the most viable encoding.  The confusion arises where, although it seems my system can decode any language, phpmyadmin cannot:  Translation:  English: 'hello' Chinese: '你好'   Encoding:  System: '你好' Phpmyadmin: 'ä½ å¥½' <------ should read: '你好'   How can I have phpmyadmin display these characters correctly?


Java default values confusion, why none for function scoped variables?

I'm having some confusion with the reasoning behind what seems to me to be an inconsistency.   For example  public class Test {     static int a;     public static void main(String[] args)     {         System.out.println(a);     } }   So that will print out 0, as expected. But say we had  this instead,   public class Test {      public static void main(String[] args)     {         int a;         System.out.println(a);     } }   This won't compile for me, complaining that a hasn't been initialized. I was expecting it to print out 0...  Which leads me to some questions:  1) Why don't function scoped variables have default values?   2) Could the static keyword be the reason? And why?


(EC)DSA signature without hashing, or with offloaded hash?

In (EC)DSA as per , the message to sign is first hashed. Imagine that we skip this hashing stage, instead put the message where the hash was, and constrain the size of message $h$ to the original hash's output width $N$ bits. The resulting scheme is vulnerable to (at least) these existential forgeries ($q$ is the multiplicative group order):   any signature for message $0\le h<2^N-q$ is also valid for message $h+q$; a valid signature for messages $h=0$ and $h=q$ is easy to obtain: in DSA, $(r,s)$ with $r=s=y\bmod q$ does the trick, where $y$ is the public key; there's an analog with , which $r=s=x_A\bmod q$, where $x_A$ is the $x$ coordinate of the public key, and $q=n$.   Are other attacks possible? In particular, does temporary access to a signing oracle allow a total break (key extraction or other mean to sign any message)?    The question is of direct interest when one wants to lower the communication overhead between a signing device and a host using it to (EC)DSA-sign large messages: can we fully offload the hash computation to the host? I believe that holds (and as noted in comments, that seems to be practice), but can we demonstrate that? If not, how can we safely offload most of that computation, without breaking standard conformance?


Just upgraded from 13.04 to 13.10.  Everything went fine but I don't see the time in the top right corner of the 'top bar' anymore. I tried to right click on it so I could get some options but nothings shows.  I'm sure it's obvious but I don't see it.


Making a right-angle mark using the `calc` package in `TikZ`

I have a right triangle and the altitude from the vertex of its right angle drawn. A=(-4,0), B=(0,3), and C=(0,0) are the vertices of the triangle, and F=(-36/25,48/25) is the foot of the altitude on the hypotenuse AB. I use the following commands to draw a right-angle mark.  \coordinate (U) at ($(F)!3mm!45:(A)$); \draw ($(A)!(U)!(F)$) -- (U) -- ($(C)!(U)!(F)$);   Why doesn't it look like three sides of a square with edge length 3mm?  \documentclass{amsart} \usepackage{amsmath}  \usepackage{tikz} \usetikzlibrary{calc,intersections}   \begin{document}  \begin{tikzpicture}  \coordinate (circle_1) at (-8/5, 4/5); \draw[blue, fill=blue=25!] (circle_1) circle (4/5);  \coordinate (circle_1) at (-3/5, 9/5); \draw[orange, fill=orange=25!] (circle_1) circle (3/5);   \path (-4,0) coordinate (A) (0,3) coordinate (B) (0,0) coordinate (C); \coordinate (F) at (-36/25,48/25); \draw (A) -- (B) -- (C) -- cycle; \draw (F) -- (C);    %A right-angle mark is drawn at F. \coordinate (U) at ($(F)!3mm!45:(A)$); \draw ($(A)!(U)!(F)$) -- (U) -- ($(C)!(U)!(F)$);   %A right-angle mark is drawn at C. \coordinate (U) at ($(C)!3mm!-45:(A)$); \draw ($(A)!(U)!(C)$) -- (U) -- ($(B)!(U)!(C)$);   \end{tikzpicture}   \end{document}


Where does the archetypal image of the 'Grey' alien come from?

As I show below, typical alien depictions include an elongated, pale face, two dark elliptical eyes, and a small mouth.  Who first used this design for an alien?  Where does this design come from?


How to fill an invisible/empty icon in unity launcher that appeared while trying to dock a launcher?

A couple of days ago I was attempting to add an application to the unity launcher from the unity dash and instead of adding the app it created an "empty icon"(blank space) in the launcher there is no way to remove it right clicking produces nothing, hovering over the "icon" does not produce a tool tip, and clicking it does not open an application.  The only thing I can do with it is move it around in the stack of apps in the launcher.    Anyone know how to fix this?


Prove by induction that $\frac{n^3}{3}+\frac{2n}{3}$ is an integer.

The question that I am working on is:       Prove that $\dfrac{n^3}{3}+\dfrac{2n}{3} \in \mathbb Z \ \forall \ n \in \mathbb N$   The method that I think would be will work for this question is that I say that $3|(n^3+2n)$ and prove that.Would this be a good way to do this question?  So far I have done the following:  1) Base Case n = 1  $3|n^3+2n = 3|3  \checkmark$   2) Assume, $n^3+2n$ is divisible by $3$ for $n =k, k \in \mathbb N$   $k^3+2k = 3m , m \in \mathbb N$   Let $n = k + 1$ ; Then:   $(k+1)^3 + 2(k+1)$ = $k^3+2k+3k^2+3k+3$   Since $k^3+2k = 3m$   $3m + 3k^2+3k+3$     Now, I'm stuck I don't know what else to do further.


Let $f(x)$ be a continuous function, whose first and second derivatives are continuous on $[0,2π]$ and $f''(x)≥0\:\:∀\:x∈[0,2π]$. Show that$$ \int _0^{2\pi} f(x) \cos x dx \ge 0$$


Trying to recall a sci-fi book about elitists uploading their mind into computer to gain immortality

I vaguely remember reading this book in which there was an elitist group trying to gain immortality by uploading themselves into a computer(simulation). Each created their own world. Our hero somehow ends up in some of these worlds. Most are against him - but one of the elitists (I think with an exotic 'Hawaiian' ring to his name) modelled a nature-world (or jungle... insects) and tried to help the hero.  Tried googling, but "fiction" combined with "upload mind" or "virtual reality" gives too broad results.


Screen become black after upgraded from 17.04 to 17.10

Sir I have upgraded to 17.10 from 17.04. After that the system began to start normally.. then the screen become black I can't get it how to resolve this problem.... plz can anyone help me to get rid of this problem... I am using dell vostro laptop . And intel i3 processor with intel graphics card HD 520 (skylace GT2)


How to a use a template file to theme a form?

While nodes, comments, blocks and many other things in Drupal are themed using theme template files (like node.tpl.php), forms are a different story. There are no theme template files for forms. How can I get a particular form to use a custom theme template?


The flagging window currently has two different possible reasons to flag a question as offtopic (seen by selecting flag -> "should be closed..." -> "offtopic because"):   This question does not appear to be about the software that powers the Stack Exchange network, within the scope defined in the help center.  Blatantly off-topic (this question has nothing to do with the software that powers the Stack Exchange network)   I've seen these reasons on MSE and on Area 51 Discussion zone, but not on [M]SE or [M]SU, so I'm not sure if this is a SE-wide default or just a coincidence.  What is the difference between these two reason, and when should which be used?


Is there an existing authorative definition of the cryptographic term 'pepper'

I can attempt to define the term 'pepper' as:     In cryptography, a pepper is a something that is added to another   value (for example a password) prior to a the value being hashed using   a cryptographic hash function. A pepper can be added to a password in   addition to a salt value. A pepper performs a similar role to a salt,   however whereas a salt is commonly stored alongside the value being   hashed, for something to be defined as a pepper, it should meet one of   the following criteria that define it a more carefully hidden 'secret'   than the salt value:         The pepper is held separately from the value to be hashed   The pepper is randomly generated for each value to be hashed (within a limited   set of values), and is never stored. When data is tested against a   hashed value for a match, this is done by iterating through the set of   values valid for the pepper, and each one in turn is added to the data   to be tested (usually by suffixing it to the data), before the   cryptographic hash function is run on the combined value.      Is there a resource that can verify this as an authorative meaning of the term or otherwise? The articles I'm seeing on Goole aren't very authorative on the meaning of the term and are mutually contradictory in cases, so I'm deriving the definition above based on what's seemingly common in the software development community's understanding of the term 'pepper'.


Does LuaTeX have an equivalent of \XeTeXglyph? Or better yet, is there a command to select a glyph by number that works both with xelatex and lualatex? I did find a , but isn’t there a better way?  I am aware of the \symbol command, but as far as I can tell it takes a unicode code point, and the font that I am using has several different glyphs that map to the same code point, so I need to select the glyph by glyph ID.


Why can't Python's raw string literals end with a single backslash?

Technically, any odd number of backslashes, as described in .  >>> r'\'   File "<stdin>", line 1     r'\'        ^ SyntaxError: EOL while scanning string literal >>> r'\\' '\\\\' >>> r'\\\'   File "<stdin>", line 1     r'\\\'          ^ SyntaxError: EOL while scanning string literal   It seems like the parser could just treat backslashes in raw strings as regular characters (isn't that what raw strings are all about?), but I'm probably missing something obvious.


ZTE StarTrail : Android Update 2.2 to 2.3.3 or an other version

I'm new android user. I just buy un android phone: . The current version is android 2.2 (Froyo). I would like update my system to 2.3.3 or an other version. i saw there is version each for device (HTC, Samsung ....). I don't found a version for my device. Where can I found android a version that is specifically designed for ZTE StarTrail ?  Thanks


UX principles for displaying "Cookies Policy" on websites

While displaying cookies information on website, have found some   a display on top of the page, with "close" icon or "OK" button a display on the bottom as fixed layout having "Close" icon or "OK" button a display with modal pop-up having short details with "Close" icon or "OK" button or "Close" text.   Do we really need usability focus on displaying the "Cookies Policy"?  What will be the best layout, if usability comes into a picture?


O-ring, flat washer and beveled washer - are they interchangeable? What's the difference?

I could not find a replacement water hose in the local hardware store. So I ended up  by replacing what appeared to be chewed flat o-washer with a brand new O-ring. I picked O-ring because the hardware store did not have flat O-washer with big enough inner diameter.  The hose is not leaking anymore with the O-ring. However, now I am wondering - when one should use beveled O-washer, flat O-washer or O-ring? Can the wrong choice lead to a leak further down the path?


How to fix "Failed to download repository information" error while updating?

How can I fix this? I can't update anything at all.   I've tried to switch to my best server in the options.  When I do sudo apt-get update, this is what I get:     W: Failed to fetch     Unable to find   expected entry 'universe/binary-1386/Packages' in Release file (Wrong   sources.list entry or malformed file) E: Some index files failed to   download. They have been ignored, or old ones used instead.*   When I do sudo apt-get upgrade, I get this:     Reading package lists... Done      Building dependency tree             Reading state information... Done      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   the contents of my source.list:     deb  quantal universe restricted main   ....update: when I update, it looks for 'universe/binary-1386/Packages'  however, if I go to: ubuntu.mirror.rafal.ca/ubuntu/dists/quantal/Release with Google Chrome, I see that the file is actually named "universe/binary-i386/Packages" (it's with an i, not a 1) . how can I fix this and make it expect the proper package?


How to use a field value in Template.php

Im sure this is an easy question, just not for me because of lack of experience with the Drupal preprocess hooks. I am removing the standard "Read More" links from my content. I want the ability to replace them with a css button. I can do that, the tricky part come when I want to use a FIELD from the CONTENT TYPE, as the name for the button.   function bootstrap_preprocess_node(&$variables) {   unset($variables['content']['links']['node']['#links']['node-readmore']);     $variables['newreadmore'] = t(' '.$readmoretext.' ',    array(     '!title' => $variables['node_url'],   ) ); }   My question is how can i HOOK into the node and retrieve the field for my variable $readmoretext  Thanks!


Doing something in the future: I am vs I will be

If I am able to do something in the future should I use "I am able to do it in the future" or "I will be able to do it in the future"? Is there a difference?


Finding centre point of a raster in ArcGIS?

If I have, say, a rectangular and georeferenced raster file loaded in an ArcMap 10 document (.tiff w/ associated tfw), how do I easily find its centre point and store that point in a points vector layer?  Also, if I have multiple such rasters in my ArcMap document, how do I apply the process to all of them?  Unfortunately, I have zero Python experience. Therefore a programmatic solution is OK, but I will need specific instructions on how to load an existing script into ArcGIS 10, and run it on the rasters in questions. (BTW, the rasters are all in their separate layers).


The unofficial name of the product before the release

Let's say a company is developing a product and they call it somehow internally, but that name will change in the future if the product is released. The general word for that is temporal name, but I am looking for a more specific professional term.     For the last 5 years they have been working on a project with the _____(temporal name) "ABC", which was released a few months ago under the title of "ZXY".


I had applied for uk visa for mrcp paces exam on 23rd june 2016. I am Undergoing Training in cardiology and receiving RS 18000(120 UK POUNDS) per month as stipend. the transaction they have shown is from my mothers account and I can also prove that she supports me financially as I take her monthly house rent.I have evidence of this transaction as well. Kindly suggest a way out.


How to prove for a finite group that $|\langle g \rangle|=o(g)$?

Please note: I posted this question about an hour ago on my account (I just made it as I am new to the site). I revisited my post and saw that I had not given definitions of what I was asking (I thought they were common notations) and it would not let me edit the post for some reason so I will ask here now and hopefully someone can delete the other thread.  How to prove for a finite group $G$ that $|\langle g \rangle|=o(g)$?  Here are the definitions:  Let $G$ be a finite group and $g \in G$  $o(g)$ is the smallest $m \in \Bbb{N}$ such that $g^m=e$ (the identity element of the group). (If such an $m$ exists)  $\langle g \rangle=\{g^m : m \in \mathbb{Z}\}$  I really don't know how to show that this is true I tried to say let $o(g)=m$ and then show that $|\langle g \rangle|$ has exactly $m$ elements but I wasn't even sure it did because it would contain the elements $g^0,...g^{m-1}$ so that would mean it's true but what about $g^{-1}$ and the other elements with negative coefficients so it seems like it would actually be bigger than $m$?  Thanks.


A week ago I bought Lenovo E531 with Windows 8, but I don't like this operating system. I used to use Win XP. I downloaded Ubuntu 12.10, followed all the instruction how to create an bootable USB stick, but my laptop can't boot Ubuntu yet. Can You help me please!


How one can achieve that in the Stack Exchange questions/answers one types Greek letters, other symbols and symbols with subscripts?

I am active in the . I would like to be able to use Greek letters in my questions and answers instead of something like \[Omega]. I already asked this question several years ago. I received an answer that one has to install the  add-on. I did it on two different computers. On one it worked perfectly, on the other it did not at all. Several years passed, and I put out this question again. Something may have happened since. So, how should I operate best of all? As much as I understand,  is not the solution. I am not asking about a redactor to type formulas in browsers. In contrast, I am looking for the possibility to copy-paste the plain Mathematica code containing the Greek letters from my Mathematica notebook into the window where one types-in the Stack Exchange answers (see the image below). Later this code anyone should be able to copy-paste into his/her own notebook and it will work as a Mathematica code. The expression for the letter alpha like this $\alpha$ is not the solution, since the Mathematica code for alpha is slash[Alpha]. I know that there is a way to enter in this window slash[Alpha], but get it visible as the Greek letter. I am asking about such a possibility.