Why is Apple hardware test (AHT) not loading when pressing key D on system start?

I purchased a Late-2011 MacBook Pro 15" used a month ago. At the time of purchase, I successfully ran the .  I've since installed a new SSD and aftermarket RAM. The computer appears to be functioning normally (I'm typing this post on it), but I'd like to run the full hardware test to verify everything is OK.  But I can't seem to get it to load into the hardware test.  I've tried holding down D before pressing the power button on as well as right before the grey screen comes up. I'm confused because I've done this before without any problems.  Is there something obvious I'm doing wrong or is there a way I can check for problems that would stop the AHT from starting?    Additional info by @gentmatt:  The last time I have performed the Apple Hardware Test, my MacBook Pro was running 10.7.2. As of today, I'm running 10.7.3.  The AHT loaded even after I had installed my custom SSD and RAM. But not this time.


It's established within the MCU that Mjolnir can sit on a shelf in the helicarrier and can be lifted by an elevator.   (Someone else can edit this question to include references, if they like.)   And obviously it can stick to the ground.   Plus, it is used to pin Loki without crushing him.   So it has the incredible power to "freeze" itself (for lack of a better term)  to various objects and vehicles (elevator, helicarrier, planet).   It other words, it can stick to anything that is stationary in some normal frame of reference for people.   Can Thor stick it to objects that we don't normally think of as a frame of reference, or in a non-vertical orientation? For example, could he stick it to a baseball bat?  A flagpole?   The ceiling?  Hulk?   If not, when does something stop being horizontal?  When does the floor stop being the floor and start being a wall or a pile of rubble?


How is Newton's third law not valid in special relativity while momentum is still conserved?

I'm assuming questions about the third law being invalid in relativity have already been asked on this site, but I'm specifically asking about how momentum is still conserved inspite of it. Consider only two particles in the universe. In some reference frame, they're moving with velocities $v_1(t)$ and $v_2(t)$ at time $t$. The relativistic momentum is: $$\gamma (v_1(t))m_1v_1(t)+\gamma (v_2(t))m_2v_2(t)$$ The relativistic momentum after a small time $dt$ is: $$\gamma (v_1(t+dt))m_1v_1(t+dt)+\gamma (v_2(t+dt))m_2v_2(t+dt)$$ If both these quantities are same, we can set them equal. After setting them equal, we get: $$\gamma (v_1(t+dt))m_1v_1(t+dt)-\gamma (v_1(t))m_1v_1(t)=-(\gamma (v_2(t+dt))m_2v_2(t+dt)-\gamma (v_2(t))m_2v_2(t))$$ Dividing both sides by $dt$ and letting $dt\rightarrow 0$, we get: $$\frac{d(\gamma(v_1(t))m_1v_1(t))}{dt}=-\frac{d(\gamma(v_2(t))m_2v_2(t))}{dt}$$ $$F_{12}=-F_{21}$$ So what's wrong with the above? Edit- That other question is about General Relativity and the answers do not address the computations I've provided here. I want to know what's wrong with this specifically Edit- After reading the other links, what I got is that the momentum conservation, as I've stated stated it in this post, is incorrect. This is because I did not account for the momentum of the field. So that means that Newton's third law is also correct if we extend the notion of force from particle-particle interactions to particle-field interactions. Is this correct? And in what sense do fields carry momentum? What is the mass and velocity of fields?


apache: prepend a string literal to a TestString in a RewriteCond for mod_rewrite

So I can clearly do this:  RewriteCond %{REQUEST_FILENAME}\.php -f   But I cannot do this:  RewriteCond some_directory/%{REQUEST_FILENAME}\.php -f   Furthermore, this also fails:  RewriteCond prefix%{REQUEST_FILENAME} -f   Presuming of course those files exist in the directory (duh!).  Apparently, I can't prepend literal strings to TestStrings in RewriteCond stanzas in Apache 2.4  Anyone know how to do this? Thanks.  Note: Prepending string literals is done in the same way as appending.  I had misattributed the problem as a limitation of the syntax.  The truth was that "REQUEST_FILENAME" expanded to the full unix path, not the HTTP requested path, as I had originally thought.  tl;dr There is no special syntax provision for prefixing string literals; they work the same way they do in shell scripting, prefix%{variable}postfix is valid syntax.  Thanks for your time.


Cardinality of sets of natural functions, with conditions

Convention: $0\in\mathbb{N}$. Find the cardinality of a) $A=\{f:\mathbb{N}\to \mathbb{N}\mid \forall n, f(n)=f(n+1)+f(n+2)\}$ b) $B=\{f:\mathbb{N}\to\mathbb{N}\mid\forall n, f(n)\ge f(n+1)\}$  My attempt: a) We have $|A|\le |\mathbb{N}^{\mathbb{N}}|=2^{\omega}$. Now, I'm looking for some set $C\subseteq A$ with $C=2^{\omega}$, but seems to be tricky. b) Again, $|B|\le 2^{\omega}$. All constant functions are contained in $B$ as well, so $\omega\le |B|$, but this does not help. I believe $C=\{f:\mathbb{N}\to \{0,1\}\mid f(0)=1\}\subseteq B$. Again, $|C|\le 2^{\omega}$. Define $\phi: \{0,1\}^{\mathbb{N}}\to C: f\mapsto \phi(f)$, where $\phi(f)(n)=f(n)$ if $f(0)=1$ and $\phi(f)(n)=1$ otherwise. This function is not injective if the latter assignment is defined. How can I change that? Thanks.


representation of the elements in compositum of fields

For fields E and F, is the every element of EF, compositum of E and F, could be represented by the finite combination(addition, multiplication, inverse) of the finite element in E and F?


How to get the Image alternative text on PDF document alternative text field through the latex code

I have mentioned my MWE below. I will try to get the alternative text output for each figures. So, i am using the pdfcomment package and my TeX code is used to pdftooltip{\includegraphics{example-image-duck}}{Alternative Text}. MWE: \documentclass{article} \usepackage{graphicx} \usepackage{pdfcomment} \begin{document} \section{PDF comment alt text not working on PDF accessbility alternative text} \begin{figure}[!h] \centering\pdftooltip{\includegraphics{example-image-duck}}{Alternative Text} \caption{Sample Figure Cation.} \end{figure} \end{document}  The alternative text is working good through mouse over action. But, the PDF accessibility is not supported because the alternative text to be reflected in the form field text. My requirement is the text to be filled alternative text field. I check this action through Adobe Professional 11 for the following method Accessibility - Add Tags to Document -> Touch Up Reading Order  I have attached the image screenshots for your clear understanding. Alternative text field is empty:  Form text field contains the text:  Could, you please advise how to get the text in alternative text field through latex code.


axiom of choice is equivalent to "the product of nonempty collection of nonempty sets is nonempty"

Axiom of choice:\ If {$A_\alpha \vert \alpha \in A$ }  is an indexed family of nonempty pairwise-disjoint sets, there is a function $f$ from $A$  to $\cup A_\alpha  $ such that $f(\alpha )\in A_\alpha$, for each $\alpha \in A$ From this definition I need to obtain an equivanlence to the product of nonempty collection of nonempty sets is nonempty, but I have a problem in the part of pairwise disjoint sets. Help!


Defining $\mathbb{C}$ without defining $\mathbb{R}$

To define $\mathbb{R}$, one approach is to start with $\mathbb{N}$ and then systematically introduce $\mathbb{Z},$ $\mathbb{Q}$, and then $\mathbb{R}$. Alternatively, we define $\mathbb{R}$ using its axiomatic definition that it is a complete ordered field. And then, we can construct $\mathbb{N}$, $\mathbb{Z}$ and $\mathbb{Q}$ within $\mathbb{R}$.  Now, $\mathbb{C}$ is introduced in the first way, by making $\mathbb{R}^2$ as a field. Can we follow the latter approach of defining $\mathbb{C}$ axiomatically, and then construct $\mathbb{R}$ inside it?


Is there a difference between the two sentences in meaning or syntactical correctness? Analyze, in your own words, the difference between the authors. and Analyze in your own words the difference between the authors.


How can I add four spaces before each lines of programs code in terminal

I usually go to stackexchange when I face programming terminal and I spend most of time trying to append four spaces before my pasted programming code.  Is there any faster way to do it from a terminal? What would you do?


Cite paper with 2 authors with the same surname as "Surname and Surname", not "A. Surname and B. Surname"

I am writing a document where I need to cite a paper by two authors who share a surname (they are, in fact, married). Biblatex is currently introducing their initials in the citation, but astronomy convention is to just cite their surnames.  My MWE illustrates the issue. I need to maintain their initials in the bibliography, but cite them as "Strom and Strom (1994)" in the body of the text. Is there a simple way to do this?  \begin{filecontents}{\jobname.bib} @article{Strom1994,   author =  {{Strom}, K.~A. and {Strom}, S.~E.},   title =   {Astro Paper},   journal =   {A\&A},   year =    {1994}, }  \end{filecontents} \documentclass[11pt]{article} \usepackage[style=authoryear,backend=biber,uniquelist=false]{biblatex} \addbibresource{\jobname.bib} \begin{document} \textcite{Strom1994} \printbibliography \end{document}


How to add newlines into variables in bash script

When I do   str="Hello World\n===========\n"   I get the \n printed out too. How can I have newlines then?


I trying to create a circuit with only one 555 to send HIGH on output(3) for very short time, like 200ms, then set LOW for something like 20~30 seconds.  Then I'm just need turn on circuit, then:  a) fast HIGH (~200ms) b) long LOW (~20-30s)  I already able to make a "default" 555 circuit with stable HIGH/LOW in same timing (1000ms/1000ms), but I'm getting trouble to make this with different HIGH and LOW timmings.  Thanks.


Is this possible or something we're all waiting on?  When I go to slide a vertex along an edge (G,G) I can't snap it to another vertex along that line (from a different mesh).    -James F


Why isn't $B = \{x \in l_{\infty} : \| x \|_{\infty} \leq 1 \}$ a compact metric space?

I have thought about an example of Cauchy sequence for which every subsequence has no limit in $B$, but I wasn't able to find one.


Let $f:[a,b]\to\mathbb{R}$ be differentiable and $f'$ is continuous. Suppose $f(a)=f(b)=0$, show that  $$\max_{x\in[a,b]}|f'(x)|\geq\frac{4}{(b-a)^2}\int_a^b|f(x)|dx$$  My approach. For any $x$, by Taylor's theorem there is $\xi\in(a,x)$ s.t.  $$|f(x)|=|f(a)+f'(\xi)(x-a)|\leq\max_{x\in[a,b]}|f'(x)|(x-a)$$  Hence   $$\int_a^b |f(x)|dx\leq\max_{x\in[a,b]}|f'(x)|\int_a^bx-adx=\frac{(b-a)^2}{2}\max_{x\in[a,b]}|f'(x)|$$  I can only get this, and I don't know how to obtain $\frac{(b-a)^2}{4}$.


I've completed the game, and have been given the option to start a new playthrough in "Hero Mode." I know that in Hero Mode, the damage dealt by all enemies is multiplied by four, but are there any differences other than that? For example, have any of the puzzles or boss fights been changed, or are there any exclusive secrets?


