The meaning of 'where' in "Your secondary mode is external, where you deal with things rationally and logically"

This is a paragraph generally describing the characteristics of an ISTJ person:  As an ISTJ, your primary mode of living is focused internally, where you take things in via your five senses in a literal, concrete fashion. Your secondary mode is external, where you deal with things rationally and logically. Source:   I've checked the meaning of the word 'where' in many dictionaries but I couldn't find the correct meaning of that word in this context. For me, I guess 'where' in the paragraph means 'which means', or I can rewrite these sentences like: As an ISTJ, your primary mode of living is focused internally, which means you take things in via your five senses in a literal, concrete fashion. Your secondary mode is external, which means you deal with things rationally and logically. Is my guess correct? Could you explain more and give some examples like this?


Why is a curve parameterized by arc length necessarily a unit speed curve?

I apologize if this is trivial but I have not been able to figure it out.  For a curve $\sigma(t)$, I have a definition for arc length:  $$s(t)=\int_{t_0}^t |\sigma'(t)|dt$$  We reparameterize a curve $\sigma$ by observing that $s$ has an inverse, $t(s)$, and the resulting reparameterized curve has underlying assignment $s \mapsto t \mapsto \sigma(t)$.  A curve is a unit speed curve if  $$\forall t\qquad |\sigma'(t)|=1$$  Thanks


I was wondering, what is the diferrence between a prototyped and a non-prototyped method in JavaScript? Any help is deeply appreciated.


Is there any software esp. forensics and such, that allow me to unlock a disabled iPhone from putting in too many wrong attempts. I know the correct PIN but I don't want to reset it since this contains VERY important data. The screen says iPhone is disabled, and connect to iTunes, but before I do that I just wanted to inquire.


As the title says it, Notepad doesn't show line breaks, specifically \n. But in Windows Explorer, in the preview window, it does show line breaks that are just \n (really Microsoft?). After doing some experimentation, it turns out notepad actually puts a \r\n for line breaks. This is annoying because the Mac TextEdit application just puts \n and as a user who uses both Mac and Windows simultaneously for programming purposes, this is very annoying. Is there anyway to make Notepad recognize just \n as a line break? I'm not sure why it doesn't because that's just an extra byte per line and in a CSV file that can really add up.


Scaling a text box in Illustrator CS6 (without scaling text)

Ok, I have a fresh Illustrator document. Pasted some copied text into the "artboard" (the clipboard is severely broken, but that's for another day).   The textbox that gets pasted is one huge line that goes from here to Timbuktoo.   So I need to resize it to 1/3rd of the page. I presume, as happens in every other sensible tool in the world, the text would flow to the width I give the textbox. The text itself will NOT get resized.   However, this is not what happens. THe text gets scaled completely. No exceptions.   I've been googling for the last 2 hours. Nothing works.    Some posts say I must "show bounding borders". Doesn't help at all. Other posts say some nonsense about main selection tool and direct selection tool. These tools do nothing. Both the arrow-icons, when used to drag the corners of the box, lead to the text getting resized anyway.  Someone suggested that when I copied and pasted text from a text file into Illustrator, this became an object, not actually text. Well, in that case, how should we paste text? Not everyone working on an Illustrator document is always and forever expected to write all the text manually, is it?    Seriously, how does this work? Any preferences I need to change? I used to work with CS4 and I recall it was much easier.   Would appreciate any inputs. Thanks!


Can $\mathbb CP^n$ be the boundary of a compact manifold?  For example, when $n=1$, $\mathbb CP^n=S^2$, therefore it is the boundary of $B^3$.


How can I search for files in all sub-directories using the shell and then copy those files?

How can I find just the *.mp3 files with a recursive command like ls -R *.mp3 in a directory that contains several sub-directories and at the end copy these files in a directory that I choose.  Thanks for your support.


There is a fault in the dedicated graphics card, and so my laptop is almost unusable. I am thinking of getting it fixed in the warranty. However the only problem is that Dell's complete care warranty means almost surely formatting the whole system before fixing the hardware issue. And that's undesirable because I have installed many softwares in KUbuntu 14.04 and customized it to a great extent.  So my question is, how do I take a complete backup of the Linux setup?  I have /root and /home on different partitions, and there's a separate partition for swap. There are also 3 other partitions, one of them for windows (I don't care much about it though, I hardly ever use it), and other for storing general purpose files.   By complete backup I mean I store it on an external hard disk drive, and restore the Linux setup to its current state after the graphics card problem is fixed by Dell under warranty.  Tl;dr: how do I take complete backup of KUbuntu 14.04 including all softwares and customization and restore it later?  Edit: after the hardware fix, Dell will give my laptop in a factory condition, with only one partition of 500 GB, which has only windows in it. I'll manually restore the data in the remaining partitions, I'm just clueless about backing up and restoring Linux.


Schengen Visa multiple entries - Must every visit be made to the same main country?

Lets say I have France Schengen visa (multiple entries short stay of total 90 days in 6 months). I understand that my first ever visit to Schengen zone has to be France as the main destination. My question is : If I happen to make subsequent visits to Schengen area (while my visa is still valid with regards to dates and total duration)  - is it required on every visit (second, third, etc.) that France be my main destination for the visit?  PS: I know that I can enter any Schengen country for my visit - but I am specifically asking if I can totally avoid visiting the issuing country on my subsequent visits? Will doing so be used against me if I apply for visa in future?


How to get previous command without arrow key

Usually we can use the upwards arrow key to get the previous command. But that does not always work, it can happen that you get the ASCII sequence instead ("^[[A...") but I also wonder if there was this functionality at older keyboards which did not have the arrow key, how did it work in those days?  Is or was there another way?


I lost my Pegassi Oppressor Mk II after replacing it, how do I get it back?

I had a garage which was full and I had two other garages from other properties so I bought a car and tried to make it deliver to the one that's full as it's my main garage.   When I tried, it said that it's full and I'll have to replace a vehicle in order to get it delivered there. I thought that the vehicle I will choose to replace would just go to my other garage, so I chose Mk II and after it was replaced I can't find it anywhere now. I tried looking at all my garages but nothing. How do I get it back?


is there a difference between the function y=x/x and the function y=1.

I have been asking people and have been getting mixed answers. some people think it is the same because when you simplify the first one you get y=1, but some people think that they are different because in the first equation x cannot be 0, and in the second equation x can be 0. Please tell me.


Should I pay off a 0% interest car loan or put money towards high principal student loans?

Within the past year my wife and I have paid off approximately $40,000 in debt - from her car loan, my two student loans, and other misc debt (new refrigerator, hardwood floor install). I had a car lease expire so I went to purchase a new one and got a 5 year, 0% interest loan, with approximately $20,000 left.  My wife has her doctorate in healthcare and, unfortunately, the student loans racked up and has about $90,000 over the next 26 years.  Based on my estimates we're slated to pay off her student loans within 7 years. We both work full time and I do freelance consulting work on the side. I currently have enough (after taxes) saved from my freelance work to pay off my car or put it towards her student loan.  Which way is better? Should I pay off my car loan and put the $400 per month towards her student loans? Or should I keep paying the car loan and put all our extra money towards her student loans?


