Why array instantiation with a generic type does not work in Java?

public interface Foo<E> {      public void blah(E e);  }  public class MyClass<E> {      private final Foo<E>[] fooArray = new Foo<E>[8]; // does not compile!      // (...)  }   What is the correct way of addressing that generics limitation?  Or maybe it is not a limitation and I am missing something?


Why would we like to use “class” instead of using “structure” in CPP? Explain with examples.


Current iteration number in Python for loop

I am sure there is a better way or writing this python function:  end_points = list(range(100)) filepath = 'something.csv' with open(filepath) as fp:     cnt = 0     for line in fp:         end_points[cnt]=[x.strip() for x in line.split(',')]         cnt += 1   It works but it is not elegant. Is there a way of automatically refers to the current number of iteration in the for loop?


How to solve this problem on finite groups?

Let $G$ be a finite group whose order is not divisible by $3$ and such that $(ab)^3 = a^3 b^3$ for all $a$, $b$ in $G$. Then can we determine if $G$ is abelian or not?   Since $$ (ab)^3 = a^3 b^3 $$ or $$ ababab = aaabbb, $$ we can using the cancellation in $G$ write $$ baba = aabb $$ or $$ (ba)^2 = a^2 b^2. $$ What next?   And,   What if we require that $G$ be a finite group whose order is not divisible by a given positive integer $n$ and such that $(ab)^n = a^n b^n$ for all $a$, $b$ in $G$.   As before, we can write using the given condition that $$ (ba)^{n-1} = a^{n-1} b^{n-1}.$$ But What next?


I am bit confused with the concept of empty set here.  Since {} is a subset of every set, it is a subset of itself? and hence {} = {{}}?  Also, say A = {a}, but since {} is a subset of A, is it true that A = {a, {}}, if so, what is its cardinality?


One of the problems that I have read that people say about LaTeX is it isn't very good for quick note taking.  Has anyone used LaTeX for quick note taking? If so what template have you used? And how have you setup your system so it is relatively easy to make quick notes?  EDIT In response to some of the comments, I am currently using vim as my editor. Which I am very proficient in using.


The reducibility of polynomial $x^{2^n}+x+1$ over $Z_2$

I meet the problem in Hungerford's Algebra, page 282 as follows:  If $n>2$, then the polynomial $x^{2^n}+x+1$ is reducible over $Z_2$ .  I have no any idea on this. But I really want to know how to prove this.  Thanks!


Verb for getting something (e.g. information) by cunning and/or perseverance

I need some information from person A. Person A is not willing to give it to me. So instead of asking directly I keep asking secondary questions hoping that he may say something that might (partially) hint me the information I need. I may even ask other people. Or keep asking so many times that person A would have had it and just told me because he can't stand my questions any more.   It's like extorting, but without using threats or violence, but cunning and perseverance. What word am I looking for?     Although he refused to tell me where he got the money from, I persevered and finally <???> the information from him.


What is this "justified" text technique called?

You usually see this technique on infographics and brochures, and sometimes magazines:


Goal: Compute the possible values of $i^i$.  Attempt:   We have that  $$ i^i = e^{i \log(i)} $$  by definition. Yet $\log(i)$ has an infinite number of values (if we aren't looking at its principal branch).  That is,  $$ \log(i) = k  2\pi i + {\pi \over 2}i \text{ for all }k \in \mathbb{Z} $$   Thus $i^i = {\pi i \over 2}$ in its principal branch, while all of its branches can be expressed as $k 2 \pi i + {\pi i \over 2}$ for all values of $k$.  Is this correct?


Different Product Key & License in Microsoft Volume License and What is MAK Activations Used/Available*?

First, I dont familiar with windows volume license ... My company give me an access to check how many windows os license left  In Microsoft Volume License, in menu License summary its show some thing like this :    I have questions :   It's show MAX Activations Used/Available with value = 1/50 is it means i have activated 1 time with the product key and i have 49 more ? Whats is different between product keys and Licenses ?  in Product Key tab its show me more than 1 OS but in licenses tab only show windows 8, like this :    *sorry for my bad english..


Mathematical notation for 1 if true, 0 if false function

It is quite embarrassing, but I completely forgot the generally accepted short notation of writing $1$ if predicate $P$ is true, $0$ if predicate $P$ is false.  I'm pretty sure something like that exists because I saw a notation expressing this in a few presentations and it was mostly coherent.  The operator looked somewhat like this $\|P\|$, but it definitely did not share the symbol with norm.  I am asking because I plan to write something like $\sum_{i=1}^{n}\|P_i\|$ and I think that writing it with if-else notation would be ugly.


The following message appears almost every time I shutdown my computer:  A stop job is running for Session c2 of user ... (1min 30s)   It waits for 1min30s then continues the shutdown process. I follow  and get the  (I can't paste directly the log here because it's very long). Unfortunately, I don't understand the log by myself. Could anyone help me to find out what makes my system doesn't shutdown properly?  I run Arch Linux with kernel 4.4.5-1-ARCH, my systemd version is 229-3.  Addition 1: I observe that every time I logout, and then shutdown my computer from the login screen, it doesn't get the message A stop job is running.... I tried to logout before shutdown for many times, so I think it doesn't occur by chance. Hope that information could help.  Addition 2: It is always session c2 that causes shutdown hanging. So as @n.st suggest, I looked at  again and stored loginctl session-status c2 instead of dmesg, but then there is nothing on the shutdown-log.txt. I replaced loginctl session-status c2 by systemd-cgls and got the following log:  Control group /: -.slice └─init.scope   ├─   1 /usr/lib/systemd/systemd-shutdown reboot --log-level 6 --log-target ...   ├─1069 /usr/lib/systemd/systemd-shutdown reboot --log-level 6 --log-target ...   ├─1071 /bin/sh /usr/lib/systemd/system-shutdown/debug.sh reboot   └─1074 systemd-cgls   Any ideas?  Note: After I updated to kernel 4.6.4-1-ARCH and systemd 230-7, the error no longer happened.


Show that a family of univalent functions, $f_n(0)=0$, $f_n'(0)=1$ is a normal family.

So, I want to prove that a family of functions, $f_n$, which is univalent on the unit disk for all $n$ where $f_n(0)=0$ and $f_n'(0)=1$ is a normal family.  So far, and using "Fundamental Normality Test", this is what I have: If you reduce the disk to a subdisk not containing the origin, this family omits $-1$ (by construction) and $0$. Thus the family is a normal family on this subdisk.   Now I should somehow extend this to the unit disk by the maximum principle, and is where I am having trouble.   So my real question is, "how do I extend the normality of the subdisk to the unit disk?"


Physical meaning of non-trivial solutions of vacuum Einstein's field equations

According to Einstein, the space-time is curved and the origin of the curvature is the presence of matter i.e. the presence of the energy-momentum tensor $T_{ab}$ in Einstein's field equations. If our universe were empty (i.e. $T_{ab}=0$ and the cosmological constant $\Lambda$ is setted to be $0$) then I would expect only the flat solution to the vacuum field equations  $$R_{ab}=0$$ Surprisingly there are non flat (or non trivial) solutions to the above equations, for example the  Schwarzschild solution. This conflicts with the fact that the matter curves the spacetime, so what is the origin of the curvature for these non trivial solutions? I understand that mathematically $R_{ab}=0$ (Ricci-flatness) doesn't imply that the metric is flat, i.e. non trivial solutions are formally admissible, but I don't understand how this is explained physically.


I'm trying to make automatic generation of a value in a class in C++.  This is Shape.h  #pragma once class Shape { public:     Shape();     ~Shape();     // Return ID of the Shape     virtual int getId();     // Return area of the Shape     virtual double getArea(); protected:     static int _id;     double _area;     // Compute the area of the shape     virtual void compArea() = 0; };   And this is Shape.cpp  #include <iostream> #include "Shape.h"   Shape::Shape() { _id++;     //ID is incremented in every instance _area = 0.0; }   Shape::~Shape() {     std::cout << "Distruttore Shape" << std::endl; }   // Return ID of the Shape int Shape::getId() {     return _id; }   // Return area of the Shape double Shape::getArea() {     return _area; }   And when I compile I receive:  error LNK2001: external symbol "public: static int Shape::_id" (?_id@Shape@@2HA) unresolved  What am I doing wrong?  Thanks for help :)


Is there a way / is it okay to bump feature requests?

I've made  of  that haven't had any response from SE in a couple of months. Trivial things that would make working on the sites easier on a day-to-day basis.  Is there a way, and is it okay to, bump things that seem to have been overlooked after a couple of months?


What syntax does PostgreSQL require when all identifiers in a query are dynamic?

Example: SELECT $1 FROM $2.$3 WHERE $1 = $4  Result: ERROR:  syntax error at or near "$2"  Example: SELECT "$1" FROM "$2"."$3" WHERE "$1" = "$4"  Result: ERROR:  relation "$2.$3" does not exist  If you wonder why all the identifiers are parameterized, it's because I'm designing a database manager tool which dynamically allows me to edit any "cell" in any table.


How many rationals of the form $\large \frac{2^n+1}{n^2}$ are integers?

This was Problem 3 (first day) of the 1990 IMO. A full solution can be found      How many rationals of the form $\large \frac{2^n+1}{n^2},$ $(n \in \mathbb{N} )$ are integers?   The possible values of $n$ that i am able to  find is $n=1$ and $n=3$, so there are two solutions and this seems to be the answer to this problem.  But now we have to prove that no more of such $n$ exists, and thus the proof reduces to: Proving that $n^2$ does not divides $2^n+1$ for any $n \gt 3$.  Does anybody know how to prove this?


I have a circuit on a 15 amp breaker. It was working fine yesterday and then suddenly everything stopped working. The breaker was not tripped. My non contact voltage detector goes crazy as soon as it gets near any of the outlets. Using a digital multimeter the outlets show 31 volts with the breaker on and 0 volts with the breaker off. At the breaker in the panel there is 120 breaker to neutral bus. Removed a couple of outlets and hot to neutral shows 31 volts(with breaker on, 0 with breaker off) 2 wire ungrounded circuit (house built in the 60s). There are two lights that are on this same circuit and they work just fine. I disconnected the lights from the circuit and still only 50 volts on the outlets. I continued to disassemble all of the outlets on the circuit with the same result, 50 volts hit to neutral. I believe the outlets are pig tailed out of the wall as each outlet( so far) only has one set of wires to it. This is not in a kitchen/bathroom and has no gfci on it. This is not the same as having induced/phantom voltage. The circuit only shows the 31 volts with the power on to it at the breaker. If it were induced, it would show this when the breaker was off. However when the breaker is off it shows 0 voltage.  UPDATE: after disassembling all of the outlets, I still had the same problem. I found the main feed line and was getting 118 to it at the wall outlet it went to. The rest of the outlets on the circuit are fed from this point. I made a jumper using 12/3 from the feed to the last outlet on the circuit. Using wire buts to connect everything I then have 118.2 volts on the entire circuit, except the point where the circuit is fed from, 108 volts there. I believe I have a bad connection in the wall. This houses junction boxes are not easily accessible and have been hidden over the years. Proceeding to open the wall a bit and see what I can find.   I appreciate all of the input and help.  Outlet that feeds 2 lights and into a junction box also pictured. Hidden in the ceiling in the middle of the room.


Is it possible to get the most common elements in an array and their frequency in a linear amount of time?

I have a very large array (around 50 000 elements, consisting of single words). I would like to be able to get the most commonly used words, and their frequency in the shortest possible time. The problem with my current method is that:  25 elements takes 0 seconds 250 elements takes 0 seconds 2 500 elements takes 1 second 25 000 elements takes 30 seconds 50 000 elements takes a minute and a half.  It's not hard to see, that this goes up exponentially, and I'm pretty sure that is because of my method. So my question is whether it is possible to do this in a linear amount of time. The result can be any data format, array of objects, or one object,


Pulling quarks from one another creates a new pair of quarks?

It is said that the force between two quarks increases as they are pulled apart which is ultimately resisted by the strong nuclear force.  Correct me if I'm wrong,  but my physics teacher once said that if I put enough energy to seperate two quarks, I end up creating a new pair of quarks. Why is that?


Python 3.4: Function unexpectedly redefines its input

I recently started playing around with Python 3 (or coding, for that matter) and I quickly ran into something that I don't understand. I somehow managed to define a function that not only gives the wrong output, but also unexpectedly changes its input. I'll explain this more precisely on an example.  Say we want to write a function that takes a list/vector   L = [v_0, ..., v_n]   and spits out the following transformed version:  L' = [v_0, v_0+v_1, ..., v_0+...+v_n]   Even if there are better ways, let's try to do it using this algorithm:   Step 0: Set L_0=L as initial data. Step 1: Take L_0=L and add v_0 to L_0[j] for j>1. Call the result L_1. ... Step i: Take L_i and add v_i to L_i[j] for j>i. Call the result L_i. ...   This gives L' in n steps (hopefully...). As I said, there are probably better ways to do it, but let's stick with this approach. Here's what I tried to do:  # problematic function: def Mod(L):     newL = L     for i in range(len(L)-1):         for j in range(i+1,len(V)):             newL[j] = newL[j] + L[i]     return newL  # illustration of problem: L = [1,2,3,4] print(L)        # gives [1,2,3,4], as expected print(Mod(L))   # gives [1,3,7,15], L' would be [1,3,4,10] print(L)        # gives [1,3,7,15] instead of [1,2,3,4]. WHY?!   Again, I'm not looking for better solutions or better algorithms. This is an artificial problem and I've already solved my actual problem in another way. What I want is to understand why this code does not work properly and why it does what it does.  As indicated, there are two things that are going wrong:  (1) First of all, 'Mod' does not do what I want: Mod(L) does not give L'.  (2) More importantly, for some reason running Mod(L) changes the variable L.   I'm seriously stumped by this, especially by (2). I keep going through the loops trying to find out what's wrong, but I seem to be stuck in a loop myself (overlooking the same thing again and again). Somehow the input of Mod must get redefined somewhere in the loops. But I don't see where this would be happening. The only thing that I see getting changed is the local variable 'newL'.  Any pointers as to what I'm missing are highly appreaciated!


How can I tell LaTeX to automatically split up the german word  Kontrast/Rausch-Verhältnis    into   Kontrast/Rausch-|Ver|hält|nis   LaTeX complains that "/" is not a letter.


Ubuntu won't load, freezes on purple screen

Last time I restarted my computer, I could not get Ubuntu to load; the screen would either go black, or would hang at the purple screen indefinitely.  I have had some graphics problems in the past, but had put 'nomodeset' after 'quiet splash' in the grub command line, which at least let Ubuntu load.  That doesn't work now, and doesn't work if I remove it.  I looked up some answers, such as this one:  However, when I enter the root in recovery mode in grub, I always get errors when I run those command lines and it won't let me modify the files.  Also, if I run in recovery mode and then choose 'resume normal boot', it will continue.  But instead of getting a usual interface, I get a black screen that asks for my username and password.  I enter these, and it tells me I'm in Ubuntu 12.04, but I'm still on a black screen with texts.  It also informs me that there are updates to install.  When I use the command 'sudo apt-get update', it starts to retrieve the information, but then the screen goes blank after a couple of seconds and I can't do anything anymore.  Any ideas?


How can I shorten my command line (bash) prompt?

Currently it is:   michael@Castle2012-Ubuntu-laptop01:~/Dropnot/webs/rails_v3/linker/spec/controllers$   Outside of renaming my machine and directory structure...  How could I make it be something more like:  michael:controllers$


I have a small utility that I use to download an MP3 file from a website on a schedule and then builds/updates a podcast XML file which I've added to iTunes.  The text processing that creates/updates the XML file is written in Python. However, I use wget inside a Windows .bat file to download the actual MP3 file. I would prefer to have the entire utility written in Python.  I struggled to find a way to actually download the file in Python, thus why I resorted to using wget.  So, how do I download the file using Python?


Why does the amplitude of a pendulum increases when continuously changing the rope length?

The simplistic answer is that I'm pumping energy into the system thus the velocity increases and so is the amplitude. I'm more interested in understanding it from forces considerations.


Unable to load dynamic content in multiple $(window).on("load", function(){}) using safari

Hi i am facing a problem here while loading  dynamic content in multiple dropdown  using $(window).on("load", function(){})  in chrome it is working fine but in safari i am unable to get the dynamic content in dropdown none of them working  below is my code  $(window).on("load", countryLoad); function countryLoad() {  var urlink = " http://xxx.xxx.x.xx/Service1.svc/getCou"; $.ajax({     type: 'GET',     url: urlink,     success: function (resp) {         var select = document.getElementById("dpdclt");         var data = "";           document.getElementById("dpdclt").options.length = 0;         $("#dpdclt").append($("<option></option>").val(0).html('Select Country'));         for (var i = 0; i < resp.length; i++) {              $("#dpdclt").append($("<option></option>").val(resp[i].Sno).html(resp[i].Country));         }        },     error: function (e) {          window.plugins.toast.showLongBottom("Check your connection settings");      } });};   like the above function i have 6 other functions which i have to load on page load   $(window).on("load",function2); $(window).on("load",function3); $(window).on("load", function4); $(window).on("load", function5);   Here when the page loads in the dropdown im getting only 'Select Country' in the dropdown it is not loading dynamic contents


Remove windows 10 task bar, not auto-hide

I reallllly want to get rid of the taskbar. It takes useful screen space. Auto-hide won't cut it as it keeps popping up because of notifications and such.   Any ideas? :)  Edit: No luck, taskbar is intrinsic to explorer.exe, Taskbar Eliminator works on Windows 7, only option is to replace explorer.exe with some other shell.   thanks


I have 5 series, I did ADF on my series and found that 3 series have unit roots(x1, x2, and x3) and 2 don't(x4 and x5). Still using the level variables I did Engle e Granger test and Johansen test( Trace test indicates 2 cointegrating) and found that there is cointegration between the series.  how should I proceed with this? Can I mix differentiate with non differentiate variables? Should I do a VAR for the first differences in the series or a VECM?


I came across an application that:     [...] shows the distance to objects seen through the camera lens of your   [device]. Simply aim your [device] to any object in your   surroundings, and [the application] displays the distance towards that   object on top of the camera image. [...]      How does it work? [The application] uses the height of the camera lens and   its tilt angle to calculate the distance to the object.   I am confused. How does the height of a camera lens and a tilt angle allow to calculate a 3D distance? I thought that a point on a 2D space (what a camera sees) represents a line in 3D so it's impossible to calculate real distance with 1 camera and no objects of reference.


Since we can not assign null value to integer type variable. So I declared int? type variable and used ternary operator and tried to pass the variable as parameter. But getting error.  int? SAP = 0;  SAP = SAP_num == null ? null :Convert.ToInt32(SAP_num);  // SAP_num is string   While trying to do this I am getting error, type of conditional expression can not be determined because there is no implicit conversion betwen '<null>' and 'int'  Then I tried   int? SAP = 0; SAP  = Convert.ToInt32(SAP_num); int confimation_cd = GetCode(SAP);   while trying to do this getting error,cannot convert from 'int?' to 'int' GetCode function accepts integer.  My problem is, if the SAP_num IS NULL , pass as null in the function GetCode else pass as integer value. How to achieve this?


How to prevent LaTeX from hyphenating the entire document?

I can't find where I can remove any kind of hyphenation and just have LaTeX just do a line break.  edit: Honestly speaking I just don't like to read hyphenation anywhere and that's the only reason why I wanted to remove it. It is a matter of style, probably unexpected in LaTeX.  The document has only a summary in a different language and I used the language packages to hyphenate properly.


Why did Ava behave like that with Caleb?

In , Ava an advanced AI developed human consciousness. While Caleb thought that he was testing Ava through conversation, actual automated test was happening, designed by Nathan to see if Ava can find a way using her consciousness to escape. Everything was going fine. Ava trapped Caleb emotionally, sexually with extreme manipulation. Caleb falls for her. This was Nathan's idea to give Ava all human strength that we use to motivate people.  Caleb: Did you program her to like me, or not? Nathan: I programmed her to be heterosexual, just like you were programmed to be heterosexual  So Caleb finds out what Nathan will do to her after the experiment is over and what Nathan did to previous versions. He designed an escape for Ava. After that he came to know that Ava might have manipulated him to get freedom or to escape.  Caleb: What was the real test? Nathan: You. Nathan: Ava was a rat in a maze and I gave her one way out. To escape she will have to use self awareness, imagination, manipulation, sexuality, empathy and she did.  Then long story short, Ava took the revenge on Nathan for locking her up and his cruelty to her. Then she locked Caleb before going out. WHY? She used Caleb or not, Caleb didn't do any bad to Ava. Caleb was a good person (we knew this from the test that Ava took on Caleb during a session where every lie got detected by Ava). Then why did Ava leave him to die? Why did she betray Caleb? I can't see any reason for that. What am I missing? What is Ava's point of view?


How do I properly label the figures and tables in beamer in Share Latex?

This is my preamble:  \documentclass{beamer} \usetheme{CambridgeUS} \usepackage{graphicx,mathabx}  \begin{document}  \begin{frame} \titlepage \frametitle{}  \end{frame}  \begin{frame} \frametitle{Main Results} \framesubtitle{Graphical Analysis} \begin{figure}[h!] \centering\includegraphics[width=0.6\textwidth] {example-image} \caption{Effect of increasing $\widecheck{G}$, and decreasing $\widehat{G}$ on $x^*$} \end{figure} \end{frame}  \begin{frame} \frametitle{Appendices} \framesubtitle{Appendix 2} \begin{table}[htbp] \caption{Parametric values} \begin{center} \begin{tabular}{|c|c|c|}\hline Parameter & Value\\\hline $\alpha$ & 0.6\\ $\beta$ & 0.5\\ $\widehat{G}$ & 90\\ $\widecheck{G}$ & 50\\ $\bar{P}$ & 10\\\hline \end{tabular} \end{center} \end{table} \end{frame}  \end{document}   I want to number my figures and tables, such as "Figure 1: The title", "Table 1: Title". Right now, I have just "Figure:" and "Table:". This is for all the figures and tables, and they're not numbered. Also, I want the colons included.


How to make sure that Qt5.4.2 is installed properly

I installed qt5.4 from  in Ubuntu 14.04, but when I run:   qmake -v   I always get the old version Qt5.2.1, although I think it is installed here Qt version 5.4.2 in /opt/qt54/lib. Can anyone tell me how to make sure that Qt5.4.2 is installed properly?   Thanks


$f(x)\in\mathbb{Z}[x]$, $\frac{r}{s}\in\mathbb{Q}$ is a root of $f(x)$ with $(r,s)=1$. Show that $r-ms$ is a divisor of $f(m)$ for any integer $m$

Let $f(x)\in \mathbb{Z}[x]$ and let $\frac{r}{s} \in \mathbb{Q}$ be a root of $f(x)$ with $(r,s) =1$. Show that $r-ms$ is a divisor of $f(m)$ for any integer $m$.  The book’s suggestion is: Write $f(x)$ in the form $\sum a_r(x-m)^r$. Show that every $a_r$ is an integer. Then, evaluate $f(x)$ in $r/s$.  I don’t see how $f(x)$ could be written in that form so without the book’s suggestion I have $$f(x)=(x-r/s)(g(x))$$ for some $g(x)\in\mathbb{Z}$ which implies $g(x)=(-1/s)(h(x))$ if $(r-ms)\mid f(m)$. I also tried by dividing $\frac{f(x)}{(x-r/s)}$ but still get no proof of this assumption. Thanks in advance.  Note: $f(x)=a_nx^n+\cdots a_1x + a_0$, $s\mid a_n$ and $r\mid a_0$


Evaluating $\lim_{n \to \infty} \int_{0}^{\pi} \frac{\sin x}{1+\cos ^2(nx)} dx$

Evaluate the limit  $$\displaystyle\lim_{n \to \infty} \int_{0}^{\pi} \frac{\sin x}{1+\cos ^2(nx)} dx$$  Using property of definite integral $\int_{0}^{2a} f(x).dx=2\int_{0}^{a} f(x)dx$,when $f(2a-x)=f(x)$ I got  $$\displaystyle\lim_{n \to \infty} \int_{o}^{\pi} \frac{\sin x}{1+\cos ^2(nx)} dx=2\displaystyle\lim_{n \to \infty} \int_{o}^{\pi/2} \frac{\sin x}{1+\cos ^2(nx)} dx$$ but I cannot proceed after that. Could someone provide me with some hint? Till now I have only done integration in terms of elementary functions. Any hint would be appreciated.


Under what circumstances will fseek/ftell or fstat fail to get the size of a file?

I'm trying to access a file as a char array, via memory mapping it, or copying it into a buffer or whatever, but both of these need the size of the file, easy enough, thought I, just use fseek(file, 0, SEEK_END).  However: according to  "Library implementations [of fseek] are allowed to not meaningfully support SEEK_END," Meaning that I can't get the size of a file using that method.  Next I tried fstat, which is less portable, but at least will provide a compile error rather than a runtime problem; but  notes that fstat does not need to provide a meaningful value for st_size.  So: has anyone actually come across a system where these methods do not work?


What is it called when someone does something irrational out of custom or habit? For example, in the 1982 film, The Verdict, the case revolves around a medical document in which there is a discrepancy between an original document and a photocopy of that document. The defense argues that the photocopy is evidence that the original document had been altered and the photocopied version should be considered the authoritative record of what the document originally said. The judge in the case rules against the defense because there is/was a legal principle that an original document always takes precedence over a copy of that document. However, this legal principle was established when copies of documents were made by hand and photocopy technology did not exist. So, essentially what is happening is that the courts are following an old custom that is illogical or irrational in light of modern technology. What is it called when this happens?


When creating lists, it seems that forms like [[False] * 3] * 3 only copies the references?

I create a list using the below codes. a = [[False] * 3] * 3  which creates a 3x3 matrix with all elements of False value. And when I changed a[0][0] to be True using a[0][0] = True, the result is: [[True, False, False], [True, False, False], [True, False, False]]  where the entire first column changes into True. However, if I create a using the for loop, like: a = [[False] * 3 for i in range(3)]  or a = [[False for i in range(3)] for i in range(3)]  And after executing the same a[0][0] = True, I get my desired result in both ways as: [[True, False, False], [False, False, False], [False, False, False]]  where just one element is changed into True. Why there is such difference in creating the list in Python? Thank you for answering!


which one is faster data types in .net or data types in c#?

Hi to all first of all i am sorry because my first language is not english I want understand which one is faster C# data types or .net data types i try to understand by below code and i think .net data types is faster(is this correct?) i test this code both with x86 and x64 platform              SW.Start();             for (Int32 i = 0; i < 99999; i++)             {                 for (Int32 j = 0; j < 999; j++)                 {                     Int32 a = 37;                     Int32 b = 37;                     Double c = Math.Pow(a, b);                     String d = "abcde";                     String e = "abcde";                     String f = d + e;                 }               }             Console.WriteLine(SW.Elapsed.TotalMilliseconds);             SW.Stop();             Console.ReadKey();   and my second code     Stopwatch SW = new Stopwatch();             SW.Start();             for (int i = 0; i < 99999; i++)             {                 for (int j = 0; j < 999; j++)                 {                     int a = 37;                     int b = 37;                     double c = Math.Pow(a, b);                     string d = "abcde";                     string e = "abcde";                     string f = d + e;                 }               }             Console.WriteLine(SW.Elapsed.TotalMilliseconds);             SW.Stop();             Console.ReadKey();   thank a lot


Huge space between elements of Your Sites list on mobile app

As you can see in the screenshot, there's a huge gap between sites in the Your Sites list in the app.  Steps to reproduce:   Swipe right from the left edge on the initial screen. Tap the EDIT button. Look at the list.   I'm on a Samsung Galaxy S7 running the Stack Exchange app (version 1.0.89) on Android 7.0 (though this issue has been around for a while; I just forgot to report it :/). I don't own any other devices to test it on. The issue occurs every time I look at the list.


How is the night king not at the wall yet?

In episode 10 of season 2 we witness the encounter between one of the Night King's "officer" and Samwell Tarly.                                   However, since then, Samwell had time to make it back to the wall, meet Gilly and her child, leave the night's watch, travel it to the Citadel, study to become a Maester, leave the citadel etc.   Now, even after all this time, we see in episode 6 of season 7 that the army of the dead has not even reached the wall yet. Considering the fact that the army of the dead is made out of undeads who don't need (or at least I don't think so) to frequently stop to eat or rest, I was wondering how they haven't made it to the wall yet.   I thought that they maybe could've been retained from heading to the wall by the some of the 3 eyed raven's magic, but even then, Bran had the time to make it back to the wall by being pulled by a young girl on a sled.   I feel like I am completely missing out on some basic plot hole and that this question is actually super easy to explain but unfortunately, I truly cannot recall any events that could explain this.  Edit: Regarding the accusations of this question being a duplicate of (). From what I understood, that other question was addressing more precisely why the night king ACTS as slow as he does, notably in ep6 of season 7 when he attacks Viserion. My question is more looking at why it took the night king more or less 5 seasons for him to reach the wall while Samwell did it in barely 1. I researched before posting this question and unfortunately that other question did not answer at all what I am asking here...


How to find available man chapter/section for a particular command?

For example: ls command have only chapter 1. while mkdir command have chapter 1 & 2. Is there any command which shows how many chapters are available for a particular command?  [root@localhost /]# man 1 ls [root@localhost /]# man 2 ls No entry for ls in section 2 of the manual [root@localhost /]# man 3 ls No entry for ls in section 3 of the manual [root@localhost /]# man 4 ls No entry for ls in section 4 of the manual [root@localhost /]# man 5 ls No entry for ls in section 5 of the manual [root@localhost /]# man 6 ls No entry for ls in section 6 of the manual [root@localhost /]# man 7 ls No entry for ls in section 7 of the manual [root@localhost /]# man 8 ls No entry for ls in section 8 of the manual  [root@localhost /]# man 1 mkdir [root@localhost /]# man 2 mkdir [root@localhost /]# man 3 mkdir No entry for mkdir in section 3 of the manual [root@localhost /]# man 4 mkdir No entry for mkdir in section 4 of the manual [root@localhost /]# man 5 mkdir No entry for mkdir in section 5 of the manual [root@localhost /]# man 6 mkdir No entry for mkdir in section 6 of the manual [root@localhost /]# man 7 mkdir No entry for mkdir in section 7 of the manual [root@localhost /]# man 8 mkdir No entry for mkdir in section 8 of the manual


How to activate a touchscreen device without human interaction

I need to be able to activate apps on my iPad without human interaction. We have tried dropping batteries onto the screen but that only works if dropped within a few inches. Is there any material in existence that can activate a touchscreen without human involvement, nor through the use of a stylus?


"Now that you've solved A, I'm stuck on closely related B"

Imagine a situation: an SO user is complaining about inability to create and sprox a woodget. The question title goes: "Help, cannot create a woodget". Code snippet inside:  woo = new Woodget("foo"); woo->Sprox("bar");   You answer the question as initially posed (should've been new Woodget("foo", 1)). The user says "thanks, now the Sprox method fails".  Am I, the answerer, under any moral obligation to debug the rest of the asker's snippet, or is answering the question as initially posed considered sufficient for an answer to be accepted? I feel that I deserve an answer accept. The user might not - the rest of the snippet misbehaves, after all.  Am I justified in telling the user "that's another question, please accept this one and then we'll see"? Or would that be too bitchy?


Why does the camera say Subject is too Dark and refuse to click the shutter

I was trying to take some nice pictures of the Toronto city skyline from the shores of Lake Ontario under a full moon night. Now I put my nikon d5200 on a tripod and set f/4 and shutter = 30 sec. I am using 18 mm focal length. But from time to time, it tells me that 'Subject is too Dark' and the shutter won't even press all the way down!  I am in 'M' mode.  The lens keeps rotating clockwise and counterclockwise to try and focus and gives up.  How to get around this? Do I need to experiment with manual focus? The funny thing is I point the camera directly at the bright full moon and still it says 'Subject too Dark'.  Now the funny thing is that when I look at exposure meter in view finder , it shows that the image is over exposed by 3 bars. And I expect this while looking at a full moon for 30 sec with a wide aperture.    How can it be overexposed and still be Too Dark ?


I just posted an answer to a question:   I used example links that seems to have rendered really badly, with half-generated HTML anchors...  Any idea what could have caused that?


How to you edit the /etc/hosts file? My father put every video site on the internet on and he won't tell me how to get rid of it. I need an answer because tinypic and youtube are on it!


I took this photo below and edited it a little. I didn't know where the lightning would hit so the lens was pretty wide. Since the lightning hit so far away, I scaled it up and blended it with the rest of the image so it looks closer, but I'd still like it to fill the frame more. I'm afraid if I try to scale it up any more, the poor quality will be apparent. Is there anything I can do in photoshop to improve the quality? I also accidentally took it as a jpeg, not raw, is there anything I can do to remove the jpeg artifact? By the way, my end goal is to print this picture.


Is there a way to customize a Lucid Lynx Launcher icon for various programs? There does not seem to be a way to do this using Create Launcher or Launcher properties. The application is not actually "installed" on the PC, the executable has just been copied. All I've been able to do so far is to add the command /home/t32/bin/pc_linux/t32marm -c /home/t32/config_usb.t32 to a generic Launcher icon using Create Launcher.


I have a 2 tables, which look like this:  Table 1: personal  | uid      |      city     | |----------|:-------------:| | 1        |  Zurich       | | 2        |  Chicago      | | 3        |  London       |   Table 2: technologies  | uid      |      tech     | |----------|:-------------:| | 2        |  HTML         | | 2        |  JavaScript   | | 2        |  PHP          |   The query that I use:  SELECT DISTINCT personal.city, technologies.tech FROM personal INNER JOIN technologies ON personal.uid = 2   The result:  | Chicago      |  HTML         | | Chicago      |  JavaScript   | | Chicago      |  PHP          |   As you see, I receive 3 records. My goal is to receive only 1 record. So the strings (HTML, JavaScript, PHP) should be either in an array (if that's possible) or they should be separated by a semicolon.


A reset problem on a RCA, Android tablet

I was given 2 used 7" RCA model RCT6873W42 Android tablets. The batterys on both tablets are charged up and the tablets turn on. The last owner didn't do the "wipe data/factory reset" in the right order. They didn't remove the last Gmail account that the tablets were sync to before doing the factory reset.  And I keep running into a roadblock on both tablets when I get to the point in the set up were it asks for my Google email address. See the . I did the "wipe data/factory reset" 2 times. No change. I don't know how to bypass the "Factory Reset Protection" and I can't get the last owner's email address and password in order to open up the tablets. Is there a way to around the "Factory Reset Protection"?  Steve  Update I now have what the eBay seller calls an "OEM MICRO USB male to female USB OTG Host Adapter For a RCA Voyager RCT6873W42 Tablet". I must be doing something wrong in trying to get the tablet to see the prog "Bypass any Samsung Google Account Lock.apk" or I am using the wrong APK prog.   Also I have found that I have full access via a back door to all non rooted files and directory's in the tablet via the USB cable when connected to my Windows laptop. What I can do with that back door, I don't know. But I can read and write to the tablets. I also have ADB/Fastload for windows. I have used ADB/Fastload to root a cell phone and a tablet before. But that cell phone and tablet didn't have FRP installed in them. They were older OS's.


If a function is continuous a.e., then it is measurable.

Is this true or wrong? How to prove it ？


Where can I ask questions regarding Firefox?

I can't seem to find info on installing a Swedish language package on my machine. The language is not listed  and the hits on Google I got led nowhere (or, rather, to the said page).  Where can I ask such a question (within the realm of Stack Exchange)?


What is the best method to reduce the size of my Javascript and CSS files?

When working with large and/or many Javascript and CSS files, what's the best way to reduce the file sizes?


What is the meaning of the directory specified by '//'?  It can be accessed by typing in 'cd //' at the comand prompt.   I have tried this on mac 10.9.5 and Centos 6. It shows the contents for the root directory. In the prompt it shows '//' for the directory. Is this simply a glitch in the prompt code? I use \w to show the working directory.


Thanks for your support in these days of facing problems with tabular environment.   I'm not able to understand the way table format works.   I'd like to have a type S in the second column of my tabular environment but it doesn't work with subfloat, any ideas?  \documentclass[12pt,a4paper,oneside,openright]{book} \usepackage{adjustbox} \usepackage{array} \usepackage{dcolumn} \usepackage{amsmath,amssymb}  \usepackage{amsthm} \usepackage{booktabs}  \usepackage{caption}  \usepackage{multirow} \usepackage{siunitx}  \usepackage{tabularx} \usepackage{ltablex} \usepackage{makecell} \usepackage{subfig} \begin{document} \begin{figure} \centering \subfloat[Recovery rate medio per tipo di collateral]{\footnotesize \begin{tabular}{lp{2cm}}         \toprule         Tipo di Collateral & Media Recovery Rate (\%) \\         \toprule         No collateral      & 66.80 \\         Third party plus one other & 88.13 \\         Two guarantees & 84.67 \\         Commercial Building & 86.22 \\         Other Financial Asset & 61.52 \\         Other Real Estate & 85.76 \\         Other Vehicles & 59.83 \\         Residential Building & 92.48 \\         Securities & 78.70 \\         Third Party Guarantee & 75.30 \\         \bottomrule     \end{tabular}     \label{RRpercollateral:fig:a}               } \subfloat[Box plot RR per tipo di collateral]{\includegraphics[width=0.55\textwidth, height=0.45\textwidth]{help2.pdf} }\\ \caption{Recovery Rate per tipo di collateral} \label{RRpercollateral_all} \end{figure} \end{document}


Find a formula for a sequence $\{\sqrt{3},\sqrt{3\sqrt{3}},\sqrt{3\sqrt{3\sqrt{3}}},...\}$

I'm trying to find a formula for the following sequence:  $\{\sqrt{3},\sqrt{3\sqrt{3}},\sqrt{3\sqrt{3\sqrt{3}}},...\}$  I thought of solving it recursively and I got this formula:  $a_{n}=\sqrt{3*a_{n-1}}$  $a_{0}=1$  Is there a better and non-recursive formula for the given sequence?


How to mklink /home/ to a new empty partition

Due some weird issues with my current lubuntu I'm going to do fresh installation. But when I install lubuntu I need to do two things that I probably can't perform because I'm newbie.  I'm going to create 30GB of unallocated space on my SSD. I want to install lubuntu there and I want to create 20GB swap file. Can you please tell me how to do it? Another thing: When I will install Lubuntu I need to do mkling (symlink) hard symlink. I need to move entire /home/ folder from SSD to HDD partition. I don't want temporally link. I want to do move /home/ forever. Please explain me how to create 20GB page file when I install lubuntu and please send me commands and steps that allow me to do /home/ mklink


Should all on screen buttons be included in the "File" menu?

If I have a "File" menu on my software (for example 3d modelling SW like 3Ds max), should all of the possible actions that has an on screen interface be in the "File" menu?  For example: the  has 27 positions. Should all of them be included in the "File" menu?


How to register LLC in the US from India?

I am living in India. I have an online business with many clients in the US, and I want to register it as an LLC in the US.   Which state is the best to register in?  What is the process for me to register my company in the US?


Continuous function from the unit interval into the unit interval has a fixed point

Show that if $f$ is continuous on $[0,1]$ and $0\leq f(x) \leq 1$ for all $ x \in [0,1]$, then there exists one point  $c \in [0,1]$ at which $f(c)=c$.      (Hint: Apply the Intermediate Value Theorem to the function $g(x)=x−f(x)$.)   I have some idea how to do this, but the area where I am getting stumped is...the value of $f(x)$?  How can I find the value of $f(x)$?  Do I even need to find $f(x)$?  Edit:  okay I got something...  I only need f(0)>0 and f(1)<1 to show  g(0)<0  So then what happens for f(0)=0 or f(1)=1 ?


Why is a person 'on' public transport and not 'in' it

A friend of mine recently posted a comment on Facebook saying that the phrase "on a train" is a pet peeve of his since it very rarely refers to somebody literally riding on top of a train.  This got me thinking about the prepositions used for other forms of transport and I noticed a pattern where "on" seems to be used for all forms of public transport even when it sounds like it should be technically incorrect (bus, plane) but only for private transport where it is technically correct ('on' for bike but 'in' for car).  Curious to see if there were any answer out there as to why this is I found a previous question that specifically related to trains . Most of the answers related to what the correct preposition is rather than why but one of the top rated answers suggested that on is used to distinguish between a stated of having boarded a train from being a component of a train. I'm not entirely sure I agree with this answer but it also doesn't really apply to other forms of public transport.  My best guess is that the use of 'on' is a remnant from a time when it would have been correct for most forms of mass transport (cart, boat) but I'd be interested to know if there is any other reason.


this is a quick question, idk if this has been asked already but is there a way to use the matcaps as materials on objects?  also why is the matcap applying on all objects instead of just the active one? (heard somewhere) any help would b nice :)


My wifi is not working after suspend on 15.04.  I can click my way to success on the wifi icon in the menu bar (and the enable wifi option), but I want to use scripts to automate the procedure.  Here is my attempt  1) create executable bash script /etc/pm/sleep.d/10_resume_wifi with the contents  #!/bin/sh   case "$1" in    hibernate|suspend) ;;    thaw|resume)       nmcli r wifi off && nmcli r wifi on ;; esac   2) create executable file /etc/system.d/system/wifi-resume.service with contents  [Unit] Description=Restart wifi after waking up After=suspend.target  [Service] Type=simple ExecStart=-/etc/pm/sleep.d/10_resume_wifi  [Install] WantedBy=suspend.target   and run sudo systemctl enable wifi-resume.service  This is not working, and I get the following lines from dmesg after resuming from suspend  [11168.786104] cfg80211: World regulatory domain updated: [11168.786111] cfg80211:  DFS Master region: unset [11168.786113] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time) [11168.786119] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A) [11168.786124] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A) [11168.786128] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm), (N/A) [11168.786133] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A) [11168.786137] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A) [11168.968257] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [11169.004818] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300) [11169.006600] ata3.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out [11169.009053] ata3.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out [11169.009061] ata3.00: configured for UDMA/100 [11169.200846] firewire_core 0000:04:00.0: rediscovered device fw0 [11171.088442] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300) [11171.089310] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out [11171.090296] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out [11171.090469] ata1.00: configured for UDMA/100 [11171.615861] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)   After clicking my way to wifi, I get slightly different output from dmesg  [11331.635796] cfg80211: Calling CRDA for country: US [11331.639456] cfg80211: Regulatory domain changed to country: US [11331.639465] cfg80211:  DFS Master region: FCC   Any suggestions for why the script-based approach is not working?  I am new at this, so there are likely several errors.  Thanks in advance!


I’m new to this but I’m having issues with my camera, a canon rebel eos t3i, sadly it got splashed by saltwater (not even fully submerged) but it wouldn’t turn on for a few days. I read that the chances of it working ever again were slim but today I put in a battery and it turned on and seemed fine until I went to take a picture. It says it is error 70, and that I should turn the camera off and on again and reinstall the battery but that didn’t work. Does anyone know if I would be better off shipping it in to get serviced or if it would be cheaper to just replace it. I heard that repairs an quickly add up and I wouldn’t want to do that if it’s gonna end up costing more than a replacement. Let me know if you have any suggestions, thanks!  Edit- I just found out that canon no longer offers service for this model camera so that narrows down my options


I design graphics and I have so many they clog my computer, and many too large for downloads in my shop when I use 300 resolution on photo shop.  I design my graphics at 300 resolution.  They are large and easy to work with. I resize my 300 resolution to 100 resolution and have never found any difference in printing, size, or quality.  It saves space and allows me to have them available as downloads. Am I missing something?


using arcpy to convert labels to annotation

I am trying to use ArcPy to convert a specific shapefile in my TOC to annotation in the map. I am not so much in the need for the tiled annotation tool that I've seen talked about as this is going to be used at the layout view at the same scale always. Essentially I am trying to label all the areas in the [area] field and then convert to annotation right after so they can be dragged around for best look as there can be sometimes up to 50 different labels.   I've been trying this with no luck  def onGenerate(self, event):     dlg = wx.MessageDialog(self, 'labels generated','success',wx.OK | wx.ICON_INFORMATION)     dlg.ShowModal()     dlg.Destroy()     mxd = arcpy.mapping.MapDocument("CURRENT")      layer = arcpy.mapping.ListLayers(mxd, "project_app")[0]      if layer.supports("LABELCLASSES"):         for lblclass in layer.labelClasses:             lblclass.showClassLabels = True             arcpy.ConvertLabelsToAnnotation_defense(mxd, layer)     lblclass.expression = " [NAME]"     layer.showLabels = True     arcpy.RefreshActiveView()


What is the function of this opamp circuit?

Hello ladies and gentleman,  I'm trying to figure out how this circuit works :   I was thinking it is a kind of charge controler where Rx is the load. Any help would be pleased


What is a good item to sell to get gold coins?

I'm saving up for the minishark I just need one gold coin I need an item to sell that is common and easy to get That gives me silver/at least 20 copper.


What is so special about elliptic curves?

There seems to be sources like , this , and some  that discuss elliptic curves in general and how they're used.  But what I'd like to know is why these particular curves are so important in cryptography as opposed to, let's say, any other polynomial degree $\gt$ 2 which you can then mod over some group.  It seems like once a modulus is applied then other function types should be acceptable as well.  It seems even less intuitive when just looking at the bubble vs curve as here:    Since there are other curves (let's say anything from a sin wave to the $x^3 + x$ or even just some unusually shaped contour) that could do the job.  It seems like they would provide much more surface area to get a larger space in $\mathbb{Z}_p$ or really just more possible combinations of connecting lines from some arbitrary $P$ and $Q$ to get $R$ as opposed to something as restrictive (on the graph) as beginning from some bubble (which would seem to unnecessarily reduce the possible combinations) and then use a modulus to implement the discrete logarithm problem.  Sorry if this seems a little naive of a question, I'm trying to write an implementation right now and just to understand it fully even if that means asking something that is taken for granted.  Perhaps just walking through a simple example (most of the ones I've searched are anything but), just a few sentences, would be rather helpful, from "A wants to talk to B" all the way up to "now E can't listen in between A and B".  EDIT:  So it seems like this is the version of elliptic curves over a finite field:    Yes that looks pretty random.  But I'm still not really seeing why they are the only equations that have cryptographic significance.  It's difficult to imagine that if you simply took some other higher degree equation and applied modulus (to place within a group), then it seems like it would make sense that you'd get something that's also comparatively random.