generate Keynote presentation from text or Markdown?

Is there a way to automatically generate a Keynote presentation from a source file written in text format, Markdown format, or org-mode?   I know that Pandoc and other tools can generate HTML-based slideshows from Markdown. But Keynote allows you to put all your speaker notes to yourself in "Presenter View," which allows you to have a detailed view of your slideshow + notes on your laptop, and project a clean presentation that is not cluttered up with all your speaker notes.   (Whereas with HTML presentations, since there's only one window, you either have to put your speaker notes in the presentation slide itself, or put your speaker notes elsewhere.)   So can I generate a Keynote presentation, or at least a barebones one with slide headlines, from another source?  Example  # A headline  ![some image](http://google.com/image.jpg)  Some text here.  # A headline  ![some image](http://google.com/image.jpg)  - bullet point - bullet point  # A headline  ![some image](http://google.com/image.jpg)  Some text.   > Speaker notes.


How can you define distance in QGIS Multiple ring buffer?

I am trying to create multiple buffers around point data. I need to crate buffers of 10 miles, but I cannot find a way to define this. I have tried using both the multiring buffer plugin and the multi-distance buffer plugin, but both of these are not producing the doughnut style rings, but instead just fill the map. I have limited the attribute table to the 10 ring and this still fills the table, so I can only assume the problem is with not being able to state I want miles. Is there a way to define the distances needed?


Where to find flights statuses by airport for a given day?

On November 23, 2018 I had a flight from KRK (Krakow, Poland) to KBP (Kiev, Ukraine) via Ryanair, flight no. FR 6640. The flight was canceled due to bad weather conditions on KBP airport. Now, I'd like to submit for a flight compensation basing on EU261 and I'm looking for more information on the flight statuses that day/time at given airport, i.e. KBP.  How to find a historical and free of charge data of flight statuses per airport? I was looking for such data but ended up with paid options.    EDIT: This is not a duplicate of  The mentioned question asks about particular flight and that one is about airport. Also, sources given in the accepted answer provides paid historical data. The 3rd link is a non-existing page.


How to copy from current clipboard selection to terminal with a command and without mouse

Thank you for your support. I wish to make a bash script that uses the latest text copied and currently in clipboard.


When $(x^m-y^n)$ is a prime ideal in the Ring $R[x,y]$?

Let $R$ be an integral domain, I want to know the condition for $n,m$ when $(x^n - y^m)$ is a prime ideal in the ring $R[x,y]$.  The followings are my trial Since $R$ is an integral domain, $R[t]$ is also integral domain. I can define ring homomorphism $\Psi : R[x,y] \rightarrow R[t]$ such that $x \mapsto t^m, y\mapsto t^n$. And if I can make $\operatorname{Ker}(\Psi) = (x^n -y^m)$ then it is done  via 1st isomorphism theorem with $R[t]$ is an integral domain. So my problem changed to find the condition of $\operatorname{ker}(\Psi) = (x^n -y^m)$. One direction is easy. $\Psi(x^n - y^m) = (t^m)^n - (t^n)^m =0$. The other directions seems unclear to me. i.e., I want to find the condition $\operatorname{ker}(\Psi) \subset (x^n -y^m)$. I know $(x^3-y^2)$ is a prime ideal so it seems $(n,m)=1$.. but not sure of proving this in general.


I have created two test documents.  Here's foo.tex: \documentclass{article} \usepackage[T1]{fontenc} \begin{document} Gödel \end{document}  And here's foo2.tex: \documentclass{article} \usepackage[T1]{fontenc} \begin{document} G\"odel \end{document}  They were both compiled with pdflatex.  The resulting PDFs look the same and "feel" the same:  In both, SumatraPDF will find the search string "Gödel".  In both, I can copy the word and paste it into a text editor.  If I type "Gödel" into the search box of Windows, it finds both PDFs. However, if I compare the PDFs with diff, it turns out they are not identical.  What is the difference?  Is there a reason to prefer one version over the other? EDIT: I was asked to clarify the question.  My concern was not whether the files looked the same, so the old question about comparing the visual appearance of two PDFs didn't really help.  My concern was whether the files behaved in the same way, e.g. if the ö would really be identified as umlaut-o by search engines and so on.  I was wondering whether \"o would insert a "real character" or whether it would rather compose something out of different glyphs.


Status of submitted paper changed - why?

Two months ago, I submitted a (mathematical) paper to a journal. On the journal's website, there is a status concerning the paper, e.g. "Rejected", "Awaiting reviewer selection" and so on.  About two weeks ago, the submitted paper's status was "Awaiting reviewer assignment", and then it changed to "Awaiting reviewer selection". This seems more like a backtrack in terms of statuses rather than a step forward to get the paper reviewed (correct me if I'm wrong).  Now my question is:  What could be the reason for that step back in terms of statuses?  (I always thought that if somebody declines to review the paper for some reason, then it will be rejected?)


If we are handed the presentation $\langle i,j,k \mid i^2=j^2=k^2=ijk \rangle$ and nothing more, can we deduce that this is the quaternion group?

If we are handed the group presentation $\langle i,j,k \mid i^2=j^2=k^2=ijk \rangle$ and nothing more, can we deduce that this is the quaternion group?   Nothing in this presentation tells us that $i^2=j^2=k^2=ijk=-1$ and that $i^4=j^4=k^4=(ijk)^2=1$. Can we conclude these relations from the relation given in the presentation?


How to replace string from previous line using \r (Python)

I'm attempting to make a countdown timer starting from 60 seconds. My only problem is that when I run the function, the program prints the code like so:  60  59  58  ... etc  How would I go about replacing the 60 from that first line and put the 59 in it's place without printing 60 lines?  Here's my code:  from __future__ import division import sys, time   def countdown():     seconds = 60     while seconds >= 0:         print seconds         sys.stdout.flush()         time.sleep(1)         seconds -= 1


What schemas are needed for the website?

I am creating a schema for a website and I don't know what kind of schema is required.  At the moment, I only have schema for business information on homepage.  What other types of schema do I need to set. And does placing multiple schemas count as spam?  Thanks for any ideas


Is there a possibility of seeing a graph of a question's views over time?

I'm not sure if this is possible architecturally, but when judging whether to set a bounty and how much it should be, it would be nice to see the impact based on our previous questions. If you're not visiting the site throughout the day, there is no way to tell how effective that bounty might be--particularly for increasing traffic. There is a similar question with adding and removing tags that increase the visibility in the right places, and the effect on views that may have.


A matrix with the property $\mathrm{tr}(A^{m})=0$ for every $m$ is nilpotent?

Let $A\in M_{n}(\mathbb R)$ and $\mathrm{tr}(A^{m})=0$ for every positive integer $m$. Is $A$ nilpotent? Is $A^{2}-I$ invertible?


Can I set the default browser differently for different websites?

I have the following browsers on my phone:   stock Dolphin Mini Opera Mobile Firefox   I don't want to set a catch-all default because some pages render better on some browsers than on others.  When I click on a link on a non-browser app (e.g. google search or google reader) it asks me which browser to choose (as expected).  Can I set a default browser for some pages and a different default for others?


How can I have total protection of a lens from fungus?


I am trying to build the following dynamic programming table in LaTeX. How would I do this?

How would I go about building something like this? I have no clue.


Why would a scientist or mathematician want to publish a paper under the Creative Commons CC BY licence?  This licence allows the work to be modified.  Why would you want to allow a scientific paper to be altered?  Yet Arxiv at  seems to offer only licences that allow changes.  Similary Nature Communications at :  "Nature Communications articles are published open access under a CC BY license".  The CC licences that do not allow change are the ones with ND (no derive). So the natural choice would seem to be either BY-ND or BY-NC-ND. Can anyone shed light?


Is there a way to adjust the formatting of the date/time in the GNOME 3 login screen and desktop?

I'm specifically looking to change the formatting in two places:  On the desktop, the date/time reads "Sat 21:05". I would like it to read "23-Jul-11 21:05" or "23 Jul 11 21:05". In other words, I want to change the display of the day of week to display the day, short month name, and short year.  On the login screen, the date/time reads "Sat 9:06 PM". I would like to change it to either the same as the desktop ("23-Jul-11 21:05" or "23 Jul 11 21:05") or the preferred display of the full date in the format ("Saturday, 23 July 2011 21:05") where the full day, date, full month, full year, and time (in 24-hour format) is displayed.  I don't see any options to adjust this. I would suspect it's possible, but I'm not sure what config file it would be in or what options I would adjust.


How can I find the points at which two circles intersect?

Given the radius and $x,y$ coordinates of the center point of two circles how can I calculate their points of intersection if they have any?


Food safety of cooked Lasagna that has been left on a counter and uncovered for 18 hours. What is the proper amount of time it can be left out of frig, and safe to eat as a leftover the next day.


Why constructors are pass by reference in Java?

In java all methods are pass by value.But today i learnt that constructors are pass by reference.  // Attack the internals of a Period instance Date start = new Date(); Date end = new Date(); Period p = new Period(start, end); end.setYear(78);  // Modifies internals of p!   This works and is able to edit the private fields.  What is the reason of this decision? or am i missing something?


Being Force-sensitive definitely helps if you are a pilot or Podracer and some of the best like Anakin and Luke definitely were. Furthermore, Qui-Gon Jinn, albeit probably exaggerating a bit, admitted:     Qui-Gon Jinn: You must have Jedi reflexes if you race pods.   This can be interpreted as: If you survive long enough in Podracing, you must either have excellent reflexes equivalent to those of a Jedi or you must be Force-sensitive.  Now, in the Phantom Menace we see another top Podracer and very skilled pilot, namely Sebulba, so my question is: Is Sebulba Force-sensitive?


I have a server running with Ubuntu 12.10. But now I am unable to update because I need to install update-manager-core which is not possible because my version is no longer supported.  Is there a way to upgrade my server to a newer, supported version or should I let it running as it is (only web- and fileserver).


What do people mean when they put a subscript in a partial derivative

One definition of temperature I have seen is   $$T= \left(\frac{\partial E}{\partial S}\right)_N.$$  While $E, S, N$ each has clear meaning (internal energy, entropy, number of particles), I don't know how to interpret the subscript $N$.  Do I take an average among all particles or is there any other meaning?


If two charged bodies are connected by a string will the tension be F or 2F?(F is the force of repulsion between them)


"Member for today" sounds just wrong. Let's think of something better

I believe many will agree that "Member for today" sounds just wrong.        My suggestions to replace it:   Member for less than 24 hours Joined today (instead of the whole line)   Any better ideas? Reasons to keep the existing wording?


How to randomly teleport players using command blocks?

I want to teleport a player randomly in a 10,000 block radius when they step on a pressure plate. How do I do this?


Whenever I lock my screen (using command+control+Q), the display goes to sleep within about 5 seconds. How can I prevent this?  This happens while plugged in, and my screen is set to never go to sleep while on power:    Even if I wasn't plugged in, on battery life, the screen should go to sleep within 2 minutes, not 5 seconds:    I'm on High Sierra 10.13.2.  edit: I gave up on locking with cmd+ctrl+q and just went with enabling my screen saver and setting the system to require a password on screen saver wake.


jquery event not registered to dynamically added elements

This may be a duplicate question but i can't solve this problem.  navbar.php:
 Create New User
   and in my main php file i enclude navbar.php as follow.   <?php $this->load->view("includes/headTag"); ?>         <?php $this->load->view("includes/dashboard_navbar.php"); ?>     <?php $this->load->view("includes/sub_dashboard.php"); ?>     <?php $this->load->view("includes/main_dashboard.php"); ?>           <?php $this->load->view($path); ?>      <?php $this->load->view("includes/footerScripts.php");?>        now using a test.js file i change the value of $path and load a new file. The problem is jquery events are not registered to file contents and html elments added dynamically.  I know about   $("parent-selecter").on("event","child-selecter",callback(){});  but here i'm totally confused what to do. Should i use something like  $("body").on("event","child-selecter",callback(){});   or?  Any help is appreciated


ShowWindow fails to focus on Win10 Calculator app

My laptop has a button to run calculator, but each time I press it, it spawns a new process instead of focusing on an existing one. I've decided to write a small application to focus on calculator's window if it exists or spawn a new one.  #include "pch.h" #include <iostream> #include <Windows.h> #include <WtsApi32.h>  HWND find_top_window(DWORD pid) {     std::pair<HWND, DWORD> params = { 0, pid };      BOOL bResult = EnumWindows([](HWND hwnd, LPARAM lParam) -> BOOL     {         auto pParams = (std::pair<HWND, DWORD>*)(lParam);          DWORD processId;         if (GetWindowThreadProcessId(hwnd, &processId) && processId == pParams->second)         {             SetLastError(-1);             pParams->first = hwnd;             return FALSE;         }          return TRUE;     }, (LPARAM)&params);      if (!bResult && GetLastError() == -1 && params.first)     {         return params.first;     }      return 0; }  /// int main(int argc, char* argv[]) {     LPCWSTR szProcessName = TEXT("Calculator");     WTS_PROCESS_INFO* pWPIs = NULL;     DWORD dwProcCount = 0;      if (WTSEnumerateProcesses(WTS_CURRENT_SERVER_HANDLE, NULL, 1, &pWPIs, &dwProcCount))     {         for (DWORD i = 0; i < dwProcCount; i++)         {             if (wcsstr(pWPIs[i].pProcessName, szProcessName) != NULL)             {                 std::cout << "Found!\npid: " << pWPIs[i].ProcessId << "\n";                  HWND hWnd = find_top_window(pWPIs[i].ProcessId);                  std::cout << "hwnd:" << hWnd << "\n";                  if (hWnd != 0)                 {                     ShowWindow(hWnd, SW_SHOW);                     //ShowWindow(hWnd, SW_RESTORE);                 }                  break;             }         }     }      if (pWPIs)     {         WTSFreeMemory(pWPIs);         pWPIs = NULL;     }      return 0; }   For some reason, it fails to ShowWindow - window is not being shown. Need help on this one - I do not know why it fails.


How do I remove my kitty from my head and feet in mo' creatures?

While playing with the Mo' Creatures mod in Minecraft, I picked my kitty up on my head and it wouldn't get off. Then I right clicked it while shifting and it got off, but got stuck on my feet. Eventually it will go back on my head. How do I get it off??


Write cycles material node output to image file

How can I write output of a Node/Node Group in Cycles Render to the file (PNG or something else)? I saw a special File Output Node, but I can't find in Search ShiftA).


Change the status of toggle using jquery

I am trying to change the status of toggle switch using jquery but not success. this is the code of jquery  $('#bandwidthcap').checked='false';   and I tried using this way   $('#bandwidthcap').attr('checked','false')   this is the code of html   <input type="checkbox"  name="bandwidthcap" id="bandwidthcap" class="switchery" data-color="primary"/>


Is a warp drive faster than a hyperdrive?

What's faster: a warp drive from Star Trek, or a hyperdrive from Star Wars?


Which, if any, C++ compilers do tail-recursion optimization?

It seems to me that it would work perfectly well to do tail-recursion optimization in both C and C++, yet while debugging I never seem to see a frame stack that indicates this optimization. That is kind of good, because the stack tells me how deep the recursion is. However, the optimization would be kind of nice as well.  Do any C++ compilers do this optimization? Why? Why not?  How do I go about telling the compiler to do it?   For MSVC: /O2 or /Ox For GCC: -O2 or -O3   How about checking if the compiler has done this in a certain case?   For MSVC, enable PDB output to be able to trace the code, then inspect the code For GCC..?   I'd still take suggestions for how to determine if a certain function is optimized like this by the compiler (even though I find it reassuring that Konrad tells me to assume it)  It is always possible to check if the compiler does this at all by making an infinite recursion and checking if it results in an infinite loop or a stack overflow (I did this with GCC and found out that -O2 is sufficient), but I want to be able to check a certain function that I know will terminate anyway. I'd love to have an easy way of checking this :)    After some testing, I discovered that destructors ruin the possibility of making this optimization. It can sometimes be worth it to change the scoping of certain variables and temporaries to make sure they go out of scope before the return-statement starts.  If any destructor needs to be run after the tail-call, the tail-call optimization can not be done.


What is the simplest method of inter-process communication between 2 C# processes?

I want to create a communication between a parent and a child process, both written in C#. It should be asynchronous, event-driven. I don't want to run a thread in every process to handle the very rare communication. What is the best solution for it?


Is Einstein's Special Relativity completely inclusive of Newton's 3 laws of motion?

Relativity has always been explained to me (in books I've read, etc) as a superset of newton's laws - that is; it encapsulates all of Newton's mechanics in addition to other effects (observer effect, time dilation, space-time geometry, etc).   I can kind of imagine 2 of Newton's 3 laws of motion to be incapsulated within Einstein's Special Relativity, but the one about "for every action there is an equal and opposite reaction", I'm struggling to find a place for that within Special Relativity.   Does this sit outside Special Relativity's explanatory power or is it inferred within somehow?


How to show that upper triangular matrices form a subgroup?

Let $A$ be the group of invertible $2\times 2$ matrices with real entries. Let  $$B = \left\{\begin{pmatrix} a & b \\ 0 & d \end{pmatrix}\mid ad \not=0\right\}.$$   Show that $B$ is closed under multiplication. Show that $B$ is closed under inverse. Write a matrix in each left coset of $B$ in $A$. Is the set of left cosets infinte or finite?   I know that $B$ is a subgroup of $A$ if 1 and 2 are true. I also know that $1$ is asking to show that if $C$ and $D$ are $2\times 2$ matrices belonging to $B$ then I need to show $CD$ does also. I do not know how to start.


I have searched the whole internet including reading everything on google/askubuntu/all ubuntu communities), tried all the possible solution and still didn't figure it out (but I am not google so my indexing and searching algorithm skills might not be that good)   anyways to the point. I am trying to run apt-get update and then apt-get upgrade.   I get the following error:  Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies:  libnvidia-ifr1-390 : Depends: libnvidia-gl-390 but it is not installed  libnvidia-ifr1-390:i386 : Depends: libnvidia-gl-390:i386 but it is not installed  nvidia-driver-390 : Depends: libnvidia-gl-390 (= 390.87-0ubuntu0~gpu18.04.1) but it is not installed                      Recommends: libnvidia-gl-390:i386 (= 390.87-0ubuntu0~gpu18.04.1) E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).   then i ran apt --fix-broken install .. and got these results  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following additional packages will be installed:   libnvidia-gl-390 libnvidia-gl-390:i386 The following NEW packages will be installed:   libnvidia-gl-390 libnvidia-gl-390:i386 0 upgraded, 2 newly installed, 0 to remove and 9 not upgraded. 4 not fully installed or removed. Need to get 0 B/29.1 MB of archives. After this operation, 147 MB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 298882 files and directories currently installed.) Preparing to unpack .../libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_i386.deb ... diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340 dpkg-divert: error: mismatch on package   when removing 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 by libnvidia-gl-390'   found 'diversion of /usr/lib/i386-linux-gnu/libGL.so.1 to /usr/lib/i386-linux-gnu/libGL.so.1.distrib by nvidia-340' dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_i386.deb (--unpack):  new libnvidia-gl-390:i386 package pre-installation script subprocess returned error exit status 2 Preparing to unpack .../libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_amd64.deb ... diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340 dpkg-divert: error: mismatch on package   when removing 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 by libnvidia-gl-390'   found 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340' dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_amd64.deb (--unpack):  new libnvidia-gl-390:amd64 package pre-installation script subprocess returned error exit status 2 Errors were encountered while processing:  /var/cache/apt/archives/libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_i386.deb  /var/cache/apt/archives/libnvidia-gl-390_390.87-0ubuntu0~gpu18.04.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   i tried all the tricks like apt clean/remove/dist upgrade/whatever apt i found on the net without luck.  any help is really appricated.


Using ISERDESE2 for maximum data rate of 640Mbps

I want to deserialize data out of a LM98640 which data rate is configurable from 40 Mbps to 640 Mbps, i will use an FPGA of series 7. But looking at the datasheets i don't know which frequency parameter to look for to choose the right FPGA. Frequency of BUFG? or the PLL? MMCM?


System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER on a test class

System.DmlException: Insert failed. First exception on row 0; first   error: CANNOT_EXECUTE_FLOW_TRIGGER, The record couldn’t be saved   because it failed to trigger a flow. A flow trigger failed to   execute the flow with version ID 301a00000004WPm.  Contact your   administrator for help.: [] Stack Trace:   Class.UCaseTests.testMethod1_UCase: line 53, column 1


Sql injection and how to validate it in php

Is the following code vulnerable to Sql injections and how to validate it ?    $query=("select * from table2 where username = '$username'and password='$password'"); $result=  mysqli_query($connect, $query);        $row=  mysqli_fetch_assoc($result);     if  ($username==$row['username']&&$password==$row['password'])     {         header('location:header.php');//to go header         } else {     header('location:insert_p.php');}


If a tunnel is dug by some people along the diameter  of earth and then a ball is thrown through it starting from North Pole  to  South Pole  whether it            A) stops at center                                    B) comes to the other pole and stop          C) goes out of tunnel.                             D) it just moves up and down.


