I'm trying to pass to a constructor class a 2d array  std::array<std::array<int, dimension>, dimension>   I do some search, and i tried to use the template.. But doesn't work  But, my code produce the following error :   Undefined symbols for architecture x86_64:  "state::state<std::__1::array<int, 4ul>, 4ul>(int, std::__1::array<std::__1::array<int, 4ul>, 4ul> const&)", referenced  from:   _main in main-d76757.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)   The code of the main :  int main () {    const int dimension = 4;   std::array<int, dimension> j;   std::array<std::array<int, dimension>, dimension> array;   array[0][0] = 0;   array[0][1] = 7;   array[0][2] = 4;   array[1][0] = 3;   array[1][1] = 8;   array[1][2] = 6;   array[2][0] = 1;   array[2][1] = 5;   array[2][2] = 2;      state t = state(dimension, array);  }   And here the code of the constructor :  template<typename T, size_t N> state::state(const int dim, std::array<T, N> const &array) : dimension(-1) { // DO STUFF  }


How useful are professional society memberships?

En route to academia, are professional society memberships useful? So far, I feel like I have been paying ~$100/year for a few societies (with student discounts), just to receive copies of their monthly magazines that I only end up skimming over once. I get tons of emails that are vaguely aimed towards keeping people up to date with current research, but one can do that by reading papers anyways. So I don't really see a point to being a member.  Does anybody else feel this way? Are there actual benefits to being a member for societies like these?


Seeking package/function in R that can help tag GPS coordinates of fauna sightings to nearest sampling point?

I have 1 dataset of animals sighted walking a survey, and I would like to tag them to the respective sampling points along a transect.   Any idea what function/package in R can do that? Maybe something nearest neighbour related?


Get a column is participating in a primary key or not?

I'm selecting my table schema data like this   SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE,CHARACTER_MAXIMUM_LENGTH FROM information_schema.columns WHERE table_schema = DATABASE() ORDER BY table_name, ordinal_position   I'm getting all column related data in that. How can I get whether a column is participating in a primary key or not with Y or N like this   ColumnName Primary key   t1          Y t2          N


Apache htaccess get subdomain and prepend it to path

this is my first question on ServerFault and I think I couldn't find a similar one.   To the point. I would like to achieve the following using my .htaccess.   subdomaina.example.com/stats/ -> subdomaina.example.com/subdomaina/stats/ subdomainb.example.com/stats/ -> subdomainb.example.com/subdomainb/stats/ subdomainc.example.com/stats/ -> subdomainc.example.com/subdomainc/stats/   Subdomaina,b,c and test.com need to be dynamic and not static.  I know that I should be using the mod-rewrite but I am a bit confused.  I quite unexperienced with apache and .htaccess, so any pointers, clues, and explanation is greatly appreciated.


Beginner: How to complete the induction case in a proof that all multiples are a product of the least common multiple

As a disclaimer, I'm fairly new to higher-level mathematics and this is my first question here, so please let me know if I need to clarify anything.  I am trying to prove that if I have some natural number $x$ that's a multiple of two other natural numbers $a$ and $b$, where $a$ and $b$ are coprime, then it's also a multiple of the least common denominator. Or, alternatively, for any $x$, there exists a $c \ge 1$ such that $abc=x$.  My basic strategy is to do a proof by induction on $a, b,$ and $x$. I am using the Coq proof assistant.  I have formulated it as follows:  $  (x \bmod a = 0) \land (x \bmod b = 0) \land (a \bmod b > 0) \land (b \bmod a > 0) \implies (x \bmod (a b)) = 0$  meaning that if some number $x$ is divisible by both $a$ and $b$` separately and $a$ and $b$ are coprime, then it's also divisible by the least common multiple of them.  I'm left with the following case to prove:  $ S x \bmod (S a * S b) = 0$  with the following premises:  $     a, b, x \in \mathbb{N}  \\     H : S x \bmod S a = 0 \land S x \bmod S b = 0 \land S a \bmod S b > 0 \land S b \bmod S a > 0 \\     IHa : S x \bmod a = 0 \land S x \bmod S b = 0 \land a \bmod S b > 0 \land S b \bmod a > 0 \\ \qquad \implies S x \bmod (a * S b) = 0 \\ $  I'm hoping I'm not missing something really obvious here, but I'm a little confused about how to proceed at this point as this seems rather like a restatement of my original goal.  Again, this is my first post here, so please let me know if I need to edit.  Edit: I almost forgot, here's the proof I have so far in Coq:  Require Import Coq.Init.Nat.  (* Added for convenience - dumb name I know, but basically it says that 0 / x = 0 in every case *) Axiom ZeroDividesAll : forall a,     0 mod a = 0.  (* I'm trying to prove that everything is a multiple of the least common multiple *) Theorem EverythingIsAMultipleOfLCM : forall a b x : nat, (x mod a = 0) /\ (x mod b = 0) /\ (a mod b > 0) /\ (b mod a > 0) -> (x mod (a * b)) = 0. Proof. intros. (* Obviously I'm doing a proof by induction *) induction a, b, x. reflexivity. (* 0 mod 0 = 0 *) apply H. (* The next few cases follow immediately from the premises *) apply H. apply H. rewrite <- mult_n_O. (* This case is 0 mod (a * 0) = 0 - use the fact that a * 0 = 0 first *) reflexivity. (* Now we're left with 0 mod 0 = 0 *) rewrite <- mult_n_O. apply H. (* This also follows from the inductive hypothesis *) apply ZeroDividesAll. (* This is where I get stuck *)


I know how to do it normally, but I could swear that you could fill out out like a[0] = {0,0,0,0}; How do you do it that way? I did try Google, but I didn't get anything helpful.


Is there a real performance gain when creating a view and selecting everything from it, compared to just running the TSQL that first "created" the view? Disconsider the cost of parsing the raw tsql-text.


No dual-boot menu after installing Ubuntu. Windows10 and Ubuntu on different drives

I recently installed Ubuntu 16.10 on my HDD and used the "install alongside" option so I can choose to boot up Windows 10 off the SSD or Ubuntu off the HDD upon startup. After installing, Ubuntu said I needed to restart my system, so I did. But now I'm running into the issue of no dual-boot menu popping up, so I can't choose Ubuntu and it goes straight to Windows10.   Windows10 uses a EFI for startup, so my system is set to UEFI. I'm not sure if this is creating an issue or not. Windows EFI and primary partition are on the SSD. Ubuntu EFI and primary partitions are on the HDD. Any help would be much appreciated.   SOLVED sorta. After Ubuntu installed and restarted, I went into the UEFI settings on startup and applied a supervisor password. This grants you access to a lot of tools and options that were inaccessible. From there I enabled the "open boot menu with f12" option. Also, I added a trusted EFI partition, which had the Ubuntu GRUB option. Now, if I press f12 upon startup, it takes me to a boot manager and I can choose between the windows boot manager or the GRUB. If i don't press F12, it goes straight to Windows10


Why $\Bbb Z$ = (integers) is an integral domain?

Is there a proof for $\Bbb Z$ being an integral domain? Or is it an axiom that if $a*b=0$ then $a=0$ or $b=0$ where $a$, $b$ belong to $\Bbb Z$. Is it so obvious?


Minimal surface and local minimizer of area functional

Let $(M,g)$ be a 3-dimensional Riemannian manifold and $\Sigma\subset M$ a closed surface. Is it equivalent to say:  1) $\Sigma$ is minimal, i.e. its mean curvature identically vanishes;  2) $\Sigma$ is a local minimizer for the area functional?  Does a characterization for minimal surface exists?


Unexpected results for floating point equals

Question is not about why 0.1 + 0.9 is not equals 1.0. Its about different behaviour of a equals.  Can someone explain why examples below works differently.  float q = 0.1f; float w = 0.9f; float summ = q + w;  q + w == 1.0f; // False summ == 1.0f; // True   Why operator == works differently?


How to express in physics if some value depends on a variable? Dependence, or dependency? And what about the plural?

In physics, people very often measure some values which depend on some variable, say the air temperature as a function of time. I think the verb depend is used correctly, since dictionaries define "dependent variables" and "independent variables". The resulting data (mostly shown in graphs) reflect something which mathematicians use to call a function (which would have a rigorous definition), but since the measurement involves often numerous parameters, physicists commonly call the result a dependence. Is this correct? I have not found any dictionary definition of "dependence" which would express this relation between the imposed variable and the result. The plural seems even more problematic. One may measure the air temperature and humidity in parallel. Is it then correct to say that the given graph contains these two dependences? Dictionaries say "dependence" is a mass noun, so there would be no plural. The plural can be found in Wiktionary, but without any explanation. Or should we use the word dependencies? For "dependencies" I can not find a suitable dictionary definition either.


This is what happened:  I was running 12.04.1 and wanted to install 12.10. upgrade, but a fresh install.  When setting up my computer I anticipated for this by dividing my 640GB HD in following partitions: 1. 60 GB for Ubuntu, boot 2. 576 GB for data, mountpoint /home 3. swap, 4GB  The idea was to manually select the correct partition in the installer but I got distracted for a moment and selected the wrong option.  Result: The installer started repartitioning the entire HD.  When I noticed this I interrupted the installer, but upon reboot it was clear that I was too late, no OS to boot to.  I booted from a Gparted Live CD to see if I could recover the data on my previous /home-partition, but it's gone.  Is there any way to recover the lost data? I searched around and read alot about Testdisk, but in all the tutorials I've seen, the set-up has been much easier than what I'm facing.  I've not only lost my partition table, it's been replaced.  Thanks in advance for any ideas that might help!  If extra info is needed, please specify and I will do my best to provide.


Is there a difference between launching an app from /Applications vs /System/Volumes/Data/Applications?

I noticed that since updating to macOS 10.15, I get duplicate search results for some apps (due to the new read-only filesystem).  If we take Spotify as an example, is there any difference between launching either of:   /Applications/Spotify.app /System/Volumes/Data/Applications/Spotify.app   or is the second option semantically equivalent to a symlink?  Clarification My question is not why there is a second folder, or why I get duplicate search results. My question is whether there is any difference in behaviour when looking at how apps from the two file locations are treated by the system (for example, does macOS impose additional restrictions on apps launched from /System/Volumes/Data?), or whether they can be treated as identical.


I'm using the code below to get my equations numbered as (1a), (1b), (1c), (1d) and (1e).  \begin{subequations}   \begin{align}     a+b=c\label{eq1a}\\     b+c=d\label{eq1b}\\     c+d=e\label{eq1c}\\     d+e=f\label{eq1d}\\     e+f=g\label{eq1e}   \end{align} \end{subequations}   If I use the \ref{} command, I'm getting the output as  1a–1e  But, I need to get the final output as mentioned below  1a–e  I have tried many ways, but I can't get the required output. Any suggestion?


Add the description field on the attached media