I have a Debian server and I would like to increase the "root" partition from 5GB to 17GB and to diminish the "home" partition from 14GB to 2GB. Here's the filesystem config: root@APP05:~# df -T Sys. fich.                    Type     1K-blocks   Util. Disponible Uti% Monté sur rootfs                        rootfs     5354080 1388664    3693444  28% / udev                          devtmpfs     10240       0      10240   0% /dev tmpfs                         tmpfs       205416     168     205248   1% /run /dev/mapper/APP05-root        ext4       5354080 1388664    3693444  28% / tmpfs                         tmpfs         5120       0       5120   0% /run/lock tmpfs                         tmpfs       410820       0     410820   0% /run/shm /dev/sda1                     ext2        233191   17794     202956   9% /boot /dev/mapper/APP05-home        ext4      14360944  166712   13464736   2% /home  I googled for some answers, read a couple of Q&A on several forums but I'm not sure what are the right commands to achieve this. From what I understand, "/dev/mapper/APP05-root" is an LVM, so extending it's size needs to be done after extending "rootfs" size, which is a filesystem. Can you please tell me how I should proceed?


Block apps from accessing the Internet on Android device

In Android, is it possible to block apps from accessing the Internet? Many apps will often connect to remote servers in the background, including Google's own apps or system services. Over time this can eat away at a user's data limit set by a mobile carrier. Does Android allow an app to act as a firewall whereby the user can select which apps have access to the Internet? Or does the device have to be rooted to have that ability?