How can I see who recently viewed my Facebook profile?

Is there any way we can know who viewed our profile recently on Facebook?  I remember Friendster had (has?) this function, but I'm not sure whether Facebook does.


First of all, I'm complete linux noob. Please keep explanations simple )  I'm using 14.10 (Utopic unicorn,  I believe) on Virtualbox. I've run into cascade of problems with JDK installation (inability to fetch some archives), which led me to run apt-get update. It fails in a similar fashion, not being able to download some packages (some of them do come through).   Quick run around here led me to believe that the problem lies in sources.list. I need some help with either correcting it, or generating anew. I've tried to use repogen.simplylinux.ch, but it doesn't seem to work with 14.10.  Help plz :P


Hi, I want to convert the comma separated nvarchar to int list in sql

I want to convert the comma separated nvarchar to int list in sql.How I can achieve that?


A point 'P' is picked uniformly at random inside a regular hexagon. Find the probability that the point P is closer to the centroid than the sides.  I came to know from this site that if that's a equilateral triangle, the formula is =3^(-1)–3^(-2)–3^(-3) But how can I use this formula when the figure is regular hexagon ?


How to delete a pointer in C++ properly?

I'm new to C++ and I have a question.  Lets assume you declared the variable x using the following code:  MyClass *x = new MyClass();   After using this variable, I no longer need it.  Among the following propositions, what would then be the preferred course of action and what's the difference?   Call free(x); Call x->~MyClass(); Call MyClass::~MyClass(p); Call delete x;   Can someone help me to understand this?  Thanks In advance.