Well, we want to add the description field on the attached media under the post edit page. I have attached an image for reference. Explanation: Under posts, after adding an attachment if we click on the edit button to edit the details of the attached media we didn't find any description fields as we want to show the "Description" and also want to add the same facility to update that "Description" the same way we update captions and alt text and other details. The procedure should be similar and should follow the same behavior as captions and alt text. We don't want to achieve the solution by playing around with the WP-core. So is there any Hook or way [NO WP-CORE] that can help us to achieve the solution for this problem Make sure that I am asking to add a description on a Pop-up page at the time of editing any media attached to the post. Thank you in advance.


How to find a list of methods used only within tests

I'm refactoring a java project. It seems that there are a lot of code (methods) used only within unit tests.   Is there a tool which could find all those methods?   So I'll need to find a list of methods within com.XXX projects which are:   used only within com.XXX.test.XXX classes not marked with JMX autowired annotation classes themselves are not in com.XXX.test packages   I'd better to have it as a list, so I could attach it into the ticket within task-tracking system (bugzilla, jira)   I think that reflection could be used, but don't like to reinvent the wheel. Maybe there is a lib for that?  PS. there is a note that  question is the same, but there is a slight difference: the code is used, but in XXXTestXXX.java files.


I had contributed to a topic and my reputation under Meta shows as:     Reputation (1)   but there is no record of what I contributed. Clicked on everything possible, but I cannot find it.  Is this a bug?  It gets weirder... Apparently I have a login for Stack Overflow (reputation 149) and for Meta Stack Exchange (reputation 19... now), but not for Stack Exchange and not for Meta Stack Overflow if there is such a thing.  How did this happen?  One clue might be that I had different email addresses in the two accounts - I have since changed the MSE email address to match SO, but I think (could be wrong) that this is irrelevant.  When the two services split, I must have lost MSO and SE... Somehow..


Apparently all objects have wavelike properties, so, if we kick a football (soccer ball, if you must) through a pair of posts, does the ball in any sense diffract?  If this is ridiculous then let me know and I will delete the question.


I'm getting System.FormatException: Input string was not in a correct format when running this method.  The values of the fields:  arrayName = "requester"; fieldList = "\"name\" : \"shimshon\""; // "name" : "shimshon"   public override string ToString() {    var val = string.Format("\"{0}\" : { {1} }", arrayName, fieldList);     return val; }   the expect result of the method is  "requester" : { "name" : "shimshon" }   What is wrong with this format?


Find the number of distinct arrangements of 5 unequal positive integers such that their sum is 20

Let the integers be $n_1, n_2, n_3, n_4$ and $n_5$. It's given in the question that $n_1 + n_2 + n_3 + n_4 + n_5 = 20$.   I thought of taking $n_2$ as $n_1 + a$, $n_3$ as $n_1 + a + b$ and so on... where a, b,... are not equal to 0. So I got this expression:  $5n_1 + 4a + 3b + 2c + d = 20$  After this, I'm not able to continue. How do I proceed?  Thanks in advance.


How are the predictions of the Schwarzschild solution consistent with our observations of black holes?

I am fully aware that there may be many misunderstandings in the following. However, in recent lectures we covered the Schwarzschild solution, and after some interesting mathematics we reached equations for $\frac{dr}{dt}$ and $\frac{dr}{d\tau}$. As far as I know, using the standard coordinates the former of these is the radial velocity of an object as seen in the frame of an observer at infinity, and the latter is the radial velocity in the frame of an object falling into the black hole. These equations could then be integrated, which in the case of $\frac{dr}{dt}$ gave the following solution:  $$\frac{ct}{Rs}\:=\:const.\:-\frac{2}{3}\left(\frac{r}{R_s}\right)^{\frac{3}{2}}-\left(\frac{2r}{R_s}\right)^{\frac{1}{2}}+\ln\left|\frac{\left(\frac{r}{R_s}\right)^{\frac{1}{2}}+1}{\left(\frac{r}{R_s}\right)^{\frac{1}{2}}-1}\right|$$  Giving a relationship between the time taken for the object to fall, as measured by an observer at infinity, and the radial coordinate of the in-falling object. Our lecturer was careful to point out that there is a logarithmic singularity in this relationship as $r \rightarrow R_ s$  - in other words, the in-falling object never reaches the Schwarzschild radius to an outside observer, as it would take an infinite amount of time to do so.   Now, while I think I understand the maths, and also understand that in the frame of the in-falling object, there is no such singularity at $R_s$ and it crosses the event horizon without noticing anything, I am struggling to get my head around how the above equation doesn't have very important consequences.   Say the observer at infinity is us on Earth. If, from Earth, it takes an infinite amount of time for objects to fall into the black hole, how does the mass of a black hole increase to such huge numbers as is found in the centers of galaxies? Surely these supermassive black holes weren't entirely formed at once from some huge star? Does the mass that it gains from in-falling matter just sort of accumulate near the event horizon, and won't this effect start to change the dynamics of the problem dramatically?  Another related problem is how do mergers work if black holes in proximity with each-other should in theory take infinitely long to merge from our perspective? Does the gravitational radiation they release somehow peter out once they get too close for time to pass at any reasonable rate for us? Or are we somehow sure that they really have merged in our frame, and somehow avoided this time singularity entirely?


Getting my luggages at SFO port of entry and not boarding the next flight

I have the following itinerary:   ULN - ICN through MIAT (Mongolian Airlines) ICN - ORD with United and it changes plane at SFO.    Looking through some questions already answered here, it seems that I have to pick up my luggages at SFO before going through Customs and Immigration and then drop them off before exiting.   But I recently decided not to board to my last flight to Chicago and spend a few days in San Francisco. So what are the options that I can pick up all my luggages at SFO?  I hope that I can just walk out right out of SFO having picked up my luggages before the Customs. But I was not sure if this is viable.   Also, when I first check my bags at ULN, would they be able to tag its final destination at SFO, not ORD?  EDIT: Not that I care much, but none of the 9 answers in the possible duplicate question completely answered my question. Otherwise, I would not have asked it.


For all $k > 0,\ k\in \Bbb Z$ . Prove  $$\gcd(k*a,\ k*b) = k *\gcd(a,\ b)$$  I think I understand  what this wants but I can't figure out how to set up a formal proof. These are the guidelines we have to follow


I am trying to clip the outside black boundary in between the TIFF files out.  The problem is the TIFF files being on a layer above the other TIFFs.  This is what causes the border and I want the picture to look consistent all the way through.


Python print json with \u escape, getting wrong decoding

Python 2.7.13 Windows AMD64  Having trouble handling a JSON file using \u Unicode format.  Test Case  import json  testJ = json.load(open("simple.json")) print(testJ['a'])   simple.json  {"a": "\u00AA"}   output  ┬¬   desired output  ª   How do I get the desired output using Python? If I use jq tool  jq ".a" < simple.json   I get the expected output


Partition 256 GB SSD for dual Boot, Windows 10 + Ubuntu 19.04

I plan on installing Ubuntu 19.04 and give it 100 GB of my 256 GB SSD space and leave the rest for Windows as I would primarily be using Ubuntu.     A. Now, as I plan to install a lot of applications in Ubuntu, should I give more space to the / partition than the home partition? (Or maybe even drop the /home altogether?).    B. I have another 128 GB SD card for files like photos, audio and video files. Please suggest me the optimal partitioning for the use case.    C. Also, I have 8 GB of RAM so what should be the optimal swap partition size?    D. How would the distribution be if I choose "install Ubuntu alongside Windows" option?


I talked to her on hangouts and also via texting. She asked me if I had a bank account and informed her that I don't. She then says that her uncle is in Mexico would send a check made out in my name and I would deposit it into the bank and send them the account information. I told them that I'm going to make sure that its legal and if I can get in trouble for cashing a check in my name


Why would I need to instantiate an implementing class with the interface type?