Explicit Homeomorphism from $\mathbb{R}^2$ to open disk

I already asked a question here  I am trying to prove that $\mathbb{R}^2 \cong  \{(x,y)\in \mathbb{R}^2|x^2+y^2<1\}$ The function that apparently solves this is $$f(z)=\frac{z}{||z||+1}$$ for $z\in \mathbb{R}^2$.  In order to show this, I need to prove that $f$ is a continuous bijection. Continuity is obvious, but I see no reason why this is a bijection-- I also see no reason why it should have a continuous inverse. Can someone explain this to me/point me in the right direction? Thanks


How can I write blackboard bold Latin capital letters in Plain TeX?

In LaTeX, you can use commands like \mathbb{C} (in amsfonts) or \mathds{C} (in mathds) to get blackboard bold letters. But how would I get them in plain TeX? I tried {\ds C} and it didn't work.


Find the following limit  $$ \lim_{x\to0}\left(\frac{1+x2^x}{1+x3^x}\right)^\frac1{x^2} $$  I have used natural logarithm to get  $$ \exp\lim_{x\to0}\frac1{x^2}\ln\left(\frac{1+x2^x}{1+x3^x}\right) $$  After this, I have tried l'opital's rule but I was unable to get it to a simplified form.  How should I proceed from here? Any here is much appreciated!