If $|G| = p^n$ then $G$ has a subgroup of order $p^m$ for all $0\le m <n.$

Prove that if $|G| = p^n$ then $G$ has a subgroup of order $p^m$ for all $0\le m <n.$   Since $G$ is of prime-power order I know $|Z(G)| \ne e$ so there is an $a\in Z(G)$ with order $p$ such that $p \mid |Z(G)|$. Now, the subgroup generated by is normal since it's a subgroup of the center. How can I get this normal subgroup to be less than $n$?


Prove the determinant of a 2x2 block matrix can be opened with the regular determinant formula

Let $A, B, C, D \in M_n(F)$, such that $C$ and $D$ are invertible and $CD=DC$. Prove: \begin{vmatrix} A & B \\  C & D \end{vmatrix} = $|AD - BC|$ What is the direction? Thanks.


An inequality concerning a particular function of two variables

How do you prove that ${x^y+y^x>1}$ if ${x,y>0}$ and both real? I saw a related problem on a Web puzzle page and it appears that the above statement is true when examined graphically in the unit square using a computer package like Mathematica. The result is obvious outside the unit square. I tried very hard to obtain an analytical proof (over several days) using my background in undergraduate mathematical analysis. Unfortunately I found the problem seems to be quite slippery - there are one or two bogus solutions on the Web that I found and discovered to be incorrect.


I have a table (core_customer_information) and I want to create a SQL query in php that uses the variable $code and updates the activated field in my table.   $code = mysqli_real_escape_string($conn, $_GET['code']);   $check = mysqli_query("SELECT * FROM core_customer_information WHERE activation_code='$code' AND activated='1' ");           if ( mysqli_num_rows($check) == 1)          {             die ('The account has already been activated');          }         else          {             $activate = mysqli_query("UPDATE core_customer_information SET activated='1' WHERE activation_code='$code'");             echo ('Your account has know been activated <br>');              echo $code;          }   First of all, I check whether the activated is equal to 1, in which case the account is classed as activated, and if not, I then create an UPDATE query to update the activated field of this class.   My problem is that the query isn't updating my table and I'm unsure where the problem is at.   I would appreciate if someone could take a look for me please.


Brother Printer DCP-J140W is not getting installed on Ubuntu 13.10

I am new to Ubuntu & have installed 13.10 amd64 version. Please explain me easiest way to install driver for my printer DCP-J140W step by step. Thanks


how to quickly reboot from OSX to Windows and back

From Windows back to OSX is fairly easy.  What I would like is a few less steps to get from OSX to Windows.  Currently I launch system preferences -> startup disk - then select the bootcamp partition and press restart.  Being completely new to OSX it seems to me that a one-click action on the dock should be possible with some sort of automation scripting.  Howerver I know nothing about OSX (yet) and how that works. First, is such a thing possible, and second please provide some tutoral links for such automation system.


A more succinct expression for "The day before yesterday"

Is there a more succinct expression for "the day before yesterday"?   In German for example, gestern = 'yesterday.' The prefix vor roughly means before, so logically, vorgestern means 'the day before yesterday.'   Similarly, morgen = 'tomorrow', the prefix über roughly means over, so again, übermorgen means 'the day after tomorrow.'  (In Mandarin Chinese also you have respectively 前天 & 後天.)  Presumably, there are also similarly logical ways to say "the page after the next" or "the paragraph before the last", etc.   Are there no similarly succinct, and graceful, expressions in English?


I want to plot these two stacked bar plots as a subplot in one figure next to each other here is the code and my current output    \begin{figure}[htbp]  \centering  \subfigure[Weight comparison]{\begin{tikzpicture}  \begin{axis}[ylabel= Weight (tonne) ,ymin=0,ybar stacked,bar width=1cm, y tick label style={/pgf/number format/fixed,  /pgf/number format/1000 sep = \thinspace % Optional if you want to replace comma as the 1000 separator}, xtick=data,x=3.1cm,enlarge x limits=1,area legend, symbolic x coords={Hybrid fuel cell , 4-stroke system} , legend style={draw=none, legend columns=-1}, width=3cm, height=9cm, legend pos=north west, font=\small]  \addplot coordinates {(Hybrid fuel cell,0.375) (4-stroke system,0)};  \addplot coordinates {(Hybrid fuel cell,8.885) (4-stroke system,0)};   \addplot coordinates {(Hybrid fuel cell,3.9) (4-stroke system,0)};  \addplot coordinates {(Hybrid fuel cell,0) (4-stroke system,13.064)};   \legend{FC, battery, Motor, DE} \end{axis} \end{tikzpicture}}  \subfigure[Volume comparison]{\begin{tikzpicture}  \begin{axis}[ylabel= Volume ($m^{3}$) ,ymin=0,ybar stacked,bar width=1cm, y tick label style={/pgf/number format/fixed,  /pgf/number format/1000 sep = \thinspace % Optional if you want to replace comma as the 1000 separator  }, xtick=data,x=3.1cm,enlarge x limits=1, area legend, symbolic x coords={Hybrid fuel cell, 4-stroke system} , legend style={draw=none, legend columns=-1}, width=3cm, height=9cm, legend pos=north west, font=\small]  \addplot coordinates {(Hybrid fuel cell,0.66) (4-stroke system,0)};  \addplot coordinates {(Hybrid fuel cell,4.44) (4-stroke system,0)};   \addplot coordinates {(Hybrid fuel cell,11.12) (4-stroke system,0)};  \addplot coordinates {(Hybrid fuel cell,0) (4-stroke system,28.424)};   \legend{FC, battery, Motor, DE}  \end{axis}  \end{tikzpicture}}  \caption{Weight and volume of hybrid fuel cell system compared to 4-stroke diesel engine system}  \end{figure}


Open-source functional testing automation tools for testing Silverlight based applications

I am looking for an open-source functional testing automation tool that supports testing of Silverlight based applications.  To be more specific, the tool should be able to recognize objects within the Silverlight applications.  I have found a question that talks about , but I would like to ask for help in dealing with similar testing automation experience on Microsoft Silverlight.


type detector `hasNestedType` not compiling?

I am trying to make a meta function which tells me if a type T has a member type typename T::X.  My luck so far was inspired by :  #include <utility> #include <type_traits>  struct A {using X = double;}; struct B {};  template <typename T, typename = int> struct hasX : std::false_type {};  template <typename T> struct hasX<T, decltype(T::X{}, 0)> : std::true_type {};   int main()  {    static_assert(hasX<A>::value,"Should have has X");    static_assert(!hasX<B>::value,"Should NOT have X"); }   However it does not compile, and I am wondering what the problem is? Why is the comma operator in decltype(...) not working like I want [returning 0 if T::X succeeds (sfinae) -> making it a int -> true]


I have a google account based on an email name that I don't really like(used native spelling instead of the English one and now live abroad). I have LOTS of things tied to it though, (Android, drive etc) plus apps that login with Google authentication.  I exclude 3rd party apps that used directly the email for making an account, since not much can be done for that.  I would like to start using a new email with a better name for everything, or have both accounts kind of managed in parallel, without need to think which of the two I am really using.  It must be such a common need, but can't find anything conclusive online... Please help :)


Are Groups or Sketchup-like components feasible in Blender?

Apart from testing it myself, I've seen a few posts  and , including from Sketchup users like me, sort of circle around this topic but never ask this question directly. How can I overcome these problems in DupliGroups or Collection Instances?  moving its origin seems to require moving to World origin (and using up a layer for clarity) <=> linked meshes have their own local origin which I can move data around in Edit Mode (easy enough)  It is impractical to link up DupliGroup data to previously created meshes because the origin mismatch as above, and the mesh data that remains in it and needs to be deleted somehow  Linked meshes don't have the above two problems (can be 'blocked in' and then detailed up all at once) but I can't add objects to them, only faces. Say I'd like to add handles as linked meshes, because handles are used elsewhere in the model too.    How feasible would it be to make a linked object type with deeper hierarchy? Say an object that would look at its children and simply make every other instance have the same children. It would also mean dragging and dropping in outliner would be the simplest way to manage it by the looks of it.


What does the asterisk mean after a filename when you type `ls -l`?

I've done an ls -l inside a directory, and my files are displaying like this :   james@nevada:~/development/tools/android-sdk-linux_86/tools$ ll total 9512 drwxr-xr-x 3 james james    4096 2010-05-07 19:48 ./ drwxr-xr-x 6 james james    4096 2010-08-21 20:43 ../ -rwxr-xr-x 1 james james  341773 2010-05-07 19:47 adb* -rwxr-xr-x 1 james james    3636 2010-05-07 19:47 android* -rwxr-xr-x 1 james james    2382 2010-05-07 19:47 apkbuilder* -rwxr-xr-x 1 james james    3265 2010-05-07 19:47 ddms* -rwxr-xr-x 1 james james   89032 2010-05-07 19:47 dmtracedump* -rwxr-xr-x 1 james james    1940 2010-05-07 19:47 draw9patch* -rwxr-xr-x 1 james james 6886136 2010-05-07 19:47 emulator* -rwxr-xr-x 1 james james  478199 2010-05-07 19:47 etc1tool* -rwxr-xr-x 1 james james    1987 2010-05-07 19:47 hierarchyviewer* -rwxr-xr-x 1 james james   23044 2010-05-07 19:47 hprof-conv* -rwxr-xr-x 1 james james    1939 2010-05-07 19:47 layoutopt* drwxr-xr-x 4 james james    4096 2010-05-07 19:48 lib/ -rwxr-xr-x 1 james james   16550 2010-05-07 19:47 mksdcard* -rw-r--r-- 1 james james  205851 2010-05-07 19:48 NOTICE.txt -rw-r--r-- 1 james james      33 2010-05-07 19:47 source.properties -rwxr-xr-x 1 james james 1447936 2010-05-07 19:47 sqlite3* -rwxr-xr-x 1 james james    3044 2010-05-07 19:47 traceview* -rwxr-xr-x 1 james james  187965 2010-05-07 19:47 zipalign*   What does that asterisk mean?  I'm also unable to run a particular file, as follows:   james@nevada:~/development/tools/android-sdk-linux_86/tools$ ./emulator  bash: ./emulator: No such file or directory   EDIT : I'm trying to get Eclipse to use emulator, but it keeps complaining the files does not exist, yet it is here?


Movie where Earth is conquered and humanity are cavemen slaves