Why would I need to do this, when it is mandatory for implementing class to define all methods of the interface? interface A{  void func1(); void func2();  }  class B implements A{  // must implement fucn1 and func2  }  // What is the point of this?  A a = B b;


I am currently doing a project where I want to use some form of mapping API (Google maps or an open source alternative) that can show the location of simulated wind turbines across Ireland. I am trying to understand what would be the most efficient protocol i could use to display information stored in a monitoring database onto the map as quickly as possible.


Prove that there are infinite number of intermediate fields

Consider the following question:  Let char K = p $\neq 0 $ and assume F = K(u,v) where $u^{p} \in K$, $v^{p} \in K$ and $[F : K] = p^2 $. . Exhibit an infinite number of intermediate fields.  I think that there are $(p-1)^2$ choices and hence the same number of intermediate fields as after that $u^a v^b u^c$ can be written as $u^{a+c} v^b$ and $u^p ,v^p \in K$ . So, How are there infinite intermediate fields.


How do the Hogwarts students fit all of their stuff in their trunks?

Do the trunks have special compartments or something? How do they fit all of their school supplies, casual clothes and personal belongings in them? They have big school supplies like a cauldron and a telescope.  How do they fit all of their stuff in their trunks?


Swipe to delete - but only if have the authority to do so

I'm updating a listview on an Android app. It currently has an iOS-like (but apparently still material) "swipe" to delete functionality, where you swipe over, and then a delete button becomes visible. I am now setting it so that not just anybody can perform the delete action. Only specific users, or the user who created the list item entry.  My question is: is it better to prevent the swipe action if they do not have the authority? Or should I allow them to swipe and then if they tap the delete icon, show an alert dialog?


Ubuntu is gone after reinstalling Windows 7

My Windows 7 got infected with a seriouly bad virus, just because I disabled my anti-virus, so after I re-enabled it I tryed to fight of viruses by doing a start-up scan, but my anti-virus froze and got disabled by the viruse, and all system files also got infected. So I re-installed Windows 7 and now I don't see the Ubuntu boot loader and I don't know what to do. I don't want to have to re-install Ubuntu too.  I'm new to linux, I don't even know what grub is.


OS X El Capitan installation error: AMD-Action:authenticate:SP

When doing a clean re-installation of El Capitan (highest supported version) from a bootable USB on an older Mac (MBP, 15-inch, Late 2008), I get this error:  An unexpected error occured while signing in. AMD-Action:authenticate:SP  The error shows up, while logging in with the Apple ID into the App Store in the installer.  I tried with different Apple IDs,  Also tried running these commands in the Recovery Terminal and restarting: csrutil clear csrutil enable


What is the order of $(\mathbb{Z} \oplus \mathbb{Z})/ \langle (2,2) \rangle$ and is it cyclic?

Evidently, $(\mathbb{Z} \oplus \mathbb{Z})/ \langle (2,2) \rangle$ has order $4$, but I think it's infinite.   The four cosets are listed as $(0,0) +  \langle (2,2) \rangle$, $(0,1) +  \langle (2,2) \rangle$, $(1,0)+  \langle (2,2) \rangle$ and $(1,1) +  \langle (2,2) \rangle$. However, $(2,0)$ doesn't appear to be in any of these cosets. Maybe the answer I'm being told is wrong.


Open source 4-way split screen on macOS?

macOS's  allows a screen to be divided into two, with an application in each part. Is there any open source / free way to do a 4-way split screen (e.g. a screen split into quarters)?  I found two paid programs  and  (both discussed ), and also had a , but I couldn't spot any native way or free software that can achieve a 4-way split screen on macOS. Is there any native/free way to do this?


Why isn't the time-derivative considered an operator in quantum mechanics?

Based on my understanding when doing quantum mechanics we deal with a small set of mathematical objects: namely scalars, kets, bras, and operators. But then in the Schrodinger equation we have this time-derivative thing which looks an awful lot like an operator, but from what I've been told it's not considered an operator. My question, then, is what exactly is a time-derivative in quantum mechanics and why is it not considered an operator.  Edit: The issue that this is a possible duplicate of threads linked in the comments below has been brought up. I saw the threads linked below before I posted this question, and I thought this question was sufficiently different because I'm not interested in a time-operator per se, but rather what $\partial_t$ is mathematically. I've been told it's not an operator in the same way the momentum operator is, but it does look like an operator that scales the state vector proportional to its energy.


ConTeXt and Metafun: Framed enumeration with counter as part of overlay

How do you make an enumeration where the enumeration counter appears within a frame decorated with Metafun?  The idea is to have something similar to an example on pg. 144 of the Metafun manual:    Except that "Zapf (1)" would be a counter rather a manual label.  Here is the code that reproduces the example with the manual frame:  \startuseMPgraphic{FunnyFrame}   picture p ; numeric w, h, o ;   p := textext.rt(\MPstring{FunnyFrame}) ;   w := OverlayWidth ; h := OverlayHeight ; o := BodyFontSize ;   p := p shifted (2o,h-ypart center p) ; draw p ;   drawoptions (withpen pencircle scaled 1pt withcolor .625red) ;   draw (2o,h)--(0,h)--(0,0)--(w,0)--(w,h)--(xpart urcorner p,h) ;   draw boundingbox p ;   setbounds currentpicture to unitsquare xyscaled(w,h) ; \stopuseMPgraphic  \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext[FunnyText][frame=off,background=FunnyFrame] \def\StartFrame{\startFunnyText} \def\StopFrame {\stopFunnyText } \def\FrameTitle#1% {\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut#1\hss}}} \setMPtext{FunnyFrame}{}  \starttext  \FrameTitle{Zapf (1)} \StartFrame Coming back to the use of typefaces in electronic publishing: many of the new typographers receive their knowledge and information about the rules of typography from books, from computer magazines or the instruction manuals which they get with the purchase of a PC or software. \StopFrame  \stoptext   I was able to make enough progress to add an answer to this problem, but I'm still unsure if it's the right way to go.


How to include page numbers in tufte-book citations?

Using the , the tufte-book class replaces the page argument from the cite command with a positioning argument, therefore impariring the possibility of citing pages. Is there a way to go around it an keep citing with pages?  The normal way of using tufte-book without pages is like this:  tufte-mwe.tex :  \documentclass{tufte-book}  \begin{document}  A citation\cite{Tufte2001}.  \bibliography{tufte-mwe}  \bibliographystyle{plainnat}  \end{document}    tufte-mwe.bib:  @BOOK{Tufte2001,     author = {Edward R. Tufte},     title = {The Visual Display of Quantitative Information},     publisher = {Graphics Press},     year = {2001},     address = {Cheshire, Connecticut},     isbn = {0-9613921-4-2} }   Produces this:   But using cite to insert page numbers like this:  \documentclass{tufte-book}  \begin{document}  A citation\cite[p.50]{Tufte2001}.  \bibliography{tufte-mwe}  \bibliographystyle{plainnat}  \end{document}    Doesn't work and produces this:   This is because the tufte-book class expects a measure of position and not a page number (to append to the citation) as an argument.  Thanks.  edit: added mwe and precisions


The PHP version is not correctly detected

I'm running Drush on a host that has multiple versions of PHP installed. By default, php --version would give you 5.2.x, but php53 and php54 are also available. So in my .bash_profile I have alias php='php53' (php --version = 5.3.13), which makes Drush work for some commands.  However, I still get "Your command line PHP installation is too old. Drush requires at least PHP 5.3.2" messages for some very useful commands.  A couple of really annoying instances:   drush pm-update will report that it has backed up and then updated all modules and core successfully, then return the PHP version error and restore all backups. In verbose mode, the command that comes before the error is: php /home/[username]/drush/drush.php  --backend=2 --verbose --root=/home/[username]/webapps/drup --uri=http://[domain name]  pm-updatecode-postupdate 2>&1 drush archive-dump will immediately return the PHP version error   The other commands I have tried so far work fine. I'm not sure why this would be, if Drush is sometimes using the php53 binary, and other times not, or if it just has trouble detecting the version correctly, but some very important features are broken for me.


What is the best way to level up in Clash of Clans

How do I gain levels quickly and effectively?


Seeking 1980s cartoon that had a gas that damaged or mutated robots

In the early 1980s, I remember seeing a western-style cartoon that featured a scientist who had created a kind of gas that damaged robot's machinery.  I can't recall whether the scientist was evil or not.  However, the bad guys (whoever they were) got wind of this invention, and there was a race between to recover the gas cylinder from where the scientist had hidden it.  A robot with the good guys' mission to retrieve it was accidentally exposed to the gas and damaged, and in the confusion, the bad guys got away with the cylinder.  The villains then modified the gas, so that instead of just damaging robots, it "mutated" them and turned them evil.  Then they released the gas in domed city, and all the worker robots started attacking the population.  They people were evacuated and the dome sealed, but I remember the good guys watching video footage of overgrown construction robots trying to break out of the dome.  That's all I remember.  Does anybody know what this show was?


"Need just [verb]" vs. "need to just [verb]"

I wonder if it's okay to use these interchangeably:        You need just accept it.   You need to just accept it.


Topology on cartesian product and product topology

Let X and Y be sets and let $\tau$ be topology on X$\times$Y. Then there are $\tau_1$ and $\tau_2$ are topologies on X and Y , respectively such that $\mathcal B$={U$\times$V : U$\in$$\tau_1$ and V$\in$$\tau_2$} is basis for $\tau$ or not ? If it is true then I want to proof. But if not then I want to example.


Linear combination of two kernel functions

How can I prove that linear combination of two kernel functions is also a kernel function?  \begin{align} k_{p}( x, y) = a_1k_1( x, y) + a_2k_2(x,y) \end{align}  given $k_1(,)$ and $k_2(,)$ are valid kernel functions.  In general to prove any such results involving dot product , cascading.. etc. , what methodology can be followd to prove RHS is a kernel function given k's in LHS all are kernel?


Num1 not defined when i run my file? although it is defined?

Altough Num1 is defined it is displaying an error saying it is not :( i have tried this with and without int() but still produces the same    error.  Just for context this is a calculator.  def main():     Num1 = int(input("Please type First Number:"))     calc = input("x,+,-,/")     Num2 = int(input("Please type Second Number:"))      if(calc == "x"):         multiply() def multiply():     Num1 * Num2


how to teminate AsyncTask request by predefined number of seconds

i am trying to create handler which will terminate the http request in case that the server is not responding over 20 seconds. and i would like to know what is the best approach to do that from the Async task class.  this is my code:  public class DBcontroller extends AsyncTask <List<NameValuePair>, Void, String>{      private static String url = "";     private  Context context = null ;     public AsyncResponse delegate= null;      private PropertyReader propertyReader;     private Properties properties;      public DBcontroller(Context mycontext,AsyncResponse myresponse) {         context = mycontext;         delegate = myresponse;         propertyReader = new PropertyReader(context);         properties = propertyReader.getMyProperties("config.properties");         url = properties.getProperty("url");     }        @Override     protected void onPreExecute() {         super.onPreExecute();         delegate.preProcess();        }      @Override     protected String doInBackground(List<NameValuePair>... params) {         return postDataToServer(params[0]);     }      @Override     protected void onPostExecute(String resStr) {         super.onPostExecute(resStr);         delegate.handleResponse(resStr);      }      private String postDataToServer(List<NameValuePair> list) {         //check         for (int i=0;i<list.size();i++)             Log.d("responseString", list.get(i).toString());         //check         HttpClient client = new DefaultHttpClient();         HttpPost post = new HttpPost(url);         String responseString = null;         try {             post.setEntity(new UrlEncodedFormEntity(list));             HttpResponse response = client.execute(post);             HttpEntity entity = response.getEntity();             responseString = EntityUtils.toString(entity);             Log.d("responseString1", responseString);          } catch (UnsupportedEncodingException e) {             e.printStackTrace();         } catch (ClientProtocolException e) {             e.printStackTrace();         } catch (IOException e) {             e.printStackTrace();         }         if(responseString!= null)              Log.d("responseString2", responseString);         return responseString;     }   }


Texture scaling to real world measurements?

Is there a method to scale a texture in relation to the measurements of the model?  For example, consider an architectural model with a concrete paving. Its image texture is a "real world" photo measuring 3×3 times which makes it 180cm × 180cm. Is it possible to make Blender scale the texture in model-units? Or the other way around: is it possible to automatically scale the UV coordinates so they fit the "real world size"?


If a group and its quotient group are isomorphic, the normal subgroup only has identity element?

Let $K$ is a normal subgroup of a group $G$,  if $G \cong G/K$, $K=\{ e \}$?  Firstly, the converse is true.  If $G$ is a finite group, it is obviously true.  But if $G$ is an infinite group, I've no idea how to prove it or to come up with any counterexample.


I have an OpenLayers 3 application. When using a box to select features from GeoServer WFS layer (request=GetFeature) I get inaccurate results see image below. The layer is served from a PostGIS DB. However I have the same data in a shapefile served via the same GeoServer and when I change to that layer I get only one feature selected in the same example like the picture below.  Any help here would be good as I am not sure where the problem is it seems to me that the problem is in PostGIS but not sure. Any idea even how to troubleshoot this further would help.  BTW. This happens randomly in many locations this is not the only problem spot. And it seems to happen more on as I zoom in closer.    The query passed to PostGIS looks like this:  WHERE  "the_geom" && ST_GeomFromText('POLYGON (   Picture below shows that the query is not doing an intersection (which is what I expect) but rather an intersect with features' extents. The green BBOX selected those three yellow lines above it.   How do I change/fix this?   How do I get GeoServer to use ST_Intersects function?


Why is conservation of angular momentum considered a law?

We know that angular momentum is defined as the cross product of position and linear momentum. By taking the time derivative, we can deduce that the time rate of change of the angular momentum equals the net torque.  Then why is the conservation of angular momentum considered a law, when we can easily show it is conserved when no net torque is applied, by using Newton's laws?  It truly confuses me.


I was thinking of making a commercial application to sell to customers to install on their servers but I wanted to do it with PHP & MySQL.  what should i do to ensure that the source code (& Database) will not be  opened nor copied. The most important thing is the code will be hosted on the customer server. And also how to ensure that the customer will not resell the web application (like copying the code & Db to other people)  Thank you


For $x \in \Bbb C$, let $f(x)=i^x = \exp(i\pi x)$, where $i^2=-1$. Then find the fixed points for $f$.  EDIT: Let for all $n\geq 1$ $$\large a_n=\underbrace{i^{i^{\cdots i}}}_{\text{$n$ times}}$$  My question is, does the sequence of tetrations $\{a_n\}_{n\geq1}$ converge to some complex number? If yes, then what is it?


I have a dell inspiron 17r which has an Intel hd graphics 4400 video card and I get this strange green tint whenever I do a normal boot of Ubuntu 14.04. However, if I connect to hdmi on my tv, the screen color is normal for the tv. Also, if I boot in recovery mode the screen color is normal. Can anybody tell me what's going on? I've update my grub and I still have the same issue. Or is there a way I can edit a script that allows me to start in failsafe graphics mode every time (I'm assuming this is how recovery mode starts)?  HELP!!!!! I CAN NOT USE WINDOWS ANYMORE. I AM AT MY WITS


Inverse of square matrix -- just by calculation

Let $A\in \mathbb R^{n\times n}$ have a right inverse $B\in \mathbb R^{n\times n}$, i.e. $AB=E_{n\times n}$. Is it possible to see only using the definition of the matrix product that $BA=E_{n\times n}$?  Please do not tell me anything about the rank or endomorphisms of finite-dimensional vector spaces or even the Gauss algorithm. Only the definition of $[AB]_{j,\ell} = \sum\limits_{k=1}^n a_{j,k} b_{k,\ell}$ (which, by assumption is $1$ for $j=\ell$ and $0$ else) is allowed.


Is a passport required for transit through Narita, Japan (NRT)?

I am a Vietnamese Refugee and do not carry a Vietnamese passport. I do however carry a Vietnamese Certificate of Visa Exemption (permission to enter Vietnam) and a green card (to re-enter USA).  I have a three hour layover in Narita and would like to know if allowed to transit without a passport.   If you know, please let me know where you found out. I've been searching high and low and calling everyone I could think of and no one has a certain answer.


How many crew members of the Serenity actually read Chinese?

In a  it was asked how many of the crew spoke Mandarin. But how many actually read Chinese as it was used in almost all broadcasts and navigational displays?


I've been looking around StackOverflow and it seems that SSH connections will disconnect when it doesn't see any packets for a while (2 hours?).  Also, I looked in my /etc/ssh/ssh_config file and there doesn't seem to be anything there that would persist my current connection.  My question is: Even after 48 hours, why would an SSH connection persist? (my computer is turned off, but the server that I SSH to is presumably still online)


Catch number of syntax errors in shell script

EDIT: This question was marked as duplicate. While this might be true on a larger scale, the answer provided by Kusalananda gave me a better understanding of my options.  If a syntax error inside a shell script happens, the interpretation of the script isn't necessarily terminated but simply continues at the next line of the script. Is there a way to catch the number of those syntax errors while the script is interpreted?   I would really like to have something like a compiler report, stating the number of errors and warnings after the compiling has finished. Just for linux shell.


I have a hook_form_alter in a module, and it should be firing, but it appears it's not. I've cleared caches and rebuilt the registry. Is there someplace in the database or somewhere else where I can see if my hook is registed? FWIW here is my hook:  /**  * Implements hook_form_alter  */ function my_module_form_alter(&$form, &$form_state, $form_id) {   drupal_set_message($form_id); }


Rhythmbox not shown in gconf-editor (Ubuntu 12.04)?

In Rhythmbox, i'm trying to find out which folders are in the library watch list. According to the help file, you can use gconf-editor to add/remove them at /app/rhythmbox/library_locations. But, in the config editor, Rhythmbox is not listed. I'm using Ubuntu 12.04. Thanks!


I've found  (first answer) this expression: $\mathbb{Z}\left[\sqrt{3}\right]$, where $\mathbb{Z}$ stands for the set of integers. What is the meaning of the expression?


Two fundamental questions about convexity of a function (number2)

The second question is as follows (the first one is ):     Consider a function of two variables $f(x,y)$ on some compact domain. Let it be convex in $x$ and concave in $y$. Is it true that $f(x,y)$ has a uniqe saddle point (stationary point)? Is $(\hat x,\hat y)=\arg \min_x\max_y f(x,y)$, the argument of saddle point, unique?   Is there any role of being strictly concave (or convex) in this case?   My guess is that $f(x,y)$ owns a unique saddle point because of the convexity and concavity of the function. I also guess that if the function is strictly concave-convex, then, the argument of the saddle point is also unique.


"Strict warning: Only variables should be passed by reference in eval()" when concatenating several text fields

I am using Computed Field to concatenate a few text fields into one value. The text fields are pieces of a street address (the street address, the city, the state, and the zip code). When using the code below, I receive the error below.  COMPUTED CODE:         $entity_field[0]['value'] =   array_pop(array_pop(field_get_items($entity_type, $entity,   'field_address'))) . ', ' .   array_pop(array_pop(field_get_items($entity_type, $entity,   'field_city'))) . ', ' .   array_pop(array_pop(field_get_items($entity_type, $entity,   'field_state'))) . ' ' .   array_pop(array_pop(field_get_items($entity_type, $entity,   'field_zip_code')));   DISPLAY CODE:     $display_output = $entity_field_item['value'];   ERROR:     Strict warning: Only variables should be passed by reference in eval()   (line 1 of   /home/mysite/public_html/sites/all/modules/computed_field/computed_field.module(468)   : eval()'d code).   How can I resolve this issue?


I have an unused wire that used to be hooked up to the dryer breaker that is "hanging" in the breaker box. What is the correct way to terminate this wire? I don't want to cut it in case we want to use it in the future and I cant pull it out of the box because its ground wire is wrapped around all the other ground wires making it a pain to extract.   Thanks!


I would like to post my homebrew subclass to get reliable feedback from the d&d 5e community. Do you have any suggestions as to what forums I should look to for that?


How to reverse (or, mirror) texts in latex?

I wanna know if there's any way to reverse texts in latex so that I can use it to print on tracing paper for press printing. For good understanding my question, please see the graphic have I attached with.


Trigonometric Inequality including n terms of sine and cosine

I just came across this:    I would appreciate anyone's help. Thanks!  Edit: Duplicate exists () Sorry about this.


I managed to get $$\sum_{k=0}^n \binom{n+1}{k+1}(-1)^k$$ on the left side, but I don't know how to proceed from here. thanks in advance.


Can we design a truly singleton class in java?

Is there a singleton design which can completely prevent the creation of more than one object?  Asking this question keeping in mind that, in Java, we can recreate 'singleton objects' using serialization-deserialization and reflection.


I'm fairly new all this, but I feel like I'm pretty close to making this work, I just need a little help! I want to create a DLL which can read and return the last line in a file that is open in another application. This is what my code looks like, I just don't know what to put in the while statement.  using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO;  namespace SharedAccess {     public class ReadShare {         static void Main(string path) {              FileStream stream = File.Open(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);             StreamReader reader = new StreamReader(stream);              while (!reader.EndOfStream)             {                 //What goes here?             }         }     } }


How do I add a user to the "sudo" group?

In /etc/sudoers I see this:  # Allow members of group sudo to execute any command after they have # provided their password # (Note that later entries override this, so you might need to move # it further down) %sudo ALL=(ALL) ALL   So how do I add a user to that sudo group?


As a 10k+ user, what should I do with the "too many comments" flag?

Since 10k+ users don't have any control over comments, why am I shown "too many comments" flags in the moderator tools?      What can I do with these flags other than simply re-flagging them for a moderator?  What do moderators do with them?


MLE of $(\theta_1,\theta_2)$ in a piecewise PDF

I am trying to find the MLE of $\theta=(\theta_1,\theta_2)$ in a random sample $\{X\}_{i=1}^n$ with the following pdf $$f(x\mid\theta)= \begin{cases} (\theta_1+\theta_2)^{-1}\exp\left(\frac{-x}{\theta_1}\right) &,  x>0\\  (\theta_1+\theta_2)^{-1}\exp\left(\frac{x}{\theta_2}\right) &,  x\le0\\ \end{cases} $$ If I let $\bar{X}_1$ be the average of the $n_1$ values where $X_1>0$ and $\bar{X}_2$ the average of $n_2$ values where $X_i\le 0$ and $n_1+n_2=n$ Then the likelihood function is: $$L(\theta\mid  X)=\left(\frac 1 {\theta_1+\theta_2}\right)^n\exp\left(\frac{-n_1\bar{X}_1}{\theta_1}+\frac{n_2\bar{X}_2}{\theta_2}\right)$$ but I am having trouble maximizing this function.


I am trying to make initials found in old books transparent. E.g.    The paper should be completely transparent and the dark parts of the print fully opaque. But the parts of the print that are not fully saturated and allow seeing the color of the paper should become semitransparent. In the end I should be able to change the background color (on a different layer, or the background color on a webpage) without there being some yellowish artifacts remaining. Or in other words "print" it on a paper of a different color :-)  I did search and find some tutorials which seemed promising, but somehow they all leave out some crucial detail, which I seem unable to fill in.  I believe I understand what I need to do in abstract terms but can't find and/or use the appropriate tools (alpha channel, histogram and gradient tool seem most promising). I would think that I would start with a diagram with black and white as the extrems, substitute transparent for white and then move a slider to fine tune the transparency of the faded print and make sure all of the print-less paper is fully transparent. I might have to first convert the image to black and white.


Migrate bak-file to older version of SQL server using command line

I want to copy a bak file from sql server 2019 and restore it to a sql server 13.0.5026.0. The conversion from one version to another that I have seen this far is using a . However, I need to do this non-interactively, so I need a command line utility. How?


Why this :$\sum\limits_{n=1}^\infty\frac1{n\sin n}$ is not harmonic series and is convergent?

I'm confused how this series :$$\displaystyle \sum_{n=1}^\infty\frac1{n\sin n}$$ is a convergent series as wolfram show  and it's not harmonic series in the same time .  My question here is:  Why this :$$\displaystyle \sum_{n=1}^\infty\frac1{n\sin n}$$ is not harmonic series and is convergent ?


Multi-page Figure with subcaption package

I have a figure with subfigures defined using the subcaption package (*not the deprecated subfig or subfigure). I need the parent figure to span two pages with two subfigs on each page. I have achieved this using the \ContinuedFloat command, however my subfigure numberings are resetting between pages instead of resuming.  Below is a minimal example:  \usepackage{graphicx,subcaption}  \begin{figure}[H]   \caption{My Figure}     \begin{subfigure}{\textwidth}         \caption{Fig 1}         \includegraphics[...]{something.jpg}     \end{subfigure}     \begin{subfigure}{\textwidth}         \caption{Fig 2}         \includegraphics[...]{something.jpg}     \end{subfigure} \end{figure} % allow break \begin{figure}[H]     \ContinuedFloat % continue from previous page     \begin{subfigure}{\textwidth}         \caption{Fig 3}         \includegraphics[...]{something.jpg}     \end{subfigure}     \begin{subfigure}{\textwidth}         \caption{Fig 4}         \includegraphics[...]{something.jpg}     \end{subfigure} \end{figure}   In this example 'Fig 3' and 'Fig 4' are incorrectly labelled (a) and (b) instead of (c) and (d).  How can I resume the subfig numbering correctly?


Let $a>0$ and $f:\Bbb R\to\Bbb R$ a function such that,$\forall x,y\in\Bbb R,\space 0<y-x<a\implies f(x)<f(y)$. Does $f$ have to be injective or surjective?   This is what I did: Let $\alpha=y-x,\space\alpha\in(0,a)$. Then $f(x)<f(y)\iff f(x)<f(x+\alpha)$ and this holds for any $x\in\Bbb R$ because we can shift the interval $(0,a)$ to any $(x,x+a)$ on the $x$ axis. Therefore, I think, $f$ has to be strictly increasing, so it is injective, i. e., $\forall x,y\in\Bbb R$,$x<y\implies f(x)<f(y)$.  I also think $f$ does not have to be surjective and such counterexample is an exponential function $b^x,b>1$, bounded below by $0$. Is my argument valid and if it is, should I improve anything?


How can I solve this exercise? Design a circuit with 2 input X,Y and 1 output Z, that be able to identify the following sequence of inputs: 00,10,00,10. The output Z must assume the logical value 1 when it detects the sequence shown and return to 0 at the first variation of any one of the inputs X,Y. I have no idea how to get started.  Thank to all!


How do I get boot to work correctly after deleting Ubuntu partitions?

So, recently, I got this old computer. I put Windows XP on it, and that was fine, but last name I put Ubuntu 12.04 on it, but some error about the graphics came up, so I assumed the graphics was just too old. I was planning on removing Ubuntu 12.04 and then maybe installing an older version, or just not getting it. Well, I've never removed Ubuntu off a computer before, so I just assumed that you delete the partitions Ubuntu was on. Apparently not. Now, when I start up the computer, I get command line-like prompt that is something like 'grub>' and says 'filesystem not recognized' or something like that. How do I get it to boot on Windows XP again?


I've been trying for a long time to beat Duke Fishron, but I always keep getting hurt badly and need to retreat.   What I've tried is using the weapons I got from the Moon Lord, flying around it and attacking, and shooting at it with weapons from the Arms Dealer.  I've tried Solar eruption, Vortex Beater, Stardust Dragon Staff, Nebula Arcanum, and the S.D.M.G  Any tips on how I could defeat him?


Failed PhD qualifying exam, must it be mentioned it in SOP? can I ask my advisor not to mentions in recommendation letter?

I failed my written PhD qualifying exam twice in Computer Science from a middle-ranked university. Instead of kicking me out, I can get a terminal master's degree. Please note that this will be my second master's degree.    Now I am planning to re-apply to PhD programs at other Universities. My questions are:   Since I am getting a master's degree, is it okay not to mention about failing in the PhD qualifying exam in statement of purpose (SOP)? Please note that the Graduate committee informed that it will not be reflected in the transcript. If the answer is yes for the previous question, then my advisor is ready to give a strong recommendation, so can I ask him not to mention about failing in the PhD qualifying exam in his recommendation letter?   Please note that the written qualifying exam is about getting good grades in 4 subject areas of Computer Science, it has nothing to do with research. This is one of the main reasons I do not want to mention in SOP, I wanted to highlight my research potential saying that I submitted a 10-page research paper in a top tier conference in one year. I have industry experience of more than 5 years.  Please help, since my goal is to get into academics, help students and do independent research. I want to pursue my dream irrespective of this setback.


Given   $(X, d)$ be a metric space and let $U$ and $V$ be non-empty subsets of $X$. Define   $d(U,V) = \inf\{d(u,v) : u \in U, v\in V\}$.   Is the following statement is true/false     If $U$ and $V$ are compact and disjoint, then $d(U,V) > 0$   My attempt : I thinks  this statment is false  I take  $U= [-1,0]$ and $V= [1,2]$ both $U$ and $V$ are compact and disjoint .  Now for   each $\epsilon >0$ , we have  $\frac{-\epsilon}{2} \in [-1,0] $and $\frac{\epsilon}{2} \in [1,2]$ so that   $d([-1,0], [1,2] \le d(-\frac{\epsilon}{2}, \frac{\epsilon}{2}) = \epsilon $  since $d([-1,0], [1,2])\le \epsilon $ for  every $\epsilon >0$. Now  we conclude that  it is $0$ so its  contradicts that  $d(U,V) >0$  Is its  true ?


Need help in showing that $z\mapsto z^k$ is a surjective homomorphism.

Let $$G=\{z\in \Bbb{C}\mid z^n=1 \quad\text{for some }n \in \Bbb{Z}^{+}\}.$$ Show that for any fixed integer $k>1$, the map $z\mapsto z^k$ from $G$ to itself is a surjective homomorphism but not an isomorphism.  Proving that the map is a homomorphism is easy - for any $z_1,z_2 \in G$ we have $\varphi(z_1z_2)=(z_1z_2)^k=z_1^kz_2^k=\varphi(z_1)\varphi(z_2)$. Proving that it is not an isomorphism is also straightforward - since $\operatorname{ker}\varphi=\{z\in G \mid z^k=1\}$ which is not $\{1\}$, we can conclude that the mapping is not an isomorphism. I just need some hint to show that the mapping is surjective. Thanks in advance!


I would like to use multiple .bib files for my article, such as file1.bib, file2.bib. However, I would like my references not to be separated (such as "Primary sources", "Secondary sources", etc.). These bibliographies just need to be merged into one. One way to do this is to copy-paste these .bib files into one .bib file, and this would solve the problem. However, I would like to keep it split into several .bib files, by topic (file1.bib contains articles on topic1, file2.bib contains articles on topic2, and so on). I tried to do \bibliographystyle{alpha}  \bibliography{file1} \bibliography{file2}  but this just gives me the same bibliography twice!


HP DL140 G3, how to repair after failed BIOS update?

During updating BIOS to the new version (1.18) I got an error that computer can't read rom file. Then after reboot server did not start. Actually it starts but does not show anything, screen is blank, no system beeps or led signals.  The question is, how can I recover it? I can't find any information about.


I've never used blender before and just imported this fbx to find it very strange looking, like something is wrong with the lighting or shadows? Iv'e tried changing a lot of settings but am unsure of how to fix this. Any help would be appreciated.


December 23, 2018  Blender 2.79  Installed the Add on Trainz Exporter and it is on my Blender Window:  I need to Install the TrainzMeshImporter however; to get it to work.  The console will tell you where it goes. I get the message:  Export failed please check CONSOLE Window  I can't find the Console Window no matter what I do.  There is a button in the upper left hand corner that has a Blue Circle I This has a selection Python Console but this is not it.  Any Suggestions?


How can i prove the identity $\sum_{k=0}^{n} \binom{x+k}{k}=\binom{x+n+1}{n}$

I'm having a difficult time understanding how to give a combinatorics proof of the identity $$\sum_{k=0}^{n} \binom{x+k}{k}=\binom{x+n+1}{n}$$


Can't format pen drive, showing write protected

I want to remove write protected from pen drive or just I want to format it but I'm unable to do so.  $ sudo mkfs -t vfat /dev/sdb1 mkfs.vfat 3.0.14 (23 Jan 2023) mkfs.vfat: unable to open /dev/sdb1: Read-only file system   How can I resolve this?


Is a semigroup $G$ with left identity and right inverses a group?

Hungerford's Algebra poses the question: Is it true that a semigroup $G$ that has a left identity element and in which every element has a right inverse is a group?  Now, If both the identity and the inverse are of the same side, this is simple. For, instead of the above, say every element has a left inverse. For $a \in G$ denote this left inverse by $a^{-1}$. Then  $$(aa^{-1})(aa^{-1}) = a(a^{-1}a)a^{-1} = aa^{-1}$$  and we can use the fact that   $$cc = c \Longrightarrow c = 1$$   to get that inverses are in fact two-sided:  $$ aa^{-1} = 1$$  From which it follows that  $$a = 1 \cdot a = (aa^{-1})a = a (a^{-1}a) = a \cdot 1$$   as desired.  But in the scenario given we cannot use $cc = c \Longrightarrow c = 1$, and I can see no other way to prove this. At the same time, I cannot find a counter-example. Is there a simple resolution to this question?


I'm trying to prove whether $\cos(11^\circ)\over \sqrt{1+\sin(15^\circ)}$ is constructible. I suspect it is not, and would like to use the triple angle identity to use RRT and prove there is no constructible root, but to do this I'd need $\cos(33^\circ)$, of which I don't know the exact value. Is there a better way to go about this?


Make text fit box no matter how big text is

I'm having problem trying to fit a long text inside a box. I can't change the size of the box due to client's design specification so I have to get the text to fit the box instead. It can be achieved with html css js or jquery it doesn't matter as long as I get to the desired effect.

     MyNameIs30CharactersLong

     MyNameIsShort

   Here's a screenshot of what I'm trying to achieve:    Here's how it is with a long name:    Thank you for your help!


When is good to bin variables in regression setting?

As discussed , In most cases, bin a continuous variable to discrete one is a bad idea. But when it will be good?   May attempt to answer:   Can I think binning will increase the  of the model? As suggested in this post?    If a variable has some extreme outliers or lots noise (say, income, there are persons make billions, and some data points are incorrect collected and shown as 0), binning might be better?


I recently installed Swift 3.0 on my Ubuntu 16.04, and if I want to access the swift shell, I have to put in      export PATH=/home/thebigfootsdad/Downloads/swift-3.0-preview-1-ubuntu15.10/usr/bin:"${PATH}"   every time I open terminal. Is there any way to make this permanent?   I am not really familiar with command-line, and I would appreciate more simple answers please!  I have gone through most of the threads here on


Prove that : $m_{a}m_{b}m_{c}\leq\frac{Rs^{2}}{2}$

Let $m_{a},m_{b},m_{c}$ be the lengths of the medians and $a,b,c$ be the lengths of the sides of a given triangle , Prove the inequality :   $$m_{a}m_{b}m_{c}\leq\frac{Rs^{2}}{2}$$  Where :   $s : \operatorname{Semiperimeter}$  $R : \operatorname{circumradius}$   I know the relation :   $$m_{a}^{2}=\frac{2(b^{2}+c^{2})-a^{2}}{4}$$  But when I multiple together I dont get simple formulas!  So, I need help finding a solution. Thanks!


So I recently started using bleder and decided to make a Lightsaber, However after a bit of time modeling i found that the end had a slightly black flicker effect, can any fix this please. Thanks -Jake.


How to avoid code duplication for const versions of functions

pointer operator->()   {     return ptr_+buffer_position_;   }    const_pointer operator->() const   {     return ptr_+buffer_position_;   }   So the const overload returns a const pointer (yay) but the two functions do the same thing (boo) how does one avoid code duplication and the ensuing copypasta, while still maintaining const correctness?  (I'm looking at specifically C++98...though a C++11 answer would be pedagogic, as I suspect they did something to solve this problem).


How to change the aspect ratio of a map without the scale changing?

The aspect ratio of the map frame doesn't match the contents, leaving a lot of white space inside the frame, even after I've scaled the contents to fill one dimension. When I drag one edge of the frame to change the aspect ratio, the scale of the content changes. I know I can zoom with the mouse wheel, but the jumps are too big. Is there a way to set the sensitivity of the zoom? Alternatively is there a better way to change the map's aspect ratio so that the scale doesn't change? qgis 2.01 64 bit windows 7


My 1440x900 resolution is not recognized

Today I decided to install Ubuntu 11.10, and it did not recognize my resolution - 1440x900.  This has already happened in other versions of Ubuntu. However, in 11.10 I cannot get this resolved. Can anyone help me?  My PC:   Intel Corporation 82945G/GZ  Proview 19'' 1440x900  Ubuntu 11.10 (oneiric) Kernel Linux - 3.0.0-12-generic   I tried the instructions in .


I have tried understanding how to solve questions of these type using pen and paper, without access to a calculator.  Here's the question:     What is the remainder of $2019^2 + 2019^4 + 2019^6 + 2019^8$ $mod 4$ ?   I know that there's a pattern to these types of questions, but I am not exactly sure how to find it.  I thought about breaking the numbers into smaller numbers that are congruent to them, but I am not sure if that would be of any help.  Any help would be greatly appreciated!


What is the value of $\arctan(1/2)+\arctan(1/5)+\arctan(1/8)$?

What is the value of :   $$\arctan(1/2)+\arctan(1/5)+\arctan(1/8)?$$   I tried to do geometric solution::   Where in the angles we are looking for are shown, but I can't solve it.  Can we use it with this kind of approach? Can someone also post a solution using trigonometric identities?


Programatically Setting environment variable for the machine in java

I would like to programatically add a folder for environment variable path for the machine in Java code.  (similar to using framework method SetEnvironmentVariable in C# )  I would like to know if java provides this facility or if there are java libraries which provide this.  Regards  Rajagopal


How to measure the quality of a USB charging cable?

I have a set of USB cables (data and charge) and I noticed that, for a given charger, the charge time differs by cable.   What would be a good way to measure the charging fitness of a USB cable? Possibly with equipment which is not NASA-grade?  I know that I could measure the charge current for a set of charger and cable but I would prefer to assess the cable alone.   Would this measure be dependent on the charger characteristics? In other words,  are some cables more or less efficient depending on the charger (not taking into account the current the charger can sustain)?


How can I get settings right on my new DSLR for twilight moonsets and moonrises?

I recently got my first DSLR, and am trying to learn the best approach settings-wise for a specific type of photo, namely twilight moonsets and moonrises.  The camera is a Nikon D5600 which came with an 18-55mm lens and a 70-300mm lens; the latter is 58mm in diameter.  I can use the shorter lens, put the camera on auto, point it at the setting moon and get a decent picture, but not that much better--if at all-- than if I took same picture with my Galaxy S8.  I'm not sure I should be surprised by this, since the smartphone camera is probably better optimized for point and shoot mode.  That's all it does, after all.  But I know I should be able to do better with the Nikon.  If I want to ease gradually into full manual mode, which priority mode would it be best to start with?   If I go to full manual, the problem I usually encounter is that the picture is much too dark; far darker than the appearance of the scene IRL.  But I don't know where it would be best to start in trying to improve my results.  Would it be better to start by working with the aperture mode, or shutter speed?  Here are a couple taken with the Samsung.  Notice how in the second shot a jet contrail crosses the moon.      And from the Nikon, first one taken in auto mode and the second in full manual mode.  Notice how much darker the image is here.  IIRC it was shot using an aperture of about f/7, shutter 1/125, ISO in the 1000 range.  No tripod was used.  I'm usually much more fastidious about correcting camera tilt before I show anything of mine to the world, I'm letting it go this time since my question is more about how to handle the hardware rather than how to compose a pleasing image.


This is the content of root's crontab:  0       23      *       *       0-4     /usr/sbin/rtcwake -time `date --date="+16 hours" +"%s"` -m mem   This is set to fire off that command every Sun-Thu at 11pm. The command is essentially a suspend for the next 16 hours while I'm at work to save power. I've test the command with smaller times (30, 60 seconds) and it works. However, when I wake up in the morning and check my machine, it's still running.  Here's what's in the logs:  Jul 24 23:00:01 gallactica CRON[5033]: (root) CMD (/usr/sbin/rtcwake -time `date --date="+16 hours" +")   So does this mean it ran? Why didn't it actually work?


I have a text file like        aaaa     aaaa     aaaa     aaaa     ....  I use the sed to replace the string of "aaaa" with "bbbb", the command is       sed -i "/aaaa/c\bbbb"  mytextfile         but I want the sed to stop processing when it finds first match.The output will be like this       bbbb     aaaa     aaaa     aaaa     ....   Anybody tells how to do that?


How can I install gcc-4.4 on Ubuntu 16.04 for aarch

I've been trying to install gcc-4.4 (needed for compiling old software I use) on a new system that is running Ubuntu 16.04.  The command uname -m gets an answer of aarch64 since the system has 64-bit ARM CPU cores.  I only have access through ssh (no graphical desktop), but I am able to run commands using sudo (such as sudo apt-get install gcc-4.4).  Unfortunately, even looking at answers to similar questions in this forum and spending several hours surfing the web for ideas, I cannot manage to install gcc-4.4.  I'm not a sys-admin or Linux expert, so please be gentle.  I want to learn.  Update:  Here's the error message:  ubuntu@ubuntu:~$ sudo apt-get install gcc-4.4 [sudo] password for ubuntu:  Reading package lists... Done Building dependency tree Reading state information... Done Package gcc-4.4 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'gcc-4.4' has no installation candidate ubuntu@ubuntu:~$


How to write junit for a class having private fields?

I have a class which is used for email validation. The class has two private String fields out of which i have injected the value of one from application.properties.  public class EmailValidation {      private final String someString = "xyz"      @Value("${regex}")     private String emailRegex;      // methods }   public class EmailValidaitonTest {     private final EmailValidation obj = new EmailValidation();     //missing emailRegex }   Now i have to write a unit test for this. This class has no dependency, so  i just decided to use the new operator in EmailValidationTest class for the class object. Now, i can access the String someString but i cannot have the value of emailRegex since it was injected by Spring. How can i set its value in the test class and i want its value to be same as in my application.properties.


Why is the main method in Java always static?

Onetime I forgot to put the static keyword for the main method in my java class. And the program did not work . So the question is why we always need to mark the main method as static?


Came across this article today:  which had the following sentence:  No-one has been arrested and the motive for the shooting is unclear.  screengrab:  I've never seen no one hyphenated like this before. I even had to read it twice just to get it. Why hyphenate no one: no-one?


How to repeat a key in mac while holding down?

I've tried searching for an app or tools that can do this in macOS but I couldn't find any.   There seems to be a key repeat setting in system prefs but it seems to have no effect. For example in notes, if I hold a key it would not repeat?  Ideally I can have the key repeat behaviour on and off as I only want it during the day for work activities


I tried to calculate the last two digits of $9^{9^9}$ using Euler's Totient theorem, what I got is that it is same as the last two digits of $9^9$.   How do I proceed further?


Can a photon be captured in a grid space representation at a fractional Planck position?

Consider a photon, positioned in space in a finite portion of a grid. Any point of the grid is vertically or horizontally aligned, each distanced by a Planck unit.    $l_P = 1.616 199(97) × 10−35 m$  The speed of the photon is, in this grid, $v = l_P/t_P$  The photon is first captured at its original point $A$, when $t = 0*t_P$ and $x_A = 5*l_P$.  It is then captured at point $B$, when $t = 10*t_P$. Logically, the position of point B is $x_B = x_A + 10*l_P = 15*l_P$, and $y_B = y_A$.  This is a two-dimensional representation of the aforementioned grid:    The problem here is the actual definition of the Planck distance unit. By definition, a Planck distance can only have a natural coefficient, which means that the unit cannot have a fractional-represented coefficient with it.  Mathematically, it is possible to divide any unit in half. However, the Planck time unit is calculated using the Planck distance unit as well, which means it cannot be fractional as well.   Since the definition of Planck units describes how they cannot be fractionally split, the photon is never going through the $3.5 * l_P$ mark during its movement. Does that mean that we can define time as a frame cycle, where the fastest frame rate is $1*t_P$, and that the photon basically changes position to the closest Planck distance grid point (without having a transitional point in space and time during the process)? In other words, does the photon even reach point $C$ during the translation from $A$ to $B$?


How do I prove this inequality: $a^2+b^2+c^2 \geq ab+bc+ac$?

How do I prove that for any $a, b, c \in \mathbb{R}$ the inequality $a^2+b^2+c^2 \geq ab+bc+ac$ is true?


Are there any liquids with zero surface tension?

Having read the Wikipedia page on  I'm still not sure if stuff like liquid helium at the lambda point actually have surface tension or not. Is superfluidity the same thing? And are there any liquids with no surface tension at room temperature?


How to show that $\limsup_{n\to \infty}\frac{a_n}{n}\leq \limsup_{n\to\infty}(a_{n}-a_{n-1})$ for any sequence $(a_n)$?

Let $(a_n)$ be a sequence of real numbers. Prove that   $$\limsup_{n\to \infty}\frac{a_n}{n}\leq \limsup_{n\to\infty}\,  (a_{n}-a_{n-1}). $$   If the sequence $(a_n)$ converges, then this is immediate: both sides are $0$. If it is not convergent, how should I approach this problem?


Geometric interpretation of a vector space and subspace?

I understand how to manipulate vector spaces and subspaces and how to prove various statements about them, but I still don't fully understand what they represent geometrically.  I just need an intuitive grasp as to what these are. Is a vector space a geometric area that contains all possible vectors of the field $\Bbb F$? For example, if $V$ is a vector space over $\Bbb R^3$ then does that mean $V$ contains all vectors in three-dimensions that are part of $\Bbb R$? But then what is a subspace of $V$? Would that perhaps be a plane? Would it be a vector space in $\Bbb R^2$?


How to get upright parentheses in the whole document?

My question is, basically, the same as the one in : how do I force all parentheses in my document to be upright, without replacing them with some commands "by hand"?  Unlike the linked question, my main concern are slanted environments (i.e., theorems). At the moment, I'm dealing with elsarticle, which uses \itshape which is not covered by the solutions on above link (and I don't see how I could modify them to do so), nor by the embrac package (explicitly stated in Section 9).  MWE:  \documentclass{article}  \newtheorem{theorem}{Theorem}  \begin{document}  \begin{theorem} I want parenthesis (around this text) to be upright. \end{theorem}  \end{document}   I can, of course, write  I want parenthesis {\rm (}around this text{\rm )} to be upright.   or define some commands for the upright parentheses and use them. However, changing the parentheses in the LaTeX code can lead to errors (for example, missing some of them and introducing inconsistency) and puts a burden of focusing on that detail, instead of the text I'm writing, so I'd prefer some automated way (like the one shown for \emph in the linked document).


Mysql database been hacked. What to do now?

My testing database has been hacked.  I am pretty sure it's hacked by an easily guessed test use admin credential.  After reading  I've got an idea of what to do, but the problem is how to do it.  I have tried looking to see what queries the hacker had used but since the general_log was turned off there isn't a log to see.   So far what I did is remove all unused accounts, set port access on AWS to my computer only.  What/and how could I do to make sure that I didn't leave any vulnerability open for the hacker to use? Also how do I ensure I removed everything the hacker has done without having a log?


Fantasy trilogy: Gill saves world, "in God we Trust" -> "in Gill we Trust"

Back in 1992 my friend Richard recommended a fantasy trilogy with a young man called Gill as the main character. Modern day boy gets transported to another fantasy world etc.. The ending of the book where he triumphs over evil, results in the real world (his world, where he is an unknown hero ) having the text on the U.S. Dollar bill changing from "in God we Trust" to "in Gill we Trust". I borrowed the 2/3 books from the local library, however cannot recall the name.


Let $n\in\mathbb N$ and let $a_1,\ldots,a_n$ be natural numbers smaller than $10^n$. Write each $a_k$ in base $10$ and add $0$'s to the left of each decimal expansion, if needed, so that each $a_k$ is written with $n$ digits. Consider the matrix such that the entries of the $k$th row are the digits of $a_k$ (written in the same order). Let $d\in\mathbb N$ be such that $d$ divides each $a_k$. Prove that $d\mid\det A$.   For instance, suppose that $n=4$ and that your numbers are $3876$, $2784$, $684$, and $8388$, each of which is a multiple of $12$. Then$$A=\begin{bmatrix}3 & 8 & 7 & 6 \\  2 & 7 & 8 & 4 \\ 0 & 6 & 8 & 4 \\  8 & 3 & 8 & 8\end{bmatrix}$$and $\det A=-360$, which is, in fact, a multiple of $12$.  I learned about this problem yesterday. I found it quite cute and I decided to share it with all of you.  Note: I know how to prove it.


Affiliations appear in unspaced italics, possible math mode triggered by breqn package

I recently found out about the breqn package and have been using it profusely. However, I notice that my article's title section is thrown off by this package. Specifically, the affiliation part of my text appears without spacing and the compiler throws a missing $ inserted at the \maketitle line. In constructing an MWE, I see that the breqn package is causing this glitch. How do I resolve this?  \documentclass[% reprint, amsmath,amssymb, aps,floatfix ]{revtex4-2} \usepackage{breqn} \usepackage{blindtext} \begin{document} \title{Sample title} \author{Aritra Das} \affiliation{Dept. of Physics, Indian Institute of Technology, Kanpur, Uttar Pradesh 208016, India} \date{\today} \maketitle \section{Introduction} \blindtext \end{document}    Any help is appreciated, thanks.


Problem statement: I have an external USB drive that won't mount.   Context:   I neither have nor desire access to MS Windows.  See 1.  External USB drive is NTFS formated. There is no RAID. I've been a Linux user for many years and am not afraid of the CLI.  I would rather not wipe it and start from scratch but it isn't critical if I can't avoid it.    Error looks like:  Error mounting /dev/sdc1 at /media/dude/External HD: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000" "/dev/sdc1" "/media/dude/External HD"' exited with non-zero exit status 13: $MFTMirr does not match $MFT (record 0). Failed to mount '/dev/sdc1': Input/output error NTFS is either inconsistent, or there is a hardware fault, or it's a SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows then reboot into Windows twice. The usage of the /f parameter is very important! If the device is a SoftRAID/FakeRAID then first activate it and mount a different device under the /dev/mapper/ directory, (e.g. /dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation for more details.  (udisks-error-quark, 0)


What is the command to remove all files but not directories?

Let's say I have a directory tree like this:  FOLDER:     file1     file2     file3     Subfolder1:         file1         file2     Subfolder2:         file1         file2   If I used rm -r FOLDER/*, everything in FOLDER would be deleted including sub-directories. How can I delete all files in FOLDER and in its sub-directories without deleting actual directories?


Where to get package that has the math script font I want?

even though i was aware of TeX for decades, my only use of LaTeX is here on math-oriented StackExchanges or at Wikipedia, and only to edit equations.  so i downloaded TeXworks and the MiKTeX and found, on Overleaf, a sample TeX file that i was able to add an equation to.  here on the math SE, we have a script font \mathscr{} that makes the correct script version of "F" for the Fourier Transform:  the font i want is \mathscr{F}   But what I seem to only be able to get with either Wikipedia or this basic download of TeXworks (and MiKTeX) running on my PC is \mathcal{F}   However invoking \mathscr{F} in TeXworks causes an error.  The only packages I am aware I am using (from this Overleaf template) is  \documentclass[letterpaper]{article}  %% Language and font encodings \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc}  %% Sets page size and margins \usepackage[letterpaper,top=3cm,bottom=2cm,left=3cm,right=3cm,marginparwidth=1.75cm]{geometry}  %% Useful packages \usepackage{amsmath} \usepackage{graphicx} \usepackage[colorinlistoftodos]{todonotes} \usepackage[colorlinks=true, allcolors=blue]{hyperref}   I have no idea what else I have to get to get the correct script font \mathscr{}


Does destroying a server mean the run is unsuccessful?

Maybe I'm missing this from somewhere, but a situation came up in a recent game that I need clarification on.   The runner plays Dirty Laundry on a remote server with no ICE and only one card installed in the server. The corp, before the runner can declare the run successful, rezzes that card.  That card is Jackson Howard. The corp trashes and removes Jackson Howard from the game, using his ability.   At this point, what happens to the run the runner was on?  The server is technically destroyed.  I get it that the runner can't access any cards at that point, since there is nothing else in the server.  But when is the server considered 'destroyed'?  Immediately after Jackson is trashed?  Or does the runner get to finish their turn, access all the cards in the server (which is 0), and consider it a successful run?  This has implications for run cards, obviously, but it also has implications for cards like John Masanori.  If John gives you a tag on your first unsuccessful run, this is an easy way to tag a runner with their own cards.


Elegantly determine if more than one boolean is "true"

I have a set of five boolean values. If more than one of these are true I want to excecute a particular function. What is the most elegant way you can think of that would allow me to check this condition in a single if() statement? Target language is C# but I'm interested in solutions in other languages as well (as long as we're not talking about specific built-in functions).   One interesting option is to store the booleans in a byte, do a right shift and compare with the original byte. Something like if(myByte && (myByte >> 1)) But this would require converting the separate booleans to a byte (via a bitArray?) and that seems a bit (pun intended) clumsy... [edit]Sorry, that should have been if(myByte & (myByte - 1)) [/edit]  Note: This is of course very close to the classical "population count", "sideways addition" or "Hamming weight" programming problem - but not quite the same. I don't need to know how many of the bits are set, only if it is more than one. My hope is that there is a much simpler way to accomplish this.


$T^*T=TT^*$ and $T^2=T$. Prove $T$ is self adjoint: $T=T^*$

$V$ is an inner product space of finite dimension over $\mathbb{R}$, and $T:V\to V$ a linear transformation which is normal, that is, $T^*T=TT^*$. In addition $T^2=T$.  Prove $T$ is self adjoint, that is, $T=T^*$.  I tried to prove it algebraically by using the inner product but it didn't work for me. Then I tried to prove the statement that $T$ is self adjoint iff $\langle v,Tv\rangle$ is real for all $v$.  I know that $T$ is diagonalizable, therefore there is a basis of $V$ consisting of eigenvectors. In addition every eigenvector of $T$ is an eigenvector of $T^*$. Can I prove that $\langle v,Tv\rangle$ is real only for the vectors in the basis and then it means it is for all $v$?   Any help or further hints are very appreciated.


Rudin against Pugh for Textbook for First Course in Real Analysis

So as I have said before in a previous question, I am taking a first course in Mathematical Analysis, and I'm quite excited. I just found out though that unlike the other professors at my university, my professor is using Real Mathematical Analysis by Pugh. I thought it was rather strange because I have read from so many places that Rudin's text on the topic is "the bible" of mathematical analysis, and also he is the only professor who doesn't use it. So I was wondering what some of you experienced mathemeticians thought of choosing this book over Rudin? Is this book a little easier to use than Rudin's? I have heard the Rudin is quite rigorous.


Kourtney Kardashian said "there's people that are dying Kim" in one of the KUWTK episodes- why did she use there is instead of there are?


Lightning value providers !c. !v. and !m.?

I just checked the Lightning component docs and :     An expression uses a value provider to access data and can also use   operators and functions for more complex expressions. Value providers   include m (data from model), v(attribute data from component), and c   (controller action). This example show an expression {!v.num} whose   value is resolved by the attribute num.   I've never seen {!m.fooBar} where is this used and what kind of Data/information is stored in m? couldn't find anything in google.


Show of a guy from a human evolved future who travels back to 20th century to find other time traveler and save humanity

I don't remember too many details. It was a late 80s early 90's tv show. I watched dubbed to Spanish, but I think it may have been American(?). The guy travels to the 20th century to trap someone(?) and save humanity. I think he comes from 23-25th centuries and human bodies have evolved, making them have an increased heart bit rate and making them more efficient and faster. He is helped but a woman (police?) People are not aware of time travel.


I noticed that you don't get better at sneaking by simply sneaking around anymore (maybe I'm wrong and it just goes really slowly?).   The only way to get better that I discovered was to successfully attack enemies while hidden.  Are there other ways to increase your sneaking skill and what are they?


Menu-driven application using If-Else Statement - Java

I am trying to create a menu-driven application that uses If-Else statement. Unfortunately, it always results in the Else or Exit message. What's wrong with my code? Thank you! package com.company; import java.util.*; public class Main {      public static void main(String[] args) {         Scanner console = new Scanner(System.in);          System.out.print("""                 Good day!                                                          Get to now Java programming language!                 Please enter the letter that corresponds to your choice.                 A. What is Java language                 B. How to display a message                 C. How to get users' input                 E. Exit the program                                                          Choice: """);         String choice = console.nextLine();          while (true) {             if (choice == "A") {                 String WhatIs = "Java is a Object-Oriented Programming Language \n";                 System.out.println(WhatIs);              } else if (choice == "B") {                 String display = "Just use System.out.println \n";                 System.out.println(display);              } else if (choice == "C") {                 String GetUser = "Import the package and use the Scanner method \n";                 System.out.println(GetUser);              } else {                 String Exit = "Thank you for using this application.";                 System.out.println(Exit);                 break;             }         }     } }


Does one have to wear the Sorting Hat to pull the Sword of Gryffindor?

It seems very inconvenient. To get the sword in the situation of pressing need and danger, you first have to decide to wear someone's hat. What are the chances? Was it the original design by Godric Gryffindor? Or can the Hat provide the sword, even if the person is just holding it?


Can I simplify my workflow by shooting in Adobe RAW?

One thing I don't fully understand is why, when I take a photo with a Nikon and import it in Lightroom, the colors immediately appear desaturated and visibly different than what it looked like in the camera. What little I do understand is that it has something to do with Adobe Camera Raw versus Nikon's proprietary raw format.  So I get around that by importing first into ViewNX, which I fully expect to stop working with the latest version of Windows every time I upgrade. From there I export JPGs that have accurate color into Lightroom.  But I'm wondering if I'm missing something obvious that would allow me to ditch ViewNX and just use Lightroom for editing of raws. That Adobe seems to butcher the colors of all my raws drives me nuts, and given my current workflow I'm questioning why I shoot raw in the first place.  If I set my camera to shoot in Adobe RGB then would Lightroom accurately interpret my raw files? I understand there are tradeoffs involved with Adobe RGB when it comes to digital media but there seem to be a lot of unqualified opinions regarding this. I trust you guys though.  So, any advice? I'd like to shoot, import into Lightroom, see the images there as the camera displayed them and do my editing there as well.


What is the exact difference between fluid and responsive design?  I am bit confused about fluid and responsive design. Fluid is the one where we give width in percentages so that design will look good on browsers even if shrink or expand the browser. But what's different about responsive?


How to disable pagebreak on \hline in longtable?  This is an example illustrating my problem:  \documentclass[12pt,a4paper,oneside]{letter}  \usepackage{longtable}  \begin{document}  \begin{longtable}{ | p{5cm} | } \hline Table header\\* \hline Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris pharetra porttitor turpis, id egestas neque congue in. Nam sed lorem lorem, ac tristique tellus. Nunc ornare feugiat orci, a blandit turpis facilisis ut. Aenean pharetra ornare ante. Sed tempus leo in dolor eleifend placerat. Integer at enim augue. Ut nisl tortor, interdum ac porttitor ac, sagittis quis libero. Vivamus nibh metus, ornare vel pulvinar nec, fringilla nec orci. Maecenas mollis nulla a nibh fringilla nec convallis augue varius. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere   cubilia Curae. \\ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris pharetra porttitor turpis, id egestas neque congue in. Nam sed lorem lorem, ac tristique tellus. Nunc ornare feugiat orci, a blandit turpis facilisis ut. Aenean pharetra ornare ante. Sed tempus leo in dolor eleifend placerat.  Integer at enim augue. Ut nisl tortor, interdum ac porttitor ac, sagittis quis libero. Vivamus nibh metus, ornare vel pulvinar nec, fringilla nec    orci. Maecenas mollis nulla a nibh fringilla nec convallis augue varius.   Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere   cubilia Curae. \\ \hline Table header\\* \hline Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris pharetra porttitor turpis, id egestas neque congue in. Nam sed lorem lorem, ac    tristique tellus. Nunc ornare feugiat orci, a blandit turpis facilisis ut. Aenean pharetra ornare ante. Sed tempus leo in dolor eleifend placerat.    Integer at enim augue. Ut nisl tortor, interdum ac porttitor ac, sagittis  quis libero. Vivamus nibh metus, ornare vel pulvinar nec, fringilla nec    orci. Maecenas mollis nulla a nibh fringilla nec convallis augue varius.   Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere  cubilia Curae. \\ \hline \end{longtable}  \end{document}   I'd like to have second header on page 3. I do not control table contents, so I can not do page breaks manually.


I've learnt ibp, substitution.. but it seemed that i cannot just use those to solve the problem..  Please help me..   $$\int\limits_{-1}^{1} \sin(x^3) \mathrm{d}x$$


Passing arguments to CreateProcess() doesn't work in C

I am trying to create a shell that allows a user to input "ping" commands and use CreateProcess() to execute the command based on user input. I am running into trouble getting the ping command to work when dealing with variables. For example the code below works just fine as long as I have the L in front of the string. However, the string has to be given by user input so after some research I ran across a possible substitution of the L cast in the form of a wchar_t variable.  if (strcmp(buffer, "ping") == 0 || strcmp(buffer, "ping &") == 0){         LPCTSTR path = L"C:\\Windows\\System32\\PING.exe";         LPTSTR link = L"-t www.yahoo.com";         CreateProcess(path,             link,             NULL,             NULL,             0,             0,             NULL,             NULL,             &start,             &info);         if (strcmp(buffer, "ping") == 0){             WaitForSingleObject(info.hProcess, INFINITE);         }         CloseHandle(info.hProcess);         CloseHandle(info.hThread);          printf("MyShell: ");         scanf("%s", buffer);   If I do this change, it stops working (console crashes, no output).           wchar_t wideC = "-t www.yahoo.com";         LPCTSTR path = L"C:\\Windows\\System32\\PING.exe";         LPTSTR link = wideC;   I've tried casting different types of variables both in the CreateProcess() arguments and outside. I don't know what else to do. How can I get the user scanf() into a variable that will work as an argument for creating a process?


how to sort a list of key-value stores by a specific key?

suppose the input is like this:   "[{'ability': 18, 'spin': -14, 'strike': 0, 'purity': 5, 'power': 257}, {'ability': -6, 'spin': 147, 'strike': -17, 'purity': 6, 'power': 288}, {'ability': 9, 'spin': 272, 'strike': 10, 'purity': 8, 'power': 256}, {'ability': 0, 'spin': 138, 'strike': -6, 'purity': 19, 'power': 205}]"   I have to sort the input based on the values at the key "ability".  def sort_kvs(lsts):       l = len(lsts)       sort = []       smallest = lsts[0]["ability"]       for i in range (l):         if lsts[i]["ability"] < lsts[0]["ability"]:           smallest = lsts[i]["ability"]           small = lsts[i]           sort.append(small)       return sort    I want the output like this:[{'ability': -6, 'spin': 147, 'strike': -17, 'purity': 6, 'power': 288}, {'ability': 0, 'spin': 138, 'strike': -6, 'purity': 19, 'power': 205}, {'ability': 9, 'spin': 272, 'strike': 10, 'purity': 8, 'power': 256}, {'ability': 18, 'spin': -14, 'strike': 0, 'purity': 5, 'power': 257}]


When should 'the' be pronounced 'thuh' and when 'thee'?  I heard that 'the' should be used as 'thee' before vowels and in some particular cases. All other cases should employ 'thuh'. What are the 'particular cases'?  And when is 'a' pronounced 'eh' and when 'uh'?


Why didn't Voldemort just Kill Harry the old Fashioned way? With a knife or something else?

Is there a reason why Voldemort specifically tried to kill Harry using magic?  What was there that prevented Voldemort from just killing Harry using a knife or some other means?  Death eaters and Voldemort are not the same.


Can I move my downloaded games from PS3 to PS4?

We have a large collection of downloaded games from the store, mainly PSX gen (Crash Bandicoot, Spyro, FF7 etc.) and I was wondering if we can move them/re-download them onto the PS4?


In the exam class, is there a way to keep questions on one page?

Using an exam class, Is there a way to keep questions on one page.  Particularly with multiple choice questions, is there a way to keep a page break from occurring in the middle of the question?


How to prove a Linear Transformation is an identity mapping

Firstly, what's the definition of a identity map? I've thought of one but don't know if it's correct :" $P$ is a identity map if $P(x)=x$ for all $x$ on its domain."  Second, how to prove a projection transformation is an identity map on a specific domain.  More specifically,      Let $P:  V \to V$ be a projection. Show that the restriction of $P$ to $\operatorname{range}(P)$ is the identity map on $\operatorname{range}(P)$.


The set of real numbers is a subset of the set of complex numbers?

So, I was taught that $\mathbb{Z}\subseteq\mathbb{Q}\subseteq\mathbb{R}$.  But since the set of complex numbers is by definition $$\mathbb{C}=\{a+bi:a,b\in\mathbb{R}\},$$ doesn't this mean $\mathbb{R}\subseteq\mathbb{C}$, since for each $x \in \mathbb{R}$ taking $z = x + 0i$ we have a complex number which equals $x$?


I know that I can programmatically create a user using the following code, in Drupal 7.   $new_user = array(   'name' => $name,   'pass' => $sifra, // note: do not md5 the password   'mail' => $email,   'status' => 1,   'init' => $email,   'roles' => array(     DRUPAL_AUTHENTICATED_RID => 'authenticated user',     3 => 'custom role',   ), );  // The first parameter is sent blank so a new user is created. user_save('', $new_user);   What is the equivalent code in Drupal 8?


JQUERY Access to the DOM of external HTML/PHP file, loaded with load()

File 1.php load an external php file (2.php) inside a div called

   I load 2.php (template) using load().  this template contain a line like  all   but when i click "all" the script doesn't work.  if i put   all   inside 1.php all work fine. inside 2.php not.  this is the click function  $('#showall').click(function() {             $( "#myoutput" ).hide();             $('.rowresult').show();         });   How to access to the DOM on an external file?


Include pdf file with different paper size

I'm finishing my master thesis project with latex (A4 paper size) and I need to include a few drawings in pdf (paper size A3), so I tried to use this:  \includepdf[pages={-}, noautoscale]{./files/drawings/file1.pdf}    but the page generated is size A4. Is it possible to have different paper sizes?


How to create an operator to show and select multiple items?

I want to create an Add-on with Python.  It should contain an operator that shows several string entries. Each of them can be selected/deselected individually. This is pretty much what happens with Properties/Texture:    I do not need the icon, but the string and the checkbox. I already have a list of strings to be presented to the user.  Similar controls are used for vertex groups, shape keys, uvmaps.  How can I create my own one?  Thank you  Edit:  the modification to the proposed solution is this:  class ULLibraries(UIList):         def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index):         layout.prop(item, "name", text="", emboss=False)         layout.prop(item, "enabled", text="", index=index)     def invoke(self, context, event):         pass    with following data:  class CustomProp(bpy.types.PropertyGroup):     name = StringProperty()      enabled = BoolProperty()    Result:


Create subdomains on the fly with .htaccess (PHP)

I am looking to create a system which on signup will create a subdomain on my website for the users account area.   e.g. johndoe.website.com  I think it would be something to do with the .htaccess file and possibly redirecting to another location on the website? I don't actually know. But any information to start me off would be greatly appreciated.  Creating a sign up area is not the problem - I have done this many a time. I am just unsure where to start with the subdomain.


!How to properly input this query in wolfram alpha?

The thing I want to input:   $$\frac{1}{n+1} + \frac{1}{n+2} + ... + \frac{1}{2n} > \frac{13}{24}, n>1$$  The best I managed so far:    But it says it's not true. I can do the first step of the proof and it's true (for n=2).    Answer for this problem:    my question is not a duplicate, as it's about wolfram alpha not interpreting this correctly.