body1
stringlengths
20
4.1k
body2
stringlengths
23
4.09k
1st, I added a shapefile with projected coordinate system SL_grid_99 to Table of contents. 2nd, I added my points (excel file) to the table of contents. I displayed XY data and exported point data as shapefile. This is the coordinate system for the points: It seems that both, point and polygon, have the same coordinate system. However, they are not lining up. As can be seen in the map, the points are in the lower left-hand corner: How can I make the points and polygon line-up?
I put 4 different layers into my ArcMap document, but only one of them will show up on the map! I should be seeing the other 3 layers as well. When I do a Zoom to layer, I can see one layer, but I cannot figure out how to make the other 3 show up at once on top of each other. Before I opened ArcMap, I used ArcCatalog where I right-clicked 3/4 of the shapefiles and clicked Properties → Coordinate system → Import and then clicked on my Trees layer, which has the coordinate system I want the other 3 to have. But when I opened ArcMap the 4 layers did not overlap, nor could I move them above or below each other.
I just came across an exercise, however I don't know how to find the limit of $$\lim_{n \to \infty} \frac{2^n}{n!}$$ can any body help? Of course this is not homework, I'm only trying out example myself, from page 38. I know that the limit exists, and it is $0$, checked it in on the wolfram, but I don't know how to solve it. thanks in advance!
Why is $$\lim_{n \to \infty} \frac{2^n}{n!}=0\text{ ?}$$ Can we generalize it to any exponent $x \in \Bbb R$? This is to say, is $$\lim_{n \to \infty} \frac{x^n}{n!}=0\text{ ?}$$ This is being repurposed in an effort to cut down on duplicates, see here: Coping with duplicate questions. and here: .
I have a problem with my account 1 day ago I changed my password and than I forgot my password. I check some solution in many website and I found something as follow: Enter to grub and selected Advance option for Ubuntu. Selected Ubuntu,with Linux\ 3.8.0-11-generic (recovery mode) Than I selected root Drop to root shell prompt Then I write these commands mount -rw -o remount / Then sudo passwd -u (my account username) Then passwd (my account username) Then vi /etc/lightdm.conf Then greater-show-manual-login=true And I saved the new configuration but, after restart I was unable to login when I logged in and add my password there was a flash black screen and I was back to the greeting screen? please tell me the solution
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
Thor hammer cannot be lifted by anyone except Thor but in movie Avengers: Age of Ultron, vision lifted the hammer (Mjolnir) of Thor not any other avengers even when all the avengers are strong?
In some scenes in Avengers: Age of Ultron Iron man, War Machine, and Captain America try to lift Thor’s hammer but they end up failing. At some point Vision lifts it easily. How can Vision lift it?
I am so confused as to what is happening. I have a Java application for android and am having trouble with one if statement. The if statement is within a for loop that is looping through an ArrayList of objects that I have created earlier in the code. Each object has a type variable which is a string and a method to access the variable. In the for loop I printed out the variable for each object to check what it is, and it prints out "0" as a string. I then check it with an if statement within that for loop stating, if b.getType() == "0", and while I know that it is for sure 100% that the statement is true, it will not run the code within made sure by the fact that I had it print out the word "true" if it ran the code. I have no idea what is happening. public Level(String level, Bitmap[] images){ String[] types = level.split(" "); this.images = images; int x = 60; int y = 48; for(int i = 0; i < 276; i++){ //creates new block objects based on the text file blocks.add(new Block(x, y, types[i])); x += 32; if(x >= 796){ x = 60; y += 32; } } } This is where I initialized the objects, passing in a string value of type to the block object. public void draw(Canvas canvas){ for(Block b: blocks){ //loops through the blocks and draws them to the canvas System.out.println(b.getType()); if(b.getType() == "1"){ System.out.println("true"); canvas.drawBitmap(images[1], b.getX(), b.getY(), null); } } } This is the block of code that is being run and is causing me much trouble. public class Block { private int x; private int y; private String type; public Block(int x, int y, String type){ this.x = x; this.y = y; this.type = type; } public int getX(){ return x; } public int getY(){ return y; } public String getType(){ return type; } } I/System.out﹕ 0 This is the block class where type is stored. Below is what is printed out as it says in System.out.println(b.getType()); Much help would be appreciated.
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?
How should I convert historic local time to UTC taking into account of daylight saving? The main problem is the daylight saving doesn't occur at a fixed period every year and hence I cannot think of a way to do this task.
I currently use the following to get a local datetime from a UTC datetime: SET @offset = DateDiff(minute, GetUTCDate(), GetDate()) SET @localDateTime = DateAdd(minute, @offset, @utcDateTime) My problem is that if daylight savings time occurs between GetUTCDate() and @utcDateTime, the @localDateTime ends up being an hour off. Is there an easy way to convert from utc to local time for a date that is not the current date? I'm using SQL Server 2005
There was a homework about inequalities (that why I ask a bunch of inequality problems). But I couldn't solve the following: If $0<a,b,c<1$ and $a+b+c=2$, prove that $8(1-a)(1-b)(1-c)\le abc$ I tried many times, and finally I used Muirhead, but it failed! $\begin{split}L.H.S.-R.H.S.&=8(1-a)(1-b)(1-c)-abc\\&=8-8(a+b+c) +8(ab+bc+ca)-9abc\\&=-(a^3+b^3+c^3)+(a^2b+b^2c+c^2a+ab^2+bc^2+ca^2)-3abc\\&=\frac{1}{2}\Bigg(\sum_{sym}a^2b-\sum_{sym}a^3\Bigg)+\frac{1}{2}\Bigg(\sum_{sym}a^2b-\sum_{sym}abc\Bigg)\end{split}$ But as $(3,0,0)$ majorizes $(2,1,0)$ but $(2,1,0)$ majorizes $(1,1,1)$, so it fails. Could someone help? Any help is appreciated!
Let $a$, $b$, and $c$ be positive real numbers such that $a+b+c = 1$. Then how to establish the following inequality? $$ (1-a)(1-b)(1-c) \geq 8abc.$$ My effort: Since $a+b+c =1$, we can write $$ (1-a)(1-b)(1-c) = 1 - (a+b+c) +(ab+bc+ca) - abc = 1 - 1 +(ab+bc+ca) - abc = (ab+bc+ca) - abc = abc(a^{-1} + b^{-1} + c^{-1} ) - abc = 3abc (\frac{a^{-1} + b^{-1} + c^{-1}}{3}) - abc.$$ What next?
For a charged particle moving in free space, we can say from the homogeneity of space-time, that it moves along a geodesic. Is there an analogous principle for the evolution of the electromagnetic field in space-time?
Considering the fact that electrons tend to take the maximum conductance path to flow from A to B. This is justified by saying that $\vec{E}$ is larger in conductors. But once similarly it was thought for gravitation, that if in a region the gravity was stronger, the mass more likely took that path, then later it was found it is actually a geodesic in space time as gravity curves space time. So is there some underlying geodesic for motion caused by electromagnetic force?
Is there a way to make a certain word bold every time in comes in the document? Thanks.
Is it possible and furthermore constructive to make LaTeX automatically format specific words in specific way? Let's say, for example, I'd like to have every occurrence of the word "hello" in a bold cyan monospaced font, whereas the rest of the document remains normal, sans serif and black. How can I achieve that without having to do a search&replace to place "hello" into a custom command every time before I compile the .tex file?
How should I decide if the following sequence is convergent or divergent? $$a_n = \frac{\sum\limits_{k=1}^{n} \frac{1}{k}}{\log n}$$ I would appreciate any approach. Thanks. I was misunderstood series and sequence so I edited the post accordingly.
I'm not completely new to convergent series and sequences, but proving the above gave me some troubles. Would appreciate some help :) Show that: $$\lim_{n\to\infty} \frac{\sum\limits^n_{k=1} \frac{1}{k}}{ \ln(n) } = 1$$
A physics student is currently enrolled in a PhD program in the US, 1.5 years into yet. After few months he will have received his MSc degree and will start working on his thesis. While his physics department is relatively strong, he is unhappy (perhaps even disappointed) because his very sub-field of interest is particularly weak and researchers in this sub-field very rarely publish decent papers. He's seriously considering starting again from scratch and apply for a new place where people are stronger at his field. Can he apply while still being enrolled in his PhD? How much negativity does the fact that he plans to drop the current PhD add to his application? Is it better to apply to UK universities, since in US he will be required to repeat the coursework?
I've heard of people transferring between graduate schools because of their advisor moving to another school and taking their students with them. Do students ever transfer for other reasons? If a student isn't happy at the school they choose, could transferring be an option? Presumably they would frame it as something positive such as "turns out I really want to work with Professor X" rather than "I hate my school", but does this ever happen? Is there a certain timeframe in which this is possible? (Assume it's a 5 year PhD program.) If the answer varies by subject please mention the subject in your answer. (Context: many friends have told me that if it turns out I'm not happy with my choice, I can always transfer. My impression is that this is actually difficult since many schools don't accept transfer students and in any case not being able to stick with a program looks bad -- but I don't have evidence either way so wanted to ask people who are in academia. Of course the ideal would be to pick a school one is happy with in the first place!)
I had the idea, to make a custom card game based off an Anime i like. I was wondering if it would be legal to have such printed out (using a custom card/board game service) for personal use. I would only play it with friends and not make any money off of it.
I've played around in the past of the 2D Flash fan-made version of the popular Valve game Portal. It has basically the exact same mechanics, but as a 2D side-view flash game. Lately I've toyed around with creating a simplified flash version of some of my favorite franchises (such as Zelda, Mario, Splinter Cell, etc.). Of course, nothing is "stopping" me from just using the same mechanics and just changing the name to something not copyrighted. I have witnessed projects that have tried to directly port a 3D game into a 2D simplified version, with the exact same plot and puzzles (Ocarina of Time in 2D comes to mind), and I have seen them being shut down. But I am not likely going to exactly duplicate any game...just borrow some of the source material and basic underlying mechanics. For example, if I were to make a Zelda-influenced fan game, I would have items such as the Hookshot, Boomerang, and all other sorts of ones from the Gameboy Zeldas; just with a custom plot and dungeons. With likely the same mechanics. What are the legal issues involved in this? I used to think it was a "Don't do this ever; it's a bad idea." But then I've seen the Portal clone, and now I'm curious.
So, I am but a semester away from graduating from college as a Computer Programmer in Canada. All is well in the grades department - I've completed all assigned work and maintained a ~4.0 GPA throughout the course of my studies. However, I still feel anxious and have a sense that I'm entering the workforce without the base skill-set requisite for success. Is it commonplace for students to feel lost and/or potentially inadequate prior to graduation? Are these types of thoughts and feelings common among new graduates?
I am a third year (starting fourth year in the fall) PhD student in mathematics. I've passed all qualifying exams and am currently doing research. As far as I can tell, I am not doing poorly. I have the good fortune of having a great advisor, being in a very supportive department, and having friends and family who genuinely care about my success. The fact is research is hard. It appears to consist primarily of staring at a problem for days and days and days without getting anywhere. Sometimes, rarely, I do figure something out and that feels wonderful, but the overwhelming majority of my time appears to be spent banging my head against a mostly figurative wall. I am not complaining about the material being hard, and I am not averse to putting in hard work, but I get frequently discouraged when I realize the vast volumes of mathematics that I yet know nothing about (and probably never will). It's very hard to quantify progress - in particular, there are too few tangible returns after too many hours worked. I find myself thinking along the lines of "Oh, if only someone actually smart were thinking about this problem they would have solved it in moments" and so on. I've talked about this to some number of people; here is some advice I have received: Take a day off. Putting in hours upon hours of trying things doesn't magically lead to a solution, particularly if the brain is tired and just wants to sleep. Have a hobby. Since math research doesn't exactly provide instant gratification, a hobby might provide some instead. Talk to other graduate students. Realize that many graduate students go through this. I'm interested to know how other folks have dealt with being discouraged as a graduate student. Does it get better with time and experience? Is this a sign that research is not for me and that I should seriously consider a life outside academia?
I am traveling from Delhi to Kiev( Ukraine) via Vienna. Do I need a transit Visa? Transit time is 2 hrs. I hold an Indian passport and Visa for Ukraine.
I am travelling form Delhi (DEL) to San Francisco (SFO), I have to make a connection flight in Vienna that would take me to Frankfurt (FRA). My flight to SFO is from FRA, I have one ticket for entire journey and the flights are operated by Lufthansa or its subsidiaries. Do I need a transit visa? My flight arrives at Vienna international airport and leaves from the same, and for second leg it arrives at Frankfurt international airport. I asked this question as an addendum to my but was advised to make a new post. I hold Indian passport and valid US visa.
We have equivalent symbol \equiv, but how to write unequivalent like this
I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?
I'd like to find out which process is responsible for Unity panel and launcher.. In case I'd like to close one of them, which process to I have to kill? Thanks!
I'm being hit (quite often) by that bug where you can't click on some indicators. It's easy to fix by restarting unity, but that usually also means running to the risk of upsetting some window on re-parenting (rare, but I'd rather avoid any such problems). So, I know there is `unity-panel-service', and I'm guessing this might have something to do with the solution? Is it possible to restart the unity panel (or the entire unity plugin) without restarting compiz itself?
So let’s say I bought a ps4, bought fifa 19, red dead redemption 2 and Spider-Man on my psn account, downloaded the games on my console and can now play the games. And then I decide to transfer my games and other data to my friend who just got a ps4 console. If I sign out of my account and sign into his console to activate the games I had purchased with my psn account. Provided I do not go online with my own console, can I still play these games on the first console (mine)?
Both myself and my boyfriend have PS4s. Can I just get a single PSN account and sign both consoles into the same account, or do I need to get two separate accounts?
I am trying to prove that the set of zero divisors of the ring $\mathbb{Z}/_{b\mathbb{Z}} $ is equal to $\{[x] \in \mathbb{Z}/_{b\mathbb{Z}}: \gcd(x,b)>1\}$. Therefore I started with the set of zero divisors equals: $\{[x] \in \mathbb{Z}/_{b\mathbb{Z}}: cx = db \, \space \text{for some} \space c,d \in \mathbb{Z}\backslash\{0\}\}$. And now to my question: Do we have: $x$ divides $db \implies \gcd(x,b)>1$. If this holds (why/why not?), I would be done.
Let us consider the ring $\mathbb{Z}_n$ where $\bar{m}\in\mathbb{Z}_n$ Could anyone help me prove that $\bar{m}$ is a zero divisor in $\mathbb{Z}_n$ if and only if $m,n$ are not coprime So far I have: Assume $\exists \bar{a}: \bar{m} \bar{n}=n \mathbb{Z} \Rightarrow$ for some $b\in\mathbb{Z}:am=bn$ I then assumed $n,m$ were coprime and attempted to use $\exists a',b'\in \mathbb{Z}:a'm+b'n=1$ to come to a contradiction, however haven't found one, the most promising thing I have found so far is that $a=n(a'b+ab')$ and $b=m(a'b+ab')$ $\Rightarrow n|a$ and $m|b$
[ I need to be able to represent these symbols, how would I do this? thanks
I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?
Power sum is given by $$ 1^m + \cdots + n^m = \frac1{m+1} \sum_{k=0}^m (-1)^k \binom{m+1}kB_k n^{m+1-k}$$ and negative zeta values are given by $$\zeta(-m) = (-1)^n \frac{B_{m+1}}{m+1}$$ But heuristically, $\zeta(-m) = 1^m + 2^m + \cdots $. So it feels as if taking $\lim_{n \rightarrow \infty}$ in the power sum formula should give us the negative zeta value. All this is obviously mathematically not rigorous ($\zeta(s)$ with $\text{Re}(s)\le 1$ must be calculated using reflection formula and taking such limit is impossible). But to me, the occurrence of Bernoulli number in both expressions seems too suspicious for a coincidence. Is it really just a coincidence?
I was messing around with some math formulas today and came up with a result that I found pretty neat, and I would appreciate it if anyone could explain it to me. The formula for an infinite arithmetic sum is $$\sum_{i=1}^{n}a_i=\frac{n(a_1+a_n)}{2},$$ so if you want to find the sum of the natural numbers from $1$ to $n$, this equation becomes $$\frac{n^2+n}{2},$$ and the roots of this quadratic are at $n=-1$ and $0$. What I find really interesting is that $$\int_{-1}^0 \frac{n^2+n}{2}dn=-\frac{1}{12}$$ There are a lot of people who claim that the sum of all natural numbers is $-\frac{1}{12}$, so I was wondering if this result is a complete coincidence or if there's something else to glean from it.
Let $f:\mathbb{R}\rightarrow \mathbb{R}$ be continuous, on-to, and 1-1. Prove that if $A$ is a Borel set, then $f(A)$ is a Borel set.
Suppose $f: \mathbb{R} \to \mathbb{R}$ is a continuous function which is 1-1, then does $f$ map Borel sets onto Borel sets?
I have a WinForms application raising exceptions from code in an EventHandler (E.G. a Button click subscriber); I have a try..catch block around the invocation of the ShowDialog of the Form; The exception does not propagate to the try..catch block, but it just stops at the handler and the Form gets closed. 1) How can I propagate the exception to the block? 2) What is the best practice in these cases? This is a new VS 2010 AddIn probject with a simple Tools menu entry added by the wizard: Public Sub Exec(ByVal commandName As String, ByVal executeOption As vsCommandExecOption, ByRef varIn As Object, ByRef varOut As Object, ByRef handled As Boolean) Implements IDTCommandTarget.Exec handled = False If executeOption = vsCommandExecOption.vsCommandExecOptionDoDefault Then If commandName = "MyAddin1.Connect.MyAddin1" Then Dim form1 = New Form1 Try form1.ShowDialog() Catch ex As Exception MessageBox.Show(ex.Message) End Try handled = True Exit Sub End If End If End Sub The only content of the Form is a button with a static handler raising a "New Exception()". When I click the button, the exception is not caught.
I have a child form that is throwing an ApplicationException in the Load event handler (intentionally for testing purposes). The parent form wraps the ChildForm.Show() method in a Try...Catch ex As Exception block. The catch block simply displays a message and closes the child form. All works as expected when debugged in visual studio 2008 (.net 3.5 sp1). However, when I run it outside of visual studio, the Catch block seems to get missed and an unhandled exception occurs. Any idea why that is? Thank you. Example Code: Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim f2 As Form2 f2 = New Form2 Try MessageBox.Show("Opening form 2") f2.ShowDialog() Catch ex As Exception f2.Close() MessageBox.Show("Form 2 closed.") End Try End Sub End Class Public Class Form2 Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Throw New ApplicationException("Test Form_Load") End Sub Public Sub New() ' This call is required by the Windows Form Designer. InitializeComponent() ' Add any initialization after the InitializeComponent() call. End Sub End Class Stack Trace: System.ApplicationException: Test Form_Load at WindowsApplication1.Form2.Form2_Load(Object sender, EventArgs e) in UnhandledExceptionTest2\WindowsApplication1\Form2.vb System.Windows.Forms.Form.OnLoad(EventArgs e) System.Windows.Forms.Form.OnCreateControl() System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) System.Windows.Forms.Control.CreateControl() System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message&> m) at System.Windows.Forms.ScrollableControl.WndProc(Message&> m) at System.Windows.Forms.ContainerControl.WndProc(Message&> m) at System.Windows.Forms.Form.WmShowWindow(Message&> m) at System.Windows.Forms.Form.WndProc(Message&> m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&> m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&> m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Can someone help me how to write test class for the below trigger. trigger AccountOwnerUpdate on Account (before insert, before update) { Set<Id> accIds = new Set<Id>(); List<Contact> updatedConList = new List<Contact>(); List<Account> accList = new List<Account>(); Map<Id, String> newOwnerIds = new Map<Id, String>(); for(Account acc : trigger.new) { system.debug('entered here'); accIds.add(acc.Id); newOwnerIds.put(acc.Id, acc.Coverage_Lead__c); if(acc.Coverage_Lead__c != NULL) { acc.OwnerId = acc.Coverage_Lead__c; } if(acc.Coverage_Lead__c == NULL){ acc.OwnerId = acc.LastModifiedById; } } for(Account accs : [SELECT Id, LastModifiedById, (SELECT Id, Owner.Id FROM Contacts) FROM Account WHERE Id IN:accIds]) { String newOwnerId = newOwnerIds.get(accs.Id); //String oldOwnerId = oldOwnerIds.get(acc.Id); if(newOwnerIds.get(accs.Id) != NULL) { system.debug('Coverage_Lead__c !='); for(Contact con : accs.Contacts) { con.OwnerId = newOwnerIds.get(accs.Id); updatedConList.add(con); } } if(newOwnerIds.get(accs.Id) == NULL) { system.debug('Coverage_Lead__c =='); for(Contact con : accs.Contacts) { con.OwnerId = accs.LastModifiedById; updatedConList.add(con); } } } update updatedConList; } I am new to test apex so please help me how to write test class for the above trigger. Thanks in Advance.
This is a canonical question and answer developed by the community to help address common questions. If you've been directed here, or your question has been closed as a duplicate, please look through the resources here and use them to shape more specific questions. To browse all canonical questions and answers, including more unit test resources, navigate to the tag. This canonical question is intended to address several classes of common questions by providing a quick summary and links to comprehensive resources: How do I start writing my first unit test? How do I unit test this code? I need help writing this unit test. Salesforce Stack Exchange looks for detailed, specific questions that the community can help you with, and can't write tests on your behalf. We feel that working with the resources below can help you get started, and we encourage you to make an attempt to write your test and return to SFSE with your specific questions when you encounter challenges you can't resolve.
I know git branch has the --contains option that allows us to know what branches contain a certain branch/revision. Is there an option to do the opposite? In other words, provided a branch/revision X, list the branches that are included in its history.... more or less something like I want to get the list of branches that have been merged into main so that I can safely delete them.
I have a git repository with multiple branches. How can I know which branches are already merged into the master branch?
Several of the winterbash hats have criteria that are "non-binding," for example "Witticism" requires 5 upvoted questions. If such a criteria no longer applies, such as an upvoted question or answer getting downvoted later and no longer qualifying for a hat, will the user keep the affected hat or will it no longer be available?
During Winter Bash, users can earn hats. But sometimes it seems that a hat was awarded even though its requirements weren't (yet) met, or vice versa. What could be the reason for this?
I read in and that it does not include accepted answers. However it can be read in 2 ways: The 15 points for accepted answer is not included The upvotes on accepted answer are not included Which way of reading is correct? Could the FAQ be clarified?
On Stack Exchange, users may gain a certain level of reputation. What does reputation do? How can a user gain or lose reputation? See also in the Help Center - Maximum amount of votes a user can use in a day and reputation requirements to vote. - How to get an exact overview of the actions that got you your reputation. - A full list of all privileges granted at each reputation level on all sites.
I am confused with the derivatives of modulus function.
Okay, so $\displaystyle \frac{d}{dx} |x| = \frac{|x|}{x}$. But I have trouble seeing why. Here's what I've tried: $$\frac{d}{dx}|x|=\begin{cases} \frac{d}{dx}x & \text{if }x > 0 \\ \frac{d}{dx}(-x)&\text{if }x < 0 \end{cases} = \begin{cases} \,\,\,\,1 & \text{if }x > 0 \\ -1&\text{if }x < 0 \end{cases}$$ But I do not see how that far-right expression can be used to arrive at $\displaystyle\frac{|x|}{x}$, besides graphing.
I am not sure what the issue is when I enter a box for the first choice a it returns
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?
Let $M=S^2$ then the hairy ball theorem, states that there is no non-vanishing smooth tangent vector field on even-dimensional $n$-spheres. Hence, we can multiply any smooth vector field $v\in\Gamma(TS^2)$ by a function $f\in \mathcal{C}^\infty(S^2)$, which is zero everywhere except where v is, obtaining $fv=0$ despite $f\neq 0$ and $v\neq 0$. Therefore, there is no set of linearly independent vector fields on $S^2$ over $C^{\infty}(S^2)$-module. I think the same argument goes for the vector space over an algebraic field $K$. Moreover we can not express all the vector field as $g = fv$ where $f \in K \text{ and }v,g \in \Gamma(TS^2)$. If I am right does there exist any basis for vector space over the sphere?
Let $M$ be a smooth ($C^\infty$) manifold. Let $\mathfrak{X}(M)$ be a set of all vector fields on $M$ and let $\mathfrak{F}(M)$ be a set of all real smooth functions on $M$. $\mathfrak{X}(M)$ is a real vector space and it is also a module over $\mathfrak{F}(M)$. We know that partial derivatives constitute a basis for tangent space at any point $p\in M$. Is there some sort of basis for $\mathfrak{X}(M)$ (as a vector space or as a module)? Do partial derivatives constitute a basis here as well? I think this question is similar to mine, but because of the way it's written, I'm not really sure I understand the question and I'm not sure we're asking about the same thing.
I am running a Java application and faced an error Out of memory. .hprof file is generated. What do I use to analyse what's in the file? How to read that file? Any suggestion? Thanks in Advance!!!
I have a production server running with the following flag: -XX:+HeapDumpOnOutOfMemoryError Last night it generated a java-38942.hprof file when our server encountered a heap error. It turns out that the developers of the system knew of the flag but no way to get any useful information from it. Any ideas?
There was another alien species that was invading Earth, and the little furry aliens helped us out. I think they liked having sex all the time and ended up having sex with the humans as well.
I read a book when I was young, it was about space alien cats. I believe the title was Quzzles, but I really don't know. The book was stolen from me before I was finished. I don't know much else about it.
I am having trouble with understading how inverse totient function works. I know it can have multiple solutions but I don't understand how to find all of them for bigger numbers. For example how would one approach to problem of solving this equation: ϕ(n) = 180 I do understand that one should represent ϕ(n) by product rule and somehow conclude numbers by combining product rule expression for ϕ(n) to get all numbers n. But it seems as very long process that I don't understand. My question is how I should think when looking at prime numbers expression for ϕ(n) and how should I eliminate some results? I was trying searching other similiar question and I still can't find some general algorithm for solving this problem. Thanks! EDIT: I would like to know how to calculate this problem by hand
Let $\phi(n) $ is the numbers of number that are relatively prime to n. Then, how could we solve the equation $\phi(n) = k, k > 0?$ For example: $\phi(n) = 8 $ I can use computer program to check all numbers that are relatively prime to $n$, but I think there must be an easier way to approach this problem. Base on this formula: $$\prod_{i=0}^{k} p_{i}a^{a_i} $$ The only thing I can see is n must not have a prime factor > 9, otherwise $\phi(n) > 8 $. I really don't know where to start :( ? A hint would be greatly appreciated.
Adobe Illustrator gradients are not smooth. I have tried to export in high resolution, and applying a blur effect to the gradient, but still it is not working. Did I mess up some setting? There seem to be circles in the gradient:
How to get Rid of Banding in illustrator while using Gradient
I used select in if for example : select IF (LEAVETYPE = 1 , (select test1,test2 from TableName),(select test3,test4 from TableName where id = 2) FROM TableName I Wanne Used Select in IF
How do I perform an IF...THEN in an SQL SELECT statement? For example: SELECT IF(Obsolete = 'N' OR InStock = 'Y' ? 1 : 0) AS Saleable, * FROM Product
I recently bought a new SSD for my computer and installed a windows 7 on with a help from my friend. We plugged it in, and set the computer to boot from that version of windows. I'm wondering about what exactly happened to all the programs and games of my "previous" windows? We left it untouched at the original C, which is now F-drive. They don't show up on programs, but their files can be found. Steam, where most of my games are, works after a little trickery, but for example L.A.Noire, a non-steam-game, fails to launch because it "Could not locate game executable on local machine". Because it doesn't show up on removable programs and there's no uninstall file, there is no way for me to remove it, only the files. What happens if I do so to it, or other programs with same situation? Are they really gone? What should I do here?
Changing hard disk with ssd, can I migrate contents so that I can switch drives without a hassle? For instance, keep my Windows configuration and installed programs and documents
I recently decided to dual boot Ubuntu and Windows, but I am unable to see GRUB on system start-up. To remedy this, I tried to install boot-repair, but now I have the error: E: could not get lock /var/lib/dpkg/lock-frontend. It is held by process 3427 (unattended-upgr). I cannot install any software from the command line or use GRUB, so I am concerned.
I'm trying to run this command in the terminal: sudo apt install software-properties-common This is the error message I get: E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
As I understood, this tool normally shows distance in the project CRS units, not the geodetic meters (despite it actually says the distance is in meters). However, (Section III, 4 - Measure some distances) that in the Measure Tool Options you can change the "Ellipsoid for distance calculation": Does it mean it can actually finally compute correct geodetic distance? However, I don't see this option in the QGIS ver 1.9.0-Master.
I am playing a bit around with Qgis 2.14.6 to understand how it deals with distance measurement. I took a line-shapefile that I saved in 3 different coordinate systems (4326, 32642 and a national one that doesn't exist in Qgis yet). Using 32642 and the national one, the length is quite similar (6442m vs. 6428m) But using 4326 (unprojected WGS84), I get 8057m In all cases, I just used the Field Calculator and introduced $length. I was already positively surprised that the result using 4326 was in meters and not in degrees. To calculate the distance on the dataset in 4326, I assume that Qgis does some kind of re-projection in the background. Does anyone know which one? Shapefiles here if anyone wants to play around: EDIT - adding more info after more tests As you can see, now both my shapefile and the project are in EPSG:4326, so unprojected: Here the rough measurement of my shapefile, with the Qgis measure tool: When I use the field calculator, the preview gives me a value in degrees, while the result seems to be in meters: This would mean that the function $length, like the measurement tool, always gives a result in meters, but using a very coarse approximation of the degrees => meters transformation: Is this a bug? or should it really behave like this? I find it at best counter-intuitive (but maybe it's just me) and, at worse, completely misleading (it makes very little sense to use, everywhere on earth, the length of 1 degree at the Equator). Any input or opinion here? Should I open a bug report (at least for the inconsistency between the preview and the actual result)?
The question is to evaluate $$\int \log(1+2m \cos x+m^2) dx$$ when $m > 0$ I noticed that $(1+2m \cos x+m^2)$ can be written as $(1+me^{-x})(1+me^{ix})$ and then I can apply the Taylor expansion of $\log(x)$ but I am not sure if the approach is correct.
For $a\ge 0$ let's define $$I(a)=\int_{0}^{\pi}\ln\left(1-2a\cos x+a^2\right)dx.$$ Find explicit formula for $I(a)$. My attempt: Let $$\begin{align*} f_n(x) &= \frac{\ln\left(1-2 \left(a+\frac{1}{n}\right)\cos x+\left(a+\frac{1}{n}\right)^2\right)-\ln\left(1-2a\cos x+a^2\right)}{\frac{1}{n}}\\ &=\frac{\ln\left(\displaystyle\frac{1-2 \left(a+\frac{1}{n}\right)\cos x+\left(a+\frac{1}{n}\right)^2}{1-2a\cos x+a^2}\right)}{\frac{1}{n}}\\ &=\frac{\ln\left(1+\dfrac{1}{n}\left(\displaystyle\frac{2a-2\cos x+\frac{1}{n}}{1-2a\cos x+a^2}\right)\right)}{\frac{1}{n}}. \end{align*}$$ Now it is easy to see that $f_n(x) \to \frac{2a-2\cos x}{1-2a\cos x+a^2}$ as $n \to \infty$. $|f_n(x)|\le \frac{2a+2}{(1-a)^2}$ RHS is integrable so $\lim_{n\to\infty}\int_0^\pi f_n(x)dx = \int_0^\pi \frac{2a-2\cos x}{1-2a\cos x+a^2} dx=I'(a)$. But $$\int_0^\pi \frac{2a-2\cos x}{1-2a\cos x+a^2}=\int_0^\pi\left(1-\frac{(1-a)^2}{1-2a\cos x+a^2}\right)dx.$$ Consider $$\int_0^\pi\frac{dx}{1-2a\cos x+a^2}=\int_0^\infty\frac{\frac{dy}{1+t^2}}{1-2a\frac{1-t^2}{1+t^2}+a^2}=\int_0^\infty\frac{dt}{1+t^2-2a(1-t^2)+a^2(1+t^2)}=\int_0^\infty\frac{dt}{(1-a)^2+\left((1+a)t\right)^2}\stackrel{(*)}{=}\frac{1}{(1-a)^2}\int_0^\infty\frac{dt}{1+\left(\frac{1+a}{1-a}t\right)^2}=\frac{1}{(1-a)(1+a)}\int_0^\infty\frac{du}{1+u^2}=\frac{1}{(1-a)(1+a)}\frac{\pi}{2}.$$ So $$I'(a)=\frac{\pi}{2}\left(2-\frac{1-a}{1+a}\right)\Rightarrow I(a)=\frac{\pi}{2}\left(3a-2\ln\left(a+1\right)\right).$$ It looks too easy, is there any crucial lack? $(*)$ — we have to check $a=1$ here by hand and actually consider $[0,1), (1,\infty)$ but result on these two intervals may differ only by constant - it may be important but in my opinion not crucial for this proof.
In abstract algebra we define $\mathbb{Q}(\sqrt{2})$ to be the smallest field that contains $\mathbb{Q}$ and $\sqrt{2}$. In the most of textbox they usually write that this is. $$\mathbb{Q}(\sqrt{2}) = \{a+b\sqrt{2}\mid a,b\in \mathbb{Q}\}$$ But can I prove that this is the smallest field that contains $\mathbb{Q}$ and $\sqrt{2}$.?
This was an assertion made in our textbook but I have no idea how to show that either statement is true. Also would like to show that that $\mathbb{Q}(\sqrt{2})$ is strictly larger than $\mathbb{Q}$, which was the second part of the assertion.
white-space bug at bottom of page! happening on every page on meta.SE that I've tried!
I just noticed that here on meta the footer doesn't stick to the bottom of the page, I know that it's not that big of a deal but it does look a bit clumsy. Shouldn't there be an easy fix for this? EDIT: Since this has been reproduced and discussed by some members I was wondering if anyone is actually trying to fix this? EDIT: (imported from , ) #footer.categories #svnrev has margin-bottom: 10px;. It should have margin:0, or be moved alongside #copyright.
asasasasasasasasasasas \begin{table}[ht] \centering \begin{tabular}{|r|l|} \hline 7C0 & hexadecimal \\ 3700 & octal \\ \cline{2-2} 11111000000 & binary \\ \hline \hline 1984 & decimal \\ \hline \end{tabular} \caption[You-table]{Table for you} \label{table: me} \end{table} Measuring AC heat capacity is an excellent radiation
this is my first time here, and I have this question: I'm writing my thesis, that includes many tables and figures in a float environment, with the caption at the end of it. I defined the space between the end of float's caption and the next paragraph. This works fine, but when I forced to stay when I tiped (with [h]), this space (between caption and next paragraph) is bigger. Of course, one of the items that will be evaluated, is the spaces (they all must be the same). So, my question is: How can I solve this? There is an example of the code I'm using: (TexShop —Mac Os 10.6.8) \documentclass[letterpaper,12pt,oneside]{book} \usepackage[spanish,es-lcroman]{babel} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage[font=small,format=hang,parskip=1pt]{caption} \usepackage{ctable} \usepackage{float} \raggedbottom \begin{document} \setlength{\textfloatsep}{10pt} \setlength{\abovecaptionskip}{10pt} \setlength{\belowcaptionskip}{5pt} ... \end{document}
Is it wrong to fully charge your android phone in general to 100% will it hurt battery life? and is it also to drain your battery to below 20% will it also hurt the battery life?
The comments in say that I shouldn't wait until low battery charge level before I charge, because that reduces battery life (this is contrary to my understanding before that the faster we charge (without waiting for battery to discharge) the worse it will be for battery life). My question is, when I should generally start charging to avoid this effect? 20%? Interesting question: If we always limit the usage of the battery only 20% and above, won't we, in effect, reduces our battery capacity to 80%, because we will only use the battery in 20%-100% state?
I want to read the manga of naruto because i want to read more anime than just sit down and watch on my computer so can you help me try to find what chapter is episode 150?
For both the original Naruto series and Shippuuden, which episodes should I watch if I want to avoid the filler? I'm only interested in core plot and character developments. To make this question a bit more concrete: Which episodes are directly based off the manga, and which were produced with unique content for only the anime? At what points did the anime "catch up" to the manga and require non-manga-related content to continue airing episodes while the manga produced new content?
I'm trying to show that If $a,b$ are positive rational numbers and $\sqrt a+\sqrt b$ is rational, then both of $\sqrt a,\sqrt b$ are rational numbers. I squared the number $\sqrt a+\sqrt b$ and found that $\sqrt {ab}$ is rational…
Inspired by , I was wondering if there is a simple logical argument to Show that $ a,b, \sqrt{a}+ \sqrt{b} \in\mathbb Q \implies \sqrt{a},\sqrt{b} \in\mathbb Q $ Note that the original link is using a computational method, where as I am looking for a simple logical argument. I tried (unjutifiably) to argue that if some of two square roots is rational then each one is rational, this is a different than the (incorrect) argument that if sum of two algebraic numbers is rational then each one is rational ( counter example $a=1-\sqrt{2},b= 1+\sqrt{2} $)
This is an elementary question that probably admits an elementary counterexample, but ... Let $G$ be a compact Lie group and $G_0$ its identity component. One then has a short exact sequence $$ 1 \to G_0 \to G \to \pi_0(G) \to 1; $$ the last object is the component group. Does the component group embed as a subgroup?
I've believed for a long time that every Lie group can be decomposed as the semidirect product of a connected Lie group and a discrete Lie group. However, in , it is mentioned that this is not true, and that there exist obstructions to this decomposition. Unfortunately, the level of complexity in the answers goes a bit over my head. This type of decomposition is also addressed in . With this loss of faith in my intuition, I have three questions: Is it true that Lie groups do not necessarily decompose into the semidirect product of a connected group and a discrete group? If this decomposition doesn't always work, then is there a particularly nice argument as to why it doesn't? If this decomposition doesn't always work, then is there a nice example I can use to convince myself that my intuition is wrong? Edit: As much as I love Qiaochu Yuan's answer, which is thorough and (as usual) a role model among Stack Exchange answers, this is not what I'm looking for. I'm aware of the general extension problem, and that not every short exact sequence splits, but my intuition has led me to think that each Lie group can be decomposed this way. I will certainly play around with his outline for a construction, but I would much prefer a more concrete answer. Once again, thank you! Edit: As of yet, playing with the construction suggested by Qiaochu hasn't yielded anything interesting. This question is still open to answers!
I'm admittedly rather new to the world of interchangeable lenses, and have just purchased a Panasonic GH4 and adapted it to a full frame lens with a Metabones speed-booster. I've been using a 50mm lens, under the impression that what I was seeing through the viewfinder was truly a 50mm shot. I have since read that a Micro 4/3s sensor shoots everything effectively 2x the focal length of the lens, so is my 50mm truly acting as a 100mm lens, despite my adapter? I apologize for my ignorance, and appreciate any light you can shed.
I'm reading that a 50mm lens is recommended as a first prime lens for DSLR owners as it's supposed to give a 'natural' perspective, but when used on (most) DSLRs, the view is cropped, as if you were zoomed in by 1.5-1.6x, so it's more of a telephoto lens when used on a DSLR. I've also read however that the 50mm lens gives the same perspective on a DSLR and a 35mm, and shouldn't really be considered to be 'equivalent' to an 80mm lens as the crop factor isn't really a magic focal length changer. Can someone explain how the image is different from (for example) a 50mm lens on a DSLR and an 80mm lens (assuming 1.6x crop factor) on a 35mm camera?
This doesn't seem to be specificed in the docs and the FAQ. I see this suggested in (10.2016) and mentioned as an existing feature (!) in (10.2010).
What circumstances can cause a question or answer to be deleted, and what does that actually mean? How can a post be deleted? When can't I delete my own post? Can I still see my post even after it's deleted? Can I see a list of my deleted posts? How can I undelete one of my posts? What does deletion mean for a post? How do votes to delete work? What are the criteria for deletion? What else should I know about deleted posts? If I flag my question with a request to delete it, what will happen? For more information, see the articles about and in the .
Find all the polynomials $p(x)$ with real coefficients such that :- $(x-8)P(2x)=8(x-1)P(x)$ I tried putting different values to P(x) to find any roots, here's what I found out. $P(2)=P(4)=P(8)=0$ So, $P(x)=(x-2)(x-4)(x-8)Q(x)$, Where $Q(x)$ is some polynomial. Now I don't know what to do next. Any help would be appreciated.
Find all polynomials $p(x)$ such that for all $x$, we have $$(x-16)p(2x)=16(x-1)p(x)$$ I tried working out with replacing $x$ by $\frac{x}{2},\frac{x}{4},\cdots$, to have $p(2x) \to p(0)$ but then factor terms seems to create a problem. Link:
Is it possible to transmit the redstone power with a lever, vertically, and from top to bottom?
I'm making a door with piston sliding sideways that reacts to pressure plates. As the pressure plates are sending the current to redstone at a very low level, I need to raise it somehow, and this leads to awkward stairs of redstone. So I'm wondering whether there are better ways of sending the redstone current up, maybe even vertically.
Why do we say "Did she have a big family" though "Did she has a big family" looks like the correct form? Could someone explain to me why we switch has to have in questions like that?
Should I use the past tense with did? For example, I was to say: The important question is: Did they knew what it means or not? Or should I say: The important question is: Did they know what it means or not? In other words: Should I use past tense with did? I looked at this: but it didn't really answer my question.
I'm trying to install Ubuntu for the first time using a USB stick. But i keep getting this timeout Nouveau 0000:01:00.0: DRM: base-2: timeout Any ideas? It stops right there, even when I try to do a disk check.
I am trying to boot Ubuntu on my computer. When I boot Ubuntu, it boots to a black screen. How can I fix this? Table of Contents:
I have installed ubuntu 15.04 and 14.04. First i had installed 14.04 after that i installed 15.04 and the grub boot menu changed to 15.04. Now i want to revert it, that means i want to change the grub that appears on startup to grub of 14.04. How to do it?
I installed a mainline kernel for testing purposes. I would like to set grub to boot from the older kernel by default. I know I can set the GRUB_DEFAULT=0 setting for the first page of grub but how do I set it to boot by default from one kernel in the second page (Advanced page)? I would prefer doing this without installing other software (ex. grub-customizer). Related Questions:
It's widely know that HTML5 offers some elements primarily for semantic purposes. These include: section, article, aside, header, footer, nav, figure, figcaption, time, mark & main. Do any of these offer SEO benefits? If so, what are some of the best practices for using these semantic elements? I've tried to read articles on the subject, but most of the material is non-committal on whether there exist actual SEO benefits of using these tags or not. Almost all WordPress websites (including Instagram.com) use these tags however. I'm sure other platforms do too. So would love to hear educated opinions from industry experts on how best to use these tags (and which ones are more important than others).
What are the rules of engagement with respect to SEO in HTML 5? Examples of things we have been mulling over with no conclusion: Are you penalised for not using <head> and <body> tags? Do links in <nav> blocks get prioritised for follows? With <aside> (no bside though), <section>, <summary> and <details> which ones carry the most weight for content, one-liner descriptions and keyword tags are there search engine implications? If you use CSS to put a <footer> element at the top and a <header> element at the bottom (not that you would but it may be construed as such by an incomplete spider implementation)? Does the use of placeholder attributes on <input> show you are more user focused? At the minute we are haphazardly pinning the content on the donkey with regard to tag usage but would be interesting to know if anyone has any insight into the "correct" tags to use with regards to SEO.
If ambient light isn't enough and I don't have a tripod with me for long exposure, which one should I prefer to increase the brightness of my photo? I know high ISO comes with noise. Is there any side effect of high exposure compensation? What I do is open full aperture & increase exposure till 1/10s. If not enough, increase ISO till about 300. After that noise is noticeable so I resort to exposure compensation, all the way up to +5. Then back to ISO. Last option is flash, if possible. Is this the best practise? Should I increase Exposure compensation before increasing ISO?
When should I use exposure compensation, rather than ISO, shutter speed or aperture?
I have a graph with some nodes. I have the tikz code and output for the same as: \begin{tikzpicture} \tikzstyle{v} = [circle,fill=black!25, text width = 9pt,text centered, minimum size = 5pt, inner sep =1pt] \node[v] (1) at (-0.703100, 0.348100) {1}; \node[v] (2) at (-1.417600, 0.760600) {2}; \node[v] (3) at (-1.417600, 1.585600) {3}; \node[v] (4) at (-0.703100, 1.998100) {4}; \node[v] (5) at (0.011400, 1.585600) {5}; \node[v] (6) at (0.011400, 0.760600) {6}; \node[v] (7) at (-0.703100, -0.476900) {7}; \node[v] (8) at (0.011400, -0.889400) {8}; \node[v] (9) at (-1.417600, -0.889400) {9}; \node[v] (10) at (-1.417600, -1.714400) {10}; \node[v] (11) at (-0.703100, -2.126900) {11}; \node[v] (12) at (0.725800, 1.998100) {12}; \node[v] (13) at (-2.132000, -2.126900) {13}; \node[v] (14) at (-2.132000, -2.951900) {14}; \node[v] (15) at (-2.132000, 0.348100) {15}; \node[v] (16) at (-2.132000, 1.998100) {16}; \node[v] (17) at (0.725800, 0.348100) {17}; \node[v] (18) at (-2.132000, -0.476900) {18}; \node[v] (19) at (-2.846500, -1.714400) {19}; \draw (1) -- (2); \draw (1) -- (6); \draw (1) -- (7); \draw (2) -- (3); \draw (2) -- (15); \draw (3) -- (4); \draw (3) -- (16); \draw (4) -- (5); \draw (5) -- (6); \draw (5) -- (12); \draw (6) -- (17); \draw (7) -- (8); \draw (7) -- (9); \draw (9) -- (10); \draw (9) -- (18); \draw (10) -- (11); \draw (10) -- (13); \draw (13) -- (14); \draw (13) -- (19); \end{tikzpicture} ` Now, in my slide I want the following sequence to occur: 1: Original graph (as in figure) (I can do this) 2: highlight (color red) one specific node (say 4) 3: highlight all nodes at distance 1 from 4 , also highlight the edges from 4 to these nodes 4: highlight all nodes at distance 2 from 4, also highlight the edges from distanc-1 node to these nodes. So on for other distances. How do I do this?
I have a diagram of 4 nodes in my beamer slide. \begin{figure}[h] \begin{centering} \begin{tikzpicture}[system/.style={draw,rectangle,rounded corners=3,minimum width=2cm,text width=1.8cm,text centered}] \node [system] (fe) {Feature Extraction}; \node [system] (am) [right=of fe] {Acoustic Model}; \node [system] (lm) [right=of am] {Language Model}; \node [system] (d) [below=of lm] {Decoder}; \draw[->] (fe) |- (am); \draw[->] (am) |- (d); \draw[->] (lm) -- (d.north); \end{tikzpicture} \end{centering} \end{figure} How can I in a second slide "highlight" one of the nodes, like I can do with <alert@n> for a item in a list? With highlighting I mean for example giving a color and thickening the lines.
I follow all instructions in , and never see the chance to go to 18.04.2. The command: ubuntu-report show "Install": { "Media": "Ubuntu 18.04.1 LTS \"Bionic Beaver\" - Release amd64 (20180725)", The update manager told me about 18.10 because I had changed the option to all updates instead of only LTS. When I have it set to LTS, it shows nothing is available to update. 31: cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.2 LTS" As you can see, I do have 18.04.2. I just can't figure out in the StackExchange UI how to say my problem is solved. If someone could mark it as such, I'd appreciate it.
There are so called "point releases" for LTS versions of Ubuntu. 10.04.3 for instance. What are those "point releases" releases?
I created a @HttpPost API end point called SampleAPI that doesn't return an object. Instead I am populating RestResponse like so: @RestResource(urlMapping='/SampleAPI/*') global class SampleAPI{ @HttpPost global static void verifyData() { RestResponse response = RestContext.response; response.statusCode = 200; response.responseBody = Blob.valueOf('response body'); } } In my test class I add the request body like so: @IsTest static void TestBehavior() { RestRequest request = new RestRequest(); RestResponse response = new RestResponse(); request.requestURI = '/services/apexrest/SampleAPI'; request.httpMethod = 'POST'; request.requestBody = Blob.valueof('test body'); RestContext.request = request; RestContext.response = response; SampleAPI api = new SampleAPI(); } How can I get the response body in my test method? I tried RestContext.response but that comes back as [headers={}, responseBody=null, statusCode=null] when I am actually expecting the statusCode and responseBody to not be null.
I´m having problems with url parameters (req.requestURI) in my test class. This is my code. REST CLASS: @RestResource(urlMapping='/Accounts/*') global class StoreController { @HttpGet global static String getAccounts() { integer pageNumber=integer.valueof(RestContext.request.params.get('page')); string ptime=RestContext.request.params.get('time'); string hash=RestContext.request.params.get('hash'); } REST TEST CLASS: @isTest private class StoreControllerTest { static testMethod void testGet() { //do request RestRequest req = new RestRequest(); RestResponse res = new RestResponse(); req.requestURI = 'https://dev-my-my.cs14.force.com/mine/services/apexrest/Accounts?page=0&time=1390296387&hash=1wer2547'; req.httpMethod = 'GET'; RestContext.request = req; RestContext.response = res; String results = StoreController.getAccounts(); } } When i run test class i get the error: System.NullPointerException: Argument 1 cannot be null for line : integer pageNumber=integer.valueof(RestContext.request.params.get('page')); Looks like parameters are not taken from url '' when i run the test class.Please can you help me with this?
Let $n>2$ and $\sigma^2>0$. A math exam was held with $n$ participants. The score follows the normal distribution with the mean $\mu_X$ the variance $\sigma^2$. Scores of the math exam are $X_1,...,X_n$. $$\overline{ X }=\frac{1}{n}\displaystyle \sum_{i=1}^n X_i$$ For each $i = 1,...,n$, what is the value of covariance between $X_i-\overline{X}$ and $\overline{X}$? (What I have tried) $\operatorname{Cov}[X_i-X,\overline{X}]$ $ = E[(X_i-X)\overline{X}]-E[X_i-X]E[\overline{X}]$ $=E[X_i\overline{X}] - E[\overline{X}^2] - (E[X_i]-E[\overline{X}])E[\overline{X}]$ $=E[X_i\overline{X}] - E[\overline{X}^2] - (E[X_i]-\mu)\mu$ and I don't know how to deal with the rest of term with $E[]$. Can anyone help me?
How do you prove Cov $\left( \bar{X} , X_i - \bar{X} \right) = 0$ given $ X_1 ,..., X_i$ are i.i.d. each with variance $\sigma^2$ and $\bar{X}$ is the sample mean?? In other words, how do you show that the sample mean and the differences of the observations from that mean are not linearly correlated??? Am I on the write track? I've written $Var \left( \bar{X} + \left( X_i - \bar{X} \right) \right) = Var X_i = Var \bar{X} + Var \left( X_i - \bar{X} \right) + Cov \left( \bar{X} , X_i - \bar{X} \right)$ . I know $Var X_i = \sigma^2 , Var \bar{X}= \frac{\sigma^2}{n}$, so all I need left to find the covariance is $Var \left( X_i - \bar{X} \right)$. I don't know if this is right, but I wrote $Var \left( X_i - \bar{X} \right) = E\left( \left( \left( X_i - \bar{X} \right) - \mu_{ X_i - \bar{X}} \right)^2 \right)=E \left( \left( X_i - \bar{X} \right)^2 \right)=s^2$, but I don't know if that's right or helpful at all. Am I on the right track??
I would like to center a figure made on Tikz. This figure has a specific size which is wider than \textwidth, and it needs to be centered. All options I see use \resibox or \makebox to center the figures. But I don't want to change the figure size. Are there any option or command to allow this? Thanks very much in advance. Kind regards, German === SOLUTION == As Mr @David Carlisle commented below, the solution is uncomment the \makebox and set the scaling to 0pt as follow: \begin{figure}[h!] \centering \newlength\figureheight \newlength\figurewidth \setlength\figureheight{6cm} \setlength\figurewidth{1.2\linewidth} \begingroup \fontsize{8}{\baselinestretch}\selectfont \makebox[0pt][c]{ \input{VoltFRFFreq.tikz} %} \endgroup \caption{A plot of a sphere} \label{fig.freq} \end{figure} Thanks again to all people!! -- EDIT's --- P.D.-I forgot to mention I use XeLaTeX, I hope it helps. Kind regards, P.D.D- The code is \begin{figure}[h!] \centering \newlength\figureheight \newlength\figurewidth \setlength\figureheight{6cm} \setlength\figurewidth{1.2\linewidth} \begingroup \fontsize{8}{\baselinestretch}\selectfont %\makebox[\figurewidth][c]{ \input{VoltFRFFreq.tikz} %} \endgroup \caption{A plot of a sphere} \label{fig.freq} \end{figure}
I have a figure that is wider than the \textwidth of my document. (I don't want to change the \textwidth.) As a result, the leftmost part of the figure is flush with the left margin, while the rightmost part spills into the right margin too much. I'd like to center the figure, so that it will exceed the \textwidth equally on both sides.
I have a python script that starts a process using multiprocessing Process class. Inside that process I start a thread with an infinite loop, and I simulate an exception on the main thread by doing exit(1). I was expecting exit to kill the process, but it doesn't, and the main thread reports it as alive. I have tried with both raising exception and calling exit, but none work. I have tried waiting for the process to finish by waiting for is_alive, and by calling join. But both have the same behavior. from multiprocessing import Process from threading import Thread from time import sleep def infinite_loop(): while True: print("It's sleeping man") sleep(1) def start_infinite_thread(): run_thread = Thread(target=infinite_loop) run_thread.start() exit(1) def test_multi(): x = Process(target=start_infinite_thread) x.start() sleep(5) assert not x.is_alive() I am expecting the process not to be alive, but the assert fails.
In the it says: A thread can be flagged as a "daemon thread". The significance of this flag is that the entire Python program exits when only daemon threads are left. The initial value is inherited from the creating thread. Does anyone have a clearer explanation of what that means or a practical example showing where you would set threads as daemonic? Clarify it for me: so the only situation you wouldn't set threads as daemonic, is when you want them to continue running after the main thread exits?
Question: For each $k \in \mathbb{Z}^{+} \cup \{0\}$, let $D_k = \{n \in \mathbb{Z}^{+}\cup\{0\}: k = mn \text{ for some } m \in \mathbb{Z}^{+}\cup\{0\}\}$. Write down each of the following sets in roster notation: $\{n \in \mathbb{Z}^{+} \cup \{0\}:n \in D_k \text{ for some } k \in \mathbb{Z}^{+}\cup\{0\}\}.$ $\{n \in \mathbb{Z}^{+}\cup \{0\}: n \in D_k \text{ for all } k \in \mathbb{Z}^{+}\cup\{0\}\}.$ My answer for $1.$ is the set of non-negative integers, but there are infinite elements, so how do I represent them in roster set notation? Can I just write $\{0, 1, 2, 3, 4, 5, \dots\}?$ My answer for $2.$ is $\{1\}$. But, I am not sure if my answers are correct? Thank you.
For each 𝑘 ∈ ℤ⩾0, let 𝐷𝑘 = {𝑛 ∈ ℤ⩾0 ∶ 𝑘 = 𝑚𝑛 for some 𝑚 ∈ ℤ⩾0}. D1 = {1} D2={1,2} D3={1,3} D4={1,2,4} D5={1,5} Find the following:(write in roster notation) 1.{𝑛 ∈ ℤ⩾0 ∶ 𝑛 ∈ 𝐷𝑘 for some 𝑘 ∈ ℤ⩾0} {𝑛 ∈ ℤ⩾0 ∶ 𝑛 ∈ 𝐷𝑘 for all 𝑘 ∈ ℤ⩾0}. My attempt: 1.{1,2,3,4.....} 2.{1} Is my attempt for question 1 correct? I could not think of a more convincing answer and if my answer happens to be correct, can anyone else explain how to derive the answer for both part 1 and 2. Thanks!
I'm trying to export sentinel-1 bands with this code in Google Earth Engine but I have recently this error. I didn't have this problem in the past. So here is the code. The code: var start = new Date("02/05/2015"); var end = new Date("03/05/2015"); var s1 = ee.ImageCollection('COPERNICUS/S1_GRD') .filterDate(start, end) //.filter(ee.Filter.listContains('transmitterReceiverPolarisation', 'VV')) // Filter to get images collected in interferometric wide swath mode. //.filter(ee.Filter.eq('instrumentMode', 'IW')) .filterBounds(geometry); var count = s1.size().getInfo(); for (var i = 0; i < count ; i++) { var img = ee.Image(s1.toList(1, i).get(0)); var geom = img.geometry().getInfo(); Export.image(img, img.get('system:index').getInfo(), { 'scale': 20, 'crs': 'EPSG:4326', 'region': geometry.toGeoJSONString() }); } s1 = s1.toUint16(); Export.table(s1,'Sentinel1_csv'); print(Chart.image.seriesByRegion(s1, geometry, ee.Reducer.mean(),'VH') .setOptions({title: 'VH mean value over time on R3'}));
I'm trying to export a tiff map and gave the following error: Error: Exported bands must have compatible data types; found inconsistent types: Float64 and Float32. How can I solve this? Code: //Choose country using GEE Feature Collection var region = ee.FeatureCollection('ft:1tdSwUL7MVpOauSgRzqVTOwdfy17KDbw-1d9omPw').filterMetadata('Country', 'equals', 'Portugal'); //Add region outline to layer ‐ for selected countries Map.addLayer(region,{}, 'Portugal'); // image collection pre 11/10/2017 var lt8_pre = ee.ImageCollection('LANDSAT/LC08/C01/T1_SR') .filterBounds(region) .filterDate(ee.Date("2017-08-01"),ee.Date("2017-10-11")); Map.addLayer(lt8_pre, {bands: ['B4', 'B3', 'B2'],min: 1000, max: 1500}, 'image L8 pre'); var lt8_ndvi_pre = lt8_pre .map(function(img){ return img.addBands(img.normalizedDifference(['B5', 'B4'])).updateMask(img.select(['pixel_qa']).neq(5).neq(3).neq(2)); }); // Create an NBR image using bands the nir and red bands (6 and 4) var lt8_nbr_pre = lt8_pre .map(function(img){ return img.addBands(img.normalizedDifference(['B7', 'B4'])).updateMask(img.select(['pixel_qa']).neq(5).neq(3).neq(2)); }); print(lt8_ndvi_pre); print(lt8_nbr_pre); // image collection pos 11/10/2017 var lt8_pos = ee.ImageCollection('LANDSAT/LC08/C01/T1_SR') .filterBounds(region) .filterDate(ee.Date("2017-10-18"),ee.Date("2018-02-10")); Map.addLayer(lt8_pos, {bands: ['B4', 'B3', 'B2'], max: 1000}, 'image L8 pos'); var lt8_ndvi_pos = lt8_pos .map(function(img){ return img.addBands(img.normalizedDifference(['B5', 'B4'])).updateMask(img.select(['pixel_qa']).neq(5).neq(3).neq(2)); }); // Create an NBR image using bands the nir and red bands (6 and 4) var lt8_nbr_pos = lt8_pos .map(function(img){ return img.addBands(img.normalizedDifference(['B7', 'B4'])).updateMask(img.select(['pixel_qa']).neq(5).neq(3).neq(2)); }); print(lt8_ndvi_pos); print(lt8_nbr_pos); //Clip to Specified Region var NDVI_pre = lt8_ndvi_pre.mean().clip(region); var NDVI_pos = lt8_ndvi_pos.mean().clip(region); var NBR_pre = lt8_nbr_pre.mean().clip(region); var NBR_pos = lt8_nbr_pos.mean().clip(region); Map.centerObject(region, 10); var ndvi_viz = {min:-0.8, max:1, palette:'000000,00FF00'}; Map.addLayer(NDVI_pre.select('nd'), ndvi_viz, "LT8 NDVI mean pre 11/10"); Map.addLayer(NDVI_pos.select('nd'), ndvi_viz, "LT8 NDVI mean pos 11/10"); // Display the NBRpost var nbr_viz = {min: -1, max:1, palette: ['FFFFFF','CC9966','CC9900','996600', '33CC00', '009900','006600','000000']}; Map.addLayer(NBR_pre.select('nd'), nbr_viz, "LT8 NBR mean pre 11/10"); Map.addLayer(NBR_pos.select('nd'), nbr_viz, "LT8 NBR mean pos 11/10"); //Calcule dNBR and dNDVI var dNBR = NBR_pre.subtract(NBR_pos); var dNDVI = NDVI_pre.subtract(NDVI_pos); //Map.addLayer(dNBR,nbr_viz, "dNBR"); Map.addLayer(dNDVI.select('nd'), ndvi_viz, "LT8 dNDVI"); Map.addLayer(dNBR.select('nd'), nbr_viz, "LT8 dNBR"); Export.image.toDrive({ image: NBR_pos, description: 'NBR_pos', scale: 30, region: Pt, maxPixels: 278466375, });
This again is another strange decision on Sauron's part, we know from Grishnakh and the fact Legolas killed a fell beast that there is at least one Nazgul on the eastern side of the Anduin, possibly more. Now in both Saruman and Sauron's case they know that a halfling currently holds the one ring, so they naturally think Merry or Pippin has it, as their the only halflings the Uruk-hai, northerners and possibly Mordor orcs come across at Amon Hen. Now from my personal point of view it is likely Sauron learnt from the orcs on the eastern bank of the Anduin or merely guessing (we know he finds Saruman easy to predict) that Saruman has sent his own band of merry Uruk-hai to capture and deliver the hobbits to Isengard, so himself sends Grishnakh and maybe a few other Mordorians he make sure Ugluk actually takes the hobbits east. Grishnakh himself learns that Ugluk represents the white hand and out numbers him by a lot so Grishnakh then slumps off for a bit and returns with 40 Mordorians with him. Now why i find this so strange is down to the fact Sauron risks letting a rival having the ring (from their view, we know Frodo in fact has the ring) by sending an orc messenger who is heavily outgunned, even though he has at least one nazgul on the eastern bank of the Anduin ( personally i think there is more than one waiting). Now the main argument against myself is that Grishnakh reveals the winged Nazgul of forbidden in showing themselves across the Anduin, but we know they could cross in secret and use horses instead of the giant fellbeast. So why does Sauron send a lackey instead of an actual power to get the ring?
In the movies, the pack of Uruk-Hai capture Merry and Pippin, and are bringing them back to Saruman as quickly as possible. Why didn't they use Wargs to carry the Hobbits instead of packing them on their backs? Or, better yet, why didn't the Nazgul fly down and take them on their Fell Beasts?
Currently I have a XAMPP server and MySQL database related to it. The database has some data that has superscript charactors such as ™. I used some form to insert such data into database. In database it has been showing as â„¢. But when I query, then it shows correctly as ™ in the HTML page. My Issue I created the same database in another XAMPP server and transferred data by exporting from original MySQL database and import to new MySQL database. All data transferred correctly. But this time, when I query the special charactor and showed in HTML page, it is not showing the superscript charactor as ™, instead it shows as â„¢. When I export data, I used utf-8 too But when I tried to add a new data with ™ in it by using query into the new MySQL database and such added data is showing correctly as ™ instead of â„¢. But those imported data is still not showing correctly in HTML page. I tried to add mysqli_set_charset($conn,“utf8”) in the connection file. But it is not solving the issue. Does anyone know why this way?
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.
In socratica's video (which should be required for every abstract algebra class), she is explaining that a motivation for modules as rings allow you to do things that you can't do with fields. If you have a ring with an ideal $I\triangleleft R$ where M is an R module you can create an R/I quotient ring. Why can't you do this with a field?
$F$ is a field. I consider that if Quotient ring of $F $by $N$ exists, then it would be zero ring or isomorphic to $F$. $F$ is field, so it is ring. Suppose that $N$ is an ideal of ring$F$. And consider Quotient ring of $F$ by $N$. If $N$ is zero set, then $F/N$ is equal to $F$ Otherwise N contains nonzero elements. And a Quotient Ring <$F/N$,+,•> can be a field. That is my ideal. Please give me idea How to think more here.
I have a task that need to list all the plain text files in a folder that contains plain text files and binary files, without knowing the file extension. I have been doing lots of google search but still not able to find the answer. any hints ? Thanks.
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?
I'm trying to find email within text that is being followed by a key word 'domain' preg_match_all("/domain.+\b([a-z0-9\-]+\.[a-z]{2,3})/im", $input_lines, $output_array); my input data is here is some text capture this domain hi-there-welcome.co and this domain should be captured yes90well.com but not this link nolink.com but not this line of no domain on it I should be able to capture hi-there-welcome.com and yes90well.com
I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}: The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?
Which is the standarized way of writing an XML? is it <MODEL_NUMBER></MODEL_NUMBER> or <MODELNUMBER></MODELNUMBER> Thanks !
Is there any standard, de facto or otherwise, for XML documents? For example which is the "best" way to write a tag? <MyTag /> <myTag /> <mytag /> <my-tag /> <my_tag /> Likewise if I have an enumerated value for an attribute which is better <myTag attribute="value one"/> <myTag attribute="ValueOne"/> <myTag attribute="value-one"/>
We want to proove that: If $p_1,...,p_n$ are positive, distinct, prime numbers then $\sqrt{p_1\cdots p_n} \notin \Bbb{Q}$. Let's assume that $\sqrt{p_1\cdots p_n} \in \Bbb{Q}$. Then, $\exists (a,b)\in \mathbb{Z^*\times Z^*}:\sqrt{p_1\cdots p_n}=\frac{a}{b}$ with $\gcd (a,b)=1.$ So, $a^2=p_1\cdots p_n \cdot b^2. $ But how do we continue? Is this technique right or should we follow something different? PS: This is a part proof, and I would like to discuss it. Thank you.
It is well known that $\sqrt{2}$ is irrational, and by modifying the proof (replacing 'even' with 'divisible by $3$'), one can prove that $\sqrt{3}$ is irrational, as well. On the other hand, clearly $\sqrt{n^2} = n$ for any positive integer $n$. It seems that any positive integer has a square root that is either an integer or irrational number. How do we prove that if $a \in \mathbb N$, then $\sqrt a$ is an integer or an irrational number? I also notice that I can modify the proof that $\sqrt{2}$ is irrational to prove that $\sqrt[3]{2}, \sqrt[4]{2}, \cdots$ are all irrational. This suggests we can extend the previous result to other radicals. Can we extend 1? That is, can we show that for any $a, b \in \mathbb{N}$, $a^{1/b}$ is either an integer or irrational?
Points2one plugin is not compatible with QGIS 3.4.4. It's quite useful for our works related to forestry. Is there any other substitute plugin or new upgrade version of points2one plugin?
I downloaded the points2one plugin and tried many times to connect points to a line, but it never works. Is there something that I set wrong? I tried the answer,but it has been running 10 mins, and does nothing, so should I wait for it?
I'm using abntex2 as my document class, which extends the Memoir package. In this numbering scheme, the default is that the first section, subsections etc be 0.1, 0.2, etc. How can I change that, so that my section, subsection etc behaves as 1.1, 1.2, etc., as is in article? MWE: %%%%%%%%%%%%%%%%%%%%%%%%%%%% % !TeX TS-program = pdflatex \documentclass[12pt,a4paper]{abntex2} % Use A4 paper with a 12pt font size - different paper sizes will require manual recalculation of page margins and border positions %%%%%%%%%%%% ----------- PACOTES/PACKAGES ----------- %%%%%%%%%%%%%% \usepackage[utf8]{inputenc} \usepackage{lastpage} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{lipsum} \usepackage{graphicx} \usepackage{textcomp} \usepackage{microtype} % para melhorias de justificação \usepackage{morefloats} % permite mais floats \usepackage{parskip} % espaçamento entre os parágrafos \usepackage[brazil]{babel} % idiomas \usepackage{listings} \hypersetup{ pdftitle={\@title}, pdfauthor={\@author}, pdfsubject={Modelo de artigo científico com abnTeX2}, pdfcreator={LaTeX with abnTeX2}, pdfkeywords={abnt}{latex}{abntex}{abntex2}{atigo científico}, colorlinks=true, % false: boxed links; true: colored links linkcolor=blue, % color of internal links citecolor=blue, % color of links to bibliography filecolor=magenta, % color of file links urlcolor=blue, bookmarksdepth=4 } \makeatother % --- % Pacotes de citações % --- \usepackage[brazilian,hyperpageref]{backref} % Paginas com as citações na bibl \usepackage[alf]{abntex2cite} % Citações padrão ABNT % --- \renewcommand{\backrefpagesname}{Citado na(s) página(s):~} % Texto padrão antes do número das páginas \renewcommand{\backref}{} % Define os textos da citação \renewcommand*{\backrefalt}[4]{ \ifcase #1 % Nenhuma citação no texto.% \or Citado na página #2.% \else Citado #1 vezes nas páginas #2.% \fi}% % --- % O tamanho do parágrafo é dado por: \setlength{\parindent}{1.3cm} % Controle do espaçamento entre um parágrafo e outro: \setlength{\parskip}{0.2cm} % tente também \onelineskip % Espaçamento simples \SingleSpacing %%%%%% HEADERS <<<<<<<<<<<<<< \usepackage{nicematrix} % <<<< added for an easy table \usepackage[datesep=/,useregional=numeric]{datetime2} %<<<<< added format date \DTMsetdatestyle{ddmmyyyy} \usepackage{fancyhdr} % Required for header and footer configuration \renewcommand{\headrulewidth}{0pt} \fancypagestyle{firstpagestyle}{% to use only in the first page \fancyhf{}% Clear default headers and footers \input{header-footer.tex} }%%%%%% firstpagestyle ends \begin{document} % Seleciona o idioma do documento (conforme pacotes do babel) %\selectlanguage{english} \selectlanguage{brazil} % Retira espaço extra obsoleto entre as frases. \frenchspacing \section{Secção numérica} \lipsum[0] \section{Secção numérica 2} \lipsum[1] \end{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
I am using abntex2 to write my document and, for some reason unknown to me, the first section is marked with 0.1, instead of 1, the second, with 0.2 instead of 2 and so on. Here's a MWE: \documentclass[brazil,sumario=tradicional]{abntex2} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{wrapfig} \usepackage{graphicx} \usepackage[alf]{abntex2cite} \usepackage[brazilian,hyperpageref]{backref} \begin{document} %\renewcommand\contentsname{Índice} \thispagestyle{empty} \begin{center} UNIVERSIDADE FEDERAL DE SANTA CATARINA CENTRO TECNOLÓGICO DEPARTAMENTO DE ENGENHARIA DO CONHECIMENTO \vspace{0.3cm} Franciele Daltoé \vspace{8.2cm} \begin{Large} \textbf{Avaliação e Aprendizagem: \\ métodos diferenciados de avaliação na disciplina de matemática} \end{Large} \vspace{6.7cm} Florianópolis 2015 \end{center} \newpage %\thispagestyle{empty} \begin{center} UNIVERSIDADE FEDERAL DE SANTA CATARINA CENTRO TECNOLÓGICO DEPARTAMENTO DE ENGENHARIA DO CONHECIMENTO \vspace{0.3cm} Franciele Daltoé \vspace{6.5cm} \begin{Large} \textbf{Avaliação e Aprendizagem: \\ métodos diferenciados de avaliação na disciplina de matemática} \end{Large} \end{center} \begin{flushright} \vspace{1cm} \parbox{0.5\linewidth}{Projeto apresentado ao Curso de Licenciatura em Matemática como requisito para conclusão da disciplina Projetos Interdisciplinares I.} \end{flushright} \vspace{5.2cm} \begin{center} Florianópolis 2015 \end{center} \newpage \thispagestyle{empty} \tableofcontents \newpage \section{Introdução} \end{document} There is a lot more text below, but that already shows what the problem is. What could be the error in the code?
In the Silmarillion The Sun and Moon are actually Maia bearing lamps, Arien and Tilion. Is there any writing on the sources of Mars, Jupiter and the other planets?
Did Tolkien mention anything about other planets in his mythology or did he invent just the one planet for his stories?
When I submitted my first article to arXiv, in the article I mentioned my full name, which is just 'Afham' (I do not know whether it is not allowed to mention such personal information in a question, sorry if it is not). Because of this, my name is not listed as a co-author in the google scholar entry of the paper and neither is the paper listed under my google scholar page. Do people use unofficial names while submitting papers and can this lead to career related consequences in the future?
My name is SALMAN. No Middle and Last name. How do I write my name in research paper or article?
I have the following article file: \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} In the same folder there is a mybib.bib file that contains the following code: @misc{Nobody06, author = "Nobody Jr", title = "My Article", year = "2006" } When I compile using Texmaker, I get the following warning: Citation 'Nobody06' on page 1 undefined and a [?] is at the citation place. I have been compiling the main file with latex, bibtex, latex, latex as suggested in . And no .bbl file is created. The .blg file looks like the following: This is BibTeX, Version 0.99d (TeX Live 2015/Debian) Capacity: max_strings=35307, hash_size=35307, hash_prime=30011 The top-level auxiliary file: Appendix1.aux The style file: plain.bst Database file #1: mybib.bib You've used 1 entry, 2118 wiz_defined-function locations, 508 strings with 4242 characters, and the built_in function-call counts, 576 in all, are: = -- 56 > -- 26 < -- 2 + -- 9 - -- 8 * -- 44 := -- 90 add.period$ -- 4 call.type$ -- 1 change.case$ -- 6 chr.to.int$ -- 0 cite$ -- 1 duplicate$ -- 24 empty$ -- 44 format.name$ -- 8 if$ -- 127 int.to.chr$ -- 0 int.to.str$ -- 1 missing$ -- 1 newline$ -- 8 num.names$ -- 4 pop$ -- 7 preamble$ -- 1 purify$ -- 5 quote$ -- 0 skip$ -- 20 stack$ -- 0 substring$ -- 37 swap$ -- 13 text.length$ -- 2 text.prefix$ -- 0 top$ -- 0 type$ -- 4 warning$ -- 0 while$ -- 6 width$ -- 2 write$ -- 15 Any idea what I'm missing?
On several occations I have read instructions like "run Latex on your file, then run Bibtex, and afterwards run Latex again..." . I am using TeXstudio as editor and when compiling any tex-code I simply press the compile-button. What happens behind this did not matter to me as the pdf I wanted was created anyway. Now that I am using .bib files for referencing, I am having a problem where the solution to this was the same as above. But how do I do it? I only know the compile-button. How can I run Latex individually from Bibtex and Bibtex individually from Latex? And which of both is running when simply pressing "compile"?
In French (my mother language), in order to be polite, we use "vous" (the second person of plurial) when we talk to another person who deserves respect (a boss, a teacher, etc.) and "tu" for a close friend, a child, etc.). How do we do the same thing in English since there is only "you" for second person of singular and of plurial?
From the top of my head, Danish "De" (practically never used), German "Sie", Chinese "您", French "vous", Spanish "usted" are a formal way of addressing someone, especially if one isn't familiar with the addressee. Did English ever have this? It sounds as though Proto-Indo-European might have had this (based on my 4 examples), but perhaps someone can enlighten me?
It seems you have seen this question posed by many users. But still i want to clear my doubt Regarding Implication in Mathematical Logic which is $p \to q$ I have clearly understood these: $1.$ If $p$ is True, $q$ is True, Then the Implication is True $2.$ If $p$ is false, $q$ is False, Then the Implication is True $3.$ If $p$ is True, $q$ is False, Then the Implication is False But why If $p$ is False and $q$ is True, The Implication is treated as True. One example I convinced myself with is: If $x=2$, Then $x^2+1=5$ Where $p$ is the statement $x=2$ and $q$ is the statement $x^2+1=5$ Now if $p$ is false, Then still $q$ can be true, since $x=-2$ will help to make $q$ True.But there are infinite values of $x$ which makes $q$ false, hence majority of values of $x$ are making $q$ false. Hence the Implication is TRUE. Now i started to think about a different example Viz: If $x \gt 7$, Then $x \gt 5$ Now if $p$ is false There are infinite values of $x$ making $q$ True that is all numbers $ x \in (5 \:\: 7]$ Also $q$ is false for all $x \in (-\infty \:\: 5]$ Since density of numbers in second interval is more, The Implication Should be TRUE again. Is this the Reason when $p$ is False and $q$ is True, Implication is considered TRUE?, since when $p$ is false the number of reasons for $q$ being true less than number of causes making $q$ false?
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.
Being really new to rendering things, I have little knowledge no how things work in Blender (texturing/rendering wise). Watching Firechild's tutorial on how to create a golden ring.... he does have Diffuse BSDF and Image Texture nodes available.... which I do not... (there is only 'Image' node) Downloaded some model from Blendswap and these nodes are there.... My question is what exactly affects the selection of nodes available to a particular scene? Does it has anything to do with the materials/settings used? Thanks for your reply! Cheers
I am looking for the but it is not available under the Vector nodes menu or any other menu. I have Blender 2.77 which cooresponds with the manual version in the above link. I also cannot find the Texture Coordinate or Gradient Texture. Likely I am doing something wrong.
Sorry for the lame question, I faced VDS for the first time in my life. I've set everything up, installed all python modules the app needed and after I run my script like python test.py it works just ok, but after I close my ssh window that i used for remote connect to my VDS - the script doesn't work anymore. How to run my test.py to make it work 24\7?
Let's say I launch a bunch of processes from a ssh session. Is it possible to terminate the ssh session while keeping those processes running on the remote machine?
Is philosophy still considered as 'mother of science' nowadays? Because i don't know relevance philosophy with the term mother of science in this days. (21st Century)
Prologue Running google search: at the time of this post yields about 114,000 results, and while this Quora post: puts forth the question to determine the truth of the matter, it does not address the historical, etymological, and philosophical import of the matter. This PhilSE Post: clearly addresses theory, but does not address the historical aspect. The related question in Researchgate post: seems to not provide a substantial answer either. Inquiry What is the context in which the statement 'Philosophy is the mother of all science' or related ones began to recognize as a the relationship between philosophy and the advent of modern science under thinkers like ? That is to say, what historical and social consequences were responsible for seeing somehow superior as a theory to the ? Epilogue The question is intended to determine the metaphilosophical insights of philosophers. For example, if Karl Popper used the phrase or one similar, did he appeal to previous philosophers for insight on that same relationship? See Also
I am using monogame to make a simple platformer with a fairly low resolution. Right now I am struggling to get smooth movement like in the mario games. In those games despite having the low resolution mario can still slowly accelerate from standing still and the movement looks smooth. How did they achieve this? My current solution performs all of the game's physics and movement in floats and when it comes to drawing the x and y coordinate of the player it is rounded to an int. This results in very jagged looking movement. Is there any way to improve this so that the movement is smooth and still has acceleration? I was thinking about scaling up all of my assets by 4 and working at a higher resolution but then the player would be able to walk between pixels (as 1 pixel in the assets would be represented by 4 pixels on the screen). Any help would be much appreciate. Here is an awful video of my character's movement:
I am rendering sprites at exact pixel coordinates to avoid the blurring effect caused by antialiasing (the sprites are pixel-art and would look awful if filtered). However, since the movement of the objects involves variable velocity, gravity, and physical interactions, the trajectory is computed with subpixel precision. At large enough screenspace velocities (vΔt larger than 2 or 3 pixels) this works very well. However, when velocity is small, a noticeable staircase effect can appear, especially along diagonal lines. This is no longer a problem at very slow screenspace velocities (v << 1 pixel per second) so I am only looking for a solution for intermediate velocity values. On the left is the plotted trajectory for a large velocity, obtained by simple rounding of the object coordinates. In the middle you can see what happens when velocity becomes smaller, and the staircase effect I am talking about. On the right, the locus of the trajectory I would like to get. I am interested in algorithm ideas to filter the trajectory in order to minimise the aliasing, while retaining the original behaviour at large and small velocities. I have access to Δt, instant position and velocity, as well as an arbitrary number of previous values, but since it is a realtime simulation, I do not know about future values (though if necessary, an estimation could be extrapolated under certain assumptions). Note that because of the physics simulation, sudden direction changes can also happen.
I have an ANT+ USB dongle, and some software I wrote, which uses libusb to communicate with the device. On recent linux distributions (like Ubuntu 18.04) when I plug in the dongle, in my dmesg I see the following: #dmesg output [55632.489138] usb 1-10: USB disconnect, device number 26 [55634.300338] usb 1-10: new full-speed USB device number 30 using xhci_hcd [55634.452005] usb 1-10: New USB device found, idVendor=0fcf, idProduct=1008 [55634.452012] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [55634.452016] usb 1-10: Product: Movestick mini [55634.452020] usb 1-10: Manufacturer: Suunto [55634.452024] usb 1-10: SerialNumber: 1323802187 [55634.454188] usb_serial_simple 1-10:1.0: suunto converter detected [55634.454494] usb 1-10: suunto converter now attached to ttyUSB0 It is attaching a serial driver, and when it does this, I can't seem to access the USB device directly with libusb. If I unbind the serial driver with: echo -n "1-10:1.0" > /sys/bus/usb/drivers/usb_serial_simple/unbind it works just fine. What I would like to do, is not have to do this manually every time. Is there a way I can disable the loading of usb_simple_serial for that dongle? I found some examples of writing udev rules to explicitly load the serial driver (older linux distros would not automatically load it), but I need the exact opposite. For example, on older distros, they would do this, to load the serial driver: echo "options usbserial vendor=0x0fcf product=0x1008" > /etc/modprobe.d/ant-usb2.conf And echo 'SUBSYSTEM=="tty" ACTION=="add" ATTRS{idProduct}=="1008" ATTRS{idVendor}=="0fcf" SYMLINK+="ttyANT"' > /etc/udev/rules/ant.rule Can I make a udev rule to do the exact opposite, and NOT load the driver? Also I would need the device to be accessible by all users, and not just root. How could I make that happen via the udev rule?
This is in continuation of my previous problem. Here i have 2 usbserial hardware modules and it is provisionised that only one can be used at a time. 1. 0403:6014 2. 0403:6001 I also wanted to make sure device is R/W accesble to "plugdev" group For device 0403:6014, I do not want to use inbuilt usbserial(ftdi_sio) driver. I want to access this device using FTD2XXX library. and for device 0403:6001, I want to use inbulit usbserial(ftdi_sio) driver. I am trying to find a common way to acheive this. Trails which I attempted so far. Since, 0403:6001 device uses inbuilt linux driver, I am trying to remove / blacklist ( 0403:6014 ) driver while loading TRIAL 1 ACTION=="add", SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6014", RUN+="/usr/local/bin/rmmod.sh 4", GROUP="plugdev" This removes the loaded FTDI driver, but it does not change the device group from ROOT to PLUGDEV So address that issue added one more rule line TRIAL 2 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6014", GROUP="plugdev" ACTION=="add", SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6014", RUN+="/usr/local/bin/rmmod.sh 4" This trial sets my device GROUP as expected to "plugdev", but this does not remove the kernel usbserial module. TRIAL 3 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6014", GROUP="plugdev" Added ftdi_sio to /etc/modprobe.d/blacklist.conf , but this blacklists my 0403:6001 completely. This approach works well for 0403:6014 but this completely obseltes my 0403:6001 device Request some guidance to fix this issue
I want to add a csv-layer by PyQGIS in a standalone script. This is my code: uri = 'file:///C:/Users/sml/Desktop/point.csv?delimiter=,&crs=epsg:4326&xField=x&yField=y' vlayer = QgsVectorLayer(uri, "point", "delimitedtext") print(vlayer.isValid()) QgsProject.instance().addMapLayer(vlayer) The same code works fine in the QGIS Python console, but it can't work in a standalone script. I don't know why.
I am having trouble loading csv files into layers using QgsVectorLayer(). I know this looks like a repeat, but I have carefully read and but still cannot get it work. An example of my data file, test.csv: Index,y,x 0,37.7646618,-122.4960858 1,37.777494,-122.416311 2,37.717707,-122.3997056 3,37.732284,-122.498118 4,37.749998,-122.392333 My code: import os import urllib import pathlib from qgis.core import QgsVectorLayer local_path = 'C:\dev\FCMS_conflation\data\TMC_nodes.csv' node_layer = 'test' abspath = os.path.abspath(local_path) params = {'delimiter': ',', 'decimalPoint': '.', 'xField': longitude, 'yField': latitude} uri = "%s?%s" %(pathlib.Path(abspath).as_uri(), urllib.unquote(urllib.urlencode(params))) layer = QgsVectorLayer(uri, node_layer, "delimitedtext") The formatted URI looks like: [] uri >>> 'file:///C:/dev/FCMS_conflation/data/TMC_nodes.csv?decimalPoint=.&delimiter=,&xField=longitude&yField=latitude' I have tried many variations of the parameters, including the crs and type. But no matter what I try, I cannot create a valid layer. [] layer.isValid() >>> False I have verified that I can add the file using the QGIS gui. I even tried using the uri provided by layer.metadata from within the Python plugin. I am using QGIS 2.10.1 on Windows 7 64-bit machine.
There is a field in the posts table named communityowneddate. What is the meaning of that field? And in what case is the post owned by community?
Stack Exchange releases "data dumps" of all its publicly available content roughly every three months , and also makes that information queryable over the Internet at the (SEDE) (updated weekly, on Sunday). Over time, as new features and other bits of data are introduced to Stack Exchange sites, the "anatomy" of the data dump is likely to change.
after selecting records i want to delete that records..i tried following query - (after removing ,MAX(value) but its showing- You can't specify target table 'test' for update in FROM clause DELETE FROM test WHERE ext_no IN ( SELECT ext_no, MAX(value) FROM test GROUP BY ext_no HAVING COUNT(*) > 2 AND COUNT(*) = COUNT(CASE value WHEN 0 THEN 1 END) );
I have a table story_category in my database with corrupt entries. The next query returns the corrupt entries: SELECT * FROM story_category WHERE category_id NOT IN ( SELECT DISTINCT category.id FROM category INNER JOIN story_category ON category_id=category.id); I tried to delete them executing: DELETE FROM story_category WHERE category_id NOT IN ( SELECT DISTINCT category.id FROM category INNER JOIN story_category ON category_id=category.id); But I get the next error: #1093 - You can't specify target table 'story_category' for update in FROM clause How can I overcome this?
I followed to install ftp server. And also added ftp user(ftpuser) and also added ftp password(1234567). But when I am using this password in any wordpress site or any ftp software such as FileZilla it is showing 530 Login incorrect vsftpd file listen=YES anonymous_enable=NO write_enable=YES local_enable=YES dirmessage_enable=YES use_localtime=YES connect_from_port_20=YES ftpd_banner=Welcome to blah FTP service. secure_chroot_dir=/var/run/vsftpd/empty pam_service_name=vsftpd rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
Moving a tried-and-true vsftpd configuration onto a new server with Fedora 16, I ran into a problem. All seems to go as it should, but user authentication fails. I cannot find any entry in any log that indicates what happened. Here is the full config file: anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 dirmessage_enable=YES xferlog_enable=YES connect_from_port_20=YES xferlog_file=/var/log/vsftpd.log xferlog_std_format=YES idle_session_timeout=0 data_connection_timeout=0 nopriv_user=ftpsecure connect_from_port_20=YES listen=YES chroot_local_user=YES chroot_list_enable=NO ls_recurse_enable=YES listen_ipv6=NO pam_service_name=vsftpd userlist_enable=YES tcp_wrappers=YES FTP challenges me for a username and password, I provide them, Login Incorrect. I have verified, this user is able to login from ssh. Something is screwed up with pam_service. Anonymous (if changed to allowed) seems to work well. SELinux is disabled. Ftpsecure appears to be configured fine... I am at a complete loss! Here are the log files I examined with no success: /var/log/messages /var/log/xferlog #empty /var/log/vsftpd.log #empty /var/log/secure Found something in /var/log/audit/audit.log: type=USER_AUTH msg=audit(1335632253.332:18486): user pid=19528 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:authentication acct="kate" exe="/usr/sbin/vsftpd" hostname=ip68-5-219-23.oc.oc.cox.net addr=68.5.219.23 terminal=ftp res=failed' Perhaps I should look at /var/log/wtf-is-wrong.help :-) Further info: /etc/pam.d/vsftpd looks like this: #%PAM-1.0 session optional pam_keyinit.so force revoke auth required pam_listfile.so item=user sense=deny file=/etc/vsftpd/ftpusers onerr=succeed auth required pam_shells.so auth include password-auth account include password-auth session required pam_loginuid.so session include password-auth
In my user account page, I analyzed my reputation total, and it didn't add up: I think they should match. What's wrong? What am I missing? UPDATE: first time of downvote cast for me !! After casting downvote , my reputation was descreased as my downvote casted. But there has nothing showing. I think that may differ reputation. Am I right ?
When I visit the reputation tab of my profile, I see a lot of stuff. I can make out some of it, but not all. What do all the event types mean? Why do some events show an odd reputation gain or not show any reputation change at all? Why are some events sometimes highlighted in yellow? My reputation suddenly dropped, but I don't see anything. What happened? Why do some events disappear from my reputation history?
If I execute ls -al, i get: drwxr-xr-x 14 root root 4096 Jan 16 02:15 <dir-name> But I want: drwxr-xr-x 14 <user> <user> 4096 Jan 16 02:15 <dir-name>
How can I use the chown command to change the ownership of all a folder's subfolders and files?
I'm write simple application to load csv file,and in c# code start the new thread to load heavy csv file with this code: Thread workerThread = new Thread(DoWork); workerThread.Priority = ThreadPriority.Highest; workerThread.Start(); and into the DoWork i try run this code: public void DoWork() { label1.Text = "ok"; } but when receive label line i get this error: An unhandled exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll Additional information: Cross-thread operation not valid: Control 'label1' accessed from a thread other than the thread it was created on. What happen?thanks.
I have a scenario. (Windows Forms, C#, .NET) There is a main form which hosts some user control. The user control does some heavy data operation, such that if I directly call the UserControl_Load method the UI become nonresponsive for the duration for load method execution. To overcome this I load data on different thread (trying to change existing code as little as I can) I used a background worker thread which will be loading the data and when done will notify the application that it has done its work. Now came a real problem. All the UI (main form and its child usercontrols) was created on the primary main thread. In the LOAD method of the usercontrol I'm fetching data based on the values of some control (like textbox) on userControl. The pseudocode would look like this: CODE 1 UserContrl1_LoadDataMethod() { if (textbox1.text == "MyName") // This gives exception { //Load data corresponding to "MyName". //Populate a globale variable List<string> which will be binded to grid at some later stage. } } The Exception it gave was Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on. To know more about this I did some googling and a suggestion came up like using the following code CODE 2 UserContrl1_LoadDataMethod() { if (InvokeRequired) // Line #1 { this.Invoke(new MethodInvoker(UserContrl1_LoadDataMethod)); return; } if (textbox1.text == "MyName") // Now it wont give an exception { //Load data correspondin to "MyName" //Populate a globale variable List<string> which will be binded to grid at some later stage } } BUT BUT BUT... it seems I'm back to square one. The Application again become nonresponsive. It seems to be due to the execution of line #1 if condition. The loading task is again done by the parent thread and not the third that I spawned. I don't know whether I perceived this right or wrong. I'm new to threading. How do I resolve this and also what is the effect of execution of Line#1 if block? The situation is this: I want to load data into a global variable based on the value of a control. I don't want to change the value of a control from the child thread. I'm not going to do it ever from a child thread. So only accessing the value so that the corresponding data can be fetched from the database.
In the sentence "A junk vehicle is any vehicle, or parts of a vehicle, which meets at least three of the following criteria...," shouldn't "meet" be singular due to the preceding "or"? I've encountered some alternative treatment of situations like this so am confused. Thanks in advance.
The following sentence refers to an apocalyptic story where money no longer has any value: A can of sardines, radio batteries, or a bicycle is/are more precious than money. Should I use is or are after the series?
So I've installed ubuntu on a laptop which used to run windows 10. I realized way to late that all the ethernet and wifi firmware was proprietary and default iso didn't have it. I attempted to follow this post: but sadly I don't even have make it seems.
I need to install wifi drivers on my laptop, the drivers I have use 'Make' during the install process. How can I download 'Make' without installing and save to usb (obviously using a pc with internet connection)?
Here is an example of Unix Shell program diff, from Version Control with Git, by Loeliger, 2ed: Let’s look at the diff in detail. In the header, the original file is denoted by - - - and the new file by +++. The @@ line provides line number context for both file versions. What do the numbers in the "@@" line mean exactly?
I have file1.txt this is the original text line2 line3 line4 happy hacking ! and file2.txt this is the original text line2 line4 happy hacking ! GNU is not UNIX if I do: diff file1.txt file2.txt I get: 3d2 < line3 5a5 > GNU is not UNIX How is the output generally interpreted? I think that < means removed but what do 3d2 or 5a5 mean? If I do: $ diff -u file1.txt file2.txt --- file1.txt 2013-07-06 17:44:59.180000000 +0200 +++ file2.txt 2013-07-06 17:39:53.433000000 +0200 @@ -1,5 +1,5 @@ this is the original text line2 -line3 line4 happy hacking ! +GNU is not UNIX The results are clearer but what does @@ -1,5 +1,5 @@ mean?
I want to run a background scheduler in my web application. This scheduler will check the current time and if it matches with the programmed time then it sends a E-mail. How can i create background Scheduler ?
I have a site on my webhotel I would like to run some scheduled tasks on. What methods of achieving this would you recommend? What I’ve thought out so far is having a script included in the top of every page and then let this script check whether it’s time to run this job or not. This is just a quick example of what I was thinking about: if ($alreadyDone == 0 && time() > $timeToRunMaintainance) { runTask(); $timeToRunMaintainance = time() + $interval; } Anything else I should take into consideration or is there a better method than this?
Which one is correct or more correct? I consider it to be true. or I consider it true. Or maybe both? According to Google Ngram Viewer both are used with the second being more common.
In a casual search of the web, I found a few indications English does not allow zero copulas (). However, I frequently see sentences with subordinate clauses that juxtapose a noun phrase with an adverb phrase, such as the following from a contemporary sci-fi author: Kai stares up at me from the grave, his eyes hard as obsidian. If this clause were made into a sentence, it would take an obligatory verb: *His eyes hard as obsidian. His eyes are hard as obsidian. The original clause seems to contain an implicit "to be." Is it an example of a zero copula? If not, what is this construction called?
i got the following error "Fehler 9 error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: bool __cdecl gameClass::getAttribute(class std::basic_string,class std::allocator >)" (??$getAttribute@_N@gameClass@@QEAA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)" in Funktion "main". C:\Users\Weexe\documents\visual studio 2010\Projects\Engine\Engine\main.obj Engine " My Code class.h template <typename T> T getAttribute(std::string attribute); class.cpp template <typename T> T gameClass::getAttribute(std::string attribute) { std::map<std::string,int> matchAttribute; matchAttribute["windowTitle"]=1; matchAttribute["windowSizeX"]=2; matchAttribute["windowSizeY"]=3; matchAttribute["isMenue"]=4; switch(matchAttribute[attribute]) { case 1: return this->windowTitle; break; case 2: return this->windowSizeX; break; case 3: return this->windowSizeY; break; case 4: return this->isMenue; break; } } Any one have an idear how to fix that error ? I think its a syntax error or smth like that :/
Quote from : The only portable way of using templates at the moment is to implement them in header files by using inline functions. Why is this? (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)
I recently had to reinstall windows due to driver issues and copied all my Steam games in the steamapps folder from the C-drive to another drive, but now I'm stuck with a problem. I have installed Steam again, but when I copy the games' backup to the steamapps folder, and then install the games again, they don't seem to pickup any game files and just starts to download the games again. I have tried verifying game cache, but it just jumps to downloading as well and I have tried modifying the appmanifest files but nothing have worked so far. Any other suggestions I could try before downloading 200GB+ again with a 4Mbps line (500kbps). Would there be any way that I can make a 'Steam'-backup (backup and restore steam games in the menu) from the games in their folders, with other words, create a bunch of *.csd and *.csm files so Steam can identify it as restoreable?
I use (and have it much bigger) drive D: to store all my user data and games, but I have installed the Steam client on drive C:. When I was installing a first game (Warhammer 40000), I've chosen to place my library folder on drive D: and the game went there. But now as I've got installed the second game (Portal), I can see that it was put on drive C: despite to the choice I've done previously. When I open Steam - Settings - Downloads + Cloud - Steam library folders, I can see both installation places in the list. Can I merge them into one? I would even agree to use the default drive C: library (as I've replaced it with a symlink already). When I press to remove one library it says it can only remove empty ones.
find all solutions in integers m,n of the equation (m-n)^2 = 4mn/(m+n-1) On solving i got, (m + n)[(m + n)/(m - n)^2 - 1] = 0 thus either m = -n or m + n = (m - n)^2 I tried some even odd stuff as m,n are integers but i am stuck now.
Find all the integer numbers (m, n) which satisfy: $(m-n)^2=4mn/(m+n-1)$
I have a function f(x):=\hat{f}(x-\lfloor x\rfloor), where \hat{f}(x) = \left\{ \begin{array}{lcl} 2x & \mbox{for} & 0\leq x\leq \frac{1}{5} \\ \frac{1}{2}+\frac{1}{3}(2x-1) & \mbox{for} & \frac{1}{5}\leq x \leq1 \end{array}\right. I am going to draw f(x) on the domain [-2,2] in latex via the tikzpicture. My idea is the following: Divide [-2,2] into pieces in order to define one function and draw. But I am pretty sure there is a more clever way to draw it. \begin{tikzpicture} \draw[->] (-2,0) -- (2,0) node[right] {$x$}; \draw[->] (0,-2) -- (0,2) node[above] {$y$}; \draw[scale=0.5,domain=0:0.2,smooth,variable=\x,blue] plot ({\x},{2*\x}); \end{tikzpicture}
I'm trying to learn to plot in latex, but I'm having a problem trying to find out which packages that are best to use in this situation, and I find it a bit of a learning curve. Suppose you have the following function: I would like to know, how I could graph this in Latex. I have searched around and found out that you could use the PGF and tikz packages, and use the declare function, but I have problems with the intervals in which $x$ is defined How would I approach this problem, as a complete newbie to graphing in Latex? I tried using a similiar post about it, and tried to plug in my intervals. My code looks like this: \documentclass[tikz]{standalone} \usepackage{pgfplots} %\pgfplotsset{compat=1.8} \begin{document} \begin{tikzpicture}[ declare function={ func(\x)= (\x \in [-\pi, -\frac{pi}{2}) * (0) + and(\x \in [-\frac{\pi}{2},\frac{\pi}{2}) * (\frac{\pi}{2}-|x|) + and(\x \in [\frac{\pi}{2}, \pi]) * (0) ; } ] \begin{axis}[ axis x line=middle, axis y line=middle, ymin=-5, ymax=5, ytick={-5,...,5}, ylabel=$y$, xmin=-5, xmax=5, xtick={-5,...,5}, xlabel=$x$, ] \end{axis} \end{tikzpicture} \end{document}
I took General Relativity at university, years ago and have a question that has recently occurred to me. This might be a dumb one, so I apologise if the answer is a well known negative. Mathematically, it seems to me that our curved spacetime must be mathematically embedded in a flat space of 5D+. I suspect that spacetime satisfies the requirement of a mathematical manifold, and the Witney embedding theorems would imply the existence of such an embedding. The analogy would be like a curved 2D sheet of paper can be thought of as being embedded in flat 3D Euclidean space. Furthermore there are the Nash embedding theorems. I am not too familiar with these, but I think they may be a stronger statement that applies to both Riemann manifolds and Pseudo Reimann manifolds. I think the Nash theorem may imply that, given a manifold (or pseudo manifold) with a metric, then a higher dimensional flat space exist which has a metric compatible with the metric of the curved space; inside which the curved space is embedded. So for instance, if spacetime is a 4D pseudo-Reimann manifold of signature (-1, 1, 1, 1), then a flat space of at least 5D exist, which will contain our 4D spacetime, and which will have a metric that is consistent with (-1, 1, 1, 1) when applied locally to our 4D spacetime. This is in analogy to the fact that metric in 3D space of signature (1, 1, 1) clearly is consistent (vi projection) with the metric of (1, 1) on the tangent plane of a point on the curved sheet of paper. Have I got this totally wrong, or is this a possibility? Please note: I am asking about the technicality of a compatible metric. I have already seen the link, below, and it does not answer my question
If you draw a big triangle in Earth 2D surface you will have an approximated spherical triangle, this will be a non euclidean geometry. but from a 3D perspective, for example the same triangle from space, it could be depicted as euclidean in 3D. Then why we talk about non-Euclidean instead of adding 1 dimension? It is easier the non-Euclidean approach? I don't see how! Sorry if the question is perhaps naive, but this is a long time doubt for me, so I will be grateful for an answer.
I have an old Windows 7 box that is used as a media centre. There are 2 partitions: C contains all the sys files, and all the data is stored on D. For some reason, the C drive has been filling up with more and more data recently, and I can't figure out why. Here can you can clearly see that the C drive is I then ran WinDirStat and it looks to me like there is only about . I would expect that the usage should be much closer to 50GB, than 200GB, because that drive is only used for system files. Any ideas on how I can find out what is actually using all this space and how I can get it down?
I have 4 drives in Windows: C:, D:, E: and F:. Except C:, all of them are empty. Suddenly it shows up to 2 GB space used – even when there are no files. [ When I format the drives, it's fine for a while until it shows used space again. I use Windows 8.1 Pro 64 Bit.
I have a dual boot Lubuntu/windows 7 computer, but I want to installing new Linux, in this case Kali Linux from USB. I would like if my Lubuntu git purged, so do I just go in win and format the Lubuntu partition or can I install it just on top of my Lubuntu?
I am running window7 and Ubuntu 13.10 together. I'd like to also have Kali linux installed.Despite I did the installation of both OS , I am not a veteran in this subject , I dont know where to start on and if it is possible with a total HD of 250gb Many thanks in advance