How to specify frame tick labels without modifying the Automatic tick marks?
Formatting Ticks and FrameTicks labels with a function
In Delphi, is TDataSet thread safe? I'd like to be able to open a TDataSet asynchronously in its own thread so that the main VCL thread can continue until that's done, and then have the main VCL thread read from that TDataSet afterwards. I've done some experimenting and have gotten into some very weird situations, so I'm wondering if anyone has done this before.  I've seen some sample apps where a TDataSet is created in a separate thread, it's opened and then data is read from it, but that's all done in the separate thread. I'm wondering if it's safe to read from the TDataSet from the main VCL thread after the other thread opens the data source.  I'm doing Win32 programming in Delphi 7, using TmySQLQuery from  as my TDataSet descendant. I am using Microsoft Visual C++ on Windows and Qt Creator on Ubuntu. I can't change permissions on my flash drive (FAT32), even as root.  How can I change permissions on a FAT32 flash-drive? Is the product of symmetric positive semidefinite matrices positive definite? Product of path connected spaces is path connected Problem from Herstein on group theory The problem is:  If $G$ is a finite group with order not divisible by 3, and $(ab)^3=a^3b^3$ for all $a,b\in G$, then show that $G$ is abelian.  I have been trying this for a long time but not been able to make any progress. The only thing that I can think of is: $$ab\cdot ab\cdot ab=aaa\cdot bbb\implies(ba)^2=a^2b^2=aabb=(\text{TPT})abba.$$ Now, how can I prove the last equality? If I write $aabb=abb^{-1}abb$, then in order for the hypothesis to be correct, $b^{-1}abb=ba\implies ab^2=b^2a$. Where am I going wrong? What should I do? Are wormholes really a valid shortcut to distant points in the universe? Lately I encountered a few times references to wormholes as a way to reach distant places in the universe in a short time. I have to admit I don't have a proper knowledge of the mathematics behind wormholes (although I won't mind a complete GR explanation in the answer, if necessary). All I know is that wormholes are usually compared to something analogous to a tunnel through the planet Earth to reach distant places in less time. The problem is, if I want to reach the other side of the planet I have to travel 20.000 km on its surface and "only" 12.000 km through its center. While the latter is surely shorter, it's still more than 50% of the initial value and this is the best-case scenario. For shorter distances, the difference becomes more and more negligible.  Now, I know enough of GR to understand that this explanation could be a simplification so extreme that any comparison makes little to no sense, but I'm curious to understand if the same problems arise for wormholes too. I don't really care if wormholes exist, are traversable by spaceships and both the crew and the vessel can survive the travel undamaged, I know they are still a theoretical construct and probably there is more than one formulation for it. What I'm really interested in is:   How much shorter will the travel be? I'm interested in Earth proper time, because if the reduction is only in the spaceship proper time, the we can achieve the same result "simply" by traveling closer to the speed of light. Does the amount of reduction in time depend on the distance between the endpoints? If so, it seems unpractical to travel to near stars through wormholes, if the spacetime geometry of our galaxy doesn't help somehow (local curvature should be higher than global curvature). Why Can't I duck reverb on the mix bus in Unity? i'm surprised there is so little documentation on this issue. But i'm trying to duck the audio on all the mix buses in Unity so that you can clearly hear the VO of the game.  Now it works great except that I have some reverb zones in the game and any sound that plays in these reverb zones, the actual reverb itself is NOT DUCKED.  So the VO is accompanied with a huge wall of wishy washy muddy noise.  Anyone deal with this before? How can we deal with this? Display keyboard without animation How to find out why "context is incorrect"? Assume that given three predicates are presented below: $H(x)$: $x$ is a horse $A(x)$: $x$ is an animal $T(x,y)$: $x$ is a tail of $y$ Then, translate the following inference into an inference using predicate logic expressions and prove whether inference is valid or not (for instance, using natural deduction): Horses are animals.  Horses' tails are tails of animals. My thoughts: I am quite good at translating predicate logic expressions, but here I struggled to come up with formula for Horses' tails. My initial idea was to consider similar sentence such as &quot;w is a tail of a horse&quot; to form required inference, but it was not successful. Would be welcomed to hear your ideas about this task. Show that if $n$ is not divisible by $2$ or by $3$, then $n^2-1$ is divisible by $24$.   I thought I would do the following ... As $n$ is not divisible by $2$ and $3$ then $$n=2k+1\;\text{or}\\n=3k+1\;\text{or}\\n=3k+2\;\;\;\;$$for some $n\in\mathbb{N}$. And then make induction over $k$ in each case.$$24\mid (2k+1)^2-1\;\text{or}\\24\mid (3k+1)^2-1\;\text{or}\\24\mid (3k+2)^2-1\;\;\;\;$$This question is in a text of Euclidean Division I'm reviewing, and I wonder if there is a simpler, faster, or direct this way. Limits, find a limit that exist in absolute value but not outside the absolute value. I understand monsters only spawn in a 9 x 9 grid of chunks centered on the player, and I assume they stay around while they remain within that distance of you. But do they despawn as soon as you move away from them? Or do they remain? If so what (if anything) causes them to despawn? Are the rules any different for passive mobs?  Will running far away from an area and then coming right back clear it of monsters? How do I choose between "while" and "whilst"? When should whilst be used instead of while?  For example, should I use the first or the second sentence?      They don't do this whilst they do that.   They don't do this while they do that.   Which would be correct? Is every discrete absolute value non-archimedean? I've been reading Milne's notes on absolute values and local fields (Chapter 7 of the book on algebraic number theory), and a possibly minor point is confusing me.   On page 126, Milne writes, "$K$ is a field complete with respect to a discrete absolute value $|\cdot|$..." and then he talks about things that only make sense for non-archimedean absolute values, like the ring of integers and its maximal ideal.   Is every discrete absolute value on a field $K$ also non-archimedean? This would explain a lot, but I also suspect that it is not true, because I can't find any statement of this fact anywhere.  EDIT: An absolute value is discrete if the value group $|K^\times|$ is a discrete subgroup of the multiplicative group $\mathbb{R}_{&gt;0}$. An absolute value is non-archimedean if it satisfies the stronger triangle inequality $$ |x+y| \le \max (|x|,|y|) $$ or equivalently if the set $\{|1|,|1+1|,|1+1+1|,\ldots\}$ is a bounded subset of $\mathbb{R}$. Determine pid of terminated process When is the order of convergence of Newton-Raphson greater than 2? If some function $f$ has a simple root at $x_*$ then I know that the order of convergence of the Newton-Raphson iteration is at least 2. But when is this order strictly greater than 2? A week ago I  people on this site what mathematical background was needed for understanding Quantum Physics, and most of you mentioned Linear Algebra, so I decided to conduct a self-study of Linear Algebra. Of course, I'm just 1 week in, but I have some questions.    How is this going to be applicable to quantum physics? I have learned about matrices (addition, subtraction, multiplication and inversion) and about how to solve multiple equations with 3 unknowns using matrices, and now I am starting to learn about vectors. I am just 1 week in, so this is probably not even the tip of the iceberg, but I want to know how this is going to help me.  Also, say I master Linear Algebra in general in half a year (I'm in high school but I'm extremely fast with maths), what other 'types' of math would I need to self-study before being able to understand rudimentary quantum physics mathematically? This code is part of a larger code that generates an Arithmetic Quiz, although the code I have show below just saves the score that the user got on the test and their name. When saving the code it checks if the user has taken the quiz before. If the user has taken the quiz before it saves it as 'Older Score' or 'Oldest Score', however if the user has not taken the quiz before it generates a new row for them. Additionally it works out the average score and highest score for all users it has the data for. For my task I'm supposed to make the code as short as possible.  name = ""+first_name+" "+last_name rows_data = [] class_file_names = ['Class 1.csv', 'Class 2.csv', 'Class 3.csv'] scan = open(class_file_names[int(math_class)-1], 'r+') rows = csv.reader(scan) for row in rows:     rows_data.append(row) scan.close() class_file_names=['Class 1.csv', 'Class 2.csv', 'Class 3.csv'] csvfile=open(class_file_names[int(math_class)-1], 'w', newline="") fieldnames = ['Student Name', 'Oldest Score', 'Older Score', 'Latest Score', 'Average', 'Highest'] writer = csv.DictWriter(csvfile, fieldnames=fieldnames) writer.writeheader() nameFound=False for x in rows_data[1:]:     if x[0] == name:         x[3]=x[2]         x[2]=x[1]         x[1]=str(score)         x[4]=(int(x[1])+int(x[2])+int(x[3]))/3         x[5]=max(x[1],x[2],x[3])         nameFound=True     writer.writerow({'Student Name': x[0], 'Oldest Score': x[3], 'Older Score': x[2], 'Latest Score': x[1], 'Average': x[4], 'Highest' : x[5]})  if nameFound==False:     writer.writerow({'Student Name': name, 'Latest Score': score, 'Older Score': '0', 'Oldest Score': '0', 'Average': score, 'Highest': score}) csvfile.close() input("Test complete! Press anything to close.") Allow converting comments to answers Allow converting comments to answers, so they can become accepted answers.  I asked a question. Someone commented on it, and it was an awesome comment that fully answered the question. As the original questioner, I would like to convert that comment to an answer in order to accept it.  Or, if you prefer, I would be okay with being able to simply mark the comment as accepted.