Linux Mint - Cinnamon - How to trigger a visual feedback from terminal

During my work i run some bash scripts on linux terminal that takes 5 to 6 minutes to complete. I would like to append some command on that scripts, so that when it finish, it shows some visual feedback on the cinnamon window, like a blink or somethink like.   For now I use the espeak command to send me some sound, but it's not so good, since most of the time I don't work using earphones.


Why is indiscrete topology unmetrizable?

For instance, the indiscrete topology for $X$ cannot arise from a metric when $X$ has more than one point. One way to see this is to note that the complement of a one-point set in a metric space is always open.   I don't see what is going on here. Say $X=\{a,b\}$. Then the indiscrete topology for $X$ would be $\mathfrak{F}=\{\emptyset,X \}$. But now what?


Please help with the following problem:  Given a $m \times n$ matrix $A$, $m$-vectors $b$ and $y$, and $n$-vectors $c$ and $x$. Write the dual $LP$ problems $P$ and $P^d$ in the standard form.    Whether $x$ (respectively, $y$) is a feasible vector for $P$ (respectively, for $P^d$)? Whether $x$ (respectively, $y$) is an optimal solution for $P$ (respectively, for $P^d$)? Whether the complementary slackness conditions hold for $P$ (respectively, for $P^d$)?    Consider the cases a-g listed below and explain your answers in each case.    a.) $ A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}$, $b^T = (8,18)$, $c^T = (2,1)$, $x^T = (6,0)$, $y^T = (0,2/3)$