As the picture shows, at the top there is too much spacing:   I think it has to do with the following code, I already tried to change all the numbers given (.5ex etc.) but it is just the space in between Chapter I and Introduction.   Here is the preamble and part of the code I am using which I assume should be responsible for the problem:  %%%%Definition Partitioning%%%% %Profondeur de la numérotation: %Chapitre: \renewcommand{\thechapter}{\Roman{chapter}} \titleformat{\chapter}[display] {\bfseries\Large\color{MyBlueChapter}} {\filright\MakeUppercase{\chaptertitlename} \huge{\color{MyBlueChapter}\thechapter}} {.5ex} {%\titlerule \vspace{.5ex}% \filright} [\vspace{1.5ex}% \titlerule]   \usepackage[english]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[left=2cm,right=2cm,top=3cm,bottom=3cm]{geometry} \usepackage{lmodern} \usepackage{graphicx} \usepackage{microtype} \usepackage{geometry} \newcommand{\latin}[1]{\textit{#1}} \usepackage{hyperref} \usepackage{wrapfig} \usepackage{color} \usepackage{lscape} \usepackage{pdfpages} \usepackage{fancyhdr} \usepackage{lastpage} \usepackage{titlesec} %\usepackage{xcolor} \usepackage{sectsty} \usepackage{multicol} \usepackage{titlesec} \usepackage[]{nomencl} \usepackage{gensymb} \usepackage{amsmath} \usepackage{cancel} \usepackage{booktabs} \usepackage{subfigure} \usepackage{multirow} \usepackage{rotating} \usepackage[thinlines]{easytable} \usepackage{adjustbox} \usepackage{titletoc} \usepackage{afterpage} \usepackage{changepage} \usepackage{makecell} \usepackage{float}   Thanks for the help!


I made a clicking divs. By clicking on the first two dives I get alert (this.id) - some_id1 or some_id2 and this is fine. Clicking the Add Div button creates a new div some_id3, but clicking the new div does not show the alert (this.id), it does not register. I can not figure out why. Any idea?    <button type="button" onclick="AddDiv()" >Add Div</button>


Why and when did "crack" come to mean "tell"?

Cracking jokes is to me the most familiar contextual usage of this term.  Why would anyone say they were cracking jokes, not just telling jokes?


Change the type of equation numbering in document class article

Possible Duplicate:          I have written my thesis in document class 'article' (don't ask me why). Now I want to number my equations by sections, i.e. in section 1 they should go 1.1, 1.2, ..., in section 2 they should go 2.1, 2.2, ...  I don't want to change the document class (e.g. to 'report') because then I would have to change all sections to chapters, subsections to sections and because I fear a lot of other unintended consequences.   How can solve this?  Thanks for any help!


How to properly measure the temperature of meat with a meat thermometer

I have a Thermapen meat thermometer that I use for precise temperature measurement. Although it's easy to read and fast, I'm not exactly sure how to take readings.  With a large piece of meat with consistent temperature throughout its quite easy, like a braise or meat in a stew. I am having trouble with burgers though, they are much thinner, and the temperature is very inconsistent, so it's difficult to know whether it has reached medium rare or medium or whatever.


we entered an area where there was no service and Pokemon Go logged us out?  We know our username, email and screen name but can't remember our password or player ID.  Is there any way to retrieve our password or reset it?


I tried removing the '.' directory. I thought I could just delete my working directory without having to go into a parent directory.  The point of my question is to look for some insight into how the linux system works to delete files.


Offside Scenario with Goalkeeper in Other Half

Let's say the goalie (Team A) is way up the field (let's say for a corner kick late in the game)... He leaves one defender (Team A) parked on his 18 yard box... The opposing team wins the ball and starts a quick counter... the ball gets played up to the 2 forwards on team B who advance the ball past half field and find themselves in a 2 on 1 with the defender (team A) parked on the 18 box.    Let's say forward  # 1  passes the ball up to forward #2 who is not quite at the 18 where the defender is sitting.  Is this offside because there is only 1 defender? (goalie is too slow getting back)


Why failing to install ubuntu on Asus g551 laptop

I have Asus g551 laptop, it has uefi so during startup it gives ROG (Asus brand for gamers) logo then it begins. I am wondering if I installed Ubuntu besides my windows. It would give me a choice of what os I enter?  Hardware: Asus G551 laptop


getting negative logarithm in the answer

$$\int_{-3}^{-2} \frac{dx}{2x+1}$$  On solving this I'm getting $\log(-3) - \log(-5)$ and isn't negative log not possible?


Confusion about use of article before the word open

I have a little doubt about use if article before the word open. Which one is correct in the following examples: There exists an open interval.  There exists a open interval.  What is the rule?


--Editing this as my question was marked as a duplicate. I'm having an issue implementing STUFF and the "trick" FOR XML PATH when my query contains a join.  I have a single column that I have been trying to convert to a single column and single row. The data structure returned from the query below is:  col1 1  2 3   I'd like it to be comma delimited like so:     col1     1,2,3  The query I have is as follows:  select    u_id from    tabl1 tb   inner join CTEE f on f.aid = tb.a_id group by    u_id   I tried to incorporate STUFF and a FOR XML PATH in this query but keep failing to do so. Can anyone point me in the right direction. I've done this for multiple columns when concatenating rows into a comma delimited column, but for some reason this is driving me crazy.


Difference between anything but and anything other than?

If I say "anything but ordinary", it means it is not ordinary, it is unique and different. What if "anything other than ordinary"? Does it mean the same as "anything but ordinary" or does it simplify emphasize the state of being ordinary?


How to understand the process of the kinetic energy formula?

$$\frac{1}{2} mv^2 = K.E.$$ What is the purpose of $v^2$; why can't use $v$ instead?    Why this question is arising because of that I learned the whole process of speed= distance/time. (I know How it works) Velocity = displacement/time. Acceleration, Average speed, This whole formula have some connection, that I learned or realised by questioning the formula. But I can't understand $\frac{1}{2} mv^2$. Without memorizing I want to understand each part of the formula.


I often touch up files so they show up at the top of the file manager.  Is there a way to touch a list of files instead of touching each one individually?  touch test1 test2 is not what I am looking for.  Piping ... So the output of a list of files would be sent to the touch command.  Text list of files piped or whatever to touch = files with updated time stamps. A pipe is a form of redirection (transfer of standard output to some other destination) that is used in Linux and other Unix-like operating systems to send the output of one command/program/process to another command/program/process for further processing. So the output of a list of file would be sent to the touch command.


What are the main differences between K-means and K-nearest neighbours?

I know that k-means is unsupervised and is used for clustering etc and that k-NN is supervised. But I wanted to know concrete differences between the two?


I get unrelated [tag:generics] tagged Q in my inbox via [tag:generic-programming] subscription

But these tags are about different things. Usually  are for .NET specific syntax/asage Q, but  is for generic algorithms and design patterns.   The problem is I don't want to receive .Net Q notifications because this is not what I have subscribed for. I treat this situation as a bug. This has started a week ago and makes SO notifications useless for me.


All my object have their location at 0,0,0 I would prefer if they have their location in the center of the object.  I thought I could just select ht object, go into edit, snap the cursor to the center, go back to object mode and adjust the origin. I always get the error context is incorrect for snap_cursor_to_center() but I am checking before that I am in the VIEW_3D. I am not sure what is meant by context error.  import bpy  for area in bpy.context.screen.areas:     if area.type == 'VIEW_3D':          for object in bpy.data.objects[:1]:  # only one for testing             bpy.ops.object.mode_set(mode='OBJECT')             bpy.ops.object.select_all(action='DESELECT')              object.select_set(state=True)              bpy.ops.object.mode_set(mode='EDIT')             bpy.ops.mesh.select_all(action='SELECT')              bpy.ops.view3d.snap_cursor_to_center()  # ERROR :(              bpy.ops.object.mode_set(mode='OBJECT')             bpy.ops.object.origin_set(type='ORIGIN_CURSOR') ```


I've noticed over the few years that I've participated on Stack Exchange websites that moderators and moderation behavior in general is rather secretive, in that moderators take action with little or no explanation.  While this has been remedied a bit with explanation boxes detailing why a thread was closed or moved, there are still plenty of actions being taken that leave no paper trail.  For example, in a closed topic that I was participating in, I asked in a comment why my answer was still being down voted.  I return a day or two later to find my comment was gone.  Why was it removed?  I don't know.  And I can't find out.  I'm not upset that my comment was removed, I am upset that action was taken with NO communication routed back to me.  If my question was removed because of some specific undesirable quality, then I'd like to know that and what policy it violates.  But nothing was provided.  That in itself can create bitter, rebellious users, which leads to trolls, ranters, and other detestable behavior.  My feature request is this: moderators regardless of rank should always have to provide an explanation for any action they take that affects a user or group of users, and that explanation should be routed to those who are affected by said actions.


WordPress twenty eleven sidebar on Pages

I am using 2011 theme, any how I managed to get sidebar on single.php pages by installing child theme,  But now I want sidebar on pages,  How do I get it?


I tried aptitude search r, but (unsurprisingly), there are waaaay too many results to sift through.


Can one synchronized method access another synchronized method in C#?

Suppose I have the two following methods:  Object sync = new Object(); … public void method1() { lock(sync) { … } } public void method2() { lock(sync) { method1() … }}   My question here is would this cause any deadlock? Looks like method2 is trying to obtain lock sync when it is already holding it.


How to determine what to test in a method

I am new to unit test. One thing I am struggling with is to determine what type of test to write for my method. Using the code below as an example, what should I be testing here? what are the various test I can  write.   [HttpGet] [Route("GetPosts")] public async Task<IActionResult> GetPosts() {     try     {         var posts = await postRepository.GetPosts();         if (posts == null)         {             return NotFound();         }          return Ok(posts);     }     catch (Exception)     {         return BadRequest();     } }


Ideally, should buttons' state represent current or desired behavior?

Ideally, should buttons' icons or state (button clicked or not clicked) represent current or desired behavior? On Android, certain checkbox options may also have a description (below the name of the option itself) - should the description describe: 1. the new behavior that will apply when (un)checking the option, or 2. the behavior when the option is checked (with the implication that the opposite behavior will apply when unchecked)? Thanks.


Dimension of the $n\times n $ matrices with some conditions

What is the dimension of the space of $n\times n$ matrices with real entries which are such that the sum of the entries in the first row and the sum of the diagonal entries are both zero?? I tried but I get $n-1$ I don't know it is right or wrong??


Has or have usage with this particular sentence

If any of Canadian publishers already have/has the rights for this book?   Which one is correct or both are possible?


Top tags are different between mobile app and site

I was looking at my profile on the iOS mobile app for Arqade, and I noticed that my top tag showed a score of 110.    However, I went and checked my profile on the site using my desktop, and it shows that my top tag is only 89.    My only conclusion is that the mobile app is bugged and includes my upvotes from questions with that tag as well, as I have 21 upvotes in total over my questions with that tag.


Meaning of a software update message and warning

I just got this update message which includes a warning.    As this is the first time I see it I would like to know what it means. Also given that this is about a security update I understand that it is important, but why?


Prove If a ≡ b (mod n) and c ≡ d (mod n), then a + c ≡ b + d (mod n)

Using the definition of congruence mod n, prove that if a ≡ b (mod n) and c ≡ d (mod n), then a + c ≡ b + d (mod n). I've seen a couple of different examples of how to do this, mostly using s and t, but I am really struggling to understand the proof, and how to write it.


Can the "rename" command distinguish between directories and files?

I need to rename only directories and not files, and I want to do it with rename.  Is there any way to do it?  It says nothing in the manual about differentiating between directories and files.  This command changes everything, no matter directory or files:  rename 's/ /\n/g' *   This command solved my problem:  rename 's/ /\n/g' */   I need a slash behind it.


What is the MIME equivalent of uuencode for sendmail?

e.g., I've got files I want to send by sendmail but the receiving mailbox (for posting pictures to my blog) will not accept uuencode files a la   $uuencode file | sendmail user@domain  I'm guessing it'll accept MIME though. So what command can I use instead?


How to substract a layer from another in Photoshop CS6

I have basically a layer in Photoshop CS6 containing an "email" symbol image. It has a transparent background, and just a red email symbol on top:    Now I would like to subtract that red stuff to a white ellipse to get a white ellipse with a transparent email symbol in it.  I have tried creating another layer with an ellipse and searched all over Google for "how can I subtract two different layers" or whatever, none of my tries brought what I want :(  I don't if what I'm saying is precise enough or appropriate, first time here. Don't hesitate to ask if I forgot something!  Thanks for the help,  Florian


Is it completely against the Java way to create struct like objects?  class SomeData1 {     public int x;     public int y; }   I can see a class with accessors and mutators being more Java like.  class SomeData2 {     int getX();     void setX(int x);      int getY();     void setY(int y);      private int x;     private int y; }   The class from the first example is notationally convenient.  // a function in a class public int f(SomeData1 d) {     return (3 * d.x) / d.y; }   This is not as convenient.  // a function in a class public int f(SomeData2 d) {     return (3 * d.getX()) / d.getY(); }


In Arch Linux how can I find out which package to install that will contain file X?

I'm looking for a package that provides a specific binary, so I can install it. how can I search to find out what packages provide this binary? (note: I know there's at least one tool that does this, but I have forgotten its name.)


Using awk to sum the values of a column, based on the values of another column

I am trying to sum certain numbers in a column using awk. I would like to sum just column 3 of the "smiths" to get a total of 212. I can sum the whole column using awk but not just the "smiths". I have:  awk 'BEGIN {FS = "|"} ; {sum+=$3} END {print sum}' filename.txt   Also I am using putty. Thank you for any help.  smiths|Login|2 olivert|Login|10 denniss|Payroll|100 smiths|Time|200 smiths|Logout|10


I have a question: Does every vector space have an inner product?  I think, yes. But I failed to find an essential reason. If it does not exist, then give me a counterexample. Thanks.


My version of blender is not showing surface, wire, volume and halo options for materials,

Hi I am new to Blender and I am studying materials at the moment.  My version of Blender is not showing the attributes in full on the attribute editor. I can't see the surface, wire, volume and halo options, I can't see the diffuse and specular as such.


I'm a grade 12 math student, and this was one of the questions in one of the hardest modules. Recurrence relations are not actually in our syllabus, so I expect that the solution probably involves a neat way of eliminating terms, maybe even a telescoping series type of approach. I tried writing the equation as $ a_{n+2} - a_{n} = \frac{2}{a_{n+1}} $ and sought a relation between the terms. At first it felt like it was working, as $a_5  - a_3 = 3 - \frac{1}{3}$ and $a_6 - a_4  = 4 - \frac{1}{4}$ but then $a_7 - a_5  = 5 + \frac{1}{5}$ and after that the numbers cannot be expressed in this form


Making graph from network vector in QGIS?

I have a network of roads and I would like to obtain a graph made by edges, each of them delimited by a origin node and a end node, such as the picture shows.    I would like to obtain a table made of rows like this      "edge_id, origin_node_id, end_node_id, origin_node_X, origin_node_Y, end_node_X, end_node_Y"    for example, for the a12 edge: "a12, 48.1234, 50.0000, 48.1335, 49.1111", where the origin node 1 coordinates are (48.1234,50.0000) and the end node 2 coordinates are (48.1335,49.1111).  I used the field calculator with these expressions:     x_at(0),y_at(0),x_at(1),y_at(1)    to get "origin_node_X,origin_node_Y,end_node_X,end_node_Y".  Now I am searching for a way to obtain the id of nodes which obviously are in another layer.   So I think that I could need a field calculator expression or python code to relate nodes' layer with edges' layer. I think that "get_feature" could be useful but at the moment I did not find the right way to use it. Another option is to make a text output file with python.


Let $A$ be a $n \times n$ real matrix such that $$ A + A^t = 2I, $$ where $I$ is the $n \times n $ identity matrix. Prove that $\det(A) \geq 1$.  It is obvious that tr$(A) = n$. Furthermore, we also have that $$A - 2I = -A^t, $$ so we get that $$\det(A-2I) = (-1)^n \cdot \det(A).$$ Now, we let $\lambda_1, \lambda_2, \cdots, \lambda_n \in \mathbb{C}$ be the  eigenvalues of $A$, so we get that $$(\lambda_1 - 2)(\lambda_2 - 2) \cdots (\lambda_n - 2) = (-1)^n\lambda_1\lambda_2 \cdots \lambda_n, $$ but I couldn't derive anything about the product $\lambda_1\lambda_2 \cdots \lambda_n = \det(A)$ (the only known thing is $\lambda_1 + \cdots + \lambda_n = n$). Also, I tried the same approach for $2 \times 2$ and $3 \times 3 $ matrices, but it didn't lead to anything (especially since the eigenvalues can be complex numbers).


I need to cast single figures (1 to 9) to (01 to 09). I can think of a way but its big and ugly and cumbersome. I'm sure there must be some concise way. Any Suggestions


Which media player has seek preview with thumbnails?

I was looking for a good video player to replace VLC, something that is as good as vlc but has seek preview. I am tired of fast forwarding in vlc  EDIT: I meant seek preview with thumbnails


Add programmers.stackexchange.com to off-topic migration site list

When voting to close a question that should be migrated to another site, this list of sites is presented:   meta.stackoverflow.com superuser.com tex.stackexchange.com dba.stackexchange.com sharepoint.stackexchange.com   The site programmers.stackexchange.com should be added to the list. I don't have hard stats, but it seems like a common migration need.  FWIW, I encountered this when voting to close .


We know that Red, Yellow, Blue are primary colors. Any other color can be created by mixing these color. Graphical representation is below:    But when I began to learn about computers, I noticed that Green is used as Primary color instead of Yellow! Why is it like that, cause in above wheel Green is secondary color which can be made by mixing Blue & Yellow! Is there any scientific reason behind it?


make different content between domain and IP Server

I have Ubuntu 14.04 Server with Apache.  All I want if people enter to server IP like x.x.x.x forward to DocumentRoot /var/www/site1/html   And if enter to my domain address like site.com forward to DocumentRoot /var/www/site2/html   How could it possible?


What's the difference between an Application, a Process, and a Service?

How are these fundamentally different "things" on Windows? Aren't all running things Processes? It seems that every Application has an associated process that shuts it down if it is shut down. It looks like one process can manage more than one application instance. And Services, I'm not even sure what they are, exactly. Are they not processes themselves?


In Windows, I run TexWorks, and when I include a package that I do not already have installed, it asks me if I want to install that package.   In linux (Ubuntu), I have tried this in TexWorks, and TexStudio, but it simply results in error, package not found. Is there a way to get such functionality in Linux?  I tried installing texlive, but this did not evidently include that functionality.


Object Home Page Rebuilt as Custom Visualforce

Out of curiosity, has anyone run across a custom Visualforce page which essentially mimics an object home page? While I understand that custom buttons can't be added to the standard home pages, but can be added to the List Views, it would be really cool to be able a custom button to the object home page.


What does "Edit" mean in the review section of 'Suggested edit'?

I got an edit suggestion approved recently. I usually check the review results to see if something could have been done better and I found that one of the result was "Edit" (instead of the usual Approve or Rejected).    I checked the  and the , but I couldn't figure out what it means.  Was something added to the suggested edit by the user? Or is "Edit" an indication for further editing?


Let $f$ be nonconstant analytic in a domain $D$ and continuous on its closure. If $|f|$ is constant on $\partial D$, then $f$ has a zero in $D$.

This exercise has no assumption on the boundedness of $D$, hence $\bar{D}$ is not guaranteed to be compact. Would this be essential for the assertion to be true?  Suppose the nonconstant function $f(z)$ is analytic in a domain $D$ and continuous on its closure. If $|f(z)|$ is constant on the boundary of $D$, prove that $f(z)$ has a zero in $D$.   The obvious approach is to assume by contradiction that $f$ has no zero in $D$. Then we can define a nonconstant analytic function $1/f$ in $D$, which gives us by the Maximum Modulus Theorem that $1/|f|$ does not attain a maximum in $D$. But how can I use this to reach a contradiction? I am stuck here and I would greatly appreciate any help.


Are there any equations of the form $\dfrac{b}{a}=a.b$ other than $\dfrac{5}{2}=2.5$?   Denote $n=\lfloor\log_{10}b\rfloor+1,$ then  $$\frac{b}{a}=a.b=a+\frac{b}{10^n},\\ b=a^2+\frac{ab}{10^n},a^2<b<a^2+a<(a+1)^2, a=\lfloor\sqrt{b}\rfloor,10^n\mid ab.$$  I searched $b<10^5$ such that $10^n\mid ab$ and got a table: $$\begin{array}{|c|c|c|}\hline  b & a & d(b)=a^2+a b/10^n-b \\\hline  5 & 2 & 0 \\  75 & 8 & -5 \\  100 & 10 & 1 \\  400 & 20 & 8 \\  500 & 22 & -5 \\  640 & 25 & 1 \\  900 & 30 & 27 \\  2600 & 50 & -87 \\  5000 & 70 & -65 \\  6500 & 80 & -48 \\  9375 & 96 & -69 \\  10000 & 100 & 10 \\  25625 & 160 & 16 \\  31250 & 176 & -219 \\  40000 & 200 & 80 \\  62800 & 250 & -143 \\  65625 & 256 & 79 \\  76000 & 275 & -166 \\  90000 & 300 & 270 \\\hline \end{array}$$  $\frac{b}{a}=a.b$ iff $(b)=0$. For example, $d(640)=1\neq0$ and $\frac{640}{25}=25.6$.  Also we can search the solutions start with $a,$ then $n=\lfloor\log_{10}a \rfloor+1$ or $n=\lfloor\log_{10}a\rfloor+2$, $b=\frac{10^n a}{10^a-n}.$  I think someone has conducted research and gives a complete solution to this problem, because the problem is so interesting and natural, so I hope you can give me a reference or write an answer here, thanks in advance!


Allowing a user to submit and find errors is likely optimal compared to the cognitive load of searching a form to see why the button's disabled. However, this could be avoided by providing real-time validation feedback.  So then, which scenario is more user-friendly and prone to less fuss and errors?   Disable submit button until all the fields are filled out and valid. Shoe inline validation in real-time.  Don’t ever disable the submit button and only show validation errors after the user hits submit.    The forms are short in length - usually no more than 6-8 fields.


How to print the actual values of array from SQL queries?

I'm using a method getTableContent that fetch some values from the db and returns as String array. The methods goes as follows,   public static String[][] getTableContent(Connection con){      ResultSet rs = null;     Statement st = null;             String [][] data = null;      String sql = "select COF_NAME, SUP_ID, PRICE, SALES, TOTAL from COFFEES";      try {          st = myConn.createStatement();         rs =  st.executeQuery(sql);          if(rs.last()){              data = new String[rs.getRow()][5];             rs.beforeFirst();         }          int count =0;          while ( rs != null && rs.next() ){              data[count][0] =rs.getString(1);             data[count][1] =rs.getString(2);             data[count][2] =rs.getString(3);             data[count][3] =rs.getString(4);             data[count][4] =rs.getString(5);           }     }       catch (SQLException e) {          e.printStackTrace();     }      return data;         }   I get the table values in another array and trying to print as following,   String [][] myData =  getTableContent(conn);      for ( int i =0; i < myData.length; i++ ){          for (  int j =0; j < myData.length; j++ ){              System.out.print( (myData[j]) + " ");         }          System.out.println();     }   All I'm getting some machine values provided below as sample ,      [Ljava.lang.String;@314e4baf [Ljava.lang.String;@4cb71983    I used myData[j]).toString() but that doesn't help me. How can I improve the code ? There are no error in the program.


Using the cell fracture addon, I created many objects from my mesh. I want to have a rigid body physics on all of them. How would I copy one of the fractured pieces physics to all the pieces? I tired ctrl L and the copy attributes addon, but none of them have the option. Any help is great.


Could a citizen of two countries eligible for 90/180 Schengen stays legally remain in the Schengen area forever through repeat visits?

Assume that a person (not me, I only hold a single citizenship :) has a double citizenship in countries such as the US, Singapore, Australia, Japan, etc, which are eligible for 90/180 visa-free stays in the Schengen area. Could they officially remain in the Schengen area indefinitely by taking a trip to (say) the UK every 89 days?


Sulu wasn't the first homosexual character on Star Trek was he?

When Star Trek Beyond revealed Sulu to be gay it made all the news like it was some sort of first occurrence. But weren't there other homosexual characters on Star Trek previously?


TeXShop and Mac preview crashing when opening latex/beamer built pdfs

After updating to Sierra 10.12.4 last week, TeXShop crashes:   when opening an existing .tex document that has a pdf associated to it immediately after compiling a new document, i.e. as soon as a pdf is created.   Furthermore, preview crashes opening almost any pdf that has been created with TeXShop. There is virtually nothing on the internet about it, and the only solution seems to be a complete reinstall of MacOSX (so as to reinstall the supposedly broken preview), which I'd like to avoid if at all possible.  Someone else has described a similar issue, but has not received any responses ().  I would be very grateful for some help, as I can neither produce work, nor look at any at the moment. Many thanks!


Intuitive Approach to de Rham Cohomology

The intuition behind homology may be summarized in a sentence: to find objects without boundary which are not the boundary of an object. This has geometric meaning and explains the algebraic boundary operator $\partial$ - quotient of vector spaces procedure. On the other hand, the definition of de Rham cohomology comes always unprovided of such intuitive approach. My question is: how may be intuitively understood de Rham cohomology?  (Please see this related )


Can chicken not completely cooked then cooled be fully cooked later?

I cooked some chicken but didn't realise it hadn't completely cooked through. It then went in the fridge and a day later I cut through it to discover the problem.  Is it now safe to put that chicken in the oven to finish cooking it or am I risking major health issues?


When $\mathbb{A}^{n}_{k}$ is read as affine-n space over a field k...

$\mathbb{A}^{n}_{k}$ is read as "n-dimensional affine space over the field k" and an affine space is a set and action by a vector space. Should I interpret that $\mathbb{A}^{n}_{k}$ is shorthand meaning the set is $k^{n}$, the vector space is the coordinate space $k^{n}$ and the scalars of the coordinate space are in the field that is $k$? The confusing thing is it could indicate another type of affine space:  a set and action by n-dimensional vector space over the field $k$.  a set $k^{n}$ with action by a vector space that does or doesn't have $k$ as the scalars.   Another point is the dimension of an affine space is defined as the dimension of the vector space of its translations.


In Star Wars: "The Force Awakens," how could this lightsaber have turned up where it did?

In The Force Awakens:      Maz Kanata tells Rey that the lightsaber she just picked up and had visions from belonged to Anakin and Luke and now it's hers.   The lightsaber that Luke got from Obi-Wan Kenobi in A New Hope was lost/destroyed when Luke fought Darth Vader in Star Wars: The Empire Strikes Back.  In Return of the Jedi Darth Vader compliments Luke on building a new lightsaber and tells Luke that his skills are now complete.   How could that possibly be the lightsaber that Anakin used originally, and that was then passed on to Luke, when that lightsaber no longer exists?  Writers notes, director's notes, interviews, cast interviews, etc. are welcome. Thanks.


Is it worth safely removing devices in Windows Vista and above

I have just read that in Windows Vista and above, when you "Safely Remove" a device the USB port is not disabled and data can still be transferred. I know that you can change this behavior so that the port is disabled, but without this 'fix' is there any point in safely removing devices?


How do I select booting from a USB Flash drive to reinstall Kubuntu?

I have Kubuntu 18.04 installed on my PC, but it is corrupted, soI want to reinstall. I plugged my USB and tried that, but instead of booting into the installer app, it always runs the prior installation of Kubuntu from the internal drive instead.   When I turn on the PC, the bios says the normal stuff about booting, like "Run Kubuntu", "Recovery mode", "advanced" and these stuff. Last time when I tried to install Kubuntu I selected the "Run Kubuntu" button, so this time around I'm selecting the same button but it doesn't load up the installation screen.   I can provide more info when needed.


I am new to Linux and Ubuntu.  I was trying to upgrade pip but ran into this...  $ sudo pip install --upgrade pip Cannot fetch index base URL https://pypi.python.org/simple/ Downloading/unpacking pip from https://pypi.python.org/packages/py2.py3/p/pip/pip-7.1.0-py2.py3-none-any.whl#md5=b108384a762825ec20345bb9b5b7209f   Downloading pip-7.1.0-py2.py3-none-any.whl (1.1MB): 1.1MB downloaded Installing collected packages: pip   Found existing installation: pip 1.5.4     Not uninstalling pip at /usr/lib/python2.7/dist-packages, owned by OS Successfully installed pip Cleaning up...   Any idea why?


Symbols not found for architecture x86_64 Linker Issue

I'm compiling and linking my code with g++. I created a generic TimeSpan<T> class and now I am instantiating it in TimeMachine.cpp. Here is that class:  #include <iostream> #include "TimeSpan.h" using namespace std;  int main() {     TimeSpan<int> t;     return 0; }   When I run g++ --std=c++14 TimeMachine.cpp I get the error message:  Undefined symbols for architecture x86_64:   "TimeSpan<int>::TimeSpan()", referenced from:       _main in TimeMachine.cpp.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)   Yet in TimeSpan.h, I defined the TimeSpan() symbol. Please help.  Edit: here's TimeSpan.h:  #ifndef CSS342LAB1_TIMESPAN_H #define CSS342LAB1_TIMESPAN_H  #include <iostream> using namespace std;  template<class T> class TimeSpan {     friend ostream& operator <<(ostream &outStream, const TimeSpan &duration);     friend istream& operator >>(istream &inStream, TimeSpan &duration);  public:     //     // Constructors and destructors      TimeSpan();     TimeSpan(T seconds);     TimeSpan(T minutes, T seconds);     TimeSpan(T hours, T minutes, T seconds);     //~TimeSpan();     //     //getters and setters     int getHours() const;     int getMinutes() const;     int getSeconds() const;     bool setTime(int hours, int minutes, int seconds);     //     // operator overload     bool operator==(const TimeSpan &duration) const;     bool operator!=(const TimeSpan &duration) const;      friend ostream& operator <<(ostream &outStream, const TimeSpan &duration);     friend istream& operator >>(istream &inStream, TimeSpan &duration); private:     int seconds;     int minutes;     int hours; };  #endif //CSS342LAB1_TIMESPAN_H


Putting delicate computer parts with clothes as carry on in airport?

Bringing my computer with me, I'm gonna strip out pretty much most of the important things in my computer, put it in a anti static bag then wrapping it in my clothes in my luggage   Its gonna be carry on, so of course I'm gonna treat it with delicate care except for the chassis which will be airport shipping, I know the risk, but I'm gonna bubble wrap with MAYBE some foam and put it in a separate luggage by itself  Probably only the motherboard and CPU will be left in the chassis depending on how big it is   Is this ok or is this not safe enough for my harddrive/GPU etc? Please help me out, its my first time traveling w/ a desktop  Also do I have to take out the computer parts when they are scanning bags etc  I'll also be putting my monitor in my backpack along with keyboards and other accessories, I fear this may be a hassle when they scan...  Didn't know where else to ask this question lol


Why does series[0] and series[0:1] yield different results?


Error: A strongly-named assembly is required

I have a Windows forms project (VS 2005, .net 2.0). The solution has references to 9 projects. Everything works and compiles fine on one of my computers. When I move it to a second computer, 8 out of the 9 project compile with no problem. When I try to compile the 9th project (the main project for the application - produces the .exe file to execute the application), I get the following error:   'Error 3: A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)'   The file location for the error is is listed as "C:\PATH-TO-APP\LC".   I have checked in the project properties and all of the projects are set to build in Debug mode, none of them are supposed to be signed. In the project that is failing, the only assembly that it references that is not in any of the other projects is Microsoft.VisualBasic (a .net 2.0 assembly). So I am at a loss to find what ids causing this error (the file referenced above in the error message - "LC" - does not exist.   Anyone know how I can force the project to accept all unsigned assemblies, or to determine which assembly is the culprit?  The only meaningful difference between the dev environments between the dev environment where this worked and the current one is that the first was XP and this is Vista64. However, a colleague of mine who is using XP is getting the same error.  Third-party assemblies being used:   ComponentFactory.Krypton.Toolkit ComponentFactory.Krypton.Navigator VistaDB.NET20   All of these are referenced in other projects in the solution which build with no problems, so it doesn't look like these are the problem.  So far I have tried deleting the suo file, Rebuild All, unloading and reloading projects from the solution, removing and readding referenced assemblies. Nothing has worked.


What is the optimal distance function for individuals when attributes are nominal?

I do not know which distance function between individuals to use in case of nominal (unordered categorical) attributes. I was reading some textbook and they suggest Simple Matching function but some books suggest that I should change the nominal to binary attributes and use Jaccard Coefficient. However, what if the values of the nominal attribute is not 2? what if there are three or four values in that attribute?  Which distance function should I use for nominal attributes?


I wasn't able to find  option in the app to delete our wrong answers on other's question.


14.04 LTS | Log Files | Debugging Unity, Gnome, XSession

I'm unable to fix my Ubuntu desktop (GUI only). See:      The issue is in the areas of Unity / Gnome / Xsession.  How should I debug? Which are the useful log files I can look into and post to this forum for help?


How can have a imported image retain the square pixels at close magnification?

Currently my imported image (900x900), when zoomed into it very close, has the pixels blurry (like when you zoom into images in a photo viewer), but is it possible to have them stay square like when editing a image in ms paint?


PPAs will not install "sudo: add-apt-repository: command not found"

I am trying to get the Linux distro "PIXEL" to install some PPAS for Wine, and I have run into a issue where it will not install because of the following error:   sudo: add-apt-repository: command not found   I am trying to install wine using the PPA add-apt-repository ppa:ubuntu-wine/ppa and I would like some assistance doing so.


Why a body can not be accelerated to speed of light in vacuum?

Well i know that it needs infinite energy..but the term infinite is itself not physical so i am not satisfied with this answer  ...but what would happen if we provide a constant acceleration to an object for hundreds of year ...isn't its velocity will go on increasing with time ?? some told me as velocity increases ...so time dilation occurs and time slows down ...so acceleration will not work ...but i didn't get it ..its all messed up ...please help ..  Can i get an answer only in term of forces and time i mean without using infinite energy concept ...i hope you will get what i wanna ask about


Is it possible to setup a virtual machine inside another virtual machine

I've been playing with virtual machines lately, and I wondered if I could run a virtual machine inside a virtual machine.   Is this possible? Is it practical?


Help! Lost admin password for Mac OS X server 10.9

While our netwrokd administrator was admitted to a hospital for an emergency surgery (he is now in coma), being as a temporary delegate, I was ordered by our Institution to turn OFF Mail funciton and to change the admin account password for Mac OS X Server 10.9.2 for security reasons. While changing the password, I took a memo for the new password, but later it turned out to be wrong! My stupidity.  After restart, I cannot open Server.app that controls Mail service because it requires the unknown new password.  Currently Mail service is OFF (it had been turned OFF for security reason before password change), but I' going to need to turn it ON soon after the order is lifted. To do that, however, I need the new password. Luckily, the server still provides access to the Internet. Thus I can still ask you.  Thanks to the following instruction, I find a way to reset the admin password.   I carried out a test of the same procedure on another Mac (10.9.2). In the test, although resetpassword command in Recovery Mode successfully updated the account password, it didn't update default Keychain password at the same time.   After restart, the OS asks if I want to update 'default Kecyhain password'. To update it, I need to enter the older Keychain password that I don't know. If I skip the update, Keychain asks passwords repeatedly, and without the old Keychain password, I can't launch and open Keychain Access.  Then I found this. It says you can reset the Keychain password by Keychain First Aid.   However, in my test, Keychain First Aid still asks the older Keychain password, so this doesn't work.  In short, I can update the admin password, but not the Keychain password without knowing the old password. So if I carry out this on the server machine, The Server won't run properly and would ask passwords over and over again.  On the test Mac I tried to activate root user, hoping the root user could change Keychain password without knowing the old Keychain password. But I couldn't access to the "login" Keychain of the account in question from the root account.  Does anyone know a work-around?  Is there a way to reset the default Keychain password without the old Keychain password?  Or, is there a way to know the old Keychain password? Probably not.  Or, do you think TimeMachine can undo my failure in changing the admin password and recover the old admin password?  During this mail shutdown period, I assume many people have asked his health status by email. It's an emergency and I really need your help!


Etiquette to recontact the editor when he says the he will give the news as soon as he has some

Assume that the last time that one has contacted the editor of a journal (about 10 months ago) to obtain the progress of submitted manuscript, the editor has said that he will give news as soon as he has some news.  In this circumstance isn't it rude to recontact him again to obtain news from the progress of the manuscript?  Other relevant informations: (1) The editor is very responsive and the journal is reputated.   (2) I have submitted my paper 26 months ago to this journal.  Edit: The question  is relevant but the difference between my question and that one is that since my last inquiry 10 months has passed but in that question 2 months has passed.


Is the following usage of the verb "be" correct? Why do people keep telling me it's wrong?

There is a plethora of other examples of blatant mistreatment which I'll gladly share with anyone who cares enough to listen.  Should I use the plural instead?  There are a plethora of other examples of blatant mistreatment which I'll gladly share with anyone who cares enough to listen.


Batch Normalization or just z-normalization as a Nonlinearity

It is already common to do something "like"**(see asterisks below) z-standardization of the outputs of one neural network layer before passing it to the next.  z-standardization would transform the columns of $H_{\ell}W_{\ell} + \beta_{\ell}$ (where $\ell$ denotes a layer and $H$ denotes a "hidden" matrix containing the values of hidden neurons, or the input data) to have 0 mean and unit standard deviation.    **In reality, batchnorm is used, which incorporates learnable weights to the standardization function to help the model "undo" or "modify" the deterministic nature of z-scaling.  (1) I observe that z-scoring is a nonlinear function in $W_{\ell}$, because we must compute the sample standard deviation of $H_{\ell}W_{\ell} + \beta_{\ell}$, which involves a square root.  It follows that batch-norm will be nonlinear in the previous layer's weights as well.  (2) Thus, if we do batch norm, we do not need to use a common activation function such as ReLU or tanh to prevent the whole "stack" (composition) of affine layers from collapsing into one affine layer.  Meanwhile, the community generally believes batch norm is "good".  Thus, why not just use batch norm between layers and free ourselves from choosing between ReLU, ELU, etc. etc.?  ^^ that is the purpose of my question  what follows is an observation of why my question might also be useful:  (3) Then, we may observe all the questions online about whether batch norm should be used before or after the activation function.  But couldn't we just use batch norm and avoid this question?  Insights and/or references on this specific topic would be much appreciated!  Thanks


ArcGIS Raster Calculator error 000539 ImportError: No module named numpy?

I am running ArcGIS 10.2.1 on Win7 64bit. I have finished doing an NDVI, and after defining a vegetation presence threshold at 0.05, opened the Raster Calculator (via Map Algebra in the Arc Toolbox) to generate a new raster with a 0 value for no vegetation and a 1 value for vegetation. I'm getting the following error:  Executing: RasterCalculator ""NDVI_ik_06.tif" > 0.05"  ERROR 000539: Error running expression: rcexec()  Traceback (most recent call last):   File "<expression>", line 1, in <module>   File "<string>", line 2, in rcexec   File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\__init__.py", line 24, in <module>     from arcpy.toolbox import *   File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\toolbox.py", line 356, in <module>     from management import Graph, GraphTemplate   File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\management.py", line 22, in <module>     import _management   File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\_management.py", line 14, in <module>     import _graph   File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\_graph.py", line 27, in <module>     import numpy ImportError: No module named numpy  Failed to execute (RasterCalculator). Failed at Tue Apr 07 11:24:48 2015 (Elapsed Time: 0.09 seconds)   Any ideas?


Evaluate $\int \dfrac{1}{\sqrt{x-1}+\sqrt{x}+\sqrt{x+1}} \ \mathrm{d}x$

Evaluate $$\int \dfrac{1}{\sqrt{x-1}+\sqrt{x}+\sqrt{x+1}} \ \mathrm{d}x$$  I tried rationalizing the denominator by twice multiplying, but it didn't do any good. I also tried trig substitutions but that too didn't work out. Can anyone help please?


I can find references to each in many online dictionaries, but few will reference both of them. So the question remains:  What is with the difference in spelling between "Locator" and "Locater"? Is one proper and the other a popular misspelling, or is there a nuanced difference between the two words? (Or, even more interestingly, both)


How do spells work in D&D Essentials Starter kit?

I have this starter kit. I first made a fighter (easy in my mind), but now I am making a Wizard. I don't understand how the Hypnotism spell works. I don't throw anything?      Attack:_ (Intelligence) VS Will   My wizard has Intelligence 18.  For example, I use the spell hypnotism on a gnome and then gnome tries to use WILL to Defend? And I don't roll any dice? Does this also mean when using magic missiles only the creature is rolling the dice?


I like most computer users, have many Windows based programs. Can these be operated under Ubuntu and if so what is required. Thanks for your help Chris


I'm knew to this site spice so please be gentle :)  I've installed LTSpice (LTspice XVII for OS X, Build Oct 25 2018, 14:56:22 US Pacific) on a MacBook Pro running macOS High Sierra 10.13.6.    When I try to add anything to the schematic the display does not refresh and I get the remnants of moving the component across my schematic.  See the image for what I mean.  Hopefully someone can help me on this as I prefer to run a native tool rather than something in a vm.  Thanks!


Communicating with micro USB to Ethernet

I am trying to communicate with an ethernet enabled devices from my Android phone. My phone has Android 2.3.6 and the device I am trying to communicate with has a mini web server running on it. The device has a single RJ45 port for communication with the outside word. Is it possible for me to connect my Android phone using a  micro usb to Ethernet adapter and talk to the mini web server? If so, could you kindly show me how to go about this.  I have connected my Nexus One  and tried to enable USB tethering but it doesn't work. I was reading an article on ADB but it doesn't show how to establish connection and assign address to an adapter.


Let $f$ continuous at $[0,2]$ with $f(0)=f(2)$.Check if there are $x_{1},x_{2} \in [0,2]$ such that $x_{1}-x_{2}=1$ and $f(x_{1})=f(x_{2})$ . How can I do this?


You can normally ask anonymously on any (all other?) SE sites by just posting a question.  However, Meta says:     Oops! Your question couldn't be submitted because:         name and email, or your OpenID, are missing      (And what's the "name and email" doing there? You can't enter them.)


When an object falls inside the event horizon with already huge terminal velocity directed towards the black hole, the gravity must accelerate to near light speeds which should  almost increase its relativistic mass to infinity, according to einsteins eqn So does it mean that every object that falls into a black hole becomes a black hole itself?


Can I install Windows OS (Windows 7) on a removable USB hard drive?

I wanted to take a sneak peek at Windows 7 so I thought of installing it. I have Windows Vista on my laptop which came pre-installed with it. I didn't want to mess with it.  So I created a partition (20 GB) in my USB external hard disk and tried to install Windows 7 on that partition. But when I booted from a Windows 7 DVD and selected the target partition on USB hard disk, it said it cannot be installed.  Is there any way to install Windows on an external USB hard disk?


What does BREAD stand for while drafting?

I was just reading , but as a new player I'm not familiar with a lot of jargon. The accepted answer mentions that BREAD is important when drafting:      "BREAD" is key, but there is another technique that helps a lot in most Limited formats:   Could someone explain what is meant by BREAD in this context?


I use the VPN client  to redirect all the traffic to my VPN. However, if Tunnelblick is down, or while it's connecting to my VPN at startup, my trafic is not redirected to my VPN.  This is not an acceptable solution to me, and I would like to know how I can ensure that either my traffic is redirected to my VPN, or I can't connect to the internet.  Useful information:   I am using Tunnelblick 3.6.3; My computer is running OS X 10.11.5, El Capitan; I control the server, and am using , but I can accept to change to another software to solve my problem.


Prove non-constant, irreducible polynomials are primitive

I am trying to prove the following statement.     Let $R$ be an integral domain. Prove that a non-constant irreducible polynomial in $R[x]$ is primitive.   This is what I have done so far:  Let $f\in R[x]$ be irreducible. Then there exists $g,h\in R[x]$ such that   $f=gh \implies f\sim g$ or $f\sim h$  Wlog, assume $f\sim g \implies h\in R[x]^X$  Let $g=a_nx^n+...+a_0$, where $n>0$  Thus, $C(f)=C(gh)=gcd(ha_n,...,ha_0)$ so $h$ is a common divisor for $f$.  It is at this stage that I don't know how to proceed further with the proof. Any help would be appreciated.


What is an example of a transparent matter with refractive index less than 1?

I am looking for a concrete example of a transparent matter and wave length of a radiation at which the  (if they exist, of course). There are several similar questions around, e.g.  however I have not found an answer to my question.


Our new dryer has 3 prongs vs. 4. We are changing to the new 3 prong dryer outlet, but want to make sure we are grounding. The wires coming from the wall our white, red & black - the the copper wire. Do I need to ground it?? Thank you! Molly


$\lim_{n \rightarrow\infty} ~ x_{n+1} - x_n= c , c > 0$ . Then, is $\{x_n/n\}$ convergent?

If $\{x_n\}$ is a sequence which satisfies $\lim_{n \rightarrow\infty} ~ x_{n+1} - x_n= c$  where $c$ is a real positive number. Then what can be said about the convergence/ divergence, boundedness/ unboundedness of $\{x_n/n\}$.  Attempt: $\lim_{n \rightarrow\infty} ~ x_{n+1} - x_n= c$ where $c >0$  => $x_n$ is unbounded and divergent.  However, I am stuck on how to relate this to convergence/divergence of $x_n/n$ . Thanks for the help.


Php header refresh not working on chrome

I have a php script that outputs a confirmation text and redirects using header to a certain page after i log in. The script is working fine on mozilla and internet explorer but fails to redirect me on chrome and opera without showing any warnings or errors (even though i enabled them in php ini). I also tried a simple redirect like this:  <?php header("refresh:2 url=http://localhost/KKK/home.php"); ?>   It works on mozilla and ie but fails on the other two. Redirecting using only location without refresh is working on all of them. What is the problem? Thanks in advance.


The use of "whoever" or "whomever" in complex sentence

Should the following say whoever or whomever. And why?      Each of us is free to pretend to be whoever/whomever we wish to be.   This sentence needs an object, right?


Cross-referenced equation never becomes defined

I have a strange problem with cross-referencing my equations: no matter how often I run pdflatex they stay undefined. Other references do get resolved.  Is there something wrong with the way I label my equation? Pdflatex does not complain about it (other than reporting it is undefined when trying to reference it).  Edit: As requested below I made a minimal working example. From this I learned that the problem seems to be a conflict between the amsmath and ntheorem packages. Not including one of these solves the problem.  Consider for example the following example:  \documentclass{article} \usepackage{amsmath} \usepackage[thmmarks]{ntheorem}  \begin{document}  \section{My Section} \label{sec:MySection}  \begin{equation} \label{eq:MyEquation} a = b \end{equation}  Reference my section \ref{sec:MySection}. Reference my equation \ref{eq:MyEquation}.  \end{document}   Which is rendered as:


I am looking for  (or any similar package) available for Ubuntu 19.10. Is anybody aware of anything ?  Thanks in advance


I really need someone to help me. I'm trying to learn Object C. But I don't understand the asterisk movement. I will explain myself:  NSDate *date = [NSDate date]   Here  we ask to the date method to create an NSdate instance and stored in date. Is that correct?  If I'm in the @interface and I do:  @interface Gretter : NSObject {  NSString  *greetings }   Here we declare  Gretter subclass belonging to the NSObject superclass and we add the method greetings to the subclass greeting Is that correct?  What i really don't understand is:  NSString* greeting = @"hello"   Why is the asterisk attach to the NSString* here??  This are 3 separate example and not part of the same program. I just want to understand why the asterisk* change position   Thank you very much  CL


Object[] variableName; vs Object variableName[];

Working in Java, what is the difference between using  Object[] variableName;   and using:  Object variableName[];   Does it have the exact same effect on compilation and run? Or is there a difference?


Is it possible to reference the most recently modified file in a command line argument?

I frequently download PDF files with heinous numeric file names from my browser.  These automatically go into ~/Downloads.  Ideally I would like to just be able to open these files with:  evince "the most recently modified file"   without having to open ~/Downloads to find the file name.  Is there a simple way to specify "the most recently modified file" in bash?  NOTE: I know that it is possible to do this, but ideally I am looking for a solution that would be simpler than ls -t'ing ~/Downloads to check the name.


I have a DEM that was made from UAV/photogrammetry techniques by Maps Made easy. In QGIS I loaded the DEM and then made a slope raster layer. My values go from 0 to a huge number like 23456e+07. Does that seem right? The highest slope on the terrain is not much more than 28%. I think the layer is spitting out wrong data. Do I need to enter a Z factor? Also, when I enter my formula in raster calculator ("slope@1" > 28) * 0 + ("slope@1" < 28) * 1 it turns my whole image black.  My end goal is to display a map with the georeferenced jpeg with areas over 28% slope shaded in red.


wget http://www.honeyd.org/uploads/honeyd-1.5c.tar.gz  --2018-01-04 02:20:07--  http://www.honeyd.org/uploads/honeyd-1.5c.tar.gz Resolving www.honeyd.org (www.honeyd.org)... 207.158.15.70 Connecting to www.honeyd.org (www.honeyd.org)[207.158.15.70]:80... connected. HTTP sent request, awaiting response... 200 OK Length: 915465 (894K) [application/x-gzip] Saving to: “honeyd-1.5c.tar.gz”  honeyd-1.5c.tar.gz  100%[===================>] 14,01K  30,8KB/s       2018-01-04 02:24:53 (54.6 KB/s) - ‘honeyd-1.5c.tar.gz’ saved [915465/915465]    bzip2: (stdin) is not a bzip2 file. tar: Child returned status 2 tar: Error is not recoverable: exiting now


Here's a quote from my textbook:  Although reallocating an array is an O(n) operation, it is amortized over n items, so the cost per item is O(1).  I can't find a clear definition for what amortized means in this context.


This may be a strange question; but I've read and re-read the chapter in my textbook  on what exactly a branch of a logarithm is and am having trouble understanding.   What is a branch of a logarithmic function? And what is a branch cut- how does it relate to the analyticity of a function?


Nested for-loops: how to build tuple from all indices?

Say I have 4 arrays:  a = [1,2,3] b = [1,2,3,4] c = [1,2,3,4,5] d = [1,2,3,4,5,6]   I could iterate like so:  tups = []  for i in a:     for j in b:         for k in c:             for l in d:                 t = i,j,k,l                 tups.append(t)   tups would then be an array of tuples and  will look something like this:  1,1,1,1 1,1,1,2 1,1,1,3 ... 1,1,1,6 ...   This seems rather long winded and I feel that there should be a faster/more efficient way of doing this, but I'm not really a python expert.  How can I make this faster, without looping over each array? Is there some functional approach which I can use?


How to find $\underset{f \in M}{inf} \underset{x \in [0,1]}{sup} \frac{x f(x)}{\int\limits_{0}^{1} f(t)dt} $?

Suppose, that M is a set of decreasing functions on a segment [0,1], such that $f(1) = 0$ and I need to find:  $$\underset{f \in M}{inf} \underset{x \in [0,1]}{sup} \frac{x f(x)}{\int\limits_{0}^{1} f(t)dt} $$  I guess, that answer is 0, but I don't know how to prove it. This is my reasoning:   1) let's notice that $xf(x) \geqslant 0, x\in [0,1]$   2) and $\int\limits_{0}^{1} f(t)dt \geqslant 0$, because $F(1) - F(0) > 0$  3) than $\frac{x f(x)}{\int\limits_{0}^{1} f(t)dt} \geqslant 0$  After this step, am I right that I must find a sequence of functions $\{f\}_i$ that $\underset{i \rightarrow \infty}{lim}$ $\underset{x \in [0,1]}{max} f_i = 0$ to prove the statement?


I have two SSD disks of 256GB and I want to create a single spanning volume of 512GB. I am using Windows 10. What I want to know is how will Windows handle this under the hood.  Will the first disk fill up before the second one starts being used, or will Windows use both disks. For example, if I have 256GB of data on the spanning volume, will it be divided to 128GB on first and 128GB on second physical disk or will it all be on the first disk with the second disk empty? Would this behavior be any different if I were using two HDDs?


Is there a pattern to which Star Trek ships get the definite article?

Some ships in Star Trek are referred to with definite articles. "The Enterprise", "The Defiant". Other ships are referred to without them. "Voyager", "Enterprise". Is there a pattern to or explanation for this behavior?


I'm taking several images of my company products, and  what I considered the best shot. However, it has a sort of "rippling effect", which is more clearly visible when it's not viewed full screen.    Why does this happened?  I'm taking the picture using a 15 mp smartphone camera, if that helps.


I built this 2 layer mob spawner trappy thing in the air. It's 24x24 but no mobs spawn inside :( No one falls down and I've opened it up several times to check; nothing inside either.  It's a standard thingy with 4 water flows, forcing mobs to the middle and drop down. As said I've opened it and nothing inside  It's dark, 100% sealed with stone.


Hello I have problems with this exercise Consider the metric space $\mathbb{Q}$ of rational numbers with the Euclidean distance. Prove that: $K= \{ x\in \mathbb{Q} |  0 \leq{x} \leq{\sqrt[ ]{2}} \}$ is closed and bounded, yet not compact. My attempt: It is clear that it is closed and bounded To prove that is not compact, I have to prove there exists an open coating from which you cannot extract a finite subcoating. For example $U_n= \{ x\in \mathbb{Q} |  0 <x< \sqrt[ ]{2}-\dfrac{1}{n} \}$ I have to prove that they are open and cover $K$ How do I prove that they cover K?


Some one has carelessly down voted all my questions. It is too bad to do some one at least without a comment. is there any way to know who did this or what should do not happen this again?


Ellipsoids and positive semidefiniteness

For some $A,B \in \mathbb{S}_{++}^n$, let $$\mathcal{E}_A := \{x\in\mathbb{R}^n \mid x^T A^{-1}x \le 1\}$$ $$\mathcal{E}_B := \{x\in\mathbb{R}^n \mid x^T B^{-1}x \le 1\}$$ I'm trying to prove that $\mathcal{E}_A \subseteq \mathcal{E}_B \implies B \succeq A$. I've proven the other direction rather easily, but I'm stuck on the forward direction. I think the LHS has the interpretation that the ellipsoid represened by $A$ is fully contained in the one represented by $B$, but don't know how to go from there.


I need to test this code, but when writing a trigger, I get an invalid type

I need help. I am currently trying to test this code before uploading  public class CoreValuesExt { ApexPages.StandardController sc; public boolean readonly {get; set;} public Core_Values__c cv {get; set;} public integer countEdit = 1; public string buttonValue {get; set;} public integer recordScan;  public CoreValuesExt(ApexPages.StandardController sc) {     this.sc = sc;     cv = new Core_Values__c();     cv.Account__c = sc.getid();      readonly = true;     buttonValue = 'Edit';     recordScan = [SELECT COUNT() FROM Core_Values__c WHERE Account__c = :cv.Account__c];    if (recordScan != 0){    cv = [SELECT id, HSE__c, Professionalism_Integrity__c, Quality_Accuracy__c, Technology_Innovation__c, Timeliness__c, Value_for_money__c FROM Core_Values__c WHERE Account__c = :cv.Account__c];     }  }  public ApexPages.PageReference Save() {     return sc.Save(); }  public void ApplyAction() {     countEdit++;     Integer modolus = Math.mod(countEdit, 2);     String total = cv.HSE__c + cv.Professionalism_Integrity__c + cv.Quality_Accuracy__c + cv.Technology_Innovation__c + cv.Value_for_Money__c + cv.Timeliness__c;     if(modolus == 0)     {         readonly = false;         buttonValue = 'Save';     }     else     {         if(total != 'nullnullnullnullnullnull')            {         if (recordScan == 0){         insert cv;         readonly = true;         buttonValue = 'Edit';         }         else         {         update cv;         readonly = true;         buttonValue = 'Edit';         }         }     }    }   }  With this trigger.  trigger CoreValuesTrigger on Core_Values__c (before insert) {  Core_Values__c cvs = Trigger.new; CoreValuesExt.ApplyAction(cvs);  }   But when I try to save, I get a message saying:      Illegal assignment from List to   CoreValuesExt__Core_Values__c at line 3 column 1   "  How do I go through with this? I need help. Thanks


What software should I get for web development and design?

I've just installed Ubuntu 14.04 LTS on my brand new PC. Beforehand, I was doing web development at work only for when we needed it (like HTML emails etc.) so I haven't a full understanding as to what I fully need.. I know I need an IDE (Think I'm going with Sublime Text) but what do I fully need to officially publish websites (I plan to freelance on the side of work), I can code HTML and CSS really well and PHP only adequatly but it's all just been given to me so I don't have a full understanding as to what I need.. could someone help list types of software - not necessarily name software just types so image manipulation, IDE etc. etc.  Thanks for any help given  -Trey


When to use "Me" and "I" in comparative sentences?

He is taller than me/I?  Also, what is the difference between the two:  1 - I love you better than him. 2 - I love you better than he.


Convert json object from array of objects to string in JAVASCRIPT

I have a json like this:  [ {"numbers":["1","2","3","4"],      "city":"Tokio",      "color":"blue",     },      {"numbers":["5","6","7","8"],     "city":"Tokio",      "color":"green",     },      .........   ]  and i need to convert to another json with javascript like this: [ {"numbers":"1,2,3,4",      "city":"Tokio",      "color":"blue",     },      {"numbers":"5,6,7,8",     "city":"Tokio",      "color":"blue",     },      .........   ]  so, i need to convert the array of numbers in a string, any idea? Thanks in advance.


How to accurately measure Java method's running time?

I had to report the mean running time of a java method. I do it the following way  //method start long startTime = System.nanoTime(); //method body here ... long estimationTime = System.nanoTime() - startTime;  //method end   I run the method many many times, log the results and then report the mean and variance of running time in microseconds.  Here is the problem I got the following values (very large spikes exist)   note that other values are not zeros (zoom in reveals it)   My Questions:   What the main cause of these outliers (spikes)? How to report the running time accurately in a case like this?   Take a look at the method  body (For the curious)  TraceRecord resultRecord = new TraceRecord();     resultRecord.setTimeStamp(timeStamp);     resultRecord.setUserID(userID);      if (sensorValue.getSensorType() == SensorType.WIFI) {         ArrayList<WifiBaseStation> wifiAPsInRange = new ArrayList<WifiBaseStation>();          for (int i = 0; i < sensorValue.getBaseStationsIdentifiers().length; i++) {              WifiBaseStation wifiAP = new WifiBaseStation(sensorValue.getRepresentativeName(i),                     sensorValue.getBaseStationsIdentifier(i));             wifiAP.getSignalStrengthsList().add(sensorValue.getSignalValue(i));             wifiAPsInRange.add(wifiAP);         }         if (wifiAPsInRange.size() > 0) {              double averageLong = 0;             double averageLat = 0;             int matchedCount = 0;              for (WifiBaseStation bs : wifiAPsInRange) {                 WifiBaseStation bsFromTable = WiFiUniqueWarDrivingTable.Get(bs.getMacAddress());                 if (bsFromTable != null) {                     GPSLocation locationFromTable = bsFromTable.getBaseStationLocationUsingAverage();                     if (locationFromTable != null) {                         averageLong += locationFromTable.getLongitude();                         averageLat += locationFromTable.getLatitude();                         matchedCount++;                     }else{                         averageLong++;                         averageLong--;                     }                 }else{                     averageLong++;                     averageLong--;                 }              }              if (averageLong != 0) {                 averageLong /= matchedCount;             }             if (averageLat != 0) {                 averageLat /= matchedCount;             }              if (averageLat != 0 && averageLong != 0) {                 resultRecord.setLocationPoint(new GPSLocation(averageLong, averageLat, 0));             } else {                 return null;             }         }      }


Get Canon 17-55mm f/2.8 to replace 35mm Prime?

How does the quality and sharpness of image compare between the Canon  and the Canon   ?  I currently have the 35mm Prime, but was thinking of getting the 17-55mm as the f/2.8 is really attractive especially at 17mm for low light photography.   However cost is a concern, and if the image quality cannot compare to the 35mm prime, then I will have to rethink my decision.  I just got my APS-C EOS 70D 6 months ago and I love it so I definitely won't be changing that anytime soon. I'm still an amateur anyway.  Now I spoke to amazon customer service and my 35mm f/2 IS is barely 2 months old and they are willing to refund me the full cost which means I need to top about about 100Euros to get the 17-55mm f/2.8. Now this is definitely very attractive to me.  I also have a Canon 10-18mm which I got recently.   To be fair I like the idea of not having to change my lenses with the 17-55mm while having the f/2.8 at all focal lengths. But it's really costly.  I use my camera 95% for vacations and 5% for pictures of my 1/6 figures and hobby modelling i.e. Macro work.   I just don't know if I will regret giving back the prime and going for the 17-55mm f/2.8 but losing image quality in the process...  P.S. I tend to only buy Canon because I really like the in-camera lens correction profiles. I don't shoot RAW and never post-process my photos.


Special characters in graphics filenames

This is my third question in the series of transforming some (~167) documents from HTML to LaTeX.  The other questions were related to  and .  The original document have several graphics (~168) from different sources and different naming conventions.  I am using the graphicx package with the \includegraphics command. I don't have any problems with PNG and JPEG files with only letters, numbers and hyphens in their names.  I have a couple of GIF files (non-animated) which I attempted to solve using the receipt here:  . Unsuccessfully.  (Also command \epstopdfDeclareGraphicsRule fails in XeLaTeX, and as there are only two files I might rather convert them manually or with my conversion script.)  However I have a problem with PNG and JPEG files with special charactes, mainly those including a period . (includegraphics things that something.svg.png is an unrecognized .svg.png), an underscore _ (if I don't mask that character it attempts to shift to mathmode; if I mask it it does not find the file), and a percent sign % (as most of these files were downloaded from internet URL, special chars are masked using the percent sign and I preserved that convention in the filenames.  Again, with the masked percent '\%' '\includegraphics' does not find the file and without it the TeX engine assumes it is an end-of-line and the code breaks).  While I can still rename the files to something LaTeX and graphicx will handle, I still would like to now what are the correct way to mask special characters, and particularly ., _, and %.


How to find the values which would equate the division between two numbers of swapped digits without knowing anything further?

I'm having difficulty in assess this problem in a method without relying too much in too many trial and error. I have noticed there is a similar puzzle but in such it includes the value of one of the digits, but how do you solve this without knowing any other information?. The problem is as follows:  Using the expression from below: $$\frac{\overline{ASIR}}{\overline{RISA}}=4$$ Find $\overline{RI}-\overline{SA}$  The alternatives given in my book are as follows: $\begin{array}{ll} 1.&\textrm{75}\\ 2.&\textrm{-75}\\ 3.&\textrm{57}\\ 4.&\textrm{-57}\\ 5.&\textrm{-48}\\ \end{array}$ How exactly should this problem be assesed without just guessing?. Can someone help me with this?. So far the only thing which I could come up with was with the following: $\overline{ASIR}=4\overline{RISA}$ $1000A+100S+10I+R=4000R+400I+40S+4A$ From this it can be obtained: $996A+60S=3996R+390I$ But that's it. That's the place where I came stuck. From then on I think its just trial and error, but on looking on the equation all letters with the exception of R and A can take values between 1 to 9. So how to constrain those or to solve this thing in a more orderly manner?. Can someone help me with a step-by-step approach and the most detailed as possible?.


How can I make it so the move tool is on the object?

When I import a model from ROBLOX, it offsets the model from the tool if the model was not built in the center in ROBLOX. It is very frustrating to work with parts when the move/rotate tool is somewhere super distant in the world.    I haven't been able to find a solution to make it so that the tool is on the object like so:    What can I do so that I have the move/rotate tool centered to my model?


What is the advantage of using background image in a div instead of the classic  to create image with link?

I know the classic way of using  tag  <picture>             </picture>   But I found a website using instead just divs and using all the time background-image to display the image.  Is there any advantage or reasons they's do that ? It is because it's easier to put the two images that appear dynamically on hover 'bid now' and 'watch list'

               &nbsp;
               Bid Now           + Watchlist
   To check: it is taken from  ?  thanks


"INSERT IGNORE" vs "INSERT ... ON DUPLICATE KEY UPDATE"

While executing an INSERT statement with many rows, I want to skip duplicate entries that would otherwise cause failure. After some research, my options appear to be the use of either:  ON DUPLICATE KEY UPDATE which implies an unnecessary update at some cost, or INSERT IGNORE implies an invitation for other kinds of failure to slip in unannounced.  Am I right in these assumptions? What's the best way to simply skip the rows that might cause duplicates and just continue on to the other rows?


Suppose $\mathfrak m$ and $\mathfrak n$ are infinite cardinals. Does $2^{\mathfrak m}=2^{\mathfrak n}$ imply $\mathfrak m=\mathfrak n$?


Updating to a newer macOS version - how can I avoid potential pitfalls?

I'm running a Macbook Pro with macOS 10.7 Lion. I've already checked and it can be upgraded to the latest macOS version (Mojave). However, I want to keep as much as I can running the same (like applications), and I don't particularly care about which OS that I upgrade to. What should I look out for before I upgrade?  And if it turns out that upgrading would block me from using certain applications, would upgrading and also keeping a separate partition of macOS Lion be viable solution?


PCA: When using eigendecompostion instead of single value decompostion

If you want to perform a PCA, I guess that using SVD will always work. Eigendecomposition on the covariance matrix only works when your data is not high dimensional(so n > p). But I'm wonder if there are circumstances in practice where you would prefer eigendecompostion over SVD?


What the difference between LPCSTR, LPCTSTR and LPTSTR?  Why do we need to do this to convert a string into a LV / _ITEM structure variable pszText:    LV_DISPINFO dispinfo;   dispinfo.item.pszText = LPTSTR((LPCTSTR)string);


What is the joint distribution of $W_t$ and $\int_0^t W_s \,ds$?

The following question is taken from Mark Joshi's Quant Job Interview.     Question: What is the joint distribution of $W_t$ and $I(t)$ where $(W_t)_{t\geq 0}$ is Brownian motion and    $$I(t) = \int_0^t W_s \,ds?$$   When one wants to find joint density, one can start at joint CDF followed by partial differentiation with respect to each random variable.  In this case, however, we have  $$P(W_t \leq x, I(t) \leq y).$$ I do not know how to evaluate the probability above.  If they are independent, then I know how to evaluate the product as each of the random variable follows a normal distribution.


Select in specific days range even if there is no data

I have a database table that constantly getting data, more specifically every 30s. I need to select data in user specified days range. For example from 30 days in the past till now and it would return data even if there is no results available.  My table structure:  id | timstamps | io_a | io_b | ______________________________  1 | 2016-12-20 09:50:44| 1 | 0 |   For example i need to select from 2016-11-21 till today - 2016-12-20 and that i would get results even if there is no results.  Example:  2016-12-01 08:50:34 2016-12-02 08:50:34 2016-12-03 08:50:34 etc. till 2016-12-20 09:50:44   SOLVED:  used this query and it worked.  SELECT * FROM table WHERE timestamps > :laikasn AND timestamps < NOW() ORDER BY timestamps


How to write a counter for a .txt file in java

I have a program that I am writing and I have it completed but I keep receiving an error in a counter that I am using.  The purpose of the program is to build a plate stacker and I have finished that but need to write a counter based on the particular colors used (how many green plates...etc.).  As I know several classmates use this site to cheat, I will not post the code in whole but only the fragments I feel are necessary.  Below is an example of a statement that I am using to attempt to get a count of the beige plates in the text file.  The statement is in a while loop with the other colors having the same coding.  I also have initialized the counter (int beige = 0;) prior to this and outside of the while loop:           if(line == "beige")         {             beige++;         }   I have a System.out following these statements to display the count but it always comes up as 0 so I believe the problem is in this particular fragment.  If I need to send additional coding I will but I believe it is something to do with this or the placement of it in the while loop.


Here is what it looks like when I go to the "change brightness" option. I am booting in recovery mode because when I boot to normal Ubuntu mode there is nothing you can see on the screen, I can only hear the login sound.    So I thought I would need to change the  brightness but neither Fn + F6 works, nor do I get an option to change the brightness in the settings.


When posting a comment, is it possible to insert any formatting?

Am I missing something?  Or do comments not allow for any formatting (bold, bullets, hyperlinks, etc)?


I'm working on trying to create a website, and I want an image to appear to the right side of the title I have picked, but I cant find any way to align them that properly works.    .title {   background-color: white;   color: black;   width: 680px; }  .logo {   width: 100px;   height: 100px; }

     Computer Science A-Level Notes

     can anyone tell me what I can do?


Recover all files from SD card (not just known file extensions)

I've run PhotoRec and it was able to recover photos, mp3s and video files from my phone's "dead" SD card.  The fact that it recovered these files would suggest that other files (Android system files, apps, application data) should also be recoverable.   The ideal situation would be to recover the complete directory structure. Assuming this were possible, how would it be done?


Finding invertible polynomials in polynomial ring $\mathbb{Z}_{n}[x]$

Is there a method to find the units in $\mathbb{Z}_{n}[x]$?    For instance, take $\mathbb{Z}_{4}$. How do we find all invertible polynomials in $\mathbb{Z}_{4}[x]$? Clearly $2x+1$ is one. What about the others? Is there any method?


$\newcommand{\floor}[1]{\left\lfloor #1 \right\rfloor} $  Show that if $P(X_n = i/n)=1/n$ for every $i = 1,...,n$, then $X_n$ converges in distribution to a uniformly distributed random variable $X$.  Convergence in distribution is defined as   $$P(X_n \leq x) \rightarrow P(X \leq x)$$  and I have that a uniform distribution with parameters $a$ and $b$ implies that  $$P(X \leq x) = \frac{x-a}{b-a}$$  I cannot go any further however. I feel like I don't know anything about $X_n$ - I don't even know if it is continuous or discrete. What I can just say is that   $$P(X_n \leq x) = \sum_{i=1}^\floor{x} \frac{1}{n}$$  where $\floor{x}$  means rounding $x$ to the closest lower integer.


How should the "and/or" text of a card be interpreted? For example on a card like  the text reads:     Nahiri's Wrath deals damage equal to the total converted mana cost of the discarded cards to each of up to X target creatures and/or planeswalkers.   For the remainder of this question, let's fix X at 2 to keep things simple.  Should the "and/or" be interpreted such that the effect is applied to a combination of targets the player chooses. That is to say for Nahiri's Wrath the player could perform one of the following options:   Nahiri's Wrath deals damage to each of two target creatures. Nahiri's Wrath deals damage to each of two target planeswalkers. Nahiri's Wrath deals damage to each of one target creature and one target planeswalker.   Or should the card's effect be expanded and applied to both sides of the "and/or". With this interpretation the player would have to the following two options when playing Nahiri's Wrath:   Nahiri's Wrath deals damage to each of X target creatures and Nahiri's Wrath deals damage to each of X target planeswalkers Nahiri's Wrath deals damage to each of X target creatures or Nahiri's Wrath deals damage to each of X target planeswalkers   The confusion stems from  (which was formerly formerly worded using the same phrasing) where some commenters have said things like:     So this lets you do a total of 12 damage? 3 each to 2 target creatures AND 3 each to 2 target players, one of which could be a planeswalker? That's how the "and/or" works, right? You can choose. Otherwise it would just be "or"...


Which partitions to delete for uninstalling ubuntu?

I want to uninstall Ubuntu. Here is a screen shot of my partitions:  Please help me find out which partitions to delete. I installed Ubuntu in legacy and windows 10 is in UEFI.


I use LaTeX for text processing in conjunction with a template parser.  I want to do things, when there would be text to print. So I have  \newcommand{\zahltext}{%   %% here may be dragons, this is generated } \ifdefempty{\zahltext}{}{%else   \subsection{heading}   \zahltext }   My problem is, that "%% here be dragons" may be feed with ordinary text, but also with only comments, spaces and newlines. So \zahltext is not empty in the sense of "no characters", but in the sense of "nothing to output".  My question: is there a macro I did not find, that tells me "if LaTeX outputs \zahltext, there would be no output at all or just a paragraph-separator"?  EDITH:  \documentclass[12pt]{article} \usepackage{etoolbox} \begin{document} \newcommand{\zahltext}{}  \renewcommand{\zahltext}{% from Generator   %% here may be dragons, this is generated } \section{should be empty} \ifdefempty{\zahltext}{cool}{%else   \subsection{do not print}   \zahltext }  \renewcommand{\zahltext}{% from Generator   content } \section{should show} \ifdefempty{\zahltext}{}{%else   \subsection{found test}   \zahltext }  \renewcommand{\zahltext}{% from Generator  %% an empty line, could not help with that %% it comes from an extern source  } \section{should be empty!!} \ifdefempty{\zahltext}{}{%else   \subsection{but is not. No output whatsoever}   \zahltext }  \end{document}   my problem is with the third case. I want \zahltext to evaluate to "empty", because it creates no visible output.


Getting data returned into auto to new double

I am working with code that returns 2 doubles into an auto named "coordinate". I am inexperienced with with the auto type and all I am trying to do is get the data into "normal" variables that I could work with as I desire. Here is what I am working with :  auto coordinate = CoordinateToCoordinate(lat, lon, angle, dist);    The return is always something like "29.29324, -101.43932". How do I get each double into a variable I can work with?  It would be perfect to place them into 2 names like the ones below. After reading online and here I have been unable to find anything that (atleast on my skill level) is enough to help me understand how to even start.  double latitude; double longitude;   Edit :  This is most of the code where I am having trouble understanding - most of it is beyond my understanding, though I am trying.  std::pair<double,double> CoordinateToCoordinate (double latitude,                                                  double longitude,                                                  double angle,                                                  double meters) {   latitude = degreeToRadian(latitude);   longitude = degreeToRadian(longitude);   angle = degreeToRadian(angle);   meters *= 2 / earthDiameterMeters;    using namespace std;   pair<double,double> coordinate;    coordinate.first = asin((sin(latitude) * cos(meters))                         + (cos(latitude) * sin(meters) * cos(angle)));   coordinate.second = longitude + atan2((sin(angle) * sin(meters) * cos(latitude)),                                         cos(meters) - (sin(latitude) * sin(coordinate.first)));    coordinate.first = radianToDegree(coordinate.first);   coordinate.second = radianToDegree(coordinate.second);    return coordinate; }


What oil to use when cooking steak, and what difference does it make?

When cooking steak, I have always been told groundnut oil is the best to use. But what difference does it make? Is it the best? And if it is the best, what's the next best?


Can the real part of an entire function be bounded above by a polynomial?

Let $f:\mathbb{C}\to \mathbb{C}$ be an entire function such that $Re(f)\le |p(z)|$ for some polynomial, can we derive that $f(z)$ is a polynomial.  If $p(z)$ is constant, then this can be shown by considering $e^f$. If we instead consider $|u(z)|\le |p(z)|$, then it can also be shown. But if we do not establish the lowerbound, then I cannot figure out how to generlize the proof.


Can I transfer my Xbox one online character to ps4

Is it possible to transfer my character from GTA 5 Online, which I played on XBOX One, to my Playstation 4?


Prevent my AdWords ads from showing on queries for my brand

I have noticed that when Google searching for a site like "nike" a google ad shows up for their website. Most people looking for the website will understandably click on the advert as it's the first link, however this will be costing the company money which seems like a waste as the first organic link (directly underneath) is their site.   When you buy ads with Google AdWords, is there a way to stop your ad showing when people search for your site or brand name?  Is it just the default behavior that the ads always show for brand searches?


I've been trying to center a couple of iframes on this page . However, every example I have seen I've tried and doesn't work. You can clearly see the parallax floating div that isn't centered and at the bottom the iframe for an html page is floating to the right and not centering as well.  Any help would be much appreciated.


Please give me feedback on my answer to this question. Question:  For all $x,y\in R$ define that $x\equiv y$ if $x^{2}=y^{2}$. Then $\equiv$ is an equivalence relation on $R$, there are infinitely many equivalence classes, one of them consists of one element and the rest consist of two elements. Answer: False, since;  $x\equiv y$   if $x^{2}=y^{2}$  on $R$  To show $\equiv$   is reflexive, we need to show that ,  $\forall x\in R:X\equiv x.$  Let $x\in R$,   $X\equiv x$   if $X^{2}=x^{2}$  , which is obvious.  $[x]\triangleq:\{y\in R/x\equiv y\}$  $[0]=[y\in R/0\equiv y\},$  when $y=0$,  Then $y^{2}=0^{2}=0$  Thus; there are not many infinity many equivalence classes.


I'm an Indonesian citizen. Do I need a visa for South Korea?

I'm an Indonesian citizen holding an US visa. My itinerary is USA -> China -> South Korea -> China -> USA. All within 2 weeks. Do I need to apply for a South Korean visa?


for my first year CS I need to know Shell Scripting, but I'm really terrible at this. I wrote this script for example  #!/bin/bash  [ $(whoami) != "root" ] && echo "Run as superuser" && exit 1  while getopts "ugb: " opt; do case $opt in  u) read -p "Wat is de naam van de user die je wilt toevoegen?: " username [ $username == ""] && echo "Geen usename meegegeven!" && exit 1 read -p "Wat is de groepsnaam voor de gebruiker?: " group_name [ "$(getent group $group_name)" == "" ] && echo "De groep bestaat niet, exiting" \ && exit 1 echo "adduser -m -g $group_name $username" create_softlink $group_name $username  g) read -p "Wat is de groepnaam voor de user?: " group_name [ "$(getent group $group_name)" != "" ] && echo "De groep bestaat, exiting" \ && exit 1 addgroup "$groupname" mk_shared_folder "$groupname"  b) BACKUP_FOLDER="/var/backup" [ ! -d "$BACKUP_FOLDER"] && mkdir -p "$BACKUP_FOLDER" [ -d "$SHARED_FOLDER/$1"] && echo "Shared folder bestaat niet" && exit 1 zip "$SHARED_FOLDER/$1" "$BACKUP_FOLDER/$1-$(date +"%m-%d-%y")"   Now I want to execute this script. For example making a user. In a simple script, you simply do ./scriptname.sh. But I don't know what the command is.  I'm sorry if this makes absolutely no sense. I'm really bad at this and barely understand any of it myself.  EDIT: my quesion has been flagged as a duplicate. However ./scriptname.sh will NOT run the script.