body1
stringlengths 20
4.1k
| body2
stringlengths 23
4.09k
|
---|---|
Java code asks the user to enter the number of grades he want to enter then it enter a function or method to put them into array then enter another method to find average. the code compile without error but when i run and i put the number of grades but the function grades crash, I am used to code in c++ so i may be missing some basics of java. Your understanding will be appreciated. I hope when fixing it , to tell me what is my mistake. package lab10ex8; import java.util.Scanner; public class Lab10ex8 { public static double[] grades ( int n, double a [] ) { Scanner S = new Scanner(System.in); double grade=0; for(int i=0; i<n ; i++) { grade = S.nextDouble(); a[i] = grade; } return a; } public static double average( double a[] ) { double average=0; double c; double sum=0; Scanner S = new Scanner(System.in); for(int i=0; i< a.length ; i++){ c= a[i]; sum = sum+c; } average = sum/a.length; return average; } public static void main(String[] args) { int n; System.out.println( "Enter the number of Grades : " ); Scanner S = new Scanner(System.in); n=S.nextInt(); double a[] = null; grades(n,a); average(a); } } | 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? |
Quick question: I have so many things configured in my Ubuntu 16.10 machine. IDEs, emacs,configuration files, zh, keybindings, touchpad configuration, etc etc etc. I want to try Gnome 3, but I don't want to install a new OS (Ubuntu Gnome), is there anyway to just install gnome de, in a stable way? Or, a way to pack and unpack all my OS configuration and programs into a new distribution? (If I really had to change from Ubuntu to Ubuntu Gnome?) | I tried to install gnome-shell on Ubuntu 16.04 and when configuring I choose gdm as my default desktop but after I reboot I didn't see the login screen , only the black screen with Ubuntu logo and the red dots, so I have reinstall Ubuntu again. My question How can I install gnome-shell on Ubuntu 16.04? |
Basically the code says everything. I have a variable x with a css property. I'm saving all the css of x into y, and then I change the value of the y's property. This change also affects x, why? How to make it to only pass the value so that x stays unchanged? var x = {}; x.css = {height: 100, width: 100}; var y = {}; y.css = x.css; y.css.height = 200; console.log(x.css.height); //equals to 200 while it should be 100 | 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? |
I have just learned something about universal Generalization in discrete math, and want to know how to prove it. It is | This is an excerpt from Discrete Mathematics. Universal generalization is the rule of inference that states that ∀xP(x) is true, given the premise that P(c) is true for all elements c in the domain. Universal generalization is used when we show that ∀xP(x) is true by taking an arbitrary element c from the domain and showing that P(c) is true. The element c that we select must be an arbitrary, and not a specific, element of the domain. That is, when we assert from ∀xP(x) the existence of an element c in the domain, we have no control over c and cannot make any other assumptions about c other than it comes from the domain. Universal generalization is used implicitly in many proofs in mathematics and is seldom mentioned explicitly. However, the error of adding unwarranted assumptions about the arbitrary element c when universal generalization is used is all too common in incorrect reasoning. I have two questions: 1. What is meant by the second paragraph ? 2. How come just by taking arbitrary c in domain, we can conclude that if P(c) is true then so is ∀xP(x). (There may exist some counterexamples). |
I have a String text "Welcome!to java@"; I know how to convert it to receive array [Welcome, to, java] String[] aaa = text.split("[\\p{IsPunctuation}\\p{IsWhite_Space}]"); System.out.println(Arrays.toString(aaa)); //priinting But I need to include punctuation. I need to receive [Welcome, !, to, java, @] Anybody know who to receive it ? The reason why I need to do it, because i have a randomise(char[] cw) method, which is tweaking words for me. However that method is going crazy when punctuation is included public void randomise(char[] cw) { for (int i = 1; i < cw.length-1; i++) { //my range int range= (int)(Math.random() * (cw.length - i - 1)); //swap index int index=i+range; //swap char temp = cw[i]; cw[i] = cw[index]; cw[index] = temp; } System.out.println(cw); } Thanks for reply | I'm trying to split a string with all non-alphanumeric characters as delimiters yet Java's String.split() method discards the delimiter characters from the resulting array. Is there a way to split a string like the "\W" regex pattern does, yet keep the delimiters? |
This was experienced in a Samsung Galaxy A30s with Android 10 using Google Chrome. When a question or an answer has an edit, like , from a user that doesn't have enough reputation for it to be approved right away we see something like Clicking in edit(1) then we'll get In this given view it's not possible to see what's on the left side but we'll be able to scroll to the right This happens also when the edit shows up in only one column Didn't manage to test in other communities but I assume this to be a general behavior. | When reviewing a suggested edit inline (not from the queue) on a site with the new “responsive” design, at a window width where normal content does fit, the diff window is truncated on both sides, as is the edit window after cliking “Improve Edit” or “Reject and Edit”. This is from which happened to have a pending suggested edit at the time, after clicking the edit(1) button. Note how the scroll bar is all the way to the left, but there's content that vanishes to the left of the window. That's in Chrome 67.0.3396.87 on Linux at zoom level 100%, with a window width of 800. Note that I'm not complaining that the user interface isn't responsive yet (although now that this has been deployed to SO I'd expect it to be), but that the interface is completely unusable even with scrolling. In sites with the old UI, you can see all the content even if it requires scrolling. Reviews done from the suggested edit review queue are ok (not responsive, but you can see the content by scrolling). Inline edits are ok. The problem is specific to inline suggested edit reviews. |
Queries to find duplicate rows in a database and to delete them. Can anyone explain these queries how they are fetching the result ? SELECT * FROM emp a WHERE rowid = (SELECT MAX(rowid) FROM EMP b WHERE a.empno=b.empno) to Delete: DELETE FROM emp a WHERE rowid != (SELECT MAX(rowid) FROM emp b WHERE a.empno=b.empno) | What is the best way to remove duplicate rows from a fairly large SQL Server table (i.e. 300,000+ rows)? The rows, of course, will not be perfect duplicates because of the existence of the RowID identity field. MyTable RowID int not null identity(1,1) primary key, Col1 varchar(20) not null, Col2 varchar(2048) not null, Col3 tinyint not null |
If i will boost my stats for 11 and more with items or buffs, will it work? Are there any formulas to calculate? This question is not about "how increase" but about "what it will give for me". Is there limit to stats benefits. UPD. Those who marks this question as duplicate, please, show me answer from that topic. I do not see it there. | I've been hearing some rumors from friends, mostly anecdotal indicating that skills, when gone past 10 (such as initially having 10 in one skill, then finding a bobblehead or skillbook), actually improve past 10. I can't find any proof of this yet, and my current character right now is slightly incapable of maxing any stats soon to 10 and testing it out. So I'd like to understand if SPECIAL stats increased past 10 show any benefit? Can SPECIAL stats be increased past 10? |
During clustering, what are the advantages of using either the component-wise median or the component-wise mean (centroid). One of the possible advantages of the component-wise median over the mean may be the robustness to outliers, even if, with a good number of samples, outlier effects don't affect the central point of the cluster. Are there other advantages for either one or the other alternative? | I know there is k-means clustering algorithm and k-median. One that uses the mean as the center of the cluster and the other uses the median. My question is: when/where to use which? |
Can you suggest a word in the English language which needs a prefix to be converted to a plural form? | Plenty of nouns change the second letter to become plural (man->men, goose->geese) but does anything change its first letter. I've hunted high and low over the internet, and spent ages browsing the questions at but I can't find anything. |
I have been reading through on pilot wave theory which talks about new evidence in support of Louis de Broglie's concept of pilot theory through experiments showing that the droplet in a double slit experiment goes through one slit and the pilot wave going through both. In the article, physicists are quoted saying things like “I think the experiments are very clever and mind-expanding, ... but they take you only a few steps along what would have to be a very long road, going from a hypothetical classical underlying theory to the successful use of quantum mechanics as we know it.” - Frank Wilczek, a professor of physics at MIT and a Nobel laureate and “This really is a very striking and visible manifestation of the pilot-wave phenomenon ... It’s mind-blowing — but it’s not going to replace actual quantum mechanics anytime soon.” - Seth Lloyd, a quantum physicist at MIT The article goes on to talk about how pilot theory is "more cumbersome than standard quantum mechanics. Some researchers said that the theory has trouble dealing with identical particles, and that it becomes unwieldy when describing multiparticle interactions. They also claimed that it combines less elegantly with special relativity." Looking into it some myself, it seems that one of the reasons why everyone is not on board is that the pilot wave interpretation gives up locality. So, what obstacles does pilot theory have to overcome through more research before it can become a more uniformly accepted theory? | Possible Duplicate: I've heard of De Broglie–Bohm theory a.k.a causal interpretation of quantum theory. The predictions match accurately with with the nondeterministic quantum theory. As a philosophy buff this one seems just like the classical universe. No funny new-age religion style gimmicks. So why don't people use this interpretation instead of the Copenhagen "magic" interpretation? P.S. I'm not an expert. I possess only superficial knowledge of quantum physics. |
In the Android app, I saw a blog post on "ES beta", that links to the Stack Overflow blog. I assume this is a cosmetic bug, as function is not affected. | Today in the feed on the Android Stack Exchange app there is a Stack Overflow blog post. This post had the site icon next to it for rather than the proper site logo (Meta). Stack Exchange Android App Version 1.0.73 and 1.0.74 Android 5.1 on a Moto X (2013) running stock firmware. Same behavior on a Nexus 7 (flo) running Android 6.0 (stock). This issue also happens on the iOS app. The most recent featured SO blog post (as of 17 Nov) is showing up with the "edX" site logo. The logo is seemingly randomly incorrect. |
I want to explode a multipart layer to singlepart in python. I see through the qgis gui there is a way to do it under vector--geometry--tools--Multipart to Singleparts.. which does what I need, I just need the python code for this. I'm new to qgis. | Is it possible to run the multiparts to singleparts function from the console with the processing_runalg function? Or is there another way? |
I am running Windows 10 in a Parallels VM. It's upgraded all the way from Windows 8 without issues over the years but the April 2018 update has failed repeatedly - each time I have to roll back to the previous version and each time Windows then notices I've not yet upgraded and goes into it's increasingly persistent reminder cycle which culminates in updating when I'm not looking. Surely if an update isn't compatible for some reason, Windows Update should stop trying? Is this not the case? This isn't a duplicate - I do NOT want to turn off Windows Update I want it to stop repeatedly installing something which keeps failing. | We've upgraded some machines to Windows 10 and realized there were some updates which updated as required. However, I realized there was no option available to stop the download similar to that on Windows 7 and 8.1. The only way I could stop the download was to stop the Windows Update service. My question is does anyone know of a way to stop auto updates or is stopping the service is the only solution? |
i have been doing a programing project and i have been keeping all the files on a usb stick. To get to the point i accidentally deleted this folder in the usb with all the files in. can anyone tell me how to restore them? i have already tried the program file drill but that did not work. | What steps can I take to try to recover lost or inaccessible data from any storage device? Answers: This applies to any computer storage device, e.g. internal/external hard drives, USB sticks, flash memory. The most important thing is to STOP using it, any type of I/O can ruin your chances of a recovery. We have separate questions covering common problems with USB flash drives in greater detail: |
I would like to echo a list all in one line, TAB separated (like ls does with files in one folder) for i in one two some_are_very_long_stuff b c; do echo $i; done will print one line per word: one two some_are_very_long_stuff b c instead I would like to break it, like ls without options does: mkdir /tmp/test cd /tmp/test for i in one two some_are_very_long_stuff b c z; do touch $i; done ls will output b one two c some_are_very_long_stuff z | How do I columnate any uncollumnated input like ls does? ls is creating an optimized table with minimum width for each row, for example: ls 2 dsao file with space with 5 e g wsdl-rubo-6cb0f1a9086e80c d file leading space but if I feed output into column (for ex. each file on one line), it pads every row the same width, so it fits the screen width: for i in *; do echo "$i"; done | column 2 file with space 5 g d leading space dsao with e wsdl-rubo-6cb0f1a9086e80c file (I use only the file list here to generate the same output as example, I am looking for such a solution to columnize other things in the end.) How can I colunnize any output with a variable col-width? |
I have always been confused by the relationship between the and the . $$ i\hbar \frac{\partial \psi}{\partial t} = - \frac{\hbar^2}{2m} \nabla^2+ U \psi \hspace{0.25in}\text{-vs-}\hspace{0.25in}\nabla^2 E = \frac{1}{c^2}\frac{\partial^2 E}{\partial^2 t} $$ Because of the first derivative, the Schrödinger equation looks more like the . Some derivations of the Schrodinger equation start from for light and argue that matter should also exhibit this phenomenon. In some notes by , it was derived by comparing the $\delta \int n \;ds = 0 $ and Maupertuis $\delta \int 2T(t) \; dt = 0 $. Was this ever clarified? How can we see the idea of a matter-wave more quantitatively? To summarize, I am trying to understand why the Electromagnetic wave equation is hyperbolic while the Schrodinger equation is parabolic. | Wave equations take the form: $$\frac{ \partial^2 f} {\partial t^2} = c^2 \nabla ^2f$$ But the Schroedinger equation takes the form: $$i \hbar \frac{ \partial f} {\partial t} = - \frac{\hbar ^2}{2m}\nabla ^2f + U(x) f$$ The partials with respect to time are not the same order. How can Schroedinger's equation be regarded as a wave equation? And why are interference patterns (e.g in the double-slit experiment) so similar for water waves and quantum wavefunctions? |
Is the following a complete proof? It is from the book, $Prealgebra$ by R. Rusczyk, D. Patrick, and R. Boppana Consider the sum $$x + (-x) + (-(-x)).$$ That is, we are adding x, its negation -x, and the negation of -x. By associative property of addition, we can add these three in any order. If we start by adding the first two, we have $x + (-x) = 0$, so $$x + (-x) + (-(-x)) = 0 + (-(-x)) = -(-x).$$ However, suppose we start by adding $(-x) + (-(-x))$ first. Since $(-(-x))$ is the negation of $-x$, we have $(-x) + (-(-x)) = 0.$ So, we find $$x + (-x) + (-(-x)) = x + 0 = x.$$ We just showed that $x + (-x) + (-(-x))$ equals both $-(-x)$ and $x$, so we must have $$-(-x) = x.$$ | This is my attempt based on some stuff I have been seeing around: Let $y = -x$, then $-y = -(-x)$. Now, lets sum $y + x = (-x) + x = 0$, then we have $y + x = 0$. If we had the additive inverse of $x$, i.e $-x$, to both sides, we obtain: $$y + x + (-x) = 0 + (-x) \\ y + 0 = 0 + (-x) \\ y = -x\\ -y = x \\ -(-x) = x$$. Is this proof correct just using the field axioms? I think that the key point is finding that $y = -x$. |
I've been working with functions in C++ and I dont realy know what really is going on behind them( how the wheels spin :) ). What exactly i wanna know is: how the parameters of a function get the values? ex: #include<iostream> int function(int x) { x += 10; return x; } int main() { int y; std::cin >> y; std::cout<< function(y); } In reality the function parameter x will get the value y like this: x=y ? Based on the first question, will pass by referenece be done like this &x=y? y will be converted from int to int& ??? #include<iostream> void function(int& x) { x += 10; } int main() { int y; std::cin >> y; function(y); cout<<y; } When we call a function how much memory will be allocated for it?how much will it consume? based on what? I need to know everything that happens when a function is called , and how the function really work Sorry for my bad english , I'm Romanian. Thank you! | What is the difference between a parameter passed by reference a parameter passed by value? Could you give me some examples, please? |
Yesterday, the system asked me if I wanted to upgrade to 13.10 from 13.04. Since that was the first time for me, I decided to proceed and ran the installation without worrying about it. After the system completed the upgrade, my PC was rebooted and the new version of Ubuntu signalled that the desktop would have run in low graphigs mode due to a graphical driver problem. I couldn't manage to fix the issue, so I continued with the low graphics mode... but nothing showed up. I wasn't even able to access one of the TTYs. So I ended up rebooting the system and accessing the recovery mode. I uninstalled all my ATI graphics drivers along with xorg-server and fglrx. After rebooting, I was able to access the login session of Ubuntu, but after confirming my credentials, the desktop wouldn't show up, but instead a black screen appeared with the following message: System program problem detected I couldn't figure out the problem and tried to restore/re-install all the graphics elements I knew. but nothing worked. The screen still remains black and won't show the icons nor the Unity bar. What would you advise me to do? Should I try launching a fresh install of the OS from the live CD? Thank you. | 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 need help guys, I kind of need this for a project or something. First picture is when I haven't connect everything but when I press " Ctr + J " the result is the next picture. I'm really a noob in blender so what seems to be the problem or are there other ways to connect all the body parts / the clothes? The problem is the eyes and the goggles. | I am attempting to make a tree but when I try to join the different components together ctrl J my decimated icospheres revert back to its original shape. Any idea on how I can solve this? I also forgot to mention that I am trying to create a low poly tree and that I am still in the learning stages. The first image is the tree before joining and the second is the tree after joining |
I'm using \newcommand for create some custom functions in my text. Some of these functions have 2 or 3 arguments and many times I confuse the input order. The default commands of LaTeX in my TeXstudio editor shows suggestions like But the new commands does not do it, only shows arg1 and arg2 \documentclass[12pt,a4paper]{article} \usepackage{blindtext} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \newcommand{\test}[2]{#2 and then #1} \begin{document} \test{second}{first} \test{arg1}{arg2} \textbf{text} \end{document} There is a way to change the words arg1 and arg2 for second and first for example? \test{second}{first} instead \test{arg1}{arg2} | How to name the arguments in \newcommand so that when you call the macro they don't appear as {arg1}{arg2}... etc. but with the names each argument represent {caption}{label}... etc. without the use of a .cwl file. I'm trying to implement the following \newcommand \documentclass{article} \usepackage{ctable} \usepackage{mwe} \newcommand{\qfigure}[5]{\ctable[ caption= {#1},label= fig:#2,figure, pos=H,botcap, mincapwidth= #3 mm]{c} {}{\includegraphics[width=#4\textwidth]{#5}}} \begin{document} % \qfigure{arg1}{arg2}{arg3}{arg4}{arg5} % They would appear like this in Texstudio \qfigure{An image example}{test}{70}{0.5}{example-image-a} \end{document} As you can see there are five arguments where each one represents the caption, label, min width of caption (ctable parameter), width and file name respectively. Thanks in advance for any help. |
Nietzsche states: Whoever fights monsters should see to it that in the process he does not become a monster. And if you gaze long enough into an abyss, the abyss will gaze back into you. Source: Beyond Good and Evil In fiction (and in real life at times) people embrace the inner monsters (sometimes literal, sometimes figurative) to gain the power they need to defeat their foes, get to the next level, or grit through something they'd rather not do. If this is something that seems to work, why are we specifically warned against it? In any war, in any problematic situation where horrible things are happening, it can be impossible (or virtually so) not to use the selfsame tactics of those that oppose you. The saying goes "ALL'S fair in love and war" and even if you'll pay for doing it in the long run by being seen as a monster, by doing these horrible things (or at times even MORE horrible than those that oppose you), you'll have the satisfaction that you won, even though at day's end it was a morally a pyrrhic victory. But if you accomplish what you set out to do, sometimes it's worth it. But such things can't help but drag you through the soil of morality, dirtying you in the process. | What do you think Nietzsche meant by "Whoever fights monsters should see to it that in the process he does not become a monster. And when you look long into an abyss, the abyss also looks into you." (Beyond Good and Evil, 146)? What kind of monster? What does it mean to look into an abyss? |
I'm trying to compare variables using is operator. Here's what I've done def get_no(): return 1234 a = get_no() b = 1234 c = 1234 print(a is 1234) #False print(a is b) #False print(b is c) #True a is b is expected to be False as both are pointing to different values. But, why is b is c returning True ?. Why is the function get_no() causing a difference here? | Why does the following behave unexpectedly in Python? >>> a = 256 >>> b = 256 >>> a is b True # This is an expected result >>> a = 257 >>> b = 257 >>> a is b False # What happened here? Why is this False? >>> 257 is 257 True # Yet the literal numbers compare properly I am using Python 2.5.2. Trying some different versions of Python, it appears that Python 2.3.3 shows the above behaviour between 99 and 100. Based on the above, I can hypothesize that Python is internally implemented such that "small" integers are stored in a different way than larger integers and the is operator can tell the difference. Why the leaky abstraction? What is a better way of comparing two arbitrary objects to see whether they are the same when I don't know in advance whether they are numbers or not? |
Is it possible to get get name of variable that was passed as parameter? As you asked me to explain why I need this, here is my explain. I'm building a testing framweork using selenium. Here is example where I need that name of variable that was passed as parameter. I have a page object with field: [FindsBy(How = How.CssSelector, Using = "input[name='sample']")] private IWebElement SampleButton { get; set; } I'm clicking it like: Click(SampleButton, nameof(SampleButton)); Here is a body of Click function that u see above: public void Click(IWebElement element, string elementName) { element.Click(); Logger.Log("Click: '{0}'", elementName); } Result: Button that was passed to function was clicked and in log file I have "Click: SampleButton" Now I'm looking how to change Click function that it woul be call like: Click(SampleButton) It would look like: public void Click(IWebElement element) { element.Click(); Logger.Log("Click: '{0}'", getNameOfVariableThatWasPassedToThisParameter(element)); } Expected result of getNameOfVariableThatWasPassedToThisParameter(element) will be string = "SampleButton" I'm am using things like SendKeys(SampleInput, nameof(SampleInput), valueToSet) and it set value and log where it was set. So I just want to get rid of that nameof(SampleInput). I want to reduce amount of variables than need to be passed to function. | Let me use the following example to explain my question: public string ExampleFunction(string Variable) { return something; } string WhatIsMyName = "Hello World"; string Hello = ExampleFunction(WhatIsMyName); When I pass the variable WhatIsMyName to the ExampleFunction, I want to be able to get a string of the original variable's name. Perhaps something like: Variable.OriginalName.ToString() Is there any way to do this? |
I need help for this story I'm writing. I have been told before that you can't use the word "peoples" in a sentence because it is not grammatically correct or doesn't exist by many people. If I were to say ... capacity of 150 peoples. would it be grammatically correct? If not, when can I use "peoples"? | Let's say we are talking about the indigenous pukapuka who live in Pluto. What is correct: "the pukapuka people" or "the pukapuka peoples"? I've read somewhere the usage of "peoples" in this context, and it has surprised me. |
I was working with GTK in one of my projects and I noticed that the library supports inheritance. As you can type-cast a child struct to its parent struct and vice versa. Other than GTK I've never seen this used (so flawlessly): struct parent p = {5}; struct child c; c = (struct child)p; c.b = 1; //c.a = 5, c.b = 1 Does using the parent struct as the first element do this? As this would seem much more neat. But could padding and aligning interfere? struct parent { int a; } struct child { struct parent p; int b; } Or does rewriting all parent data make it happen? struct parent { int a; } struct child { int a; int b; } EDIT I am NOT looking to implement all pillars of OOP in C. My question is only involving type-casting the data in parent and child structs. I have found that GTK uses GObject to do this, but what must be done to achieve what GObject is doing as far as type casting? | What would be a set of nifty preprocessor hacks (ANSI C89/ISO C90 compatible) which enable some kind of ugly (but usable) object-orientation in C? I am familiar with a few different object-oriented languages, so please don't respond with answers like "Learn C++!". I have read "" (beware: PDF format) and several other interesting solutions, but I'm mostly interested in yours :-)! See also |
I would like to use python3 as my default python when working with the terminal. If I added the line alias python=python3 in my ~/.bashrc, could that cause problems with other programs? | The python program command executes Python 2. Python 3 can be executed using the python3 command. How can Python 3 be executed using the python command? |
Is there any difference between charming objects (i.e. "adding or changing certain properties of an object") and enchanting them? Is charming/enchantment used in creation of magical objects? Do runes play any part in this? I'd prefer canon answer if possible. | From a recent question, I know a curse is intended to harm people, and I think a charm is an object with a special power, but I also think I remember the word having a different meaning in Harry Potter. And I'm not clear if a curse has to be a spell or if it could be an enchantment or charm as well. So what, exactly is the difference between a spell, an enchantment, a charm, and a curse? |
I am good. I am well. I feel good. I feel well. I am feeling well. I am feeling good. I am doing good. I am doing well. A former English teacher told me #1 is improper English and to use #2. Is this true and why so? I Google searched this issue and found . The author clames both I am good and I am well are proper English, though I don't follow the argument. The nitpickers will tell you that "well" is an adverb (and therefore modifies verbs) and that "good" is an adjective (and therefore modifies nouns), but the situation isn't that simple. To me this statement is empty. So what if "well" is an adverb and "good" is an adjective? What grammar rule is being contradicted if this were true? I have heard the argument that #5 and #6 are referring to the capacity to experience the sensation of touch. What I don't understand is how #3 and #4 can't be interpreted in the same way? Does it make a difference if the asked question is "how have you been?" versus "how are you?"? | The greeting How are you? is asking How are you doing in general? — How are you? I'm well. [Misunderstood the question.] because well as an adjective which means: in good health especially after having suffered illness or injury This would be an answer to How are you doing physically, how is your health? — How are you? I'm good. [Misunderstood the question.] because good as an adjective means: having moral excellence or admirableness This would be an answer to How would you describe your character, superman? I'm good. — How are you? I'm doing good. [Grammatically incorrect.] because good is an adjective, not an adverb. — How are you? I'm doing well. [Correct.] because well is an adverb describing how you are doing. How are you? I'm doing fine. [Correct.] because fine is an adjective which means: being satisfactory or in satisfactory condition Why do so many people say one of the first three responses? |
I am a fan of using "we" in co-authored papers in order to avoid using passive voice. However, I tend to see passive voice, rather than active voice with "I," in single-author papers. Furthermore, I have read numerous suggestions to avoid using the first-person "I" in a research paper. Isn't it appropriate to use "I" and active voice? | Which personal pronoun is appropriate in single-author papers - 'I' or 'we'? Could the use of 'I' be considered egotistical? Or will the use of 'we' be considered to be grammatically incorrect? |
Is there a way to see topics views when in mobile version and if there isnt, is there a way to browse the websites desktop version in mobile? | It's Thanksgiving, so I'm getting my Gaming SE fix through my mobile iPhone browser. I recently received a notable question badge for 'How do I defeat a wispmother in Skyrim?' and wanted to see just how many views it got. I didn't expect to see it initially, but once I sorted by views, I at least expected to see the number of views the question had. Expected behavior: either views should be populated for questions when sorting by views in the mobile browser or there should be some intuitive way to see views on the mobile browser. |
I want to replace my HDD with SSD since I can't use both because my laptop has only 1 slot. I am totally confused about how to transfer the whole HDD data to SSD along with the Ubuntu OS? | My current situation is: One hard disk Dual boot Ubuntu 11.04 and Windows 7. Partitions: 100MB Windows System thingy 144GB Main Windows 160GB Ubuntu 4GB Swap 12GB System Restore stuff Now I want to install an 80GB SSD and move Ubuntu to it. AFAIK I need to: Shrink the 160GB Ubuntu partition to 80GB Copy it over to the SSD Change fstab to mount the SSD as / How do I do the second? And what do I need to do about Grub? |
I'm using regex (https?:\/\/.*\.(?:png|jpg|jpeg|gif)) to validate image url and it's working, but still some unwanted user could put a code like this in the image url: http://avatar/image'OR''='/someimage.jpg and I wonder if there is another regex can detect special character like ' and ; | If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example: $unsafe_variable = $_POST['user_input']; mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')"); That's because the user can input something like value'); DROP TABLE table;--, and the query becomes: INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--') What can be done to prevent this from happening? |
I am an Indian Citizen who has lived in Vietnam on a business visa for the last 3 months and a tourist visa for a few months before that. I am going back to India and my flight is from Ho Chi Minh to Kuala Lumpur by AirAsia (Terminal 2). My next flight 15 hours afterwards from Kuala Lumpur to Pune (Terminal 2) on Indigo airlines Do I need a transit visa? If so, I am not sure if I am eligible for it given that I'm traveling on two different airlines. | I am an Indian passport holder travelling from China to India via Kuala Lumpur, on Air Asia tickets bought separately. The layover is 4 hours and 30 minutes. Do I need a transit visa? |
in the below code i can able to convert a file to gzip but here i am providing the location for input & output staticly. But i need to provide the file name dynamically example here i am using String source_filepath = "C:\\Users\\abc\\Desktop\\home6.jpg"; String destinaton_zip_filepath =C:\\Users\\abc\\Desktop\\home6.gzip"; here in place of home6.jpg i can give anything dynamically import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.zip.GZIPOutputStream; public class CompressFileGzip { public static void main(String[] args) { String source_filepath = "C:\\Users\\abc\\Desktop\\home6.jpg"; String destinaton_zip_filepath = "C:\\Users\\abc\\Desktop\\home6.gzip"; CompressFileGzip gZipFile = new CompressFileGzip(); gZipFile.gzipFile(source_filepath, destinaton_zip_filepath); } public void gzipFile(String source_filepath, String destinaton_zip_filepath) { byte[] buffer = new byte[1024]; try { FileOutputStream fileOutputStream =new FileOutputStream(destinaton_zip_filepath); GZIPOutputStream gzipOuputStream = new GZIPOutputStream(fileOutputStream); FileInputStream fileInput = new FileInputStream(source_filepath); int bytes_read; while ((bytes_read = fileInput.read(buffer)) > 0) { gzipOuputStream.write(buffer, 0, bytes_read); } fileInput.close(); gzipOuputStream.finish(); gzipOuputStream.close(); System.out.println("The file was compressed successfully!"); } catch (IOException ex) { ex.printStackTrace(); } } } | What is a good way of parsing command line arguments in Java? |
Evaluate $\int_0^\infty\frac{\sin^4x}{x^2}dx$ with $\int_0^\infty\frac{\sin x}{x}dx=\frac{\pi}{2}$$$$$ I use $\int_0^\infty\int_0^\infty e^{-x^2y}\sin x dy dx=\int_0^\infty\int_0^\infty e^{-x^2y}\sin x dx dy $ to evaluate the integration, I wonder how to use $\int_0^\infty\frac{\sin x}{x}dx=\frac{\pi}{2}$ to evaluate $\int_0^\infty\frac{\sin^4x}{x^2}dx$ more efficiently. | I need help evaluating the following integral $$\int_{0}^{\infty} \frac{\sin^4 x}{x^2}\,dx$$ which should probably be equal to $\frac{\pi}{4}$ Using some trigonometric manipulations I got $\frac{3}{8} - \frac{\cos{2x}}{2} + \frac{\cos{4x}}{8}$ which using integration by parts doesn't lead me to anything pretty. Update: Not sure if I should post this as a separate question but getting explanation why $\int_{0}^{\infty} \frac{\sin{ax}}{x} = \frac{\pi}{2}$ for a positive integer $a$ could help me solve this question. |
I tried to delete a Linux partition on my hard drive. My hard drive was no longer bootable and the type turned into FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF. I tried to follow some of the other instructions on here to resolve the issue but have not had any success. Running diskutil list returns the following: Would really appericiate any help. Thanks in advance. EDIT I performed gpt -r show /dev/disk0 And got the following: And dd if=/dev/disk0s2 count=3 | vis -c Returned EDIT 2 After running diskutil verifyDisk disk0 I got the following errrors | Yesterday, I have tried to delete an Ubuntu partition. Since, my Mac (13", MBPro mid-2014) doesn't boot. Now, I boot on Mac OS copy with an USB. i follow different subject of this forum (like this : ), and my volume partition change from FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF to 48465300-0000-11AA-AA11-00306543ECAC. But I still can't boot to it... Thank you very much ! |
Prove that ${\sqrt {n} }^{\sqrt {n+1}} > {\sqrt {n+1}}^{\sqrt {n}};n=7,8,9...$ SOURCE : "Inequalities proposed in CRUX Mathematicorum" I tried induction, but could not prove it. Can anybody provide a hint ? | Which is greater? $\sqrt{n}^{\sqrt{n+1}}$ or $\sqrt{n+1}^\sqrt{n}$ I know that $\sqrt{n}^{\sqrt{n+1}}$ is greater but I tried using induction and I couldn't figure it out. Thanks for the help. |
I use the Android app of SE to access the site. However, I cannot see any MathJax formatting in the questions list: However, I can see clearly MathJax formatted text when I open a question. Is this a bug, or the feature is missing? In any case, it should be corrected. N.B.: I've used the example of Mathematics SE, but this is valid in any other site as well. | Although, the question is displayed correctly with MathJax when opened. App Version: 1.0.85 Device Manufacturer: Spreadtrum Device Model: Celkon A35K OS Version: 4.4.2 (eng.root.20140613.225402) |
I just installed Ubuntu 17.1 on my Dell Precision M6500 (so the laptop is vintage 2009-2010), alongside Windows 7. When in Windows, wifi works fine (and the LED is ON, just above keyboard). When in Ubuntu, no wifi, wifi light is off, and if I go to Ubuntu Settings, the wifi page indicates that there is no wifi adapter. If I then try the lspci command, I get this for the Broadcom devices: dell-M6500:~$ lspci -nnk |grep -iA3 broadcom 09:00.0 Ethernet controller [0200]: Broadcom Limited NetXtreme BCM5761e Gigabit Ethernet PCIe [14e4:1680] (rev 10) Subsystem: Dell NetXtreme BCM5761e Gigabit Ethernet PCIe [1028:02ef] Kernel driver in use: tg3 Kernel modules: tg3 0c:00.0 Network controller [0280]: Broadcom Limited BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b] (rev 01) Subsystem: Dell Wireless 1510 Wireless-N WLAN Mini-Card [1028:000d] Kernel driver in use: b43-pci-bridge Kernel modules: ssb If I then follow the instructions at , I get this: dell-M6500:~$ ls bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu3_amd64.deb Music Desktop Pictures dkms_2.3-3ubuntu3_all.deb Public Documents Templates Downloads Videos examples.desktop dell-M6500:~$ sudo dpkg -i *.deb [sudo] password for ...: Selecting previously unselected package bcmwl-kernel-source. (Reading database ... 126010 files and directories currently installed.) Preparing to unpack bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu3_amd64.deb ... Unpacking bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu3) ... Selecting previously unselected package dkms. Preparing to unpack dkms_2.3-3ubuntu3_all.deb ... Unpacking dkms (2.3-3ubuntu3) ... dpkg: dependency problems prevent configuration of bcmwl-kernel-source: bcmwl-kernel-source depends on linux-libc-dev; however: Package linux-libc-dev is not installed. bcmwl-kernel-source depends on libc6-dev; however: Package libc6-dev is not installed. dpkg: error processing package bcmwl-kernel-source (--install): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of dkms: dkms depends on gcc; however: Package gcc is not installed. dkms depends on make | build-essential | dpkg-dev; however: Package make is not installed. Package build-essential is not installed. Package dpkg-dev is not installed. dpkg: error processing package dkms (--install): dependency problems - leaving unconfigured Processing triggers for man-db (2.7.6.1-2) ... Errors were encountered while processing: bcmwl-kernel-source dkms This laptop does not support UEFI boot so there is no Secure Boot option to turn off (I also looked in BIOS and could not find anything related to secure boot). BIOS is latest (A10). Any ideas of how to make wifi work? | The Additional Drivers settings interface is no longer available in Ubuntu 17.10 How can I install proprietary drivers in Ubuntu 17.10? I need drivers for Wifi & Bluetooth (BCM43142) and Intel Graphics. The earlier Additional Drivers program showed a package named jockey but it no longer seem to exist in repositories. |
I want to extract the last occurrence of a string from a long string where this string occurs one or more times. I've tried a few different look ahead expressions but haven't been able to figure this out. The string is something like: AAA|BBB|Teststring:21|ZZZ|Teststring:23|Test 50 I tried using something an expression like: (?:Teststring:\d+.(Teststring:\d+).$) This works for those cases where there are more than one occurrences of Teststring, but fails when there is only one. So it works in the above test example but will fail for the below string: AAA|BBB|Teststring:21|ZZZ 10 | I don't really understand regular expressions. Can you explain them to me in an easy-to-follow manner? If there are any online tools or books, could you also link to them? |
New to QGIS and installed 2.6.1 on Windows XP desktop home edition. No errors received during install. When I launch QGIS Brighton from Start - Programs the qgis-bin.exe - Entry Point Not Found pops up. The procedure entry point xmlSchemaNewDocParserCtxt could not be located in the dynamic link library libxml2.dll. The same error shows when launching QGIS Browser 2.6.1 as QGIS Desktop 2.6.1. | Today, after returning from vacations, I started my QGIS 1.7 and got this terrible message: Help, anyone? |
I know that my question probably don't belong here but I would be really so thankful if someone has the skill for solving this out. I have recently made several update statements that I shouldn't have done and would like to see their queries with parameters or at least something so I could retrieve the data back manually. I'm able to access ::fn_dblog(NULL, NULL) and I would like to know if can I see the queries with parameters from there? It could have been cca 200 statements. I'm using SQL server 2012. I don't have backup or query tracing ony my server. | I mistakenly deleted around 2,000,000 records from a remote SQL Server 2008 table. The server is not granting me access to the backup files on the server side. Is there any way to get back these records? |
When in object mode with wireframe display, Blender only draws edges between non-coplanar faces, or edges which only belong to one face. For example this image shows switching between object and edit mode: Using the python API, is there a way to access the object mode preview mesh, or some other way to tell if an edge would be rendered in object mode? i.e., without having build a list of faces for each edge and then check whether every pair of faces is coplanar? I don't want to display all edges in object mode, so option "Draw all edges" is of no use. In fact that is the exact opposite of what I want. I want to export only the edges which are shown in object mode, using a python script. | I sometimes like to view my models in wireframe mode, but it doesn't show individual faces, only lines representing the general formation of the object. With subdivisions (especially) this does not achieve what I'd really like to see, which is more of a "blueprint" look. Solid view: Wireframe: What I want (except this is solid): What I want (except, this is edit mode, not an actual drawmode): Is there a draw mode that can achieve this? P.S.: I don't mind if the answer uses Python. I'm not a Python programmer but I'd be able to understand the code (I've got programming experience and have used Python on and off before). |
Show that if $x,y,z$ are positive integers, then $(xy + 1)(yz + 1)(zx + 1)$ is a perfect square if and only if $xy +1, yz +1, zx+1$ are all perfect squares. Find infinitely many triples (a,b,c) of positive integers such that a, b, c are in arithmetic progression and such that $ab + 1, bc +1, ca+1$ are perfect squares. First of all I tried to prove that $xy +1, yz +1, zx+1$ were relatively prime. I didn't succeed. $$\gcd(xy+1, yz+1) = \gcd(y(x-z)+1,yz+1)$$ For the second problem, I have discovered the solution $(2,4,12)$ which isn't in arithmetic progression. I have tried googling it but didn't find an easy and satisfactory solution. Any help would be appreciated. | Show that if $x, y, z$ are positive integers, then $(xy + 1)(yz + 1)(zx + 1)$ is a perfect square if and only if $xy + 1, yz + 1, zx+1$ are perfect squares. |
I am developing some code in Java but facing a problem with a NPE. It happens when I try to use a method in another class. Here is my code : public class MyClass{ private Attributes attr = null; public static void main(String [ ] args) throws ParseException, SAXException, IOException, ParserConfigurationException { MyClass main = new MyClass(); Options options = main.parseCommandLine(); CommandLineParser parser = new BasicParser(); CommandLine cl = parser.parse(options, args); main.configureAttributes(main); } private void configureAttributes(MyClass main, CommandLine cl) throws ParserConfigurationException, SAXException, IOException { String[] attributes = cl.getOptionValues("a"); Integer tag = null; for(int i = 0; i < attributes.length ; i++) { String[] parts = attributes[i].split("="); String tagName = parts[0]; String value = parts[1]; tag = Integer.parseInt(tagName,16); this.attr.setString(tag, DICT.vrOf(tag), value); } } } But I am getting an NPE on the last line : this.attr.setString(tag, DICT.vrOf(tag), value); I have all the right imports. It is a Maven project so I also added the dependency to my pom.xml. Thanks a lot for your help ! V. | 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? |
If I assign the output of a command substitution to a local variable, how do I get the exit status of the command? This is the behaviour of ZSH 5.8: false; echo $? # output is 1 as expected foo=$(false); echo $? # output is 1 as expected local foo=$(false); echo $? # output is 0 | Two function definitions, the only difference is that the first combines the local storage keyword with the assignment, while the second separates them: function foo { local fn=$(mktemp -p /path/does/not/exist 2>/dev/null) echo $? } function bar { local fn fn=$(mktemp -p /path/does/not/exist 2>/dev/null) echo $? } foo bar This echoes "0" then "1". I expect it to echo "1" then "1". It seems like the value of $? is the result of the assignment to local, rather than the result of the command substitution. Why does bash 4.2.46(1)-release behave this way? |
I am working on learning C# in depth. I am mostly confused by the frequent implementation of interfaces. I always read that this class implements this interface. For instance, SqlConnection class implements IDbConnection. What is the benefit for developers in this case? | I understand that they force you to implement methods and such but what I cant understand is why you would want to use them. Can anybody give me a good example or explanation on why I would want to implement this. |
After a series of tests and exploratory analysis, I have design a linear model in R, the model is the following: summary(gn) Call: lm(formula = NA. ~ I(PC^0.25) + I(((PI)^2)), data = DSET) Residuals: Min 1Q Median 3Q Max -425.22 -87.46 -2.30 79.11 396.14 Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) -2.047e+03 1.094e+02 -18.71 < 2e-16 *** I(PC^0.25) 1.206e+03 4.231e+01 28.52 < 2e-16 *** I(((PI)^2)) -5.242e-02 1.233e-02 -4.25 2.81e-05 *** --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 Residual standard error: 127.2 on 319 degrees of freedom Multiple R-squared: 0.7475, Adjusted R-squared: 0.746 F-statistic: 472.3 on 2 and 319 DF, p-value: < 2.2e-16 Then, for example, I calculate the interval confidence for a certain input: > a<-data.frame(PC=58,PI=12) > a<-predict(gn,newdata=a,interval="prediction",level=0.95) > a fit lwr upr 1 1274.515 1022.976 1526.054 Finally, given the coefficients of the model and the same input, I try to calculate the same confidence interval in EXCEL. Using the formula for the 95% interval of each coefficient, <estimate coefficient - 1.96*error, estimate coefficient + 1.96*error>, the fitted value is reasonable but the extremes are far different. So, the results are : fitted value=1274.499125 , lower=826.5811979 , upper=1722.417051. As you see, the extremes are different from the output of R. What's my error? What should I do to get the same intervale I got in R? | Let's take the following example: set.seed(342) x1 <- runif(100) x2 <- runif(100) y <- x1+x2 + 2*x1*x2 + rnorm(100) fit <- lm(y~x1*x2) This creates a model of y based on x1 and x2, using a OLS regression. If we wish to predict y for a given x_vec we could simply use the formula we get from the summary(fit). However, what if we want to predict the lower and upper predictions of y? (for a given confidence level). How then would we build the formula? |
I downloaded the Ubuntu 16.04 i386.iso file from the website and tried to load it on the VirtualBox but it does not get installed and displays this window. Can someone help? | I'm trying to install Kubuntu 16.04.1 on a virtual machine (I'm using VirtualBox). When I boot from the disk image Ubuntu begins to load and then I get this screen: It looks like it's loading but the display is not working properly (the pink blob is my mouse pointer, only very large and pink). I also tried installing Ubuntu 16.04.1 and I get a very similar result: Am I missing something in VirtualBox? Thanks! |
I am running xCode projects on mac in my office ,but i want to work at home too, i surfed a lot But only heard one way to run mac on windows is by using VM , is there any other hack or way to run properly on windows . if it is can only happen through VM does ios SDK works properly on VM. | Is there any way to tinker with the iPhone SDK on a Windows machine? Are there plans for an iPhone SDK version for Windows? The only other way I can think of doing this is to run a Mac VM image on a VMWare server running on Windows, although I'm not too sure how legal this is. |
I have a problem, that came up after updating the whole package list of Miktex, and I am 100% sure it is due to the package xwatermarks. After compiling the text I get the following error, right before \begin{document}: ! Extra \endgroup. \document ->\endgroup \let \BeforeStartOfDocument \@firstofone \cpt@beforest... l.161 \begin{document} I am sure because removing the usage of \usepackage[printwatermark]{xwatermark} the documents get properly compiled. Below I report my full preamble (so as to be 100% accurate in my topic); I would like to ask if someone can help me in using xwatermarks anyhow and avoid the problem. As far as the final document anything is fine, it is enough to remove \usepackage[printwatermark]{xwatermark}. Thank you in advance for any eventual help. \documentclass[11pt,a4paper]{scrartcl} \usepackage{latexsym} \usepackage{textcomp} \usepackage{parskip} \usepackage{lipsum} \usepackage{changepage} \usepackage{caption} \usepackage{soul} \usepackage{booktabs} \usepackage[english]{babel} \usepackage{placeins} \usepackage{hyperref} \usepackage{textcomp} \usepackage{graphicx} \usepackage[utf8]{inputenc} \usepackage{amsmath,amsfonts,amssymb} \usepackage{multicol} \usepackage{wasysym} \usepackage{datetime} \ddmmyyyydate \usepackage{longtable} \usepackage{multirow} \usepackage{color} \usepackage[printwatermark]{xwatermark} \usepackage{xcolor} \usepackage{graphicx} %%\new[allpages,color=red!50,angle=45,scale=3,xpos=0,ypos=0]{DRAFT} %Questo mette la filigrana sotto l'immagine %%\newwatermark[allpages,color=red!10,angle=45,scale=2,xpos=0,ypos=0]{DRAFT \today} %Questo mette la filigrana sopra l'immagine \usepackage[TABTOPCAP, FIGBOTCAP]{subfigure} \newcommand{\figbox}[1]{% \fcolorbox{white}{white}{ \vbox to 6.5 cm{% \vfil \hbox to 8 cm{% \hfil #1% \hfil}% \vfil}}} \newcommand{\Bfigbox}[1]{% \fcolorbox{white}{white}{% \vbox to 5.6 cm{% \vfil \hbox to 7 cm{% \hfil #1% \hfil}% \vfil}}} \newcommand{\Cfigbox}[1]{% \fcolorbox{white}{white}{% \vbox to 4.5 cm{% \vfil \hbox to 6.4 cm{% \hfil #1% \hfil}% \vfil}}} \makeatletter \def\subfigtopskip{4pt} \def\subfigbottomskip{4pt} \def\subfigcapskip{2pt} \subtabletopcaptrue \makeatletter \def\printtitle{ {\centering \Large \normalfont \textbf{\@title}\par}} \def\piedipagina{% { \textup{\@title}}} \makeatother \title{\large{Title}} \makeatletter \def\printauthor{ {\large \@author}} \makeatother \author{% \textup{dt. Giacomo Del Bianco} \\ \textup{Research \& Development \footnotesize{\textsc{Reactive Hot-Melts}}} \\ \vspace{50pt} \textup{\today}\\ } %%% Headers and footers \usepackage{fancyhdr} \pagestyle{fancy} \usepackage{lastpage} \lhead{} \chead{} \rhead{} \footnotesize{\lfoot{\footnotesize ~\scshape{\piedipagina} $\cdot$ \footnotesize\today}} \cfoot{} \rfoot{\footnotesize Page \thepage\ of \pageref{LastPage}} \renewcommand{\headrulewidth}{0.0pt} \renewcommand{\footrulewidth}{0.4pt} \setkomafont{sectioning}{\rmfamily\bfseries\boldmath} \usepackage[runin]{abstract} \setlength\absleftindent{10pt} \setlength\absrightindent{10pt} \abslabeldelim{\quad} \setlength{\abstitleskip}{-10pt} \renewcommand{\abstracttextfont}{\small \slshape} \textheight = 22 cm \renewcommand{\figurename}{Figura} \renewcommand{\listfigurename}{Indice delle figure} \renewcommand{\listtablename}{Indice delle tabelle} %%% Start of the document \begin{document} \end{document} | I am using MikTeX with PDFLaTeX and it has worked fine. After an update if MikTeX xwatermark throws an error: ! Extra \endgroup. \document ->\endgroup \let \BeforeStartOfDocument \@firstofone \cpt@beforest... l.5 \begin{document} Things are pretty mixed up, but I think the worst is over. Test tex file: \documentclass{article} \usepackage{xwatermark} \begin{document} Text \end{document} But as I understand it Xwatermark has not been updated since 2012!? What could be producing the error? |
I am examining an object via reflection, and I want to print those properties which have non-default values. Given a signature like this: public static bool IsDefaultValue(PropertyInfo prop, object o) { //returns true if the given property's value on o is the default value for the property type } How could this be implemented? | I'm using reflection to loop through a Type's properties and set certain types to their default. Now, I could do a switch on the type and set the default(Type) explicitly, but I'd rather do it in one line. Is there a programmatic equivalent of default? |
I am finishing my course conclusion work writing using LaTeX, and insert the images I used standard codes, such as \begin{figure}[!h] \centering \includegraphics[width=13cm]{lixeoutroa} \caption{.....} \label{li(x)exlnx} \end{figure} This compiling correctly, this all normal, but I do not know how do I put the references in the figure below the figure of the name, I wanted it to be placed (very close) the references of the figure or table without appearing in the list of figure later. Sorry for writing, do not speak English, I use the translator. It is also the first time I have any questions TeX here, always use questions in mathematics, then also excuse the way of writing. | How can I add a source to a figure? I need to add \ref, \cite or just free text. Something like that: \begin{figure} [ht] \centering \includegraphics[width=0.95\textwidth]{res/figure.pdf} \caption{Caption} \source{\ref{},\cite{} or free Text} \label{fig:gliederung} \end{figure} Should give me: The source shouldn't appear in \listoffigures. |
Let's assume there is a listed company x. Currently it has 100 shares issued to trade in free float market. Current price of stock is let say 10. Now please let me know if I purchase one share of company x at the market price of 10. How it will effect the stock price. And please add and exemplify some other scenarios whichever you find good to explain more. For more information let say promoters of the company holds 100 shares with them like 50% of the company is with promoters and the other half is with people who invest or trade in that company. If I've missed to tell or assume any other vital info. needed please assume it yourself while mentioning it. I want to go deep down into the concept of demand and supply. How technically it happens. Thank You | Let us assume there is a listed company x. Currently it has 100 shares issued to trade in free float market. Current price of stock is let say 10. Now please let me know if I purchase one share of company x at the market price of 10. How it will effect the stock price. And please add and exemplify some other scenarios whichever you find good to explain more. For more information let say promoters of the company holds 100 shares with them like 50% of the company is with promoters and the other half is with people who invest or trade in that company. If I've missed to tell or assume any other vital info. needed please assume it yourself while mentioning it. Thank You |
How many records (at least) should I have for my correlation (pearson/canonical) to be significant. | I am running Pearson's correlation on an overall sample of 400 respondents. When I isolate male and female responses, my sample becomes 220 male responses and 180 female responses. If I further isolate male and female responses by (say) age groups, some sample sizes become as low as 35 responses (for example, for females over the age of 65). My question: How good are these sample sizes for correlation analysis? (I am looking at the relationship between income levels and overseas travel.) (I think this has something to do with margin of error but how does this apply to inferential analysis which is based on probability. I can understand its role in descriptive statistics such as results of a political poll). |
I have a person that wants to wire in four light boxes and four ceiling fans with switches and I need to know if I can run all four of them safely from one breaker and if so what kind of breaker? This question may be absurd but I just don't know the answer to it. I do home improvement work for a living at least I have the good sense ask a question before I even attempt something I don't know about. needless to say I have not done a lot of extensive wiring. I have put up plenty of ceiling fans and even ran one circuit very short distance in a garage from a breaker panel and I knew to have the proper testing equipment and to take my time and to ask questions if necessary and also most importantly to have the proper tools and some basic knowledge of how to use them. Also, do I have to run the wire through conduit in the attic? | I have a person that wants to wire in four actually light boxes for ceiling fans with switches and I need to know if I can run all four of them safely from one breaker and if so what kind of breaker? This question may be absurd but I just don't know the answer to it. I do home improvement work for a living at least I have the good sense ask a question before I even attempt something I don't know about. needless to say I have not done a lot of expensive wiring I have put up plenty of ceiling fans and even ran one circuit very short distance in a garage from a breaker panel and I knew to have the proper testing equipment and to take my time and to ask questions if necessary and also most importantly to have the proper tools and some basic knowledge of how to use them. |
I would like to know if blender allows to establish an interaction between two different meshes. I've tried the example of soft body, with the jelly cube, etc. but that is not what I need. For example, if I want to simulate the interaction of forces between a ball and a elastic surface (no cloth), could I do that in blender? Thanks for your help! | For example, rigid bodies and fluid. I know it's kind of possible by setting the rigid bodies as fluid obstacles, but it's not "true" interaction in that the fluid does not affect the rigid bodies... By "true" interaction I mean where two (or more) physics systems affect each other simultaneously. For example, with rigid body and cloth, the rigid body affects the cloth but the cloth doesn't affect the rigid body (at least the way I'm doing it), so the rigid body just eventually stretches the cloth to an extreme and falls through... Are there any ways to achieve this? (for any interaction, not just rigid bodies and fluid) Or, if not, does anyone know whether there are any plans to implement this sort of feature? Thanks |
[Why it is not a duplicate question: I already have a MS, so I don't have the luxury of enrolling into a MS and improve GPA or establish a research track record. Can I do a second masters? Well that is part of my question which is not discussed in other similar question threads.] My undergrad GPA is 3.68, and my MS GPA is 3.33. I have some published conference paper (IEEE) and a book but that was a while back (not a well known publisher) and not directly related to my area of interest in research. Basically my research credentials are not good - not at least on paper. Question is - is it just impossible to recover from this? I considered doing a seconf masters to improve the GPA factor, but the program I am considering doesn't have a thesis option - so I am getting advice that it won't really help me. It will be hard to enroll full time for MS at this point. (I have been working for ten years.) But I want to know if even that would help. Is there anything that I can do to have a reasonable shot at getting into a moderately good PhD program in CS in the US? Or Am I basically done? | When applying to a PhD program in the US, how does the admissions process work? If an applicant is weak in a particular area, is it possible to offset that by being strong in a different area? Note that this question originated from this . Please feel free to edit the question to improve it. |
I am traveling on American Airline from Los Angles LAX to Bangalore,India on 23 dec 2013 there is layover and change of flight at Tokyo NRT and Malaysia. Layover time at NRT (4.20pm-9.40pm) is 5 hours should I but transit visa? I have F1 visa and Citizen of India. I searched there was an old answer (to buy transit visa only if layover of overnight we need to buy) any new updates? | I will be transferring between two international flights at Tokyo Narita airport. I'm scheduled to depart the same day I arrive. I am planning to stay within the airport during the layover. Does anyone know if I will require a transit visa at Narita? |
I often ask niche or difficult questions, and as a consequence I get a few Tumbleweed badges. Very often, these Tumbleweed questions do slowly accumulate views and answers because they're the only quality Google result for the problem, and often they attract answers, many upvotes and favourites (even in some cases gold Famous Question badges) months and years later. They're not bad questions, they're just niche (I'm saying this because I know ). I find the Tumbleweed badge very useful as a notification that my question is getting very low views. . Then I realised I only ever got one badge per site, and I found that this is by design - it's a once-only badge. I think this doesn't make sense. If the Tumbleweed badge is useful, surely it's useful for what I use it for - a notification that, for whatever reason, the regulars on this site haven't shown any interest in this question, and therefore you should think about whether it can be improved, re-pitched, migrated or promoted, and also, lower your expectations for how quickly it will get answered. If there's a serious concern about people becoming "tumbleweed addicts" or trying to inflate their badge total by asking deliberately-boring or needlessly-niche questions, a compromise option would be to add the new question to the existing Tumbleweed badge, and notify the user the usual way. So, if I had 3 Tumbleweed questions, I'd only have one badge, but it would list all three questions and I'd have been notified each time. I'm not bothered about the number of actual badges I get, I'd just like to be notified when a question goes tumbleweed on me. Maybe also, it'd be interesting to be able to browse my tumbleweed questions (not just the first from each site) and see what became of them. I know at least one of my questions that began as tumbleweed is now at +7 with 29,815 views, and several others got great answers and thousands of views eventually. It'd be interesting to see how others fared over time. Even better still, would be to be able to browse all tumbleweed questions on a site, looking for good but difficult or niche questions where a good answer would really make someone's day. Special rewards for answering tumbleweed questions have been proposed in the past (e.g. the above link and ) - I don't think a special reward is necessary, but it'd be nice to be able to tidy up tumbleweed just for its own sake. | It’s just a consolation badge, and I’ve had the unfortunate pleasure of asking my second question that would earn the badge. It would be nice (for some strange reason) to get another tumbleweed badge. I’m not sure if the reason is that given in “”. That is, my first question was eventually answered, so it negated my first tumbleweed badge, but it wasn’t taken away; I just didn’t receive a second one. But this seems to conflict with the definition of the tumbleweed badge: Asked a question with no answers, no comments, and low views for a week. which is still true of both questions. |
I have been given PL SQL stored Function with the following signature and body description. Create or Replace function Get_Employee(user_id in Number, res_out out sys_refcursor) return sys_refcursor is v_result sys_refcursor; begin //here goes function body return v_result end; Basically, I need to call this function from Java. I have tried all possible ways to register out parameter as well as return value which both are refcursor type. Here is the way which I believe is the most correct way. String employeeSQL = "{ ? = call Get_Employee(?,?)}"; CallableStatement statement = null; Employee employee = null; ResultSet result = null; try{ statement = conn.prepareCall(employeeSQL); statement.registerOutParameter(1, OracleTypes.Cursor); //registering return value statement.registerOutParamter(2, OracleTypes.Cursor); // registering out parameter statement .setLong(3, userId); // setting input parameter statement.execute(); resultSet = (ResultSet) statement.getObject(1); // getting return value }finally{ statement.close(); trsultSet.close(); } The problem is whenever the statement is executed, it throws NullPointer Exception. So I suspect I do not register parameters in a correct way. Any help appreciated! | 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 am facing this situation. I have a dual boot system with Windows 10 and Ubuntu 18.04 Since yesterday, I am stuck into Windows. When rebooting, my screen stays black, until it boots into Windows again. Not going into bios or grub. So i cant even start from a bootable USB or disc. Last week i installed grub customizer, and recently I set it up to boot into the last used operating system. Any ideas, while it seems that I can't even format my disk, while i can't change boot order? | I installed Ubuntu on a Dell XPS 13 laptop that had Windows 10 preinstalled on it. I installed it from a USB flash drive on a partition. When I boot my computer I can only boot into Windows 10 and Ubuntu is nowhere to be seen. If I boot into my USB then I can see that Ubuntu is installed, but I can't get to it from the BIOS boot menu. |
I'm trying to make a matrix using two dimensional arrays, but when I try to print it to the screen I get a null pointer exception import java.util.concurrent.ThreadLocalRandom; public class GridWorld { // data int [][] grid; // a "r by c" grid will all entries of type int int r; // no. of rows int c; // no. of cols final static int ROW = 4; // Default row size final static int COL = 4; // Default col size // constructors // 1. default constructor: construct a 4x4 Grid of int // the entry at row i and col j is 4*i+j+1 public GridWorld() { r=4; c=4; for(int i =0;i<r;i++){ for(int j=0; j<c; j++){ grid[i][j] = 4*i+j+1;}} } * ----------------------------- | 1 | 2 | 3 | 4 | ----------------------------- | 5 | 6 | 7 | 8 | ----------------------------- | 9 | 10 | 11 | 12 | ----------------------------- | 13 | 14 | 15 | 16 | ----------------------------- */ public void display() { System.out.println("-----------------------------"); for(int i=0;i<this.r;i++){ for(int j =0;j<this.c;j++){ System.out.print("| "+this.getVal(i,j)+" ");} System.out.println(" |"); System.out.println("-----------------------------");} } GridWorld grid1 = new GridWorld(); grid1.display(); } I was hoping this would print something similar to the commented picture, but instead it is giving me java.lang.NullPointerException I'm pretty new to java and couldn't find how to fix this anywhere, any help would be greatly appreciated. | 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? |
Many times I have come across javascript script includes some of them are placed in the head portion and some are placed at the end of the body. And in some cases of jQuery I have seen the same. Can anyone tell me what is the difference and significant between putting scripts in the head or at the end of the body? | Say I have a fairly hefty JavaScript file, packed down to roughly 100kb or so. By file I mean it’s an external file that would be linked in via <script src="...">, not pasted into the HTML itself. Where’s the best place to put this in the HTML? <html> <head> <!-- here? --> <link rel="stylesheet" href="stylez.css" type="text/css" /> <!-- here? --> </head> <body> <!-- here? --> <p>All the page content ...</p> <!-- or here? --> </body> </html> Will there be any functional difference between each of the options? |
At the end of Fantastic Beasts and Where to Find Them Gellert Grindelwald is overpowered by Newt Scamander and taken to prison. Why does he still posses the Elder Wand? | In Fantastic Beasts And Where To Find Them, when Tina disarms Graves, (Grindelwald) does she then become the owner of the Elder Wand? |
Apologies for the cross-post from StackExchange DBA - I wasn't sure which site was best for this question. I have a hierarchical query in Oracle 11gR2 that returns something like this: Parent (Level 1) Child (Level 2) Grandchild (Level 3) Child (Level 2) Grandchild (Level 3) Grandchild (Level 3) Child (Level 2) The query I would like to write should get all the rows matching some predicate, for the minimum level; i.e. nearest the parent. For example, if one of the child rows matches the predicate, it should return just that row, irrespective of whether any grandchild rows match. If multiple child rows match, it should return all of them, again irrespective of grandchild rows. If no child rows match, it should return any grandchild rows that match, etc. (In the real system I have a lot more than three levels, and lots more rows per level.) I assume this is possible with analytic functions, but I'm not sure which one to use, or how to integrate it into my query. I've seen similar problems solved using min (level) keep (dense_rank last order by level), but that doesn't seem to do quite what I want. | I have a hierarchical query in Oracle 11gR2 that returns something like this: Parent (Level 1) Child (Level 2) Grandchild (Level 3) Child (Level 2) Grandchild (Level 3) Grandchild (Level 3) Child (Level 2) The query I would like to write should get all the rows matching some predicate, for the minimum level; i.e. nearest the parent. For example, if one of the child rows matches the predicate, it should return just that row, irrespective of whether any grandchild rows match. If multiple child rows match, it should return all of them, again irrespective of grandchild rows. If no child rows match, it should return any grandchild rows that match, etc. (In the real system I have a lot more than three levels, and lots more rows per level.) I assume this is possible with analytic functions, but I'm not sure which one to use, or how to integrate it into my query. I've seen similar problems solved using min (level) keep (dense_rank last order by level), but that doesn't seem to do quite what I want. |
My site suddenly disappeared from Google search and Webmaster Tools says it can't access robots.txt. Fetch as Google says "temporarily unreachable" for robots.txt and even for the home page. The robots.txt tester throws the below error: You have a robots.txt file that we are currently unable to fetch. In such cases we stop crawling your site until we get hold of a robots.txt, or fall back to the last known good robots.txt file. My website comes up fine in browser and even robots.txt comes up fine. What could be the reason? My Robots.txt content: User-agent: * Allow: / User-agent: Googlebot Disallow: /Admin/ Allow: / I have not moved hosts recently. It was working fine and it happened suddenly. | When looking into it in WebmasterTools, I saw that there is a "Fetch as Google - Temporarily Unreachable Issue". It is for an image, and font. How do I resolve this issue? |
Task: In box are three cards. First card is red on both sides. Second card is black on both sides. Third card is red on one side and black on other side. I random choose one card and I see that color on one side is red. What is the probability that second side is red? My solution is $P=\frac{1}{2}$ because on other side should be black or red color. Is this correct? | I have $3$ coins, $1$ coin has $2$ heads (HH), 1 coin has $2$ tails (TT), $1$ coin has $1$ head and $1$ tail (HT). I toss the coin, it fells on my hand, and the side i see is a tail. What's the chance that the other side is also a tail? I got this as a teaser from a friend, possible from , as you can see he is insisting on 1/2 as not being the correct answer, I got 1/3 as my answer, am I right? |
I asked a which I believe according to the criteria Asked a question with no answers, no comments, and low views for a week My answer currently has: Asked 27 days ago Viewed 21 times No Answers, No comments I expect the reason that I have not received the badge because I have received one upvote on my question, but this is not in the criteria. Or is 21 times too many views? | Formerly List of all badges with full descriptions. What are badge name's requirements? Why didn't I get badge name ? Which badges can I earn multiple times? Jump to: Note: Some badges are awarded based on score. The term score means the total number of upvotes minus the total number of downvotes. Any badge with a *** next to it is one of 20 badges that count towards the displayed on a moderator candidate in an election. The candidate score is a total of 40 points: the first 20 are awarded based on the user's rep divided by 1000 and rounded down; the second 20 represents the total number of unique badges earned of the 20 that count. Note that if the same badge is earned multiple times, it will only count once towards the candidate score. Any badge with a "(retired)" next to it is no longer awarded, but is retained by users who previously earned them. See for more info on what it means for a badge to be retired. Visit the of the on any site to see a complete list of badges that you can filter by earned, unearned, or type. |
I'm creating a random password generator in java and need some help with how I can generate random char values in the program. Any ideas? I'm using a menu system as a way to show different types of passwords to generate like lowercase, uppercase, etc. Any advice would help. Thanks! | I've been looking for a simple Java algorithm to generate a pseudo-random alpha-numeric string. In my situation it would be used as a unique session/key identifier that would "likely" be unique over 500K+ generation (my needs don't really require anything much more sophisticated). Ideally, I would be able to specify a length depending on my uniqueness needs. For example, a generated string of length 12 might look something like "AEYGF7K0DM1X". |
I signed up for Pokemon Go with my school e-mail that will soon be deleted. Is there any possible way to change the e-mail I use to sign in without losing all my game progress? | I've been playing the game a while now and have ranked up considerably. I'm wondering if there is any way to change to a different Google account and still keep all of my Pokemon/items etc, as I stupidly used my university gmail account when I first downloaded the app (which will be automatically deleted in September). Is there any way to transfer my trainer/Pokemon/items etc to a different Google account? |
Let $R$ be a commutative ring with $1$. Let $a\in R^\times$ and $b\in\text{Nil}(R)$. Show that $a+b\in R^\times$. Attempts: Suppose $b^n=0$. I've tried to figure out a "simple" case as $n=2$; I've tried to develop the expressions $(a+b)^2=a(a+2b)$ and $a^{-1}(a+b)=1+a^{-1}b$ but nothing came up. Also $\exists x,y\in R$ s.t. $1=xa+yb$ but it doesn't help because we get $x=a^{-1},y=0$. Another direction i've failed is to show $\langle 0\rangle=R/\langle a+b\rangle$. | If $ua = au$, where $u$ is a unit and $a$ is a nilpotent, show that $u+a$ is a unit. I've been working on this problem for an hour that I tried to construct an element $x \in R$ such that $x(u+a) = 1 = (u+a)x$. After tried several elements and manipulated $ua = au$, I still couldn't find any clue. Can anybody give me a hint? |
I have Oplus phone with 5.1 Lillipop that stuck in google verification. Its says that I need to enter my previous gmail account to continue, but i don't have any access of it. I already forgot how I create that account. I have searched on google about this but I found nothing. | I won a Samsung Galaxy S6 Edge, signed into it with my Google account, played around with it, wiped it, and sold it. Now the person can't get past setup because it's saying he must login with an account previously synced to the phone. Is there anything I can do from my side to remove this lock? |
I just enable the Search Form (provide by the search module) block to allow the visitor to make searches. When a search is done the entered word is searched in all field of the nodes. Can I exclude a field? Let's say the content type has the fields: title, body and provider. Then when a search is done I need to exclude the field provider from the search. I have the custom_search module enabled but I see no way to exclude fields. | If a content type has additional text fields, search core automatically indexes them because search core extracts all text from the result of node_view() I can easily add extra index data via MODULE_node_update_index( $node ). This particular hook argument, $node, is passed by value and not by reference which means I can't unset certain items. I hook into node_view, and alter it there but I don't want to change the output of the node normally, only when it's being indexed. |
What is the correct preposition to be used in this case? Is it the same when you also refer the name of the island? I will arrive [...] the island at 12:00 I will arrive [...] Crete at 12:00 | When do we use "at" and "in" with "arrive" talking about place, not time? |
I have 25 systems of ubuntu and I want to create 60 login id and password for students. And any students can use any system to use system using his/her credentials. How can I achieve this? | I run a small academic research group and we have 4 workstations and one server, all running Ubuntu. I would like to have login credentials that are shared across all workstations and the server, so I can issue a userid once, and the user could sit down at any workstation and login. Nominally, the filesystem would be shared so that the user could have their files/desktop environment at any workstation. Is there any way to set up such a environment? |
I need to remove <batchRequest> and </batchRequest> from my XML file in a batch file. Is it possible? My current file: <batchRequest><sid sid="100000000" test="false" ></sid> </batchRequest> <batchRequest><sid sid="100000000" test="false" ></sid> </batchRequest> And I need this: <sid sid="100000000" test="false" ></sid> <sid sid="100000000" test="false" ></sid> I'm stuck on this setting set str=!str:<batchRequest>=! If I use set str=!str:batchRequest=! It works, but isn't what I need. My code so far: @echo on setlocal enabledelayedexpansion For /f "tokens=* delims= " %%a in (_1000_1008603__30122015_153242_all.xml) do ( Set str=%%a set str=!str:<batchRequest>=! echo !str!>>_1000_1008603__30122015_153242_all_NEW.xml ) | I am writing a batch file script using Windows command-line environment and want to change each occurrence of some text in a file (ex. "FOO") with another (ex. "BAR"). What is the simplest way to do that? Any built in functions? |
We slightly refine the Collatz sequence as follows: $$f(n) = \begin{cases} \text{Od}(n) & \text{if } n \equiv 0 \pmod 2\\ 3n + 1 & \text{if } n \equiv 1 \pmod 2\\ \end{cases} $$ Where Od(n) is the of n. And $$a_i(n) = \begin{cases} n & \text{for } i = 0\\ f(a_{i-1}(n)) & \text{for } i > 0\\ \end{cases} $$ We wish to classify numbers by their refined Collatz stopping times, $C(n) = s$. $$C(n) = s \iff a_s = 1$$ And we wish to describe sets of natural numbers grouped by stopping time class: $$C_s = \{n\in\mathbb{N} \big| C(n) = s\}$$ Note: \begin{align} C_0 &= \{1\}\\ C_1 &= \{n,a \in \mathbb{N} | n = 2^a\}\\ C_2 &= \bigg\{n,a \in \mathbb{N}, a>1 \bigg|n = \frac{4^a - 1}{3}\bigg\}\\ C_3 &= \{n\in\mathbb{N}, c_1\in C_1, c_2\in C_2\bigg|n=c_1 \times c_2\}\\ C_4 &= \bigg\{n\in \mathbb{N},a_1,a_2 \in \mathbb{Z}^*, r_1\in \{1,2\}, 3a_1+r_1\geq2\bigg|n=\frac{1}{3}\bigg(2^{3 - r_1}\times4^{a_2}\times\frac{4^{3a_1 + r_1} - 1}{3} - 1\bigg)\bigg\}\\ C_5 &= \{n\in\mathbb{N}, c_1\in C_1, c_4\in C_4\bigg|n=c_1 \times c_4\} \end{align} This seems to be quickly getting out hand. What is $C_6$? What texts might have similar analysis? | Yes, there is no one who doesn't know this problem.My question is only about curiosity. $$C(n) = \begin{cases} n/2 &\text{if } n \equiv 0 \pmod{2}\\ 3n+1 & \text{if } n\equiv 1 \pmod{2} .\end{cases}$$ On this problem, I caught something like this.I'm sure, We all realized that. For example, $n=19$, we have $6$ odd steps. We know that, even steps are not important, because each even number is converted to an odd number. $19\Longrightarrow 29 \Longrightarrow 11\Longrightarrow 17 \Longrightarrow13 \Longrightarrow 5 \Longrightarrow 1$ Then, for $n=77$, We have also $6$ odd steps. $77\Longrightarrow 29 \Longrightarrow 11\Longrightarrow 17 \Longrightarrow13 \Longrightarrow 5 \Longrightarrow 1$ For $n=9$ $9\Longrightarrow 7 \Longrightarrow 11 \Longrightarrow 17 \Longrightarrow 13\Longrightarrow 5 \Longrightarrow 1$ Again we have $k=6$ odd steps. I want to know / learn / ask, for $k=6$, (Generalized: for any number $k$ ) can we produce a formula(s) to catch all such numbers, which gives the result $1$? Thank you! |
I have a table with a simple UV added as a material. Here is my table in material view: Below is my table in Rendered: Any idea what I can do to fix? | I was following on creating a watch and noticed that when I rendered the watch, some pieces were messed up. I'm new to 3D modeling and I've just learned Blender, I can't explain it well, so here's a picture: Other examples: I don't know if it's a problem with my World texture, the object, or the object's texture/material, so I can't even guess how to fix it. What causes this? Is it possible to fix it? |
I have these settings on my MacBook with Catalina: System-wide power settings: Currently in use: standbydelaylow 10800 standby 1 womp 1 halfdim 1 hibernatefile /var/vm/sleepimage proximitywake 1 powernap 1 gpuswitch 2 networkoversleep 0 disksleep 10 standbydelayhigh 86400 sleep 5 hibernatemode 3 ttyskeepawake 1 displaysleep 5 tcpkeepalive 1 highstandbythreshold 50 acwake 0 lidwake 1 and what I want to achieve is to enter hibernation after an amount of time of "sleep" (after sleeping for 15 minutes for example), like some Linux distro do. I'm new to macOS and what I know is that hibernatemode 3 means The system will wake from memory, unless a power loss forces it to restore from hibernate image. but I think I need to leave hibernatemode 3 and change standbydelaylow and standbydelayhigh values. Am i correct? These settings are for ac and battery mode or I need to change for these different states? And closing the lid the MacBook goes to sleep immediately? | I've recently switched from Windows to a MacBook pro. In Windows, there are the following shutdown options: Standby - the machine goes into a "light sleep" from which it can awaken very quickly (like, in a few seconds), but plenty of energy is consumed. Hibernate - the OS dumps the current system state (including the contents of the RAM) to a file, then turns the machine off. Wakeup takes longer than from standby, but there is no latent energy consumption. Shut down - the OS shuts down, and the machine is turned off. In OS X, what I can see is Sleep - seems equivalent to standby, or an even lighter form of sleep as Mail seems to even continue to poll for new email? Shutdown and restore all apps on next start - turns off machine, seems to start the OS from scratch and restart alls apps - from what I can tell, it's not hibernation Shutdown and don't restore apps - shut down is this correct, and does OS X not have a true "hibernate" mode that can write its state to disk? Because that's what I'm looking for really. There's talk of a "Safe Sleep" mode on the Internets, but I can't see it in my OS X menu. Is it hidden in 10.7? |
Let's suppose I am surveying $n$ democratic citizens about whether they will vote for Candidate A or Candidate B. Let's suppose my survey yields $x$ for Candidate A and $n-x$ for Candidate B, $x \in \Bbb Z_+$. Let $p$ denote the fraction of voters who prefer Candidate A. Let's suppose I estimate $p$ by using $\hat{p} = \frac{x}{n}$. Suppose my variance is $\hat{p}(1-\hat{p})$. Suppose $H_0 : p = 0.5$ and $H_A : p \ne 0.5$. For $n=400, x = 215$, the estimator $\hat{p} = \frac{43}{80}$ is and a 95% confidence interval of $$\frac{43}{80} - 1.96 \frac{\sqrt{1591}}{1000}<\hat{p} < \frac{43}{80} + 1.96 \frac{\sqrt{1591}}{1000}$$ $$0.48864 < \hat{p} < 0.58656$$ My Question Does this confidence interval tell me anything about the validity of my null hypothesis? That is, can I decide whether to accept or reject my null hypothesis based on $0.48864 < \hat{p} < 0.58656$? | I have read about with some commentators suggesting that hypothesis testing should not be used. Some commentators suggest that confidence intervals should be used instead. What is the difference between confidence intervals and hypothesis testing? Explanation with reference and examples would be appreciated. |
Today I've encountered a question like The following; If function $f$ satisfies $f(xy)=f(x)f(y)$ and $f(81)=3$ then find The value of $f(2)$? What baffles me about this question is that I have to find The equation of the function in order to find $f(2)$ because $2$ is not a divisor of $81$ , using The property I found out that $f(3)=\sqrt[4]{3}$ and wondered if the function could be $f(x)=\sqrt[4]{x}$ (it satisfies the equation up there) but I do not know whether f gives $2$ a value like this or not. And there are many other functions that can be found. So The question is how can İ get myself out of this ugly situation, and how can I find other $f$ functions that satisfy the constraints? What I am asking is not to prove that these functions are in type of $x^n$ I am trying to get what $f(2)$ is and see also whether this question is deficient ör cannot ve solved with The given details. Thank you:) | Let $f(xy) =f(x)f(y)$ for all $x,y\geq 0$. Show that $f(x) = x^p$ for some $p$. I am not very experienced with proof. If we let $g(x)=\log (f(x))$ then this is the same as $g(xy) = g(x) + g(y)$ I looked up the hint and it says let $g(x) = \log f(a^x) $ The wikipedia page for functional equations only states the form of the solutions without proof. Attempt Using the hint (which was like pulling a rabbit out of the hat) Restricting the codomain $f:(0,+\infty)\rightarrow (0,+\infty)$ so that we can define the real function $g(x) = \log f(a^x)$ and we have $$g(x+y) = g(x)+ g(y)$$ i.e $g(x) = xg(1)$ as $g(x)$ is continuous (assuming $f$ is). Letting $\log_a f(a) = p$ we get $f(a^x) =a^p $. I do not have a rigorous argument but I think I can conclude that $f(x) = x^p$ (please fill any holes or unspecified assumptions) Different solutions are invited |
I want to grep for 'AB...CDE', where ... stands for anythings until CDE first occurs. I have tried grep 'AB*CDE' filename but this matches til the last occurrence of CDE. How can fix this? Suppose that my input is: JKIABTHIUCDELKJUCDE and I want output as: ABTHIUCDE which mean from AB until CDE | I want to search for string that have [RT]"anything"D which mean first character can either be R or T and the next can be anything until D is appear what should I use is it "egrep"? |
I've wrote my code nad when I want to build it it says: unresolved external symbol" for some functions, like the destructor: header file: template <class T> class Tree { *not important* public: ~Tree() } cpp file: template <class T> Tree<T>::~Tree() { if (root != NULL) clear(root); } I also defined and clear function so thats not the problem.. | Quote from : The only portable way of using templates at the moment is to implement them in header files by using inline functions. Why is this? (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.) |
Here is the full question: Let $X$ be a topological space and $f,g$ two continuous functions $f:X\to \Bbb R$. Prove that the functions $h(x)=|f(x)|$ and $k(x)=\max\{f(x),g(x)\}$ are both continuous. I am having trouble proving the first part that $h(x)=|f(x)|$ is continuous. Here's my answer for the second part: We know the maximum of two functions $f(x)$ and $g(x)$ is defined as $max\{f(x),g(x)\}=\frac{f(x)+g(x)}{2}+\frac{|f(x)-g(x)|}{2}$. Since this is the sum of two continuous functions $f(x)$ and $g(x)$, then by the properties of continuous functions, $k(x)$ is also a continuous function. Could someone point me in the right direction for the first part? | Let $f(x)$ be a continuous function. Prove that $\left|f(x)\right|$ is also continuous. Is it correct to say that, by the reverse triangle inequality, $\left|f(x)-f(c)\right| \geq \left|f(x)\right|-\left|f(c)\right|$ in all cases, so we will always have that for all $\left|x-c\right|<\delta$ implies $\left|f(x)-f(c)\right|\leq \epsilon$? I am not sure if my solution adequately uses the functional form, since I just used the equation and not my actual function. Please help with the proper solution! |
A question on /r/askscience talks about how big a nuke would have to be to . A question here on StackExchange talks about whether or not the Death Star could due to the planetary shields around it (from the EU/Legends). Just how strong was the Death Star's superlaser, in terms of of tonnes of watts? I'm guessing there is no exact number, but if we know that the Death Star destroyed Alderaan (that should be fairly easy to calculate using the formula for gravitational binding energy of a spherical mass) and if we assume it could have destroyed Coruscant, how strong would its laser need to be? EDIT: I suppose I wasn't clear in my question, I wasn't asking for Wookieepedia entries on how powerful the superlaser was, I was asking based on the fact that it could destroy a planet and overwhelm planetary shields, how strong would the laser have to be. | As we discussed it in , the Death Star can deliver a mind-boggling amount of energy. If it is capable of blowing up an Earth-sized planet, this means the equivalent of the annihilation energy of over 1,200,000,000,000 tonnes of . In comparison, nukes measure on this scale in the gram range (the one used at Hiroshima being under one gram). This means, even if the shot gets a million times weaker due to distance, it is probably still enough to kill all multi-cellular life on a planet. Regarding this, how much is the maximum effective range of the Death Star? By effective I mean that even if it does not blow up a planet Alderaan-style, it delivers enough damage on a planetary scale to effectively cripple a planet. Is there any related information in the expanded universe? |
I have the same results for two regression 1) y= number of board directors in t+1 x= a dummy variable with 1 if there is at least an institutional investor among the shareholders in t. 2) y= a dummy variable with 1 if there is at least an institutional investor among the shareholders in t+1 X= number of board directors in t The coefficient of the two regression are positive and significant. I want to know which conclusion can I write regarding the causality of the relation. | I know correlation does not imply causation but instead the strength and direction of the relationship. Does simple linear regression imply causation? Or is an inferential (t-test, etc.) statistical test required for that? |
Can someone explain me why can sometimes this exception happen? Exception java.lang.NullPointerException: Attempt to invoke virtual method 'long java.util.Date.getTime()' on a null object reference ChannelEPGF$myPagerAdapter.getItem (ChannelEPGF.java:82) (find the "//THIS IS THE 82. rows" text in my code) here is my code: import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import android.support.v4.view.ViewPager; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.mp.myapp.DataTypes.ChannelEPG; import java.util.Date; public class ChannelEPGF extends Fragment implements ChannelEPG.fragmentCommunicator { private Date selectedDate; private String channelId; private String channelTitle; private ViewPager pager; private boolean isTunable; @Override public void sendMessage(String name, Object msg) { if (msg != null) { ChannelEPG item = (ChannelEPG) msg; channelId = item.GetId(); channelTitle = item.GetTitle(); isTunable = item.GetTunable(); } else { pager.getAdapter().notifyDataSetChanged(); } } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.activity_channel_epgf, container, false); pager = (ViewPager) v.findViewById(R.id.viewPager); if (pager != null) { pager.setAdapter(new myPagerAdapter(getChildFragmentManager())); pager.setCurrentItem(1); } return v; } private class myPagerAdapter extends FragmentPagerAdapter { public myPagerAdapter(FragmentManager fm) { super(fm); } @Override public Fragment getItem(int pos) { if (pos == 0) { selectedDate = new Date(); selectedDate.setTime(selectedDate.getTime() - 24 * 3600 * 1000); return ActivityChannelEPG.newInstance(selectedDate, channelId, channelTitle, isTunable); } else if (pos == 1) { selectedDate = new Date(); return ActivityChannelEPG.newInstance(selectedDate, channelId, channelTitle, isTunable); } else if (pos == 2) { selectedDate = new Date(); selectedDate.setTime(selectedDate.getTime() + 24 * 3600 * 1000); return ActivityChannelEPG.newInstance(selectedDate, channelId, channelTitle, isTunable); } else { selectedDate.setTime(selectedDate.getTime() + 24 * 3600 * 1000); //THIS IS THE 82. rows return ActivityChannelEPG.newInstance(selectedDate, channelId, channelTitle, isTunable); } } @Override public int getCount() { return 8; } public int getItemPosition(Object object) { return POSITION_NONE; } } } | 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? |
Winter Bash 2018 took place from December 12th through January 1st. Do all Winter Bash competitions take place at this date range? Where can I look it up? | Tomorrow (January 2nd 2019) is the day that Winter Bash will be gone. So I am thinking: Will there be some sort of a final ranking page anywhere? It would be nice so I don't need to keep going to every day to see my rank. If there isn't going to be anything like that, what should I do to see my final rank on Winter Bash? |
Just a thought came in my mind , i understand the original def of epsliom delta version of limit . Why cant the limit definition be based on" for every delta there exits epsilon thing such that..."? Why the mathematicians give def for "every epsilon there exists delta such that..", was there some kind of contradiction in that def for some functions where it was not valid? Hence the epsilon to delta was selected ? | So the definition of Limit I see is $$\lim_{x \to a}f(x) = L$$ means: for all $\epsilon >0$, there exists a $\delta >0$ such that $$0<|x - a| < \delta \Rightarrow |f(x) - L| < \epsilon $$ I was wondering if modifying the definition to: Limit exists when for all $\delta >0,$ there exists a $\epsilon > 0$ such that $0<|f(x) - L| < \epsilon $ $\Rightarrow |x - a| < \delta$ would cause any problem. Because to me it seems like this definition should also work except it does seem a lot harder when it comes to the actual proving part. Can this flipped version of the limit definition also work? Why did mathematicians define in this order? |
Is $R=\mathbb Z [(1+\sqrt{-19})/2]$ a Euclidean domain? Its Voronoi region seems relatively small, but its hard to have intuition about division with remainder. I predict it is not since the norm of $(1+\sqrt{-19})/2$ is $\sqrt5>1$. Here is my attempt at a proof: I show that an Euclidean Domain $D$ (with not every nonzero element a unit) has a non-unit element $p$ such that $\forall x\in D$ $p|{x}$ or $p|{x-u}$ for some unit $u\in D$. I now want to reason by trying to show the conditions of the contrapositive are true for $R$. In other words, that $\nexists p\in R$ such that $p|{x}$ or $p|{x-u}\ \ \forall x\in R$ for $p$ nonunital and for some unit $u\in D$. I'm having difficulty showing this. Any help appreciated. | Let $\alpha = \frac{1+\sqrt{-19}}{2}$. Let $A = \mathbb Z[\alpha]$. Let's assume that we know that its invertibles are $\{1,-1\}$. During an exercise we proved that: Lemma: If $(D,g)$ is a Euclidean domain such that its invertibles are $\{1,-1\}$, and $x$ is an element of minimal degree among the elements that are not invertible, then $D/(x)$ is isomorphic to $\mathbb Z/2\mathbb Z$ or $\mathbb Z/3\mathbb Z$. Now the exercise asks: Prove that $A$ is not a Euclidean Domain. Everything hints to an argument by contradiction: let $(A, d)$ be a ED and $x$ an element of minimal degree among the non invertibles we'd like to show that $A/(x)$ is not isomorphic to $\mathbb Z/2\mathbb Z$ or $\mathbb Z/3\mathbb Z$. How do we do that? My problem is that, since I don't know what this degree function looks like, I don't know how to choose this $x$! I know that the elements of $A/(x)$ are of the form $a+(x)$, with $a$ of degree less than $x$ or zero. By minimality of $x$ this means that $a\in \{0, 1, -1\}$. Now I'm lost: how do we derive a contradiction from this? |
Not sure if SO is the right forum, but we're in need of help and perhaps programmatic elements may comprise the final solution. Instead of downvoting, please recommend where to post this question, and we'll gladly remove this from SO. Thanks -- we just want to overcome this attack. It seems like our ecommerce site is under attack from a botnet, causing our site to go down. We're receiving 50-100 requests per second (far surpasses normal traffic). Some requests are for outdated URLs not even normally accessible from the site. Two questions: 1) How do we confirm if the site is under attack? 2) If the site is under attack, how can we ward off the attack and prevent future ones? We appreciate any help or guidance anyone can offer. We're using Tomcat 6.0. (Don't ask why. You don't want to know.) Thanks! | This is a about DoS and DDoS mitigation. I found a massive traffic spike on a website that I host today; I am getting thousands of connections a second and I see I'm using all 100Mbps of my available bandwidth. Nobody can access my site because all the requests time out, and I can't even log into the server because SSH times out too! This has happened a couple times before, and each time it's lasted a couple hours and gone away on its own. Occasionally, my website has another distinct but related problem: my server's load average (which is usually around .25) rockets up to 20 or more and nobody can access my site just the same as the other case. It also goes away after a few hours. Restarting my server doesn't help; what can I do to make my site accessible again, and what is happening? Relatedly, I found once that for a day or two, every time I started my service, it got a connection from a particular IP address and then crashed. As soon as I started it up again, this happened again and it crashed again. How is that similar, and what can I do about it? |
I have a use case where I wish to create a table for each entity to which the underlying application that owns this entity will publish records. This table has a fixed structure, so if there are 5 such entities in my system, there will be 5 different tables with the same schema. The schema is generic with one of the columns in the schema as JSON for flexibility. I do not expect queries based on the fields in the JSON. I expect the following queries on each entity: On the auto-increment id primary key column with LIMIT and OFFSET where I need to read X rows from the record with id Y. On the creation date column with LIMIT X. I expect thousands of such entities to be created on the fly so in turn there will be thousands of tables in the database. In future when one of these entities have fulfilled their purpose, the table would be simply deleted. I expect most of these tables to have not more than 100 rows while there will be a few with at least 1M rows as time goes by. This design makes data easy to query as my application can determine the table name from the entity name. Is this a bad design? Is there a limit to the number of tables in a database in RDBMS (the above design is with Postgresql 11 in mind) keeping performance in mind? Should I use any different datastore to achieve this other than RDBMS? Any suggestions? | I just had a question about database design, I am in fairly early learning stages of this so bear with me. Suppose I have a parent table called "Projects" each "Project" Entity can have any number of "Attachments" and each "Attachment" can have any number of "Anchors". I can only see a few possible solutions for this. Estimations assume 10 years use of this database: 300 Projects/year * 3 Attachments/Project * 20 Anchors/Attachment Solution 1 (My initial design idea): Involves 3 tables. "Projects"->"Attachments"->"Anchors" Number of Tables: 3 Max entities in a table: 180,000 in "Anchors" Solution 2: Involves 2+n tables. "Projects"->"Attachments"->"Anchors[n]" Number of Tables: 9,002 (9,000 Anchor Tables) Max entities in a table: 9,000 (In Attachment Tables) Solution 3: Involves 1+n1+n2 tables. "Projects"->"Attachments[n1]"->"Anchors[n2]" Number of Tables: 12,001 (3,000 Attachment + 9,000 Anchor) Max entities in a table: 3,000 (In Project Tables) To summarize: What's worse, more entities or more tables? AND/OR Is there simply a better design for this situation that I am unaware of? |
So I'm reading about bound systems right now in my quantum text. It is beginning to explain why energy must be quantized, and is doing so by introducing the reader to the one dimensional "quanton in a box". Essentially it shows this: For a region of 0 potential energy, with infinite potential energy everywhere else, a particle is "free" within the region of 0 potential energy. This means that the particles wave function must go to zero at these "boudaries", and therefore resemble a standing wave between the potential energy bounds. Because the wavefunction must be zero at the ends, the Dr Broglie wavelength must be so that an integer number of half-wavelengths fits inbetween the regions of infinite potential. Therefore, the energy of a particle (quanton) must be so to satisfy this, and cannot be any arbitrary value. First of all, the more board question: why, then would an electron that is outside of a bound system be quantized? Or any other particle that is outside of a bound system (atomic nucleus, etc.)? Secondly, the question that I am more interested in: the only reason that a classical standing wave in a string results in the way it does is be cause f resonance; the string resists frequencies that do not match a natural harmonic of the material, and accepts very well frequencies which do match. So then isn't the fact of energy quantization a direct consequence of the phenomenon of resonance? It must be. But then, what is the material that is experiencing this resonance? For an electron, which could be described as a "matter-wave", would the Higgs field, itself, be resonating? Or something else? | Given some potential $V$, we have the eigenvalue problem $$ -\frac{\hbar^2}{2m}\Delta \psi + V\psi = E\psi $$ with the boundary condition $$ \lim_{|x|\rightarrow \infty} \psi(x) = 0 $$ If we wish to seek solutions for $$ E < \lim_{|x|\rightarrow \infty}V(x), $$ I find textbooks like Sakurai and others assert that (without proof) set of all such eigenvalues $E$ that admits nontivial solutions is discrete, which gives us liberty to index them with natural numbers (principal quantum numbers). Can anyone help me with a little elaboration of this mathematical fact ? As a student of mathematics, I know that compact operators have discrete spectrums, so for the operator $ T : L^2 \rightarrow L^2 $given as $$ T(\psi) = -\frac{\hbar^2}{2m}\Delta \psi + V\psi. $$ Are there methods to show that $T$ is compact? Or possibly other ways to establish discreteness of its eigenspectrum? |
I was browsing the Stack Overflow badges tab earlier, and noticed there are some badges that can no longer be awarded. For example; Analytic Precognitive Beta These are badges that, unless I'm misunderstanding what they mean, are no longer possible to be awarded, which brings me to the question, should they still be visible on the 'Badges' tab? I'm not saying remove them from users who have earned them, just hide them on the badges page, or perhaps even better, have a separate section at the bottom for 'Retired Badges', or something similar? | Followed the proposal for this site before it entered the commitment phase None of these sites had Area 51 proposals. |
I'm experiencing some trouble with the width property of CSS. I have some paragraphs inside a div. I'd like to make the width of the paragraphs equal to their content, so that their green background looks like a label for the text. What I get instead is that the paragraphs inherit the width of the div father node which is wider. #container { width: 30%; background-color: grey; } #container p { background-color: green; } <div id="container"> <p>Sample Text 1</p> <p>Sample Text 2</p> <p>Sample Text 3</p> </div> | I have a layout similar to: <div> <table> </table> </div> I would like for the div to only expand to as wide as my table becomes. |
From what I understand, the == operator checks if two variables are equal, while the is operator checks if two variables have the same identity/ reference the same object. So why is print(id(a) is id(b)) False ? Don't the two variables reference the same integer? a = 1000000000 b = 1000000000 print(id(a)) #182798416 print(id(b)) #182798416 print(id(a) is id(b)) #False print(id(a) == id(b)) #True print(182798416 is 182798416) #True | My has failed me. In Python, are the following two tests for equality equivalent? n = 5 # Test one. if n == 5: print 'Yay!' # Test two. if n is 5: print 'Yay!' Does this hold true for objects where you would be comparing instances (a list say)? Okay, so this kind of answers my question: L = [] L.append(1) if L == [1]: print 'Yay!' # Holds true, but... if L is [1]: print 'Yay!' # Doesn't. So == tests value where is tests to see if they are the same object? |
I don't know, how this enumeration should be indented. It gives me the enumeration closely next to the word "Practice" and it should be on the separate line (under "Practice"). \documentclass[a4paper, 10pt]{article} \usepackage{czech,amsmath,amsthm,amsfonts,multicol} \topmargin0pt \headheight0pt \headsep0pt \oddsidemargin0pt \evensidemargin0pt \setlength{\textwidth}{\paperwidth} \addtolength{\textwidth}{-2in} \setlength{\textheight}{\paperheight} \addtolength{\textheight}{-2in} \begin{document} \theoremstyle{remark} \newtheorem*{practice}{Practice} \renewcommand{\labelenumi}{[\arabic{enumi}]} \renewcommand{\labelenumii}{(\roman{enumii})} \begin{practice} \begin{enumerate} \item ccc \begin{enumerate} \item fff \item fff \end{enumerate} \item fff \end{practice} \end{document} | I'm currently writing up some solutions, and I like to rewrite the problem before answering it. I've set exercise to be a theorem environment, and the code I'm using is \begin{exercise} \begin{enumerate} \item Show that $R$ is symmetric iff $R^{-1}\subseteq R$. \item Show that $R$ is transitive iff $R\circ R\subseteq R$. \end{enumerate} \begin{proof} \end{proof} \end{exercise} However, when I build, the first item (a) appears immediately to the right of the Exercise heading, and the second item (b) appears below and indented: I've tried using \newline and \linebreak, and even skipping a line before typing \begin{enumerate} after the \begin{exercise} command but those don't work. Is there a way to push (a) down below Exercise 3.32. so that it's lined up with (b)? Thank you. As requested, my preamble is: \documentclass[11pt]{article} \input{other/packages.tex} \input{other/theoremdef.tex} where packages.tex is \usepackage{amsthm} \usepackage{amsmath} \usepackage{amscd} \usepackage{url} \usepackage[top=1.3in, bottom=1.3in, left=1.3in, right=1.3in]{geometry} % header and footer \pagestyle{headings} \usepackage{amssymb} \usepackage{amsfonts} \usepackage{stackrel} \usepackage{mathrsfs} \usepackage{verbatim} \usepackage{enumerate} \usepackage{hyperref} \usepackage{xy} \input xy \xyoption{all} And theoremdef.tex is: \newtheorem{exercise}{\bf Exercise} \newcommand{\dom}{\text{dom}\ } \newcommand{\ran}{\text{ran}\ } \newcommand{\fld}{\text{fld}\ } \newcommand{\op}[2]{\langle #1,#2\rangle} \newcommand{\ot}[3]{\langle #1,#2,#3\rangle} \newcommand{\ms}[1]{\mathscr{#1}} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.