A PI I might potentially apply to is planning on making three or so offers. Said PI only has a few students at present which I think is the reason for their doing so.  I worry that I will not get my hands on very many projects and will not have enough time with the PI. So my question is: How detrimental is a large lab cohort to a graduate students’ success?  I think it is important to mention that this is a social-sciences PhD program with cohorts of around ten or fewer. This situation seems unique as the PI needs students this year. Most labs only take one student per year.


Perl working with timestamps with Time::Piece

I am using Perl for the first time and I need to do the following:   Parse two separate timestamp strings which are in the format YYYY/mm/dd HH:MM:SS:NNNNNN. The timezone of both strings is assumed to be EST. For example, both strings are:  "2018/03/24 12:11:57:123456" "2018/03/26 13:10:57:123456"  Convert the timezone of the above two into a different timezone, say GMT, then print them out. Find the differences, in hours, of the above two timestamps.   Is it possible to achieve the above with the Time::Piece module? I have looked through this web site:    It shows me how to achieve my first objective, the parsing. But so far I am not able to find out how to convert from one timezone to another, and also the difference in hours between two timestamps.  Thanks.


When I select an object, it does not show it as selected, same for faces and vertices. I tried updating blender to the latest version, but it seems that the problem is only in the project because it doesn't happen on other ones. Would anybody know how to fix it ? (in the picture, you can see on the right panel that a part is selected but it ain't shown)