I saw this movie a while back. I don't remember how it starts, but from where I remember watching it, it may have not been too far from the start. Apparently, Earth has been conquered by some alien empire or something and humanity are basically cavemen being used as slaves. From what I remember, the main antagonist alien is seen taking one of the slaves to a room where a machine is used on him to make him smart; this is apparently a big no-no so the main antagonist and his sidekick have to keep it quiet. The idea was that by making one of the slaves smart, it could increase the work output of the others. Apparently the antagonist is using the slaves on Earth to gather gold bullion  which is apparently still very valuable to the aliens but he's doing it illegally (not the slave labor; that's apparently ok). The protagonist who had the machine used on him becomes the intermediary between the slaves and the aliens and begins teaching the other slaves. I remember him teaching them mathematics and I remember him saying that it was universally accepted (I think he may have been referring to algebra or trigonometry). At some point he becomes aware that they are slaves and organizes a plan to free not only his fellow slaves but the Earth. Some escape and find an old museum which has old flight simulators, and shows that humanity wasn't always a slave race and that it may have been modern times in which Earth was invaded (i.e. no lasers or starships). I think they also find Fort Knox as there is a huge collection of gold bricks and weapons. The protagonist comes up with a plan to destroy some sort of teleporter the aliens use to transport stuff to and from Earth, however that alone wont be enough as they could fight back, which will be bad for humanity, which is still undeveloped. So the plan also includes using the teleporter before destroying it to to transport and detonate a nuclear warhead on the alien home world which apparently cripples any attempt to immediately send a fleet but also as a show of strength. After executing their plan, the main antagonist is captured by the humans and as an insult is locked in a cage surrounded by the gold he sought. If I recall correctly the place is set to detonate as to destroy the precocious gold and that will be used against the aliens should they mobilize a fleet in the future (i.e. attack us and we destroy Earth's supply of gold). The antagonist's side kick for some reason I remember as a big black man from whom the antagonist had removed his hand at some point and also apparently the antagonist was cruel to him. After the antagonist is locked up, he is trying to appeal to his sidekick's loyalty, however the sidekick takes the humans' side, I'm also getting an image that apart from treating him kindly the sidekick's missing hand was restored.


I have to serialize around a million items and I get the following exception when I run my code:  Exception in thread "main" java.lang.OutOfMemoryError: Java heap space     at java.util.Arrays.copyOfRange(Unknown Source)     at java.lang.String.<init>(Unknown Source)     at java.io.BufferedReader.readLine(Unknown Source)     at java.io.BufferedReader.readLine(Unknown Source)     at org.girs.TopicParser.dump(TopicParser.java:23)     at org.girs.TopicParser.main(TopicParser.java:59)   How do I handle this?


How rare are magic items in D&D5e? How often do a bandit drop a +1 sword or how often can the party find a bag of holding? After reading though the DMG, I cannot find anything about how many items a party of four should have at lvX and so on.  I have previously played (as a player, not DM) D&D4e, where Magic items feels a lot more common.


please i need help i am writing this code to be able to display my execution time anytime i run a program but i usually get different time even when its the same input  after importing all this      import java.io.BufferedReader;     import java.io.FileReader;     import java.io.IOException;       /** Class KnuthMorrisPratt **/     public class Knuth1     {         /** Failure array **/         private int[] failure;         /** Constructor **/         public Knuth1(String text, String pat)         {             /** pre construct failure array for a pattern **/             failure = new int[pat.length()];             fail(pat);             /** find match **/             int pos = posMatch(text, pat);             if (pos == -1)                 System.out.println("\nNo match found");             else                 System.out.println("\nMatch found at index "+ pos);         }         /** Failure function for a pattern **/         private void fail(String pat)         {             int n = pat.length();             failure[0] = -1;             for (int j = 1; j < n; j++)             {                 int i = failure[j - 1];                 while ((pat.charAt(j) != pat.charAt(i + 1)) && i >= 0)                     i = failure[i];                 if (pat.charAt(j) == pat.charAt(i + 1))                     failure[j] = i + 1;                 else                     failure[j] = -1;             }         }         /** Function to find match for a pattern **/     private int posMatch(String text, String pat)         {             int i = 0, j = 0;             int lens = text.length();             int lenp = pat.length();         while (i < lens && j < lenp)             {                 if (text.charAt(i) == pat.charAt(j))                 {                     i++;                     j++;                 }                 else if (j == 0)                     i++;                 else                     j = failure[j - 1] + 1;             }             return ((j == lenp) ? (i - lenp) : -1);         }         /** Main Function **/         public static void main(String[] args) throws IOException         {     //i think its here were i get the input             BufferedReader br = new BufferedReader(new InputStreamReader(System.in) ));             System.out.println("Knuth Morris Pratt Test\n");             System.out.println("\nEnter Text: ");             String text = br.readLine();             System.out.print("\nEnter Pattern");             String pattern = br.readLine();                 double starttime = System.nanoTime();             Knuth1 kmp = new Knuth1(text, pattern);                 double endtime = System.nanoTime();                 double executiontime = (endtime - starttime )/1000000000;                // System.out.printf("%.4f","Execution Time = "+ executiontime + " Seconds");                System.out.print("Execution Time = ");                System.out.format("%.4f", executiontime);                System.out.print(" Seconds");               // System.out.println(starttime);               // System.out.println(endtime);                  //I love programming with JAVA and Php. It’s fun and interesting.         }     }   this code will check an input strings and pick out the unique word and the try to also display the execution time for the program... what i really want now is to make sure the execution time remain the same when i input the same input.


We've had Sake chilling in our fridge for about a year now. It has been opened. Is this still safe to drink or is it time to throw it out?


Windows 10 occasional stuck at boot BEFORE spinning dots

I have a problem where sometimes, when I start my computer it won't boot past the windows logo - the spinning dots don't even show up. Usually, a power down and power up again solves it - but sometimes it happens more than once in a row. And sometimes it doesn't happen at all.   I seem to remember something like this being a problem with Windows 8/8.1 too, and back then it was because of issues with USB 3 devices. But I have tried all combinations of disabled/enabled USB xHCI and eHCI devices that I can think of, and updates all of the USB drivers.   I can't find ANY log info or any errors in event log of what is going wrong when it doesn't boot. Is there any way to log boot info that early in the boot process?


Probability: Are disjoint events independent?

I just read that disjoint events, A, B, if, $\mathbb{P}(AB) = 0$ are independent. This really frustrates me.   My teacher stated otherwise - $\mathbb{P}(AB) = 0 \iff A \cap B = \emptyset \implies \mathbb{P}(AB) = 0 \ne \mathbb{P}(A)\mathbb{P}(B)$ because $\mathbb{P}(A)$ and $\mathbb{P}(B)$ are not empty (does the latter come from the definition of independent events?).  Could somebody clear this for me?


df -h yielding what looks like a strange output: /home, /dev, and /net have 0% free space

I have a MacBook Pro with 1 TB of disk space.  When I run df -h I get the following:    It tells me I have 702 GiB available on / which I suspect is true -- but nothing on /home.  Do I have a virus or something?


Notification icon with lowercase "a" with a curved line below it resembles the mouth of a smiley face

I am trying to identify an icon on my kids phone. I noticed it and I am unfamiliar so I am a little nervous. It was a notification icon so I don't know what the app itself is. The icon is essentially a lowercase "a" in the exact font that this message is in with a curved line below it that resembles the mouth of a smiley face. Thanks in advance


Click on package name to open corresponding style file?

I think it would be super if, in my LaTeX editor, I could click on the name of package...  \usepackage{blob}   ... and the corresponding style file, blob.sty, would be opened.  Do any LaTeX editors have this feature? I mainly use Aquamacs/AucTeX myself, but am interested in other editors too. I reckon it would be mildly challenging to implement, because blob.sty might be    in the current working directory,  in the system texmf directory, or  in the user's texmf directory.


Following is my code. I have tried minipage and subfigure. I don't know why. 3 Pictures are always vertically aligning. I want to be horizontally aligned with 2 column width.  \usepackage{times} \usepackage{booktabs} \usepackage{balance} \usepackage{multirow} \usepackage{epsfig} \usepackage{caption,subcaption} \usepackage{hyperref} \usepackage{amsmath, amssymb, amsfonts} \usepackage{color} \usepackage{textcomp} \usepackage{listings} \usepackage{url} \usepackage{pifont} \usepackage{multicol} \usepackage{graphicx} \usepackage{tabu} \usepackage{tikz} \usepackage{xcolor} \usepackage{colortbl} \usepackage[export]{adjustbox} \usepackage{array}   \begin{figure*}[t] \centering  \begin{subfigure}[t]{0.31\textwidth} \includegraphics[width=\textwidth]{plot/messages_accounts.eps} \caption{CDF of amount of messages collected for each account.   The account that collected the most messages is info@mailinator.com.   It has 34,022 messages.} \label{fig:messages_accounts_cdf} \end{subfigure}  \begin{subfigure}[t]{0.31\textwidth} \includegraphics[width=\textwidth]{plot/cluster.eps} \caption{CDF of amount of messages in each cluster.   There are 1,024,431 clusters in total.   The biggest cluster has 2349 messages in it.   99.1\% of clusters have less or equal 10 email messages in it.} \label{fig:cluster_cdf} \end{subfigure}  \begin{subfigure}[t]{0.31\textwidth} \includegraphics[width=\textwidth]{plot/class_results.png} \caption{Email Categories Results} \label{fig:results} \end{subfigure}  \end{figure*}


Employer NOC not available while applying for Schengen Visa

I have resigned from my current company and will be joining a new company. Within 2 weeks of joining the new company, I will be travelling to Europe. The issue is since I haven't joined the new company, they are unable to issue me a formal NOC.  What can be the alternatives proofs that I can show to the visa officer for the mandatory NOC?


Evaluating integral of fraction with logarithmic terms

How can I formally evaluate the following integral?$$\int_{1}^5 \frac{\log(7-x)}{\log((7-x)(x+1))}dx.$$ I tried the substitution $t=\log(7-x)$ and the integrand reduces to  $$\frac{-te^{t}}{t+\log(8-e^{t})},$$ although this does not look much simpler.  According to Wolfram, the answer appears to be $2$.  I am not sure how this can be obtained; perhaps there is some elegant trick that I am missing, because the result is unexpectedly simple.


Symmetric and exterior power of representation

Does there exist some simple formulas for the characters $$\chi_{\Lambda^{k}V}~~~~\text{and}~~~\chi_{\text{Sym}^{k}V},$$ where $V$ is a representation of some finite group?  Thanks.


Is there an automated way to find tolls on a given US/Canadian driving route?

To my knowledge the only way to estimate the toll for a route, i.e. from Baltimore, Maryland, USA to Guelph, Ontario, Canada, is as follows.   Get the list of highways route info from Google maps. Go to the website of each authority. For each highway, research the entry and exit points from Google map and related them to the authority defined regions. List the tolls from the authority defined regions and sum them up.   I don't want anyone else to do this for me. I can do it by myself. But is there any easier way? Can anyone at least give me a rough estimate like whether it is around $50, $100, $150? Thanks.


Sometimes it's important to generate data due to data imbalance issues. I heard that data augmentation by leaning distribution of data is a hot topic now. Could you please give me some resources and useful material for data generation by learning data distribution?


I have to prove this inequality.  $$\sqrt[n]{n} - 1 \lt \sqrt{\dfrac 2n} ~~\mbox{for}~~ n \gt 2$$  So far I reached this result:  $$n^{\dfrac {n+2}{n}} - n^{\dfrac {n+1}{n}} + n - n^{\dfrac {n+1}{n}} \lt 2$$


Take a look at the screenshot at the bottom of my post. Refreshing it solved the problem.  I have a faulty Wi-Fi card, so the connection could drop at some time. What is more, my OS clock is acting strange (I can't force BIOS, Linux and Windows to show the same time) - I am providing those facts so you can better identify the case.  I think '2 hours ago' could be somehow connected with the fact, that my clock is showing the time for another timezone than the one I am currently connected to, despite the fact that I asked Windows to detect TZ automatically.


I need a file: /etc/apache2/sites-available/default-ssl

I need that file's (/etc/apache2/sites-available/default-ssl) contents or a way to get it back. I deleted it.


Number of binary numbers with two consecutive zeros

This is an unsolved question in my textbook (so full answers are ok too). We are asked to count the number of binary numbers of length 15, beginning with '1', that have a total of ten 1s, five 0s, and two consecutive zeros.  My thoughts are, we can begin by ordering the 10 1s: $1 1 1 1 1 1 1 1 1 1$. The answer is the number of ways to put the 0s between them, which is like the number of integer solutions to $x_1+x_2+...+x_{10}=5$ with at least one $x_i>=2$. However, I don't know how to count that...  Thanks for your help.


`^^I^^I^^I` on beginning of each line in minted

I want to print some source code with minted, and the characters ^^I^^I^^I appears on the beginning of each line. It is independent on the chosen language syntax.  It looks like so:     What can I do to get rid of it?


I am writing a batch file to execute some other programs. In this case I need to prompt for a password. Do I have any way to mask the input text? I don't need to print ******* characters instead of input characters. Linux's Password prompt behavior (Print nothing while typing) is enough.     @echo off SET /P variable=Password :  echo %variable% Pause   This will read the input but I can't mask the text using this approach.


Is religion "entirely" absent in the Harry Potter series?

I don't recall anything directly related to religion having been mentioned in the books from Philosopher's Stone to Half-Blood Prince (1-6).  The only exception is that Christmas is widely celebrated. In Deathly Hallows Harry and Hermione pass St Jerome's Church in Godric's Hollow and there's one biblical reference ():     in Harry Potter and the Deathy Hallows, Harry finds two tombstones   with Bible (New Testament) quotes on them. His parents' reads "The   last enemy that shall be destroyed is death" (1 Corinthians 15:26)   while Kendra and Ariana Dumbledore's reads "Where your treasure is,   there will your heart be also" (Matthew 6:21).   Two direct references in all seven books (and potentially Harry Potter and the Cursed Child), is this correct?


Ubuntu SDK: How can I see error logs for my ubuntu touch app?

I've built an ubuntu touch app, it works well on desktop, but when I install it on the device and try to launch, it crashes. Where can I find error logs or any other output that the app can give me to figure out what's wrong?


what should I write The complicated political situation will affect/effect our timeline? Please help me.


Why is Helium-3 better than Deuterium for fusion energy production?

I see that many websites and magazines with physics thematic are pretty excited about mining Helium 3 isotope on the Moon. But this seems to be a very hard-to-get resource. For more than one reason:  There is not too much of it on the moon.  0.007% of the moon soil. Transport to earth would be also very VERY complicated in my opinion.  to take care of the harvesters.  Deuterium can be found in the seas as "heavy water". No spaceships needed. Now even when we get the Helium-3, I have a strong suspicion that it contains less energy than Deuterium but it will require more energy to start the fusion. Why I think it needs more initial energy to start the fusion?  Deuterium contains one proton and one neutron. That makes a +1e core. Helium 3 has 2 protons and one neutron - That's +2 core.  Now the worst problem with fusion reaction is, that once you pull the atoms so close, that the  no longer shield the polarity of the protons they start repelling with electric force. Now if you're trying to pull +1 and +1 together it seems much easier than pulling +2 and +2 together. Just think about the standard equation: $F_e = k*\frac{|Q_1*Q_2|}{r^2}$ where $k$ is the permittivity constant and $Q_{1,2}$ are the proton charges. Repelling force must be 4 times as large.  Why I think it contains less energy? This is even simpler to explain. In the fusion process we merge smaller cores to create larger. We normally start with hydrogen and create helium. Now when we already have Helium fused, it means that we missed one step in the fusion. Why would we do that? Can't actually Helium 3 core be one of cores that are created in Hydrogen fusion?


$S=\bigl\{\sum_{n}^{} a_nt^{n} | a_1=0 \bigr\}\subseteq \mathbb{Q[t]}$   This is the ring of polynomials with rational coefficients, where the coefficient of $t$ is always $0$. I want to show that $t^{2}$ and $t^3$ are irreducible in $S$, and that S is not a UFD.   My thoughts: the only way to factor $t^2$ and $t^3$ would be taking out factors of t, which isn't in S, so can't be done, but I don't know how to make this a mathematical proof? To show it isn't a UFD, I'm guessing there is an element which can be factorised in two different ways, but I don't know how to find this.


How to get disk usage from command line?

How can I get the current disk usage (in %) of my hard drive from the command line?


This command is being run in Minecraft 1.12:  /summon falling_block ~ ~1 ~ {Block:repeating_command_block,Data:1,TileEntityData:{TrackOutput:0b,Command:execute @a ~ ~ ~ execute @e[type=ender_pearl,r=5,c=1] ~ ~ ~ teleport @p ~ ~ ~},Time:1,Passengers:[{id:falling_block,Block:chain_command_block,Data:1,TileEntityData:{TrackOutput:0b,Command:execute @a ~ ~ ~ kill @e[type=ender_pearl,rm=1,r=5]},Time:1}]}  The command block returns with:  Data tag parsing failed: Expected '}' but got '@' at: ...a:      {TrackOutput:0b,Command:execute @<--[HERE]   What is wrong with this?


Can I prove this combinatorial relation using induction on $k$? $\sum\limits_{i = 0}^{k} \binom{n + i}{i} = \binom{n + k + 1}{k}$

Or must I prove this via induction on $n$? My idea is to simply use the identity $\binom{n + 1}{k} = \binom{n}{k - 1} + \binom{n}{k}$ as follows $$\sum\limits_{i = 0}^{k} \binom{n + i}{i} = \binom{n + k + 1}{k}$$ $$\sum\limits_{i = 0}^{k + 1} \binom {n + i}{i} = \binom{n + k + 1}{k} + \binom{n + k + 1}{k + 1}$$ $$\sum\limits_{i = 0}^{k + 1} \binom {n + i}{i} = \binom{n + k + 2}{k + 1}$$ but I'm not sure if this is valid and I'd like an explanation for why I should choose one over the other.


Different perspective of view in a Display

I love to shoot raw.  I have a desktop with a 20 inch LG HD LED Monitor, and most of my  post-processing is done using DPP (Digital Photo Professional). I also have an HP Compaq 15-s001TU Notebook.  I prefer viewing some of my best photographs on my HP Compaq Notebook, but the photographs look brighter, with richer color and with dynamic contrast in my HP notebook. I also calibrated the brightness/contrast setting with the desktop but it didn't help much.  Why is that?  Is there any solution for this?


Is there a way to detect if a Lightning Component is running in a Community or in Lightning Experience?

I have a Lightning Components and need to know if it is running inside of a Community or in Lightning Experience.  Is there a way to detect the running context?  Right now I'm checking document.location against a hardcoded Community-path but I need a general solution.  Best Idea I have so var to make it dynamic is to check for '/s/' in the URL. But I'm not sure if this is reliable for all possible Community pages. Also it feels like an hack.  After detecting the context, I also need to get the URL Prefix from the community. Again I could cut it out of the path, but would prefer otherwise.    Googling around didn't brought much. So far I found some context-aware unanswered questions here:


Is there anything I can do about serial downvoting that is smaller than script's threshold?

Is there any way to somehow address serial downvoting that seems explicitly targeted on me, but is done in a way that is careful enough to avoid serial-downvoting script detection (3 votes only)?  Yesterday, I have recieved 3 downvotes in the space of 1 minute.  -2  11:05  downvote  Select a row where one column is min -2  11:05  downvote  Perl system call without path to executable, except using PATH variable -2  11:04  downvote  Perl - while (<>) file handling   Those 3 posts were:   NOT recent themselves NOT posted in the similar timeframe (2/17/2013, 2/3/2013, 8/30/2012) None of the Qs or As were edited recently (the latest edit to any of the posts on any of those 3 was on the day they were posted/answered, no recent edits or activity) None of the answers on those 3 questions were downvoted other than mine No comments explaining the downvotes They didn't all 3 share tags (2 were Perl, one PHP with no Perl tag) They were clearly not obviously wrong   BUT... one thing that IS common among them is that they were all among the 25 latest answers I gave (#1, #4 and #21).  This sounds like someone was deliberately targeting answers made by my user by using  list.   Typically, I would just leave proving that something is serial down-voting in the hands of the all-knowing script, but I know that 3 votes aren't enough to trigger it even if it was the same user.  Frankly, I don't care about the rep hits (at ~50k, you stop sweating small stuff :) and they weren't among my rare beautiful cherished answers where I care about the vote counts... but I would definitely love it if whoever did this got a wrap on the knuckles even without reversing the votes (unless of course it was a rare statistically improbable fluctuation... and to quote Commissioner Gordon from Dark Knight Rising, "you are a detective now... you are not allowed to believe in coincidences).  Is this specific pattern enough to prove malicious intent?  Is there a way for moderators to verify if the 3 downvotes came from the same person? (and if so, refer the matter to SE who would have the means to track who it was so they get told to cut it out)?


$f_n(x) \to f(x)$ and $\int |f_n|^2 \, d\mu \to \int |f|^2 \, d\mu$. Use Egorov's theorem to show $f_n \to f$ in $L^2(d\mu)$.

Consider $f \in L^2(d\mu)$, $\{ f_n \} \in L^2(d\mu)$, $f_n(x) \to f(x)$ a.e. and $\int |f_n|^2 \, d\mu \mathop{\longrightarrow}\limits_{n \to \infty} \int |f|^2 \, d\mu$. Use Egorov's theorem to show that $f_n \to f$ in $L^2(d\mu)$.   Egorov's Theorem requires that $f$ is defined or supported on a set $E$ of finite measure, so that is implicitly given by the question. For any $\epsilon$, by Egorov's Theorem, there exists a $A_\epsilon \subset E$ such that $f_n$ converges uniformly to $f$ in $A_\epsilon$ and that $m(E-A_\epsilon) < \epsilon$. For large enough $n$, $|f_n - f| < \epsilon$ for all $x \in A_\epsilon$.  \begin{align*}   \lim\limits_{n \to \infty} \left( \lVert f_n - f \rVert_2 \right)^2 &= \lim\limits_{n \to \infty} \int |f_n - f|^2 \, d\mu \\                                                &= \lim\limits_{n \to \infty} \int_{A_\epsilon} |f_n - f|^2 \, d\mu + \lim\limits_{n \to \infty} \int_{E - A_\epsilon} |f_n - f|^2 \, d\mu \\   &\le \epsilon^2 \cdot m(E) + \epsilon \cdot \lim\limits_{n \to \infty} \max(|f_n - f|^2) \\ \end{align*}  The left term is arbitrarily small. I am stuck on trying to show that the term on the right is arbitrarily small.  I'm not using the given that:  \begin{align*}   \lim\limits_{n \to \infty} \int |f_n|^2 \, d\mu &= \int |f|^2 \, d\mu \\ \end{align*}  Which means that the $L^2$ norm of $f_n$ approaches that of $f$. I presume that I'm supposed to use that but I don't see how.  I asked this question several days ago, but I didn't get an answer, so I'm rewriting a cleaned up version here.


Why is the field inside a hollow sphere zero?

Say you have a hollow sphere with a uniformly distributed charge on the surface. Why is the electric field everywhere inside the sphere zero?  For the centre, its easy to add the vectors from the surface charges and show they sum to zero because of symmetry.   But can you show me how the field cancels out to zero for points other than the centre using vector addition?


Recommendation for disk size for GitLab, PostgreSQL and Redis containers

At present, GitLab is running as an omnibus docker (includes both postgres and redis as part of single container) and the size of data directory is 500 MB after 2 months of usage. We have around 70 developers. I have to move from the current setup and split GitLab into separate docker images (GitLab, PostegreSQL and Redis).  What should be the recommended size for each container if i have to persist their corresponding data on disk?  I think GitLab will be the one having the maximum space as it will house the code as well. After that PostgreSQL might be the one with lesser space and then Redis with the least. Just guessing. Looking for some figures (GB)


High power source and low power load (device)

Can we drive low power load on high power source? For example we have source power 12 volt 60 amp and load power 12 volt 5 amp. Do we need resistor between them? If needed, what value will it be and how do I calculate its right value?  Can we drive load directly on hight power source ?


How many homomorphisms are there from $\Bbb Z_{20}$ onto $\Bbb Z_{8}$? How many are there to $\Bbb Z_{8}$?  I can see that there are no onto homomorphisms because $|\Bbb Z_{20}|/ |\Bbb Z_{8}|$ is not an integer, but for "to" I can't figure how to solve this.  I can see that the trivial homomorphism and the natural one $\phi(x) = x\mod8$ work, but I can't see how I would find others. I can also see that $|\phi(\Bbb Z_{20})| = 1, 2, $ or $4$ because it divides  $\Bbb Z_{20}$ and $\Bbb Z_{8}$, but from here I'm stuck too.


Suppose that $d,\, m > 1$, and that $d|m$. Let $a,\,b \in\mathbb{ Z}$, prove that if $a \cong b (mod\,m)$ then $a \cong b (mod\,d)$.

The only sense I can make of this question is that $m = dq$ and $a \cong b (mod\,m)$ is the same as $as+mt=b$, or $as+(dq)t=b$. I feel as though proving that this holds since $m$ is just a multiple of $d$ is not enough.  Any help is appreciated.


Making the subscript under the summation

I'm writing some formulas inside a tabular. My formulas have summation but the subscript is showing next to the summation not under it! How can I make it under it?  Example (j is next to summation!):


I'm writing an college-entrance essay and for me it's imperative that I understand and implement the correct one of these two expressions:     "Much of it is" or "Much of it are"   If you need context:     I'm having trouble with my writing. The reason I'm having trouble is that much of it is about....   Should there be an "is" or an "are"?


Substitute \frac for a slash (/) only on inline math mode

I was wondering if there is a way to have LaTeX interpret $\frac{a}{b}$ as $a/b$, but \[\frac{a}{b}\] as \[\frac{a}{b}\].   It is a little tedious to change a inline equation $a/b$ to a display equation \[\frac{a}{b}\] when doing changes to my text.


Identify a movie in which aliens believed a sci-fi TV show to be true documentary

I remember watching a sci-fi movie in the early 00s. It was full of comedy. Here are the details I recalled:   There was a space opera TV show in the movie. It seemed a true copy of Star Trek (they used to pilot a ship and there were captain, first officer, science officer etc on bridge). The name of the TV show was possibly the name of the movie. Once the main crew of the TV show were celebrating some achievement, they were approached by humans having weird behavior (they were actually aliens in disguise; in reality, they looked like octopus). The alien race was innocent. They couldn't comprehend the concept of art, lies etc. So, they believed that the TV show (they got the EM waves) was true historical documentary of mankind. So, they came looking for help from the brave captain of the show. From the TV show details, they had built a starship which really worked. The aliens needed the TV show crew to pilot the ship to defeat another alien race which terrorized them. The TV show crew didn't have any problems piloting the ship as the controls were familiar, only these controls were real.   Can you please identify the movie?


The identity morphism in $\mathbf{Set}$ is the identity function

I've been trying to wrap my head around the basic concepts of category theory, and I thought I would attempt to illustrate what I understand with the category of sets, probably the easiest example. Particularly, I've been trying to prove that $id_A$ (the identity morphism on $A$, for all $A \in Obj(\mathbf{Set})$) is $1_A \colon A \rightarrow A, x \mapsto x$.  This is a very intuitive and reasonable statement, and it's trivial to prove that $1_A$ is indeed an identity morphism on $A$, and I suppose uniqueness of $id_A$ can be demonstrated analogously to uniqueness of the identity element in a monoid (considering the subcategory which has $A$ as its only object, and endofunctions on $A$ as its only morphisms).  In this manner, it is not hard to prove that the proposition in the title is true, but this demonstration requires to make an assumption or guess as to what could $id_A$ be. Specifically, the scheme of the proof is: assume $id_A$ = $1_A$, see that it works with the definition of an identity morphism, show that the identity morphism is unique, and, in conclusion, $id_A$ can only be $1_A$. What I'm looking for, nonetheless, is a somehow more direct proof, that doesn't assume $id_A$ = $1_A$ at the start. I want to place myself in a state of little or no knowledge about sets and functions, and under this assumption, why would I assume $id_A$ = $1_A$ at first? Why not try with $id_\mathbb{Z}$ = $f \colon \mathbb{Z} \to \mathbb{Z}, x \mapsto x^2 + 1$, for example? It wouldn't work, but I don't have any reason to think that $1_\mathbb{Z}$ is a better guess for $id_\mathbb{Z}$.  I suppose that the proof for which I'm asking would work for categories of sets with additional structure, and probably for posets as well, although I'm not clear as to what modifications it would require to work.  Thanks.


I'm running Ubuntu 12.04 inside VMware on a Windows 7 host and I need to share a folder to the host machine.  I've successfully shared the folder so it's visible to the Windows side, but I need to be able to have this work on multiple domains for different users.  Any idea on how I can make this folder available to everyone no matter what domain it's running on?


Is it possible to use delete operator on class instance without new operator to deallocate memory? Like this:  Class myclass{public void hi{std::cout<<"hi\n";};}  myclass class1; delete &class1; class1.hi(); //results in error   Thanks


Increase the /home partition without losing the data

I have a 320 GB harddrive with three partitions / , /home and swap. What I want to do is change the size of swap which now is 8 GB to 5 GB and append that 3 GB to my /home partition. I have searched through the web for this but don't seem to find a proper way to increase my home partition. Can anyone help ? By the way, I know how to decrease size of swap I just need the proper way to append that unallocated 3 GB of space to my /home partition without loosing the data. Thank You    gparted   from live-usb i can't increase my /home size


One of the responses to  suggested that I should make sure my database can handle UTF-8 characters correctly. How I can do this with MySQL?


How to transfer information to the development team?

I am a UI team lead.   I detected that the topic of "how do you want the graphics?" is a very hot topic in my company. And I find myself always giving the same explanation.   I would like to give like a "checklist" for the PMs and the designers we work with to make the work more efficient and fun.   Currently there's this constant ping-pong in emails between us and PMs. I would like to get rid of that..   Thought about the following list (several of the items I gathered so far..):   The design should be web and mobile friendly. (yes - sometimes we get some crazy design that require us to use mostly images even with all the power of CSS today..) Flat design is good. - obviously a recommendation.  Images should have transparent background.  Formats:   The original PSD file Each layer in PNG with transparent background.  Icons and flat images should be in SVG, and if possible - as a font. (we usually convert to font ourselves).   General guideline of the design should be attached.   color palette and the purpose for each color: Title, subtitle, text, disabled items, actions items.. etc..  important alignments guidelines - sometimes we miss the need for things to align whereas the designer feels they based the entire design on that. This usually affects the HTML structure as well - so it is very important to have common grounds on this ASAP.  Error messages display (ALWAYS MISSING! no one designs the errors..)    And then a whole different section for emails :P  We usually develop web design, but non-web might be required too in the future.   Seems to me like someone probably already made such a list and I am reinventing the wheel.   What is the standard for passing the grail from the designer to the dev team?  Edit  This question is technical.   What is the standard way of getting deliveries from the designer?   or if you'd like - as a designer - what is my checklist for delivery?   I assume almost every HiTech company with GUI has this process, so it must have grown into a written standard I can simply send to my designers, and make sure they follow it.   Like a checklist the designers will check, and my team will validate to avoid back and forth correspondence like "we need this in png" , "can you also get jpg?" etc.. which consumes a lot of time, and is just not right as I want to allow the designers to move forward and forget this project.   Especially since the design step happens way before the implementation, and by the time we reach that phase, we start to discover we are missing some artifacts from the designer.   I expect people to publish their checklist, or reference me to a checklist they are using.   The first answer that hits the spot will be accepted. Opinions like "whether this checklist or that checklist is better" has no room here.   If there is no such standard checklist, I think there should be, and I also think this question has a great potential to start one right here.   The workflow is known, the motivation is very high, the communication between us and the designer is great. This part of the process is understood, but the content is always questioned, and I can't understand why.


built-in php cannot connect to homebrew mysql through localhost on osx mavericks

trying to install wordpress on osx mavericks (with built-in apache+php and homebrew mysql).  mysql -u root # connects php -r 'var_dump(mysql_connect("localhost", "root", ""));' # doesn't connect   web-searching revealed that mysql connects to 'localhost' via a unix socket, but connects to loopback ip 127.0.0.1 via a network socket.  php -r 'var_dump(mysql_connect("127.0.0.1", "root", ""));' # connects!   why can't i connect to mysql via localhost from php??


Is it okay to submit manuscript to arXiv after "revise and resubmit"?

I've read  about how some publishers (e.g., Springer) allows authors to submit to arXiv before journal submission, but they make authors wait for a year after acceptance to submit to arXiv.   My question is: Is it okay to submit to arXiv during the time when the paper is under consideration by the journal, for example after it has been "revised and resubmitted" but before final decision?


Is it safe to give a sugar daddy my bank account and routing number?

So I have a potential sugar daddy and he is asking me for my bank account number and routing number so he can deposit money into my account every week is that safe or is this a scam. Emergency pls answer quickly and real answers only


Why do sun light rays that come through clouds not look parallel, despite it being so far?

I was at the airport last friday and there were some nice sun light rays, although not much of a good spot to take a picture. What weirds me out every time I see them is that they look as if coming from a ball of light pretty much right behind the clouds. I drew some lines to illustrate that:    I never stopped to think about this before. Why are they not parallel, is it some kind of illusion?  In case astronomy matters to explain this, the picture was taken at 7pm, February in central Europe.


If gravitation force varied with $r^{-3}$ instead of $r^{-2}$ what would happen to Kepler's laws

2nd law wouldn't change as it is LCAM. 3rd Law would change. But I'm confused about first law. Does any body under influence of any central force move in an ellipse?Can anyone give a simple proof/explanation?


I have a computer with an Intel i7 6700HQ processor that seems to support 2133 MHz DDR4 memory. My question is: what would happen if I add DDR4 RAM running at a clock speed of 3000 MHz?  The reason I ask is because I'm currently getting 3000 MHz RAM cheaper than 2133 MHz RAM on Amazon.ca:        Which should I buy and why?


When should I use exposure compensation?

When should I use exposure compensation, rather than ISO, shutter speed or aperture?


How do I move the task bar back to the bottom where it belongs?

How do I move the task bar back to the bottom of the screen where it belongs from it's stupid placement on the left.  I won't use Ubuntu as long as it has to be in the way where it is now.


I'm suspecting that one of my servers is attacked some time ago. My question is how can I identify a DOS or DDOS attack while under attack or after the attack has finished?


For $a,b,c,d \in \mathbb{R}$, is $\sqrt{a^2+b^2} + \sqrt{c^2+d^2} \geq \sqrt{(a+c)^2 + (b+d)^2}$? I have tried to show this using the fact that $\sqrt{x+y}\leq\sqrt{x}+\sqrt{y}\; $  for non-negative $x,y$ but haven't been able to arrive at a proof.


Answer to "Will you be able to provide proof of your identity and employment eligibility if you are hired"?

I am an European citizen applying for some academic jobs in US.   I have some doubts on one question I have to answer during the application process  1) Are you presently legally authorized to work in the United States?  My answer to this question is NO  2) Will you be able to provide proof of your identity and employment eligibility if you are hired?  What should I reply here? Is it referred to my future or current eligibility?


Problems on deleting a partition from USB key and format it in fat32?

I would like to completely wipe out the USB key and format it in fat32, but I am having troubles...   I needed Windows 7, so in Ubuntu 14.04 I installed WinUSB program and installed Windows iso image on my USB Key, then I installed Windows on one of my computers. Now I don't need this Windows boot USB key anymore and I would like to use this USB key for my data. I plugged in USB key into Ubuntu 14.04 and started GParted. Selected my USB key so /dev/sdb, right mouse click and selected Unmount and then Delete. Clicked on check box from toolbar to accept changes. I created new partition with fat32 file system and accepted the changes. Back to my file manager and to my surprise I can still!!! see Windows files on my USB key. Very strange. I am sure this is the only USB key in my computer. Other device /dev/sda is my hardisk. I Unplugged the USB Key and plug it back. In Nautilus file manager I can see like there are two USB volumes in my computer, very strange. It looks to me like on USB key is some hidden partition or something like that,that GParted can't see.   Please see print-screen I made in Ubuntu:    Any idea how to completely wipe out a USB Key? Thanks


I need to measure liquid temperature down to -80C

Building a device that will sit inside a liquid that will be a max of -80C and trying to figure out what my options are for measuring the temperature.  I was thinking a thermocouple but not sure if that's a good approach.  What have you used that you liked?  Thank you


Equation (line) in tikzpicture not completely visible

I have this code: \begin{tikzpicture} \begin{axis}[xlabel = x,              xmin = 0,              xmax = 20,              ylabel = y,              ymax = 0.8,              ymin = 0,              ytick pos=left ] \addplot [black] {-0.01 * x + 0.6}; \end{axis} \end{tikzpicture}  I get this result:  Why is it only showing the line for x between 0 and 5? I would like to have the line for x as defined in the axis.


Why does a bubble take a spherical shape?

I suspect this has something to do with thermodynamics and the  and I'm interested in a mathematical derivation of this result.


Pronunciation of "i" in the words like "direct", "organization", etc

I'm a nonnative speaker of English and I've always been unsure about the pronunciation of "i" inside words like direct, organization, etc. I was thinking that it's a matter of choice between American and British usage to pronounce that "i" as ɪ or aɪ, or even ə, but looking at some dictionaries made the situation more complex for me. For instance, MacMillan dictionary gives the  pronunciation of "indirect" as     /ˌɪndɪˈrekt/   /ˌɪndaɪˈrekt/   whereas the  pronunciation is given as     /ˌɪndəˈrekt/   /ˌɪndaɪˈrekt/   So both of them include two versions and ɪndaɪrekt in common. I thought that only British English had ɪndaɪrekt.  The same dictionary given the pronunciation of "organization" as /ˌɔrɡənɪˈzeɪʃ(ə)n/ for  and /ˌɔː(r)ɡənaɪˈzeɪʃ(ə)n/ for .  Is there a prevailing rule in international English for this kind of pronunciation?  What do native speakers think and suggest?


Are physical probabilities also quantized?

In physics there is quanta and energy occurs per this unit. Is it it then reasonable that probability also is quantized since energy is?


How to resolve "Items collection must be empty before using itemssource" error?

I have set the datasource for TreeViewAdv and tried to use the context menu and checkbox for treeview items.   <TreeView>     <TreeViewItem Header="TestedApps"          ItemsSource="{Binding Scripts}">         <StackPanel Orientation="Horizontal">             <StackPanel.ContextMenu>                 <ContextMenu>                     <MenuItem Header="Play" Click="Play"/>                 </ContextMenu>             </StackPanel.ContextMenu>             <CheckBox Margin="0" VerticalAlignment="Center" IsChecked="{Binding IsEnabled, Mode=TwoWay}"/>             <Rectangle Margin="5 0" Width="12" Height="12" Fill="{Binding Result, Converter={StaticResource ResultConverter}}"/>             <TextBlock Margin="2 0" Text="{Binding Name}" VerticalAlignment="Center"/>         </StackPanel>     </TreeViewItem> </TreeView>   But it gives me an error "Items collection must be empty before using itemssource". I have visited some articles but could not find the reason for this.   Please anyone let me know how to solve this?  Thanks,


Naming a new Active Directory forest - why is split-horizon DNS not recommended?

, we  what the , and they're pretty simple.  Namely, it can be summed up in a single sentence.    For example, if I were to incorporate and register the hopelessn00b.com domain, my internal AD forest should be named internal.hopelessn00b.com or ad.hopelessn00b.com or corp.hopelessn00b.com.  There are overwhelmingly compelling reasons to avoid using  or , but I'm having a hard time finding similarly compelling reasons to avoid using the root domain (hopelessn00b.com) as my domain name and use a subdomain such as corp.hopelessn00b.com instead.  Really, the only justification I can seem to find is that accessing the external website from internal requires an  A name DNS record and typing www. in front of the website name in a browser, which is pretty "meh" as far as problems go.  So, what am I missing?  Why is it so much better to use ad.hopelessn00b.com as my Active Directory forest name over hopelessn00b.com?  Just for the record, it's really my employer that needs convincing - the boss man is back-peddling, and after giving me the go ahead to create a new AD forest named corp.hopelessn00b'semployer.com for our internal network, he's wanting to stick with an AD forest named hopelessn00b'semployer.com (the same as our externally registered domain).  I'm hoping that I can get some compelling reason or reasons that the best practice is the better option, so I can convince him of that... because it seems easier than rage quitting and/or finding a new job, at least for the moment.  Right now, "Microsoft best practices" and internally accessing the public website for our company don't seem to be cutting it, and I'm really, really, really hoping someone here has something more convincing.


Generating data to follow given variogram

It is a straightforward approach having a set of coordinates (e.g., in 2D as {x,y}) and at least an associated variable (e.g., v) to calculate a variogram as a descriptor of the spatial dependency of the variable v through the field being studied.       The question appeared to me is: how to generate a realization of a dataset having a variogram? (inverse move!) That is, there is at least one variogram available but neither dataset nor other description is available and the goal is to generate a realization of original (unknown) dataset that could have such a variogram. What is the probability of having such a realization?  Updates / Comments: From variogram in the above context I mean empirical variogram. I suppose that fitting a variogram model is not an issue at least for this question.  Also variogram is available as pairs (h, gamma).


Sed command runs with hardcoded value in regex but fails with variable in script

My file data Pattern is below and i need output as 6 or 3 or 8 or 4 based on the variable value which is eth0 and eth1  eth0RX:6:eth0TX:3|eth1RX:8:eth1TX:4|   Below code works well  sed 's/.*eth0RX:\([0-9]\+\).*/\1/g' $EMSTATE/packetdrop.txt   But fails when I use dynamic variable like below  rxfile=sed 's/.*$iRX:\([0-9]\+\).*/\1/g' $EMSTATE/packetdrop.txt


Creating shapefile from current dataframe extents in layout view of ArcMap?

Where is the ArcGIS 10 tool for creating a shapefile from current dataframe extents in layout view?  Have looked around and the closet thing i can find is Toolbox's Grid/Strip Map Index tools under Data Drive Pages.  I just want to be able to create a single polygon rectangle shp file based on the data frame (in layout view) for any given scale / page setup.


At what time does cron execute daily scripts?

If I place a shell script in /etc/cron.daily/, at what time of the day will it be executed?


Can a Time Machine drive have several partitions, or does Time Machine need the whole HDD to itself?

Is it possible to partition and external drive an use only one of the partitions for a Time Machine backup?  Or does Time Machine need its dedicated hard drive?  (I've never used Time Machine before.)  If it is possible to do this, do I need to pay attention to anything in particular to make sure it'll work without issues?  I am aiming for one Time Machine partition and one NTFS one on the same external hard drive.  Is this feasible?


"I hope that my search ends now" or "I hope my search ends now"?

I was doing a question for Yahoo Answers and suddenly I can't choice. Maybe because I never study English(after elementary and high school), I don't know which is the right sentence?  Of course I know that I should study, and I'll do.  Many thanks.


How to detect scene strips in the VSE on frame changes?

I need to detect scene strips in the VSE on the current frame, meaning on what strip is the play head at this moment? However I can't seem to find the right type(?) to attach the ".strip_elem_from_frame" function to, in order to get the info/name/type on the strip. Here's a test script which must run in a screen with a sequencer with scene and movie strips in it:  import bpy  #update at frame change def currentStrip(*pArgs):     print("Current Strip: "+str(bpy.context.sequences[0].strip_elem_from_frame(bpy.context.scene.frame_current))) #Doesn't detect any strips at all.  #add frame change handle def attachAsHandler():     for f in bpy.app.handlers.frame_change_pre:         bpy.app.handlers.frame_change_pre.remove(f)     bpy.app.handlers.frame_change_pre.append(currentStrip)  currentStrip() attachAsHandler()


I have a system which has 512 MB RAM. It is a 32Bit system I like to work in ubuntu OS: does anyone have experience with installing/running Ubuntu on 512MB RAM? Will it run properly?