body1
stringlengths 20
4.1k
| body2
stringlengths 23
4.09k
|
---|---|
Introduction This question is already asked . If you want you could consider this one a duplicate. However, even if the proposed solution satisfied the one that posted the question, it doesn't completely satisfy me (and this is the reason for this duplicated question). My aim is to declare a new operator for the expected value that behave like the summation symbol. The proposed solution is to declare it with \DeclareMathOperator*{}{} command (note the presence of the asterisk). This solution satisfies the feature of \sum like operators that put superscripts and subscripts in a different way depending on the current math mode. However, in \sum like operators, the size of the symbol itself change accordingly to the current math mode. In the following a visual example that shows the difference between \sum and the new math operator. And this is the code to generate it: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amssymb} \DeclareMathOperator*{\expec}{\mathbb{E}} \begin{document} $\sum_a x_a$ vs $\displaystyle \sum_a x_a$ ~~~ $\expec_a x_a$ vs $\displaystyle \expec_a x_a$ \end{document} Real question How could I define the new operator in order to scale it differently based on the current math mode? Bonus question: I'm interested only in scaling the symbol. However, in some cases, one may want to use a different symbol (I'm thinking about the \int command, that in a lot of fonts use two different symbols for inline and display math). So, a solution that takes into account also this feature would be appreciated. Of course, it could be that I miss something really obvious like that already exist a math operator for the expected value. In this case, I will appreciate if you notify me. However, the question remains valid for other new defined operators. | I would like to create a new "big operator", by which I mean something like the Σ character used for summations. I know about the \DeclareMathOperator* command, which creates an operator whose superscripts and subscripts are written directly above and below the operator. Here is an example of that. \documentclass{article} \usepackage{amsmath} \usepackage{amsfonts} \DeclareMathOperator*{\foo}{\maltese} \begin{document} \[ \foo_{i=3}^{6}(f^2(i)) \] \end{document} However, I would like to make my operator "big". I tried this: \DeclareMathOperator*{\foo}{\text{\Large $\maltese$}} but that feels like a bit of a hack. Besides, the operator is too high, and needs moving down a tad to align it properly with its operand. So, what's the proper way to do this? How, for instance, is the \sum operator defined? |
As I watched a TV series, I heard the following sentence: Will you fix your marriage or get a divorce already? I can't figure out what "already" means at the end of the sentence. I suppose something like "immediately" but I couldn't find anything on the Internet . | This is a question about American English usage of the word "already". As a UK resident I don't completely understand when I hear Americans give commands like "Stop it already!" In the UK the word already is not normally used in the imperative mood and the sentence I've just quoted would leave an English person thinking "If you're saying I've already stopped it why are you asking me to stop it again?" |
Can I say that $(X^2-Y^2)/ \sqrt{X^2+Y^2}$ is normal since $X,Y\sim N(0,1)$ and $X,Y$ are normal and independent? I am trying to do those problem using polar coordinates with $X=r \cos \theta$ and $Y=r \sin \theta$, but I got stuck when I was trying to simplify $(X^2-Y^2)/ \sqrt{X^2+Y^2}$. Can anybody please help me? Thanks! | It is given that $X,Y \overset{\text{i.i.d.}}{\sim} N(0,1)$ Show that $\frac{XY}{\sqrt{X^2+Y^2}},\frac{X^2-Y^2}{2\sqrt{X^2+Y^2}} \overset{\text{i.i.d.}}{\sim} N(0,\frac{1}{4})$ I was thinking of making polar transformations $X=r \cos \theta, Y=r \sin \theta$ Then I am getting stuck at ranges of $\theta$ |
clearly $\sum_{n=1}^{\infty} n $ is a divergent series but there is a way to show that $\sum_{n=1}^{\infty} n =-\frac1{12}$ (not really meaningful to me) My problems are, 1. can we show $\sum_{n=1}^{\infty} n $ is equal to another real number different from $-\frac1{12}$ ? 2. If there is a way, by using these results can we prove the series $\sum_{n=1}^{\infty} n $ is divergent?(using the method of contradiction) thanks. | $\displaystyle\sum_{n=1}^\infty \frac{1}{n^s}$ only converges to $\zeta(s)$ if $\text{Re}(s) > 1$. Why should analytically continuing to $\zeta(-1)$ give the right answer? |
I want to be able to mount a rack on the back of my trek madone but it has no braze-ons and I can't mount a rack to the QR because of a little wall/lip thing surrounds the QR. | I got a carbon-framed recently but I also want to use it for commuting to and from work and I want a place to put my lock and other stuff on the bike. Is it possible to have a rack on this kinda bike. |
Qubits are in a superposition which means that they can currently be both digits of 1 and 0 at the same time BUT this is my question: If Qubits have to be filtered to be used then what makes them better than normal bits after they are filtered? they are going to become 1 OR 0 because they can't be used in their superposition (If I'm correct), so the way I see it they are just normal bits we just have to take the extra time to filter first. It would be much more efficient (the way I see it) to simply re-arrange bits (like 1001 to 1100 or 1010 they use the same bits but get multiple results) to get faster results ya-know? So if someone could tell me why quantum computing is so much better I would appreciate it a lot! If I said anything wrong than please correct me! | Classical computers store information in bits, which can either be $0$ or $1$, but, in a quantum computer, the qubit can store $0$, $1$ or a state that is the superposition of these two states. Now, when we make a "measurement" (to determine the state of qubit), it changes the state of the qubit, collapsing it from its superposition of $0$ and $1$ to the specific state consistent with the measurement result. If from a measurement of a qubit we obtain only a single bit of information ($0$ or $1$, because the qubit collapses to either of the states), then, how is a qubit better than a classical bit? Since ultimately we are only able to get either $0$ or $1$ from either classical or quantum bit. If you can explain with an example, it may be helpful. |
I was recently asked to find $$\liminf_{n->\infty} n|\sin(n)|. n \in \mathbb{N}$$ I suspect that the answer is $0$, but I'm not quite sure how to prove it. I know that $\{ \sin(n) : n \in \mathbb{N}\}$ is dense on the real line, but from this fact is not easy to me to deduce that $\{ n\sin(n) : n \in \mathbb{N}\}$ is also dense. Maybe one can use this inequality $$n |\sin n| \le |n^2-nk\pi|$$ for every $n,k \in \mathbb{N}$ and prove that $|n^2-nk\pi|$ can be as small as desired, but that seems hard to me. | How would you evaluate the limit inferior of the sequence $n\,|\mathopen{}\sin n|$? That is, $$\liminf\limits_{n\to\infty} \ n \,|\mathopen{}\sin n|$$ Edit. Let $\mu$ be the irrationality measure of $\pi$. Since $\mu$ is not known, I will split the question: Assuming $\mu > 2$, what is $\liminf\limits_{n\to\infty} \ n\,|\mathopen{}\sin n|$? Assuming $\mu = 2$, what is $\liminf\limits_{n\to\infty} \ n\,|\mathopen{}\sin n|$? I kind of like its graph... |
Is Stack Overflow's implementation available for in-house use (à la MediaWiki)? I'm thinking my company could really benefit from the kind of service Stack Overflow provides, but the entire implementation would have to be kept in-house to protect company IP, etc. | Is the Stack Exchange engine that powers Stack Overflow available to download or install internally for an enterprise or company? I think Stack Exchange's engine is very great and could be very cool to use for internal enterprise patterns and practices, like the engine of Wikipedia. |
Overwatch usually gives you according to your role. Like Solder gets a card for damage done, Reinhard gets a card for damage shielded, Tracer can get a card for number of recalls. I wonder if Mercy (and other healers) can get a card for gold eliminations/damage or algorithm just won't count them, since it is not her job? | This question comes from a game I've recently played. I was playing Lucio and I got nearly 13,000 healing and nearly 13 minutes on fire. However, at the end of the game, at the commendations screen, I got a "card" for my 4 environmental kills. Is there a certain system that prioritizes some stats over others or is it a case of luck concerning what comes up at the end-game screen? |
My approach is to solve this by induction. Base case: $n=1$ $1^3 = 1^2 = 1$ Inductive Step: Suppose that $1^3+2^3+...+n^3 = (1+2+...+n)^2$ holds for all positive integers $n$. We use that to show that $1^3+2^3+...+n^3 + (n+1)^3 = (1+2+...+n+(n+1))^2$ $1^3+2^3+...+n^3 + (n+1)^3 = (1+2+...+n)^2 + (n+1)^3$ And here is where I can no longer proceed. I know there must be some trick/computation that I am not seeing that will make this proof easier. Help? Thanks!! | How can I prove that $$1^3+ 2^3 + \cdots + n^3 = \left(\frac{n(n+1)}{2}\right)^2$$ for all $n \in \mathbb{N}$? I am looking for a proof using mathematical induction. Thanks |
Though I know the meaning of each word except 'duh', I have failed to realize the meaning of the following sentence. Why do researchers get so many grants to do stuff that's like, well, duh? Would anybody like to explain the meaning of above sentence? | So like, I had this teacher? And he's like, "You're late?" And I'm like, "There's like other people late too?" I've always cringed at the word "like" strewn about in a spoken sentence. Well now I've seen it in print, right in the middle of an otherwise articulate National Geographic article. Not once, but twice. As far as I could tell it was not being used tongue in cheek. In the Feb '10 issue, in the article about the Congo Chimps. See last two paragraphs here: "Sure enough, they built their nests directly over our tents," says Morgan. "I was like, This is great! But our trackers were like, No way, man, this is very bad news." "People were like, Curiosity: Hmmm, how do you define that?" says Sanz, 34, now a professor at Washington University in St. Louis." When I read that I had to shake my head and go back to re-read those sentences. I'm just curious what people think of this, and if you have seen any other examples in like a literate context? |
I have a question on using verb. Did you call me yesterday? Did you called me yesterday? Which one is correct? Did says the incident happened in past so I don't know if I can use called. Please advice. | In regard to this , my question is similar but that answer is not clear. I want to know why we use base form of verb, e.g. 'go' to form the past tense instead of past form such as 'went'? Question: Did you go to a bank? (Why we use 'go' here, rather than 'went'?) Answer: I went to a bank. Am I confusing verb forms with tenses? Please note that I'm not a native speaker so some clarification or reference on this would be helpful. |
I would like to sell my old laptop but after reformatting all. I'm still worried that the new user is able to get back old the old data's. How to prevent this, without damaging the laptop. | I am about to sell my old desktop PC and I am cautious about some of my sensitive information being available to the purchaser, even after reformatting the hard-drive, using data recovery software. How can I securely wipe the hard drive so that the data on it cannot be recovered? Although I specifically want help with my Windows PC, it wouldn't hurt if there were suggestions for Macs as well. |
I want to track a single non-stationary real valued variable that increases over time using a Kalman filter. However, I don't know the expected measurement/process/ error covariance apriori. Is it a bit of an overkill to use a Kalman filter? I had hoped it would do a better job than guessing appropriate parameters for a moving average. However, after playing around with a couple of , it seems to be quite sensitive to incorrect measurement/process covariance assumptions. | I recently implemented a Kalman filter on the simple example of measuring a particles position with a random velocity and acceleration. I found that Kalman filter worked well, but I then asked myself what's the difference between this and just doing a moving average? I found that if I used a window of about 10 samples that the moving average outperformed the Kalman filter and I'm trying to find an example of when using a Kalman filter has an advantage to just using the moving average. I feel like a moving average is far more intuitive than the Kalman filter and you can apply it blindly to the signal without worrying about the state-space mechanism. I feel like I am missing something fundamental here, and would appreciate any help someone could offer. |
I know everyone says you can't give cash right now but this morning (17 DEC 2013) a random player gave me $114,000,000 for no reason. I messaged him and thanked him and asked how he did it but he did not respond. so I don't know how its done but I know you can. Anyone know how to do it other than splitting job money? | Every time I go to Quick Menu > Inventory > Cash > Give Cash it says that I'm unable to give someone else cash. I know you can only give $5000 each day, but I can't give anything. Does anyone know why this is? |
I don't want a background image on my desktop. Even the color background is a PNG image file. Want just a RGB color pick, or plain background. Having a background image makes remote desktop too slow. Ubuntu v19.04 | I am using freshly installed Ubuntu 19.10 on a Dell Precision 7530 laptop. Under settings - background, I cannot change the background to anything other that the default pictures. According to Ubuntu Desktop Guide » Settings » Display & screen » Change the desktop and lock screen backgrounds, "There are three choices displayed on top:.... " This is incorrect. There is an "add picture" button, but no wallpapers, colors or pictures buttons. I will appreciate any help getting this to work properly. Thanks, Paul |
For an inverted correlation matrix $C^{-1}$, I read that its diagonal elements are related to the multiple correlation between measure i as a criterion predicted from all other measures in the set, as : $$ R_{i,12...p} = \sqrt{1 - \frac{1}{C^{-1}_{ii}}} $$ Why is that? There is a related question . But that is about the off-diagonal elements. | I heard that partial correlations between random variables can be found by inverting the covariance matrix and taking appropriate cells from such resulting precision matrix (this fact is mentioned in , but without a proof). Why is this the case? |
Is it possible to increase ram using sd card by rohesoft ram expander after rooting? i have read it in an article anyone tell me working method to create virtual ram in android phone.can i expand the size of ram of my smart phone by usingvsd card | I'm sure many people like me are aware and annoyed by the extremely limited amount of RAM in Nexus S (512MB but only 300+ is usable), I have searched all over google for a solution to increase the amount of RAM available and came up empty (I tried swap file applications but they just broke my system's SD card partitions causing a complete reset). I wonder if there is any hardware solution to this problem. Is it possible to swap the chip out for a bigger capacity one? I realize that it is not as simple as swapping out PC RAM from a dimm but I haven't seen any schematics for the chip layout on the ARM boards in the smartphones so I really hope that it is somewhat possible to increase the amount of RAM on the board. |
I am getting the desired result, but I want to avoid the nested FOR in my code. However my attempt failed. This is the best I could do. Can someone please guide me how I can avoid the nested FOR? // I have two multiselect picklist fields on a Account object: Located_States__c, Supported_States__c // for every record, i want to compare the values in these two fields and // get a list of values from Located_States__c that do not exist in Supported_States__c //e.g Located_States__c = {'AR'; 'MD'; 'CO'; 'IN'}, Supported_States__c = {'AR'; 'MD'} , //ValuesFromLocatedThatDontExistInSupported: 'CO', 'IN' List <Account> accList = [Select ID, Name, Located_States__c, Supported_States__c FROM Account Where (Located_States__c != NULL || Supported_States__c != NULL)]; set<string> supportedstates =new set<string>(); String ValuesFromLocatedThatDontExistInSupported = ''; Boolean Start = true; for(Account acc: accList){ for(string str : acc.Supported_States__c.split(';')){ supportedstates.add(str); } for(string str1 : acc.Located_States__c.split(';')){ if(!supportedstates.contains(str1)){ if(Start) { ValuesFromLocatedThatDontExistInSupported = str1; Start = false; } else { ValuesFromLocatedThatDontExistInSupported = ValuesFromLocatedThatDontExistInSupported + ';' + str1; } acc.Remaining_State__c = ValuesFromLocatedThatDontExistInSupported; } } } | I'm comparing two list given in the list to see if the item.name exists in both for loop. If not then add into a list to show the error for the missing names. set<id> setAssetIds = new set<id>(); list<Asset_Store__c> assets = [select id,name......]; for(Asset_Store__c item : assets ) { setAssetIds.add(item.id); } list<Meter__c> meters = [select id,name......where id in : setAssetIds]; //now comparing the two lists for(Asset_Store__c a : assets) { for(Meter__c m : meters) { if(a.Name != m.Name) { //not matched... break; } } } the problem with the above approach is that, its not finding the correct name. |
Let $X$ be a metric space , $d$ is the metric , show that $d$ is a continuous function from $X\times X$ to $R$. I think the definition is all we need , but I just don't know where to start , can anyone help me. | Given a metric space $(X,d)$, how to prove that the function $d \colon X \times X \to \mathbf{R}$ is continuous? If we take any two arbitrary real numbers $a$ and $b$ such that $a < b$, then we need to show that the set $d^{-1} (a,b)$ given by $$ d^{-1} (a,b) := \{ (x, y) \in X \times X | a < d(x,y) < b \} $$ is open in the product topology on $X \times X$. A basis for this product topology is the collection of all cartesian products of open balls in $(X,d)$. |
#!/bin/bash while read p do echo "$p" done < numbers.txt This script is only reading and allowing me to print .sh files. I have tried it with .txt files (like above but it does not print anything.) | I have a file named /tmp/urlFile where each line represents a url. I am trying to read from the file as follows: cat "/tmp/urlFile" | while read url do echo $url done If the last line doesn't end with a newline character, that line won't be read. I was wondering why? Is it possible to read all the lines, regardless if they are ended with a new line or not? |
What is the formula for doing this type of problems? | Note: Problem from "Kenneth Rosen's DM and it's applications" and solution from "Students solution guide for use with ... applications" Let P(n) be the number of strings not containg two containing two consecutive zeros or two consecutive ones. I got the answer P(n)=P(n-1)+2P(n-2)+2P(n-3)+...+2P(0) +2 but then the book says the sequence also satisfies the recurrence relation P(n)=2P(n-1)+P(n-2). I am not able to understand this part. |
I don't understand why A∩F and B∩F are relatively open where Brian Scott commented. Thanks | Let $\mathscr{F}$ be a collection of connected subsets of a metric space $M$ such that $\bigcap\mathscr{F}\ne\emptyset$. Prove that $\bigcup\mathscr{F}$ is connected. If $\bigcup\mathscr{F}$ is not connected, then it can be partitioned into two disjoint, non-empty subsets $A,B$. Let $x$ be a point in $\bigcap\mathscr{F}$. Then either $x\in A$ or $x\in B$. I don't know where to go from here. |
I am looking for a (local) pre-paid data SIM card for my trip to Italy. What matters the most is a price for GB of data only, I don't really need voice calls. Coverage in the Alps should be decent too. I guess the local SIM still gives me the best value in comparison to EU-regulated data roaming charges. | I've checked the webpages of some their providers, but franly, just like in the case of those in my own language, I literally cannot find my way around them. So if you wouldn't mind sharing a word of two or advice. I'm looking for a good solution for mobile internet surfing in northern Italy, that can be connected to a laptop (you know, that usb stick with a SIM card inside kind of thing). 15 Gb or so at some decent speed. Can you perhaps give a recommendation or two of what to get? Edit: Just to define what I'm looking for exactly. A data plan of 15 Gb with an internet key (usb stick into which a SMS card goes) that you plug into a laptop. Preferably non-contractual, so I can cancel when I leave. I am not interested in surfing on my mobile phone since due to size I still prefer the smaller Nokia-like models for calls (smaller to carry) - no internet on them. |
Can someone give me an example of a group which has exactly $2$ proper, non-trivial subgroups? I appreciate that there is no context with this question but there's no really much else I can say. | Suppose $G$ is a group and has exactly two nontrivial proper subgroups. Prove that $G$ is cyclic and $|G|=pq$ where p,q are distinct primes or $G$ is cyclic and $|G|=p^3$ where $p$ is a prime. Usually my tactic to show a group is cyclic is find an elements such that its order and order of the group are the same. But here I cannot do so because I have no informatio regarding order of elements. So I stuck. Can anyone help me? |
This may turn out to be a stupid mistake on my part, but my JSON object array is behaving unexpectedly. The JSON object insertDoc has startDate and endDate fields and i'm trying to create a new object for each day in between - var insertDocs = []; var finalDate = insertDoc.endDate; while (insertDoc.startDate <= finalDate) { insertDoc.endDate = insertDoc.startDate; console.log('doc is ' + JSON.stringify(insertDoc)); insertDocs.push(insertDoc); insertDoc.startDate = new Date(moment(insertDoc.startDate).add(1, 'days')); } ... for (var i = 0; i < insertDocs.length; i++) { console.log(JSON.stringify(insertDocs[i])); } Here's the browser output - doc is {"description":"testtask","endDate":"2019-04-01T00:00:00.000Z","startDate":"2019-04-01T00:00:00.000Z","status":"OPEN"} doc is {"description":"testtask","endDate":"2019-04-02T00:00:00.000Z","startDate":"2019-04-02T00:00:00.000Z","status":"OPEN"} doc is {"description":"testtask","endDate":"2019-04-03T00:00:00.000Z","startDate":"2019-04-03T00:00:00.000Z","status":"OPEN"} doc is {"description":"testtask","endDate":"2019-04-04T00:00:00.000Z","startDate":"2019-04-04T00:00:00.000Z","status":"OPEN"} doc is {"description":"testtask","endDate":"2019-04-05T00:00:00.000Z","startDate":"2019-04-05T00:00:00.000Z","status":"OPEN"} Output of stringify - same doc printed 5 times {"description":"testtask","endDate":"2019-04-05T00:00:00.000Z","startDate":"2019-04-06T00:00:00.000Z","status":"OPEN"} So it seems each object is different and correctly printed but the array just seems to be 5 of the same object. The date values are different too Am i missing something here? | The primitive types (number, string, etc.) are passed by value, but objects are unknown, because they can be both passed-by-value (in case we consider that a variable holding an object is in fact a reference to the object) and passed-by-reference (when we consider that the variable to the object holds the object itself). Although it doesn't really matter at the end, I want to know what is the correct way to present the arguments passing conventions. Is there an excerpt from JavaScript specification, which defines what should be the semantics regarding this? |
In the world of Harry Potter, it appears that Divination is a mostly hereditary field; the only seers shown in the books are all related. Students studying the field in class, however, appear to have limited luck -- they try to see the future in leaves and cards, but most seem to go nowhere. Firenze describes the human version of Divination as Self-flattering nonsense The centaurs, however, use a form of Divination that is much closer to Astrology. That form, too, appears to have limited success. Trelawney herself says Many witches and wizards, talented though they are in the area of loud bangs and smells and sudden disappearings, are yet unable to penetrate the veiled mysteries of the future. So the question remains: Can a student succeed at Divination via sheer hard work? | In Order of the Phoenix, Dumbledore tells Harry 'I did,' said Dumbledore. 'On a cold, wet night sixteen years ago, in a room above the bar at the Hog's Head inn. I had gone there to see an applicant for the post of Divination teacher, though it was against my inclination to allow the subject of Divination to continue at all. The applicant, however, was the great-great-granddaughter of a very famous, very gifted Seer and I thought it common politeness to meet her. Why did Dumbledore want to discontinue Divination? Is it because he didn't much like the branch of magic or didn't believe in it? It does not sound plausible that he would remove a subject from Hogwarts just because of his personal opinions. (Moreover, Divination examinations are taken during the O.W.L.s so I doubt whether Dumbledore would, with his individual decision only, be able to remove it completely from Hogwarts). From Order of the Phoenix we also know that there is whole room dedicated to storing prophecies in the Department of Mysteries, so prophecies and divination are a real thing in the Harry Potter universe, from the point of view of us readers as well as the characters themselves. Then why would Dumbledore want to remove Divination? Another thing to consider is that Professor McGonagall says, in the Prisoner of Azkaban, that true Seers are rare, so it might be that Dumbledore might have found it difficult to get someone competent enough for the job. This does not make much sense either, because if in the Harry Potter universe true Seers are rare, having someone teach the theory behind divination would at least help to keep the field alive. Also, he had trouble finding people for Defense Against the Dark Arts as well, but that does not mean he just gave up on the subject, rather, he made controversial hiring such as Professor Lupin and Moody to keep the classes running smoothly. What exactly was the reason for Dumbledore not wanting to continue Divination at Hogwarts (until he met Professor Trelawney)? |
Is there a way to add a second class to an HTML tag using javascript? For example, say you had the element <p class="a"> and you wanted to add class="b". If you used document.getElementByClassName("a").class = "b" that would remove class "a". Is there a way to have both in the same element? | I have an element that already has a class: <div class="someclass"> <img ... id="image1" name="image1" /> </div> Now, I want to create a JavaScript function that will add a class to the div (not replace, but add). How can I do that? |
Here the image I can't see the buttons I was using my Ubuntu and now I cant see all menus of configuration Ubuntu panel.. Please I need help !! Ubuntu 14.04 Unity LTS | When I login, nothing happens. I am presented with my desktop wallpaper. No Dash, no Launcher, nothing. |
We have a robot that can move : (+2, - 1) (-2, +1) (+1, +3) (-1, - 3) . I have to show whether it will reach a certain position (x, y) I've done that on a computer, recursively, but I can't find a recurrence formula. Any ideas ? | A robot moves on 2-Dimensional grid. It starts out at (0,0) and is allowed to move in any of these four ways: 1. (+2,-1) 2. (-2,+1) 3. (+1,+3) 4. (-1,-3) Prove that this robot can never reach position (1,1) |
How do you prove $|y|<x \Leftrightarrow -x<y<x$ I tried using the fact that $|a|=\sqrt{a^{2}}$ but it got messy.how would I go about proving this | I know I have to prove both sides here so: $\implies$: Suppose $|a| < b$. Since $|a|$ is a positive number, we know $b$ is a positive number greater than $|a|$: If $a$ is positive, $a < b$ If $a$ is negative, $a < b$ But for $|a| < b$, it has to be that $a > -b$. $a < b$ and $a > -b$, therefore $–b < a < b$ is true. $\impliedby$: Suppose $-b < a < b$. If $a$ is positive, then $b$ is a greater positive number, and $-b$ would be less than $a$ If $a$ is negative, then $b$ can only be a greater positive number for $-b < a$ to hold So, $b$ is a greater positive integer than $a$. Therefore, it must be that $|a| < b$. This was what I came up with but it seems convoluted and kind of forced with the cases. Any suggestions? |
What is the expected value and the mean of sample standard deviation? I know that I can derive the expectation and variance of sample variance using the $\chi^2$ pdf. But I don't know how to start with sample standard deviation. | According to the Wikipedia article on the sample SD $$s = \sqrt{\frac{1}{n-1} \sum_{i=1}^n (x_i - \overline{x})^2}$$ is a biased estimator of the SD of the population. It states that $E(\sqrt{s^2}) \neq \sqrt{E(s^2)}$. NB. Random variables are independent and each $x_{i} \sim N(\mu,\sigma^{2})$ My question is two-fold: What is the proof of the biasedness? How does one compute the expectation of the sample standard deviation My knowledge of maths/stats is only intermediate. |
I m new to python and based on what I learnt so far this code should be correct,but it doesn't run.Can any of you help out list_x=[4,5,6,7] total1=0 def total(list_1): for values in list_1: total1 += values print(total1) total(list_x) | What exactly are the Python scoping rules? If I have some code: code1 class Foo: code2 def spam..... code3 for code4..: code5 x() Where is x found? Some possible choices include the list below: In the enclosing source file In the class namespace In the function definition In the for loop index variable Inside the for loop Also there is the context during execution, when the function spam is passed somewhere else. And maybe pass a bit differently? There must be a simple reference or algorithm somewhere. It's a confusing world for intermediate Python programmers. |
I have created 2 tables as CREATE TABLE table1(customerName VARCHAR(20),custid NUMBER ,order_id NUMBER ,price NUMBER ); CREATE TABLE table2(id NUMBER ,salary NUMBER ); Now, I tried to use the queries SELECT t1.customername,t1.custid,t2.salary FROM table1 t1 left join table2 t2 ON t1.custid = t2.id; SELECT t1.customername,t1.custid,t2.salary FROM table1 t1 left outer join table2 t2 ON t1.custid = t2.id; But I get the same output. Is there any difference between them internally in their working ? or are both same!? | What is the difference between LEFT JOIN and LEFT OUTER JOIN? |
All of a sudden, when the computer started, the log in screen was strange and the text almost unreadable so small it was. I typed the password and all the system text remained very tiny and unreadable. I went to universal access in configs and changed to large text, the problem was solved, but soon after came back. I have to keep going to config to change to "enable large text" and when the problem comes back "disable large text". I am looking for a more definitive solution for this strange system interface problem. | So I was configuring VS code on my Notebook when suddenly I noticed that my interface font got really small on my desktop, terminal and files. I use Gnome Tweaks Tool to increase my scaling factor to 1,15 , but, even though it was active, the font stayed tiny. The solution I found was moving my scaling factor, which instantly fixed my font issue, however, every time I restart my Notebook the font gets tiny again and I have to repeat the process. I tried reseting my font configuration using this command, but had no success. gsettings reset org.gnome.desktop.interface text-scaling-factor I also tried using the command dconf reset -f / Finally, I tried using dconf-editor, but still had no success altering the font rendering DPI or changing the scaling factor. All of the steps I mentioned fixed my fonts temporarily, but the issue still persists when I restart my Notebook I am out of ideas and even considered getting a fresh Ubuntu install by now... My video card: NVIDIA GeForce GTX 1050 GPU |
I'd like to spread out my references between multiple bibtex files. I tried putting all my references into a file called etho.bib, then put \input{etho.bib} into my main bibtex file. This didn't word. I also tried using \include instead of \input and etho.tex instead of etho.bib, but none of that work. Is there some way for the bibtex compiler to include text from another document into your .bib file? | I would like to use multiple .bib files for my article, such as file1.bib, file2.bib. However, I would like my references not to be separated (such as "Primary sources", "Secondary sources", etc.). These bibliographies just need to be merged into one. One way to do this is to copy-paste these .bib files into one .bib file, and this would solve the problem. However, I would like to keep it split into several .bib files, by topic (file1.bib contains articles on topic1, file2.bib contains articles on topic2, and so on). I tried to do \bibliographystyle{alpha} \bibliography{file1} \bibliography{file2} but this just gives me the same bibliography twice! |
Why hasn't the option to hide certain questions (that are for example on the first page of a Stack Exchange site you regularly frequent) implemented yet? | I was wondering how hard it would be to enable a 'hiding' option that let me hide certain questions that I don't want to see. That way if it was a very active question that I have no interest in, I could simply click hide and not see it anymore. The only foreseeable reason why this couldn't be implemented completely with a Greasemonkey script is that it would be nice to get replacement posts. As of right now, even the hide tag feature simply hides the questions after they were loaded. If I hid a lot of tags, I would end up getting very few questions on the home page. This is, of course, due to caching. |
I am not sure if i should use the PC version. I am downloading it anyway. | For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and such as: with a lighter desktop than the usual Gnome and Unity with the even lighter LXDE desktop Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements? |
This is a silly question but can you install software from debian packages without having an internet connection ? | I have a friend who has got a computer that is not connected to the Internet. Is there any way to install software offline easily? |
The Problem: java.lang.NullPointerException at mainPackagePaketverwaltung.Datenbank.savePaket(Datenbank.java:58) at mainPackagePaketverwaltung.MainPV$12.actionPerformed(MainPV.java:507) The Cause: This is the Line (58): myStatement.executeUpdate("INSERT INTO Relation VALUES(NULL, '"+ PaketID +"', '"+ atodb.getArtikelID() + "', '"+ atodb.getMenge() +"')"); From what i understand this should create a new line in the Database because the NULL/Primary_Key is set to Auto_Increment, but after one runt it errors out. That should not happen bc with each run a new line would be made by the Auto_Increment. More Info: PaketID is a INT atodb.getArtikelID is a INT atodb.getMenge is a INT All DB Fields are INT,s | What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely? |
I would like to know where I can ask Android apps and other mobile related questions. Is there a Stack Exchange site for such questions? | There seems to be more than a few computer science/programming Stack Exchange networks (is that the correct term?). Stack Overflow, being the first, has by far the most users, questions, and answers. What is the reasoning for creating the others, and are there clear guidelines for which kinds of questions should be posted? I can see a large amount of potential overflow, many cases of people not getting a good answer to their question, because the person who has the answer isn't browsing that particular network at the moment. I understand that they were probably created for organizational purposes, but wouldn't it almost make more sense to just have them as categories under Stack Overflow, keep them separated but still connected, instead of making people have to create multiple 'account's, one for each network? I am sure there was a very good reason to break them up, but as someone that is new to SE, it can be somewhat intimidating to decide which one to post in to ensure you get a good answer. For example, if I am a computer science student, my first instinct might to be to post in the computer science network, until I see that it literally has 1% of the users as the Stack Overflow network, which still seems to be for programming/computer science related questions. So my second instinct would then to be to post it into the Stack Overflow site on the basis that I have a significantly higher chance of my question being seen and getting a good answer. Then I notice that there is also a 'programmers' network, and I don't even begin to know where that fits in. I, and I am assuming most people, will probably just post on Stack Overflow to be safe. My question is, other than the short little description blurb of each one, is there a clear cut set of guidelines which what each network is intended for, what kinds of questions should go to each one, and is anything being done to encourage people to post in these newer, smaller (more specialized?) networks as opposed to just posting in big daddy Stack Overflow? Now again, this is for computer science/programming/"why isn't this code doing what I want?" related questions, I am not saying that if I had a question about Linux or WordPress or something I would have the same confusion. |
Am brand new to Blender. When I watch tutorials I see you open the program and see a default cube which is a light gray. However, when I open it, I don't see it in light gray but rather in an orange outline. If I deselect my cube it then becomes invisible. I tried to see if it was a setting or something but after much searching and asking, I am starting to suspect it is either a bug or a graphics card issue or something else? Not sure! I apologize if there is a simple fix and I am just new. I've tried everything I can think of. I have: Windows 10 AMD FIrepro V5900 graphics card (a little over 5 GB I believe?) Blender version 2.8 (I had to download this from a non-Blender site, as when I try to click on "Download 2.8" on Blender it automatically redirects me to 2.92. I can't use that version, it crashes before it will even open. I already figured out this is because I don't have a graphics card that works with it apparently...so I heard getting an older version would work better). I've tried: fiddling with viewport shading settings. rolling back my driver (apparently I can't do this - my computer had it as an option but it was greyed-out, I don't know if this means my driver is already at it's oldest version? I actually checked it was updated to the latest driver back when I was trying to install 2.92) | I don't know why but now, when i go in material preview or rendered (in solid mode it works fine), my object is entirely gray, or invisible idk, because it has the same color of the background. I've been working for days on this project without having this issue, it suddenly showed up. I tried opening other old projects and suddenly they all do the same so i guess it is some blender program setting that applies for all the projects, but idk how it happened cuz i didn't change anything :/, anyone got any tips? |
I am learning Unix online and i came across this question to create a hierarchical structure. I have created the directories using mkdir command but I am stuck while creating the files inside directory. My command for creating directories is mkdir -p mydir/{colors/{basic,blended},shape,animals/{mammals,reptiles}} | I know that touch command creates a file: touch test1.txt but how I can create a file and its full path? for example my desktop contains nothing: ~/Desktop/$ ls ~/Desktop/$ and I want to create 1.txt in ~/Desktop/a/b/c/d/e/f/g/h/1.txt. Can I do this with a simple command like: $ touch ~/Desktop/a/b/c/d/e/f/g/h/1.txt instead of create full path manually and then create the file? |
My Code may look grammatically awful, but that's because I've had to censor out foul language. I'm trying to get it to terminate when someone enters "bats", "Bats", or "BATS". import java.util.*; public class BATS { public static void main(String[] args) { Scanner BAT = new Scanner(System.in); String Bat, BATS; System.out.println("What is the most badass flying mammal ever?!"); Bat = BAT.nextLine(); Bat = Bat.toUpperCase(); while(Bat != "BATS") { System.out.println("No, its BATS!!!!!!!!!! Try again."); Bat = BAT.nextLine(); Bat = Bat.toUpperCase(); if(Bat == "BATS") { System.out.println("YOU'RE RIGHT THEY ARE !!!!!"); break; } } } } | I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug. Is == bad? When should it and should it not be used? What's the difference? |
I need to split some sentences into words. For example: Upper sentence. Lower sentence. And some text. I do it by: String[] words = text.split("(\\s+|[^.]+$)"); But the output I get is: Upper, sentence.Lower, sentence., And, some, text. And it should be like: Upper, sentence., Lower, sentence., And, some, text. Notice that I need to preserve all the characters (.,-?! etc.) | What regex pattern would need I to pass to java.lang.String.split() to split a String into an Array of substrings using all whitespace characters (' ', '\t', '\n', etc.) as delimiters? |
Ubuntu was working fine till i changed the resolution to one that was higher than the recommended settings(1600x900) now i don't know what to do. Any help? | I have installed Ubuntu on my desktop, but my monitor don't pass more than 800x600 resolution. My monitor is good at 1360x768. How can I set resolution at 1380x768 ? |
After doing some numerical test, I find $10^{k} + 1$ is not prime unless k = 1, 2. I know that If k is odd, then $11 \mid 10^{k} + 1 = (11 - 1)^k - 1$, and if k is even and not a power of 2, then using the same method, $10^{k} + 1$ is not prime. So the only case is to check whether there exist some k > 1, such that $10^{2^k} + 1$ is prime? | I have observed that all numbers of the form $10^{k} + 1$ are composite for $k{\gt}2$, and am trying to prove the same. Progress For odd $k$ , it is fairly obvious, as we get 11 as a divisor. I am having difficulty with $k$ even. Have no clue how to approach. Would prefer a non-inductive approach, if possible Developments Thanks to crostul, we can say it is composite for $k$ having an odd divisor. Hence, it only remains to prove it for $k = 2^n$ |
I have this categorical variable that represents the country for a person. How can I use this in regression model. If there had been less levels for a category I could have used dummy binary variables to encode them. But in the case of countries, there are more than 200 countries, so it doesn't make sense to use binary variables. What should I do? Obviously, one of the ways would be to make the variable coarse, take continent instead of country to reduce the levels. But this is not what I want to do? Lets suppose I have a categorical variable which is the user id. What should I do in this case? | I need to recode the variable school setting (urban, sub-urban and rural settings) into a dummy variable. I know that when creating a dummy variable, there is one category less (so 2 rather than three conditions) and that the urban is the largest group and should be used as baseline (not sure if baseline is the right word, but hopefully you know what I mean). However, I don't know what to do from here. Is the variable changed into: 1. Two dummy variables: setting 1 with urban/sub-urban and setting 2 with urban/rural? 2. One variable where urban is given the value 1, and urban and sub-urban are given the value 0? 3. Both? 4. Have I completely missed something? Hope you can help me!! |
The Schwarzschild metric describes the gravity of a spherically symmetric mass $M$ in spherical coordinates: $$ds^2 =-\left(1-\frac{2GM}{c^2r}\right)c^2 \, dt^2+\left(1-\frac{2GM}{c^2r}\right)^{-1}dr^2+r^2 \,d\Omega^2 \tag{1}$$ Naively, I would expect the classical Newtonian limit to be $\frac{2GM}{c^2r}\ll1$ (), which yields $$ds^2 =-\left(1-\frac{2GM}{c^2r}\right)c^2 \, dt^2+\left(1+\frac{2GM}{c^2r}\right)dr^2+r^2 \,d\Omega^2 \tag{2}$$ However, the correct "Newtonian limit" as can be found for example in , eq.(6.29), is $$ds^2 =-\left(1-\frac{2GM}{c^2r}\right)c^2 \, dt^2+\left(1+\frac{2GM}{c^2r}\right)\left(dr^2+r^2 \,d\Omega^2\right) \tag{3}$$ Question: Why is the first procedure of obtaining the Newtonian limit from the Schwarzschild solution incorrect? | For Minkowski space with a weak gravitational field the metric takes the form $$ ds^2 = (1+2\phi/c^2)c^2dt^2 -(1-2\phi/c^2)(dx^2+dy^2+dz^2), $$ where $\phi$ is the Newtonian gravitational potential. You can get the $(1+2\phi/c^2)$ factor in front of the $dt^2$ by starting with the geodesic equation and going to the "Newtonian limit" of slow speeds and a slowly changing field. But is there a way to get the $(1-2\phi/c^2)$ factor for the spatial part of the metric by a similar procedure? What about some clever thought experiment? |
I want to avoid text being italicized when it's inside dollar signs. For example I want the Gal part of $Gal(f)$ to show as plain text, without having to write Gal$(f)$. How do I do this? Thanks. | Mathematical operators, such as function names, should be set in roman type, not italics. Latex already has commands for some operators, including \max, \min, and \log. How can I define additional such commands? |
When I run the following code in Jupyter 4.3.1 (Python 2.7.13) import numpy as np for i in np.arange(5, 6, 0.1): print(i) I got the following output 5.0 5.1 5.199999999999999 5.299999999999999 5.399999999999999 5.499999999999998 5.599999999999998 5.6999999999999975 5.799999999999997 5.899999999999997 However, when I run the code in the console, I got the following output 5.0 5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8 5.9 Why does the Jupyter output differ from the console output? | Consider the following code: 0.1 + 0.2 == 0.3 -> false 0.1 + 0.2 -> 0.30000000000000004 Why do these inaccuracies happen? |
Are there well-known automated methods for deriving a name for each topic obtained through topic modeling? for a specifically given problem at hand I will probably default to an algorithm on top an ontology, on top the topic modeling results. But I'm highly curious as to whether there's something that I am missing, in the general case. | I have categorized 800,000 documents into 500 categories using the Mahout topic modelling. Instead of representing the topic using the top 5/10 words for each topics, I want to infer a generic name for the group using any existing algorithm. For the time being, I have used the following algorithm to arrive at the name for the topic: For each topic Take all the documents belonging to the topic (using the document-topic distribution output) Run python nltk to get the noun phrases Create the TF file from the output name for the topic is the phrase (limited towards max 5 words) Please suggest a approach to arrive at more relevant name for the topics. |
I'm looking for a way to align on the left side my math formula and on the right side the \textrm part. \begin{equation} w_{t} = \Bigg\{ \begin{aligned} \log(y_{t}) \textrm{ if } \lambda = 0; \\ (y_{t}^{\lambda} - 1)/ \lambda \textrm{ otherwise } \end{aligned} \end{equation} Is there a simple solution to achieve that ? | I want to write a conditional expression such as the following. What is the best way to express such conditional expressions in Latex? |
I am an Indian citizen, travelling to USA by an American Airlines flight (which is operated by British airways for the first leg). I have a valid tourist/business visa (B1/B2) for USA. My flight will arrive at Terminal 5 at 7 am, and leave from Terminal 3 at 9.30 am at Heathrow, giving me 2.5 hours to make the connection. I had the following questions - a) Do I need a direct airside transit visa (DATV) or a visitor-in-transit visa for this connection? b) Both flights will be on a single ticket. Given this, will I have to pass through UK borders, customs or immigration? c) Given that I need to move from Terminal 5 to Terminal 3 - are 2.5 hours sufficient to make the connection? | Is there a website or some other way to find out if I need a transit visa for a short stop in the UK on my way somewhere else? Ideally this should give me the answer for all nationalities, and take into account any other visas I may have. |
How can you prove that if each element of group is inverse to itself then the group is commutative? | Prove that if $g^2=e$ for all $g$ in $G$ then $G$ is Abelian. This question is from group theory in Abstract Algebra and no matter how many times my lecturer teaches it for some reason I can't seem to crack it. (Please note that $e$ in the question is the group's identity.) Here's my attempt though... First I understand Abelian means that if $g_1$ and $g_2$ are elements of a group $G$ then they are Abelian if $g_1g_2=g_2g_1$... So, I begin by trying to play around with the elements of the group based on their definition... $$(g_2g_1)^r=e$$ $$(g_2g_1g_2g_2^{-1})^r=e$$ $$(g_2g_1g_2g_2^{-1}g_2g_1g_2g_2^{-1}...g_2g_1g_2g_2^{-1})=e$$ I assume that the $g_2^{-1}$'s and the $g_2$'s cancel out so that we end up with something like, $$g_2(g_1g_2)^rg_2^{-1}=e$$ $$g_2^{-1}g_2(g_1g_2)^r=g_2^{-1}g_2$$ Then ultimately... $$g_1g_2=e$$ I figure this is the answer. But I'm not totally sure. I always feel like I do too much in the pursuit of an answer when there's a simpler way. Reference: Fraleigh p. 49 Question 4.38 in A First Course in Abstract Algebra. |
My friend and I have a 10 hour layover In Dubai. I was wondering could we visit Burj Khalifa in that time. Only problem is that we are arriving at the airport at 23.20h and it is on Monday. We don't want to go at the top of the building, only to see it. I was wondering if it's safe to walk at night, and do we have enough time for that? We are from Serbia, and I don't know if we need visa for that. | Do I need a transit visa for a layover via airports in the UAE, such as Dubai International Airport or Abu Dhabi International Airport? If so, what are the requirements for such a visa? Can I get the transit visa on arrival? |
I have encountered a piece of code with method being exposed via public interface while the implementation is private. I'm not sure what should be the expected behavior. Simplified example: #include <iostream> class Interface { public: virtual ~Interface() {} virtual void myIfMethod() = 0; }; class Derived : public Interface { private: void myIfMethod(){std::cout << "private method invoked via public interface" << std::endl;} }; int main() { Interface* myObj = new Derived; myObj->myIfMethod(); delete myObj; return 0; } This sample compiles and executes without a warning: Is this a correct and well-defined behavior? And if so, why? Note, the question isn't about private interface method with public implementation (there are multiple such questions on SO) but the other way around. | Is there is any reason to make the permissions on an overridden C++ virtual function different from the base class? Is there any danger in doing so? For example: class base { public: virtual int foo(double) = 0; } class child : public base { private: virtual int foo(double); } The says that it is a bad idea, but doesn't say why. I have seen this idiom in some code and I believe that the author was attempting to make the class final, based on an assumption that it is not possible to override a private member function. However, shows an example of overriding private functions. Of course recommends against doing so. My concrete questions: Is there any technical problem with using a different permission for virtual methods in derived classes vs base class? Is there any legitimate reason to do so? |
I'm wondering what would happen if Flynn's computer (or any computer running the Grid) was turned off? Would the programs and users simply die? | At the end of the movie, Sam Flynn does a download of the data on the server to an SD card and hangs it around his neck. Presumably in remembrance of his father. He then seems to turn off the mainframe which was running the Grid all these years. Does this mean the Grid is shutdown and gone? |
I'm not a master in Scripting, so I have to ask here :) How can I implement an errorhandling for this: find . -type f|sed 's_\.\/__' > $PATH i.e. abort when this was not successfull. Thank you very much in advance Thomas | What is your favorite method to handle errors in Bash? The best example of handling errors I have found on the web was written by William Shotts, Jr at . He suggests using the following function for error handling in Bash: #!/bin/bash # A slicker error handling routine # I put a variable in my scripts named PROGNAME which # holds the name of the program being run. You can get this # value from the first item on the command line ($0). # Reference: This was copied from <http://www.linuxcommand.org/wss0150.php> PROGNAME=$(basename $0) function error_exit { # ---------------------------------------------------------------- # Function for exit due to fatal program error # Accepts 1 argument: # string containing descriptive error message # ---------------------------------------------------------------- echo "${PROGNAME}: ${1:-"Unknown Error"}" 1>&2 exit 1 } # Example call of the error_exit function. Note the inclusion # of the LINENO environment variable. It contains the current # line number. echo "Example of error with line number and message" error_exit "$LINENO: An error has occurred." Do you have a better error handling routine that you use in Bash scripts? |
I have the following task in my homework: Let $a,b \in \mathbb{R}, a < b $ and $f:[a,b] \to \mathbb{R} $ be a continuous function that is differentiable on $(a,b)$. Show that if $f'(x)=f(x)$ for all $x \in (a,b)$, then there is a $c \in \mathbb{R}$ with $f(x)=ce^x$ for all $x \in [a,b]$. Hint: Consider the function $x\mapsto f(x)e^{-x} $ I know that the two solutions here would be $c=1$ and $c=0$, but apparently, that has to be shown with the mean value theorem, and that hint just confuses me more. Any help would be appreciated! | I was wondering on the following and I probably know the answer already: NO. Is there another number with similar properties as $e$? So that the derivative of $\exp(x)$ is the same as the function itself. I can guess that it's probably not, because otherwise $e$ wouldn't be that special, but is there any proof of it? |
I would like to know what data is used from gravitational wave detections to calculate black hole masses and how. Also, what else can you deduce from gravitational wave detections? What was the exact difference between the detection of the black hole mergers and the one of neutron star collision? I am writing an extended essay on this (4000 words), and it would be very helpful. Many thanks. | The was observed, giving us the frequency and amplitude of the event. Because LIGO has two detectors a could be derived. But how do these three factors allow for the mass of the black holes and their distance to be calculcated? If the wave strengths are in a square relationship to distance, then couldn't there be an infinite number of other masses and distances which would give the same signals? |
Yo, I'm new to Blender and I'm trying to make a humanoid figure. I followed . I have completed one half of the character but when I mirror it there is a seam down the middle. Clipping is on, too, and all the answers I found are to do with turning it on. I'm stumped. Thanks in advance, M~ | was following a tutorial where I stumbled into this weird line in my mirrored mesh (sorry for the feet lol) You can also download the blender file |
Why do quaternions not only use two imaginary numbers. Can we not simplify quaternions $$q = a + b\mathbf{i} + c\mathbf{j} + d\mathbf{k} \tag{1}$$ to the form $$ \begin{align} q & = a + b\mathbf{i} + (c + d\mathbf{i})\mathbf{j} \tag{2}\\ & = e + f\mathbf{j} \end{align} $$ Where $e,f \in \mathbb{C}$. Thus we only introduce one new imaginary number. Where we note that $\bf{ij} = k$, which holds true. This would make quaternions seem more like complex numbers and we only need to define the interactions between $\bf i$ and $\bf j$. The same would also hold true for octonions being represented as $s = g + h\mathbf{k'}$ where $g, h \in \mathbb{H}$. Where we see that we now have only 3 imaginary numbers instead of 7. This 'factorized' representation seems to simplify things and make these numbers look more familiar. | Why is quaternion algebra 4D and not 3D? Complex algebra is 2D and what is known as quaternion algebra jumps to 4D. $ i^2 = j^2 = k^2 = ijk = -1 $ Using $1, i, j,$ and $k$ as the base (where complex uses $1$ and $i$ (or $j$ if you are an EE)) which results in a 4-axis space. Why is there no 3D algebra? |
I have a question about how to do something in Microsoft Word. I'm not sure which Stack Exchange site to use. Any tips? | I would like to ask a question about Microsoft Word. It is the software itself based not coding related. The question is about table shapes. Which one is most proper ? |
I ran into this problem in my real analysis class. It sounds easy enough on the surface, and maybe it is, but I can’t seem to figure out what to do inductively as the product on the LHS is throwing me a bit off. In short, HELP, please. The question is as follows: Let n ∈ N. Show that if, a1,a2,...,an are non-negative real numbers less than 1 (0 ≤ ai < 1 for i = 1,...,n), the following holds: 1−a1)(1−a2)···(1−an)≥1−(a1 +a2 +...+an) | Let $(a_n)_{n \in \mathbb{N}}$ a sequence of real numbers with $0 \leq a_n \leq 1$ for all $n \in \mathbb{N}$. I want to prove the following inequality using mathematical induction: $\prod \limits_{k=0}^{n}(1-a_k) \geq 1- \sum\limits_{k=0}^{n}a_k$. It's obviously true for $n=0$. $n \rightarrow n+1$ Assume that it's true for n. Then one has: $\prod \limits_{k=0}^{n+1}(1-a_k) = (1- a_{n+1}) \prod \limits_{k=0}^{n}(1-a_k) \geq (1- a_{n+1}) (1- \sum\limits_{k=0}^{n}a_k) = 1- \sum\limits_{k=0}^{n}a_k - a_{n+1} + a_{n+1} \sum\limits_{k=0}^{n}a_k = 1- \sum\limits_{k=0}^{n+1}a_k + a_{n+1} \sum\limits_{k=0}^{n}a_k=...$ How to go on? |
I am using STMP module for D7. When i put test email [email protected], i have received the email but When i check show original i am getting received from Received: from usernem by myhost username with local (Exim 4.85) Why it is so ? Also i have enter wrong password and tried to send an email. i recieved the email Seems SMTP is not working on my site Below are my settings | I have dedicated FreeBSD box, The email sending without is working perfectly but very slow. The receiver receives email after almost 15 mins. I checked the maillog it says delays and timeouts that means the server keeps on trying to send email again and again until it successfully sends one. This is consuming lots of CPU. I am seeking help for configuring smpt module to use my dedicated box's smtp server, I need help in following places where I have ???? sign: #SMTP server settings SMTP server -> smpt.mydomain.com # Tested by pinging, its working SMTP backup server -> mail.mydomain.com # Also verified by Ping SMTP port -> 25 USE SSL #SMTP Authentication Username -> ??????? Password -> ??????? I tried using localhost, also username and password of the dedicated box or leaving both lines blank which gives me: Unable to send e-mail. Contact the site administrator if the problem persists. also checking the debug log doesn't show any log, it says check admin/reports/dblog but when I got to the link it just shows me the contents from admin/reports no any dblog |
Let $f$ be biholomorphic (i.e. holomorphic and injective) on the unit disk with $f(0)=0$. Show that there is a biholomorphic $g$ on the unit disk such that $g(z)^2=f(z^2)$. Show that this function satisfies also $g(-z)=-g(z)$. My attempt: Consider the power series expansion $$f(z)=f'(0)z+\cdots$$ so $$f(z^2)=f'(0)z^2+\cdots=z^2(f'(0)+\cdots)$$ Therefore, we have $$ g(z)=z\cdot(f'(0)+\cdots)^{1/2}$$ defined on a neighborhood of $0$. But how to extend the function to the whole unit disk? (Schwarz reflection principal?) And how to make the function to be an odd function? There seems to be a similar question , but one important condition in that question does not hold here. So both ways do not work. | Let $\Delta=\{z\in \mathbb C: |z| < 1\}$. Let $f: \Delta \rightarrow \mathbb C$ be a one-to-one analytic function fixing the origin. Prove that there is a one-to-one analytic function $g: \Delta \rightarrow \mathbb C$ such that $[g(z)]^2=f(z^2)$. Further, show that such a function is odd. The only idea which comes to my mind is the following (not sure whether it is the right direction though). Let $h: \Delta \rightarrow \Delta \rightarrow \mathbb C,\ z\mapsto z^2\mapsto f(z^2)$. Note that $h'(0)=0,\ h''(z)=2f'(z^2)+4z^3f''(z^2)$; since $f$ is one-to-one and analytic, its derivative never vanishes, so $h''(0)\ne 0$. So $h$ is an analytic function of $\Delta$ with a zero of order two at the origin. Then there is an analytic function $g$ defined in an open disc about the origin with a simple zero at the origin such that $[g(z)]^2=f(z^2)$. This is the only thing I came up with, but it seems to be a little bit irrelevant since I don't see any way of extending this $g$ to the whole $\Delta$, and also the injectivity and oddness of such a $g$ are unclear. |
How do I increase the spacing between the numbering and the text in the table of contents? Note that I am using the article class and use \addcontentsline{toc}. Code: \documentclass[12pt]{article} \newcounter{chapternum} \newcounter{examplenum} \newcommand{\example}{\stepcounter{examplenum} \noindent{\large{\color{Red}{Example \theexamplenum: }}}\addcontentsline{toc}{subsubsection}{Example \theexamplenum}} \renewcommand\thesection{\thechapternum.\arabic{section}} \renewcommand\thesubsection{\thesection.\arabic{subsection}} \begin{document} \stepcounter{chapternum} \tableofcontents %Ignore the page numbers; the picture is a screenshot from my document and this code is a MWE. \section{Sets} \subsection{Introduction to Sets} \subsection{Union and Intersection} \example \subsection{Special Sets} \subsection{Interval Notation} \example \end{document} | Following minimal document: \documentclass{report} \begin{document} \renewcommand*\thechapter{\Roman{chapter}} \tableofcontents \setcounter{chapter}{6} % Problem starts at chapter 7 \chapter{Seven} \chapter{Eight} \section{Eight-one} \section{Eight-two} \end{document} yields this output (cut to size for your convenience): Clearly, the chapter (and section) headings hang into the chapter (section) numbers. For the previous chapter numbers, this isn’t a problem since all chapter titles are aligned to the same column and the numbers I–VI are sufficiently narrow. (The same happens regardless of document type, I’m actually using scrreprt with the same result.) How can I prevent this? |
I just joined Code Review SE and was surprised by this visual glitch: It says "+98" on the top right corner, but the popup clearly states "+100". I can think of 2 possibilities: I started with 2 rep when I joined. I got downvoted right before I joined Code Review. The second possibility seems more likely, but I'm not sure that I got downvoted just a minute ago. | I just visited Stack Overflow. Recent achievments change popup told me that I've got +24 reputation points. However, when I opened it up, it turned out, that I've got 25+1 = 26 points: What am I missing? Is this a bug or by-design and I just don't get it? EDIT: (copy of below comment, for clarification) If I'm not mistaken, score highlighted in the popup (24 in this case) should only indicate entires in achievements list, that were not yet noticed by me, that is -- those with non-white background (25 + 1 in this case). Correct me, if I'm wrong, but if I'm right, then there is a bug in calculation algorithm. I have two items, with recent changes, "unread" (not seen by me), which total amount of 26, while score popup informs me only about 24 points. This is the only thing, that I don't get here. |
I'm trying to find the distance between two bluetooth beacons which are typically in the distance of 60cm or less. Direction is not an issue, I'm only looking to figure out the distance between the beacons and there will be no interferences such as walls/objects in between. Is it possible to detect the distance through RSSI Measurements? and if so what will be the expected accuracy? | I currently have a setup where I send a char using a Tx of 434MHz and an Uno to a Mega with a Rx. The Mega counts how many times it receives the char and then if it falls below a certain number it triggers an alarm. Is this a viable way to measure the distance between two microcontrollers while indoors or is there a better way. Transmitter (Mega) #include <SoftwareSerial.h> int rxPin=2; //Goes to the Receiver Pin int txPin=5; //Make sure it is set to pin 5 going to input of receiver SoftwareSerial txSerial = SoftwareSerial(rxPin, txPin); SoftwareSerial rxSerial = SoftwareSerial(txPin, rxPin); char sendChar ='H'; void setup() { pinMode(rxPin, INPUT); pinMode(txPin,OUTPUT); txSerial.begin(2400); rxSerial.begin(2400); } void loop() { txSerial.println(sendChar); Serial.print(sendChar); } Receiver #include <SoftwareSerial.h> //Make sure it is set to pin 5 going to the data input of the transmitter int rxPin=5; int txPin=3; //Don't need to make connections int LED=13; int BUZZ=9; int t=0; char incomingChar = 0; int counter = 0; SoftwareSerial rxSerial = SoftwareSerial(rxPin, txPin); void setup() { pinMode(rxPin, INPUT); //initilize rxpin as input pinMode(BUZZ, OUTPUT); //initilize buzz for output pinMode(LED, OUTPUT); //initilize led for output rxSerial.begin(2400); //set baud rate for transmission Serial.begin(2400); //see above } void loop() { for(int i=0; i<200; i++) { incomingChar = rxSerial.read(); //read incoming msg from tx if (incomingChar =='H') { counter++; //if we get bit "h" count it } delay(5); //delay of 10 secs } Serial.println(incomingChar); Serial.println(counter); //prints the the bits we recieved if(counter<55) { //if we receive less than 100 bits than print out of range triggers alarm Serial.println("out of range"); tone(BUZZ,5000,500);digitalWrite(LED,HIGH); } else { noTone(BUZZ);digitalWrite(LED, LOW); //if we get more than 100 bits than we are within range turn off alarm Serial.println("in range"); } counter = 0; incomingChar=0; } |
This is the second time it's happening and the first time it went away by itself, so this time I thought that it was a matter of rebooting my system, or maybe an issue with the default PDF viewer. None of those fixed it, so I'm asking here not only because someone might know the solution but also because it sets a precedent. Also, my Tex Live is up to date. Switching between XeLaTeX and pdflatex yields no different results. Basically applying a shading/path fading to any given shape (which one seems to be irrelevant), the result will always be a rectangle on the bottom of the shaded shape filled with the top colour. Here's an example: And here's the code: \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \shade[bottom color=blue!50!black, top color=cyan!50] (-1,-1) rectangle (1,1); \end{tikzpicture} \end{document} What is wrong with it? Edit: Now pdflatex gives the expected result, but XeLaTeX still shows the problem. Also, here is the result of \listfiles *File List* standalone.cls 2012/09/15 v1.1b Class to compile TeX sub-files standalone ifluatex.sty 2010/03/01 v1.3 Provides the ifluatex switch (HO) ifpdf.sty 2011/01/30 v2.3 Provides the ifpdf switch (HO) ifxetex.sty 2010/09/12 v0.6 Provides ifxetex conditional xkeyval.sty 2014/12/03 v2.7a package option processing (HA) xkeyval.tex 2014/12/03 v2.7a key=value parser (HA) standalone.cfg 2012/09/15 v1.1b Default configuration file for 'standalone' class article.cls 2014/09/29 v1.4h Standard LaTeX document class size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option) tikz.sty 2013/12/13 v3.0.0 (rcs-revision 1.142) pgf.sty 2013/12/18 v3.0.0 (rcs-revision 1.14) pgfrcs.sty 2013/12/20 v3.0.0 (rcs-revision 1.28) everyshi.sty 2001/05/15 v3.00 EveryShipout Package (MS) pgfrcs.code.tex pgfcore.sty 2010/04/11 v3.0.0 (rcs-revision 1.7) graphicx.sty 2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR) graphics.sty 2014/10/28 v1.0p Standard LaTeX Graphics (DPC,SPQR) trig.sty 1999/03/16 v1.09 sin cos tan (DPC) graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live xetex.def 2015/03/25 v4.04 LaTeX color/graphics driver for XeTeX (TeX Liv e/RRM/JK) pgfsys.sty 2013/11/30 v3.0.0 (rcs-revision 1.47) pgfsys.code.tex pgfsyssoftpath.code.tex 2013/09/09 (rcs-revision 1.9) pgfsysprotocol.code.tex 2006/10/16 (rcs-revision 1.4) xcolor.sty 2007/01/21 v2.11 LaTeX color extensions (UK) color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive pgfcore.code.tex pgfcomp-version-0-65.sty 2007/07/03 v3.0.0 (rcs-revision 1.7) pgfcomp-version-1-18.sty 2007/07/23 v3.0.0 (rcs-revision 1.1) pgffor.sty 2013/12/13 v3.0.0 (rcs-revision 1.25) pgfkeys.sty pgfkeys.code.tex pgfmath.sty pgfmath.code.tex pgffor.code.tex tikz.code.tex | I would like to use shadings in my TikZ graphics together with the standalone package and XeLaTeX, but for some reason it is broken if I try with the new 3.0.0 release (). Any other combination I tried works for me (use for example article class/pdflatex/lualatex/TikZ 2.10). (I'm using a fully updated TeX Live 2013.) MWE \documentclass{standalone} %\documentclass{article} % would work \usepackage{tikz} \usetikzlibrary{shadings} \begin{document} \tikz \draw[top color=red] (0,0) rectangle (2,1); \end{document} Output Expected Output Question How can I avoid the problem and which package/class is causing it? |
So I've encountered the site "" – a website proposing "alternative" theories to theories in modern physics. Of course, the site claims that both SR and GR are wrong. To show "why" SR is wrong, the author presents two apparent contradictions in SR, as following: Two accurate identical clocks, A and B, move with uniform motion along a shared straight-line path but with different constant velocities such that the distance between them steadily decreases with time. [...] We wish to know which clock runs more slowly. (Keep in mind A will eventually catch up to B and you don't need to change reference frame by accelerating in order to measure the times side-by-side) I can obviously see the apparent contradiction – one can claim that A is at rest and B is experiencing time dilation or equally claim that B is at rest and A is experiencing time dilation, giving two different results when the two clocks "meets" – but I have no idea to actually solve it. When solving this, please use real numbers of your choosing. The second "paradox" involves a circular particle accelerator with equally spaced electrons. Now, if we'd would speed them up to relativistic speeds, say $\gamma = 2$, how would the tube look like? (source: ) (source: ) (source: ) (source: ) My own thought on this is that the electrons have a non-inertial motion and thus alternative A must be right (the electrons shrinking but their spacing staying the same). Is this correct a reasoning? | Suppose we have two twins travelling away from each other, each twin moving at some speed $v$: Twin $A$ observes twin $B$’s time to be dilated so his clock runs faster than twin $B$’s clock. But twin $B$ observes twin $A$’s time to be dilated so his clock runs faster than twin $A$’s clock. Each twin thinks their clock is running faster. How can this be? Isn’t this a paradox? |
some people type commands in MySQL like this: "select * from RegisterUser where pid = '".$uploadPid."'" and some type it like this "SELECT * FROM RegisterUser WHERE pid = '".$uploadPid."'" what's the best? should i scream or not | Is SQL case sensitive. I've used MySQL and SQL Server which both seem to be case in-sensitive. Is this always the case? Does the standard define case-sensitivity? |
I want to support languages (fr,en,de). My home page: (content localized based on webBrowser settings) Language selection links available to set language in a cookie: http://example.com/en http://example.com/fr http://example.com/de Which pattern is the best for SEO? 1. eng. url + lang: http://example.com/fr/buy http://example.com/en/buy http://example.com/de/buy 2. localized url + lang: http://example.com/fr/acheter http://example.com/en/buy http://example.com/de/kaufen 3. localized url with no lang specified http://example.com/acheter http://example.com/buy http://example.com/kaufen | When I set up a site in multiple languages, how should I set up my URLs for search engines and usability? Let's say my site is www.example.com, and I'm translating into French and Spanish. What is best for usability and SEO? Directory option: http://www.example.com/sample.html http://www.example.com/fr/sample.html http://www.example.com/es/sample.html Subdomain option: http://www.example.com/sample.html http://fr.example.com/sample.html http://es.example.com/sample.html Filename option: http://www.example.com/sample.html http://www.example.com/sample.fr.html http://www.example.com/sample.es.html Accept-Language header: Or should I simply parse the header and generate content server-side to suit that header? Is there another way to do this? If the different language versions don't have different urls, what do I do about the search engines? UPDATE 2011-12-06 Google has new recommendations for meta tags for explicitly pointing to other language content: . UPDATE 2012-05-25 Related but not precisely: UPDATE 2013-06-12 includes discussion of several URL schemes directly relevant to the question. |
I have an imported save from ME1 and 2. I've saved Legion, Tali was not exiled, I destroyed the heretics, I brokered a peace between Tali and Legion, I completed Rannoch: Admiral Koris and saved Admiral Koris I have 4 bars of Paragon However, I still don't get the option to be able to make peace between the Geth and the Quarians. | Legion is cool. Tali is also cool. I don't want to pick between them. In ME2, I told the Quarians to not go to war, but they did so anyway. It seems that it's not possible to stop the war from starting in ME3, but is there any way to end it in a way that doesn't involve total annihilation of one of the sides? I like Quarian Engineers AND Geth Infiltrators. How do I unite the Geth and the Quarians against the Reapers? |
We use reflexive pronoun after some verbs like *avail ourself, acquitted himself, absented themselves * etc and some time we have to avoid from reflexive pronoun after some verbs like break, burst, draw, and enlist etc so is there any rule to use and avoid reflexive pronoun after certain verbs? | I have read answers to questions like but I couldn't find a general rule for using "you" or "yourself", "him" or "himself" that could explain things I see in some examples. For example, I think that one normally say (according to examples I see in ): You bring something with you. You have something in you. You have something on you. You pressed her to you. But on the other hand one would say: You draw attention to yourself. He killed himself. You can try it out for yourself. As a general rule, it seems that the reflexive pronoun is used when the object is the same as the subject of the verb. But for prepositional phrases, it seems more complicated. Do some prepositions (like "with", "in", "on") always come with the accusative form of the pronoun, and some other (like "for") don't? What about "to", that seems to be followed by both in different circumstances? |
As players join and leave, I need something(s) giving a redstone signal for every number of players from 1-10, then if there is more than 10. So I can have one thing happen at 1 player, something different happen at 2, 3, 4 ... I have tried using a comparator output from "/testfor @a", but I couldn't get it to do things like having the command blocks for players=1 and players=2 to turn off if players=3. Everything else I've tried had the same problems, and everything I've found online is for testing for a min/max amount of players. | I want to run a command when there are only 10 entities left. I know you can use /execute unless entity to detect when all matching mobs have died, but it doesn't work if you want to run a command when there are for example 10 entities left. A command like /execute if entity @e[limit=10] does not work, it also triggers if there is only one entity. Such a counting system could also be used to determine once there is only one player left in an arena, meaning they have won a battle or similar. |
In the assumptions of linear regression, it is mentioned that error terms should be normally distributed with mean 0 and standard deviation $\sigma$. Is it necessary for the error terms to be normally distributed or just the latter part is enough to meet the assumptions? | Seemingly reputable sources claim that the dependent variable must be normally distributed: Model assumptions: $Y$ is normally distributed, errors are normally distributed, $e_i \sim N(0,\sigma^2)$, and independent, and $X$ is fixed, and constant variance $\sigma^2$. Secondly, the linear regression analysis requires all variables to be multivariate normal. This is appropriate when the response variable has a normal distribution Is there a good explanation for how or why this misconception has spread? Is its origin known? Related |
It was made evident on the Stack Overflow question and many others that people with famous names in their fields answer questions and (granted are usually correct) get an insane number of upvotes for their answer that other people with lower reputation points also post. I can't help that feel that a well known name basically means extra reputation points earned for every answer. Part of me wants to say that there should be some form of bottleneck on reputation: as you gain more you gain less. Then you can have people on 5k answering questions and getting good reputation from it while big names with 50-100k can answer a question, still get reputation point, but the mental number of upvotes for simply being a big name won't tip the scales too much. Edit: So for all the people that decided to downvote my discussion on this point here is talking about it: Jakob, I actually do think you have a point. There is a slight bias towards high-reputation users (I wouldn't really call them "famous"). In my experience, however, the most important factors are speed and correctness, sometimes with far too much emphasis on speed. See for a discussion of this phenomenon, which I consider far more serious than the slight bias towards high-reputation users. – Sven Marnach 2 hours ago | I have noticed a couple of kinds of behavior that seem to crop up in the SO community, and it really seems to artificially boost reputation. There may not be a solution (or it may not be a problem!) but here are some thoughts. The first is the fact that "celebrity" users, or users with lots of reputation, are treated significantly better than others. Take Joel Spolsky's most recent question: It was closed, opened, closed, and re-opened. And the question has earned Joel - what - 1030 reputation 103 votes, and lots of reputation! Wow! I'm not saying that Joel's question is a bad one. But lets compare to other questions that one might consider to be in the same equivalence class - easily answerable, specific questions, short questions: (5 votes) (5 votes) If you look at the , I can hardly find any which are specific technical questions. So that Joel's question was so upvoted could only mean that: It was upvoted based on his celebrity People have been interpreting the questions as a sort of zen-like wakeup call, designed to get people talking and thinking about they way they vote. I do not mean any disrespect toward Joel, and again, I think his question was a good one. This post isn't about Joel! But the boost in reputation did not (imho) mean "Joel is really good at programming, and he has earned my trust as someone knowledgeable about computers." It may be true that Joel is a proficient computer expert, but not based on the merit of that one question. Which leads me to an example about myself. I recently gave (130 reputation) to a question about PHP's image-creating libraries. I am very appreciative of the community's support for my answer - an answer which I believe was well-thought and that I put effort into. At the same time I can't look someone and tell them, with a straight face, that my reputation is a great reflection of my computer-related knowledge. Billions of people on the net have created tutorials for PHP's GD image library - I just happened to be the person to post a few of them. Heck if I know why it got 13 votes! (oh, but please don't downvote it!!) SO is built by the community - so the community absolutely gets to decide what questions are important, and how they choose to dispense reputation. But in practice, I feel like peoples' reputation would be much lower if the community were more discriminating about the way they voted. So: am I totally off base here? Is this even something that can be corrected with a different reputation algorithm? Or am I the only one who sees this as a detriment to the SO community? (And, to be completely clear, I do not intend for this to be an ad hominem, and I am not jealous about not having a higher reputation. But I do take reputation with a grain of salt, in part for these reasons, and I thought I'd bring it up! It is meta, after all!) |
I am designing a small application in which I open a new form with some controls. I want to close this form if idle for some time. Let say the form is having many buttons, scroll bars, picture box....if none of them is clicked (within 10 seconds) the form should close. I have used a timer of 10 seconds , i want to reset it if any of the control is pressed. I can do it individually but would become very cumbersome doing it for all the controls. Can i do it by some simpler way....I read on net: foreach (Control cc in Controls) but didn't knew how to use it. Please help. | I have a .NET UserControl (FFX 3.5). This control contains several child Controls - a Panel, a couple Labels, a couple TextBoxes, and yet another custom Control. I want to handle a right click anywhere on the base Control - so a right click on any child control (or child of a child in the case of the Panel). I'd like to do it so that it's maintainable if someone makes changes to the Control without having to wire in handlers for new Controls for example. First I tried overriding the WndProc, but as I suspected, I only get messages for clicks on the Form directly, not any of its children. As a semi-hack, I added the following after InitializeComponent: foreach (Control c in this.Controls) { c.MouseClick += new MouseEventHandler( delegate(object sender, MouseEventArgs e) { // handle the click here }); } This now gets clicks for controls that support the event, but Labels, for example, still don't get anything. Is there a simple way to do this that I'm overlooking? |
I am doing a research about the ethics in pharmaceutical industry. I've chosen 7 branding activities followed by pharmaceutical companies. I want to study the relationship between the perception of ethics in those activities by doctors and how that might affect their prescription behavior. My hypothesis is that more ethical perception can result into better doctors' response. I used a likert scale of 5 points to identify both "the perception" and "the response" for each activity. How can I analyze? What tool can better answer my question? should I analysis each activity separately or is there a tool to consider all of them as a whole? | I have some gained from survey questions. In my case they are responses (Strongly Disagree-Disagree-Neutral-Agree-Strongly Agree). In my data they are coded as 1-5. I don't think means would mean much here, so what basic summary statistics are considered usefull? |
I use a paid VPN service (TorGuard) and when I run it on my computer, I am able to configure the client to completely block Internet access if the VPN is disconnected... The Android version of my VPN client does not have this option, so my question is, is there another way I can completely block Internet traffic if my VPN is disconnected? Alternatively, is there a way I can get some sort of warning when the VPN is disconnected? I'm using a Kogan Agora 6+, running Android 6.0 ("Marshmallow"). | I would like to direct all the traffic through my VPN connection on my Android based phone (HTC Desire). The VPN works great, but problem is that when the VPN disconnects, the traffic is redirected through my regular internet, something I don't want to happen. How can I block the traffic outside the VPN? |
What's the relation between complex and vectors......Complex are usually represented as position vectors and during rotation we only rotate the directed line formed by the two complex.Why do they share some properties when they are entirely different? | What is the relation between complex numbers and vectors? I have read in some places "a complex number a 2-dimensional vector". One can easily observe that $i\cdot i=-1$ in complex multiplication like the cross product of vectors. Is vector only the generalisation of complex number to n dimensions? Is there any fundamental difference between those two? |
I have a text variable of class text that shows something like this when it is returned: " This is sentence 1. This is sentence 2. This is sentence 3. This is sentence 4." I want to be able to delete specific lines from the text, without affecting the rest of the variable: For example: delete {1, 3} to get this result: "This is sentence 1. This is sentence 3. This is sentence 4." | I have a text variable of class text that shows something like this when it is returned: " This is sentence 1. This is sentence 2. This is sentence 3. This is sentence 4." I want to be able to delete specific lines from the text, without affecting the rest of the variable. For example: delete {1, 3} to get this result: "This is sentence 1. This is sentence 3. This is sentence 4." The method described in this answer has a serious bug: The linked method to delete lines in a paragraph actually converts all linefeeds in the text variable to returns. In other words, it is impossible to run this code more than once on the same variable. For example, the following code: set varText to " This is sentence 1. This is sentence 2. This is sentence 3. This is sentence 4." set varText to do shell script "sed -e '1d;3d' <<< " & quoted form of varText -- Employing the same method on the same variable: set varText to do shell script "sed -e '1d;3d' <<< " & quoted form of varText return varText returns "" Since this method only works correctly if the lines of the text variable are the product of a linefeed (as it should), the problem is not that this method fails to perceive a return as a new line (as I had originally claimed in this question). The problem is that this code introduces a return to the text variable in the first place. Thus, I want a solution that will allow me to run the same text variable through the solution more than once in the same AppleScript. In other words, I am looking for a method to remove a specific line from a paragraph that does not have this bug and does not insert a return anywhere in the text. |
I have some projects I try to split up for easier management. Therefor I moved some parts that are used by different applications into modules rather than copying files around. Right now I have the following structure for my modules (every module has its own docs and tests): /projects /module1 __init__.py run_tests.py /docs ... /module1 __init__.py module1.py /tests __init__.py module1_test.py /module2 ... Now I got myself the "main app" directory laid out in the same manner: /projects run_app.py run_tests.py /docs ... /app __init__.py app.py module1 <-- Link to the module1 repository /tests __init__.py app_tests.py All my __init__.py files are empty at the moment and I do not know how to write a proper import statements in my app.py file. Since there is only one class in module1 I don't want a hugh import module1.module1.module1.ModuleClass so the ModuleClass should be imported to "module level" so I can just do something like a import module1.ModuleClass. I figure I have to tweak the __init__.py files but all I tried broke either the tests or the whole import. Any help would be very much appreciated and sorry for my poor explanations I am not a native speaker... | How do I import a Python module given its relative path? For example, if dirFoo contains Foo.py and dirBar, and dirBar contains Bar.py, how do I import Bar.py into Foo.py? Here's a visual representation: dirFoo\ Foo.py dirBar\ Bar.py Foo wishes to include Bar, but restructuring the folder hierarchy is not an option. |
Is it possible to use = in an enumerate label? Like so: k=1: item1 k=2: item2 The following example doesn't seem to work. \begin{enumerate}[label=k=\arabic*:] \item item1 \item item2 \end{enumerate} | When using commands that allow using key-value pairs, how can one provide an argument value that has commas in it? As an example, say I'm using the \newacronym command from the glossaries package as below: \newacronym[firstplural = Alphas, Bravos, and Charlies (ABCs), plural = ABCs]{ABC}{ABC}{Alpha, Bravo, Charlie} Unfortunately, the comma is used to separate key-value pairs so the Bravos, and Charlies (ABCs) portion doesn't get parsed correctly. Is there a way to overcome this? |
This is quite infuriating. Just when I feel like I'm grasping this whole series konverging/diverging tests-notion, this one pops up. Here is what I did: $$\sum_{k=1}^{\infty}|(-1)^k(\sqrt{k+1}-\sqrt{k})|=\sum_{k=1}^{\infty}(\sqrt{k+1}-\sqrt{k})=\sum_{k=1}^{\infty}\frac{1}{\sqrt{k+1}+\sqrt{k}}\leq\frac{1}{2}\sum_{k=1}^{\infty}\frac{1}{\sqrt{k}}=\text{Div.}$$ So the series is not absolutely convergent. So this test didin't give me anything. For Leibniz test, that states that if $\{a_k\}^{\infty}_{k=1}$ is a decreasing sequence of positive numbers with limit equal to zero, then the alternating series $\sum(-1)^{k-1}a_k$ is convergent. However, $a_k=\sqrt{k+1}-\sqrt{k}$ is unfortunately increasing. | Please suggest some hint to test the convergence of the following series $$\sum_{n=1}^\infty (-1)^n(\sqrt{n+1}-\sqrt n)$$ |
How can I fix the following cardinality estimation warning? while exists(select 1 from @images) begin declare @imageid int declare @filename varchar(max) select TOP (1) @imageid = [imageid], @filename = concat([imageid], '.', [extension]) from @images order by [imageid] ... delete @images where [imageid] = @imageid end SQL Server Compatibility Level: SQL Server 2019 (150) | I noticed this while doing some performance testing recently. When I insert a value into a column that will require an implicit conversion (e.g. bigint into nvarchar), I get a warning: Type conversion in expression (CONVERT_IMPLICIT(nvarchar(50),[tempdb].[dbo].[#MyFunIntTable].[EvenCoolerColumn],0)) may affect "Cardinality Estimate" in query plan choice. Being a concerned citizen, I checked all of the obvious suspects and eventually dug into the XML to confirm that it was actually warning about the insert into the table. The problem is, I can't figure out why this would ever affect cardinality estimates. If I were doing this in a join or somewhere with a little more logic it would make sense, but there shouldn't be a cardinality estimate mismatch for the actual insert operation, right? I noticed that this happened when it was more than just a trivial query - as soon as more than one value is inserted, or we're pulling a value from a table, we hit this. This question has attracted some potential duplicates, including: I think it is different from these questions because I'm literally not doing anything with this column. I'm not using it in a filter, or a sort, or a grouping, or a join, or in a function - any of these things makes the scenario more complicated. All I'm doing is inserting a bigint into a nvarchar, which should never impact a meaningful cardinality estimate that I can think of. What I'm specifically looking for out of an answer is: An explanation of why I get this warning despite nothing of interest going on - is it just that SQL Server will be conservative and report even when it won't affect plan choice? What cardinality estimate is actually at risk here, and what operation would change based off of inaccuracies in that cardinality estimate? Is there a scenario where this could affect plan choice? Obviously if I start joining or filtering on the converted column it could, but as-is? Is there anything that can be done to prevent it from warning, besides changing data types (assume this is a requirement of how the data models interact) I recreated it with the below simple example () DROP TABLE IF EXISTS #MyFunStringTable; DROP TABLE IF EXISTS #MyFunIntTable; CREATE TABLE #MyFunStringTable ( SuperCoolColumn nvarchar(50) COLLATE DATABASE_DEFAULT NULL ); CREATE TABLE #MyFunIntTable ( EvenCoolerColumn bigint NULL ); INSERT INTO #MyFunIntTable ( EvenCoolerColumn ) VALUES ( 1 ), ( 2 ), ( 3 ), ( 4 ), ( 5 ); INSERT INTO #MyFunStringTable ( SuperCoolColumn ) SELECT EvenCoolerColumn FROM #MyFunIntTable; INSERT INTO #MyFunStringTable ( SuperCoolColumn ) VALUES ( 1 ); INSERT INTO #MyFunStringTable ( SuperCoolColumn ) VALUES ( 1 ), ( 2 ); INSERT INTO #MyFunStringTable ( SuperCoolColumn ) SELECT 1; INSERT INTO #MyFunStringTable ( SuperCoolColumn ) SELECT 1 UNION ALL SELECT 2; INSERT INTO #MyFunStringTable ( SuperCoolColumn ) SELECT 1 FROM #MyFunIntTable; |
I have a main function with a setTimeout function inside of it that uses a random interval each time the main function is called. Once the timeout triggers it will run the main function again and create a new timeout. However I can manually run the main function multiple times, continuously generating additional randomly timed setTimeouts. I don't want this to happen, I need the timeouts to overwrite each other each time they are made so that only one can exist at a time. I have applied a couple of fixes already which seem to work in theory but in practice fail. Here is my code: mainFunc { var timeout; console.log(timeout) clearTimeout(timeout); timeout = setTimeout(mainFunc(), randomTime) } As you can see clearing the timeouts and restating the variable both fail to change the behavior of the program. Any ideas are greatly appreciated. | What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally? |
I have Similar Question to . I have following hierarchy \part -> \section -> more than one \subsection --> the content of subsection . see the following code necessary imports are here (assume it) . \begin{document} \title{THE TITLE} \author{AUTHOR} \maketitle \tableofcontents{} \part{PART1} \section{SECTION1} \subsection{SUBSECTION1.1} fmksmnd nsdjkn nvkdfjnv \subsection{SUBSECTION1.2} dsmvndsmv n v,mvn f nsdv,sdn \part{PART2} SAME STRUCTURE TILL THE END \end{document} And I am getting the same warning ! | When compiling my LaTeX file, I received this warning message. Though I got the PDF file, I still want to know why this warning comes and how to fix it. It occurs in this line. \paragraph{Plane stress} Plane state of stress, a.k.a. plane stress, is a state of stress in which\[\sigma_{33}=\sigma_{31}=\sigma_{32}=0.\] Warning: Difference (2) between bookmark levels is greater(hyperref) than one, level fixed on input line 97. Difference (2) between bookmark levels is greater(hyperref) than one, level fixed. The question may be seemed dummy to some TeX experts, but as a newbie here, I really don't know how it comes. I attempt to write two subsubsections, but without numbering them. So I choose the command \paragraph. Is there any work-arounds? |
I'm trying to find an example of using google fonts in Marketing-Cloud, here's what I currently have but it seems that the platform(Marketing-Cloud) is stripping out this code while rendering of all emails. Does Marketing-Cloud allow google fonts to be implemented? /*================================================================================ Lora == https://fonts.googleapis.com/css?family=Lora:700&display=swap"%20rel="stylesheet ==================================================================================*/ @media screen { /* latin */ /* latin-ext */ @font-face { font-family: 'Lora'; font-style: italic; font-weight: 400; font-display: swap; src: local('Lora Italic'), local('Lora-Italic'), url(https://fonts.gstatic.com/s/lora/v14/0QIhMX1D_JOuMw_LL_tLtfOm84TX.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* cyrillic-ext */ @font-face { font-family: 'Lora'; font-style: normal; font-weight: 700; src: local('Lora Bold'), local('Lora-Bold'), url(https://fonts.gstatic.com/s/lora/v14/0QIgMX1D_JOuO7HeNtFumtus-7zu-Q.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } } | Has anyone figured out a way to use custom fonts in Marketing Cloud emails, where the font is specified only with Free Form content block level? There is a hacky solution provided for full HTML emails in , but this method doesn't seem to work or I'm doing something wrong. First encode font file on site. Then create codesnippet with the code: %%[ SET @customFont = "T1RUTwAMAMKAAAMAQENGRiDCu2zDikEAAgTCuAAAwoITR1BPUzA.." ]%% Then add the @fontface to the block @font-face { font-family: CustomFont; src: url(data:font/ttf;charset=utf-8,base64,%%=v(@customFont)=%%) format('truetype'); } Then style the areas with simple div { font-family: CustomFont; } However even just adding the @font-face to the Free Form will disappear after saving it. Anyone else have had any luck using custom fonts with emails HTML? |
My family is residing in USA and we are from India. Now my mom gets super bored at home! And loves to read the regional online newspaper and magazines from India on the Internet; problem is she doesn't know how to use a computer! Me or my dad has to sit with her and click links for her, I have never heard anyone say a simple back in a browser in so many ways!. Interestingly, she didn't have a hard time in using my dad's iPhone 4, in which he managed to lose! I already own a Asus Transformer 300t and I tried to instapaper the websites she visits this she doesnt miss at any chance. Problem is, those turn up beautifully on the desktop/webapp but the fonts aren't rendered properly on my tablet or any Android device, before I go ahead and get a Nexus 7 or Galaxy Tab 7, can I have this font show up on Android or at least, instapaper. All I need to do is instapaper every article when I come home in evening (morning time in India, meaning the newspaper just came out), so that she can read it next day and as a trial run on my tablet!, Also, those websites, at least the one mentioned above, don't implement RSS feeds or else I could have had my Calibre auto generate/fetch daily news and make an e-book every day and download it on the tab. But I also don't know if those fonts will be detected on Kindle app or any app for that matter! I know I can try having it outputted as PDF but teaching her to go to PDF and then browse; that's too much for me to teach! The instapaper works smoothly, open instapaper, read headlines, tap that and read/scroll/read , press back next article... plus I still got to download that PDF for her to the tablet Also reason I'm saying Instapaper often is cause only that will detect the actual title of article Some screenshots: for following Android Apps: Web Version: | Please excuse the length of this question. I need to explain all this to help others and to avoid helpful contributors to provide answer without asking clarifications. My requirement in one line: "to enable an Android phone to display Tamil characters properly". Elaboration: Tamil, like any other Indian language has complex character rendering system. Unlike English or other Latin based script, it has glyph (what you see in screen) composed of more than one character. Android does not have ability to render such complex scripts (with exceptions). My aim is to know how I can provide such an ability to an Android phone or tablet. Little background that I gathered so far: To display a glyph in screen, Android first needs a suitable font file. Android device has a folder /system/fonts which has few of them. The most interesting file in that folder is the DroidSansFallback.ttf. As the name suggests, when Android's system fails to find a character in system fonts (that could be DroidSans.ttf or DroidSans-Bold.ttf etc) it falls back to search it in DroidSansFallback.ttf. By replacing a suitable font file from PC (Latha.ttf or Lohit-Tamil.ttf - these are fonts for Tamil) and DroidSansFallback.ttf will enable to display Tamil characters in the device. It is not so easy to replace and it involves rooting the device and mounting the system as writable. In spite of those troubles, even if the DroidSansFallback.ttf is replaced, the Tamil characters that are displayed are not rendered properly. The Tamil character "தி" is a conjunct of two characters and instead of getting displayed as "தி", it will be displayed as "த ி" without space in between. Though this is enough to read short messages, it cannot be used to read books etc. From Android 4.0 on wards, Tamil and other few languages are supported through browser as said in Android 4.x API overview as seen below. Support for Indic fonts (Devanagari, Bengali, and Tamil, including the complex character support needed for combining glyphs) in WebView and the built-in Browser The words to notice is "in WebView and the built-in Browser", which means that Tamil characters will be rendered perfectly if it is rendered as HTML content and will not be rendered otherwise. Opera and other few browsers did this even before Android 4.0 by substituting image instead of character. I noticed that in few devices that target Indian market (ex: LG Optimus One, most of Samsung phones and tablets) are able to display Tamil properly both in browser and even in places out of browser like in contacts, text messages, file names etc. To my surprise they do this even in Android 2.3 onwards. I also noticed that the same model targeting non-Indian country running same version of Android does not support Tamil character display. This made me to investigate further and reached a conclusion that Android (as other Linux based OS) depends on a font rendering engine to display such complex characters. The two engines that I came across are Skia and Harfbuzz. I noticed LG uses skia and Samsung uses Harfbuzz libraries in their devices to bring this ability. I came across many websites suggesting to replaces these libraries and fonts. It did not work and results in freezing. Fortunately I backed up using clockworkmod and hence I restored my phone. Though I had explained this with Tamil, this is applicable for most of the Indian languages. Here comes my question (if you are still reading;) ) Now, far sure it is clear that a TTF file should be present to provide characters and an appropriate libraries (libskia.so or libharfbuzz.so) are required to render them correctly. Does any one know how these manufacturers are able to provide the ability? I am even ready to build my own ROM from AOSP (Android Open Source Project). |
Downloaded 64 bit ISO for 13.10. Whether burned to DVD or on bootable USB it's the same result. The laptop boots to the GRUB try/install/oem/check menu. When try or install is chosen the screen changes to the Ubuntu logo with the animated dots below it and then animates for a while. After that the screen goes blank and stays that way. Attempts to bring up console with alt-f1 don't work. Modified boot options and removed splash and quiet, watching the boot process I see nothing unusual, until the system apparently starts X and the screen goes and stays blank. I ran check on the USB stick and it says the Ubuntu system on there checks out. I've tried turning off UEFI boot, but then neither USB nor DVD boot at all. Secure boot is off (has been the whole time). So far I'm stuck booting into Windows 8.1 or not at all it seems. Right now it feels like my options are to use Ubuntu from VirtualBox within Windows or just return the computer. Any thoughts or advice? | 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: |
I have a content like this. <strong>Citation1:</strong> Firs<b style="font-weight:bold">t</b> Ci<b style="font-weight:bold">t</b>a<b style="font-weight:bold">t</b>ion I want to remove all <b> tag using regex I am using below but its not working with multiple b tag. function removeBoldString(str) { const re = new RegExp('(<b(.*)">)|(</b>)', 'g'); return str.replace(re, ''); } | I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}: The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}? |
I have made a cog wheel and am trying to animate it into a full 360 degree spin. Since I am only spinning the wheel across the Y axis I didn't feel that any armature or bones were necessary. I'm having issues, though, with getting the animation cycle to be fluid. The keyframes and rotations are as follows: 1: 0 degrees 1/4: 90 degrees 1/2: 180 degrees 3/4: 270 degrees last: 0 degrees This has the unwanted result of ending on the same rotation that the animation starts, which as you can guess causes a 1 frame glitch in the animation where the frames are the same. I don't know exactly what the rotation should be 1 frame from being back to the start. This seems like a very common problem, and I would presume occurs in walk cycles or any other animation sequence. What is the fix for this? Can you ignore the last frame in the animation cycle, but use it to set the values (IE: define the last frame to be 0 degrees, causing the animation to animate to that end, but never reach it, as the last frame would become the first frame of the next iteration)? | At the end of my animation, the animation pauses a bit then loops again, how can I stop the slow pause, and let the loop work fluently? |
I have been trying to write a simple java program to display random alphanumeric numbers every time. However I am getting the same result as [C@a3a380 import java.util.*; import java.security.*; public class NumericOTPGenerator { public static void main(String args[]) { int length=5; System.out.println("OTP : "+generateOTP(length)); } static char[] generateOTP(int length) { String capitalChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; String smallChars = "abcdefghijklmnopqrstuvwxyz"; String numbers = "0123456789"; String symbols = "!@#$%^&*_=+-/.?<>)"; String values = capitalChars + smallChars + numbers + symbols; char[] generatedOTP = new char[length]; SecureRandom rand = new SecureRandom(); for (int i = 0; i < length; i++) { generatedOTP[i] = values.charAt(rand.nextInt(values.length())); } return generatedOTP; } } Please suggest how do I resolve this issue. | In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the of the array, as defined by Object.toString(): int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray); // prints something like '[I@3343c8b3' But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs: // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5] // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob] |
All of the online calculators for exposure, I have seen, factor in time, film speed, and aperture (which is a function of the iris diameter and the focal length of the lens). However I would have thought a lens with a larger diameter (with the same focal length and aperture) would collect more light and therefore be faster! For example lets say I have a scene of a candle 10 meters (32 ft) away, with a black back drop. I have a 10 mm diameter lens, with lets say a focal length of 80 mm, an aperture of f/8 and 100 iso film. This takes say 10,000 seconds of exposure. Now what if we get four 10 mm lens. Use some fancy arrangements of mirrors/prisms to have them focus on the one piece of film. That should take 1/4 of the time (2,500 seconds). Lets just ignore any image distortion for now. Ok so lets say, rather than four 10 mm lenses we use one 20 mm lens (which would be the same area) I would expect that to take 1/4 the time as well. However this doesn't seem to be take into account with any calculators I have seen. Am I just looking at rubbish exposure calculators, or am I missing something? Edit: This question specifically asks about lens diameter and Exposure. The duplicate linked questions, deal with exposure (not taking lens diameter into account or look at image quality and diameter. Neither of which deal with my question at all! | I have tested two different 50mm lenses in my camera. One was a Nikkor 50mm ∅52mm. The other one was a Sigma 50mm ∅72mm. I took some pictures with both lenses using the same setup for aperture and shutter speed, but couldn't notice significant differences in the quality of the pictures. So, how does the diameter affects the photo quality, if it does? What advantages would the ∅72mm lens have over the ∅52mm one? |
]I am a nineteen years old student from Ukraine. I have got a girlfriend in the UK, I met her in February, 2016. She's visited me four times since. Last time she was here she invited me to visit her in the UK. I decided to go this summer for 20 days. I submitted an invitation letter from her. It tells our story, how we met and the list of her supporting documentation such as: a copy of her passport confirming that she is a british citizen; another copy of her passport showing that she's been to Ukraine (stamps at the border); her payslips from work and a bank reference showing that she can support me in case of emergency and her home address; her letter from uni showing her home address; her tickets, insurance, booking confirmation letters for Ukraine, again, showing that she did travel to Ukraine; two photos of ours; She also wrote that I would not need money for accomodation and food since I am staying with her at home. I have also submitted my cover letter telling our story and supporting documentation: reference from my uni confirming my status as a student; my student ticket confirming the same; tickets to the UK and back; my travel insurance; my birth certificate (showing that I am my father's son) - to prove that I am related to my sponcor (Dad, who is living in Ukraine). Therefore it's obvious that my sponcor is my Dad, not my girlfriend. It is clearly stated in my online visa application. photos of me and my girlfriend ( we had 4 photos overall); And my sponsor's(dad's) supporting documentation: his references from work showing his occupation and wage; his references from banks showing that he will sponcor 1000 pounds on my trip; a copy of his passport; Lately, I have been refused of a visitor visa. Below is the explanation: What exactly should I have done differently, and what I can do ensure a successful subsequent application? | Many of the UK visa refusals we see here share a common pattern and the prevailing reasons refer to V 4.2 (a) and (c). I do understand that, while the applicants may describe very different individual circumstances, there's a consistent pattern and, broadly, fall into specific categories: Credibility (lifestyle, lack of ties, visit history, lies & omissions) Funding (insufficient funds, provenance of funds, funds parking) Sponsorship (family, friends, employer) Question: What most commonly triggers a UK visa refusal where V 4.2 (a) and (c) are given as the grounds? Secondarily: Given that there is a clear pattern, to what extent are these refusals predictable? Does sponsorship make a difference? Is there a set of personal circumstances, however abstract, where a refusal is all but guaranteed? For example, why do those we see here on TSE who sought entry for the PLAB or British Army appear to be refused with a common theme? Is there a uniform shortcoming or is it just discrimination? PLAB: What is about applications for a visa, for the purpose of sitting the Professional and Linguistic Assessments Board (PLAB) exam, that seem to invite refusals. After all, the test is given so that international medical graduates can show that they qualify to practise medicine in the UK. The first part, PLAB 1, can be taken in centres outside of the UK. However, PLAB 2 can be taken only in the UK. Why can't you can't get a visa just to sit the exam, promising that you'll leave immediately after? British Army: Since Commonwealth citizens are eligible to apply online to join, even those who don't reside in the UK, why is it so difficult to get a visa just to attend an interview to see whether you are suitable? Even with an invitation from the Army, such visa applications seem to be unsuccessful. Isn't a career in the British Army a valid reason? Lastly: After such a refusal, what approaches would increase the chance of a successful application? |
How would I partition my main disk? 256 GB — 109 GB free (57.5% full) Because when I am running my OS (Ubuntu) It is mounted, but to partition it I need to unmount it. | Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers. Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions). Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space. How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions? |
I wonder how I can remove SwiftKey Keyboard form the updates list. Notes It's a system app. Its Disable button is grayed out. | General question I have an app X installed on my device in version Y. I don't want to update it to any newer version (Y+z) for some reason. Still, the Google Play Store app always lists updates for X, which keeps me from a simple "update all". My question, put to a single sentence: How to hide updates for X permanently from the "available updates" list? Specific examples First, I know there are alternatives as e.g. the , which can handle this quite well (skip this update, skip all future updates). I prefer a "generic solution", which does not depend on a 3rd party's market app. Second, I know that includes a "Market doctor", which can be used to disconnect an app from Google Play.1 However, in my specific case that only worked for a few hours: I disconnected GTalk, as I don't want it replaced by Hangouts. The update notification disappeared for a few hours, then it was back. No idea what restored the "link". Third, just to make sure: I'm not talking about the "auto update" feature as discussed e.g. in . I was rather hoping for something close to , but without the need to "freeze" the app in question (which I still want to use, but in the version installed, not in a "future version" available). Fourth: No, uninstalling the app in question is no option here, though it would perfectly hide any future updates from being displayed :) Nor is "freezing", as the app is used regularly. Fifth: There is a related question for my GTalk example: However, I want the opposite: No update. It might very well be that "Google Apps" (and other pre-installed apps) are handled in some specific way, and restore their "market links" themselves somehow. For this case, my question includes: How to prevent that from happening? Update There's a discussing the very same issue. Until recently, a work-around for "user installed apps" was to uninstall them and then sideload the .apk – but even that stopped working. Well, re-signing the .apk with a different key might work for user-apps. But both would fail for pre-installed apps (can't sideload them to override; different signature would refuse that install completely). Moreover, there's an on this by some "joel.bou..". Not hard to guess, though blanked out: that would be Joël Bourquard. If it's really him, then that's really an issue (for those who don't know: Joël is the dev behind Titanium Backup). Let me quote from the issue: For the record: in the Android Market days it was possible to "Attach" or "Detach" apps (on rooted devices) with a system tool such as Titanium Backup. But nowadays (with the Google Play Store app) this has become nearly impossible to do, because the complete app list seems to sync from Google's servers and the user has no control over that. Which explains why detaching with apps like Titanium Backup is no longer permanent. And I'm afraid I've asked the impossible. But I thought the same in the past with other questions, and surprisingly got solutions here. So I do not yet give up hope on this one! 1: what that does is explained by eldarerathis (thanks to for digging that up!) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.