body1
stringlengths
20
4.1k
body2
stringlengths
23
4.09k
I am trying to change the text of an link tag when it is clicked using jquery. The trick is that the tag is created with jquery and does not exist on page load. here's the fiddle: the jquery looks like this: $(document).ready(function () { $("#round-button").click(function () { // do something $("#button-text").text("new text"); }); }); The a tag looks like this: <a class="round-button" id="round-button" href="#"> <p id="button-text">Blah!</p></a> For some reason the code does not work. It works on other elements such as a button and even other elements but on the "#roud-button" in particular it does not. I have heard this is a commonish problem but when i tried to implement some of the usual solutions it did not work. Any thoughts? thanks
I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off. This happens on page ready and works just fine. The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound. I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.
We are required to determine all continuous real valued functions $f$ such that $$f(f(x))=-x$$ I’ve determined that if such a function exists, it must be bijective. But I don’t know if such a function exists, let alone find all such functions. Any hints and suggestions will be appreciated.
I've been perusing the internet looking for interesting problems to solve. I found the following problem and have been going at it for the past 30 minutes with no success: Find a function $f: \mathbb{R} \to \mathbb{R}$ satisfying $f(f(x)) = -x$ for all $x \in \mathbb{R}$. I am also wondering, can we find $f$ so that is continuous? I was thinking of letting $f$ be a periodic function, and adding half the period to x each time. I had no success with this, and am now thinking that such a function does not exist. Source:
I have the following test service: Opening it in any browser gives this warning "There is a problem with this website’s security certificate" However, I can ignore the warning and view the web service description. Accessing same from code throws this exception: Message=System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ServiceModel.Security.SecurityNegotiationException: Could not establish trust relationship for the SSL/TLS secure channel with authority '197.253.5.218'. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure. Please is there an option to bypass such faulty security certificate from code? Thanks.
We are setting up a new SharePoint for which we don't have a valid SSL certificate yet. I would like to call the Lists web service on it to retrieve some meta data about the setup. However, when I try to do this, I get the exception: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. The nested exception contains the error message: The remote certificate is invalid according to the validation procedure. This is correct since we are using a temporary certificate. My question is: how can I tell the .Net web service client (SoapHttpClientProtocol) to ignore these errors?
I was filling the bathtub the other day with water and noticed something. When calm, the light illuminates everything and I can see the sides and bottom of the white tub without shadows. Then, when I add a droplet of water its ripples (either its peaks or valleys of the wave) cast concentric rings of shadow which travel about 2 feet per 3 seconds (0.2 m/s) outward from epicenter. I'm wondering what exactly creates these shadows. That distance is too large for light waves destructively interfering.
Take a look at the following picture: Why does the light at the bottom of the water form this pattern? I have also seen the same phenomenon in all the swimming pools I've ever visited, of whatever depth they may be. How does this happen?
I have table named ITEMS where there should be 2 auto increment columns. So the table structure would be: ID | ITEM_ID --------------------------------- 1 | ITEM201521080225-001 2 | ITEM201521080301-002 3 | ITEM201521080345-003 The column.ITEM_ID structure is ITEMYearDayMonthHourMinute-Increment Value I managed to Generate the ITEMYearDayMonthHourMinute value thru POST(PHP POST/ PHP Generated). I am using MySQL and PHPMyAdmin at the moment, and I'm seeing errors if I set column.ITEM_ID to AUTO_INCREMENT How can I make column.ITEM_ID to AUTO_INCREMENT? Is it Possible?
I have a MySQL table that contains information on invoices of a company. However, this company has two branches, and each of them has a unique invoicing sequence; a "Serie A" and "Serie B", so to speak. However, this is one single company and I do not want to create two invoice tables. Rather, I somehow want to have two different auto-increments for one table. I know this is technically not possible, but I guess this is a problem others have tackled before, so I'd like to know if there is a well-known 'solution' for this issue? What I am doing right now is not using the primary key as invoice number (which would be ideal), but rather using a secondary column with the invoice id, which is incremented manually (well, using a PHP script, but it's still not automatic), by checking the latest invoice for that particular series. This is my current setup: CREATE TABLE `invoices` ( `id` mediumint unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY, `invoicenumber` mediumint unsigned NOT NULL, `branch` enum('A','B') NOT NULL, `date` date NOT NULL, `client` varchar(100) NOT NULL ) COMMENT='' ENGINE='InnoDB'; To check the lateset invoice, I run: SELECT MAX(invoicenumber+1) AS new_invoice_number FROM invoices WHERE branch = 'A'
I know linear regression gets the estimate of beta by minimizing the squared errors. I'm curious why can't I use inverse of X to get the estimate of beta. I know there is errors and etc. but if X inverse exists, can we just estimate the beta using X ^(-1)? X * beta = Y beta = X^(-1) * Y This does not sound right, but I'm not sure how to disprove it either.
I understand the derivation process of the least square estimator of B 𝑏=(𝑋′𝑋)-1 𝑋′𝑦 However, I am not seeing what I am doing wrong here, because I feel this can be further simplified like 𝑏 = (𝑋′𝑋)-1 𝑋′𝑦 = (𝑋)-1 (𝑋′)-1 𝑋′𝑦 = (𝑋)-1 Y where am I doing wrong, please point out. Thank You! Ok! I see , it has to be sqaure matrix to clearly define the inverse, I am just confused with derivation of the following: Not sure how it gets from first red line to the second redline.. Thank you! Any help be will appreacited!
Is there any way to force application to run in 32-bit mode on 64-bit Windows ? My Os is windows 7 64 bit.
I have an executable that works fine when run on 32-bit windows but breaks when run on 64-bit windows. Is there some way I can force it to run in 32-bit mode on a 64-bit machine? I don't have access to the source code.
I know that the series $\sum \limits _{n=1}^\infty (1- \cos\frac{1}{n})$ converges. One way is to use trigonometric identity which says $(1- \cos\frac{1}{n})$ = $2\sin^2(\frac{1}{2n})$ and from here I need to show that $\sum \limits _{n=1}^\infty 2 \left(\frac{1}{2n}\right)^2 $ converges, which is pretty simple because the denominator's $n^p$ and $ p > 1 $. But I want to try another approach. I know that the beginning of $\sin(\frac{1}{n})$ Maclaurin series is ($x_0 = 0$)$ 1 - (\frac{1}{n})^2 \ 2! $. which means I need to check: $\sum \limits _{n=1}^\infty (1- (1 - (\frac{1}{n})^2 \ 2!))$ = $\sum \limits _{n=1}^\infty (\frac{1}{n})^2 \ 2!$ and this is clearly converges because it is harmonic sequence where $n^p$ and $ p > 1 $. Does it make sense what I just wrote? What I struggle with: Is my Maclaurin evaluation true?
I'm having trouble determining the convergence of the series: $$ \sum_{n=1}^{\infty}\left[1-\cos\left(1 \over n\right)\right]. $$ I have tried the root test: $$\lim_{n\rightarrow\infty}\sqrt[n]{1-\cos\frac{1}{n}}=\lim_{n\rightarrow\infty}\left(1-\cos\frac{1}{n}\right)^{1/n}=\lim_{n\rightarrow\infty}\mathrm{e}^{\frac{\log(1-\cos\frac{1}{n})}{n}}=\mathrm{e}^{\lim_{n\rightarrow\infty}\frac{\log(1-\cos\frac{1}{n})}{n}}$$ Now by applying the , that upper limit is equal to: \begin{align} \lim_{n\rightarrow\infty}\frac{\log(1-\cos\frac{1}{n+1})-\log(1-\cos\frac{1}{n})}{(n+1)-n}&=\lim_{n\rightarrow\infty}\left(\log(1-\cos\frac{1}{n+1})-\log(1-\cos\frac{1}{n})\right) \\&=\lim_{n\rightarrow\infty}\log{\frac{1-\cos{\frac{1}{n+1}}}{1-\cos{\frac{1}{n}}}} \end{align} Now I'm totally stuck, unless that quotient is actually 1, in which case the limit would be 0, the Root test result would be $\mathrm{e}^0=1$ and all this would have been to no avail. I'm not sure this method was the best idea, the series sure seems way simpler than that, so probably another method is more appropriate?
Which is a better choice in case of a PhD application and why: Submitting a transcript which indicates an incomplete study (50/120 credits completed) and 5 dropped (not failed) courses. vs. Concealing an incomplete study. ?? If #1 is a Hobson's choice, how can I explain that to satisfy the admission committe?
I attended a 2y MSc mixed mode (Coursework+Thesis) program which is incomplete as of today. I have completed two semesters and still 2 more semesters to go. I have dropped 3rd semester and never attended the 4th one. Coz, I ran out of money. I didn't like the program as it contained too much coursework. A whole load of coursework unrelated to my area of research interest was hindering my effort towards getting into research. Suppose, I am interested in Machine Learning. But, I have to study Economics and so on. Now, I found that I, actually, can apply to Ph.D. programs without completing an MSc program (there are a lot of universities which accept Ph.D. students without MSc). I have good GRE score, so the chance of getting into a Ph.D. program is very high. But, I am worried that my previous incomplete MSc program will discredit my CV and statement of purpose as the dropped semester would be considered as failed courses. Would it be a crime to not to disclose the incomplete MSc program? What would be the possible consequence of concealing an incomplete degree?
Let $F$ be a field of order $32$. Then find the number of non-zero solutions $(a,b)\in F\times F$ of the equation $x^2+xy+y^2=0$. As , $|F|=32$ , so $(F\setminus\{0\},.)$ forms a group of order $31$, which is prime. So , $F\setminus \{0\}\simeq\mathbb Z_{31}$. Then how I proceed ?
Let $F$ be a field of order 32. Find number of solutions $(x,y)\in F\times F$ for $x^2 +y^2 +xy =0$. I have figured out that non zero elements of this field forms a cyclic multiplicative group of order 31 and charecteristic of $ F $ must be 2. Have no idea how to proceed further.
Am I right that we use the same wording to ask a question and to to state something (not a question), when we use "how"? How to write a program in Pascal? I know how to write a program in Pascal.
Can I use “How to” instead of “How do I” when I ask a question? And will it be grammatical? I often notice some English learners use “How to” when they ask a question.
The below exercise and the axiom to which it pertains can be found in Tao's Analysis I, which I am currently self studying. Axiom 3.11 (Power set Axiom) For any two sets $X$ and $Y$, there exists a set, denoted $Y^X$, which consists of all functions from $X$ to $Y$. Thus, $$f\in Y^X \ \iff \ (f \ \text{is a function such that} \ f:X\to Y).$$ Exercise 3.4.6 Show that the above axiom implies the existence of the set $$2^X:=\{S\mid S\subseteq X\},$$ which consists of all subsets of a set $X$. (Hint: start with the set $\{0,1\}^X$ and apply the , replacing each function $f$ with the object $f^{-1}(\{1\})$. As the author suggested, we start with the set $$\{0,1\}^X = \{f\mid f:X\to\{0,1\}\},$$ and replace its elements with subsets of $X$. Clearly, this procedure yields the set $2^X$ however, I am unsure how I can apply the axiom of replacement. How can I do this bit? Any hints or tips are greatly appreciated. Edit: This question has been , I have just found.
I'm stuck at one exercise from chapter of sets from Terence Tao's analysis book. I need to proof the lemma: Lemma: Let $X$ be a set. Then the set $\{Y : Y \:\text{is a subset of}\: X\}$ is a set. Note: The set $\{Y : Y \:\text{is a subset of}\: X\}$ is known as the power set of $X$, defined as $2^X $ I can understand why the lemma is true, but I have no clue how to prove it. Furthermore, the author gave a hint that I found very confusing, it follows: Hint: start with the set $\{0, 1\}^X$ and apply the replacement axiom, replacing each function $f$ with the object $f^{-1}(\{1\})$.
I am very new to Illustrator. I've created a text only logo and exported it as a png. When I try to insert it as my email signature it becomes pixelated. How can I export it so it will not lose quality regardless of how small or large i need it to be. (I will also use it for letterhead, business cards and website). Any help anyone could provide would be much appreciated!! thanks in advance.
I found a couple useful threads on this forum with respect to the issues posed by (displaying) images in email signatures-- , for example-- and I've searched all over the web, but still have not found a good solution that sufficiently addresses the problem. A client of mine would simply like his company's logo included in the signature of his emails, and the issues I've encountered can be summarized as follows: I can export a rasterized version of the logo from AI at actual size, and it will look sharp on the desktop but pixelated/blurry on hi-density (e.g. "retina") displays such as the iPhone. As suggested in the thread I referenced, I can export the logo at 2-3 times the actual, displayed size to target the hi-density displays, but the logo will then look soft on non-hi-density displays when it is scaled down. This is a particular problem in this instance as the logo contains text, which looks terrible when juxtaposed with actual text in the browser/email client. I've considered .svg as an option, but apparently the support is not great; and in this case I'm assuming the vast majority of the users reading this client's email will be using Outlook, so something that only renders properly in iOS/webkit/etc is not a viable option. I'm at a loss at this point and wondering if there is any other possible option out there. I'm not sure, for instance, if it's possible to implement a hi-density image with lo-res fallback in an email signature? Any suggestions/insights here are much appreciated. It's bordering on comical how difficult this task has turned out to be.
I want to create a file, which will execute a code in terminal when dbl clicked.. Can this be done? If Yes, How?
Im trying to make a shortcut to login my ssh server: ssh x.x.x.x I made the following file: ssh_home.sh Made it executable: sudo chmod +x ./ssh_home Checked by right clicking properties to check if it was executable and it was.. But whatever I do, when double clicking it, it will launch gedit. I tried "Open With" but no terminal app is shown there. I searched the net but only found a way to link to the file while not integrating it in one "shortcut file"
I posted a question on Stack Overflow and got a down vote. What I don't understand is the reason for down vote. Here is my post: Does random down voting with out a justification help the community at all?
I and my friend used to ask programming questions on Stack Overflow, until we saw that 90% of our questions have at least 1 downvote and nobody cares to explain or at least give a clue why. For example: And many more on Super User... (can't see up/down count there) It seems to me like you're allowing this kind if mingebag-ish behavior on purpose. Is it fun to click on a good question's vote count and see like +5/-3? Does it seem right to you? It definitely doesn't seem right to me or my friend, who quit this website because of this. Don't you think this must be stopped, possibly now? You know, my problem here is that, when a question gets a downvote first (has overall negative reputation), it ceases to get views and thus less chances to get an answer. I came to stack overflow to get answers on my questions, not to have their quality or reason questioned.
Is there a way to use black-and-white images in a PDF as transparency masks for vector content? I know that I can use \pgfdeclaremask{maskname}{maskfile} \pgfimage[mask=maskname]{imagefile} for hard (1-bit) or soft transparency masks, but only with raster images maskfile and imagefile of the same dimension. If I understand correctly, that is only a requirement of TikZ/PGF, not PDF. At least I'm sure that PDF allows bitmap stencils of different pixel size over other bitmap images (that's what Xerox copiers do for scans to PDF). However, is there a way to do the equivalent of \pgfdeclaremask[maskname]{maskfile} \begin{tikzpicture} \fill[mask=maskname,color=somecolor] (0,0) rectangle (100,100); \end{tikzpicture} to have the opaque parts of the mask drawn in somecolor, or even a way to mask arbitrary content with an alpha channel taken from a grayscale picture? In case it matters, I'm currently using LuaLaTeX, but that's not a strict requirement.
I have a graphic in PDF format (originally converted from an SVG) that is monochromatic (black on white). Is it possible using TikZ or PSTricks but not (Illustrator or Inkscape) to include this image in a different color? Example: While it lasts (there seems to be no long term way to host a pdf), you can . Edit: Simple was perhaps a bit of a misnomer - the pdfs are cropped and monochromatic, but to intricate to redraw on my own. The above example is a character from a font (which I can recolor), but it gives a good example of what shapes I am talking about.
I have difficulties with this task Find a homomorphism $\Phi : (G, \circ) \to (G, \circ)$, that is surjective but not injective. I tried to find such a homomorphism, by finding a surjective function, yet functions I tried were not homomorphisms. And then I end up with $Ker(\Phi)=\{e_G\}$. So I found an isomorphism.
What is a (simple) example of a group $G$ with an endomorphism $G\rightarrow G$ That is surjective, but not injective?
I am having a hard time formatting fancyhdr's header and footer. I have tried \small or \fontsize{6}{6}... I can't change it. Here is my code : \documentclass[12pt,twoside,draft]{book} \usepackage{fancyhdr} \pagestyle{fancy} \usepackage[T1]{fontenc} \usepackage{tikz} \usepackage{titlesec} % ************************** % Taille de la page et marges % ************************** \usepackage[paperheight=240mm,paperwidth=160mm, left=22mm, right = 20mm, top = 20mm, bottom = 22mm]{geometry} % ************************** % En-têtes et pieds de page % ************************** \renewcommand{\headrulewidth}{0.3pt} \renewcommand{\footrulewidth}{0pt} \renewcommand{\sectionmark}[1]{\markright{#1}} \let\Subsubsectionmark\subsubsectionmark \def\subsubsectionmark#1{\def\Subsubsectionname{#1}\Subsubsectionmark{#1}} \fancyhead[LO]{ \textsc{\Subsubsectionname}} \fancyhead[RO]{} \fancyhead[C]{} \fancyhead[LE]{} \fancyhead[RE]{\rightmark} \fancyfoot[LO]{} \fancyfoot[LE]{\fontsize{6}{6} \thepage} \fancyfoot[C]{} \fancyfoot[RO]{\small \thepage} \fancyfoot[RE]{} % ************************** % Alignement du headerfooter % ************************** \newlength\FHoffset \setlength\FHoffset{0mm} \addtolength\headwidth{2\FHoffset} \fancyheadoffset{\FHoffset} \newlength\FHleft \newlength\FHright \setlength\FHright{19mm} \newbox\FHline \setbox\FHline=\hbox{\hsize=\paperwidth% \hspace*{\FHleft}% \rule{\dimexpr\headwidth-\FHleft-\FHright\relax}{\headrulewidth}\hspace*{\FHright}% } \renewcommand\headrule{\vskip-.7\baselineskip\copy\FHline} % Font formatting packages \usepackage{gensymb} \usepackage{anyfontsize} \begin{document} \end{document} Does anyone have an idea how to do this? Thanks in advance !
Basically, I want the header fonts to use a different (smaller) font size than the size I set using \documentclass. What should be the option I'd be using ? \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[margin=1in, headsep=10pt]{geometry} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhead[L]{Personal Statement} % What other option should I use to get a custom font size ?
How is the null check statement below throwing a Nullpointer Exception? Is the request perhaps null? I'm confused Somebody help. if(!getTGTid(request).equalsIgnoreCase(null) || !getTGTid(request).equalsIgnoreCase("")) { Method private String getTGTid(HttpServletRequest request) { return request.getParameter("tgtId"); }
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'm fairly new to Blender, in fact, I've been '3d modelling' in Blender for no longer than 10 days. While my 3d modelling skills are slowly getting sharpened I'm completely clueless on how I would unwrap this model I'm currently working on. This is an asset for a game, by the way is far from be finished, but I wanted to test the components scales, so I though, let me chuck some materials and see how it look in the game with proper lighting and stuff... I couldn't be more disappointed with the results. Here's my model in Blender: And here's how it looks when I import it to my game using smart UV project or lightmap pack to generate the texture. Like I said, I'm fairly new to Blender and based on the researches I did, it seems that I should be using seams although I also noticed that there are several different strategies, and I have no idea where to start from... So if somebody could provide some sort of guidance, or point me into a tutorial, or something that would help me to solve this problem I would very much appreciate. PS: I can link my 3d model if necessary. Thanks!
Is there a way to automatically unwrap my character? If not, is there a tutorial or something?
I eye-balled the chili and cayenne powder in my chili and have made it painful to eat. What should I use to counteract this? I tried adding pasta sauce and cheese to a small serving, but it wasn't very effective. According to the question "" the heat is coming from capsaicin: Capsaicin, the heat-producing compound in most types of hot peppers, is the highest on the Scoville Scale; extremely piquant and can produce a "burning" sensation in very small quantities. It is also poorly soluble in water, but is far more soluble in fat, especially oils. Adding some olive oil or a good quantity of butter to your recipe is a good bet for reducing capsaicin/capsicum heat. From some various discussions on the internet, I've also heard dark chocolate and sour cream can be effective. What can I add in minimal quantities without affecting the taste drastically?
I made chili and it's too hot! If I cook it longer will the heat calm down?
The alias below works well in zsh when spaces in directory names are \ escaped, but bash doesn't handle them properly. What changes would be required to make them work with bash properly. dum() { du -h --max-depth=1 $1 } zsh succeeds user@server: dum "Server Configuration" 32K Server Configuration user@server: dum Server\ Configuration 32K Server Configuration bash fails user@server:~$ dum "Server Configuration" 8.0K Server/install_scripts 300K Server du: cannot access 'Configuration': No such file or directory user@server:~$ dum Server\ Configuration/ 8.0K Server/install_scripts 300K Server du: cannot access 'Configuration/': No such file or directory How can the alias be written to make it work in bash?
The old advice used to be to double-quote any expression involving a $VARIABLE, at least if one wanted it to be interpreted by the shell as one single item, otherwise, any spaces in the content of $VARIABLE would throw off the shell. I understand, however, that in more recent versions of shells, double-quoting is no longer always needed (at least for the purpose described above). For instance, in bash: % FOO='bar baz' % [ $FOO = 'bar baz' ] && echo OK bash: [: too many arguments % [[ $FOO = 'bar baz' ]] && echo OK OK % touch 'bar baz' % ls $FOO ls: cannot access bar: No such file or directory ls: cannot access baz: No such file or directory In zsh, on the other hand, the same three commands succeed. Therefore, based on this experiment, it seems that, in bash, one can omit the double quotes inside [[ ... ]], but not inside [ ... ] nor in command-line arguments, whereas, in zsh, the double quotes may be omitted in all these cases. But inferring general rules from anecdotal examples like the above is a chancy proposition. It would be nice to see a summary of when double-quoting is necessary. I'm primarily interested in zsh, bash, and /bin/sh.
The following stumps me: Let $\mathbb K$ be a field. Let $A, B \in \mathbb K^{n \times n}$ where $B$ is nilpotent and commutes with $A$, i.e., $A B = B A$. Show that $$ \det(A+B)=\det(A) $$ I have no idea how to approach this I thought perhaps raise both sides to a power but nothing works. Thanks for all help.
Assume that the matrices $A,\: B\in \mathbb{R}^{n\times n}$ satisfy $$ A^k=0,\,\, \text{for some $\,k\in \mathbb{Z^+}$}\quad\text{and}\quad AB=BA. $$ Prove that $$\det(A+B)=\det B.$$
Im still kind of new to blender, but I am struggling to find any good reference images / characters online to help me practice retopo and sculpting. Any suggestions?
Since asking for tutorials, videos, resources, links to other content or downloads is considered off topic here, this is a specifically created Community Wiki which gathers resources for Blender and it has been approved by the . Just write in the appropriate answer/section. If you have concerns, questions, post a question, so we don't clutter the comments, but you can link your meta question from the comments. Questions regarding such resources are not allowed anymore, except for very specific and on topic requests (ask on if you're unsure about your question). Follow the instructions made in the question about how to post, what can be posted, etc. Learning Assets (also see: ) Reference Images/Blueprints (also see: ) Tools (also see: ) Other Special Interest () Also see the .
I have the following question in a competitive exam , but I failed to answer it.The question is: Let $\mathcal R = \{f:\{1,2, \dots , 10\} \rightarrow \mathbb Z_2\} $ be the set of all $\mathbb Z_2$-valued functions on the set $\{1,2,\dots , 10\}$. Then $\mathcal R$ is a commutative ring with pointwise addition and multiplication of functions.Which of the following statements are correct? $\mathcal R$ has a unique maximal ideal. Every prime ideal of $\mathcal R$ is also maximal. Number of proper ideals of $\mathcal R$ is 511. Every element of $\mathcal R $ is idempotent. The only option I was able to answer was option 4 . Can anyone help me understanding the ring in the question and the options. Any insight will be happily appreciated. Thank you.
Let $R =\{f:\{1,2,3,4,\cdots ,10\}\to \mathbb{Z}_2 \}$ be the set of all $\mathbb{Z}_2$ -valued functions on the set $\{1,2,3......10\}$ of the first ten positive integer. Then $R$ is a commutative ring with point-wise addition and multiplication of functions. Which of the following is true? 1) $R$ has a unique maximal ideal. 2) Every prime ideal of $R$ is also maximal. 3 ) The number of proper ideals of $R$ is $511$. 4 ) Every element of $R$ is idempotent. R is finite commutative ring so every prime ideal is maximlal ideal ,so I think option 2 is true .But for the other options I am helpless .
Question: Suppose $P(x)$ is a polynomial with $P(2)=2017$ and $P(5)=2002$. If it is given that $P(x)=0$ has exactly one integer root, find that root. My approach: I tried solving the problem by considering that $P(x)\in\mathbb{Z}[x]$ and that $$P(x)=a_nx^n+a_{n-1}x^{n-1}+\cdots+a_0.$$ Then $P(5)\equiv a_0 \pmod 5\implies 2002\equiv a_0 \pmod 5\implies a_0\equiv 2\pmod 5.$ Again, $P(2)\equiv a_0 \pmod 2 \implies 2017\equiv a_0 \pmod 2\implies a_0\equiv 1 \pmod 2.$ Thus, we have $$\begin{cases}a_0\equiv 1\pmod 2,\\a_0\equiv 2\pmod 5.\end{cases}$$ By solving the same we can conclude that $a_0\equiv 7 \pmod {10}.$ Also if $a$ is the only integer root of $P(x)$, then there exists $Q(x)\in \mathbb{Z}[x]$ with $\deg (Q(x))=n-1$ such that $$P(x)=(x-a)Q(x).$$ Thus, we have $$(2-a)Q(2)=2017,\text{ and }(5-a)Q(5)=2002=2\times 7\times 11\times 13.$$ After this I couldn't make any significant approach. I also understand that I shouldn't have made the assumption of $P(x)\in\mathbb{Z}[x]$, but that's the best I could think of. Can anyone help me progress (initially a small hint would be nice)?
$P(x) = 0$ is a polynomial equation having at least one integer root, where $P(x)$ is a polynomial of degree five and having integer coefficients. If $P(2) = 3$ and $P(10)= 11$, then prove that the equation $P(x) = 0$ has exactly one integer root. I tried by assuming a fifth degree polynomial but got stuck after that. The question was asked by my friend.
For some reason there are certain Environment Variables that won't expand when used in the "PATH" variable in the System Variables. For example, %SystemRoot% works just fine while %WinDir% doesn't. %ProgramFiles% and %ProgramFiles(x86)% doesn't work either. Obviously I know that I could just use the full path rather than a variable but that's not the point. Any ideas? Here is a screenshot/example:
What is difference between %Windir% and %Systemroot% in Windows Path Location? Both of them show "Windows" folder location.
Seen many questions on this matter, but as I can not access CTRL-ALT-F1/2 I'm stuck into this loop. It keeps asking for password, clean orpheants and back to login. As I can NOT open any manager/control window it's somekind of strange behavior. I can NOT login as myself OR as guest. :-(
My Ubuntu is stuck in a login loop when trying to enter my desktop. When I login, the screen gets black and soon after that the login screen comes back. I've read that the problem might be caused by an error depending on the graphics, here's my graphics card: ATI Radeon 7670M
I'm a Java beginner and I can't understand when I should create an instance of the superclass or subclass. I'm studying some tutorials online and I found a few times something like the following code: package test; class ABC{ public void myMethod(){ System.out.println("Overridden Method"); } } public class test extends ABC{ @Override public void myMethod(){ System.out.println("Overriding Method"); } public static void main(String args[]){ ABC obj = new test(); obj.myMethod(); } } Why I should use ABC obj = new test(); instead of test = new test();? If I need a new ABC object wouldn't it make sense to just use ABC obj = new ABC();? Thank you, sorry for the noobie question.
I have seen this mentioned a few times and I am not clear on what it means. When and why would you do this? I know what interfaces do, but the fact I am not clear on this makes me think I am missing out on using them correctly. Is it just so if you were to do: IInterface classRef = new ObjectWhatever() You could use any class that implements IInterface? When would you need to do that? The only thing I can think of is if you have a method and you are unsure of what object will be passed except for it implementing IInterface. I cannot think how often you would need to do that. Also, how could you write a method that takes in an object that implements an interface? Is that possible?
I have this div that I am fetching from a database '<div class="column">'+ '<div>'+ '<img src='+aparat.imagine+' width="150" height="140" />' +'</div>'+ '<div>'+ aparat.nume + '</div>' + //functia care le aranjeaza '<div id="pret">'+ aparat.pret +'&nbsplei' + '</div>'+ '<div>'+'<button data-value="'+aparat.id+'" class = "comanda">'+'Comanda!'+'</button>'+'</div>' + '</div>'; and the event handler: $(document).ready(function(){ $('.comanda').click( function() { alert('button clicked'); }); }); The problem is, when I click the button nothing happens, what am I doing wrong?
I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off. This happens on page ready and works just fine. The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound. I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.
Well Ricci's theorem is given by: $$\mathrm{D}g_{ij}=\mathrm{D}g^{ij}=0$$ I was wondering that if the theorem can be proved using covariant derivatives of $\delta_i^k$, $g_{ij}$ and $g^{ik}$. I really need this proof.
I've consulted several books for the explanation of why $$\nabla _{\mu}g_{\alpha \beta} = 0,$$ and hence derive the relation between metric tensor and affine connection $\Gamma ^{\sigma}_{\mu \beta} $ $$\Gamma ^{\gamma} _{\beta \mu} = \frac{1}{2} g^{\alpha \gamma}(\partial _{\mu}g_{\alpha \beta} + \partial _{\beta} g_{\alpha \mu} - \partial _{\alpha}g_{\beta \mu}).$$ But I'm getting nowhere. May be I've to go through the concepts of manifold much deeper.
How to copy the data from Excel to oracle?
I am looking for a free tool to load Excel data sheet into an Oracle database. I tried the Oracle SQL developer, but it keeps throwing a NullPointerException. Any ideas?
Suppose $$f(x)=x!$$ for all $x$ in $N$,and $f$ is also continuous in $x>0$,does this mean $f(x)=\Pi (x)$ for all $x>0$?
Usually, when someone says something like $\left(\frac12\right)!$, they are probably referring to the Gamma function, which extends the factorial to any value of $x$. The usual definition of the factorial is $x!=1\times2\times3\times\dots x$, but for $x\notin\mathbb{N}$, the Gamma function results in $x!=\int_0^\infty t^xe^{-t}dt$. However, back a while ago, someone mentioned that there may be more than one way to define the factorial for non-integer arguments, and so, I wished to disprove that statement with some assumptions about the factorial function. the factorial is a for $x\in\mathbb{C}$ except at $\mathbb{Z}_{<0}$ because of singularities, which we will see later. is a monotone increasing function that is concave up for $x>1$. satisfies the relation $x!=x(x-1)!$ and lastly $1!=1$ From $3$ and $4$, one can define $x!$ for $x\in\mathbb{N}$, and we can see that for negative integer arguments, the factorial is undefined. We can also see that $0!=1$. Since we assumed $2$, we should be able to sketch the factorial for $x>1$, using our points found from $3,4$ as guidelines. At the same time, when sketching the graph, we remember $1$, so there can be no jumps or gaps from one value of $x$ to the next. Then we reapply $3$, correcting values for $x\in\mathbb{R}$, since all values of $x$ must satisfy this relationship. Again, because of $1$, we must re-correct our graph, since having $3$ makes the derivative of $x!$ for $x\in\mathbb N$ undefined. So, because of $1$ and $3$, I realized that there can only be one way to define the factorial for $x\in\mathbb R$. Is my reasoning correct? And can there be only one extension to the factorial? Oh, and here is a to how I almost differentiated the factorial only with a few assumptions, like that it is even possible to differentiate. Putting that in mind, it could be possible to define the factorial with Taylor's theorem?
I read explaining that "sometimes" root can own something at /home/$USER directory. Can anyone give an example how to prove it. Just give a test case when something really bad happens, when I run sudo gedit /etc/rc.local edit file and save. I got many downvotes out and comments flooded in saying that it is a crime to run gedit with sudo. Can anyone give a real example? I clearly explained why this question is not a duplicate. There is no answer specific to gedit to the linked question. And it is important to explain why widely used sudo gedit is bad, or not really, etc.
I've read and am interested in this line: You should never use normal sudo to start graphical applications as Root. Why? What is the difference? Please provide a simple explanation, as I'm just a normal desktop user.
I have kept a good number of files in a folder. Now I want to read all of them. They are in different formats and different encoding. Using listdir/glob.glob I am able to find the list but how to open/read or process them for different encodings? If any one can help me out.I am using Python3.2 on Windows. Regards, Subhabrata Banerjee.
Let's say you want to save a bunch of files somewhere, for instance in BLOBs. Let's say you want to dish these files out via a web page and have the client automatically open the correct application/viewer. Assumption: The browser figures out which application/viewer to use by the mime-type (content-type?) header in the HTTP response. Based on that assumption, in addition to the bytes of the file, you also want to save the MIME type. How would you find the MIME type of a file? I'm currently on a Mac, but this should also work on Windows. Does the browser add this information when posting the file to the web page? Is there a neat python library for finding this information? A WebService or (even better) a downloadable database?
The scrolling in chat in Chrome latest (v36) doesn't work, but works for other people using the same version of Chrome. It simply: never scrolls. Fix it fix it fix it fix it fix it fix it!
I updated the chrome to version 61, and the auto-scroll stopped working, it is necessary to scroll down the page manually. The problem does not occur in the previous version or in firefox. Also, the reply icon no longer working when the message replied to is not in the current chat page. (Middle click still works and opens the link in new tab.)
Let's start with two square matrices, $A$ and $I$. $I$ is the identity matrix in n-dimensions. $A$ is such that all its entries are equal to 1 (clearly, it is not invertible). Our task is to determine conditions on $a$ and $b$ such that $M=bA + (a-b)I$ is invertible, i.e. has rank = $n$. Of course, we don't know what $n$ is, so we probably don't need to. $a=b$ is the worst that's possible, so $a$ and $b$ should not be equal. Is that all, though? Is it sufficient to ensure invertibility of $M$? $A$ has all linearly dependent rows, while $I$ has all linearly independent rows. Is this sufficient to say that $A+I$ (or any other linear combination) has linearly independent rows/columns? Any help is appreciated, thanks a lot!
Consider matrices of the following form: \begin{bmatrix} a & x & \cdots \\ x & b & x &\cdots \\ \vdots & x & c &\cdots \\ & \vdots & x & \ddots & \\ \end{bmatrix} where all $x$ are the same scalar. Is there anything that can be done to calculate the determinant easily? Obviously if $$x=a=b=c=\cdots $$ then the matrix is singular and the determinant is zero. Assume this is not the case. Do they have any other interesting properties?
I read a news article about how they were able to create a negative temperature, below absolute zero, and my question is how does this work? I know that there are different definitions of temperature, and for the negative temperature, it's referring to entropy, the disorder. Can someone explain to me how is the negative temperature created and why is it in some situations when we add energy to a system, entropy does not increase?
Could someone provide me with a mathematical proof of why, a system with an absolute (such that of a spin system) is than any system with a positive temperature (in the sense that if a negative-temperature system and a positive-temperature system come in contact, heat will flow from the negative- to the positive-temperature system).
I'm Planning to upgrade to 14.04 . so what are the precautions i need to do . and is there a way to go back if things goes bad . i would appreciate if some one tells me a check list to follow to do this upgrade successfully
What are the different ways I can use to upgrade Ubuntu from one release to another?
Consider a classifier that, given an input vector ${\bf x}$ outputs both a prediction $y'$ whose accuracy ($a \in \{0, 1\}$) can be measured, as well as a predicted accuracy that corresponds to the predicted probability ($p \in [0, 1]$) that the prediction is correct. The accuracy is computed w.r.t. to the known target value $y$, i.e., $a = 1$ if $y = y'$ and $0$ otherwise. Ideally, the predicted accuracy represents $p(y = y' | {\bf x})$ with $y' = f({\bf x})$ and $f$ the function computed by the classifier. My question is the following: Given $n$ predictions of the form $(a_i, p_i)$, how can i measure how well the classifier predicted its accuracy? I can think of two ways to tackle this issue, but I wonder if these approaches are correct and if there are other established approaches out there. Binning: By sorting predictions based on their $p_i$ value and splitting them into bins $B_j$, the true accuracy can be estimated as: $a_j = \sum_{(a_i, p_i) \in B_j} \frac{a_i}{|B_j|}$ and for every bin the accuracy $a_j$ can be compared to $\sum_{(a_i, p_i) \in B_j} \frac{p_i}{|B_j|}$, the average predicted accuracy. However, quite some information would be lost if not many predictions are available. Squared distance: $\sum_{i = 1}^n \frac{(a_i - p_i)^2}{n}$. By measuring the average squared distance between the accuracy per prediction to the predicted accuracy, a relative measure can be computed that is minimal if the true accuracy per prediction matches the predicted accuracy. It is nice that this method forgoes binning and works by considering predictions standalone but the result is a bit hard to interpret.
I do not study statistics but engineering, but this is a statistics question, and I hope you can lead me to what I need to learn to solve this problem. I have this situation where I calculate probabilities of 1000's of things happening in like 30 days. If in 30 days I see what actually happened, how can I test to see how accurately I predicted? These calculations result in probabilities and in actual values (ft). What is the method for doing this? Thanks, CP
Can someone explain what is the difference between calling JavaScript Remoting in two different ways - One way is mentioned @ Another way is mentioned @
Digging in deeper to Javascript Remoting and I'm a bit confused. The starts off by showing how to set up everything and uses code like the following: function getRemoteAccount() { var accountName = document.getElementById('acctSearch').value; // This remoting call will use the page's timeout value Visualforce.remoting.Manager.invokeAction( '{!$RemoteAction.AccountRemoter.getAccount}', accountName, handleResult ); } However, I've also seen examples where Visualforce.remoting.Manager.invokeAction is never called. They end up looking something like the following: function getText() { var text = ""; JSRemotingBasicsController.doGetText( function(result, event) { // do something here } ); } I'm wondering what is the point to using Visualforce.remoting.Manager.invokeAction when you can just reference the RemoteAction directly like the second example? Is there something I'm missing? Is there a time where the second example doesn't work?
I am trying to type a matrix, but the parentheses looks bigger. How can I make the parentheses fit? It looks like the problem is caused by the doublespacing, but I want the double spacing for the text. How can I get around this? Below is the code: \documentclass{article} \usepackage{amsmath} \usepackage[doublespacing]{setspace} \begin{document} \begin{equation} \rho= \begin{pmatrix} \rho_{00} & \rho_{01}\\ \rho_{10} & \rho_{11} \end{pmatrix} \end{equation} \end{document} Here is the image:
I am having some difficulty getting this to display properly. \begin{equation} {\bf H} = -{\bf \mu} \cdot {\bf B} = - \gamma B_o {\bf S}_z = -\frac{\gamma B_o\hbar}{2} \begin{bmatrix} 1&0\\0&-1 \end{bmatrix}. \end{equation} Which appears as, I would like the matrix height to be consistant with the rest of the equation.
I have a linux machine in UTC timezone. [user@test packages]$ date +'%:z %Z' +00:00 UTC Running cat /etc/localtime also seems to indicate that my machine is in UTC timezone; [user@test ~]$ cat /etc/localtime f2UTCTZif2UTC UTC0 However calling logger.info(new Date()) in a application running tomcat under Java 1.7 returns something like Mon Oct 28 01:51:39 HDT 2019 This is very strange, so I created a simple Java program for testing: import java.util.Date; class Test { public static void main (String args[]) { Date dt = new Date(); System.out.println(dt); } } Compile and run it [user@test]$ /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.211.x86_64/bin/javac Test.java [user@test]$ /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.211.x86_64/bin/java Test Mon Oct 28 02:08:49 HDT 2019 My question is why my Linux utility is return date in UTC format, and yet my Java apps are returning dates in HDT format (I don't even know what HDT is). Since the app I'm maintaining is legacy, I can't use Joda Time or upgrade to Java8 or higher as this would meant lots of code changes.
I am running a Tomcat application, and I need to display some time values. Unfortunately, the time is coming up an hour off. I looked into it and discovered that my default TimeZone is being set to: sun.util.calendar.ZoneInfo[id="GMT-08:00", offset=-28800000, dstSavings=0, useDaylight=false, transitions=0, lastRule=null] Rather than the Pacific time zone. This is further indicated when I try to print the default time zone's , and it comes up "GMT-08:00", which seems to indicate to me that it is not correctly set to the US Pacific time zone. I am running on Ubuntu Hardy Heron, upgraded from Gutsy Gibbon. Is there a configuration file I can update to tell the JRE to use Pacific with all the associated daylight savings time information? The time on my machine shows correctly, so it doesn't seem to be an OS-wide misconfiguration. Ok, here's an update. A coworker suggested I update JAVA_OPTS in my /etc/profile to include "-Duser.timezone=US/Pacific", which worked (I also saw CATALINA_OPTS, which I updated as well). Actually, I just exported the change into the variables rather than use the new /etc/profile (a reboot later will pick up the changes and I will be golden). However, I still think there is a better solution... there should be a configuration for Java somewhere that says what timezone it is using, or how it is grabbing the timezone. If someone knows such a setting, that would be awesome, but for now this is a decent workaround. I am using 1.5, and it is most definitely a DST problem. As you can see, the time zone is set to not use daylight savings. My belief is it is generically set to -8 offset rather than the specific Pacific timezone. Since the generic -8 offset has no daylight savings info, it's of course not using it, but the question is, where do I tell Java to use Pacific time zone when it starts up? I'm NOT looking for a programmatic solution, it should be a configuration solution.
How to prove $1+(1/2)x-(1/8)x^2<\sqrt{1+x}$ for $x>0$ by Taylor Expansions up to $n$ order or Mean Value Theorem? I tried to apply MVT on $\sqrt{1+x}$ and get $\displaystyle \sqrt{1+x}=1+\frac{1}{2\sqrt{1+\xi}}x$ for $\xi\in (0,x)$. How to do next?
I need to show that for $x>0$, $1+\frac{x}{2} \ge \sqrt{1+x} \ge 1+\frac{x}{2} - \frac{x^2}{8} $. I used the geometric/arithmetic mean inequality to show that $1+\frac{x}{2} \ge \sqrt{1+x}$ is indeed true. My issue lies in the second part of this. In trying to show that $\sqrt{1+x} \ge 1+\frac{x}{2} - \frac{x^2}{8} $, I determined that this is a partial taylor series expansion and I attempted to play around with both inequalities to show that this is true but to no avail. I would appreciate any help in solving this. Ideally I would like to do this analytically but any solutions using more complicated theorems are welcome.
I’m reading large files containing DNA sequences. These are long stretches of characters and I need a certain subset from somewhere in the file (I have the start- and stop position). Since the files are so big, I use BufferedReader() to read. This reads one line at a time but the subset I want might be on more than one. The start- and stop positions I have only make sense if the whole DNA sequence was represented as one line with no newlines. In practise, these files do contain newlines unfortunately. So for every line the indices are from 0 to end and not 0 to 20, 21 to 40, 41 to 60 etc. for example. My problem/question: Reading a file line by line, but saving a subset/substring that might be across multiple lines. I tried several methods but can’t extract the substring I want. I suspect my own logic/thinking is flawed, or there is a method I am not yet aware of. Is there a better way to do this? Method 1: public String getSubSequence() { fileLocation = "genome.fna"; String referenceGenomeSub = ""; int passedLetters = 0; int passedLines = 0; //start- and stop position int start = 50; int stop = 245; Path path = Paths.get(fileLocation); try (BufferedReader br = Files.newBufferedReader(path, Charset.defaultCharset())){ String line; while ((line = br.readLine()) != null) { if (!line.startsWith(">")) {//Don't need lines that start with > passedLines++; //edit indices so I don't get out of bounds if (linesPassed != 1) { start = start - passedLetters; stop = stop - passedLetters; } //this is to know where I am in the file passedLetters = passedLetters + line.length(); //if the subset is on only one line if (start < passedLetters && stop <= passedLetters) { referenceGenomeSub = referenceGenomeSub.concat(line); } //subsequence is on multiple lines else if (start <= passedLetters && stop > passedLetters) { referenceGenomeSub = line.substring(start); } else if (passedLetters > stop && !referenceGenomeSub.isEmpty()) { referenceGenomeSub = referenceGenomeSub.concat(line.substring(0, stop)); } } } br.close(); } catch (IOException e) { System.out.println("Error: " + e.getMessage()); } } } Here I try to keep track of the number of characters I already have passed. This how I know when I’m in range of the desired substring. Result: StringIndexOutOfBoundsException My other method is to save all lines up until the line with my stop position. I then extract a substring. This is not prefered as my esired subset might be at the end of the file. Conditions: - Memory friendly - No BioJava if possible. I’m still learning to program so I want to do this without. Even if it’s the hard way Not looking for fixed code but some article/example to get me on the right track is perfectly fine. I'm looking at my screen for hours now without making progress and my mind is a bit of a blank now. As I said, the problem might be flawed thinking or being oblivious to much better methods/techniques for this job.
I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug. Is == bad? When should it and should it not be used? What's the difference?
After upgrading from Ubuntu 14.04 to 16.04, Kannada text is appearing as boxes. In 14.04 they used to rendered correctly. How to correct it? google home page screenshot (Kannada and Telugu text appearing as boxes):
I noticed that some Indian languages (eg : Kannada) are not supported in Ubuntu 16.04. See this screenshot: Even with file names : This was not happening in earlier Ubuntu editions. How can I enable kannada in Ubuntu 16.04?
How to download a package with all its dependencies So that it can be installed later on another computer without the internet. I tried at . But it also needs to be download individually all dependencies.
I have a friend who has got a computer that is not connected to the Internet. Is there any way to install software offline easily?
According to my textbook the implication P --> Q has the following truth table: I don't understand the last two rows. For example in the last row, how can we determine P --> Q if all we know is that both P and Q is false. Shouldn't the truth value be unknown in that case?
Provided we have this truth table where "$p\implies q$" means "if $p$ then $q$": $$\begin{array}{|c|c|c|} \hline p&q&p\implies q\\ \hline T&T&T\\ T&F&F\\ F&T&T\\ F&F&T\\\hline \end{array}$$ My understanding is that "$p\implies q$" means "when there is $p$, there is q". The second row in the truth table where $p$ is true and $q$ is false would then contradict "$p\implies q$" because there is no $q$ when $p$ is present. Why then, does the third row of the truth table not contradict "$p\implies q$"? If $q$ is true when $p$ is false, then $p$ is not a condition of $q$. I have not taken any logic class so please explain it in layman's terms. Administrative note. You may experience being directed here even though your question was actually about line 4 of the truth table instead. In that case, see the companion question And even if your original worry was about line 3, it might be useful to skim the other question anyway; many of the answers to either question attempt to explain both lines.
I have the following string: var str = 'd:\\projects\\my_project\\dist\\js\\example.js' I want to split the string into an array as follows: ['d:', 'projects', 'my_project', 'dist', 'js', 'example', 'js'] How can do this with str.split(regex)? What is the proper regex I need? Already tried str.split('(\.|\\)') and str.split('\.|\\') (i.e. w/out parenthesis) Both '\.' and '\\' work when individually passed, but not combined. Please help me regex masters!
How do I split a string with multiple separators in JavaScript? I'm trying to split on both commas and spaces, but AFAIK JavaScript's split() function only supports one separator.
I wrote a python file which prints a number every 5 sec and I runned it by using the command python3 filename >> a.txt But the output comes to the file after the completion of the program. How to make it redirect instantaneously??
Is output buffering enabled by default in Python's interpreter for sys.stdout? If the answer is positive, what are all the ways to disable it? Suggestions so far: Use the -u command line switch Wrap sys.stdout in an object that flushes after every write Set PYTHONUNBUFFERED env var sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) Is there any other way to set some global flag in sys/sys.stdout programmatically during execution?
Is there a way I can search (not just see after finding flights) for flights that use a particular maker's aircraft, say if I want to avoid or have a particular affinity to one of the major makers? question is similar but ended up (3 years ago) with a suggestion on viewing the aircraft types after completing a search, which makes it quite tedious. It should be possible to of airlines and use checkboxes on the search page to include only appropriate companies- but many companies (as just a couple of examples, Cathay Pacific and Hainan Airlines) run a mixed fleet directly or through their subsidiary connector airlines, complicating things, without even getting into codeshares. Edit: Nate has pointed out a similar question with an answer that works for this situation.
I'd really like to fly with an Airbus A380. But how do I find and compare the price of flights that are carried out by specific kind of plane? I don't want to fly just anywhere; I plan to go from Vienna, Austria to Indonesia this summer, possibly with a stop-over in Hong Kong, Singapore or Bangkok. I checked if any there are any regular commercial flights with A380s to/from my home town. There aren't, so the way to go is probably to first fly to a major hub somewhere in the Middle East or South East Asia (which I'd have to do anyway since there don't seem to be many direct flights from Vienna to SEA). So far, I simply searched for flights like you'd usually do and then checked which planes they use; this is very, very tedious, especially when one is very flexible in dates. How do I find cheap flights that are carried out by a specific type of plane?
Mysql table looks like this: The actual contents are like this: I tried these: in model.php if (mysqli_num_rows($result) > 0) { //iterate while($row = mysqli_fetch_assoc($result)){ //get username $disease = mb_convert_encoding($row['disease'], "UTF-8", "auto"); $food = mb_convert_encoding($row['food'], "UTF-8", "auto"); $en_name = mb_convert_encoding($row['en_name'], "UTF-8", "auto"); $health_effect = mb_convert_encoding($row['healthEffect'], "UTF-8", "auto"); $metabollite = mb_convert_encoding($row['metabollite'], "UTF-8", "auto"); //$citation = $row['citation']; $next_row = array("Disease"=>$disease, "Food"=>$food, "Name"=>$en_name, "Health Benefits"=>$health_effect, "Metabollite"=>$metabollite); //"Sources"=>$citation); $matches_arr[] = $next_row; } } $utfArr = array_map("utf8_encode", $matches_arr);//this does not work for associate arrays I think back in controller.php I tried again //encode in UTF8 foreach($matches_arr as $col => $val){ $utf8_val = mb_convert_encoding($val, "UTF-8", "auto"); $matches_arr[$col] = $utf8_val; } //send it back to view header('Content-Type: application/json'); $disease_json = json_encode($matches_arr, JSON_UNESCAPED_UNICODE); echo $disease_json; but it outputs question marks for table columns in Japanese: I saw this: But I think my case is different because mysql database is already encoded in utf8mb4_bin and not an obscure Japanese encoding. Anyways from that answer I tried putting this tag at the top of controller.php and model.php <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />" and check that my view.php has the charset: <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="description" content=""> <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors"> <meta name="generator" content="Jekyll v4.1.1"> <title>Dashboard Bioactive Compounds</title> <!-- boostrap comes first --> <link rel="stylesheet" href="css/bootstrap.css"> <meta charset="utf-8"> Actually it had it twice. I saw that the query result in model.php is already just question marks in phpstorm debugger console when I inspect the query result variable. How can I fix this to show Japanese on the view page?
I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1. Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur? This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.
I have a Canon EOS Rebel T3 with a zoom lens EF 75-300mm. What I am trying to do is take pictures of my son on the soccer field. I would love not to have the blur face just some really nice pics. He’s fast so I need something to handle action. Games are anywhere from midday for club soccer and early evening for high school soccer. The zoom lens all the way out leaves face blurry or I might as well use my iPhone. What I want is to be able to sit in bleachers, zoom in on my player, and get facial features - not look like I’m using a disposable. I don’t know if I can buy a lens for this camera - if so what type of lens should I get? Or do I just buy a whole new camera with lenses. I want to purchase within the next month so I can practice before games begin. I’m tired of taking what could have been fantastic pics.
I recently took on my first paying client, and she is also into photgraphy. She usually does sports for her highschool yearbook. They just have an entry level Canon DSLR with a kit zoom on it that goes up to 200mm, but it's not very fast (f/4 or 5.6 or so). She told me that she has a tough time - especially at basketball games - getting shots with any kind of reasonable lighting, and has to do a lot of work in post just to get them reasonable. mentions the Cannon EF 300mm f/2.8L IS USM II for professional sports photographers. At $6k USD I suspect the yearbook won't be springing for that lens anytime soon. So I was curious, are there any reasonable quality, fast lenses for Canon cameras that are lower priced (certainly no more than say, $1k)? I'd love to be able to point them to a couple of options. I assume the largest print they'd be making would be a full spread in the yearbook - maybe two 17"x11" (two 8.5" side by side)
Consider the sequence $\displaystyle a_{n} = \sum_{i = 1}^{n}i^{-1/3} $ and $b_{n} = n^{2/3}$. No we want to find $\displaystyle \lim_{n\rightarrow \infty}a_{n}-\frac{3}{2}b_{n}$? Actually I find it lower bound , but I used Abel summation, have no idea how to find it easier.
I'm noticing some things: $$\lim_{n \to \infty} \left(\sum_{x=1}^{n} x^{-1/3}-\frac{3}{2}n^{2/3} \right)=\zeta(1/3)$$ Note $\int n^{-1/3} dn=\frac{3}{2}n^{2/3}+c$ $$\lim_{n \to \infty} \left(\sum_{x=1}^{n} x^{-1/2}-\frac{2}{1}n^{1/2} \right)=\zeta(1/2)$$ And $$\int n^{-1/2}dn=2n^{1/2}+c$$ It seems as though $$\lim_{n \to \infty} \left(\sum_{x=1}^{n} x^{-1/s}-\frac{s}{s-1}n^{(s-1)/s} \right)=\zeta(1/s)$$ If $s \neq 1$, may someone please explain why.
I have looked at multiple questions and none seem to match what I am trying to do. I started down the path of dump, filter, load but that didn't seem right. Move may do it but it doesn't feel right since I am combining and versions seem like they will be over-written. My current structure looks like: /REPO /Project_1 /trunk /branches /tags /Project_2 /trunk /branches /tags /Project_3 /trunk /branches /tags I would like to move them into a structure that looks like /REPO_NEW /trunk /Project_1 /Project_2 /Project_3 /branches /Project_1 /Project_2 /Project_3 /tags /Project_1 /Project_2 /Project_3 I would like to preserve the history once the restructuring is complete. The brute force appraoch of disconnecting everything and redoing my directory/file structure and then commiting into the new repository if my absolute fallback as history is lost.
After considering the answers to my previous question (), I've decided to take the 4 or so repositories I have and consolidate them into one. This of course leads to the question, what's the best way to do this? Is there a way to combine two or more repositories maintaining the version history for both? Edit: I should also point out that I'm using Assembla.com, which does not provide access to the svnadmin command, AFAIK Another edit: Does this even matter? If svnadmin works on URLs, then it's no problem then.
I have setup y ubuntu with all kind of my setting now I want to duplicate it to 9 more computers (so I will have 10 exactly the same computers - with all the software\users\setting.....) how I create an image and how do I install it on a new computer? also if something happand to the computer I will be able to full restore it ? Thanks ,
Kind-of like but slightly different (I think), in that I have 6 identical Acer Aspire Revo R3610 machines. One is (almost) configured to my requirements - when I'm done preparing it I'd like to make the other 5 machines absolutely the same. I'm very new to Ubuntu, what's the most straightforward (easiest) way of doing this? The machines are going to live on different networks if that might otherwise be a problem (eg with Windows you can clone disks but you then have to make registry changes afterwards if they're going to run on the same network etc). The hardware in all 6 machines is, I stress, the same! How can I efficiently clone one source image on to these identical machines? Please restrict one software/solution per answer
Let the radious of the circle is r. Now if i want to find out the area of the crosssection ( mentioned by red color) then how to proceed?
Suppose you have 2 circles that intersect each other in such a way that each circle passes through the other's center. What is the area between the circle(or common area) i.e. area between the centres of the circles?
There are specific processes that seem to load only one of the processor cores, out of the eight cores my processor has. I have some such processes that run only 10-20 seconds, but others run in this fashion for up to 1.5-3 minutes. During this my cooling fan can speed up to really intense rates. I was thinking, if there is so much heat to deal with, while it is being concentrated on only one core, then is it possible — considering the entire area of the processor — that some part is getting hot while the opposite end/corner isn't so much? When considering heat expansion in materials, shouldn't it mean that the processor's materials are under extra stress and may be driven to develop cracks from the uneven expansion? Is this how it happens really? Can there be a difference in this regard between processors used in laptops (smaller, I guess) and processors used on traditional format motherboards? Clarification 1: I am not interested in the effects of heat when: its origin is distributed evenly across the processor body when it is encountered in a constant / long-term fashion. This question is specifically about heat-expansion involving the processor, while happening in an uneven distribution, happening in cyclical bursts. Clarification 2: The post that is suggested to contain answers for this question (in the "duplicate" marking), in fact does not take uneven distribution into consideration, and addresses a lot of peripherals, but not does not seem to go into depth of heat distribution in, and material engineering of processors.
I have a Dell XPS 15 9570, 32 GB ram, 2.2 ghz and 6 cores. When i use an application (The parsim command on MATLAB) () then my fan starts running fast , during this my PC doesn't seem to be heating but it never got this noisy in the past so it got me worried. In my task manager , the CPU usage shows 100% when this application is running. Is it a problem for the life of laptop, if I run the PC at CPU 100% for like 4 hours in a day? Do I need to be worried about the noisy fan during the application?
I'm teaching my little sister propositional logic per her request. I was trying to explain to her why $A \implies B$ holds whenever $A$ is false, and I didn't succeed with that. I referred her to the definition: $A \implies B$ is true if whenever $A$ true, $B$ is true. If $A$ is false, then it is "never" true. If we want to test whether the implication is true, we need to check if $B$ follows when $A$ is true, but $A$ is never true, so we need not check anything, hence the implication is true. Is my reasoning even correct? I forgot how to do these stuff anyway. Please help me explain this idea. It would be nice if you can give an intuitive way to think about it as well.
I am studying entailment in classical first-order logic. The Truth Table we have been presented with for the statement $(p \Rightarrow q)\;$ (a.k.a. '$p$ implies $q$') is: $$\begin{array}{|c|c|c|} \hline p&q&p\Rightarrow q\\ \hline T&T&T\\ T&F&F\\ F&T&T\\ F&F&T\\\hline \end{array}$$ I 'get' lines 1, 2, and 3, but I do not understand line 4. Why is the statement $(p \Rightarrow q)$ True if both p and q are False? We have also been told that $(p \Rightarrow q)$ is logically equivalent to $(~p || q)$ (that is $\lnot p \lor q$). Stemming from my lack of understanding of line 4 of the Truth Table, I do not understand why this equivalence is accurate. Administrative note. You may experience being directed here even though your question was actually about line 3 of the truth table instead. In that case, see the companion question And even if your original worry was about line 4, it might be useful to skim the other question anyway; many of the answers to either question attempt to explain both lines.
About fifteen or twenty years ago, I read an article (online, I think) which discussed, among other things, the structure of science fiction , which are put together from pre-existing pieces of shorter fiction. Among general facts about the genre, it described some interesting specific examples. One piece of trivia that was mentioned was that an author had actually used the same piece of short fiction in two different fix-ups! I don't remember any other details; in fact, I think there weren't really any other details given. However, it sounds like a fascinating and strange thing for any author to do. Does anybody know what the author and story invovled were? (From the context in the article, I am pretty sure it was not van Vogt, since he was identified in a different part of the article as the author who coined the term "fix-up.")
I read a novel written in English when I was a teenager in the 1970s about a society that lives in an enclosed city which controls the population. I can't remember the name of the story or the city. People are reproduced by machines in the city that have the DNA of everybody who can be born. No natural babies are born. One in a while, a person is born who rebels against their society and tries to leave the city. There are only a few ways to exit through the outside wall of the city. In the story the city reveals that each time it produces a rebel they are produced from same DNA. This story is about one of these rebels and how he escapes. I can't remember what happens when he escapes, but I think it is through a window high up in a wall. I can't remember what the world is like outside of the city.
magnetic field lines are from north pole to south pole outside a bar magnet but its direction is from south pole to north pole inside it. Why and what causes it?
So basically , we all know the direction outside the magnet its from NORTH to SOUTH. but what i don't understand is that what is the direction inside is it the same ??
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.exampledinLoginActivity}: java.lang.NullPointerException protected void onCreate(Bundle savedInstanceState) { Log.d(TAG, "login activity OnCreate************"); super.onCreate(savedInstanceState); dbHandler = new DatabaseHandler(this); wasDbExisted = dbHandler.ifDatabaseExists(); Log.d(TAG, "login activity wasdbexister="+wasDbExisted); if (wasDbExisted &&//if db exists, this becomes true to send to mainactivity. mainactivity needs to know if db existed or not !dbHandler.isLoginRemember().equals(null)) {//isloginremember returns string, username if loginremember checked, if not only returns null Intent i = new Intent(LoginActivity.this, MainActivity.class); i.putExtra("username", dbHandler.isLoginRemember()); i.putExtra("wasDbExisted", wasDbExisted); startActivity(i); finish(); } This is first activity of my applicaiton. Login activity. It checks if db exists, if db exists and in database, loginremember is true, it goes to mainactivirt directlry without setcontent (this worked). But if db doesnot exist , it setscontent and gets username password. or if loginremember false. Caused by: java.lang.NullPointerException at com.example.caneraydin.androidwithlogin.LoginActivity.onCreate(LoginActivity.java:167) error is that for that line: if (wasDbExisted && but logs say login activity wasdbexister=true to sum up Log.d(TAG, "login activity wasdbexister="+wasDbExisted);//log output is true for this if (wasDbExisted &&//it gives nullexception for this this is my manifest <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.caneraydin.androidwithlogin"> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission> <uses-permission android:name="android.permission.READ_PHONE_STATE"></uses-permission> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"> <activity android:name=".LoginActivity" android:screenOrientation="landscape" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".MainActivity" android:screenOrientation="landscape"> </activity> </application> </manifest> this is dbexists method of dbhandler class public boolean ifDatabaseExists() { Log.d(TAG,"dbhandlerifdbexists"); SQLiteDatabase db = this.getWritableDatabase(); Cursor mCursor = db.rawQuery("SELECT * FROM " + TABLE_OBJECT, null);//it is looking for object tble to check if db is null or not Boolean dbExists; if(mCursor.moveToFirst()) { Log.d(TAG,"dbhandlerifdbexists true"); dbExists = true; } else { Log.d(TAG,"dbhandlerifdbexists false"); dbExists = false; } return dbExists; } in my activity, the code is like that if (wasDbExisted && !dbHandler.isLoginRemember().equals(null)) { it shows first line.
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 need to send 0xFE (hex value) to a device connected through TCP. I tried following code and observed data on Packet Sender which shows value in ASCII column as 0xFE and hex value as "30 78 66 65". I have tried binascii.hexlify and a lot other strategies but none seem to work as I ain't getting "FE" hex value. import socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(('192.168.10.10',59354)) s.sendall(hex(int('FE',16)).encode()) s.close()
I have a long sequence of hex digits in a string, such as 000000000000484240FA063DE5D0B744ADBED63A81FAEA390000C8428640A43D5005BD44 only much longer, several kilobytes. Is there a builtin way to convert this to a bytes object in python 2.6/3?
When you hold Shift and press Right Click in Windows Explorer you get some additional menu items, most prominently the options to open the directory in cmd or the PowerShell. I once made these menu items available in the normal right click context menu by manipulating the registry. Unfortunately, I cannot find the tutorial on how to add additional items to this menu anymore. The only thing I do find is "How to reenable the 'open cmd here' context menu item". I think the last windows update wiped these entries I added for the WSL bash and cmd from the context menu. Now, these entries are only available when I hold Shift while right clicking. How do I get the normal entries back, i. e. how do I get context menu items for "Open cmd here in Windows 10 Windows Explorer" in the normal right click context menu?
I want "Command Prompt Here" in right click menu for all folders but without having to hold shift key. It was possible in earlier versions of windows, but it's not working anymore, in Windows 10. Has this method changed in Windows 10? or is there another way to do this?
How to prove Binet theorem, namely $\det(AB)=\det(A)\det(B)$ ? I've tried with the formulation of two arrays $2 \times 2$, but could not.
I've tried with the formulation of two arrays $2 \times 2$, but could not.
I am to prove that if $$1-1/2+1/3-1/4+1/5-1/6+...=s$$ that $$1-1/2+1/3+1/5-1/4+1/7+1/9-1/6+...=3s/2$$ My approach: $s/2=1/2-1/4+1/6-1/8+1/10-1/12...$ so that $s+s/2=3s/2=1-(1/2-1/2)+1/3-(1/4+1/4)+1/5-(1/6-1/6)...=$ $1+1/3-1/2+1/5...$ This sort of leads to what I want to approach, but the terms are not quite in the right order. I assume I may not change the order of the last set of terms for it to match what I'm looking for. Any other suggestions?
I need to show that $\sum (-1)^{n+1} / n$ = $k$ (which is $1 - 1/2 + 1/3 - 1/4+...$) can be expanded to a sum with $ 1 - 1/2 + 1/3 + 1/5 - 1/4 +1/7 + 1/9 - 1/6 + .... $ which is $3k/2$. How can I start? I know that $k/2$ = $\sum (-1)^{n+1}/2n$ How can I go further so I get $3k/2$?
I'm very confuse with the method using Hamiltonian to derive the equation of the movement. In example I have, it's easier to derive the equation of the movement using classical method (namely 2nd law of Newton). Can someone give me an example where using Hamiltonian is much easier than classical method? Also, is there a reason so that the Hamiltonian is the Legendre transform of the Lagrangian $T-V$ (where $T$ is the kinetic energy and $V$ the potential energy)? By the way, why is this the Lagrangian? All this looks a bit magic for me.
I've just finished a Classical Mechanics course, and looking back on it some things are not quite clear. In the first half we covered the Lagrangian formalism, which I thought was pretty cool. I specially appreciated the freedom you have when choosing coordinates, and the fact that you can basically ignore constraint forces. Of course, most simple situations you can solve using good old $F=ma$, but for more complicated stuff the whole formalism comes in pretty handy. Then in the second half we switched to Hamiltonian mechanics, and that's where I began to lose sight of why we were doing things the way we were. I don't have any problem understanding the Hamiltonian, or Hamilton's equations, or the Hamilton-Jacobi equation, or what have you. My issue is that I don't understand why would someone bother developing all this to do the same things you did before but in a different way. In fact, in most cases you need to start with a Lagrangian and get the momenta from $p = \frac{\partial L}{\partial \dot{q}}$, and the Hamiltonian from $H = \sum \dot{q_i}p_i - L$. But if you already have the Lagrangian, why not just solve the Euler-Lagrange equations? I guess maybe there are interesting uses of the Hamiltion formalism and we just didn't do a whole lot of examples (it was the harmonic oscillator the whole way, pretty much). I've also heard that it allows a somewhat smooth transition into quantum mechanics. We did work out a way to get Schrödinger's equation doing stuff with the action. But still something's not clicking. My questions are the following: Why do people use the Hamiltonian formalism? Is it better for theoretical work? Are there problems that are more easily solved using Hamilton's mechanics instead of Lagrange's? What are some examples of that?
Is it possible to transfer Terraria characters and/or worlds between platforms? I am specifically asking about transferring from Xbox One to PC.
I've looked around, and do not see a place in my Xbox One to look at specific files, so I have no clue how to drop maps onto my external drive to play Terraria on. Background info: I bought an Xbox One for myself for Christmas, and it came with a 350gb hard drive and some of the smallest games take like 10gbs to download so I bought a 4tb drive for 100 dollars, much less than they wanted for a much smaller internal Xbox One drive by the way. So how do I get a Terraria map from my PC onto my external drive, to play it on my Xbox? I've seen some kids on YouTube bragging about an all items map, but they don't show how to drop the map (transfer it from PC to Xbox). So what do I do?
So I have monitors stacked vertically. Is there away to get my cursor to move between the monitors by going to the top of the lower monitor to get to the upper monitor? Right now I have to go to the right of the primary to get to the other monitor. I wonder if there's some third party app or system preference setting that I can set.
When I have my external monitor hooked up, I access it by mousing off the left hand side of my Macbook display. Can I switch this so that I can access the external by mousing off to the right of My Macbook display? The reason I ask, is my monitor is on the right side of my macbook, and it's unintuitive to mouse left to get to a screen on the right.
The following words which end with an ean are pronounced as /*i:n/ whereas Sean is pronounced as /ʃɒn/: bean, dean, lean, mean... Why is Sean not pronounced as /si:n/ but as /ʃɒn/? Where does this irregularity come from? Are there known rules in English for such cases?
I've always had this question about the pronunciation of Sean. Is Sean a word from another language? Is it actually not pronounced Shawn and instead it's some sound between Shawn and Seen? Also, why isn't it pronounced as Sawn instead of Shawn, when the word Sean doesn't even have the letter 'h' in it to get that -sh sound? Bottom line is, why is Sean pronounced Shawn instead of Seen?
I know the question seems kind of unclear but why (in the attached image) the cross product like this, I hope someone can clear my doubt.
The cross product $\vec{a} \times \vec{b}$ can be written as the determinant of the matrix: $$\left| \begin{matrix} \vec{i} & \vec{j} & \vec{k} \\ a_i & a_j & a_k \\ b_i & b_j & b_k \end{matrix}\right|$$ Is there any physical significance to this matrix, or is it just some mathematical trick?
I have a script which takes input for two variables from users. Then, I try to use those variables in a command which is in turn being fed into a condition in an if. However, the user input value is not replacing my variables and as a result, my command is not working - # Get acl and dc values echo "Type the ACL name:" read acl echo "Type the DATACENTER name" read dc # see if sw-list-cisco file exists in ~/$acl directory" if [ ` ls -1 ~/$acl/sw-list-cisco > /dev/null | wc -l ` -gt 0 ]; then echo "Going to do something" else echo "no match !!!!!!!!!!!!!" fi The if [ ` ls -1 ~/"$acl"/sw-list-cisco > /dev/null | wc -l ` -gt 0 ]; condition doesn't seem to be replacing $acl with the user input value. I have verified manually that sw-list-cisco exists in the ~/$acl directory. What am I missing?
I am trying to write an if statement to test whether there are any files matching a certain pattern. If there is a text file in a directory it should run a given script. My code currently: if [ -f /*.txt ]; then ./script fi Please give some ideas; I only want to run the script if there is a .txt in the directory.
Problem According to , the Gamma function is computed as $$ \Gamma(z)=\int_{0}^{\infty} x^{z-1} e^{-x} d x $$ where $z$ is a complex number. Using integration by parts, it is easy to verify that $\Gamma(z)=(z-1)\Gamma(z-1)$ and therefore I have $$\Gamma(z) = (z-1)!$$ However, I am not sure how do I compute something like $4.7!$ (or value of any real number). I tried $4.7\cdot 3.7\cdots \cdot 0.7$, but it does not give the correct result as verified by scipy.math.gamma function.
All I know of the Gamma function is $$\Gamma(\alpha) = \int\limits_{0}^{\infty}x^{\alpha - 1}e^{-x}\text{ d}x$$ and the recursive formula $$\Gamma(\alpha) = (\alpha-1)\Gamma(\alpha - 1)\text{.}$$ A friend asked me to try to find $\Gamma(2.7)$. I assume this involves complex analysis, which I have absolutely no background on (except for the basic Euler formula). Using Wolfram, I found that $$\Gamma(2.7) = e^{0.434821}$$ which suggests to me perhaps writing out $e^{-x}$ as a Taylor series: $$\Gamma(\alpha) = \int\limits_{0}^{\infty}x^{\alpha - 1}\sum\limits_{i=1}^{\infty}\dfrac{(-x)^{i}}{i!}\text{ d}x$$ but alas, this doesn't look helpful. How does one derive that $\Gamma(2.7) = e^{0.434821}$?
I am trying to change the email address used in my user profile by doing the following: The button becomes disabled, leading me to believe that the change was successful. However, reloading the page quickly proves that it was not successful. This happens on multiple sites. Details Browser: Opera 32.0.1948.69 Operating system: Ubuntu 15.04 Debugging I decided to dig a bit deeper so that I could provide some (hopefully useful) information about what's happening on my end. When I click the button, a POST request is sent to /accounts/verified-email-set The form data does contain the new email address I entered The response from the server is 200 OK The response data is: {"success":true,"message":"you will no longer receive unread inbox messages via email"} The interesting part of this is that I did not see that message visibly displayed anywhere.
The email for getting notifications can be changed by clicking the "preferences" tab in your profile. After entering a new email address, the "Save email settings" button becomes clickable: Clicking the button turns it grey: So all looks well. But if you don't confirm the email by clicking on the link sent to your email inbox, the next time you go back to the preferences, you will see your old email address with no indication that it changed. You can subscribe to the weekly newsletter from the "edit" tab of your profile. If you click the option and save, the next time you visit the edit page before confirming your email you get this message: Once you confirm the email, the resend link disappears so you know the subscription is set up: Ideally, the two systems would be unified so that all email subscriptions happen the same way. But short of that, it would be very helpful to indicate that an email address is unconfirmed for notification emails just like newsletters.
Two identical waves, of amplitude $A$, have energy proportional to $A^2$. The sum of the energies of these two waves being proportional to $2A^2$. If these two waves superimpose to form a wave of the same form with amplitude $2A$. The energy of this wave will now be proportional to $(2A)^2 = 4A^2$. This suggests an increase in energy by a factor of $2$, which is a contradiction to the conservation of energy. How is this rectified please?
I have a problem with energy conservation in case of interfering waves. Imagine two harmonic waves with amplitudes $A$. They both carry energy that is proportional to $A^2$, so the total energy is proportional to $2A^2$. When they interfere, the amplitude raises to $2A$, so energy is now proportional to $4A^2$ and bigger than before. The equivalent question is what happens to the energy with the superposition of two waves that interfere destructively. Also, if someone could comment on the statement about this problem in my physics book (Bykow, Butikow, Kondratiew): The sources of the waves work with increased power during the interference because they feel the wave from the other source.
Show that if $f:\omega_1 \to \mathbb{R}$ is continuous, then there is $a \in \omega_1$ such that if $x\geq a$, then $f(x) = f(a)$. I'm stuck on this question for a while, although it seems to me that the proof will be related to the fact that $f$ is bounded (I proved this as folows: $f$ is continuous and $w_1$ has the least element of the set of its limit point, say $a$, then $f(a)$ should be the upper bound of $f:\omega_1 \rightarrow \mathbb{R}$. Is this correct?). Can anyone please help on this problem?
show that every continuous real-valued function defined on $S_{\mathbb{\Omega}}$ is eventually constant.Where $S_{\mathbb{\Omega}}$ denote the first uncountable ordinal. There is a hint that for each $\epsilon$,there is an element $\alpha$ of $S_{\mathbb{\Omega}}$ such that $|f(\alpha)-f(\beta)|<\epsilon$ for all $\beta>\alpha$. However, I couldn't figure out how to prove this statement.
I saw a program on Windows that helped the user learn keyboard shortcuts in various applications by reminding there is a shortcut every time he used a mouse to particular task. Is there some similar software available for Mac OS X?
OS X lets me type special characters directly on the keyboard by holding the Option. For example: — is an em dash, “ and ” are curvy quotes, etc. Is there a good cheat sheet listing all these keys somewhere? I tend to find myself holding option and running my hands up and down the keyboard looking for a specific character.
I'm quite sure someone already has asked this question before. However, I can't find an answer to my question so I thought I'd ask you guys. As the title says, I'd like to have two signature lines next to each other with 2 names below them. So far I've written this code: \begin{center} \hbox{ \vbox{------------------------------------------------ \\ Name 1} \hspace*{2cm} \vbox{------------------------------------------------ \\ Name 2} } \end{center} However it seems like the first \vbox is swallowing the other one and it visually looks like this (I know, nothing special to see here I guess): Any idea how I could solve this problem (two \vboxes in one \hbox, or maybe another solution with two \vboxes)?
It's been a while since I last used Latex, so please bear with me. As the title reads, I'd like to have two signature side by side (50% each) at the bottom of a medical report. This is what I currently have (apparently with slightly changed author names): \flushleft \newlength\jm \settowidth{\jm}{Luke Skywalker} \begin{tabular}{p{\jm}}\hline \centering\footnotesize (Luke Skywalker) \end{tabular} \vspace{10 mm} The force is strong in my family \vspace{5 mm} \flushleft \newlength\mb \settowidth{\mb}{Darth Vader} \begin{tabular}{p{\mb}}\hline \centering\footnotesize (Darth Vader) \end{tabular} And it looks like this in scrartcl: How can Luke stand right next to his father (Luke left, both with underlines) ?
I have downloaded kubuntu-17.04.1-desktop-amd64.iso So on my terminal: lsblk cd ~/Downloads sudo dd if=kubuntu-17.04-desktop-amd64.iso of=/dev/sda bs=4096 But it does not work. I use the same lines above to create flash drive for Kubuntu 16.10 and no problem at all. Why? Is kubuntu-17.04-desktop-amd64.iso that I downloaded corrupted?
How do I make an Bootable Ubuntu USB containing the the latest version of Ubuntu? For completeness, how would I be able to do this on Ubuntu, Windows, OS X or another Linux distro?
I'm having some trouble using lavfi within ffplay to apply filters. I'm simply trying to pad one video, and overlay another video within the padded area. My command and console output is as follows: ffplay -f lavfi "movie=h:\test.mpg,pad=704:770:0:0[padded];movie=h:\test2.mpg[2];[padded][2]overlay=shortest=1:x=0:y=490[1]" ffplay version N-69920-g8bc8001 Copyright (c) 2003-2015 the FFmpeg developers built with gcc 4.9.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca -- enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable- libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enab le-zlib libavutil 54. 18.100 / 54. 18.100 libavcodec 56. 22.100 / 56. 22.100 libavformat 56. 22.100 / 56. 22.100 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 11.100 / 5. 11.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 [Parsed_movie_0 @ 0000000000399480] Failed to avformat_open_input 'd' [lavfi @ 0000000000396a60] Error initializing filter 'movie' with args 'd:test.mpg' movie=d:\test.mpg,pad=704:770:0:0[padded];movie=d:\test2.mpg[2];[padded][2]overlay=shortest=1:x=0:y=490[1]: No such file or directory To simplify things, I get the same error when I try and simplify the command dramatically to: ffplay -f lavfi "movie=d:/test.mpg" I'm hoping that I'm simply using the wrong syntax to specify the files location here within lavfi.
I'm trying to watermark a video with another video placed in a different folder. Source video [video.mov] is placed in a folder like x:\test1\ Overlay video [overlay.mov] is placed in x:\test2\ I'm using this command: ffmpeg.exe -y -i x:\test1\video.mov -vf "movie=x:\test2\overlay.mov [watermark]; [in][watermark] overlay=0:0 [out]" x:\test3\video_overlay.mov But I'm getting an error saying Missing key or no key/value separator found after key 'test2overlay.mov' When placing all files in the same folder and using this: ffmpeg.exe -y -i video.mov -vf "movie=overlay.mov [watermark]; [in][watermark] overlay=0:0 [out]" video_overlay.mov everything works fine. So how do I get the video filter to load the overlay file from a different folder on Windows?
I have a shapefile with following projection information: PROJCS["kl2",GEOGCS["kl3",DATUM["D_Everest_1830",SPHEROID["Everest_1830",6377299.36,300.8017]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Polyconic"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",76.5],PARAMETER["Latitude_Of_Origin",8.5],UNIT["Meter",1.0]] How can I convert this datum to WGS 1984?
I got sample shapefiles with the following *prj file content: PROJCS["RGF93_Lambert_93",GEOGCS["GCS_RGF_1993",DATUM["D_RGF_1993",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",700000.0],PARAMETER["False_Northing",6600000.0],PARAMETER["Central_Meridian",3.0],PARAMETER["Standard_Parallel_1",44.0],PARAMETER["Standard_Parallel_2",49.0],PARAMETER["Latitude_Of_Origin",46.5],UNIT["Meter",1.0]] Trying to convert the projection using the shp2pgsql command shp2pgsql -s 4326 kept the original projection and didn't convert it as requested. I also check spatial_ref_sys table srtext field for similar known projection unsuccessfully. How can I convert it to WGS 84 projection?
I am trying to create a copy of object a, without having to manually enter its property's into object b. In this code, b simply refers to a. I want to create a new version of a, so that when I add a property to b, it is not visible through a. var a = new Object(); // create an empty object var b = a; // now b refers to the same object b.test = 1; // add a new property to b alert(a.test); // => 1: the new property is also visible through a a === b; // => true: a and b refer to the same object
What is the most efficient way to clone a JavaScript object? I've seen obj = eval(uneval(o)); being used, but . I've done things like obj = JSON.parse(JSON.stringify(o)); but question the efficiency. I've also seen recursive copying functions with various flaws. I'm surprised no canonical solution exists.
Suppose $f(x)=\dfrac{4^x}{4^x+2}$ and prove that $$f\left(\dfrac{1}{1997}\right)+f\left(\dfrac{2}{1997}\right)+\ldots+f\left(\dfrac{1996}{1997}\right)=998.$$ I tried to do the problem but I could not get started. Substituting the value of $x$ seems to be too lengthy.
If $$f(x) = \frac{4^x}{4^x+2} $$ then find the value of $$f\left(\frac{1}{1999}\right) + f\left(\frac{2}{1999}\right) + f\left(\frac{3}{1999}\right) +\cdots+f\left(\frac{1999}{1999}\right).$$ I tried it by changing expression to $$f(x) =1 - \frac{2}{4^x+2}$$ but I am not able to cancel any term. Is there is any other trick to do it? Thanks in advance.
I want to write a bash script that prints some information to the terminal STDOUT. For better readability and structure, I would like to color the different items and highlight them this way. Now, is there a Bash equivalent to the Windows-CMD/DOS command COLOR which sets the currently used background and font color? And how do I reset the color back to the terminal default after finishing my script? Edit: I have read , but only some answers are written in Bash so that they can be easily included in my script. Besides this, the answers there lack the following points I want: change background color display white foreground color, the default color set in gnome-terminal gets displayed instead (which is neon green for me) make all available colors accessible somehow, not only a small subset by keywords. I could imagine e.g. some kind of RGB encoding to pass as function argument for easily specifying a color.
I'm a bit new to bash scripting, and I'm wondering if there is a program or built-in command to pipe to that will print in a specified color? Or is there an echo argument to do so? Like I could do: echo Hi | commandhere -arguement blue and it would print "Hi" in the color blue?
I learned that $$\sum \limits_{i=1}^n i(i+1) = \frac{n(n+1)(n+2)}{3}$$ or in general $$\sum \limits_{i = 1}^n i(i+1)(i+2) \dots (i + k) = \frac{n(n+1)\dots (n+k+1)}{k+2}$$ From a mathematical standpoint why is this true? I'm not asking for inductive proof. I am asking if you only given the left hand side, how would you go about writing a closed form expression for the sum?
Considering the following formulae: (i) $1+2+3+..+n = n(n+1)/2$ (ii) $1\cdot2+2\cdot3+3\cdot4+...+n(n+1) = n(n+1)(n+2)/3$ (iii) $1\cdot2\cdot3+2\cdot3\cdot4+...+n(n+1)(n+2) = n(n+1)(n+2)(n+3)/4$ Find and prove a 'closed formula' for the sum $1\cdot2\cdot3\cdot...\cdot k + 2\cdot3\cdot4\cdot...\cdot(k+1) + ... + n(n+1)(n+2)\cdot...\cdot (k+n-1)$ generalizing the formulae above. I have attempted to 'put' the first 3 formulae together but I am getting nowhere and wondered where to even start to finding a closed formula.
covers individual Muggle-Born, but this is about multiple in the same family. For instance, Collin Creevey introduces himself to Harry as a Muggle-Born in Chamber of Secrets, saying "I'm muggle-born, you see. My dad is a milkman. I would love to send a picture of us home to them to prove I've met you." Though I cannot recall the source, I have read that two muggle-borns in the same family are so rare that it is nearly impossible. Dennis and Collin Creevey, being brothers, are both muggle-born from the same family. Are they just a rare case or is there something else I am missing?
How common is this and how quickly would the magical ancestry show in a Muggle family?
In the spirit of: The same should be done for comments by the offending author for that post as well. If the post was considered spam or offensive, what possible redeeming quality could the comments of that post by that same user have? If such a comment was useful enough, then the post could have been edited into shape and possibly saved. But if the community went through with it and got the post deleted, then it's unlikely the comments would be considered constructive or have any use. Maybe take into account that the user account was deleted too? (SO 10k, comments have been purged now) Yeah it's not visible to most of the public... but it's just a minefield for 10k users.
Well, this is annoying. Last night some idiot who'd managed to earn the association bonus for his activity on Stack Overflow decided it'd be a brilliant idea to create accounts all over the network and post dozens of comments on other people's posts asking them to take some survey. Ok, no big deal, suspend him and destroy all these bogus accounts, taking the comments with them. ...oh. Turns out destroying an account doesn't delete the comments. Given the description reads "all content", I'm considering this a bug. Steps to reproduce Find a user that has commented somewhere. Destroy it. Note that the comments still exist. Suggested resolution Since destroying an account already deletes all posts associated with that account (implicitly taking the comments with them), all that's really necessary here is to remove any comments that might remain on 3rd-party posts. So, do that.
I have a list array named "list". I need to convert this list into a hex string. I tried the code below but it hasn't worked. var list = objIPLayer.Udp.Payload.ToList(); string hex = BitConverter.ToString(list); I got this error: The best overloaded method match for 'System.BitConverter.ToString(byte[])' has some invalid arguments** when executed the following code. string hex = BitConverter.ToString(list); Is there any method to do this?
How can you convert a byte array to a hexadecimal string, and vice versa?
I have a site that ranks #1 on Google for a specific keyword on mobile. On desktop, it ranks #3. What are the likely considerations I need to be aware of to try and bump up my desktop ranking? Thanks for any insight. Joe
What are the best ways to improve a site's position in the Google search results?
For a polar representation of a complex number, why the principal argument is to be considered in $(-\pi, \pi]$ or how can it arise? I read some books where they just maintained it, but they don't give any reason. Also I read in where they maintain: Some authors define the range of the principal value as being in the closed-open interval $[0, 2\pi)$, but why? Further I search in and get two same problems(links are , ). But i am not satisfied with such comments only. I expect for a detailed explanation. My special focus is how did it assumed. Any help is highly appreciated.
Why the principal value of complex number argument is taken within $(-\pi,\pi]?$ What is the harm in considering similar other intervals like $[0,2\pi)$ for the purpose?
Do we need "to be"(or a form of 'to be') before adjectives? For example: I want my hair black. I want my hair to be black. This is ready to publish. This is ready to be published. I would like this short. I would like this to be short. Would you tell me which of each pair is correct and explain the syntax behind it, please. Thank you.
If you have a more illustrative title, feel free to change it. I searched but I couldn't find one. This may be an easy and trivial question; if so, I am sorry. What are the differences between these two sentences? These two guys seem to be inseparable. These two guys seem inseparable. I can intuitively say that the latter one is grammatically wrong. Could you please explain? EDIT: What I think is John Lawler's and FumbleFingers' answers are worth to read. The reason why I noted that someone who wants to learn the answer of this question, accidentally misses FumbleFingers' answer.
How wide is the learning gap between completing first and second/second and third/etc problems?
This is a question about studying for the Putnam examination (and, secondarily, other high-difficulty proof-based math competitions like the IMO). It is not about the history of the competition, the advisability of participating, the career trajectories of former participants, or other such things. This is a question about how one can most effectively prepare to do well. Many such questions have been asked before on this site. The answers, while helpful, all seem to boil down to recommendations of the same standard canon of books with the encouragement to do more problems. This is very good advice, but I want to approach the topic from a different angle. We have a wealth of talent on this website, and in particular many users who have done quite well at these competitions. I would like to hear their personal stories. In particular, how did you prepare, and what kind of time commitment did you put forth? And advice, especially practical study tips, is always welcome. :) edit: Also, it seems to me that the majority of people who do very well at the Putnam had developed the majority of their skill in high school, and focused mainly on their classes in college (while attending whatever Putnam seminar their college offered). I would appreciate comments on this matter too. (Motivation: It seems to me like the role of talent is vastly overestimated in mathematics, and in mathematics competitions in particular, to the point where the Putnam exam gets used as a sort of pseudo-IQ test. Of course the people who do well have gifts, but it also seems that, without fail, they all have a history of doing many hours of mathematics a day for years on end. For example, I recall reading an interview with Tao where he admitted his childhood consisted of nothing but math and computer games. I am trying to gather some evidence on this matter [and advice for Putnam preparation!]. Please keep the answers focused on the actual question, though.)
I am an international student. I already finished my program and I am waiting to start my OPT. My I20 already expired and I am waiting for my EAD Card. I have a US valid Driver License. Can I travel to Puerto Rico?
I am in the US as a student. I came on a tourist visa and changed to F1 status. This means that I do not currently have a valid visa in my passport, although I do have a valid I20 and my SEVIS record is fine. According to I should be fine for traveling to Puerto Rico, but my school agent says this is risky. She told me that despite the fact that I should be able to go, immigration does spot checks in the Puerto Rico airport and that if an agent stops me, I shouldn't count on them knowing this. They might just look at my passport, see that I have no visa, and I would end up deported. I know that people in my situation sometimes go to Puerto Rico with no problems, but this would be a terrible thing if it happened and I don't want to risk it even in the chance is small. Is she right that there's a small chance this could happen?
I'm trying to make changes to the Android framework as a part of a project. As ambitious as it sounds, I want to flash a Nexus S with an Android 5 image. Can this be done, or is there a limit to the Android version supported by a device?
As per the title, what hardware do I need to be able to run various versions of Android?
I would like to know if there are practical ways of sharing latex texts for review with people that are not familiar with latex. Currently I use pygmentise: pygmentize -f html -O full -o ./header-analysis-2015.doc ./paper-contents.tex The nice thing about e.g. MS Word is that it syntax highligts the document automatically, such that the reviewer is not destracted by the latex code.
Context: I prepare my scientific documents using LaTeX and compile to a PDF. I often need to seek comments on drafts from collaborators who do not use LaTeX. Most of these collaborators use Windows OS. Assume also that the collaborator does not need to edit the document. They only need to be able to add comments to the document. Most would be familiar with the commenting system in MS Word, for example. I'd like to be able to give the collaborator some clear instructions about what software and system they should use to comment on the draft. This should involve free software and an easy to use interface. Question: What is a good strategy for getting comments on draft documents when the collaborator does not know LaTeX? Initial thoughts: I know Adobe professional allows you to add comments to a PDF. However, some collaborators don't have this software and it costs money. I could send the raw LaTeX to the collaborator. However, given all the markup, the collaborator may find LaTeX source a bit mysterious. UPDATE: After posting I noticed to a similar question. Along with a number of other good tips (such as printing and getting paper comments), he mentions jarnal, xournal, and gournal as free cross-platform PDF annotators. I'd be curious to know whether experts have found them adequate for the above mentioned purpose and whether any of them are to be preferred. Others mention FoXIt. And yet others discuss the option of exporting to MS Word or Open Office and using the reviewing system within these programs.
Looking for a way to crowd-source polygon creation on Google Maps (in a wiki environment) that doesn't involved ESRI's expensive server software. Requirements: a bunch of different wiki pages can be updated with a map showing a single polygon. all the polygons over the entire site are combined into one master map preferably everything in KML so Fusion Tables can be involved for styling, but not necessary Any ideas?
I am looking at collecting spatial information from a range of stakeholders to identify opportunities within a landscape. However, the data that we are collecting are not presently mapped and so we wish to use an interactive method to get this information onto a map. Which online websites/methods would people recommend for circulating to a non-technical audience to try and get them to map what they know? Where the emphasis is on ease of use by the stakeholder.
I need to prepare a manuscript according to APA 6th style. I tried using the apa6 class and biblatex for document style and references respectively. The citations within the contents are not coming out properly, and the bibliography is not printed (despite using the \printbibliography command). Please advise what is wrong. My code is given below: \documentclass[12pt,biblatex]{apa6} \usepackage[british]{babel} \DeclareLanguageMapping{british}{british-apa} \usepackage{filecontents} \begin{filecontents*}{soccer.bib} @book{kuper2012, title={Soccernomics: Why England Loses, why Spain, Germany, and Brazil win, and why the US, Japan, Australia, Turkey - and even Iraq - are destined to become the kings of the world's most popular sport}, author={Kuper, Simon and Szymanski, Stefan}, year={2012}, publisher={Nation Books, New York} } \end{filecontents*} \addbibresource{soccer.bib} \begin{document} Soccer is one of the most popular sports in the world \parencite{kuper2012}. \printbibliography \end{document}
I've browsed the forums and found a number of posts that have addressed this issue, but none of the solutions seem to work for me. I have the following script that I just copied from the bibtex home page to get familiar with it. Instead of the citation number I get a question mark. I compile using Latex+Bibtex+Latex+Latex+PDFLatex+ViewPDF just as has been previously suggested and the problem persists. \documentclass[11pt]{article} \usepackage{cite} \begin{document} \title{My Article} \author{Nobody Jr.} \date{Today} \maketitle Blablabla said Nobody ~\cite{Nobody06}. \bibliography{mybib} \bibliographystyle{plain} \end{document} My bibliography (Bib.bbl) @misc{ Nobody06, author = "Nobody Jr", title = "My Article", year = "2006" } Looking at previous posts one thing that is concerning is that my .bbl looks empty as shown below. Further, I don't have a .blg \begin{thebibliography}{} \end{thebibliography}
I just added a new SSD to my laptop. I installed Windows on it, and booted into Windows, and all is good. Then I installed Ubuntu 14.04 on my second SSD, rebooted, and no GRUB menu appeared! I installed some updates, rebooted again, then did sudo update-grub, which gave me this: Generating grub configuration file ... Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported. Found linux image: /boot/vmlinuz-3.16.0-39-generic Found initrd image: /boot/initrd.img-3.16.0-39-generic Found linux image: /boot/vmlinuz-3.16.0-30-generic Found initrd image: /boot/initrd.img-3.16.0-30-generic Found memtest86+ image: /boot/memtest86+.elf Found memtest86+ image: /boot/memtest86+.bin done Still no Windows found! I can see the drive with Windows installed, because it is auto-mounted when I log in. WTH is going on and how do I fix it? Here is the output of lsblk. My Windows install is on sdc, and the drive mounted to /windows is a big NTFS drive for media. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 111.8G 0 disk └─sda1 8:1 0 111.8G 0 part / sdb 8:16 0 698.7G 0 disk ├─sdb1 8:17 0 668.9G 0 part /windows └─sdb2 8:18 0 29.8G 0 part sdc 8:32 0 223.6G 0 disk └─sdc1 8:33 0 223.6G 0 part /media/chris/920E78CD0E78ABBB sr0 11:0 1 1024M 0 rom
I installed Windows on my computer, followed by an installation of Ubuntu. However, now I'm unable to boot into my Windows install. What can I do to fix this?
This year, I finally made the switch to Ubuntu Linux. * One of my elves (who knows a thing or two about computers) helped me migrate from my old Windows Me computer to a newer machine with Ubuntu installed. I don't know anything about databases or spreadsheets or anything like that. I used to use Notepad to keep track of who's been naughty or nice. My elf friend recommended gedit as a replacement for Notepad (elves like Gnome for some reason...) and I was able to open and edit the files (naughty.txt and nice.txt) no problem. As I was checking my email this morning, I encountered the following message: Naturally, I copied-and-pasted the command into a terminal and ran it. It asked for my password, which I carefully entered. After a few minutes, everything stopped working. My elf friend came over and muttered something I couldn't understand and quit his job on-the-spot. So now Santa is stuck. Can you please help me recover the lists? Time is starting to run out since I need the files back by December 24. Anything would be appreciated. In exchange for assistance, I am willing to accept removal requests for the naughty.txt list. * If I'm going to represent charity to the world, I ought to reflect that in my choice of operating system, no?
I normally dual-boot with 12.04 and Win XP pro sp3 on a Thinkpad R60. I needed to reinstall windows because of problems piling up, so I ran the computer's built-in hard-disk recovery software. I told it not to mess with the other partitions, but somehow it deleted the Linux partition. That's what I was using to backup all of my windows files, so now everything I have is gone. I just ran the USB setup with linux, and the partition is deleted - it just shows it as empty space. Is there ANY way to get all of my files back?
I'm using tufte-book and would like to define and environment that is fullwidth but also align-ed (from amsmath). I've tried doing this with \newenvironment{walign}{ \begin{fullwidth}\begin{align} }{ \end{align}\end{fullwidth} } and this visually seems to work, but the compiler throws compilation errors; LaTeX Error: \begin{align} on input line 35 ended by \end{walign}. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.37 \end{walign} Your command was ignored. Type I <command> <return> to replace it with another command, or <return> to continue without it. main.tex, line 39 LaTeX Error: \begin{list} on input line 35 ended by \end{document}. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.39 \end{document} Your command was ignored. Type I <command> <return> to replace it with another command, or <return> to continue without it. Minimal working example; \documentclass[ a4paper, nofonts, justified ]{tufte-book} \usepackage{amsmath} \newenvironment{walign}{ \begin{fullwidth}\begin{align} }{ \end{align}\end{fullwidth} } \begin{document} This paragraph and the below \texttt{align} environment are regular-width, and leave space for a margin notes column to the right. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vel facilisis volutpat est velit egestas dui id. Tempor nec feugiat nisl pretium fusce id. Venenatis tellus in metus vulputate eu. Quam elementum pulvinar etiam non quam lacus. Facilisi cras fermentum odio eu feugiat pretium nibh ipsum consequat. Sed lectus vestibulum mattis ullamcorper velit sed ullamcorper. \begin{align} Z_\theta &= \sum_{\tau \in T} q(\tau) e^{R(\tau)} \end{align} \begin{fullwidth} This paragraph and the below \texttt{align} environment are full-width, and bleed into the margin notes column. Magna eget est lorem ipsum dolor sit amet. Enim eu turpis egestas pretium aenean pharetra magna. Massa placerat duis ultricies lacus. Cras ornare arcu dui vivamus arcu. Urna molestie at elementum eu facilisis sed odio morbi. Odio ut sem nulla pharetra diam sit amet nisl. Eu facilisis sed odio morbi quis commodo odio aenean. Mi tempus imperdiet nulla malesuada pellentesque elit. Id aliquet lectus proin nibh. Pulvinar sapien et ligula ullamcorper malesuada proin. \begin{align} Z_\theta &= \sum_{\tau \in T} q(\tau) e^{R(\tau)} \end{align} \end{fullwidth} I would like to define a custom environment `\texttt{walign}' that creates a \texttt{fullwidth}, \texttt{align}-ed environment, but doing so with \verb+\newenvironment{}{}+ gives compilation errors whenever I use the environment; \begin{walign} Z_\theta &= \sum_{\tau \in T} q(\tau) e^{R(\tau)} \end{walign} \end{document} What is the correct syntax / usage of the \newenvironment{}{} command?
In the example below, an error is caused by \begin{align} and \end{align} but I do not see why: \documentclass{book} \usepackage{amsmath} \newenvironment{subalign}{\begin{subequations}\begin{align}}{\end{align}\end{subequations}} \begin{document} \begin{subalign} a&=b\\ &=b \end{subalign} \end{document}