body1
stringlengths
20
4.1k
body2
stringlengths
23
4.09k
I don't know much about hardware. My PC has window 8 32-bit installed. And I want to buy a graphic card 2gb ddr3 but I'm confused that it says it has architecture of 64-bit in it. Does it install on 32-bit or should i go for it? Zotac Nvidia gt 610 2GB ddr3 -opengl 4.2 -64 bit -1066 MhZ
On PCIe 1.0, does 64 bits graphic card could be compatible with 32 bits OS (Windows 7 32 bits) ? Is there any restriction? Edit: Few peoples told in comments that bitness should not be an issue. If I understand well, it is only a question of is there any supported drivers for the specific OS (here Win 7 32 bits) ??? Edit2: I finally bought a 64bits graphic card with PCIe 1.0 interface and it work nicely on my Windows 7 32 bits... Thanks to all !!!
I am not using any programming language in particular, rather this is a University regular language assignment I have to do. To explain what I have to do is basically make an: infinite language Words must contain any number a's and b's, so no single character words words are palindromes to themselves so for example words I should get are "aabbaa","abba", "abbbba", "ababbaabbaba", "bbbaabbb" How would I approach making this regular expression?
That was an interview question that I was unable to answer: How to check that a string is a palindrome using regular expressions? p.s. There is already a question "" and it gives a lot of answers in different languages, but no answer that uses regular expressions.
In Minecraft, I usually play by myself in the single player game mode. Now I had to disable the internet access on my laptop because of an overload on internet usage. When playing Minecraft I searched for some pigs and horses to bring back to my city, but after an hour of looking around I only found a few chickens (that I happily murdered). Do animals spawn less frequently in offline mode or is this just sheer coincidence?
Are there any differences with regards to chunk generation or other settings in single-player vs server mode of equivalent versions? I have a map I'd like to host on a private server for my friend to play with me. However, when I'm on the road without ready internet, I'd like to play it single-player as well. Will this cause any issues, especially with chunk generation, drops, items, etc (i.e., getting a different chunk generated in server-mode than single-player would have created), or do all server-client version pairs (I'm using 1.6.2) use the same game code? The main point is that I don't want gameplay to change at all, between single-player and server mode.
I have the following code which I took from another site and was trying to adapt in order to plot a sin function and a cos function stacked up one on top of each other: \def\xs{1} \def\ys{6} \begin{tikzpicture}[domain=-3:5, xscale=\xs, yscale=\ys, >=latex] \def\tr{0.1} \def\ts{0.6} \def\al{1.3} \def\n{1.6} \def\I{0.3506} \def\ti{0.4071} \def\S{-0.1340} \def\Sangle{-42} \def\f1{0.8} % Function1 \draw[very thin,color=gray!30] (-3-0.2/\xs,0-0.2/\ys) grid[xstep=0.5, ystep=0.1] (5+0.2/\xs,0.7+0.2/\ys); \draw[->, line width=1pt] (-3,0) -- (5.25,0) node[below] {$r$}; \draw[->, line width=1pt] (-3,0) -- (-3,0.75) node[left] {$f_\phi$}; % function \draw [red,thick,smooth,domain=0:5] plot (\x, {cos(\x)}); % side decoration \draw[dashed] (\I,0) node[below] {$I$} -- (\I,\ti) -- (-3,\ti) node[left] {$u_i$}; \draw [decorate, decoration={brace, amplitude=4pt}] (-3.5,\tr) -- (-3.5,\ts) node [black,midway,left=3pt] {$\Delta$}; % texto \path[->, draw] (\I,\ti) to[out=0, in=180] ++(0.75,0.1) node[anchor=west, text ragged, text width=1.6cm, fill=white] {Point of interest}; \node[above] at (1,0.7) {Function $f_\phi$ definition}; % Function 2 \def\ys{3} \begin{scope}[yshift=-0.3cm, domain=0:10, >=latex, yscale=\ys] \draw[very thin,color=gray!30] (-3-0.2/\xs,-0.15-0.15*0.2/\ys) grid[xstep=0.5, ystep=0.03] (5+0.2/\xs,0.03+0.15*0.2/\ys); \draw[->, line width=1pt] (-3,-0.15) -- (5.25,-0.15) node[below] {$\log(\psi)$}; \draw[->, line width=1pt] (-3,-0.15) -- (-3,0.05) node[left] {$U'(\psi)$}; \draw [green,domain=0:5] plot (\x, {sin(\x)}); \node[left] at (-3,0) {$0$}; \draw[dashed] (\I,0.03) -- (\I,\S) -- (-3,\S) node[left] {$U'(I)$}; \path[->, draw] (\I,\S) to[out=-2, in=180] ++(1.75,0.02) node[anchor=west, fill=white] {$S$}; \node[above] at (1,0.03) {Function $F_\phi$ definition}; \end{scope} \end{tikzpicture} But I get lines!!! I have tried changing the domain range and the scale values. I don't really understand what's happening here! How can I get my functions to display? Thanks
I'm trying to plot a function with pgfplots for LaTeX. Unfortunately, pgfplots plots the function incorrectly. Here is the LaTeX code I use: \begin{figure}[H] \centering \begin{tikzpicture} \begin{axis}[xlabel=Gameplays,ylabel=Rating] \addplot+[gray,domain=1:30] {0.5 + 0.5 * ((atan(x) * 2 / pi)^11.79)}; \end{axis} \end{tikzpicture} \caption{Omzetten van aantal gameplays tot impliciete rating} \label{fig:omzetten_impliciete_ratings} \end{figure} Here is how the function should look like: This is how it is plotted: Does anyone know what I do wrong? Thanks in advance!
So , i used UNetBootin to install Ubuntu 18.04 on my pc , i installed it on a parititon i created from my hard drive i opened the installer i think it was something like Ubuntu 18.04 Installer it was on the desktop i partitioned the drive on the partition i created 100 gbs i set it to ext4 then installed told me to restart now i dont know how to get into it What do i do then ! Thanks EDIT : Dual boot : I have windows 10
I would like to see a full how-to guide on how to install Ubuntu.
Looking through some of our app code I found the following: for (prop in aBunchOfData.properties) { if (!aBunchOfData.properties.hasOwnProperty(prop)) continue; doABunchOfProcessing(aBunchOfData.properties[prop]); } As far as I understand, for ... in will only loop through the "own" properties of an object. Can the hasOwnProperty check here ever make a difference? If so, under what conditions? Thanks!
How do I check if an object has a specific property in JavaScript? Consider: x = {'key': 1}; if ( x.hasOwnProperty('key') ) { //Do this } Is that the best way to do it?
It was a prospective, randomised clinical trial in which 245 volunteers participated in. Does the above read / sound correct? Would it be better to say: It was a prospective, randomised clinical trial which 245 volunteers participated in. or even: It was a prospective, randomised clinical trial in which 245 volunteers participated.
Like many others, I commonly find myself ending a sentence with a preposition. Yes, it makes me cringe. I usually rewrite the sentence, but sometimes (in emails) I just live with it. To, with... you know who you are. Should I keep fighting myself on this one, or is it okay in some circumstances?
Let $G$ be a group with a subgroup $H\subset G$. Then if for $g\in G$ we have $gHg^{-1}\subset H$, is it true that $gHg^{-1}= H$? At first sight I thought this should be true because $x\mapsto gxg^{-1}$ is an automorphism on $G$, but now I start believing that my initial intuition was wrong, since I fail to prove it. If it isn't true, could you add an explicit counter example?
Let $G$ be a group, $H\subseteq G$ a subgroup and $a\in G$ an element of the group. Is it possible that $aHa^{-1} \subset H$, but $aHa^{-1} \neq H$? If $H$ has finite index or finite order, this is not possible.
I just randomly discovered the following in Node.js 0.3 + 0.2 === 0.5 true 0.1 + 0.2 === 0.3 false Anyone does have an explanation for what goes on here? The tested version is Node.js v6.9.1 on a 4.4.0-57-generic kernel. Cheers to anyone able to explain this to me!
Consider the following code: 0.1 + 0.2 == 0.3 -> false 0.1 + 0.2 -> 0.30000000000000004 Why do these inaccuracies happen?
Paid off a 2003 gmc Yukon in july, low and behold a month later my girlfriend of 2 1/2 years leaves me for another woman. took the vehicle that I have invested approximately 10,000$ between repairs and payments. I made the mistake of putting her name on the title. I have asked repeatedly for 3500$ and I would sign off on the vehicle. no attempt has been made to pay me for anything. always excuse after excuse. would it be wise to take to small claims to obtain the vehicle that I paid for that she has possession of?? the total cost of the vehicle was 7600$ then I put approximately 3000$ into repairs all over the vehicle to keep it in good running condidition with proof of repairs done out of a shop. will not pay insurance or license plate tags and is letting her now Wife drive the vehicle that she is uninsured on. I am still paying insurance on the vehicle cause I do not want anything to happen to me if the vehicle is wrecked. but with her wife driving the vehicle illegally how can I get the vehicle back. knowing I will never see the 3500$ wether or not I take her to court. need to know what options I have in this matter. local police will not help me. can I have it towed to my house and disable it til I see some money??? what can I do. theres no getting along anymore yet its all excuses and saying its her vehicle. yet I am listed first on the title and I have made 95% of the payments through a buy here pay here dealer with proof of payment. she had no legitimate job to pay for the vehicle so there is no income from her that proves she made any payments on the vehicle. PLEASE HELP!!!!
As a co-buyer on an automobile, can the other party take full possession? Both parties names are listed as the Purchaser's. Only one purchaser signed the retail order for the motor vehicle, and if so, how can one become a no co-buyer?
Is there a way to allow plugin to be activated only from NETWORK DASHBOARD (if using Multisite). In not multisite, allow to be activated normally.
I'm developing the plugin. Its purpose is to scan for altered files and it works fine for a single installation of WP. But when you look at multi-site it's not something that wants to be enabled on all sub sites, as they all share the same files and (to be honest) only a network admin should be the one that wants to be notified against file changes. So my question is this: How would I program it, to only be allowed to be installed/run from the root site of a multi-site installation? So: that means not allowing it to be network installed and only activated from the root blog. Anyone know of any ways on how I could achieve this?
I am looking for a way to convert an int to a string of a given length. If the representation of the number is shorter, it should be zero-filled. I.e., what I'd like to see: snprintf(buffer, 3, "%d", 5); -> 005 snprintf(buffer, 2, "%d", 55); -> 55 Actually, snprintf(buffer, 3, "%d", 5); just return 5 in string. Is there a simple way to do this ?
I'm trying to find a good way to print leading 0, such as 01001 for a . While the number would be stored as 1001, what is a good way to do it? I thought of using either case statements or if to figure out how many digits the number is and then convert it to an char array with extra 0's for printing, but I can't help but think there may be a way to do this with the printf format syntax that is eluding me.
I was wondering off to find a wolf, and I got lost. I flew in the air to look for my BIG house and I can't find it. Now, I am totally confused and worried and I don't want to rebuild because it is AWESOME and I used a map, looked it up, and tried everything. So can you please help me? I even tried to teleport but it wouldn't work. I also live by a lake.
I wandered too far to go look for sheep and now I'm on a completely different island. How do I find my way back to my house?
If a site contains 94% of unique content and remaining 6% of the content coming under duplicate, then can it be considered as bad for SEO?
This is a general, community wiki question regarding duplicate content. If your question was closed as a duplicate of this question and you feel that the information provided here does not provide a sufficient answer, please open a discussion on . What does Google consider to be duplicate content? Will the way I am presenting my content result in a duplicate content penalty? How can I avoid having my site's content treated as duplicate content?
Example: I have alias chrome='google-chrome'. I want which chrome to return the same thing which google-chrome returns, i.e.: /usr/bin/google-chrome Is that possible?
Like most users, I have a bunch of aliases set up to give a default set of flags for frequently used programs. For instance, alias vim='vim -X' alias grep='grep -E' alias ls='ls -G' The problem is that if I want to use which to see where my vim/grep/ls/etc is coming from, the alias gets in the way: $ which vim vim: aliased to vim -X This is useful output, but not what I'm looking for in this case; I know vim is aliased to vim -X but I want to know where that vim is coming from. Short of temporarily un-defining the alias just so I can use which on it, is there an easy way to have which 'unwrap' the alias and run itself on that? Edit: It seems that which is a shell-builtin with different behaviors across different shells. In Bash, SiegeX's suggestion of the --skip-alias flag works; however, I'm on Zsh. Does something similar exist there?
Wizarding families are all magical, spells and charms being performed by older siblings and parents on a regular basis. Families of Muggle-borns are just Muggle normality, up until the Muggle-born’s 11th birthday. Then we have those who are born to a wizard and a Muggle (those who actually LIVE with them (like Lockhart and Umbridge). Would the Wizarding parent perform spells and charms around the house, for example?
Most of the wand-carriers that come from a non-Muggle family seem fairly uneducated when it comes to interacting with Muggles. This implies that they don't go to any type of Muggle school before entering into their education at Hogwarts (or whichever Wizarding school they go to), or else they would at least understand some Muggle culture. What do children from magical families do before going to Hogwarts if they don't go to a traditional school? Is there any evidence that they're homeschooled?
Bolstered by evidence from It's a common problem across the sites that users -- new, old, and apathetic -- will sometimes leave their question without accepting an answer for an inordinate amount of time (usually to the extent of "ever"). I thusly request adding an answer acceptance timer or an option for those with enough rep to vote to accept an answer. While some questions have no immediate answers (like questions about plot elements in unreleased films), many questions have clear and decisive answers that deserve commendation. Perhaps tying it to the number of votes for the existing answers? Surely a bad answer - which the asker could change if they ever returned -- is better than no answer at all.
As a disclaimer, I must admit this may benefit me (I haven't checked), but probably not as significantly as most others. This issue is also something that has prevented me from answering questions by users with 1 rep in the past, especially if they are poorly fashioned. The Problem New users with a programming question find SO from various methods, such as google. They ask a question with haste, hoping for a quick answer -- which they usually receive. Many of these users have no interest in Stack Overflow itself, but are simply interested in getting the solution they require. As a result of this, they'll check the site regularly for the first day or two until a sufficient answer has been posted. Once they get what they need, they bail; without the required rep or understanding that they should up-vote and select a response as the answer. The Result A great many questions on SO are abandoned by users with no intention of ever coming back. The answer they require has been provided, but for one or more reasons they have neglected their duty of contributing back by way of awarding reputation. The Reach (Since Jeff loves Datum) Some queries on the data dump examine the reach of this 'problem'. The query I used is based on extensions of the following base query; SELECT p1.Id, p1.Score, p1.OwnerUserId, p2.OwnerUserId, p2.Score FROM posts p1 INNER JOIN posts p2 ON (p1.Id=p2.ParentId) LEFT JOIN users ON (p1.OwnerUserId=users.Id) WHERE p2.Score >= 2 AND p2.Score = ( SELECT MAX(p3.Score) FROM posts p3 WHERE p3.ParentId=p1.Id ) AND users.Reputation < 15 AND p1.PostTypeId = 1 AND p1.AcceptedAnswerId = 0 Result: 3,288 Questions by users with under 15 rep which have answers with 2+ up votes that have no accepted answer. Adding: AND (users.LastAccessDate-p1.LastActivityDate) < 604800 // 1 week AND p1.CreationDate < 1249084800 // 1249084800 is 1 week before latest dump data to the where clause further reveals that 877 questions that have answers with 2+ up votes have no accepted answer, and the owner of the question has not returned since the week the question was asked. Modifying there where clause, and removing the left join: AND p1.OwnerUserId = 0 Reveals a staggering 3,675 questions with answers of 2+ votes by deleted users. These are questions that were probably answered but the users who did the work can never be recognized. Building off the previous and using an even more restrictive WHERE clause WHERE p2.Score >=5 Still 1,178 posts that can never have an accepted answer. How many posts are there with over 5 up votes that don't provide the correct answer? Modifying the where clause for Reputation to AND users.Reputation = 1 Still reveals 388 questions by users with 1 rep have been abandoned. Solution Similar to how bounty questions work, if a user has abandons the site (not active since x time after the question was asked) with a question that has answers with 2+ up votes, force the answer with the most up votes to be the selected answer. This will reduce the amount of questions that are unanswered, and also give users more of an incentive to answer questions by new users without extra hesitation. Update Added more statistics for deleted users. Please feel free to add/remove rules to make this a truly practical feature.
After a long gap away from SE, I have returned to find innumerable requests to reinstate someone. As you can imagine my curiosity is piqued but, more importantly, I would like to know enough to form an opinion about the matter. Clearly this concerns what journalists would describe as "public interest" - indicating that publication may be justified even at the cost of betraying some confidences. It seems that the matter is already out in the open but without those in the know explicitly describing the events. Is it acceptable to ask what happened and why?
Across all Stack Exchange network sites I have seen a lot of users with "Reinstate Monica" in the username, and I am not sure what this means.
The exercise goes like this... Let $(a_n) \subset \mathbb{R}$ given by $a_1=\sqrt{21}$ and $a_{n+1}=\sqrt{21a_n}$ a) Find the value of $L=\lim_{n \to \infty} a_n$ b) Prove that $L=\lim_{n \to \infty} a_n$ I managed to prove that the sequence is monotonic increasing and bounded above by $21$ by induction so i can assume that $(a_n)$ converges and show that $L=21$ using a little bit of algebra. But for b) I'm asked to prove the fact using the $\epsilon - N$ definition of limit I'm used to struggle a lot proving limits for non-recursive sequences using the formal definition of limit, so in this case I don't really know how to proceed. Any suggestions?
Prove that $(a_{n})_{n \in \mathbb{N}}$ is convergent with $a_{0}=1$, $a_{n+1}= \sqrt{2a_{n}}$ and calculate its limit. You got the info that the square-root-function is strictly monotonic increasing and also continuous. I'm very confused how this could be solved because there isn't really a sequence given here. It seems to be a recursive one and I also don't know how to form $a_{n+1}$. Could I form it to $a_{n}+ a_{1}$ ?(I don't care if it's useful here but I'd like to know if this would be correct at first.) I have started by forming to $a_{n}$: $$2a_{n} = (a_{n+1})^{2}$$ $$a_{n}=\frac{(a_{n+1})^{2}}{2}$$ Then I also formed to $a_{1}:$ $$a_{n}+ a_{1} = \sqrt{2a_{n}}$$ $$a_{1} = \sqrt{2a_{n}} - a_{n}$$ But it seems like this won't lead to anything.. Also I don't know what we can do with the given info, $a_{0} = 1$, the continuity and monotonic increasing...
What is correct: helping one to accomplish the dreams? OR helping one accomplish the dreams? The question I have is about the use of to in the first sentence?
What is the correct way to use infinitive after the verb "help": with or without "to"? For example: Please, help me to understand this. or: Please, help me understand this.
I want to be able print line 1,2,3,4,7 by skipping Lines 5,6,8,9 and repeat the pattern till the end of file. Sample INPUT: Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7 Line 8 Line 9 Line 10 Line 11 Line 12 Line 13 Line 14 Line 15 Line 16 Line 17 Line 18 Desired Output: Line 1 Line 2 Line 3 Line 4 Line 7 Line 10 Line 11 Line 12 Line 13 Line 16 Using Solaris 10, KSH. Would love an nawk or sed solution
I have a large file and I would like print from each sequential 50 lines , the 15th and 25th lines. sed -n '15,25p' inputfile How to modify this command to print only lines 15 and 25 and to loop over each 50 lines in the file.
Calculate the following indefinite integral: $$ \int \frac{x}{x^3+5}\, dx $$ I understand that I should first do the of the integrand and then integrate each part of the integrand to calculate the integral. However, I don't know how to decompose $\frac{x}{x^3+5}$. Could anyone show me how? [Notes from the editor. 9/4/19] This integral is of the form $\int \frac{x}{x^3+a}\, dx$. More generally, it is an integral of the . See also the following similar questions:
I'm new here! The problem: integrate from zero to infinity x over the quantity x cubed plus one dx. I checked on wolfram alpha and the answer is that the indefinite integral is this: $$\int \frac{x}{1+x^3} dx = \frac{1}{6}\left(\log(x^2-x+1)-2 \log(x+1)+2 \sqrt{3} \arctan((2 x-1)/\sqrt{3})\right)+\text{constant}$$ and the definite integral is this: $$\int_0^\infty \frac{x}{1+x^3} dx = \frac{2 \pi}{3 \sqrt{3}}\approx 1.2092$$ I am trying to figure out all the steps in between. I see that there are logs, which are equivalent to the ln variant that i am more familiar with, which means it was integrating $1/x$ at some point; I also see an inverse tangent in there. I started with long division to simplify and I got (which could be wrong because I am very tired right now) $x/(x^3+1) = x^2+ 1/(x^3+1)$ which seems to be a step in the right direction. Wolfram Alpha thinks I definitely did that step wrong. The two equations do not evaluate as equal. Then I cheated and took the wolfram alpha factorization of $(x^3+1) = (x+1)(x^2-x+1)$...I probably should have known that but didn't offhand. Now it is looking like $x^2$ plus the partial fraction decomposition $1/(x^3+1) = A/(x+1)+(Bx+C)/(x^2-x+1)$. Am I heading in the right direction with this? At this point do I just plug in and crunch?
From What is true is that trivially small effects can be found with very large sample sizes. That does not suggest that you shouldn't have such large sample sizes. What it means is that the way you interpret your finding is dependent upon the effect size and sensitivity of the test. If you have a very small effect size and highly sensitive test you have to recognize that the statistically significant finding may not be meaningful or useful. Why "If you have a very small effect size and highly sensitive test you have to recognize that the statistically significant finding may not be meaningful or useful"?
In a of Amstat News, the authors (Mark van der Laan and Sherri Rose) stated that "We know that for large enough sample sizes, every study—including ones in which the null hypothesis of no effect is true — will declare a statistically significant effect.". Well, I for one didn't know that. Is this true? Does it mean that hypothesis testing is worthless for large data sets?
I apologize if I am breaking any rules by posting this question in this forum as I am not sure wether to post this question under here or in SO. but here's my question anyway. I am plotting a density function to get an idea regarding the spread of the data and between two categories (Yes, No). However the values are the same in these two categories (Yes/No). It is 0 everywhere and there are no other values. Here's how the dataset looks like. df1 <- structure(list(FINAL_OUTCOME = c("Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No"), Value = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), .Names = c("FINAL_OUTCOME", "Value"), row.names = 409:612, class = "data.frame") When I plot a density function using ggplot for the values in these two categories (yes/No) ggplot(df1, aes(x = as.numeric(Value), fill = as.factor(FINAL_OUTCOME))) + geom_density(alpha = 0.5) + scale_fill_manual( values = c("#46ACC8","#FD6467")) what I am seeing is a plot like this below. I am confused with this plot, because it shows some area for values of x < 0 and x > 0. How is this possible when all my x values are 0 ? How is it possible that that density >0 for x{-0.25 and 0} when there are no x values less than 0 or greater than 0 ? Any suggestions or advise is much appreciated.
When I graph a density plot in R, and all the numbers are slightly greater than 0, I get essentially a vertical line at x = 0. But when all the numbers are exactly equal to 0, I get some sort of bell curve. Why is that? It seems counterintuitive. The command I used to plot the curves was for (i in 0:60) { cur_data = subset(data, time == i) p <- ggplot(cur_data, aes(x=error)) + geom_density() + theme_bw() + xlab(paste("Error distribution (minute ", i, ")", sep="")) + xlim(0, 1) ggsave(...) } At i = 60, cur_data should be entirely populated by the values 0.0. (Originally posted on Stack Overflow; was told to post here.)
I would like to know how can I use the terminal? The functionality of commands. I don't know how can I use the terminal for download movies or software.
What is a terminal? How do I open a terminal window? How do I use the terminal?
When I set this template as homepage, pagination doesn't work. I see the buttons, but when I click the button for page 2, nothing happens, doesn't go on page 2, it still remain in page 1. What is wrong? Where is the mistake? I read all posts from here & from internet about this issue, but nothing works. Solution for pagination is this: . Here is the code: <!-- MAIN CONTENT --> <section id="main-container"> <div class="row"> <div class="content"> <?php if (have_posts()) : while (have_posts()) : the_post();?> <?php $template_name = get_post_meta( $wp_query->post->ID, '_wp_page_template', true ); $post_type = str_replace( array('template-', '.php'), array(''), $template_name); ?> <?php the_content(); ?> <?php endwhile; endif; ?> <?php $loop = new WP_Query("post_type=$post_type&paged=$paged"); if ($loop->have_posts()) : while ($loop->have_posts()) : $loop->the_post(); ?> <?php get_template_part('loop', $post_type) ?> <?php endwhile; ?> <?php else: ?> <?php require THEME_DIR.'/empty.php'; ?> <?php endif; ?> <?php pagination($loop->max_num_pages); ?> </div> <?php get_sidebar(); ?> </div> </section> <!-- END MAIN CONTENT -->
I've got a custom loop that I'm using to display some Real Estate listings that will be available within 60 days. I'm calling it with the following function: <?php $sixtydays = date('Y/m/d', strtotime('+60 days')); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $query = new PostsOrderedByMetaQuery(array( 'post_type' => array('post', 'real-estate'), 'meta_key' => 'Time Available', 'meta_compare' => '<=', 'meta_value' => $sixtydays, 'paged' => $paged, 'orderby_meta_key' => 'Price', 'orderby_order' => 'ASC' )); ?> <?php while ($query->have_posts()) : $query->the_post(); ?> While the loop works great, I can't get it to paginate. It shows the first 10 (my default) posts but doesn't show the pagination. The only way to display all posts is to show them on one page by adding 'posts_per_page' => -1, I have similar loops on other pages that have no problem paginating. The only difference with this one is that there are two meta keys that are filtering the posts. I'm using WP Page Navi for this and the rest of my pages. I'm closing the loop and adding the pagination using the following code: <?php endwhile; // End the loop. Whew. ?> <?php wp_pagenavi(); ?> <?php wp_reset_query(); ?> How can I go about fixing this?
I had a bit of confusion earlier about a discussion in astrophysics. I was reading that the ISS orbits the earth at $8 kms^{-1}$ but then when I calculated the total energy that the ISS had, I was considering: It's Kinetic Energy $\frac{1}{2}mv^2$ It's Gravitational Potential Energy $-\frac{GMm}{r}$ where $m$ is the mass of the ISS $M$ is the mass of the Earth $v$ is the speed of the ISS When I did my calculations, something got me confused. Using the following data: ISS circles the Earth at a height of $4.0 \times 10^5$m. ISS has a mass of $4.2 \times 10^5$ kg The radius of the Earth is $6.4 \times 10^6$ m The mass of the Earth is $6.0 \times 10^24$kg It turned out the magnitude of the Gravitational Potential Energy is greater than the magnitude of the Kinetic energy. $$E_K < |E_{GPE}|$$ But in the lecture notes I was reading for astrophysics, the overall Energy is negative as you add both Energies together. Is it possible for the energy of an object to be negative, and is it valid in this case? I was thinking to add the magnitudes of both $E_K$ and $E_{GPE}$ as I assumed the total energy of the ISS was equal to the sum of these energies, hence giving a positive value.
Assume it's an circular orbit. Object A orbits around object B. Take object B as frame of reference. .$E=KE_a + GPE$ .$E=\frac 12m_av_a^2 +(-\frac {GM_bm_A}r)$ .$E=\frac 12m_a(GM_br)+(-\frac {GM_bm_a}r)$ .$E=-\frac {GMm}{2r} < 0$ What does negative total energy at any instant of time mean?
I heard about it. I have heard about it. I knew him. I have known him. He has played really well. He played really well.
Non-na­tive speak­ers of­ten get con­fused about what the var­i­ous tens­es and as­pects mean in English. With in­put from some of the folk here I've put to­geth­er a di­a­gram that I hope will pro­vide some clar­i­ty on the mat­ter. I of­fer it as the first an­swer to this ques­tion. Con­sid­er it a liv­ing doc­u­ment. In­put is wel­come, and good sug­ges­tions will be in­cor­po­rat­ed in­to the di­a­gram. No­ta bene: What this is not is a dis­cus­sion of whether there are more than two tens­es in English. , to which this ques­tion is not in­tend­ed to sup­ply ar­gu­ments one way or the oth­er. Here, the aim is to pro­vide an overview of what con­struc­tions English-speak­ing peo­ple use for con­vey­ing in­for­ma­tion about ac­tions re­fer­ring to past, present, and fu­ture, and to pro­vide it first and fore­most to pre­cise­ly the peo­ple who are like­ly to use "tense" as a catch-all term in their search, rather than to lin­guists who know bet­ter. Break­ing News There is now an ex­cel­lent ELU blog ar­ti­cle ti­tled . It is high­ly rec­om­mend­ed read­ing.
I need to make the .content div use the remaining screen height. I don´t know what´s the height of .header - I can´t use calc(100vh - headerHeight) HTML structure <html> <body> <div class="header">header</div> <div class="content">content</div> </body> </html> CSS html, body { height: 100%; } Tried with .content { display: flex; flex-grow: 1; } using 100vh didn´t work because it generated some vertical scroll (with the height of the .header) .content { height: 100vh } it should look like this +-------------------------------+ | header | +-------------------------------+ | | | | | content | | | | | +-------------------------------+
I am working on a web application where I want the content to fill the height of the entire screen. The page has a header, which contains a logo, and account information. This could be an arbitrary height. I want the content div to fill the rest of the page to the bottom. I have a header div and a content div. At the moment I am using a table for the layout like so: CSS and HTML #page { height: 100%; width: 100% } #tdcontent { height: 100%; } #content { overflow: auto; /* or overflow: hidden; */ } <table id="page"> <tr> <td id="tdheader"> <div id="header">...</div> </td> </tr> <tr> <td id="tdcontent"> <div id="content">...</div> </td> </tr> </table> The entire height of the page is filled, and no scrolling is required. For anything inside the content div, setting top: 0; will put it right underneath the header. Sometimes the content will be a real table, with its height set to 100%. Putting header inside content will not allow this to work. Is there a way to achieve the same effect without using the table? Update: Elements inside the content div will have heights set to percentages as well. So something at 100% inside the div will fill it to the bottom. As will two elements at 50%. Update 2: For instance, if the header takes up 20% of the screen's height, a table specified at 50% inside #content would take up 40% of the screen space. So far, wrapping the entire thing in a table is the only thing that works.
Is there any way that you can easily and I mean easily install Oracle Java JDK 7 in ubuntu with absolutely no internet connection. I'm asking because I am completely new to things(noob and newb) like this in Ubuntu. I have access to a Windows OS based computer that has internet but not at home which is the computer that has Ubuntu installed so I can download the needed files/materials to install and later bring them to my computer at home to install. I would like it if somewhere there were instructions that give every detail(even such as what application to open exactly what directory and how to access the directory etc...) to what must be done to get Oracle Java JDK 7 installed. Thanks in advance.
I want to install Oracle's JRE and to update to the latest version with the Software Updater when they released. Is there a Ubuntu package that is provided by Canonical or Oracle? Before release Java 7, I followed to install Java 6. But it doesn't work for Java 7. There is no package sun-java7-xxx. How can you install Java 7?
I have problems with this code and I have no idea how to fix it: \documentclass[10pt]{article} \usepackage{makeidx} \usepackage{multirow} \usepackage{multicol} \usepackage[dvipsnames,svgnames,table]{xcolor} \usepackage{graphicx} \usepackage{epstopdf} \usepackage{ulem} \usepackage{hyperref} \usepackage{amsmath} \usepackage{amssymb} \author{NAME} \title{TITLE} \usepackage[paperwidth=612pt,paperheight=792pt,top=28pt,right=34pt,bottom=35pt,left=34pt]{geometry} \begin{document} \noindent \textbf{ABSTRACT} \noindent \textbf{} {\raggedright \vspace{3pt} \noindent \begin{tabular}{|p{514pt}|} \hline \parbox{514pt} {\raggedright \vspace{3pt} TEXT \textbf{. } TEXT } \\ \hline \end{tabular} \vspace{2pt} } \end{document} The error that I got is this: Command Line: latex.exe --src --interaction=errorstopmode --synctex=-1 "file.tex" Startup Folder: C:\Users\***** This is pdfTeX, Version 3.14159265-2.6-1.40.16 (MiKTeX 2.9 64-bit) entering extended mode (file.tex LaTeX2e <2015/01/01> patch level 2 Babel <3.9m> and hyphenation patterns for 1 languages loaded. ! LaTeX Error: Missing \begin{document}. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.1 ï »¿%\documentclass[10pt]{article} ? x No pages of output. Transcript written on file.log. LaTeX Compilation Report (Pages: 0) Errors: 1 Warnings: 0 Bad Boxes: 0 Any help is appreciated. Thanks in advance
Unicode applies the convention of using a as signature at the beginning of a text stream, identifying the encoding used within it. The following three bytes at the beginning of a file: EF BB BF, identifies this file as a UTF8 file. Vi and most text editors gracefully ignore this signature. Open office does that as well, but it adds this signature at the beginning. Now, if I open a TeX file with OpenOffic.org, and I do that quite a lot (for mixed directionality editing), the signature is added, and baffles LaTeX, which produces an error message such as: ! LaTeX Error: Missing \begin{document}. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.1 ��\documentclass{article} whereas a simple dump of the file does not show the problem. Is there a way to eliminate this problem, while staying in the realm of latex?
In Fraklin's new Safehouse can you safe 2 cars? Also where do cars go if they disappear from there? And they aren't in the Impound is it a glitch?
How does the garage system in GTA V work? It feels kinda inconsistent at the moment Will the car I leave at my home garage be saved or will it always be replaced with the "Standard-Car" from the character? How do the additional garages work? If I have car and tune it (--> spending much money into) and then I use and lose it on the way (for example if I have to chase someone on foot) will it be lost forever?? edit: Whats the point of the depot where you can get some cars back? On what does it depend that a car will be stored there?
12.04 LTS with Windows 7 dual booted. I installed Ubuntu from windows 7 via WUBI so that I can dual boot both. When I try to boot Ubuntu the grub menu appears and I am not able to boot Ubuntu I have some important data stored in it. grub menu displays this message GNU GRUB version 1.99.21ubuntu 3.14 minimal BASH-like line editing is supported for the first word ,TAB lists possible command completion, Anywhere else RAB lists possible device or file complete.
I have Ubuntu 12.04 installed through Wubi on my laptop. For some reason when i click on Ubuntu on start up (when you have to either select windows or Ubuntu) I get the following screen, the grub cursor keeps flashing. Gnu grub version 1.99-21 Ubuntu 3.4 Minimal bash-like line editing is supported. For the first word, tab lists possible command completions. Anywhere else tab lists possible device or file completions. grub> Could you tell me what I can do to fix this problem and to start Ubuntu normally?
import java.util.Scanner; public class z { public static void main(String[] args) { String[] arr = {"me", "my", "mine", "i"}; whatIsThis(arr); for (int k = 0; k < arr.length; k++) { System.out.print(arr[k] + " "); } System.out.println(); } public static void whatIsThis(String[] arr) { arr = new String[5]; arr[0] = "I"; arr[2] = "loving"; } } Why does this code output "me my mine i" instead of "I my loving i" This is a question on my sample final exam and I want to make sure I understand.
I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?
I would like to know the recommended way to move our code from a SVN repository to a GIT repository, so that we transition our developers team & start using GIT. Can we do the transition and keep all the commits done in the SVN repository ? Also, our team is happy with SVN currently, but, they don't know that branching in GIT is much easier than SVN, where can I find a practical example that proves power of GIT in branching ?
I read the Git manual, FAQ, Git - SVN crash course, etc. and they all explain this and that, but nowhere can you find a simple instruction like: SVN repository in: svn://myserver/path/to/svn/repos Git repository in: git://myserver/path/to/git/repos git-do-the-magic-svn-import-with-history \ svn://myserver/path/to/svn/repos \ git://myserver/path/to/git/repos I don't expect it to be that simple, and I don't expect it to be a single command. But I do expect it not to try to explain anything - just to say what steps to take given this example.
I need to Write an awk command that will return the identification number from the following table for only the lines where the title is Turtle. This table is stored in turtle.txt Id Num. Title CatchDate 433417 RedTurtle 2001-06-29 493303 BlueTurtle 1998-09-20 259497 Turtle 1985-05-08 229505 RedTurtle 1994-07-13 473076 OrangeTurtle 2002-03-08 221907 Blueturtle 1999-07-02 457032 Turtle 1993-04-09 490359 RedTurtle 1996-11-12 494595 SnappingTurtle 1985-05-20 402421 BlueTurtle 1999-08-16
I want to print the countries which which have to after ~:. welcome~:to~:Germany welcome~:no please~:Italy welcome~:to~:Brazil welcome~:not ok~:China Note: I do not know what will be there other than "to". It can be anything and can be changed (like no please, not ok). I am tried using cut, awk, sed. But I am unable to figure out. awk -F "~:" '{print $2 $NF}' But I get output like: toGermany no pleaseItaly toBrazil not okChina How to filter countries other than to. UPDATE: Alternative solution:(Figured out with cut) :-) grep -v "to" |cut -d ':' -f3
Let $f : A \to B$ and $g : B \to C$ be functions. If $g \circ f$ is injective and $f$ is surjective, then $g$ is injective. question that correctly proves this theorem, but my proof seems to be different, so I'd like clarification on whether it's correct. My Proof We want to show that, for any $b_1, b_2 \in B$, $g(b_1) = g(b_2)$ iff $b_1 = b_2$. Let $g(f(a_1)) = g(f(a_2))$, where $a_1, a_2 \in A$. $\therefore f(a_1) = b_1$ and $f(a_2) = b_2$, where $b_1, b_2 \in B$. (Since $f$ is surjective.) $\therefore g(b_1) = g(b_2)$, where $b_1 = b_2$. (Since $g \circ f$ is injective.) $\therefore$ $g$ is injective. $\ \ \ Q.E.D.$ I would greatly appreciate it if people could please review my proof and elaborate on anything I've done incorrectly.
Let $f:A\rightarrow B$ and $g:B\rightarrow C$ be functions, prove that if $g\circ f$ is injective and $f$ is surjective then $g$ is injective. I need advise or correction if something is incorrect with my proof. Thank you beforehand. We must show that $g$ is injective, i.e for $x,y\in B, g(x)=g(y)\implies x=y$ Let $x,y\in B$ such that $g(x)=g(y)$. Because $f$ is surjective there exists $a,b \in A$ such that $f(a)=x$ and $f(b)=y$ $\implies g(f(a))=g(f(b))$ $\implies g\circ f(a)=g\circ f(b)$ $\implies a=b$ (by injectivity of $g\circ f$) $\implies f(a)=f(b)$ $\implies x=y$ Would appreciate any correction in proof writing also!
Let $X,Y$ be normed vector spaces and $B:Y^*\rightarrow X^*$ a linear operator. We want to show that $B$ is $weak*-weak*$ continuous iff $B=A^*$ for some $A \in \mathcal{L}(X,Y)$. My intial idea was to set $A=\iota^{-1}_Y\circ B^{*}\circ\iota_X$ where $\iota:X \rightarrow X^{**}$ is the canonical embedding $x \mapsto ev_x$, the evaluation map of $x$ ie $\iota(x)f=f(x)$. I think this will work except how can I know $\iota^{-1}$ is defined (that is, how can I guarantee $B^*(\iota(x)) \in \iota (Y))?$ If this where Banach space I would be done, but I don't know what to do in this setting. Am I even on the right track? EDIT: I found but I'm not clear on the setting. It looks to me (admitly naively) they are assuming reflexivity of $Y$ (and, or that $Y$ Banach, which I don't have?
As the title says, the question is how to prove Let $X,Y$ be Banach spaces. A linear map $S:Y^*\to X^*$ is weak$^*$ continuous if and only if $S=T^*$ for some $T\in B(X,Y)$
Below, in the image, there is a math formula which has a pink underline (namely Ann_{f(A)+J}(J)=0). As you see the alignment isn't acceptable (highlighted). Question. What command can I use to break the formula to have the alignment acceptable? I don't want to use break commands such as \ \ (since the text or format will probably change).
When I compile my document in LaTeX, some formulas in the document in math mode, between $ $, go into the right margin area beyond all the text. Is there a way to fix this aesthetic problem?
I have a web page that displays 5 items (each with a headline, image and short content like in a microblog). Item 1 Item 2 ... Item 5 Based on the query parameter in the URL, I will be sorting the items by date, votes, etc. I in a dilemma to choose from one of the below solutions to avoid duplicate content issues. Should I stick with a rel canonical tag to point to the original page from all the pages with query parameters (for sort)? Or will it be better to disallow robots when query parameters are present in the URL?
Please consider a list of items (forum comments, articles, shoes, doesn't matter) which are spread over multiple pages. Different sort orders are supported (by date, by popularity, by price, etc). So, an URL might look like this (I use the query style here to simplify things): /items?id=1234&page=42&sort=popularity /items?id=1234&page=5&sort=date Now, in terms of SEO, I think I should be worried about duplicate content. After all, each item appears at least as many times as there are sort orders. I've seen Matt Cutts talking about the rel=canonical link tag, but he also said that the canonical page should have very similar content. But this is not the case here because page #1 in a non-canonical sort order might have completely different items than page #1 in the canonical sort order. For a given non-canonical page, there is no clear canonical page listing all the same items, so I think rel=canonical won't help here. Then I thought about using the noindex meta tag on all pages with non-canonical sort order, and not using it on all pages with canonical sort order. However, if I use that method, what will happen with backlinks that are going to non-canonical pages -- will they still spread their page rank juice, even though the first page googlebot (or any other crawler) is going to encounter is marked as "noindex"? Can you please comment on my problem and what you think is the best solution? If you think you have a better solution, please consider that 1) I do not want to use Javascript for this, 2) I do not want all the items to be on one page. Thank you.
In the setting of linear regression, when we want to test the hypothesis $H_0 : \beta_j = 0$, we can use either t-test or F-test, with test statistics $t = \frac{\hat{\beta_j}}{SE(\hat{\beta_j})}$ and $F = \frac{RSS(m) - RSS(m)}{RSS(M)/(N-P-1)}$ , where $RSS(M)$ is the RSS under the full model, and $RSS(m)$ is the RSS under the model that has $\beta_j = 0$. I know that $F = t^2$, but how to prove it? Thanks!
I need to show that F test is equal to T test squared, when the T test is for 2 independent groups and assuming variances are equal. I know that $F=\frac{MSB}{MSW}=\frac{SSB/k-1}{SSW/N-K}$ and I know that $T=\frac{X-Y}{S_p \sqrt{\frac{1}{n}+\frac{1}{m}}}$, so $T^2=\frac{(X-Y)^2}{S_p^2 ({\frac{1}{n}+\frac{1}{m}})}$ I've seen this proof in Regression but here we're not using MSE and MSR, so i'm not sure how to connect between the two.
I have a string as follows: "[Monday, Tuesday]" I want to convert this string to a list of enums of type "Day". My "Day" enum is as follows: public enum Day { Monday,Tuesday; } I obtained my input string by calling toString() on a List of "Day"s. As follows: List<Day> days = new ArrayList<Day>(); days.add(Day.Monday); days.add(Day.Tuesday); String input = days.toString(); I know that I can parse the input string by commas and brackets. But, is there any efficient way to do this? To repeat, I want to covert string to a list of enums. ** EDIT ** Question is not just about converting String to enum and vice versa. It involves lists and string parsing.
Say I have an enum which is just public enum Blah { A, B, C, D } and I would like to find the enum value of a string, for example "A" which would be Blah.A. How would it be possible to do this? Is the the method I need? If so, how would I use this?
I tried to install Skype by using below commands: sudo dpkg --add-architecture i386 sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner" sudo apt-get update && sudo apt-get install skype On Ubuntu 16.04 but it shows error saying: Reading package lists... Done Building dependency tree Reading state information... Done Package skype:i386 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: skype-bin:i386 E: Package 'skype:i386' has no installation candidate. How can I solve the problem and install Skype?
I want to install Skype, but I can't locate it in Software Center or by using Synaptic Package Manager. Can anyone help me?
Apparently all objects have wavelike properties, so, if we kick a football (soccer ball, if you must) through a pair of posts, does the ball in any sense diffract? If this is ridiculous then let me know and I will delete the question.
Many introductory quantum mechanics textbooks include simple exercises on computing the de Broglie wavelength of macroscopic objects, often contrasting the results with that of a proton, etc. For instance, this example, taken from a textbook: Calculate the de Broglie wavelength for (a) a proton of kinetic energy 70 MeV (b) a 100 g bullet moving at 900 m/s The pedagogical motivation behind these questions is obvious: when the de Broglie wavelength is small compared to the size of an object, the wave behaviour of the object is undetectable. But what is the validity of the actual approach of applying the formula naively? Of course, a 100g bullet is not a fundamental object of 100g but a lattice of some $10^{23}$ atoms bound by the electromagnetic force. But is the naive answer close to the actual one (i.e. within an order of magnitude or two)? How does one even calculate the de Broglie wavelength for a many body system accurately?
I want to completely disable my trackpad, from startup if possible. The trackpad on my 2013 macbook pro is not working properly anymore. Click/Tap does not register and neither alternate click. I believe the trackpad is in a "always clicking" state because hovering over elements that usually change their color is not triggered either. Connecting a mouse, even with “Ignore built-in trackpad when mouse or wireless trackpad is present” option enabled, is not working either, the mouse click does not register, only right click works. Only way I managed to make my mouse work properly was disabling some kexts ( I dont remember which ) and then restarting the computer with the mouse plugged in already. However, after removing the mouse and plugging it back again, it stopped working. I don't have any possibility to go to a service due to the current situation, so I am looking for any temporary workaround that will allow me to use a mouse.
I have a mid-2007 MacBook Pro, the one with the trackpad that had the physical button on along the bottom edge. The trackpad is not well and using it can cause it to stick and freak out OS X. Is there a way to disable the trackpad that's a little more low-level than ? A BIOS setting perhaps? I'd like the trackpad to never be useable on the unit, whether an external mouse is connected to it or not.
I have a class that contains some variables.Let's name it "Var" class. In "Var" class i have some variables like int width ,int height and so on. Some classes need this variables in order to work, also this variables are changing. My problem is, when i am creating an object of "Var" class in diffrent classes , each object contains its own int width and int height, and i dont want that.So, how to access variables from "Var" class from multiple classes?
To be specific, I was trying this code: package hello; public class Hello { Clock clock = new Clock(); public static void main(String args[]) { clock.sayTime(); } } But it gave the error Cannot access non-static field in static method main So I changed the declaration of clock to this: static Clock clock = new Clock(); And it worked. What does it mean to put that keyword before the declaration? What exactly will it do and/or restrict in terms of what can be done to that object?
I copied my whole HDD from MBPOld to MBPNew, but saw the "Local Objects" Keychain is empty. I then saw there is a folder in ~/Library/Keychains named like the UUID of the Mac. (which can be retrieved with system_profiler SPHardwareDataType | grep 'Hardware UUID' | awk '{print $3}'). I restarted the Mac in recovery mode (by holding down Cmd + R) and opened up Terminal to rename the folder from OldMBP-UUID to NewMBP-UUID but still the local objects keychain is empty. Is there any way to get this done?
After preforming a Mavericks-Mavericks migration using Migration Assistant, I have a "Local Items" Keychain on my new machine in which many (perhaps most) items are out of date (using old passwords), and some are missing altogether. While I have access to a copy of the entire contents of the ~/Library/Keychains/ directory from my old machine, which presumably contains all the information I'm missing, I see no way of importing that information into my new machine. How can I import the "Local Items" from my old Keychain into the Keychain on my new machine?
I read this book when I was very young and I wanted to find it again. Things I remember: Male and female humans as main roles Dragons are normal part of the world Riding dragons without proper saddles or doing it in a certain way can lead to major injuries or death Towards the end the whelpling grows up and has its own hatchlings and the two main characters end up taking care of them after the original dragon dies and they have to hide in its belly to survive freezing cold weather. Afterwards they had special eye power things? Like they saw in prism colors or something.
I'm trying to remember the name of a series of books about a boy who works with dragons. Dragon's blood (or maybe it was slobber?) is acidic, and the children who wrangle these dragons often end up with deep pock marks. On this world, days are like ours but nights get very cold, requiring anyone stuck outside to find a shelter until dawn (not the false dawn) The other thing I remember is that in one of the books by slicing open a dragon and spending the night, the character emerged with special dragon powers.
I often see a lot of articles that say that rooting can brick your phone and render it useless like a brick, hence the name brick. But anyone who's ever fiddled around in rooting phones and installing ROMS surely knows that if you fail a ROM installation or root, the device can easily be saved by flashing a clean ROM. So what do all those articles mean by 'bricking'? Is there a way to brick a phone to the point that it doesn't even boot to the bootloader and let you install a custom recovery?
I'm considering unlocking the bootloader on my Verizon Galaxy S3 (SCH-I535). However, a I was reading made this statement: Once you have unlocked your phone’s bootloader using this app, you must not receive any over-the-air (OTA) updates or via Samsung Kies. Doing so will result in bricking your phone. I understand that bricking a phone means rendering it unusable, but does this also mean unrecoverable? When a phone is "bricked", does that mean it is virtually impossible to restore it to a working state? I'm a little concerned about the risk if that is the case.
I know it's easiest on Steam but I got the game from GamersGate which lets you download the game with their own installer. I'm asking about this game specifically because I know it runs on Linux. Is there a way to install it on (X)ubuntu?
Can .exe and .msi files (Windows software) be installed in Ubuntu?
I am a little confused in a specific case with the Big O notation and the Asymptotic behavior of algorithms. While I was reading the blog that describes these notations very well I came across this statement whether it is true or false: A O( n ) algorithm is Θ( 1 ) The answer says that this may or may not be true depending on the algorithm. In the general case it's false. If an algorithm is Θ( 1 ), then it certainly is O( n ). But if it's O( n ) then it may not be Θ( 1 ). For example, a Θ( n ) algorithm is O( n ) but not Θ( 1 ). I am trying a little hard to comprehend this answer. I understand that Big O implies that a program can asymptotically be no worse. So I interpret that above statement where O( n ) is worse than Θ( 1 ) and is true. Can someone explain with an example?
Sometimes I see Θ(n) with the strange Θ symbol with something in the middle of it, and sometimes just O(n). Is it just laziness of typing because nobody knows how to type this symbol, or does it mean something different?
If somebody calculated the electric flux of the entire universe, would it be zero? I got this question from a quote that each "electrical state super induces the other" (By Ralph Waldo Emerson). This lead me to question is there an equal distribution of positive and negative charges in the universe? To put it in another way; for example, taking: Newton's Law of Action and Reaction, for each positive charge created there should be an equal and opposite charge.
I've always wondered why the number of protons in the Universe exactly matches the number of electrons. They are such different particles with totally different cross sections. So, first of all, is this true? And, secondly, how could it be that they have been produced in the same amount after the Big-Bang?
We have a hp pavilion v72 desktop computer from the year 2004. It had Windows XP running on it, and we have been trying to install Linux on it. After Ubuntu, we tried to install the 32 bit version of Lubuntu 13.10 from a disk image downloaded directly from the lubuntu.net web page, and it said it was successfully installed but after re-start it doesn't start the graphical user interface, eg. the screen remains black after the spash screen. The same happens, when we choose the option "Try Lubuntu". The computer's specifications meet the requirements of the lubuntu distribution. It has two graphic cards, one onboard, which can't be disabled in the bios and another one, which is configured as primary display adapter in the bios. The system can be booted to root shell and everythings appears to be fine, but when x-windows is started, the computer again hangs with an empty screen. Do you have any suggestions, if trying another linux distribution (like xubuntu) might potentially solve the problem? Until recently, when we wiped the windows xp system, the computer worked perfectly well, so we don't assume, that the computer's hardware is defective. Many thanks. Anne
I am trying to boot Ubuntu on my computer. When I boot Ubuntu, it boots to a black screen. How can I fix this? Table of Contents:
How could I add metadata and tags to folders? I know that I can add metadata and tags to files supported by File Explorer. For unsupported files, I use , but it seems not supporting adding metadata and tags for folders. I'm using Windows 10. There's that's asking about adding files/folders metadata for Windows 7. My question is asking about adding metadata as well as tags specifically for folders on Windows 10.
I want to tag different file types (i.e. .pdf, .epub, .iso, .bin, folders,..) using the same descriptive fields. For example i would like a metadata field "type" which would be "eBook" on pdf- and epub-files, "CD-Image" on iso- and bin-files. I read about Alternate Data Streams (ADS) to make this possible. Does anyone know a good program for Windows 7 to tag different files and search for them? It is important for me, that the metadata is NOT stored in a separate database. I move the files a lot and need to stay flexible (ADSs 'stick' to the files). Any ideas?
I am trying to prep myself for data science interview & I saw the following question on a forum You have several variables that are positively correlated with your response, and you think combining all of the variables could give you a good prediction of your response. However, you see that in the multiple linear regression, one of the weights on the predictors is negative. What could be the issue? My guess is this could be due to multicollinearity, but I am not sure. Can some body help? Any help will be appreciated
Imagine You run a linear regression with four numeric predictors (IV1, ..., IV4) When only IV1 is included as a predictor the standardised beta is +.20 When you also include IV2 to IV4 the sign of the standardised regression coefficient of IV1 flips to -.25 (i.e., it's become negative). This gives rise to a few questions: With regards to terminology, do you call this a "suppressor effect"? What strategies would you use to explain and understand this effect? Do you have any examples of such effects in practice and how did you explain and understand these effects?
I have a question which i could not figure out the answer to, it was the hardest of them all that i got and i couldnt figure it out, its a proof of fibonaccis serie using matrixes and i need som help The question: The Fibonacci Numbers are recursively defined as $f_0 = 1$, $f_1 = 1$ and $f_{n+2} = f_{n+1} + f_n,$ for all $n ≥ 0$. Set $M = \binom{1\quad1}{1\quad0}$ and consider the powers $M, M^2, M^3,$ ... of this matrix. Prove that $M^n = \binom{f_n\quad f_{n-1}}{f_{n-1}\quad f_{n-2}}$ for all $n ≥ 2$. Powers of a matrix are the products $M^0 = I,\quad M^1 = M,\quad M^2 = M*M,\quad M^3 = M*M*M, . . . .$ can someone help and show me how to do this please? the proof
$$\begin{pmatrix}1&1\\1&0\end{pmatrix}^n=\begin{pmatrix}F_{n+1}&F_n\\F_n&F_{n-1}\end{pmatrix}$$ Somebody has any idea how to go about proving this result? I know a proof by mathematical induction, but that, in my opinion, will be a verification of this result only. I tried to find through the net, but in vain, if someone has some link or pointer to its proof, please provide, I'll appreciate that. Thanks a lot!
I want my pc to hibernate even when I press "shut down". Either that, or simply remove the "shut down" button from the start menu. Is there a way to do any of these?
I want my PC to hibernate when I press shutdown (exactly shutdown button) but I don't know how can I modify something like registry or group policy to achieve my goal. Is there any way to do that?
Python 2.7.13 Windows AMD64 Having trouble handling a JSON file using \u Unicode format. Test Case import json testJ = json.load(open("simple.json")) print(testJ['a']) simple.json {"a": "\u00AA"} output ┬¬ desired output ª How do I get the desired output using Python? If I use jq tool jq ".a" < simple.json I get the expected output
When I try to print a Unicode string in a Windows console, I get an error . UnicodeEncodeError: 'charmap' codec can't encode character .... I assume this is because the Windows console does not accept Unicode-only characters. What's the best way around this? Is there any way I can make Python automatically print a ? instead of failing in this situation? Edit: I'm using Python 2.5. Note: @LasseV.Karlsen answer with the checkmark is sort of outdated (from 2008). Please use the solutions/answers/suggestions below with care!! is more relevant as of today (6 Jan 2016).
What is the difference between the phrase "They won't let me go." and "They don't let me go." Is the latter correct?
When do we use each of the following? I don't want to ... I won't want to ... I wouldn't want to ...
After Palpatine became Chancellor, why not hedge his bets by getting DNA from Anakin and secretly cloning an army of super-Force-sensitive warriors pre-programmed to serve only him? A Sith master must always worry about their apprentice turning on him, and the Kaminoans were shown capable of programming genetic orders into their clones that could not be disobeyed. Plus, the Anakin Clone Army could be ready in about 10 years which would not be too long for his plans.
Just seen a picture of Vader Force-choking a trooper. And then I started wondering: what if they had cloned a Sith (or a Jedi). Would the clones have the Force? Specifically, would they have the same Force as the original?
I just started learning python. I come from C++/Java background. To understand two dimensional arrays. I have written the following snippet x = [[0]*3]*3 for i in range(0,3): for j in range(0,3): x[i][j] = i+j for i in range(0,3): for j in range(0,3): print x[i][j], print "" Why is this program printing 2 3 4 2 3 4 2 3 4 instead of my expectation 0 1 2 1 2 3 2 3 4 I thought about the reason for this and I am not able to conclude anything. Is this something to do with reference variables?
I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3 The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]] Then I changed one of the innermost values: my_list[0][0] = 5 Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]] which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?
I'm new to Ubuntu. Whenever I try to install anything using sudo on my PC, it shows: The following packages have unmet dependencies: google-chrome-stable : Depends: libappindicator1 but it is not going to be installed I tried the following commands: sudo apt-get clean sudo apt-get autoclean but none of them worked. Please tell me how can I fix this error. P.S.: I'm using Ubuntu 16.04 LTS (Xerial Xenus). Such as when I try to install VirtualBox: user@User:~/Desktop$ sudo apt-get install virtualbox Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: google-chrome-stable : Depends: libappindicator1 but it is not going to be installed virtualbox : Depends: virtualbox-dkms (>= 5.0.40-dfsg-0ubuntu1.16.04.1) but it is not going to be installed or virtualbox-source (>= 5.0.40-dfsg-0ubuntu1.16.04.1) but it is not going to be installed or virtualbox-modules Depends: libgsoap8 but it is not going to be installed Depends: libvncserver1 (>= 0.9.10) but it is not going to be installed Recommends: virtualbox-qt (= 5.0.40-dfsg-0ubuntu1.16.04.1) but it is not going to be installed Recommends: libqt4-opengl (>= 4:4.5.3) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). I am not able to install anything. Plus, my Chrome is installed and working. However, when I try to install it with sudo, this error occurs: ~/Desktop$ sudo apt-get install google-chrome-stable_current_amd64.deb Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package google-chrome-stable_current_amd64.deb E: Couldn't find any package by glob 'google-chrome-stable_current_amd64.deb' E: Couldn't find any package by regex 'google-chrome-stable_current_amd64.deb'
I installed Ubuntu 16 desktop a few weeks ago. Added Chrome and all fine. However now when I try sudo apt-get install ffmpeg, I get this error message: Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: google-chrome-stable : Depends: libappindicator1 but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). What's the problem and what should I do?
I am from India and I came to Spain for business meetings. My plan was to stay for one month [but found out the business will be closed for one week for Christmas]. My visa is valid from 2nd December 2016 to 15 January 2017; the duration of stay is 30 days. I arrived in Barcelona on the 4th of December, per the visa, and I planned to leave by the 4th of January. I want to extend the stay until the 14th of January. How do I apply for a visa extension? Is it actually necessary to apply for an extension since I am leaving before the expiry date on the visa (15 January)?
My daughter applied at the Italian Consulate in Philadelphia, and they gave her two entries for 20 days (we thought it was for 20 days each entry). She was in Italy 12 days, then went to England for 1 week and flew to Venice to take a 10-day cruise. She couldn't make it because they said she has only 8 remaining days, but she still has a land tour already paid this week. What can she do? Can she extend the Schengen visa for 12 more days? Right now, she is in Madrid, but next week she has to fly from Barcelona to Paris to start with the tour. What would happen if she decides to take the tour with the expired visa? She is a US permanent resident.
I was modeling something when suddenly I was unable to pan around using shift + middle mouse. I tried changing the controls in user preferences, closing and reopening the program, and everything else I could think of, all to no avail. I'm working with 2.69. Any help would be much appreciated. EDIT: Still not sure what happened, but I copied everything in the file into a new one and now it's working.
When I pan with the Shift + MMB, it doesn't work. I think I might have accidentally pressed some sort of key-shortcut. It works for other views, so it's not my mouse. What sort of shortcut could I have pressed?
I have this float 98.01645 and I'm getting 98.02 with this function: String lastCredit = String.format("%.2f", AppSingleton.getInstance().credit); That I want is get 98.01 (only two decimals or not rounded number). I'm trying but I can't get the way to do it work.
What I would like is a method to convert a double to a string which rounds using the half-up method - i.e. if the decimal to be rounded is 5, it always rounds up to the next number. This is the standard method of rounding most people expect in most situations. I also would like only significant digits to be displayed - i.e. there should not be any trailing zeroes. I know one method of doing this is to use the String.format method: String.format("%.5g%n", 0.912385); returns: 0.91239 which is great, however it always displays numbers with 5 decimal places even if they are not significant: String.format("%.5g%n", 0.912300); returns: 0.91230 Another method is to use the DecimalFormatter: DecimalFormat df = new DecimalFormat("#.#####"); df.format(0.912385); returns: 0.91238 However as you can see this uses half-even rounding. That is it will round down if the previous digit is even. What I'd like is this: 0.912385 -> 0.91239 0.912300 -> 0.9123 What is the best way to achieve this in Java?
It never works. And when I do a var dump on the sql query I see that the question marks are still in it. Which means that the values have not been binded right? I don't understand why it's not binding the values. Can anybody help me out? PHP $ruleValue = "value1"; $input = "value2"; $inputValue = "value3"; $this->_db->query('SELECT * FROM ? WHERE ? = ?', array($ruleValue, $input, $inputValue)); Method public function query($sql, $params = array()) { $this->_error = false; if($this->_query = $this->_pdo->prepare($sql)) { $x = 1; if(count($params)) { foreach($params as $param) { $this->_query->bindValue($x, $param); $x++; } } if($this->_query->execute()) { $this->_results = $this->_query->fetchAll(PDO::FETCH_OBJ); $this->_count = $this->_query->rowCount(); } else { $this->_error = true; } var_dump($this->_query); } return $this; } var_dump object(PDOStatement)#5 (1) { ["queryString"]=> string(27) "SELECT * FROM ? WHERE ? = ?" }
Why can't I pass the table name to a prepared PDO statement? $stmt = $dbh->prepare('SELECT * FROM :table WHERE 1'); if ($stmt->execute(array(':table' => 'users'))) { var_dump($stmt->fetchAll()); } Is there another safe way to insert a table name into a SQL query? With safe, I mean that I don't want to do $sql = "SELECT * FROM $table WHERE 1"
I am developing an iphone app which ask for one time set up details like user name in the first two screens when the user launches the app for the first time. I dont want these 2 screens to come up when I am launching the app once the user has given the details. I tried getting the info from internet but I was not able to how to find it out. May be I am missing the technical term or wordings involved in doing this. Could any one please help in accomplishing this scenario. Any sample code would be very helpful. Thanks for your time
How do I detect when an iOS app is launched for the first time?
So I decided to have a little fun today and try to find the answer with the most down-votes on a few Stack Exchange sites. Pretty simple I just search for: is:answer Sort by votes and clicked the last page. This seemed to work fine on Stack Overflow, but I noticed it did not when I tried it on Code Review. I figured at first that perhaps deleted answers were somehow included in the pagination, but I also tried this on Meta Stack Overflow and Software Engineering, and noticed the same thing: using my search method, there are no answers found after page 666, no matter how many pages of answers I see. Have I discovered an obscure bug (feature?), or is my search perhaps cursed?
If you make a search for something that returns more than 10,000 items in result. For example, search for return 161,338 results on MSE. But if you select a page where 10,000+ result should be shown: In the edge case shows zero results: But this is actual for any page where per_page * page_number is more than 10,000. Though this does not happen for Stack Overflow in English. It looks like all other sites are affected. Related bug report on ruSO.meta:
How do I resolve the Unindent does not match any other indentation level syntax error in line 3 of this code? if userInput==1: oneD() elif userInput==2: twoD() elif userInput==3: threeD() elif userInput==4: fourD() elif userInput==5: fiveD()
When I compile the Python code below, I get IndentationError: unindent does not match any outer indentation level import sys def Factorial(n): # Return factorial result = 1 for i in range (1,n): result = result * i print "factorial is ",result return result Why?
I am just using the regular library ( not pytest) and trying to confirm a ValueError. test: data = get_time_zone("sun/10-21 tz:US/Eas2tern") Result: if zone not in pytz.all_timezones: raise ValueError("Invalid Time Zone Used: " + time_zone) >>> ValueError: Invalid Time Zone Used: US/Eas2tern I would like to test it with a similar structure; Assert "valueError" etc...
How does one write a unittest that fails only if a function doesn't throw an expected exception?
I am using the OREGONSTATE_PRISM_Norm81m data set on Google Earth Engine and I am trying to clip the data to only Washington State. I uploaded a shapefile from the Washington Department of Natural Resource GIS Open Data. This is the code I currently have, I only have added the shapefile and changed the map center from the original data. var dataset = ee.ImageCollection('OREGONSTATE/PRISM/AN81d') .filter(ee.Filter.date('2018-08-01', '2018-08-15')); var precipitation = dataset.select('ppt'); var precipitationVis = { min: 0.0, max: 50.0, palette: ['red', 'yellow', 'green', 'cyan', 'purple'], }; var state = table.filter(ee.Filter.eq('JURISDIC_3', 'Washington State')); var rain = precipitation.clip(state); Map.setCenter(-120.332, 47.448, 7); Map.addLayer(precipitation, precipitationVis, 'Precipitation'); Map.addLayer(table); The error message states that "precipitation.clip is not a function" and I am very confused because I have used a similar code several times before.
I am looking for a way to clip image collection by a given polygon geometry with Python API, The GEE JavaScript equivalent is simply ImageCollection.clip(geom) () With the python API I get the error: 'ImageCollection' object has no attribute 'clip'. I'm adding my code after using .mean() as a reducer My code: set the boundary polygon my_boundary = ee.Geometry.Polygon([ [[-5, 40],[65, 40],[65, 60],[-5, 60],[-5, 60]]] ,proj=None) #set the ImageCollection and Image img_Collection = ee.ImageCollection('COPERNICUS/S5P/NRTI/L3_NO2').filterDate('2020-03-01', '2020-03-27').select('NO2_column_number_density') my_Image=img_Collection.mean().clip(my_boundary) #Create Ipyleaflet map my_map = ipyleaflet.Map(zoom=7) my_map.add_layer(layer=my_Image) my_map error: AttributeError: 'Image' object has no attribute 'model_id'
So basically i found this thing in my home. It's super small so I had to zoom it for you. Whiteish/yellowish colour. We had bedbug problem back in our dorms and I'm worried I somehow managed to transfer them home but I don't know if it's a bedbug nymph or a book lice or what kind of insect, so I'd really appreciate someone's opinion on this. Edit: It's really small, like. really small. my mother wouldn't even see it and thought me crazy. Just zoom made it look bigger. I'd say 1.5mm maximum at the very best. Moves kinda quickly and I thought it jumped two times when i was trying to capturing but maybe it was just me doing it to it. Living in Europe, Slovakia specifically.
I found a few of these walking in the middle of the night (about 3 AM) on a wall in my room near the floor. They are at most a few millimetres long (no more than 2 I would say). I am living in Poland, in a block of flats. EDIT: Since I first wrote, I have seen few more - very small - less then 1 millimetre long. They seemed to be coming from behind the baseboard. This time I've seen them during daytime.
I am using biblatex to generate a bibliography and using hyperref for clickable links. I want to set a reference to a website. Let's say Ansys' one using the @online class. So my .bib file would contain something like this: @online{ansysTag, title = {ANSYS Studio}, url = {https://ansys.com/}, urldate = {2020-04-01} } I would like to get rid of the 'https' in the printed bibliography as it looks unaesthetic and useless. Similarly to . But if I get rid of the https in the url field, the link is not clickable anymore. I tried replacing it by \href{https://ansys.com/}{ansys.com} but this would not work either. Is there a simpler solution ? Thanks.
I want to streamline my bibliography by removing the protocol information (http:// and https://) from the printed version of the URL without breaking the hyperrefs. My solution at the moment looks like this \documentclass{article} \begin{filecontents}{bibliography.bib} @misc{key1, author="Google", title="Google", url="https://google.com", } @misc{key2, author="Microsoft", title="Bing", url="http://bing.com", } @misc{key3, author="DuckDuckGo", title="DuckDuckGo", url="https://duckduckgo.com", } \end{filecontents} \usepackage{hyperref} \usepackage{biblatex} \DeclareSourcemap{% \maps[datatype=bibtex,overwrite=true]{% \map{ \step[fieldsource=url, final=true] \step[fieldset=userd, origfieldval,final=true] \step[fieldsource=userd, match=\regexp{\A(ht|f)tp(s)?:\/\/([^/]+)},replace=\regexp{$3}] } }% } \DeclareFieldFormat{url}{\mkbibacro{URL}\addcolon\space\href{#1}{\url{\thefield{userd}}}} \bibliography{bibliography} \nocite{*} \begin{document} \printbibliography \end{document} But I am sure that there must be a simpler solution, especially the Sourcemap seems to me like overkill considering this problem. At the very least I have not come up with the simplest regular expression.
Not sure why but there doesn't seem to be a utility app that allows defining a search and delete duplicates by file extension or type. Is it possible to do through some terminal script? Like for: Strata Design 3D CX Model .sd3
From: How do I modify this to only delete the first version of the file it sees. Open Terminal from Spotlight or the Utilities folder Change to the directory (folder) you want to search from (including sub-folders) using the cd command. At the command prompt type cd for example cd ~/Documents to change directory to your home Documents folder At the command prompt, type the following command: find . -size 20 \! -type d -exec cksum {} \; | sort | tee /tmp/f.tmp | cut -f 1,2 -d ' ' | uniq -d | grep -hif – /tmp/f.tmp > duplicates.txt This method uses a simple checksum to determine whether files are identical. The names of duplicate items will be listed in a file named duplicates.txt in the current directory. Open this to view the names of identical files There are now various ways to delete the duplicates. To delete all the files in the text file, at the command prompt type: while read file; do rm "$file"; done < duplicates.txt
I understand that this may be a naive question but my understanding is that GR predicts that antiparticles should be affected by gravity just as regular matter is. But does GR discuss how a massive (say planet-sized) chunk of antimatter would curve space?
According to the Dirac equation, antimatter is the negative energy solution to the following relation: $$E^2 = p^2 c^2 + m^2 c^4.$$ And according to general relativity, the Einstein tensor (which roughly represents the curvature of spacetime) is linearly dependent on (and I assume would then have the same mathematical sign as) the stress-energy tensor: $$G_{\mu \nu} = \frac{8 \pi G}{c^4}T_{\mu \nu}.$$ For antimatter, the sign of the stress-energy tensor would change, as the sign of the energy changes. Would this change the sign of the Einstein tensor, causing spacetime to be curved in the opposite direction as it would be curved if normal matter with positive energy were in its place? Or does adding in the cosmological constant change things here?
Neither Nancy nor Loma remembered to bring _______ camera ] Her Their Them Neither In this questions option C "their" was given correct answer but I need an explanation to it as I read the rule that the pair "Neither + nor" agrees with the nearest subject.
Which one is correct? Neither my friend nor I feel my best in the morning. Neither my friend nor I feel her best in the morning. Neither my friend nor I feel our best in the morning. I already know that the verb agrees with the subject closer to the verb: Neither my friends nor my brother understands me. (correct) Neither my friends nor my brother understand me. (wrong) AND Neither my brother nor my friends understand me. (correct) Neither my brother nor my friends understands me. (wrong)
I have a Nikkon D3200 and it comes with a 18-55mm f/3.5-5.6 Auto Focus-S DX VR NIKKOR Zoom Lens. I read that before I purchase a 35mm prime lens, I should set my lens to 35mm and then take pictures for a week to see how I feel. I want to achieve bokeh or lens background blur so that I can focus on the person or object in focus. However I do not get that when setting my camera in aperture priority mode. The lowest my kit lens can go is F/3.5, and the lens I want to buy is F/1.8 Will I ever see background blur with my kit lens or do i have to purchase the Nikkor 35MM F/1.8G ?
I'm currently using an entry-level DSLR with 18-55mm lens and having great trouble trying to creating a blurred background effect in my photos. Now matter what aperture or shutter speed I choose, I'm not able to get it. There's a general question about , but what specific things can I do to get this effect with an entry-level lens?
I have my work webmail that only offers IMAP access, no forwarding. I want to fetch it using Gmail, which, I already know, doesn't support fetching mail from IMAP accounts. Only POP3. I've read other questions here with no useful responses, or proposed solutions that involve having a server working in a computer of my own, but I want to find an entirely internet-based solution. I found that Outlook.com has both "imap importing" and POP3 access, and successfully imported the old mail from my work account to Gmail using Outlook as intermediary, but in Outlook, the IMAP fetching seems to be a one-time-only import thing, i.e., it doesn't automatically fetch more mails as they arrive. So do you know of another way to get the e-mails from my IMAP-only work webmail into Gmail as they arrive?
Is it possible to read an IMAP email address via my Gmail account? According to they only seem to support reading of POP3, but I find that a bit weird?
Is there any Python API available which supports creating a folder appended with increment number or unique character if the folder already exists? e.g., In my directory BAR folder already exists. If I try to create a folder "BAR" it should create BAR1.
What is the most elegant way to check if the directory a file is going to be written to exists, and if not, create the directory using Python? Here is what I tried: import os file_path = "/my/directory/filename.txt" directory = os.path.dirname(file_path) try: os.stat(directory) except: os.mkdir(directory) f = file(filename) Somehow, I missed os.path.exists (thanks kanja, Blair, and Douglas). This is what I have now: def ensure_dir(file_path): directory = os.path.dirname(file_path) if not os.path.exists(directory): os.makedirs(directory) Is there a flag for "open", that makes this happen automatically?
I use Ubuntu 14.04 and have a simple script: OUTPUT=$(zenity --forms\ --title="new"\ --text="Add new"\ --separator="," \ --add-entry="path"\ ) accepted=$? if ((accepted != 0)); then echo "process is cancelled!" exit 1 fi echo "$OUTPUT" When I run it normally and press cancel button, there is no problem. But when I run that as sudo I get this error: /path/to/test.sh: 8: /path/to/test.sh: accepted: not found Although I could solve problem like this: if ! OUTPUT=$(zenity --forms\ --title="new"\ --text="Add new"\ --separator="," \ --add-entry="path"\ ); then echo "Cancelled" fi echo "$OUTPUT" But I want to know what does cause that problem?
I had a script which was running fine but when I ran it today, it says declare: not found. I am using bash shell and path at the starting of the script is correct. Two flagged lines in my script are as follows: declare -a RESPONSE RESPONSE=($RESULT) It also says ( is unexpected but I guess that is coming up because of the first error. Worth mentioning point is when I type in declare directly works fine. declare | grep USER shows USER=ashfame USERNAME=ashfame values="$SVN_BASH_USERNAME"; So, whats wrong here?
I am trying to write a mathematical equation for a seasonal ARIMA model of ARIMA (0,0,1)(0,1,1) where the values are recorded quarterly. I have tried to follow other examples but i cant seem to get my head around these specific examples and cant apply them to my model. Any help would be greatly appreciated
I would appreciate if someone could help me write the mathematical equation for the seasonal ARIMA (0,2,1) x (0,0,1) period 12. I'm a little confused with how to go about this. I would prefer an equation involving $Y_{t}$ , $e_{t}$, $\theta$ and $\Theta$. I really don't want an equation involving the backshift operator.
Follow up to my previous Workflow thread that now works. When the workflow 'updates the item in current item' and pastes the url correctly (long, complete url) I would like to have the 'description' showing up and not the long URL, by description I mean the below. the field it is inserting is Encoded Absolute URL
I've been doing a LOT of research to try to figure out how to do this, but nothing is working. I have a column named "Update Item" that I want to be a link to start a workflow. I have workflow setup that will populate that field. The first step sets a workflow variable to "https://www.mysite.org/site/_layouts/IniWrkflIP.aspx?List={f5c87ae4-1796-4310-aeb0-1e57edef6f87}&[%Current Item:ID%]&TemplateID={5773b102-16f1-4d45-9767-cb26db3bd72c}&Source=https://www.mysite.org/site/" without the quotations. The second step updates the current item's "Update Item" field to the value of the workflow variable. When running the workflow, it errors out saying "The workflow could not update the item, possibly because one or more columns for the item require a different type of information." The only thing I can think is that since the variable is set as a string, the hyperlink column can't be updated to that value. I've tried replacing [%Current Item:ID%] with {ItemID} per the suggestion of another site. The workflow didn't fail, but the URL did not render correctly. Please help.
Sometimes I need to quote some larger blocks of code. Pasting that from an IDE, I have to add four spaces at the beginning of every line to get the text formatted as code. That is a little bit annoying, if I have to add those foure spaces for a larger amount of lines of code. Is there an easyier way to format blocks of text as code. (Except for using pastebin and linking it ;)) Thanks in advance
How do I post text so that it is formatted as code? What do I need to do so that my code shows up properly — not escaped or removed — when posted? And how to get the correct syntax highlighting? For more information, see "" in the .
I encountered a huge problem, I submited my paper in a . I sent them several times about the result of reviewing process. The email answer was: Dear Author Please clarify what exactly is your problem regarding your paper. We are at your service and ready to assist. Regards Ciencia e Tecnica Vitivinicola Journal Editorial They told me also if I have submitted successfully I will get the review answer at most after 2 weeks, but I have the proof of a successful submitted paper. Now what should I do? I want to resubmit it in another journal, I have an examination in the summer and I need a published paper in my resume.
Call it stupidity or bad luck but I am guilty of submitting my research article to a journal which is listed in . It is my first article and I don't have much experience publishing articles. I was searching for a top impact factor journal and found this one on Google and in excitement sent my article (word and pdf files) in this journal a few days ago, only to discover later that this might be a bogus journal. Now I am worried about that what will happen to my article. What if they plagiarize my paper, or send it to another journal not giving me credit? My question is that what should I do now? Should I send my article to a reputable journal now? What should be the process? What if it is flagged for fraud by that journal? What are my options? Any help would be appreciated.
Gay and straight are to sexual orientation as transgender and cisgender are to ______ What word would fit best in the blank here? Some options that don’t quite seem to fit: Gender orientation: Doesn't seem to have widespread adoption or a well-defined meaning. Gender identity: It would seem more appropriate to say something like “my gender identity is female” rather than “my gender identity is cisgender”. The categories don’t align. Gender expression: This refers only to the outwardly visible aspects of gender, not to how a person actually identifies.
Gender is the name of the category that contains the words male, female, and others. The words trans and cis are not genders, rather they describe the state of one's gender: i.e. trans refers to one whose gender has changed from that which they were assigned at birth, while cis refers to one whose gender has not changed. Is there a word that describes the category of words that includes trans and cis? In other words, similarly to how one could say "My gender is female", is there a word that fills the blank in "My ____ is cis?"
I have a list of dictionaries and want each item to be sorted by a specific value. Take into consideration the list: [{'name':'Homer', 'age':39}, {'name':'Bart', 'age':10}] When sorted by name, it should become: [{'name':'Bart', 'age':10}, {'name':'Homer', 'age':39}]
I have a dictionary of values read from two fields in a database: a string field and a numeric field. The string field is unique, so that is the key of the dictionary. I can sort on the keys, but how can I sort based on the values? Note: I have read Stack Overflow question here and probably could change my code to have a list of dictionaries, but since I do not really need a list of dictionaries I wanted to know if there is a simpler solution to sort either in ascending or descending order.
Show that $$\int_{0}^{\pi}\dfrac{x^2}{\sqrt{5}-2\cos{x}}dx=\dfrac{\pi^3}{15}+2\pi\ln^2{\left(\dfrac{1+\sqrt{5}}{2}\right)}$$ demonstrates how contour integration can be used to solve the above integral, but I'm interested in finding alternative methods. I believe one might utilize the in some way. My attempt: I tried to rely on the identity $$2\cos{x}=e^{ix}+e^{-ix}.$$ Can someone think of a solution to this integral which doesn't involve the residue theorem? Thank you
Show that $$\int\limits_0^\pi{\frac{{{x^2}}}{{\sqrt 5-2\cos x}}}\operatorname d\!x =\frac{{{\pi^3}}}{{15}}+2\pi \ln^2 \left({\frac{{1+\sqrt 5 }}{2}}\right).$$ I don't have any idea how to start, but .
I can't find the "GNOME Tweaks" app/tool using Ubuntu 20.04 Software app. I can't install GNOME Tweaks using terminal Any help is greatly appreciated.
How do I get to the Universe Repository in supported versions of Ubuntu?
I have simple database table with two fields "Title" and "URL". Can we pull the values from database table programmatically and populate the above form with "Title" and "URL" and finally submit (save) it programmatically.
How to create a node by programatically submitting the existing node add form, and most importantly using it's validation process instead of re-implementing all of the property/field validation logic so we piggyback off of the existing code.
I tried blender on my laptop, the top of the window seem to be cut, and i can't see every tool especially taskbar which's supposed to be there. That's not such a big problem but the real problem is that the cursor is copletly off when i try to click on something the cursor actually goes way higher than what i was aiming for. The white cross is actually where my cursor is supposed to be and you can see the taskbar is missing up there
I have a problem with Blenders UI. The "Info" bar on top disappeared and the mouse pointer is misaligned. I reinstalled Blender 2 times, deleted every leftover files but it still does the same thing. This is in v2.78c. The weird thing is that on the bottom everything works fine. Here are some images:
I have been wondering about the formalism of what 'exactly' a variable is, and its role in proofs in mathematics. I have seen a few questions here, such as this one: . However, I have not fully absorbed the responses to those questions, and I believe this question regards somewhat different notions. Wikipedia defines a variable as "In mathematics, a variable is a symbol used to represent an arbitrary element of a set". There was a great question (and answers') about the role of arbitrary elements in sets, , and it seems to me that per the definition of a variable, it is exactly a symbol to represent some 'arbitrary' element. My motivation for this question (and my confusion) comes from the role of using arbitrary elements in proofs. I understand that something of the form $P(x)$ is not a statement, it is an open sentence. However, something of the form $P(2)$ is a statement, since we know exactly the mathematical object we are dealing with. For example the statement, $\forall x \in X. P(x)$ means we have a collection of precise statements $$P(x_1) \land P(x_2) \land P(x_3)....$$ Where now the symbols $x_1, x_2, x_3, ...$ represent a precise and distinct mathematical object, for example the numbers $1,2,3,...$ if the set that we quantify over is $\mathbb{N}$. The trouble in my mind however is we sometimes have proofs of the form, "Let $x$ be some element in $S$. Then... [reasoning about $x$] $\implies$ [some conclusion]. In this case, we are reasoning about $x$ as we would a particular mathematical object $x_1$, but I don't quite understand how we would do this? To expand on my doubt: What I am confused by is that for a mathematical object (such as an integer) we have precise and formal definitions/constructions/axioms for these objects. Numbers can be defined in terms of sets, so can ordered pairs, etc. So when we reason about these objects, we are reasoning about some particular well defined 'mathematical object'. But with arbitrary elements/variables, it seems to me that we are saying "OK, this symbol refers to some object in this set, but you don't actually know which one". Since this is the case, how could we construct a definition of such an object, that wouldn't itself need to be expressly defined in terms of ALL the objects it could possibly be? And if indeed it is the case that we cannot, then how can we reason about this 'thing' as if it were a precisely defined mathematical object? Or does this mean there is some definable set for example, which contains an element $x$ that is an 'arbitrary element' of $\mathbb{Z}$? My apologies if this question is not a good fit for this stack exchange, I am not sure if this is more related to the philosophy of mathematics, but I have seen a few similar questions on the topic so I thought I would post it here. EDIT: I had a look at the other question, and I do not believe mine is a duplicate (and I don't think the answers clarified my doubts, though I have perhaps not explained myself properly). For example in document which the accepted answer quotes of, it says two interesting points: "Roughly speaking, a variable is a symbol for which one substitutes names for some objects, usually a number in algebra. A variable is always associated with a set of objects whose names can be substi- tuted for it. These objects are called values of the variable. (p. 70)" and on another page "There is a subtle quandary here. We want students to have the referents (usually real numbers) for variables in mind as they use the variables. But we also want students to be able to operate on the variables without always having to go to the level of the referent." However, my doubt is not on what we are doing, or even why we are doing it, but on how we can manipulate this symbol as if it were a referent (as that document puts it). It seems to me a symbol that can be substituted for any elements in a set is different from being an element of said set, so why do we perform the same operations, and use the same logic, on both?
I've never thought of this issue until recently when I've been using Haskell to build a substantial project. In Haskell (and functional programming languages in general), most so-called "variables" are actually mathematical variables, which seem to be immutable by definition. This made me quite confused. "Variables" in imperative programming languages make perfect sense because they indeed are mutated often. However, such a denomination seems very weird when the thing it represents is actually invariable. Since the word "variable" originated from mathematics and has been in use for several decades, I'm curious how such an apparent self-contradiction came into existence in the beginning. Did people have a different idea in mind when they first invented the word, and it evolved over time to its current meaning? Was immutability not an important concern at that time such that it was overlooked? Or did I just get it wrong and "variables" in mathematics are actually not totally immutable after all?
I'm looking for how to set auto-login on Ubuntu Server 14.10 from console. All information I find out there is for 14.04, and configuration files seem to have changed a lot.
I am working on creating a real time kernel with RT-PREEMPT patch. I have created this kernel without graphic desktop. It comes up in the terminal mode with login prompt. The requirement is, it should boot and directly go to the shell prompt with root permission, without asking for login. How can this be done? Can you help me?
I'm a Cameroonian by nationality, presently in Turkey. I want to travel to the Philippines and I don't need a visa because we are allowed visa free entry. Will I be allowed to transit in Germany?
I found many related questions on this site but I am still not sure about the rules. How can I decide if I need a visa to transit? Schengen members as of May 2021 are as follows: Austria Belgium Czech Republic Denmark (excluding Greenland and the Faroe Islands - but an open border with the Schengen Area is maintained) Estonia Finland France (excluding overseas departments and collectivities) Germany Greece Hungary Iceland Italy Latvia Liechtenstein Lithuania Luxembourg Malta Netherlands (excluding Aruba, Curaçao, Sint Maarten and the Caribbean Netherlands) Norway (excluding Svalbard) Poland Portugal Slovakia Slovenia Spain (except Ceuta and Melilla) Sweden Switzerland
I'm having a problem to add a directory to the PATH environment variable in Windows XP via command line. I've no issue doing this via GUI. I just want to do it in CLI. I know this OS is EOL, but this for testing purposes only. Default PATH C:\>path PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem C:\> An attempt to set it via CLI C:\>set PATH=%PATH%; C:\Program Files\7-Zip\ C:\> Looks fine, it's there. C:\>path PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem; C:\Program Files\7-Zip\ C:\> However, it didn't really work as expected. 7z program is located in C:\Program Files\7-Zip\ directory. C:\>7z '7z' is not recognized as an internal or external command, operable program or batch file. C:\> C:\>cd "c:\Program Files\7-Zip" C:\Program Files\7-Zip>7z 7-Zip [32] 16.04 : Copyright (c) 1999-2016 Igor Pavlov : 2016-10-04
Questions about setting environment variables the PATH are very common here, and in most cases the answers are very similar to each other. In the future it would be nice to have a good Q/A for this. So the question is: What are environment variables, like the executable PATH, and how can I change and use them on major operating systems? A good answer would include a simple explanation of what environment variables and especially PATH mean to the OS, as well as simple guidelines on how to set and read them accordingly.
In a parameter expansion: Is it always better (or not worse) to double quote a parameter expansion than not? Are there cases where double quoting is not suggested? When is it necessary to add braces around parameter name? when shall we use double quote around parameter expansion instead of braces around parameter name? When the other way around? When does either of the two work? Thanks.
I can write VAR=$VAR1 VAR=${VAR1} VAR="$VAR1" VAR="${VAR1}" the end result to me all seems about the same. Why should I write one or the other? are any of these not portable/POSIX?
Let $p$ be a prime number for which also $p^2+2$ is a prime. Show that then $p^3+2$ is also a prime. Computing few first primes I got: $p=2$: $2^2+2=6$ (not satisfying the condition) $p=3$: $3^2+2=11$ (satisfying the condition) $p=5$: $5^2+2=27$ (not satisfying the condition) $p=7$: $7^2+2=51$ (not satisfying the condition) so I would have a reason to believe that only the case $p=3$ will satisfy this condition, but how would I go about showing this rigorously?
I'm trying to figure out how to prove that if $p$ and $p^2+2$ are prime numbers then $p^3+2$ is a prime number too. Can someone help me please?
Input text: test Online MD5 hashsum generator: 098f6bcd4621d373cade4e832627b4f6 echo "test" | md5sum: d8e8fca2dc0f896fd7cb4cb0031ba249 Also the same happens to sha512sum and sha1sum. Why does Linux and an online generator generate different hashes?
I want to find the md5 hash of the string "a", but running echo "a" | md5sum gives me another hash than what I get if I search the internet (for example using or ). Running echo "a" | md5sum gives me "60b725f10c9c85c70d97880dfe8191b3", but it should be "0cc175b9c0f1b6a831c399e269772661". If I make a reverse hash lookup for "60b725f10c9c85c70d97880dfe8191b3", I do however get "a".
there is a Scrypt cipher which is used for exmaple by some cryptos like LItecoin for their mining algorithm. I never heared of scrypt. I know eg SHA256 which is well analyzed and considered as secure until now. 1) ANy known crypatanalysis for scrypt / vulnerabilities? 2) is scrypt considered in the community as a secure (comparable to sha256) cipher? 3) How collision-resistant is it? 4) Is it easily breakable by quantum computing attacks? Thanks
There is a scrypt cipher that is used for example by some cryptos like LItecoin for their mining algorithm. I never heard of scrypt. I know eg SHA-256 which is well analyzed and considered as secure until now. Any known cryptanalysis for scrypt / vulnerabilities? is scrypt considered in the community as a secure (comparable to sha256) cipher? How collision-resistant is it? Is it easily breakable by quantum computing attacks?
I want to ask a question politely to the client. What is the best way to say it? Could you please let me know when you want to go to a bus station? Do you think it is a correct way to say it?
I heard using 'could' is for politeness. When I request something, should I say "Can you please" or "Could you please"? Does the latter sound over-polite and pretentious?
I know that physicist do accept that fact as "an assumption", or "as a fact" due to "proofs" (or missing unroof). But are electrons really to be considered as elementary particles?
What paper(s) or theory(s) describe or prove that the elementary particles that we have determined today cannot be made up of smaller more fundamental particles?