In todays photography world, is it worth buying a piece of equipment of this age/quality. Only because of my income, as a 16 year old its hard to get the 'big bucks' for high end cameras that will produce top end images. I have a 5d mark II but it was been through a lot and is coming towards its final days.   Thanks all!


Is it possible to use a browsers as GUI on a headless Ubuntu Server?  what would it cost in terms of dependencies, resources...whatever?  is it even possible to show only a fullscreen window, the max size of a sceen, without close buttons etc... that starts on a specific page () where I already wrote my own  control system....  I mean with all those technologies like php, javascript, nodejs, canvas, opengl there is no need for a desktop. Media (mp4, mp3), mail, filemanager, documents (pdf, doc, xls), terminal, images) can all be used with a browser styled with nice modern css3.  Keep in mind it's a server, not a workstation.  There would be no need for GUI applications you never use like games etc.  Also a proper browser would allow automatically to use the gpu on some animations of the gui using css3 3d transforms or opengl.  The basic stuff is already manually edited in the various config files...  A simple php/nodejs script could allow me to handle various difficult commands...  Needing only the browser dependencies.  For example:  I just put a headless Wheezy on my Raspberry Pi which has node on it... and I control everything over http.  The headless Wheezy renders low resource intensive html pages with nodejs, websockets, php, keeping the load very low (30-40mb ram total). Those pages allow me to control the server itself (stats, users), other servers (stats, users, on/off with wol) and render the content inside the browser (documents, images, music, videos). Works great on a remote machine... but if I attach a screen to the 1920x1080 capable device I see a black screen. SO:  Putting a real desktop on it would bring me to the limit easily. using all the resources to run the environment.  Starting a session of ONLY the browser with one of those low resource intensive html pages , the overall system usage would be slightly lower then with a real desktop. Theoretically.  Imagine a PictureFrame with touchscreen, that is able to control other devices, while rendering a nice canvas, opengl, css3 3d user interface with realtime stats. With maybe 30-40%? more horsepower.  And not only would the Raspberry Pi take advantage of this but also all other headless servers that are attached to a color monitor.


iterator on custom classes in python throws error in python

I am a wring a custom class called queue that uses iterator. I have an Iterator class in a seperate file called iterator.py. I get the error below when I try to iterate using for loop.   from iterator import Iterator     class Abstractstruc(object):         def __init__(self):             assert False         def __str__(self):             return "<%s: %s>" %(self.__class__.__name__,self.container)  class Queue(Abstractstruc,Iterator):      def __init__(self, objecttype=object):         self.container=[]         self.size=0      def add(self, data):         self.container.append(data)       def  remove(self):         self.container.pop(0)       def __getitem__(self,index):         return self.container[index]       def __iter__(self):         return Iterator(self.container)  if __name__=='__main__':      q=Queue(int)     q.add(5)     q.add(4)     q.add(6)      for i in q:        print i   iterator.py  class Iterator(object):     def __init__(self, wrapped):         self.wrapped = wrapped         self.offset = 0      def __next__(self):         if self.offset>=len(self.wrapped):             raise StopIteration         else:             item = self.wrapped[self.offset]             self.offset+=1             return item   I get this error message  <Queue: [5, 4, 6]> <Queue: [4, 6]> 4 Traceback (most recent call last):   File "queue.py", line 78, in <module>     for i in q: TypeError: iter() returned non-iterator of type 'Iterator'   I do not understand why it is not returning an iterator. what fixes needed here?


How do I remove carpet adhesive from concrete?

I have a 12x15' sun room that currently has carpet over concrete. I pulled a 3' section of carpet and the entire floor has adhesive.  Can I remove this using a liquid chemical or do I need a machine?  The house was build in '96 so I'm assuming there's no harmful chemicals existing on the floor to worry about.  I plan to tile over the concrete when finished.


How to assign a word to execute a particular command

I am very new to bash, I don't even know if what I want is possible.  Sorry in advance if unknowingly I am asking for too much and  it isn't possible.  I execute many different bash scripts for testing and learning process too frequently after doing small edits.  It's really annoying to type the whole command over and over again every minute, it wastes lot of my time.  For example, currently to execute the script I always enter  su -c sh /sdcard/downloads/script1.sh   Is there anyway I can assign this whole command to be initiated by just entering a single word?  I would like to just type e.g.  script1    This should actually execute  su -c sh /sdcard/downloads/script1.sh    (or any defined command for that instance).  In short, there would be many pairs of a single word and it's corresponding command so that it will save my time.  And this thing should be permanent.  Even if I close the terminal and reopen it and enter my assigned word, it should run the corresponding defined command.  I hope there's a way to do it.


The role of the "observer" in quantum theory?

I've been reading about different ideas of getting the observer out of quantum theory. One Sean Carroll seems to like is Everett's many worlds concept.  I had a thought that I need someone here to shoot down. It could be something as basic as the double slit experiment that proves me to be wrong. Here's my thought:  As I see it, we never really "measure" the position of something. We sense a photon that is emitted by what we are "looking" at. Why couldn't the wave function of a particle just break down at the moment it emits the photon at a specific point in space-time regardless of whether there is an observer or not. After the emission, the particle location would go back to being a probability function.  What am I missing?


Difference between public static void main(String[] args) and public static void main(String args[])?

I am newbie In Java programming language. There are various tutorials for beginners about Java basics. I saw some of them there public static void main(String[] args) function and the same time i have seen  public static void main(String args[]) function. What is difference between public static void main(String[] args) and public static void main(String args[])? Thanks in advance


The Ubuntu partition on my hard disk is not detected on Windows. What to do?

I had a laptop with windows and ubuntu on it on 2 different partitions. Then the laptop stopped working due to issues not related to this question.  I took out the hard drive and put it into an external enclosure to get the data. When I connect it to my other Windows machine, it detects all the other partitions except the Ubuntu one.  What to do? I would love to be able to extract data from Ubuntu.  PS - If recovering data is not possible then can I at least format it to get the space back so I can use the hard disk as an external HDD?


Which precautions to protect against side-channel attacks on ARX ciphers?

In recent crypto there has been a trend to design ciphers using only the  - i.e. additions (modulo $2^{32}$ or $2^{64}$), rotations (by a fixed constant) and XORs, examples include , .   One of the nicer, claimed properties of such ciphers is that they are supposedly easier to implement in a side-channel resistant fashion.  Assuming one would want to implement Threefish (on a multitude of architectures such as ARM, x86 and x64), which precautions does one need to take to avoid side-channel attacks for such implementations? And are there any precautions which would be applicable to ARX designs specifically? If, which precautions against side-channel attacks can/should be taken?  What I don't count here: attacks that would work by exploiting unproperly erased/freed memory. I'm looking for the standard cryptographical side channels: cache-timing, "normal" timing and maybe (differential) power (/EM) analysis.  What I would consider "pre-cautions": any code solely intended to defeat side channel attacks while not being documented in the original specification (which usually gives only a mathematical approach).


When a=[300,300], why are the addresses a[0] and a[1] the same?

In python, >>>a=5 >>>b=5 >>>a is b True  but, >>>a=300 >>>b=300 a is b False  I understand the code above, but... a=[300,300] a[0] is a[1] True  Why is the result of this code 'True'?


How do I reactivate that the 3 axes for moving an object move with the object? :D

So my english isn´t the best so the upper formulation was the best I could write xD. When you move an object for example 3 Units to the right, the 3 axes also move 3 Units to the right. But in the Project I´m currently working on(IPhone SE or something like that) the axes now always stay at the global Center which is pretty annoying, and I have had this Problem for a few times already and I never found the solution :X


What is the difference between virtual photons and real photons?

I'm reading a book by Schewe and he describes the electron center as being a swarm of virtual photons. But how are they any different from actual (?) photons?


Problem with user account after reinstalling ubuntu-desktop

After reinstalling ubuntu-desktop and xserver when I try to login into my account I get on login screen again.Now I can login only into user account.What to do?


Suspension reason shows on main, but not on meta

I recently discovered that there was a high-rep user suspended on Arqade, so that they could calm down a bit. When I was looking at their profile, I noticed that the suspension reason was shown on their main profile, but not on their meta profile.  Main:   Meta:


"He is one of those writers who have/has won the Booker prize"

He is one of those writers who have/has won the Booker prize.   which is correct: 'has' or 'have'?  And why?


In the last days I have set up some Linux system with LDAP authentication and everything works fine, but there's still something I can't really understand regarding NSS and PAM, also after a lot of research. Citing:  NSS allows administrators to specify a list of sources where authentication files, host names and other information will be stored and searched for  and  PAM is a set of libraries that provide a configurable authentication platform for applications and the underlying operating system  What I don't understand is how PAM and NSS work and interact together. In  the architecture is explained pretty well: I configure PAM to use pam_ldap for LDAP accounts and pam_unix for local accounts, then I configure nsswitch.conf to fetch information from local files and LDAP. If I have understood correctly LDAP is used twice: first by pam_ldap and then by NSS which is itself called from pam_unix. Is that right? Is LDAP really used twice? But why do I need to configure both NSS and PAM? My explanation is that PAM performs different tasks than NSS and it is used by other programs. But, then, it should be possible to use only NSS or only PAM, as I have read in . So I experimented a bit and I have first tried to delete LDAP from the nsswitch.conf (and the authentication stopped to work as if only pam_ldap is not enough to do the job). Then I re-enabled LDAP in NSS and I deleted it from the PAM configuration (this time everything worked fine, as if pam_ldap is useless and NSS is enough to authenticate a user). Is there anyone who can help me to clarify this? Many thanks in advance. UPDATE I've just tried something now. I removed again all the pam_ldap entries in all pam configuration fields and I have also removed shadow: ldap from nsswitch.conf. As now in all the system there are only the lines: passwd: ldap files and group: ldap files in nsswitch.conf. Well... the login with LDAP users works perfectly, those two lines (plus /etc/ldap.conf) are enough to configure LDAP auth. From my knowledge PAM in independent from NSS, but my tests showed it's not. So I ask myself is it possible to completely disable NSS and use only PAM?


$(2n)!+1$ is not a perfect square for $n > 2$?

