Making a Simple Deb Package NixOS Compatible (Mathematica's wolframscript)

Consider this simple debian package:  (to inspect you'll have to click the download link for Linux). After unpacking, it has the following file structure:  ├── opt │   └── Wolfram │       └── WolframScript │           └── bin │               └── wolframscript └── usr     ├── local     │   └── share     │       └── man     │           └── man1     │               └── wolframscript.1     └── share         ├── icons         │   └── hicolor         │       ├── 128x128         │       │   └── mimetypes         │       │       └── application-vnd.wolfram.wls.png         │       ├── 32x32         │       │   └── mimetypes         │       │       └── application-vnd.wolfram.wls.png         │       └── 64x64         │           └── mimetypes         │               └── application-vnd.wolfram.wls.png         └── mime             └── packages                 └── application-vnd.wolfram.wls.xml   The only relevant file is the opt/Wolfram/WolframScript/bin/wolframscript binary (I think). I tried executing this plainly but I get a bash: ./wolframscript: No such file or directory error. How do I make this binary/package usable in NixOS?  EDIT: To answer @muru's question:  $ file opt/Wolfram/WolframScript/bin/wolframscript opt/Wolfram/WolframScript/bin/wolframscript: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib   $ ldd opt/Wolfram/WolframScript/bin/wolframscript         linux-vdso.so.1 (0x00007fff767c9000)         libpthread.so.0 => /nix/store/7gx4kiv5m0i7d7qkixq2cwzbr10lvxwc-glibc-2.27/lib/libpthread.so.0 (0x00007f55b8525000)         librt.so.1 => /nix/store/7gx4kiv5m0i7d7qkixq2cwzbr10lvxwc-glibc-2.27/lib/librt.so.1 (0x00007f55b831d000)         libdl.so.2 => /nix/store/7gx4kiv5m0i7d7qkixq2cwzbr10lvxwc-glibc-2.27/lib/libdl.so.2 (0x00007f55b8119000)         libstdc++.so.6 => not found         libm.so.6 => /nix/store/7gx4kiv5m0i7d7qkixq2cwzbr10lvxwc-glibc-2.27/lib/libm.so.6 (0x00007f55b7d84000)         libgcc_s.so.1 => /nix/store/7gx4kiv5m0i7d7qkixq2cwzbr10lvxwc-glibc-2.27/lib/libgcc_s.so.1 (0x00007f55b7b6e000)         libc.so.6 => /nix/store/7gx4kiv5m0i7d7qkixq2cwzbr10lvxwc-glibc-2.27/lib/libc.so.6 (0x00007f55b77ba000)         /lib64/ld-linux-x86-64.so.2 => /nix/store/7gx4kiv5m0i7d7qkixq2cwzbr10lvxwc-glibc-2.27/lib64/ld-linux-x86-64.so.2 (0x00007f55b874400


Prove that the local error of this approximation of $u'(x)$ is $O(h^3)$

I want to get the truncation error of    $$ u'(x) \approx -\frac{1}{h} \left(\frac{3}{2}u(x) - 2u(x+h) + \frac{1}{2} u(x+2h)\right) $$   The idea is to show that the expression of the right is equal to $u'(x) + O(h^3)$. I have been stuck for two days. If anyone at least knows the name of the approximation I would really appreciate it.    Here's what I have so far:  If we drop the $h$ that is dividing, we have that  $$ - \left(\frac{3}{2}u(x) - 2u(x+h) + \frac{1}{2} u(x+2h)\right)  = \frac{3}{2} (u(x+h) - u(x)) + \frac{1}{2}(u(x+h)-u(x+2h)) $$  and we must prove that this equals $u'(x)h + O(h^4)$ so that when we divide by $h$ we get what we wanted.  I can apply the Taylor expansion centered in $x$ to the first term, for example, and centered in $x+2h$, to the second term.  I get $$\frac{3}{2} [u'(x)h+u''(x)\frac{h^2}{2} + u'''(x) \frac{h^3}{6} + O(h^4)] + \frac{1}{2} [-h u'(x+2h) + u''(x+2h) \frac{h^2}{2} - u'''(x+2h) \frac{h^3}{6} + O(h^4)]$$  Separating a $u'(x)h$, so I can continue working with a term I want to show is $O(h^4)$ (remember that I will need to divide by $h$ after), and rearranging terms a little bit I get:  $$u'(x) h + \frac{1}{2}h [u'(x) - u'(x+2h)] + \frac{3}{4}u''(x)h^2 + \frac{1}{4} u'''(x)h^3 + \frac{1}{4} u''(x+2h)h^2 - \frac{1}{12} u'''(x+2h)h^3 + O(h^4)$$  Doing the Taylor expansion to $u'(x) - u'(x+2h)$, centered in $x$ (an observation is that I could have chosen to center in $x+2h$), we get:  $$u'(x)h + \frac{1}{2}h[-u''(x)2h - u'''(x)2h^2 + O(h^3)] + \frac{3}{4}u''(x)h^2 + \frac{1}{4} u'''(x)h^3 + \frac{1}{4} u''(x+2h)h^2 - \frac{1}{12} u'''(x+2h)h^3 = u'(x)h + \frac{1}{4}h^2 [u''(x+2h)-u''(x)] - \frac{3}{4}u'''(x)h^3 - \frac{1}{12}u'''(x+2h) h^3 + O(h^4)$$  Again, I have a decision to make, and I choose to change the expression in brackets to $u'''(x) 2h$ (with the Taylor expansion centered in $x$).  But then I get $$u'(x)h - \frac{1}{4}u'''(x)h^3 - \frac{1}{12} u'''(x+2h)h^3 + O(h^4),$$ and I can't...finish it.  This is only one of many attempts. I checked my calculations, but it might be a calculation error on my part. Maybe at signs or coefficients at the Taylor expansion I just can't find it.  Thank you, Billy.


Can you play D&D without a map and miniatures?

I'm just completely lost, how does movement and attacking work? And what about battles with people and monsters moving around?


I can insert one row in a table using this code:  INSERT INTO SCHEME.TABLE     (col1, col2) VALUES ('val1', 'val2');   I need to insert several rows in a table.  To insert several rows, i've tried:  INSERT INTO SCHEME.TABLE     (col1, col2) VALUES ('val1', 'val2'), VALUES ('val1', 'val2');     INSERT INTO SCHEME.TABLE     (col1, col2) VALUES ('val1', 'val2'),('val1', 'val2');   and some other variations. Niether of them worked :(


How prove this integral limit $=f(\frac{1}{2})$

Let $f$ be a continuous function on the unit interval $[0,1]$. Show that $$\lim_{n\to\infty}\int_{0}^{1}\cdots\int_0^1\int_{0}^{1}f\left(\dfrac{x_{1}+x_{2}+\cdots+x_{n}}{n}\right)dx_{1}dx_{2}\cdots dx_{n}=f\left(\dfrac{1}{2}\right)$$  This problem is from Selected Problems in Real Analysis. But the author doesn't include a solution. Maybe there is a method for this sort of problem?  Maybe we can use this: $$\int_0^1\cdots\int_{0}^{1}\int_{0}^{1}\dfrac{x_{1}+x_{2}+\cdots+x_{n}}{n}dx_{1}dx_{2}\cdots dx_{n}=\dfrac{1}{2}?$$  I also found a similar problem in .


SIMPLE or FULL recovery model for databases?

When should I use the full recovery model and when should I use the simple recovery model for databases?  I always used the full recovery model because it is the default, but today i encountered this error:     Microsoft OLE DB Provider for SQL Server (0x80040E14) The transaction   log for database 'DATABASE NAME' is full. To find out why space in the   log cannot be reused, see the log_reuse_wait_desc column in   sys.databases   The specific database is actually one of the smallest and most inactive databases on my server, so I have no idea how the log can be full on this database, and not the others.  To shrink the log and making the database accessable again, I changed the recovery model from FULL to SIMPLE and shrinked the logical file log, with the following command  alter database myDbName SET recovery simple go dbcc shrinkfile('LOG FILE LOGICAL NAME', 100) go   It helped, but now I need to understand WHY it helped, HOW this situation started and HOW to prevent this in the future?  EDIT:  Every night at 1 o'clock, we are doing a scripted backup of every database on the server. This is being done by a 31 line script where the most important part is  set @Filename = 'D:\backup\' + convert(varchar, getDate(), 112) + ' - ' + @DBName + '.bak' set @Description = 'Full backup of database ' + @Filename BACKUP DATABASE @DBName TO DISK = @Filename WITH INIT , NOUNLOAD , NAME = @Description, NOSKIP , STATS = 10, NOFORMAT   Is the new recovery model and databaseshrink going to be a conflict with this script?  We are not doing any other kind of backup of the databases, and therefore not the transaction logs, should we?


log bash command centralized server or any auditd saas

I'm looking for a way to track our sysmin work, in the servers. Lets say sysmin 1 and sysmin 2 have access to any server but we need to make sure and track anything that they do in our server.  Something like:  server 1 ---- auditd or history>syslog---|  server 2 ---- auditd or history>syslog------- somthing like log.ly or saas  server 3 ---- auditd or history>syslog---|   Is there any SaaS doing something like this? How do you monitor your friends or sysmin that are working so we could get something like this in a central location:  server 1, on 24-12-2013 12:42:32 user root command : ls server 1, on 24-12-2013 12:42:32 user root command : cd /home server 2, on 24-12-2013 12:42:32 user example command : ls   I known services like papertrailapp but they only have syslog that doesn't track bash command of users.


Can I apply for a Schengen visa if my US residency expires in less than 90 days after my return?

I am planning a winter vacation in Iceland around the dates of Dec 21st, 2017 to Jan 1st, 2018. I am currently on H1B visa in the USA, and my visa expires on Feb 7, 2018. My employer has applied for the H1B visa extension.   Although my visa is valid until Feb 2018, it does not satisfy the 90-day validity after the departure from Schengen countries. In that case, can I show the H1B extension receipt as a proof of document?


Can I remove a 32" portion of a supporting wall?

Update: Hopefully for better understanding, The wall showing the electric wall switch plate ( will note this wall as 'A'), I want to eliminate 32" from its end holding the 'Half wall' (will be wall 'B'). I would add two 2x10 the length of Wall (A) and tie it into to support Wall (B) but again 32" would be non supportive. So the electric plate would be removed etc. Hopefully this makes it more clear. I want to remove 32" of a supporting wall which connects to a supporting wall with two 2x10s which will hang 32" with no end support at the end but connect into the other supporting wall. The issue is the other supporting wall currently is a half wall that marries into the wall I want to remove the 32" from. Simply, there will be an L shape with no under beam support for 32 inches, on one wall and the other wall which is a half wall now, will have 6 foot of un-support although the two 2x10s together which will further be 10 foot long married into the first supporting wall should support it. This is a ranch-style home with no upstairs, just a low attic but ceiling rafter do connect on to that half wall. Any help suggestions I would appreciate.


Difference Cohen's $\kappa$ and Spearman's $\rho$

What is the difference between Cohen's $\kappa$ and Spearman's $\rho$?


By using Burnside's lemma, I want to find the number of different coloring of vertices of a regular n-gon, with X colors.  By "different" I mean : up to rigid motions.  I've seen some partial results, but I'm not sure about the genralized version.


Undefined reference for Crypto++ though it is linked and works in other projects

So I am trying to make a wrapper function for generating a hash using Cryptop++ I created this test function:   #include <cryptopp/sha.h> #include <cryptopp/hex.h> #include <cryptopp/cryptlib.h>  #include <vector> #include <cstdint>  #include <string>  #include <iostream>  void test2() {     CryptoPP::SHA1 hash;     CryptoPP::byte digest[CryptoPP::SHA1::DIGESTSIZE];      std::vector<uint8_t> v;     for (uint32_t i = 0; i < 1000; ++i)     {         v.push_back(i % 9);     }      hash.CalculateDigest(digest, v.data(), v.size());      CryptoPP::HexEncoder encoder;      std::string output;      encoder.Attach(new CryptoPP::StringSink(output));     encoder.Put(digest, sizeof(digest));     encoder.MessageEnd();      std::cout << output << std::endl; }   And compiled it with the following clang++ string:  clang++ main2.cpp -lcryptopp. However, when I use it in my project where the function is defined like this:   template<typename Hash> std::string get_hash(std::vector<uint8_t> data) { Hash hash;  // Intialise a byte "array" with space enough for the result CryptoPP::byte digest[Hash::DIGESTSIZE];  // Create hash for the data hash.CalculateDigest(digest, data.data(), data.size());  CryptoPP::HexEncoder encoder; // result will hold the hex representation of the hash std::string result;  // Tell the Hex encoder that result is the destination // for its operations encoder.Attach(new CryptoPP::StringSink(result)); encoder.Put(digest, sizeof(digest)); // As we will not put more in the message we end it encoder.MessageEnd();  return result; }   And call it like this: hash::get_hash<CryptoPP::SHA1>(pair.pivot); with following compiler command: clang++ -std=c++17 -Wall -Werror -Wextra -pthread -pthread -lpqxx -lpq -lcryptopp examples/sql_index_example/sql_index_example.cpp.1.o -o/home/tools/git/alexandria/build/examples/sql_index_example/sql_index_example -Wl-Bstatic -L. -lalexandria -Wl-Bdynamic  I get a ton of undefined references to Crypto++, such as:   examples/sql_index_example/sql_index_example.cpp.1.o: In function `alexandria::data::hash::GetHash[abi:cxx11](std::vector<unsigned char, std::allocator<unsigned char> >)': sql_index_example.cpp:(.text+0x197): undefined reference to `CryptoPP::StringSinkTemplate<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::StringSinkTemplate(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'   and I am quite lost as to what actually happens when the simple test works. So hope someone can help.   EDIT:  Already tried:


How to refer to the single element inside a unit set?

The other similr questions/answers refer to advanced set theory notation or defining exclusive functions for this. [I have answered here my own question with a middle ground solution.] If sets were ordered, I could just do $s_1$ and get the first, also only element of the  $s$. But they are not ordered. Is there a shorthand for that? Related: how to extract an element according to a single-match criterion, like pertaining to another set?


How to extract pixel value counts from a raster in QGIS?

How does one go about obtaining a summary of the counts of cell values within a raster in QGIS? I know QGIS is doing this, in order to provide the summary statistics and histogram in the properties of the layer. I do not need the summary statistics nor a histogram image, but rather counts of individual values.   It looks like there was at one point an attempt to add a special feature for this (Feature #4321, ).   Am I missing something really obvious?


why prokaryotic ribosomes have 30s and40s subunits and eukaryotic ribosomes have 40sand 60s subunits?

Ribosomes are protein factories of cell and are composed of two subunits; one smaller and other larger unit I want to know that why ,ribosomes of eukaryotes have a 40s and 60s subunit and prokaryotic ribosomes have 30s and50s subunits ?If we combine 30s and 50s subunits shouldn't it be 80s ribosome instead of 70s ribosome .


Need to show that if the number sequence \X_n converges to c, then the sequence \X_n is bounded.

I tried to show that if \X_n is a sequence such that \X_1 < \X_2 < \X_N < ..... and \X_n converges to C that it is an increasing sequence by definition bounded by A and B such that B < \X_n < A for all positive n. Then I supposed \X_n increases without bound. Then I got to \X_n > A but then it was increasing without bound and so B < \X_n and A < \X_n so \X_n is not in (a,b) and thus does not converge.   However my professor says I only considered an increasing sequence and need to resubmit my proof.   Do I need to show that the same would happen for a decreasing sequence?  I don’t know how to directly show that it it is bounded then it has to converge... I can show that it it’s increasing, it’s not bounded, it doesn’t converge and that if it is decreasing, it is not bounded and does not converge.


I`ve got closed curve in the center of my mesh. I want to vertices which highlighted by yellow have circle-form, not the form like on the photo. Can i smooth them to circle-form?


If I have some predefined coordinate system — “my rest frame,” then I pick an “inertial frame” moving at some velocity with respect to my “rest frame.” Special relativity states that in the rest frame, the speed of an object can not exceed the speed of light — however I could pick any velocity for my inertial frame, say $99.9$% or even $200$% $c$, then say that my ship is traveling at $99.9$% $c$ in the inertial frame, and now I have a ship moving at $199.8$% or $299.9$% $c$ relative to the original rest frame?   Isn’t there some sort of self-contradiction here? Is the proposition that no object cannot exceed the speed of light simply a phenomenon resulting from observation assuming that time “runs” at the same rate for both observers, not from the motion of the actual object?


Why do countries require validity of 6 months for passports?

Many countries require a passport to be valid for six months. Sometimes these six months are counted from the date of departure, or from the date of entrance. Even though some of these countries only legally allow you to stay for 30 days or three months. What is the reason such a requirement is in place in many countries?


Why my covariate in a glm give me NA as a result?

I have mammal track data collected monthly from 5 different trails -whit different lengths- for two years. I want to know if there are specific trails that have more species and if that differences are explain by month or year, and since trails have different lengths, I am using trail length as a covariate.  I am new using glm, but here is my code  Model1 <- glm(S~Sendero + Year + Mes + SenDist , family=poisson, data = S)   ----------   S: species richness Sendero: trail Mes: month SenDist: trail lenght Then I summary the results of the model with summary (Model1) and got the following results:   ----------   glm(formula = S ~ Sendero + Year + Mes + SenDist, family = poisson,      data = S)  Deviance Residuals:       Min        1Q    Median        3Q       Max   -2.67017  -0.59115   0.02955   0.52141   2.05260    Coefficients: (1 not defined because of singularities)             Estimate Std. Error z value Pr(>|z|)     (Intercept) 47.38031   29.31333   1.616  0.10602     SenderoSP   -0.26356    0.08954  -2.944  0.00324 **  SenderoSRM  -0.61432    0.10144  -6.056 1.40e-09 *** SenderoSRP   0.06661    0.07994   0.833  0.40471     SenderoSRS   0.02315    0.08256   0.280  0.77920     SenderoSS    0.53699    0.07241   7.416 1.21e-13 *** Year        -0.02292    0.01454  -1.576  0.11503     MesAG        0.57564    0.12628   4.559 5.15e-06 *** MesDI        0.51920    0.12337   4.208 2.57e-05 *** MesEN        0.37557    0.12675   2.963  0.00305 **  MesFE        0.13226    0.13127   1.008  0.31367     MesJUL       0.40303    0.12317   3.272  0.00107 **  MesJUN       0.42325    0.12870   3.289  0.00101 **  MesMA        0.18039    0.13105   1.376  0.16867     MesMAY       0.07674    0.13588   0.565  0.57224     MesNO        0.66681    0.12519   5.326 1.00e-07 *** MesOC        0.53225    0.12371   4.302 1.69e-05 *** MesSE        0.60410    0.12243   4.934 8.04e-07 *** SenDist           NA         NA      NA       NA     --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  (Dispersion parameter for poisson family taken to be 1)      Null deviance: 500.23  on 353  degrees of freedom Residual deviance: 219.01  on 336  degrees of freedom AIC: 1435  Number of Fisher Scoring iterations: 4   ----------   But I don´t understand why I got the NA for the SenDist (trail lenght), Any ideas?.


Is it impossible to allow a group of user to "Rename" a folder, but deny "Delete" the folder? (Windows 2012 Server)

I would like to allow a group of user to rename the name of folder, but cannot delete it (in Windows 2012 server environment). So far, I found:   from the web, I got "rename = delete the folder and create a new one", so there is no way to allow rename but deny delete by NTFS permission. What I tried is when I untick the "delete" permission at advance permission settings, the "modify" permission is also disappered.   Is this really the case? There is no way to achieve through permission?


Ceramic capacitors: how to read 3-digit plus 1-letter markings?

It seems that reading a ceramic capacitor value out of its written values is harder than decoding enigma machine.  I wonder if experienced users here does have a trick to quickly figure out these values. Some examples:  I know that 103M is 0.01µF but how does one figure this out? Another example 104Z/LK ...this one I cant get it at all. All I know is that Z is for assymetric capacitors with tolerence between 80% and -20% ... Am I right? If not would be nice to correct me and tell me where these Z ceramic capacitors are used mostly?


Installing Linux on Separate Disk From Windows

I have two hard drives in my computer and would like to install Ubuntu 18.04.3 on the second hard drive. I wanted to know if there is any way to install it without leaving my main drive?


I wanted to tail the last 100 lines of a file to the same file, but the command tail -n 100 file > file doesn't work, I assume because the stdout gets written to the file 'live', before everything was read from the original file.  Is there some way to pipe the output to something, that then keeps it until all 100 lines are there, and then outputs it to the file? Or just another way to shorten the file in this way?


What is the future tense of the word can? One way to express it is "will be able to", but what is actually the future tense of "can" ?


Can I stop Photoshop from asking for interlaced option when saving a PNG format?

I never want my PNGs to be interlaced. So I wish I could set a bunch of option defaults in the application so that I am saving time when outputting a lot of images as PNG over the course of a day working in Photoshop.  Does anyone know if this is possible in Photoshop without using Actions OR the Save-for-Web option?


What is the difference between 2 sentences (punctuation)

Please explain the main difference between these two sentences:  1) My brother who lives in Christchurch is an electrician. 2) My brother, who lives in Christchurch, is an electrician.  In which case does the author of the sentence have one brother, and in which there can be several?


Apply a string replacement on the citation as returned by \cite

I have biblatex with options  \usepackage[backend=bibtex, style=authoryear]{biblatex}   The citations made with \cite look like this: Smith, 2019 or Smith and Baker, 2019 and so on. I would like to define a command that automatically replaces the occurrence of my name with my initials. Namely I need  \cite{SmithsPaper}  % --> Smith, 2019 \cite{MyPaper}      % --> Manny, 2019 %%% \newcite{SmithsPaper}  % --> Smith, 2019 \newcite{MyPaper}      % --> MC, 2019   I have tried with the package xstring to do something like  \newcommand{\newcite}[1]{%   \begingroup   \edef\@temp{\cite{#1}}%   \StrSubstitute{\@temp}{Manny}{MC}   \endgroup }   The problem is that I can't figure out how to tell LaTeX to expand \cite{#1}. As a result the citation comes out without the replacement. If I change \cite{#1} by simply #1 and I call \newcite{bla Manny bla} it gives bla MC bla as expected.  It shouldn't be relevant but I'm using this within the beamer documentclass.


Closure does not work as intended. How does the closure work like this?

I thought that I understand closures, but this example made me confused.   function f() {   let x = 1;    const g = () => {     console.log(x);   }   x = 100;    g(); }  f()    I think that the result should be 1, but it is 100. I thought that g in the moment of a declaration should take x that exists in the outer scope. But it took x value after reassignment. Why is it working like this?


Suddenly getting "Announcer" badges every few minutes?

The first one was unusual, but not too unusual.  The second one was improbable, but not impossible.  The third one made me ask this...    Is there a bug giving me these all of a sudden?


Past tense or present tense to describe something that 'happened in the past' but is still true?

For example:  "Last week, I found out that NASA stands for 'National Aeronautics and Space Administration.'"  or  "Last week, I found out that NASA stood for 'National Aeronautics and Space Administration.'"


Are holograms like in this video possible?

If so, how are they created (roughly speaking). Earlier in the video he says that a laser scanned the surface of the object, which suggests that no physical object needs to be present at the time of viewing the hologram, like what is required for a Mirage toy (seen here: ). Is this right?   I am aware that this is a fictional show, so what they are saying should not be taken too seriously and the hologram effect could be added by CG effects, but I am interested in the actual workings of this type of hologram (as opposed to a "flat" ).


Canadians Iranian passport travel USA from Iran

My husband and I with 2 kids have  Iranian Canadians  Passport and now my friend in Orlando invited us to visit her As now we are in iran and we are going to visit Usa with Canadian passport from Iran. Would it be possible to enter Usa?


I have been using the [Value] * Count notation in Python for initializing a list. For eg., [False] * 3 results in creation of list [False, False False]. I tried using the same notation for initializing a list of lists.  >>>a = [[0] * 2] * 3 >>>print a [[0, 0], [0, 0], [0, 0]] >>>a[0][1] = 23 >>>print a [[0, 23], [0, 23], [0, 23]] >>>id(a[0]) 139978350226680 >>>id(a[1]) 139978350226680 >>>id(a[2]) 139978350226680   As we can see, the elements of a refer to a single list thrice instead of referring to three different lists.  1. Why does this happen? 2. What is the correct way to initialize a list of lists?  The same behavior has been pointed out in an answer previously:


How to design a command inquiring internally required packages?

How can I define a document command \FilesRequire that writes to the .log (or to the output console) a list of all packages internally required by the declared document class and by the packages that have been loaded by the user in a document?  For example, with this document  \documentclass{book} \usepackage{graphicx} \usepackage{amsmath}  \FilesRequire  \begin{document}  test  \end{document}   The output will be something like  Document class book: doesn't require additional packages. Package graphicx requires: keyval, graphics. Package amsmath requires: amstext[1995/01/25], amsbsy[1995/01/20], amsopn[1995/01/20].   The command should have an optional argument for a comma separated list of the packages which will be inquired:  \documentclass{book} \usepackage{graphicx} \usepackage{amsmath}  \FilesRequire[amsmath]  \begin{document}  test  \end{document}   will produce just the information for the document class and for  amsmath:  Document class book: doesn't require additional packages. Package amsmath requires: amstext[1995/01/25], amsbsy[1995/01/20], amsopn[1995/01/20].   Basically, the command must produce a list of the arguments for all \RequirePackage commands found inside the .cls and .sty files used in a document.  I am not interested in external scripts.


How do I switch my Android device's SD card without causing problems?

I just got a new 32GB SD card for my Nexus One. On the old one I have a bunch of apps installed and store the data there because the internal memory doesn't handle it.  So now I want to switch SD cards, but how do I go about doing that without causing any issues?  Do I just simply copy-paste everything, or is there another way to do it?  I'm on stock firmware on the Android and using Mac OS X Lion.


How can I define a declaration version of a command?

For example the \MakeLowercase is a command and takes an argument enclosed in {} like \MakeLowercase{UPPER} to generate upper. What I would like is to be able to define a declaration, such as MakeItlower so that {\MakeItlower UPPER} will generate upper. This is similar to the distinction between \textbf{Bold} and {\bfseries Bold}.


Does a Schengen visa refusal affect negatively Australian PR visa approval?

I am Iraqi passport holder living currently in Iraq with no valid Australian visa. I received an invitation to lodge my 189 visa and I am in process of lodging my PR visa.  While I was studying in Australia 2012-August 2017 (completed and returned back to Iraq), I had a Schengen Visa refusal in March 2017 to Italy as I was going for a conference.  I did something wrong during the Italian visa process. The thing I did was I withdrew my passport from the Italian embassy (between the time of lodging my visa application to the refusal date). I withdrew passport because I had to travel to USA for another conference and the embassy did not issue visa as quick as usual. While I was in USA, I received an email by Italian embassy stating: "One or more member state(s) consider you to be a threat to public policy, internal security, public health as defined in Article 2(19) of Regulation (EG) No 562/2006 (Schengen Borders Code) or the international relations of one or more of the member of states". Within this received email, they give me a chance to explain everything. I did and said that I withdrew my passport for this reason with a lot of supportive documents.   After returning to Australia, I sent back my passport and they sent me this refusal with the same reason quoted above. I am very confident that I do no have anything to hide.  I checked this . I want to local German consulate and sought AZR. I received that "no details are stored under your name". So, the only possibilities, they considered when making decision for my schengen visa, are deceit or false/fake/contradictory.  Q1: How is to mention the above refusal reason in "circumstances of refusal" this form ?  Q2: How severe is this refusal on the likelihood of getting my Australian PR visa approved?  Q3: What is the best approach to handle this?  Thanks in Advance


I am trying to work through the proof I understand it until on this website  :  Pascal's identity does not apply for $k = 0$ or for $k = n$. In our sum, this means we need to split out the $j = 0$ and $j = k + 1$ terms before applying Pascal's identity.  Why does k=o and k=n correspond to $j=0$ and $j=k+1$?  Now we have the problem of matching the two sums from the left side with the two from the right side. First, notice that the out front on the right side can be thought of as the $j = 0$ term in the first sum. Next, the y $k+1$ out front on the right side can be thought of as the $j = k + 1$ term in the second sum.   Why can you think of these terms equaling $j=0$ in the first sum, why not for the second sum? And the same for $j=k+1$?


what is the sum of the series $\sum_{n=1}^{\infty} \frac{1}{2n^2+n}$

Given: $\sum_{n=1}^{\infty} \frac{1}{2n^2+n}$ so I calculated the partial amount and obtained:  $$2\sum_{k=1}^{n}( \frac{1}{2k} - \frac{1}{2k+1})$$ and if I open I do not solve anything, any suggestions?


Unwanted text appearing next to Promoted Links list name

When I insert my Promoted Links into my Team Site, a number in square brackets appears to the right of the list name.  What causes this and how can I get rid of it? I have a promoted links list called 'Quick links' I've gone to my Team Wiki and added this list, but the title shows as 'Quick links [3]'


Quicksilver listening to music when running inside the kitchen room

If Quicksilver runs at speeds faster than the speed of sound then how come the song he's listening to on headphones is playing at a normal rate?


"PuTTY key format too new" when using ppk file for PuTTY SSH key authentication

I wanted to connect to my Unix server using SSH keys. For that I had converted my id_rsa file from ./ssh directory to a ppk file using PuTTYgen, but after loading my .ppk key I get this warning:  PuTTY key format too new   If I use my default id_rsa file, then I get error:  OpenSSH SSH-2 private key (old PEM format)  Either way I am getting stuck. Can anyone please help me?


Is it possible to update Ubuntu 14.04 Wubi to 14.10 without having to reinstall?

I know that Wubi is buggy, dead, etc. However, I do not have a spare partition space lying around, ready to use on the computer (running Windows 7, using BIOS not UEFI, was bought way before Win8 was announced), I have installed Wubi on that computer in the past, but that was back when 12.04 was current. I was wondering if it was possible to update from Ubuntu 14.04 installed using Wubi to 14.10 without having to go through a reinstall without Wubi?


Profile picture cannot have transparent background

I never liked that SO/SE relied on the external gravatar service, so I was glad to . However, it turns out that one cannot use as profile picture a PNG file with transparent background (something that is supported by gravatar):    Above is a screen capture of my profile page, with a profile picture that has a transparent background. That background is turned into black, which I suppose is a bug.  The method of upload doesn't change anything (I uploaded it manually to imgur, but the same black background is observed). See the difference between the two following URLs:  http://i.stack.imgur.com/Da3ex.png?s=128&g=1   and  http://i.stack.imgur.com/Da3ex.png   The problem is thus in the resizing code from imgur.


Please tell me the passive form (if there is) of the following sentence:  Leave at once.   ???


TB Mega Menu - how to open sub menu on click not hover (desktop version)?

For some reasons I need to open the mega menu when somebody clicks on a menu item - for the desktop version.  At the moment the mega menu opens with hover, I need a solution for click opening.  Is there any solution within the TB Mega Menu module for this? If not, how can I realize this with JQuery?  Note: This is not a duplicate of "", because I need the click behavior NOT for mobile version but for desktop version.


I have the sum  $$\sum_{k=0}^{n} \binom{n}{k} k$$  I know the result is $n 2^{n-1}$ but I don't know how you get there. How does one even begin to simplify a sum like this that has binomial coefficients.


Need urgent help in Applying for u.k Direct transit Visa from london

I am Indian national, with students one year Visa studying in France.  For two months vacation, I have booked a round trip flight ticket from Paris to Delhi with transit in London Heathrow airport and vice versa(same) I arrive in London Heathrow airport at 10.20 P.M and my departing flight to Delhi is on next day 10.00 A.M.. I arrive and depart from the same terminal!  I have been told that I need to get transit Visa here in France! My questions are-  1. Is the direct transit Visa that I get is applicable for the full round trip, or should I get one while going to India and again another while coming from India?  2. If I apply for direct transit Visa online, should I get separate appointment for biometric registration or just by applying for direct transit Visa I will be called for biometric registration !


Where can I ask this question related to a "QA Automation project"?

It's been a question since long time. Everytime code goes for review   there are different opinion from different senior   developers/coders/QA. And every other person fights for its own   opinion.      Here are some of "Code review":         There should be single HTML identifier.CSS Selector, id, name, xpath or whatever, but choose only one across the project   It should be xpath only across the project   Use name and id only, as they are fast and readable   You can use whatever is easily available i.e. sometimes use xpath, and then sometimes use Css selector etc etc         Which one is best practice in terms of speedy execution of Automation   tests and managing Object repositories? Plus you can point in Code   Review meetings that this is why I am using it.      If it depends which tools you are using, as of now I am using WATIR   (Ruby+cucumber) and previously I was using JAVA.   This question was earlier posted by me on Code Review SE but there it got closed due to off-topic, not so sure where to post so posting here.


Errors after installing Chrome Dev along with Stable

I recently installed chrome dev version, even when I had chrome (stable) already installed.  After checking for updates with sudo apt update I get the following errors (maybe they are warnings).    How do I deal with them? And what is the cause.  Extra Info: I installed dev by downloading the .deb package, and the executing sudo apt install /home/abhay/Downloads/google-chrome-unstable_current_amd64.deb.  Also I can see two chrome PPAs in Software & Updates.   Is that somehow related to this incident? Is that a problem, having two same PPAs.


How to solve this trigonometry question?

The function $f(x)=\tan^{-1}\left(\frac{1}{x^2+x+1}\right)$ and the sum $$A = \sum_{k=1}^{17}f(k)$$ is given. Evaluate $\tan(A)$.   I tried to expand the expression using trigonometric addition formula but i couldn't find any pattern or it doesn't become simple. Thanks in advance!


Permissible for display name to advertise another SE site?

Is it permissible to use your SE display name to advertise another SE site or Area 51 Proposal? Is this scrupulous or laudable?   I don't refer to my comment box. For example, could I change 'LePressentiment' to 'Commit to Law SE' to advertise the  proposal?


I don't understand how this formulation of Extensionality is valid

This is taken from , p. 214, Release 2020-06-25. Extensionality is formulated as: $$ \forall x \forall y ( \forall z (z \in x \leftrightarrow z \in y) \to x=y). $$ Now, by the definition of implication ($\to$), $\forall z (z \in x \leftrightarrow z \in y)$ can be false while $x = y$ is true and the implication is true. But this is absurd, as that means that the statement: "Two sets which do not have all their elements in common are the same set," is valid, though it is clearly not. I must be missing something big here. Where is my reasoning faulty?


I'm working on a problem:  Compute cos(5°) to 5 decimal places with Maclaurin's Series  I know that that function cos(x) has a Mclaurin representation of:  $ \sum_{n=0}^\infty \frac{(-1)^n (x)^{2n}}{(2n)!} $  The only part I am unsure of is how to find out many terms n to choose.  I'm not sure if I am supposed to use the alternating series estimation or taylor series estimation or what.


Recently I've heard American TV commentators say "[a person] was literally decimated" and "[a Senator] was literally thrown under the bus". In the first case I think the person was not actually 10% killed, but in the second, I believe they meant that 57 members of the US Senate carried #58 onto Constitution Avenue and threw him under a (hopefully moving) bus.  Are usages like these normal or acceptable now? I find them grating, myself.


compare an String and an array element in java

I am trying to compare an String and an array element. If the requested element  package com.company;  public class Main {      static String[] List = {             "EUR", "AED"     };      static String[] IdList = {             "EUREUR", "EURAED", "AEDEUR","AEDAED"     };     public static void main(String[] args)     {         String value1 = "EUR";         String value2 = "EUR";         for(int i = 0; i < IdList.length; i++)         {             System.out.println(value1+value2 == IdList[i]);         }     } }   The problem is that it always returns false . Even if the requested String matches to a value in the array. Can you help me?


How to understand the relationship between hypothesis test and confidence interval?


Is there a function that will express any given number in words?  For example:  If a number is 1432, then this function will return "One thousand four hundred and thirty two".


Want to prevent a user to access other user cases

I Want to prevernt user to access other user cases in search and report as well in salesforce, when user at same level in role hierarchy.  My Organization-Wide Defaults setting is following   Case: Private User: Public Read Only Account, Contract and Asset: Private   Kinldy sugget the way, how can I achieve this.


Where do I put the score variable to keep score in my Python game? Does it need it's own function?

I'm making a game in Python using the jservice API.  It get's a random clue from the API, asks for user input, then compares the answer and returns True or False based on whether the answer is right or not. It's working, but I can't figure out how to keep score. You can see in the check_answer function in the commented out code how I was trying to do it. When I set the score = 0 inside the function, it resets to 0 every time I run it. I'm not sure how to, or if I should, make score a global variable. If so, how do I access it withing the function? import requests import json from re import search   # make a request from api def request_api_data():     url = 'http://jservice.io/api/random'     res = requests.get(url)     json_response = json.loads(res.text)     if res.status_code != 200:         raise RuntimeError(             f'Error fetching: {res.status_code}, check the API and try again!')     return json_response  # get a random clue from the API and store the question, answer, category and value def get_random_clue():     response = request_api_data()     dictionary = (response[0])     question = dictionary['question']     answer = dictionary['answer']     category = dictionary['category']['title']     value = dictionary['value']     # return the values     return (question, answer, category, value)  # pose the question and take the answer form input def ask_for_answer(question, category, value):     user_answer = input(         f'This question is worth {value}. The category is {category} \n{question}: ')     return user_answer  # check user answer against the answer returned from the API def check_answer(answer, returned_answer, value):     if answer != '' and search(answer.lower(), returned_answer.lower()):         print(f'{returned_answer} is correct!')         # score += value         # print(score)         return True      else:         print(f'Incorrect!. The answer is {returned_answer}')         # score = score - value         # print(score)         return False   def main():     # make the API call and store the returned values     returned_question, returned_answer, returned_category, value = get_random_clue()     # ask for answer and check answer using the returned values     check_answer(ask_for_answer(returned_question,                                 returned_category, value), returned_answer, value)     return 'done'   # call the main function x number of times for i in range(3):     main()


Automatically updating column in feature class when another column is changed?

I have a feature class in a file geodatabase and it contains a field called [curing] in short integer type and another field called [IsPopulated] in short integer as well.  What I want to achieve is to make [IsPopulated] automatically populated with "0" or "1" depending on whether the [curing] column is filled with a numeric value.  "Field Calculator" does not help as it's just a one-off operation and NOT automatic.


What antivirus program can I use on Ubuntu?

Are there any antivirus applications that work on Ubuntu 16.04? Thanks!


I read on Wiki that according to Heegner,  $\mathbb{Z}[\sqrt{-7}]$ is a UFD. But I read in a book that $2$ is an irreducible but not a prime in $\mathbb{Z}[\sqrt{-7}]$ . Doesn't that mean it's not a UFD ? So what is wrong here ?


Can weapons with Reach be used to attack "through" willing allies?

I'm picturing the  formation, where soldiers were arranged in rows and the men in Row B or even Row C could attack the enemy by thrusting their spears between the soldiers in Row A. Can you do that with a Reach weapon in DnD 5e? Attack an enemy even though there's an ally (or even a row of allies) directly between you and them?


Intuition behind equation for volume of a cone without calculus

I have come back to study geometry a bit and I'm kind of stuck at deriving the volume formula for a cone. I have read the calculus-based derivation and it totally makes sense, but calculus has been around for 200+ years, cones have been around forever. Intuition leads me to believe that there must be a way for people to logically explain that a cone in 1/3th the volume of a cilinder of the same size before calculus was even a thing. (similarly to the way that the area equation of a circle can be derived from breaking down the circle into infinite triangular slices.) Is there any logical way to get to a cone's volume equation without calculus? can't it be explained using some geometrical argument? How did civilizations wrap their heads around a cone's volume before calculus?


Can a Druid/Barbarian multiclass wildshaped into a giant constrictor snake use my Athletics skill in the place of the constrict attack?  A barbarian/druid multiclass can have a much better grapple than a lot of wild shapes have specialized grapple DC set to (especially when including feats like Prodigy to get expertise in Athletics).   Would I be resigned to using the animal's DC for those special attacks, or can I use an Athletics check instead?


Recent Multicolider SuperDropdown Changes

One of my favorite things about the StackExchange set of sites was always broadening my knowledge of different subjects by going to the Multicolider SuperDropdown and visiting the trending questions, not just on StackOverflow, but from all the sites.  With the most recent change to the top bar, is this now impossible?  Where I would normally see a list of hot questions from various StackExchange sites, I know see just a list of StackExchange sites that I participate in most, followed by other sites.


Are lightsaber blades a different material from blaster fire?

Since they aren't just light energy (move too slowly), they are probably some kind of matter or semi-matter. It has been speculated that starship fire is of a different nature from rifle fire (different movement speeds, based on movie physics analysis), so is it possible that is also the case for blaster fire vs lightsaber blades?  Reason being, if the two are the same, then why is cortosis specifically just lightsaber resistant?


Big Sur: Remove extra horizontal padding in menubar

In Big Sur MacOS update menubar icons have extra horizontal padding compared to previous OS versions. All the icons I need just simply not fitting there. And they used to fit in Mojave. I am still not sure if Big Sur caused this or specific apps, but I have general feeling padding is larger. Is there any way to reduce horizontal  padding in menubar in Big Sur?


Why must the identity be part of each group ? I was wondering about this in the context of "Algebra" by Michael Artin, where the author explains that there is essentially one group of order two.


Java student, trying to understand why this object is Null

Forgive me for my ignorance, but I am not understanding why my object is null.  I have been successfully refering to my getter previously.  I just added this getter to my initialize() method and it is throwing a NullPointer Exception.  When debugging the stack trace shows that it is this getter that isn't assigning a value to my object.  I don't understand why it works sometimes and now it doesn't.  I just created a static final instance of it and that gives me the same null result.  I am a student completing a project for school.  Below is a snippet from my CalendarControl class that is throwing the exception:   private List<Appointment> appointments;     static final User currentUser = LoginControl.getCurrentUser();     //region @init     @Override     public void initialize(URL location, ResourceBundle resources) //from Initializable     {         System.out.println(currentUser.toString());         try {             appointments = SQLAppointmentDAO.selectAppointment(currentUser);         } catch (SQLException e) {             e.printStackTrace();         }          for (Appointment appointment : appointments)         {             utilities.Timer.addAppointmentTimer(appointment);         }   The code that is causing me problems is the   static final User currentUser = LoginControl.getCurrentUser();   This is a snippet from the LoginControl class:   private static User currentUser;      public void login() throws IOException     {         String username = txtUsername.getText();         String password = pwdPassword.getText();          SQLUserDAO userSQL = new SQLUserDAO();          User user;         user = userSQL.getUserByUsername(username);          if (user == null)         {             badLogon();         }         else if (user.verify(password))         {             SceneManager.getMainStage().close();             SceneManager.getCalendarScene();             setCurrentUser(user);             loginLog();         }         else         {             badLogon();         }     }     private void loginLog()     {         File loginLogFile = new File(System.getProperty("user.dir") + "/login_log.txt");         try         {             loginLogFile.createNewFile();             FileWriter writer = new FileWriter(loginLogFile, true);             String log = getCurrentUser().getUsername() + " successfully logged in at " + LocalDateTime.now().format(                     DateTimeFormatter.ISO_LOCAL_DATE_TIME) + "\n";             writer.append(log);             writer.close();         }         catch (IOException e)         {             e.printStackTrace();         }     }      public static User getCurrentUser()     {         return currentUser;     }      private static void setCurrentUser(User user)     {         currentUser = user;     }


I think it would be nice to be able to increase an active bounty. A user might initially offer 100 but if it doesn't get any new answers, then the user should have the option to increase it.


As seen in the picture the milestone looks smashed up and strange, how can I fix this while still having the dates. I want to also have the dates there, as the regular one with all the dates takes to much room. I am open for other similar solutions for the chart.  \noindent\resizebox{\textwidth}{!}{ \ganttset{calendar week text= \small {\startday}} \begin{ganttchart}[ hgrid,x unit=1.5mm, hgrid style/.style={draw=black!5, line width=.75pt}, vgrid={*{6}{draw=none},dotted}, time slot format=little-endian, ]{01.03.18}{20.06.18} \gantttitlecalendar{ month=shortname,week=4} \\ \ganttmilestone{Forprosjekt}{03.03.18}\\ \ganttbar{Task A}{03.03.18}{03.05.18}\\ \ganttbar{Task A}{03.03.18}{03.05.18} \end{ganttchart} }


In clang's ActOnIfStmt function, we have:  return Owned(new (Context) IfStmt(Context, IfLoc, ConditionVar, ConditionExpr,     thenStmt, ElseLoc, elseStmt));   I'm under the impression that Context is a pointer type, but it's a class type. How does this work, and what does this code do?


Does the shiny side of foil keep food warm?

As the title asks, does the shiny side of foil really insulate or keep food warm when facing inwards? I've heard that the shiny reflective surface of the foil reflects the infrared energy. Is this true or is it just a marketing gimmick that everyone has come to believe?


I have followed the , but this happens:  # sudo katoolin sudo: katoolin: command not found   I have searched hard on the net with no joy. What am I doing wrong? I have a Macbook Pro Early 2011 i7 processor.


I have a complicated density function, how to find the constant?

Say, I have a density function: $f(x)=a e^{-((x-c)^2-b^2)^2}$ and $x$ can take any value in the real line. Obviously, I want to figure out the relation between $a$, $c$ and $b$ to make its integral to $1$. Can anyone provide some hints?


Weird scaling constraint on 3d model in edit mode

so im in edit mode with my model however when I select a face and try to scale it it scales the model not just the face please help?


Rodney Shewan points out that she should be read within a Romantic discourse as the story posits ‘an opposition of romantic commitment through passionate action to the relative safety of philosophic contemplation’ (43), although the ending appears unable to decide which of the two modes is the more attractive.  Source:  by Jarlath Killeen.    I would like to ask whether it is necessary to use the definite article before "more attractive"? Would it be a mistake not to use the article or to use the indefinite one?


Is "considered" always followed by "as"?

I have the following idea:        The reconstruction of object models is performed using a graph   matching approach, which is considered a corner fixing dilemma.    The reconstruction of object models is performed using a graph   matching approach, which is considered as a corner fixing   dilemma.      Which way is correct?


How to terminate a process when kill -9 doesn't work?

I've seen a few cases of processes that don't respond to kill -9.  Most recently, I've seen both lsusb and reaper get stuck and be unresponsive to kill -9. (After trying all the usual signals first) How do I tell Linux to kill the process no matter what?


Does the OP of a question get a message in the inbox when I update my answer?  Or do I have to make all the time a comment saying "@OP I updated my answer".  (Its a bit annoying when there are a lot of requests coming after the answer, and SO suggests to move the discussion automatically to chat)


I committed a bunch of files (dozens of files in different folders) by accident. What is the easiest, cleanest (and safest!) way to 'undo' that commit without having to delete the files from my working directory?


Let $A$, and $B$ be commuting $n\times n$ matrices, i.e. $A.B = B.A$. Let \begin{equation} \exp(A) = \sum_{i=0}^\infty\frac{1}{i!} A^i \end{equation} show that $\exp(A+B) = \exp(A).\exp(B)$. Edit: To those who choose to vote for closing of this question and similar ones as being a duplicate. I think the relative timing of the two questions are actually important! When there are two duplicate questions, I think it makes highly more sense to check the relative timings of the two questions and in general, tend to vote to closing of the question which is asked after (Interestingly, for this question, the duplicate is asked 5 years later than this one). Please note that if their research was done properly or the StackExchenge's duplicate detection worked perfectly at the time, they would not have been even able to post. Now by unnecessarily closing well attended questions of earlier contributors (here me) I am wondering what behavior is actually being rewarded?


I have a problem in the run of sudo apt-get update on Ubuntu 12.04. I get below errors : Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise/Release.    Unable to find expected entry 'restricted/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.  How can I solve the issue? Thanks


I have come across need to do something and need do something. My question is what's the difference between each other? My grammar book doesn't mention it


*How* link-only does a post need to be before it's link-only?

Triggered by ; quoting:     You are on the right track. Take a look at . There are many other articles on that topic I think, so choose one and try to understand it.      Another way I would recommend is integration of spring security with Struts 2. That way you get secured and proven configurable security stack.   It's not just a link, but it almost is, and includes a suggestion to do something other than what the OP is asking. The suggestion is valid, too, although it doesn't directly answer the question.  I'm trying to understand where the line is drawn, and this specific answer is giving me some problems. The OP's original question is too broad to be answered in a reasonable way. Chopping it down to its core makes it answerable without too much boilerplate.  Note: The original answer has since been expanded eliminating any doubt. But I appreciate everybody's input; it was all quite helpfule.


Is there anything omitted before sufficient?

We should be less concerned with students' 'cognitive impatience', however, than by what may underlie it: the potential inability of large numbers of students to read with a level of critical analysis sufficient to comprehend the complexity of thought and argument found in more demanding texts.  I want to know if there is anything omitted before the word sufficient? For instance, that is or which is? If so, is it an adjective clause? I think this way of writing is quite common but I just realised that I don't understand what it is "technically." Apart from that, I would appreciate if someone can help me identify the subject, object and all the other elements in this sentence since it's a terrible long one for me, I did spend some time reading it.


Is it possible to list all my posts in a given chatroom?

I am aware that if I click on  in my chat profile I can see the most recent messages in the rooms where I have posted something lately. (And I can view the same information in profiles of other users.) Is there any place where I could see all my chat messages or, even better, all my messages in a given chat room?


Solve the following functional equation $f(xf(y))+f(yf(x))=2xy$

Find all function $f:\mathbb{R}\rightarrow \mathbb{R}$ so that $f(xf(y))+f(yf(x)=2xy$.  By putting $x=y=0$ we get $f(0)=0$ and by putting $x=y=1$ we get $f(f(1))=1$. Let $y=f(1)\Rightarrow f(x)+f(f(x)f(1))=2x$, which tells us that $f$ is an injective function. The only solutions I came up with so far are $f(x)=x$ and $f(x)=-x$.


How to copy content inside of a txt file to clipboard?

I have a txt file on my Desktop: test.txt. I want to open that txt file and copy everything to the clipboard.  How do I do it?  I figured how to open file and read lines:  path = 'C:\Users\Username\Desktop\test.txt'  fo = open(path, 'r').readlines()   But I can't figure out how to get that data into the clipboard.


I'm sorry, but I am not familiar with the name of the tools. So, I'm just going to put in an image instead showing my problem. Than I will add to it. Now, the red X's is what I was calling 'Windows'. How do I remove the ones I no longer need? Because so far, the only way I have found is saving.. closing out.. than reopening again. And I know there has to be a better way.   Thank you for your time.


How to get the correct output for this code?

I am trying to get the value of 1-0.9 in javascript but it giving me 0.09999999999999998 in place of 0.1. Please help to get the desired output.


Mac Software to Search / Replace within a Project

0 down vote I haven't been able to find what I need.  For me. A project is a client. Their entire html / css / js website.  I need to maintain various search / replace values at a project level.  Select a Project.  And a list of project specific search / replace (that I created) entries appear.  If I open a different project… it may have similar search / replace values… but they are not related to any other project. It's literally a different website / property.  I’ve tried numerous applications that allow me to perform search / replaces but most don’t allow me to save the patterns (to eliminate re-typing 100’s of patterns every month)  and I’ve only found 1 (MassReplaceIt) that allows to save the changes at a project level…  Managing the patterns with MassReplaceIt is extremely cumbersome when you have 50 projects you are working on every month. Performing the same changes to each project - every month / over and over.  I want to be able to open a project… Add / Edit / Remove / Enable / Disable / Execute a list of Search / Replace patterns.  Then I want to open a different project and do the exact same thing (with it's own project values) - without affect any other project.  This would save me days and days of work every month.  And it needs to be Mac based.  Anyway / any software to do this ?


Sympletic matrix must have a determinant equal to one.

I hope that I am just confused, but I don't see why a sympletic map must have a determinant equal to one and not minus one?-Could anybody help me with that?- I am referring to the group  $$Sp = \{T \in GL(\mathbb{R}); TJT^T = J\},$$  where $J$ is the canonical matrix, see e.g. here   If anything is unclear, please let me know.


Overwrite previous output in Bash instead of appending it

For a bash timer i use this code:  #!/bin/bash sek=60 echo "60 Seconds Wait!" echo -n "One Moment please " while [ $sek -ge 1 ] do    echo -n "$sek "   sleep 1    sek=$[$sek-1] done echo echo "ready!"   That gives me something like that   One Moment please: 60 59 58 57 56 55 ...   Is there a possibility to replace the last value of second by the most recent so that the output doesn't generate a large trail but the seconds countdown like a real time at one position? (Hope you understand what i mean :))


How many distinct functions can be defined from set A to B?

In my discrete mathematics class our notes say that between set $A$ (having $6$ elements) and set $B$ (having $8$ elements), there are $8^6$ distinct functions that can be formed, in other words: $|B|^{|A|}$ distinct functions. But no explanation is offered and I can't seem to figure out why this is true. Can anyone elaborate?


Anyone has idea how to simplify this summation: $$\sum\limits_{k=0}^{N}\binom{M-1+k}{k}\binom{M-1+N-k}{N-k}$$


Features - Should I go for big or numerous?

I have worked on a few Drupal projects that used features.  I am usually perplexed by the way the way functionality is grouped.  I'm guessing that most of them were created as needed and by different developers that did not want to meddle with other people's features.  The outcome is usually a mess of different naming and grouping schemes.  Currently, I have the opportunity to create a site from scratch, and I want to start using a good methodology for creating my feature groups.  I am tending towards making a gigantic feature that contains everything, and only rebuilding one feature every time an update is needed.  What is good/bad about doing this.  Also, I feel more responsible while considering building several different features for each bit of functionality.  However, I am not sure how granular to go, or if this is begging for conflicts later.  How should I be approaching this issue?


How could I insert a command into a command block using blockdata if it contains quotation marks (like this: " ) (JE 1.12.2)?

I tried to run a command like this:  /blockdata 1 2 3 {Command:"summon minecraft:area_effect_cloud ~ ~ ~ {Tags:["sg"]}"}   And then it replied it was expecting } but got s at ...Tags:["s<---HERE  By the way I am making music having a rondeau theme using command blocks, and I don't want to build the theme multiple times. I was wondering if it could be solved by just changing the command in the end of the frase once it was repeated in order to trigger the next frase.  Is it possible to execute such command?


Java passing by value: difference between mutable and immutable types

I am wondering if it makes a difference if you pass an immutable type into a method in constrast to passing an mutable type into a method. I'm asking this because of the following code:   I have the following two methods, one taking a String (immutable) parameter and the other taking a StringBuilder (mutable) parameter:  static void change(String s) {     s = "!!!"; }  static void change(StringBuilder sb) {     sb.append("!!!"); }   Code for executing the code (with results written as comments):  public static void main(String[] args) {     String s = "Hello";     change(s);     System.out.println(s); //Prints Hello      StringBuilder sb = new StringBuilder("Hello");     change(sb);     System.out.println(sb); //Prints Hello!!! }   The String object (immutable type) doesn't get changed by the method while the StringBuilder object (mutable type) gets changed by the method. Is this all the outcome of String being an immutable type and StringBuilder being an mutable type?  In both scenarios the reference/pointer is passed into the method right? Because the String object is immutable, it creates a new String and because the StringBuilder is mutable (and points to the same object), it changes the same StringBuilder right?


French speaker here — How to pronounce "r" and "l"?

I'm a French speaker and actually I have some problems with the sounds l , r and o in lawyer. Do you have any advice for me on how to place the tongue and so on?


Remove Fujitsu Lifebook Bios Password on Startup

I Tried to remove the Boot up Bios password in a Fujitsu Lifebook Bios SH530 Model. But it still asking for password on bootup and now may password did not work. Can anybody help me? Here's what I did:   Press F12 on Bootup  Sign in using the old password Go to Security Settings Tab Change the Boot up Password by Typing in the Current Password and leaving the New Password Inputbox Blank. I just press enter 2x. exit the bios screen and save settings <-- The Worst next time I Boot up it still ask for password but my old password did not work. I tried just leaving it blank and press enter but it is Invalid! I tried 3x and wooops a non stop long beepp sounded with SYSTEM DISABLED on screen no Hash code or what so ever.   What did I do Wrong? Do anyone have this experience? What did you do to solve this problem?   PS. I do not know the supervisor password for it.  UPDATE:   It seems the Master Password will only show up on boot before loading windows 7. If will not show up on Bios Settings. I'm currently using this page to decrypt the hash code  My question now is how do you display the Master Password Hash in Bios Setup? If I can get it I can decrypt it and hopefully remove the password.


I am trying to build a ICMP ping program in python while I was researching about how to write a "receiving ping" method. I saw  many people are using this part "recPacket[20:28]" and I do not think I have ever seen this form before. Is recPacket[20:28] this supposed be an array? I get that it is 8 bytes but what does "[:]" this do? I am trying to search the meaning of this and could not find it in textbook or anywhere.


Type of correlation between binary and ordinal variable

I have two variables. The first variable is binary (yes or no) and measures if a person is happy or not. The second variable consists of 5 integers from 1 to 5 and measures if an emotion is positive or negative. For example, a 1 means negative emotion and a 5 means very positive emotion. I'm not sure if this variable is categorical or ordinal. In total I have 10'000 measures for each variable. I would like to calculate the correlation between these two variables. Which is the best measure? Is it Pearson correlation?


Black screen after installation of Ubuntu 18.04

I did a fresh complete install of Ubuntu 18.04 on my ASUS M32CD desktop.   Everything during install went fine. At the end it said it was complete complete, and would reboot. Popped the disc out. Rebooted itself back into bios so I changed it back from CD boot as primary to HD.  When it booted up for Ubuntu screen and then everything went black and can’t do anything now! Ugh. Help


What is going on with these insuresaving.com sites

Today I came across this, during a web search:    Is this some kind of clone?


Old Science Fiction anthology: man with nightmares of a giant bee; post-apocalyptic underground world

I found this site today while searching for a book and hope someone can help. When I was a boy I read a hard-bound anthology of science fiction stories. This was circa 1986, but the book might have already been a little old. I can only remember three stories:  One was about a man working in space who had nightmares of his impending death by a giant bee. This ultimately cost him his life when he was killed while working on the outside of his spaceship, that was in the shape of a bee (or some other insect, but I think it was a bee). The front cover MIGHT have been a picture of this bee-looking spaceship, but I'm not entirely sure. I remember the picture, but it might have been within the story.  Another story was about a post-apocalyptic world where humanity had long moved underground for protection while rockets were still firing off in a long-forgotten war. Children became rarer and most families had synthetic children. A boy and a girl, who were friends, decided to escape to the surface mostly guided by their curiosity I think. They find out that the rockets were being exploded immediately by robots (as far as I remember) and that there was really nothing to be afraid of on the surface. Their flimsy suits quickly dissolved or something in the air or water and at the very end we got to know that their names were Adam and Eve.  The last story of the book was about dinosaurs that got loose. Possibly kind of Jurassic Park on another planet, and how the humans escaped.   I would really appreciate it if anybody can help. It's like an itch I cannot scratch and would really like to find this book, having children of my own now :)


What are the barriers to understanding pointers and what can be done to overcome them?

Why are pointers such a leading factor of confusion for many new, and even old, college level students in C or C++?  Are there any tools or thought processes that helped you understand how pointers work at the variable, function, and beyond level?  What are some good practice things that can be done to bring somebody to the level of, "Ah-hah, I got it," without getting them bogged down in the overall concept? Basically, drill like scenarios.


Where did the "art" in "Our Father who art in Heaven" go?

What happened to the art in "Our Father who art in Heaven"?  And why is it art, and not is?


Question about how to interpret arbitrary elements

I have a question about how to interpret arbitrary elements. When we say:  "let $x$ be an arbitrary integer"  "let $x$ be any integer"  "let $x$ be an integer"   at the beginning of proofs, are we saying:  "let the symbol $x$ represent one of the integers, although it is not clear which specific integer the symbol $x$ represents".  If not, please let me know how I should think about the above statements. Thank you for your time.  Edit: I had a follow up question to the one I asked earlier. What do mathematicians mean by “arbitrary element” or “any element”. I can understand when mathematicians say “let $x$ be $4$” as this means “the symbol $x$ represents $4$”. Could someone please elaborate on why the specific terms “arbitrary” and “any” are used?


I'm not so experienced in bash scripting, so consider studying it on practice. Recently i was trying to make simple script which should reveal all files at least 1 GB sized and faced with problem escaping white-spaces in names.  It's working fine in terminal if i do:  $ find /home/dem -size +1000M -print|sed -e 's/ /\\ /' /home/dem/WEB/CMS/WP/Themes/Premium_elegant_themes/ETPSD.rar /home/dem/VirtualBox\ VMs/Lubuntu13.04x86/Lubuntu13.04x86.vdi /home/dem/VirtualBox\ VMs/Win7/Win7-test.vdi /home/dem/VirtualBox\ VMs/FreeBSD9.1/FreeBSD9.1.vdi /home/dem/VirtualBox\ VMs/backup_Lubuntu13.04x86/Lubuntu13.04x86.vdi /home/dem/VirtualBox\ VMs/Beini-1.2.3/Beini-1.2.3.vdi /home/dem/VirtualBox\ VMs/BackTrack5RC3/BackTrack5RC3.vdi /home/dem/VirtualBox\ VMs/WinXPx32/WinXPx32.vdi   But in this script:  #!/bin/bash  for i in "$( find /home/dem -size +1000M -print|sed -e 's/ /\\ /' )"  do    res="$( ls -lh $i )"   echo $res done    It gives error, and as you may see left part stripped:  ls: cannot access /home/dem/VirtualBox\: No such file or directory ls: cannot access VMs/Lubuntu13.04x86/Lubuntu13.04x86.vdi: No such file or directory ls: cannot access /home/dem/VirtualBox\: No such file or directory ls: cannot access VMs/Win7/Win7-test.vdi: No such file or directory ls: cannot access /home/dem/VirtualBox\: No such file or directory ls: cannot access VMs/FreeBSD9.1/FreeBSD9.1.vdi: No such file or directory ls: cannot access /home/dem/VirtualBox\: No such file or directory ls: cannot access VMs/backup_Lubuntu13.04x86/Lubuntu13.04x86.vdi: No such file or directory ls: cannot access /home/dem/VirtualBox\: No such file or directory ls: cannot access VMs/Beini-1.2.3/Beini-1.2.3.vdi: No such file or directory ls: cannot access /home/dem/VirtualBox\: No such file or directory ls: cannot access VMs/BackTrack5RC3/BackTrack5RC3.vdi: No such file or directory ls: cannot access /home/dem/VirtualBox\: No such file or directory ls: cannot access VMs/WinXPx32/WinXPx32.vdi: No such file or directory -rw-rw-r-- 1 dem dem 3.1G Jul 13 02:54 /home/dem/Downloads/BT5R3-GNOME-32/BT5R3-GNOME-32.iso -rw------- 1 dem dem 1.1G Dec 27 2012 /home/dem/WEB/CMS/WP/Themes/Premium_elegant_themes/ETPSD.rar   I need script to show files with white-spaces + retrieving actual size of each file which ls -lh do. Without sed formatting:  $ find /home/dem -size +1000M -print /home/dem/WEB/CMS/WP/Themes/Premium_elegant_themes/ETPSD.rar /home/dem/VirtualBox VMs/Lubuntu13.04x86/Lubuntu13.04x86.vdi /home/dem/VirtualBox VMs/Win7/Win7-test.vdi /home/dem/VirtualBox VMs/FreeBSD9.1/FreeBSD9.1.vdi /home/dem/VirtualBox VMs/backup_Lubuntu13.04x86/Lubuntu13.04x86.vdi /home/dem/VirtualBox VMs/Beini-1.2.3/Beini-1.2.3.vdi /home/dem/VirtualBox VMs/BackTrack5RC3/BackTrack5RC3.vdi /home/dem/VirtualBox VMs/WinXPx32/WinXPx32.vdi


Latex: Multiple \cite's with an 'and' before the last reference

I'm using Natbib and BibTeX writing my thesis.  If I say:  \citet{key1,key2,key3} did something big.   I get:  Key1 Author (2014); Key2 Author (2011); Key3 Author (1900) did something big.   Is there a formatting command that might give me an "and" before the last reference? That it might look like this:   Key1 Author (2014); Key2 Author (2011) and Key3 Author (1900) did something big.   I know that I can go:  \citet{key1,key2} and \citet{key3} did something big   but that kinda seems hacky. I was wondering if anyone knows some LaTeX magic that will make this work?  Thanks in advance!


How do I determine whether a drive is an HDD or SSD in Windows Vista or 7 without 3rd party apps?

Note: Not a duplicate, for I need an answer for Windows Vista, 7, 8, 8.1, and 10. The solution for 8 and above does not work for Windows 7 or Vista.  I often talk with naive users who have no idea what's in their system, and less interest, and who use Windows Vista, 7, 8, 8.1, or 10.  Some maintenance processes for the software I support differ if an SSD is installed vs an HDD, i.e., defragmentation. I need a solution which works on every Vista or 7 machine, which means no third party apps, only native Microsoft 'ware.  Asking the naive user to reboot, go into the BIOS, obtain the drive model, and then search for the drive by model and then parse out if SSD or HDD is too complex, so a suggestion of how to discover in Windows if an SSD is installed in lieu of an HDD is desired.   Use of tools already in Windows is required; third party apps are not viable.  Thank you.


Blender still using CPU even when I have CUDA chosen in preferences?

The problem is as title suggests, I selected CUDA and checked my GPU in preferences for the Cycles Render Device . But when I'm running my render, the CPU usage is anywhere from 88-99% and the GPU usage is around 10-15% . I can only imagine that Blender is still using my CPU to render the scene. How do I fix this?


I have table like this - how can I select value of product bought lastly?  From this table I need select as shown below:


Do I need a UK transit visa if I have Ireland's GNIB/IRP card?

I have Stamp 4 on my IRP card in Ireland(formerly GNIB) and working full-time here. I am traveling from Dublin to Delhi via Heathrow Airport in London and would be changing terminals at the airport.  So, my question is, do I need to apply for a UK transit visa. My colleagues have gone via the same route and they said to me that a UK transit visa isn't necessary if you have an IRP card but just wanted to make sure.


Determine the probability densities for coefficients of equation

Both roots $x_1$ and $x_2$ of a square equation $x^2+ax+b=0$ can take any value from $-1$ to $1$  with equal probability . Determine the probability densities for coefficients $a$ and $b$.   I think I should use the properties of Vieta's theorem then $x_1+x_2=-a$ and $x_1\cdot x_2=b$.  And I don't know how to solve it further.


Re-opening an old question doesn't remove the notice about the question not being a duplicate

I , since the duplicated question was automatically deleted. Once re-opened, the question still shows the link to the duplicate question, as you can see on         Since the question was re-opened, the link to the duplicated question should be removed, as it always happens.


Because of in the beginning of a sentence

Is this sentence right?   " I eventually go to that restaurant. Because of the prices I can't afford to go there very often"   Can I start a sentence using "Because of"??  Thanks


Table doesn't fit in a frame when using Beamer

This is my MWE:  \documentclass[pdf]{beamer} \begin{document} \begin{frame} \begin{table}[ht] \caption{GLIFT Label Propagation Rules for AND gate} \centering \begin{tabular}{c | c c c c} \hline\hline AND & (Trusted, 0) & (Trusted, 1) & (Untrusted, 0) & (Untrusted, 1) \\ \hline (Trusted, 0) & Trusted & Trusted & Trusted & Trusted \\ (Trusted, 1) & Trusted & Trusted & Untrusted & Untrusted \\ (Untrusted, 0) & Trusted & Untrusted & Untrusted & Untrusted \\ (Untrusted, 1) & Trusted & Untrusted & Untrusted & Untrusted \\ \hline \end{tabular} \label{table:AND} \end{table} \end{frame} \end{document}   The problem is the table doesn't fit in a frame.


Will I find only GNU command line tools in Ubuntu?

A couple well known command line tools exist in several versions depending on the Unix flavor (like sed, find, ld).  I was wondering which versions are available in Ubuntu (I assume GNU for all but I'd like to confirm that)?


I don't know where to start. can anyone help me please ?  if $x^2+ax+b=0$ has an integer root, show that it divides b


A complete residue system from an arithmetic progression

I'm solving a problem, and the solution makes the following statement: "The common difference of the arithmetic sequence 106, 116, 126, ..., 996 is relatively prime to 3. Therefore, given any three consecutive terms, exactly one of them is divisible by 3." Why is this statement true? Where does it come from? Is it generalizable to other numbers?


This might be a stupid question but given Einstein's general theory of relativity $E = m c^{2} $ what is the energy of a black hole? Isn't the mass of a black hole infinite? Wouldn't that be infinity multiplied by the speed of light squared?


css property behaving weirdly -- hidding html element but leaving a big blank space element occuping the same space of the hidden element in website

I'm having a problem with a css element on my website. I cannot determine why the css is behaving like this > ... checked everything here and it should work but it is not... The problem: If you scroll down the page you will see a big blank space... you can use control(-)  key  in  in order to reduce zoom  to -25% to see all the blank space correctly see here:  ... so then... If you check source code with "Right click> inspect element" and use control+F (to find something) use "popup" in the search bar you will find the property
 i will explain how it works, it is a simple div using the: #popup {     visibility: hidden;     opacity: 0;     margin-top: 0px; }  property.. if you uncheck it : visibility: hidden;         opacity: 0;  you will see the big blank space will be replaced by the hidden element... with whis the question here is... how do i get rid of that white big blank space? what i want to do is to when hidden it does not show the big white space... the problem is here
  because if you in the element inspector change the "id=popup" for any value, for example 0, the big blank space will be deleted and replaced for the hidden element which is occupying the same space of the white blank page... i checked the code and i don't know what is happening or why it is happening, here is the Javascript element just in case you need it:  also, there is a function in the main js called "popupWindow" i do not know if it does have to do something with the above staement, however since the js file is minified, you could use control(c) / control(v)  (copy/paste)  > beautify javascript and control(c) / control(v)  (copy/paste) into your editor and check it, however i will post the function here so you do not have the need to check the source file and do the exposed above... function popupWindow(t, e, n, i, r) {     var o = (screen.width - n) / 2,         a = (screen.height - i) / 2;     o < 0 && (o = 0), a < 0 && (a = 0);     var s = "height=" + i + ",";     s += "width=" + n + ",", s += "top=" + a + ",", s += "left=" + o + ",", s += r, win = window.open(t, e, s), win.window.focus() }  however have not found any anomally or something weird.... i do not know why the css is behaving like this... Thank you in advance.


What is the source of wealth of the Potter family?

Harry Potter was born into a wealthy family. He inherited lots of gold from his father. What did his father do to get so rich?   I have always been puzzled about how the wizards get rich. The Muggle economy is much larger and has more opportunities to become rich. What can wizards do to become rich? They cannot sell magical products/services to the Muggles. The wizard population is much smaller, so making money from this smaller market is much harder.


User cannot access a file after setting an ACL

I cannot enter a directory after creation in a folder with an ACL: I am attempting to limit rwx access to a folder for just a single group and no one else. I would like to be able to add new users to a group and have them gain access to a directory.  This is what I have done so far   mkdir /mnt/files cp /media/usb0/backup/* /mnt/files chgrp filers /mnt/files chmod -R g+s /mnt/files setfacl -b /mnt/files  # to remove user and other setfacl -R -d -m g:filers:rwx /mnt/files getfacl /mnt/files  # file: mnt/files/ # owner: root # group: filers user::--- group::rwx other::--- default:user::--- default:group::rwx default:group:filers:rwx default:mask::rwx default:other::---    So far everything looks good . . .   cd /mnt/files mkdir test ls -l  d---rws---+ 2 jimmy filers 4096 Nov 28 14:32 test  cd test  -bash: cd: test/: Permission denied    Any reason I can't enter the folder I just created?   getfacl ./test  # file: test # owner: jimmy # group: filers # flags: -s-  user::---  group::rwx  group:filers:rwx   mask::rwx  other::---  default:user::---  default:group::rwx  default:group:filers:rwx  default:mask::rwx  default:other::---


Find color where alpha at value `a` equals a given hue

I want to achieve a certain hue but also have the color that carries that hue contain a certain opacity.  For example if I were after #ff0000 with 50% opacity, the color I would want to identify is the (dark) shade of red that when at 50% opacity yields #ff0000.  Is there an equation I can use that lets me plug in the desired hue and alpha to identify the color values that produce that hue when at the given opacity value?  (I know this won't exist for all target color / alpha combinations, but I'd like to find the equation that specifies the parameters for those combinations that are achievable.)


If $f'(z_0)\neq 0$ then $f$ is one to one on some open disk $D_r(z_0)$

This is what I am trying to prove      Let $D\subset\mathbb{C}$ be open and $f$ be analytic in $D$. If there is $z_0\in D$ such that $f'(z_0)\neq 0$ then there exists $D_r(z_0)\subset D$ and $f$ is one to one in $D_r(z_0)$.    I am finding it difficult to prove this but on some disk $D_r(z_0)\subset D$ $f'=0$ due to continuity. But I just can't go ahead and get anything out of this. ANy hints will be appreciated. Thanks


Clang compiles different function signatures into same symbol

I was going through a c++ linker tutorial and playing with some function calls when I hit upon something that I assumed would give me a linker error, but did not.  I am compiling on MacOS using LLVM version 10  ❯ c++ --version Apple LLVM version 10.0.0 (clang-1000.10.44.4) Target: x86_64-apple-darwin17.7.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin   I have 2 cpp files, log.cpp:  #include <iostream>  void Log(const char* message) {     std::cout << message << std::endl; }   and math.cpp:  #include <iostream>  int Log(const char* message);  int Multiply(int a, int b) {     int res = Log("Multiply");     std::cout << "Got res: " << res << std::endl;     return a * b; }  int main() {     std::cout << Multiply(5, 8) << std::endl; }   In math.cpp I am intentionally declaring the Log function with a mismatched return type. I expected this to compile but then fail to link but in fact it links just fine. I even saved off the return value and print it for funsies and it's garbage as expected because the Log function doesn't return anything.  /tmp ❯ c++ math.cpp log.cpp -o math  /tmp ❯ ./math Multiply Got res: -2002196896 40   I went further by dumping the assembly and looking at the function symbol being generated:  /tmp ❯ c++ -S math.cpp log.cpp  /tmp ❯ ls -l *.s -rw-r--r-- 1 rsahae wheel 31924 Jun  9 11:38 log.s -rw-r--r-- 1 rsahae wheel 32022 Jun  9 11:38 math.s  /tmp ❯ grep Log log.s math.s log.s:  .globl  __Z3LogPKc              ## -- Begin function _Z3LogPKc log.s:__Z3LogPKc:                             ## @_Z3LogPKc math.s: callq   __Z3LogPKc   So now I understand why the linker doesn't give an error, because the symbols appear to be the same, even though the method signatures are different.  I looked around a bit on the internet but I couldn't find a post explicitly telling me why this behavior is happening.  I tried other variations of return types (float and string) which still generated the same symbol. I also tried changing the arguments which obviously do produce a different symbol and therefore error as expected.  Can anyone help explain or point me to the documentation as to why the compiler is compiling these two declarations with different signatures (of return type) into the same symbol?


What's the difference between the "me" and the "I" used in the quote below?

I read the next words (part of a bigger sentence, coming from musical lyrics):     But my parents, they lived through the Blitz years, and me, I was sent to a farm.   Why are me and I used, instead of:     And I, I was sent to a farm.    By the way, when I type the last sentence I'm not corrected by the grammar and spelling control program. Of course, the program says I'm wrong when writing two times me:  It just doesn't feel good to say:  "and me, me was sent to a farm."  Is it maybe because of the context in which these words are used? Or is there maybe some rule which says you have to use me and I in the way I described? I find it kind of strange because in Dutch we have also me ("mij") and I ("ik"), but used differently. We don't say the quote above with me and I, but two times ik. We do say, though, "give it to me!" (for example): "geef het aan mij". And there are more of these different usages of the two.


Determine the Galois group of $\mathbb{Q}(\sqrt{a+b\sqrt{d}})$

Suppose $L=\mathbb{Q}(\sqrt{a+b\sqrt{d}})$,($d$ and $a+b\sqrt{d}$ are square free algebraic integers) when is $L/\mathbb{Q}$ a normal extension? When does $Aut(L/\mathbb{Q})=\mathbb{Z}/4\mathbb{Z}$ or $Aut(L/\mathbb{Q})=\mathbb{Z}/2\mathbb{Z}\times \mathbb{Z}/2\mathbb{Z}$?


Conversion of Moving coil galvanometer to ammeter

A galvanometer can be converted into an ammeter by connecting a low resistance (called shunt resistance) in parallel to the galvanometer.    Firstly, why do we need to connect the resistance?  If a resistance is connected in parallel, then some of the current will flow through resistance. So how can the current in the circuit be determined? Won't it be inaccurate, as some of the current flows through resistance?


If $f$ is continuous and $f'(x)\ge 0$, outside of a countable set, then $f$ is increasing

PROBLEM. Let $f:[a,b]\to\mathbb R$ be a continuous function, such that $f'(x)\ge 0$, for all $x\in [a,b]\setminus A$, where $A\subset [a,b]$ is a countable set. Show that $f$ is increasing.  Attention. In this problem, we DO NOT assume that $f$ is differentiable in the whole $[a,b]$.  Notes. (1) If we assume that $f$ is differentiable in the whole interval, then we can easily show that $f'(x)\ge 0$, everywhere. For otherwise, if $f'(x_0)=c<0$, for some $x_0\in [a,b]$, then by virtue of , $(c,0)\subset f'([a,b])$, and hence, $f'(x)<0$, for uncountably many $x$'s.   (2) The conclusion of the problem does not hold if we replace the assumption $A$ is countable with $A$ is a set of measure zero. Take for example the , with a negative sign in front.  (3) If the hypothesis $f'(x)\ge 0$, is replaced by $f'(x)=0$, then the conclusion becomes f is constant.


how to automate Y in a script during an rpm install

I need to create an automated install of an snmpv3 package. I have been able to install it manually, but how do i add it in a script, and automate the "Y" response when prompted in a script during the installation?


A circle has the same center as an ellipse and passes through the foci $F_1$ and $F_2$ of the ellipse, two curves intersect in $4$ points.

A circle has the same center as an ellipse and passes through the foci $F_1$ and $F_2$ of the ellipse,such that the two curves intersect in $4$ points.Let $P$ be any one of their point of intersection.If the major axis of the ellipse is $17$ and the area of the triangle $PF_1F_2$ is $30$,then find the distance between the foci.    Let the center of the ellipse and the circle be $(0,0)$ We are given $2a=$length of major axis$=17$. Let the coordinates of foci be $F_1(c,0)$ and $F_2(-c,0)$ We need to find $2c$. Area of $PF_1F_2=\frac{1}{2}\times 2c\times$perpendicular distance between $P$ and the axis of the major axis of the ellipse. I do not know how to solve it further.


how i can pass value from input type file into url in ajax function

guy's i have a problem with passing input type file value into ajax url=url,  i hope someone can help me with this. i have code like this    var data; $.ajax({   type: "GET",   url: "js-tutorials.com_sample_file.csv",   dataType: "text",   success: function(response) {     data = $.csv.toArrays(response);     generateHtmlTable(data);   } });

Read CSV file using JavaScript

       <form class="form-inline">
           Upload a CSV formatted file:           <input type="file" id="files" class="form-control" accept=".csv" required />

           <button type="submit" id="submit-file" class="btn btn-primary">Upload File</button>
       </form>

     i will explain it from my code. i want to pass the url from file that have choose from input type file from my html into the url: "js-tutorial.com_sample_file.csv";.


When can one break the rule of using "does" instead of "do"?

Listen, Walter, because you shot Jesse James don't make you Jesse James. — Breaking Bad   Why is it don't and not doesn't?


Different vector space structure to an abelian group.

Let $(V,+)$ be an abelian group. Can we have two multiplication map $\phi_1$ and $\phi_2$ from $\mathbb R\times V\to V$ such that $(V, +, \phi_1)$ and $(V, +, \phi_2)$ are two different vector space $( \phi_1\neq \phi_2)$.


Because an object's temperature is inversely proportional to the wavelength of blackbody radiation which it emits, physicists have theorized the existence of  at around $1.4×10^{32}$ K.   Does this imply that temperature must be discrete? Meaning, the temperature could never be $1.0×10^{32}$ K, because that would imply a wavelength which is a non-integral multiple of the Planck length.  If it does imply this, does that mean that a system, if approaching the Planck temperature, and given more energy, would suddenly and radically change states from $0.7×10^{32}$ K to $1.4×10^{32}$ K? (perhaps much like a )  Pardon me if this question is bizarre, as I am not a physicist by profession (except maybe of the armchair variety).


The Greeks I've met say something that to my ears sounds like 'Elatha'.


Is Every Invariant Subspace the Kernel of an polynomial applied in the operator?

Let $V$ be a finite-dimensional $K$-vector space and let $T$ be a linear operator from $V$ to $V$.  I already proved that for every polynomial $p(x) \in K[x]$, $\ker p(T)$ and $Im p(T)$ are $T$-invariant. Is it true that for every $W$ proper $T$-invariant subspace, $W$ is the kernel of $p(T)$ for a polynomial $p$?  My guess is yes. If $p$ is the characteristic polynomial of the restriction of $T$ to $W$, then $p(T)v=0$ for every $v$ and then $W\subset \ker p(T)$. How can I finish the converse?


When transforming variables, do you have to use all of the same transformation? For example, can I pick and choose differently transformed variables, as in:   Let, $x_1,x_2,x_3$ be age, length of employment, length of residence, and income.  Y = B1*sqrt(x1) + B2*-1/(x2) + B3*log(x3)   Or, must you be consistent with your transforms and use all of the same? As in:   Y = B1*log(x1) + B2*log(x2) + B3*log(x3)    My understanding is that the goal of transformation is to address the problem of normality. Looking at histograms of each variable we can see that they present very different distributions, which would lead me to believe that the transformations required are different on a variable by variable basis.   ## R Code df <- read.spss(file="http://www.bertelsen.ca/R/logistic-regression.sav",                  use.value.labels=T, to.data.frame=T) hist(df[1:7])      Lastly, how valid is it to transform variables using $\log(x_n + 1)$ where $x_n$ has $0$ values? Does this transform need to be consistent across all variables or is it used adhoc even for those variables which do not include $0$'s?  ## R Code  plot(df[1:7])


Why is this function in an expression not visible?

Why does the following result in an error?  Is bar not instantiated before the invocation?  (function bar(){}, bar())      Uncaught ReferenceError: bar is not defined


Are Kurenai's eyes some sort of Doujutsu?

Since the start of the series, after the Sharingan and Byakugan had been revealed, Kurenai's eyes seem kind of different from normal eyes and more like the Doujutsu.    During the attack of the Nine-Tailed Fox on Konoha, her father appeared for the first time in the story. He too possessed similar patterns in his eyes.  So is it some kind of Doujutsu, do her eyes have special abilities similar to the Sharingan or Byakugan, etc.?


how to use a variable as a part of a field name in mysql trigger declaration

Here is what I want to do (a part of my trigger):  BEGIN DECLARE updatecount INT default 0; declare number int; declare column varchar(10); declare i int default 1; declare j int default 1; while i<=6 do     set column = "num"+i; /*will be num1 num2, so on*/     set number = NEW.@column; /* will represent NEW.num1, num2 so on*/   I know that the last 2 lines are not correct. But I wanted you guys to understand what I want to do. Can anyone tell me the correct syntax? thanks.  EDIT:   what I want to do with this trigger is when a new row added into the resultsTBL, I want to check all the rows in the guessesTBL to find how many of them are same.   For example we have 2 rows in guessesTBL (always in ascending order):  num1 num2 num3 num4 num5 num6  1    5    10   15   20   26  4    8    12   16   25   40   then we add a new row into the resultsTBL (always in ascending order):  num1 num2 num3 num4 num5 num6  1    8    17   20   25   40   after that trigger will compare the new added row with all the rows in the guessesTBL:  for the 1st row the result is: 2 for the 2nd row the result is: 3   pseudocode:  CREATE DEFINER = CURRENT_USER TRIGGER `myDB`.`resultsTBL_AFTER_INSERT` AFTER INSERT ON `resultsTBL` FOR EACH ROW for each field in resultsTBL (num1, num2, ... num6)   number= num1...num6   for each field in guessesTBL (num1, num2, ... num6)     if number == guessesTBL.num1,num2,...num6       counter++


Beamer: How to Disable `\pause` Temporarily

Currently I am preparing a presentation in beamer. I make an extensive use of the \pause-command. However, it would be good to disable \pause temporarily to quickly go through the presentation. Additionally, I would like to send the presentation to members of the audience without all the split frames and without deleting or %-ing the \pauses manually. Does anyone has a solution?


Recently the 2014 edition of the Moto G got the Lollipop update. I wanted to know the exact date on which the 1st Gen Moto G will be getting the update? Also, can flashing the update of the 2nd Gen on the 1st gen prove to be dangerous? Can anyone provide me with a link containing android lollipop for moto G to download?


In Ubuntu version 12.10 in the file manager there were drop down folders What happened to them? Were they removed? if so how may I recreate them?  I just installed UbuntuStudio 14.041 on a Compaq (32bit installation)  UbuntuStudio uses Thunar and XCFE. THere must be a way to add this into THunar. It such a basic feature that has been part of Mac and Windows for over a decade. How can i add/correct this in Thunar.  Ubuntu claims Thunar is light and faster than Nautilus. I tried adding Nautilus, it made such a mess. I had to completely re-install UbuntuStudio 14.04. Right now, I am keeping all my data in an external HD (using Backup)


Any primitive root modulo $p^m$ is also a primitive root modulo $p$

This is the last of the stream of number theory problems I have been looking at that I would like to discuss.     Let $p$ be an odd prime number and let $m$ be a positive integer.   Prove that any primitive root modulo $p^m$ is also a primitive root   modulo $p$.   My idea is as follows: Suppose $r$ is a primitive root modulo $p^m$. Then $r^{p^{m-1}(p-1)} \equiv 1 \mod{p^m}$, and therefore $$\left( r^{p-1} \right)^{p^{m-1}} \equiv 1 \mod p.$$ Can we conclude from this that $r^{p-1}\equiv \pm 1\mod p$, and since $p^{m-1}$ is odd, that $r^{p-1}\equiv 1 \mod p$?  How do I finish?  EDIT: Already answered at  . The chosen solution is very simple: If $r$ is a primitive root modulo $p^m$, then there exists an integer $k$ such that $r^k \equiv a \mod{p^m}$ for any $a$ relatively prime to $p^m$. Therefore $r^k \equiv a \mod p$. This can only be true if $r$ is a primitive root modulo $p$.


Do real matrices always have real eigenvalues?

I was trying to show that orthogonal matrices have eigenvalues $1$ or $-1$.  Let $u$ be an eigenvector of $A$ (orthogonal) corresponding to eigenvalue $\lambda$. Since orthogonal matrices preserve length, $ \|Au\|=|\lambda|\cdot\|u\|=\|u\|$. Since $\|u\|\ne0$, $|\lambda|=1$.  Now I am stuck to show that lambda is only a real number. Can any one help with this?