It seems to me that it may be true that $(2n)!+1$ is not a perfect square for $n>2$. We can see that if $n=2$, then $4!+1=25=5^2$. But it seems that for all the small numbers of $n$ that I can try on my computer, there is no integer square root for $n>2$. I was surprised to not find much about this after googling and searching this site. Maybe I missed something.  If this statement were true, it would help with a question from ring theory that I am working on. I am working on a proof/counterexample but I thought I would ask the community what they thought about this.


How do they keep the Hogwarts houses the same size?

How does the Sorting Hat prevent one house from being way bigger or smaller than the others?    Related:


How to develop a SharePoint Designer Workflow Action for use in SharePoint (2013) online

Over the past few years I have been developing custom workflow actions - for use in SharePoint Designer workflows - for SharePoint 2007, 2010 and 2013 (on-premise). See  for the kind of workflow action I am talking about. I occasionally get questions from people who want to use similar actions in SharePoint (2013) online. I am aware that in the 2010 version of SharePoint online there was the possibility to (painfully) create sandboxed workflow actions, but that no longer appears to be an option in the SharePoint 2013 version. I fear that the answer is 'it is not possible', but is there any way to create and deploy a custom workflow action to SharePoint online for use in SharePoint Designer workflows? I cannot find any documentation on the topic. Update 1: Apologies for not making this clear, but I need it to work with SharePoint 2013 workflows (not workflows in SharePoint 2010 mode) and deploy it as an App to SharePoint online (so no sandboxed solutions) Update 2: I have opened a support case with Microsoft (113072910624379) and it is official, SharePoint Designer Workflow Actions cannot be deployed as part of an App. A sandboxed solution using declarative Workflow Actions is the only way to do this.


Large amounts of white-space in code cause comments to overflow in Firefox

Please look at the image. The right column's text jumbles with some comment text when the comment contains a large amount of white-space inside an inline code block. I guess that's not the design may be the comments should be a little bit more restricted from expanding? What do you think?    Now even kinda worse:


Was it just to save typing one letter?  I don't think C function names were limited to five characters at the time, as strcmp and unlink are probably just as old.  I'm hoping someone who was involved said something on the record about this, but I haven't been able to find it.  This is not the same as asking 'What did Ken Thompson mean when he said, “I'd spell create with an 'e'.' because it is a different question with a different answer.


I have a jtable and it is returning a NullPointerException.  My code looks like this:       for( int i=0 ;i<rows;++i){         if(Stats.getValueAt(i,2)!=null){           observed[i]=Double.parseDouble(Stats.getValueAt(i,2));        }       if(Stats.getValueAt(i,2).equals("  "))         break;      }   It still returns NullPointerException if not filled up. How can I stop this?


How can I center divs vertically and horizontally in a container

I have the following markup:

   And the following css with it:  .wrapper {   width : 800px;   height : 100px;   background : #393533;   margin : auto; }  .block {   width : 19%;   height : 80px;   background : salmon;   display : inline-block; }   I want to center the inner 5 divs horizontally and vertically in the container wrapper container, how can I achieve this using css. Thanks ahead!


Is every closed subset the zero set of some smooth function

Let $M$ be a manifold and $C$ be a closed subset of $M$. Must there exist a smooth function $f:M\rightarrow \mathbb{R}$ such that $C=\{m\in M| f(m)=0\}$ ?


Prove If $S \subset R$ is a nonempty set, bounded from above, then for every $\epsilon >0$ there exists $ x\in S$ such that $(\sup S) - \epsilon < x \le \sup S$  How can I prove for this.. ?   I always use this proposition, but I dont know how to prove.


Probability of choosing a natural number that is divisible by a natural number.

Imagine you have a machine, that spits out a perfect random natual number $c$.  What is the probability that this number $c$ is divisible by a number $n \in  \mathbb{N}$?  I have 2 ideas and for me, both seem to be logical.     1. The probability is $\frac 1n$   because evere $n$-th number is divisible by $n$...     2. The probability is $\frac 12$   If we divide the set $\mathbb{N}$ into two subsets, the first with all numbers that are divisible by $n$ and the second set with all numbers that are not divisible by $n$. Because the set $\mathbb{N}$ is a countable infinite set, both subsets are countable infinite sets too and hence they are the same size (I'm not quite sure that's right?)...  Second Question: Does the probability change if the machine spits out integers?


Is it possible to format for example a double of value 0.41 to 00.41 using only String format ? In other words, is it possible to left zero pad doubles ? The result I would like should show as xx.xx  Unfortunately I haven't been able to find something simple although I am sure there is a simple solution... I have tried %02.2f but it doesn't work...  Thank you for your help !


Do chargers use power when they're not charging?

1) If I connect my mobile charger to a wall socket and it is switched on, but I don't connect my mobile to the charger, does the charger still use electricity?  2) If I connect an extension box to a wall socket and connect my mobile charger to my extension box, but again I don't connect my mobile to the charger, does the charger still use electricity?  I want to make sure my electricity bill is not going up.


I see a warning about a potential question ban on meta.stackexchange, but I don't think I have any downvoted posts on meta.SE!

When I came to post (about an unrelated SSL cert bug that turns out to be a duplicate), I saw a warning about a potential question ban on meta.SE.  I seem to have three questions on meta.SE, all with positive scores.  Why is this, and do I need to worry?  I am banned from asking questions on programmers.SE.


Just wonder if there is any shortcut in R to add the quotation mark to a vector? So it will be like c(lemon, orange, apple) to c("lemon", "orange", "apple") without manually going to each item to change it since sometimes many items can be in a vector. Thanks.


Glottal stop "t" in English pronunciation

I am a new learner concerning English sounds. Could someone help me?  Does the letter t at the end of word but this word being connected with next one, is it also pronounced like a glottal stop? For example, that it was ......, the last "t" in that.


Unexplained floating point division behaviour in JavaScript

I ran into some problem while doing some work... let num = 9.340 / 10;  console.log(num) // gives this number 0.9339999999999999, instead of 0.934  I know how to solve this problem with toPrecision() or some math library, but that is not the problem. I want to understand why this is happening... I know that mathematically this is correct, just as 0.9999999... can be proven to equal 1, but common sense tells me that it is more logical that 0.934 is displayed... And what is more mindblowing is that (0.934 == (9.34 / 10)) returns false?? Please, if someone can explain this behaviour to me I would be very thankful, cheers :)


Am I Successfully Safeguarding Against SQL Injection?

I am designing a simple form that will be used only be me on a password protected web page. However, I have been told I should still design my form to prevent SQL injection attacks. Since I knew nothing about PHP until only a few days ago, I feel less than confident I've followed the tutorials correctly. Is the following code still vulnerable?  <html> <body> <form action="gobacktopage.com">     <input type="submit" value="Add Another" /> </form> </body> </html>   <?php $servername = "myserver.amazonaws.com"; $username = "myusername"; $password = "mypassword"; $dbname = "desireddatabase";  $verse= $_POST['verse']; $book= $_POST['book']; $reference = $_POST['reference']; $cleanverse = addslashes($verse);   // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) {     die("Connection failed: " . $conn->connect_error); }  if ($stmt = $conn->prepare("INSERT INTO myverses (versetext, book, reference) VALUES (?, ?, ?)")) {      // Bind the variables to the parameter as strings.      $stmt->bind_param("sss", $cleanverse, $book, $reference);      // Execute the statement.     $stmt->execute();      // Close the prepared statement.     $stmt->close();  }   $conn->close(); ?>


Good day I would like to ask what is the problem with my ubuntu 14.04 lts, trying to update it

W: Failed to fetch          Release  Unable to find expected entry 'u$/source/Sources' 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.


On system restore, will I lose my software updates?

I have a Samsung Galaxy S3 and have it updated to 4.1.2 from ICS. If I restore my phone to factory settings (either by going to settings or by rooting), will I lose my updates? If so, is there any other way to restore without having the above setbacks?


how to cd to directory OR directory file is in?

If I do cd "user/Dropbox/foo.txt", I get -bash: cd: user/Dropbox/foo.txt: Not a directory. But my intention in this case is always the same: I want to cd to the directory the file is in.  I tried this:  function smartcd {     dirname=$(dirname "$1");     cd $dirname; }   But it doesn't work because when $1 is a directory, dirname "$1" returns the parent directory, not the directory itself.  How can I create a command that will cd to the directory itself if $1 is a directory, or to the directory the file is in if $1 is a file?


What's the difference between a temp table and table variable in SQL Server?

This seems to be an area with quite a few myths and conflicting views.  So what is the difference between a table variable and a local temporary table in SQL Server?


I don't want Ubuntu to treat HDD as a removable storage

I installed Ubuntu Linux in a laptop which has both SSD and HDD. I installed it in an SSD. But HDD, I want to leave empty. When I check for the HDD installed, I found that it is treated like a removable storage even it is installed right in the laptop.    I don't want Ubuntu to treat HDD like a removable storage. I also don't want dual-booting. Do you have any suggestions?


Can I use a card with "Add one mana of any color to your mana pool" in any Elder Dragon Highlander (EDH) deck?

I recently tried /, and found it to be a ton of fun.  I've started customizing one of the pre-cons I got, but I'm a little confused by some of the deck-building requirements.  According to the deck-building rules:   A card's color identity is its color plus the color of any mana symbols in the card's rules text. A card's color identity is established before the game begins, and cannot be changed by game effects. Cards in a deck may not have any colors in their identity which are not shared with the commander of the deck. (The identity of each card in the deck must be a subset of the General's)    If I'm using  as my general, my deck's identity is Red, Blue and Green.  I couldn't use  in my deck, because it has a black mana symbol in the rules text.  My question is:  can I add a card to my deck that has the phrase "Add one mana of any color to your mana pool" (such as  or )?  Even though those cards could conceivably add black mana to my mana pool, they don't have a black or white (or any for that matter) mana symbol in their rules text, so they would be valid for inclusion in any deck?


If I wanted to refer to the magnitude (brightness) of Sirius, would "Sirius's magnitude" be a (the?) correct form for placing the ending 's' and apostrophe? I always get confused about possessive forms of words already ending in an 's.'


Will Lion X be downloadable for everyone?

I'm new to the Apple world. I was wondering if the update to Lion X will be free for users that has recently bought a new MacBook Pro (like me). If not, how much will it cost?


I have two GTX 1080 and for a while when i press F12 blender rendered everything with 2 tiles. Right now no matter what i do there is only one render tile. In system tab in user preferences i can ether select both GPUs or none, does anyone know a solution to this. BTW it is not hardware


I have a vector class that I need to iterate through.  The class contains a list variable.  I need to iterate through the class.  Im not sure how I would do this.  I need to use __iter__ and its suggested that I use yield, here is the result that I want:  [x*2 for x in Vector([3,3.25,"foo"])] [6, 6.5, 'foofoo']   Iter should return an object that can iterate over the elements of the vector. How would I go about doing this I never used __iter__ before.


I've created a model, and I'm preparing to texture it. I've marked all the seams, unwrapped it and moved it around to my desires. I am ready to create an image for my model. Usually, I would see people creating the texture, then align the UV unwrap to the image (of the texture). In my case, I only have the unwrap. I do not have an image file (a texture). I am looking to create an image file of my UV unwrap which I can use to place a texture on. Maybe have the islands in white, and the rest in black? I am not sure how to approach such an idea. How can I create an image of my UV unwrap; an image that separates the islands in a different color in a way where I can texture it? Thanks.


Now that Ubuntu is moving back to Gnome as the default desktop, will you port the HUD? It's Unity's killer feature, and I will miss it... So please port the HUD!


I don't have much experience with Blender, as I only used it a few times. This time, I managed to do something I didn't want to while rendering something. Basically, I opened a few windows (picture below) and I have no idea how to close them. Pressing 'X' or any other button that's supposed to close them doesn't work. Help would be appreciated, thanks!


how to exit from set of loops at once and going back to the first loop?

when the condition in last "IF STATEMENT" is satisfied for the first j, first g and first s, i want to break all 3 loops containing j, g and s and the code should try next i. If the last "IF STATEMENT" is not satisfied, the code should try next s, next g and next j respectively.   I tried using a flag variable. but it does not give me the result i want. I have made a mistake somewhere. Please help me out to solve this issue. I'm running out of time and really stressed about this matter since i have limited knowledge in python. I would be much grateful if you could sort this problem.  for i  in range(len(A.hp)):    gg= False    while gg==False:      for j in range(len(run_parameters.bits_Mod)):       req_slots[j] = math.ceil((A.T[i]["Traffic"])/(run_parameters.bits_Mod[j]*C))        for g in Temp[i]["Available_ranges"][j]:        for s in range(g[0], g[-1]):           if (s+req_slots[j]-1) <= g[-1]:              if (Temp[i]['cost'][j] <= (run_parameters.PSD)/(run_parameters.OSNR_threshold[j])):                served_count +=1                A.T[i]["First_index"]= s                A.T[i]["Last_index"]= s+req_slots[j]-1                A.T[i]["Status"]= 1                A.T[i]["Selected_MOD"] = j                gg=True


I am learning statistical network analysis and came across this symbol (highlighted in the screenshot below) that I do not know what it means.


Why is the size of my class larger than the sum of its members?

Can someone help me to understand behavior of sizeof() operator?   #include <iostream>  using namespace std;  class A{     int first;     double last;     public:     A(int a)     {         cout << a << endl;     } }; int main() {     A a(3);     cout << sizeof(a) << endl;     return 0; }   This code prints me size of a as 16 bytes. Size of class is calculated based on its members. So I have 4 bytes (int) + 8 bytes (double) = 12.  So why did I get 16 bytes?  When I comment out int and double members I get 1 byte.


SEO regarding using separate  tags for the logo and website name

Is is true
 tag should not have more than 1 on every page for SEO?   Every pages on the header, it includes and
 tag. Website Name which show an image from logo class, like this:

      Website Name

   and I also include
 on the contact page, help, etc and article page for example:
Contact Us

Name of the Article Title here
   On the homepage, it just has one
 for the logo Site Name... other pages have 2
 tags


Installed memory 4GB but only 1.93 GB is usable shows in system properties dialog?

In my Intel Core i5 2.80 GHz CPU , DH55HC series Intel mother board machine installed with windows 7 64 bit  machine, when I right click my computer and see system properties I see that "Installed Memory(RAM): 4 GB(1.93 usable)".I have 2 x 2 GB DDR 3 RAM modules.  I have verified, * Two of RAM modules are working * Two of RAM slots in mother board are working   What are the cause(s) for this might be to look next ie: what settings in BIOS etc ?


“He Loves.” A Complete Sentence, and Grammatical?

He loves.   I’ve read some things about intransitive verbs, recently. Can “He loves”. be thought of as a complete sentence, and grammatical?  And, can     A wind comes.   and     He has.   be thought of as complete sentences, and both grammatical?


According to Yale:     Categorical variables represent types of data which may be divided into groups       To me, dates do not fit this definition. They are ordinal, as one date is bigger than the date before it. It is also quantitative as it can added, subtracted...etc.  I am interested in correlating these observations to other variables in a sample, so I wanted to perform pre-modelling analysis.  Is my understanding correct?  EDIT:  Thank you for your replies. The general consensus is that dates can either be considered binomial or count data according to these data-type characterisations:   I tried to fit the explanations in the comments to the data-types in wikipedia, but, it doesn't seem to fit what people actually mean, is I'll reread.  EDIT 2: To give context for the question: I am trying to measure the effect of various processes over time, and these effects may not be linear, but cyclical (e.g. the seasons). The observations have dates (dd/mm/yyyy), but the dates are only significant in relation to the other dates.


Make the keyboard shortcuts activation global

One of things SE can do with our profiles is syncing. In fact there's a box called "Save And Copy Profile To All Stack Exchange Accounts". Why isn't the keyboard shortcuts part of this functionality? Is there any technical problem that can't be solved?


Windows 10 Search not loading, showing blank window

The Search menu on my Windows 10 suddenly stopped working. When I click the Search icon or type something in the Start menu, it just shows a blank search window.    I've tried rebuilding the index, SFC /scannow, DISM Restore, and creating a new local user account. None of them worked.   Windows 10 1909 build 18363.592.


Adobe will stop releasing new versions of Flash - what will happen to flash support in Ubuntu?

Adobe's Flash  is displaying a message:     NOTE: Adobe Flash Player 11.2 will be the last version to target Linux   as a supported platform. Adobe will continue to provide security   backports to Flash Player 11.2 for Linux.   What is the plans for Flash support in the future?  With a bit of luck HTML5 media support will drop website developer's dependency on Flash.


How to schedule a cron job to run a video fill every 5 minute?

I need to play a video file on vlc every 5 minutes daily.


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


How to delete pre-installed apps in Catalina?

I want to delete the pre-installed apps, like Music, Books, Siri etc. from my iMac running Catalina. How do I do this?  (NOTE:  asks the same thing but was closed as a duplicate of . Annoyingly, the supposed duplicate doesn’t give an obvious answer to the question, and the original was locked can’t be answered, hence a new question. I can’t add an answer to  either)


NodeJS Splitting input into multiple strings

Taking input from a user that would be:  !timeout 60 username reason   !timeout, 60, and username will never have spaces, but it can be assumed that reason will usually have spaces.  I'd hope to end up with:  var1 = "!timeout" var2 = 60 var3 = "username" var4 = "reason"


Why was M87 targeted for the Event Horizon Telescope instead of Sagittarius A*?

The first image of a black hole has been released today, April 10th, 2019. The team targeted .  Why didn't the team target  at the center of our own galaxy? Intuitively, it would seem to be a better target as it is closer to us.


How to find the least used or longest unused packages in Debian based Linux distributions

I would like to get rid of some packages that I have seldom used or not used in a very long time. I am particularly interested in how to list such packages via command-line tools like dpkg, apt-get or apt-cache, but it would be good if someone could also list ways of doing it via GUI programs such as Synaptic. Is it possible to query packages based on usage statistics or date of last use?


Why {you did not / did not you} drink that juice?

Which of the followings is correct?      1) why you did not drink that juice?      2) why did not you drink that juice?   I think both of them are correct but I don't know which one is more formal! Any further explanations will be appreciated. :)


In my calculus class, my teacher said that if one was to try to calculate the maclaurin or taylor series of $\tan x$ by strictly using the definition , then you would run into many problems and your answer would involve 'Bernoulli' numbers. That is why if we are to do the expansion for $\tan x$ , we must use division of power series.  But my question is, what are these numbers? Is it a just the ratio that appears when doing division of the series of $\sin x$ over $\cos x$? Is it some special ratio related to factorials?  Apologize if it is trivial, I have looked at other sources but I don't seem to fully understand this. Thank you all.


Why is "register" the default button rather than "log in"?

I have noticed an increasing trend the last year towards emphasizing the "register" button rather than "log in".   Often log in is not even a button, just a link. I understand the desire to simplify the process for first time users, but I find it strange, since you typically will register once, but log in several times.   What is the rationale behind this practice?


A problem on rank of $A$ and $\operatorname{adj}(A)$

Let $A \in M_n(\mathbf{C})$ and let $B = \operatorname{adj}(A)$ be the adjugate matrix.      a) Prove that if $A$ is invertible, then so is $B$.   b) Prove that if $A$ has rank $n-1$, then $B$ has rank $1$.   c) Prove that if $A$ has rank at most $n-2$, then $B = O_n$.   a) We have that $A$ is invertible, so $\det(A) \neq 0$. The rank of $A$ is $n$. Also $$     A \operatorname{adj}(A)   = \operatorname{adj}(A) A   = \det(A) I. $$ But what next? Please help me to solve the problem using elementary theory  of matrix algebra (also please do not use the rank–nullity theorem).   EDIT: b) Clearly $\det(A) = 0$. Then $$     A \operatorname{adj}(A)   =  \operatorname{adj}(A) A   =  \det(A) I   =  0, $$ i.e. $A \operatorname{adj}(A) = 0$. But how does this imply that $\operatorname{adj}(A)$ has rank $1$?     May I request for any alternative solution of the problem? Can we conclude the result from $A \operatorname{adj}(A) = 0$?


According to the second law of Newton f=ma only objects with mass can experience a force. But light can be bent by gravity and is not supposed to have a mass. How come?


When should the word "Nature" be capitalized?

This question is similar to the question "" but somewhat trickier, because the distinction here is, I think, more subtle than the distinction between using "God" as a proper name to refer to one particular monotheistic divine being and using "god" as a reference to one divine being among many.  Sometimes when people talk about natural philosophy or physics they use the word nature in the sense that "This equation is a law of Nature.", or "This is how Nature is.", or "As scientists, we hope to understand Nature."  But, capitalization of the word Nature when used in this sense does not seem to be entirely consistent and may have political or religious connotations.  Under what circumstances should the word "Nature" be capitalized (other, of course, than at the beginning of a sentence or as the proper name of a publication)?