Python writing a .csv file with rows and columns transpose
How to transpose a dataset in a csv file?
Convert UTC/GMT time to local time We are developing a C# application for a web-service client. This will run on Windows XP PC's.  One of the fields returned by the web service is a DateTime field. The server returns a field in GMT format i.e. with a "Z" at the end.  However, we found that .NET seems to do some kind of implicit conversion and the time was always 12 hours out.  The following code sample resolves this to some extent in that the 12 hour difference has gone but it makes no allowance for NZ daylight saving.  CultureInfo ci = new CultureInfo("en-NZ"); string date = "Web service date".ToString("R", ci); DateTime convertedDate = DateTime.Parse(date);               As per :     UTC/GMT Offset       Standard time zone: UTC/GMT +12 hours   Daylight saving time: +1 hour   Current time zone offset: UTC/GMT +13 hours     How do we adjust for the extra hour? Can this be done programmatically or is this some kind of setting on the PC's? How to create dummy webcam? I would like to join some videoconference, but I don't own a webcam and the conference software requires one.  So my question is, can I create a dummy one? I don't care what the cam will cast, I just need to appear to have one. In an Integral Domain is it true that $\gcd(ac,ab) = a\gcd(c,b)$? In my algebra class I was given as homework assignment to prove that:     Given an integral domain $A$ and $a,b,c,d,e \in A$. Then if $d = \gcd(b,c)$ and $e = \gcd(ac, ab)$ then $e = ad$.   It is easy to see that $ad \mid ab$ and $ad \mid ac$, so this implies that $\exists q \in A; e = q(ad)$. Now I'm having problems showing that $q = 1_A$. Working through some equalities, I proved that $\forall n\in \mathbb{N}, q^n \mid d$ so this gives me the light suspicion that I might be going the right way, but I'm pretty positive that this does not imply $q = 1_A$.  Does anyone want to give me a hint?  Thanks in advance :) $\mathbb{Q}^{\times}$ is the group of rational number without $0$ under multiplication, and $\mathbb{Z}^{n}$ is the free abelian group of rank $n$. Show that $\mathbb{Q}^{\times}$ not isomorphic to $\mathbb{Z}^{n}$. I tried to assume that there is an isomorphism and to get a contradiction.. didn't succeed How to show every field is a Euclidean Domain. I'm having trouble proving this. This is what I have so far:  Let $F$ be a field. Let $v(x) \rightarrow 1$ for all $x$ not equal to $0$.  So if we let $x$ be in $F$ where $x$ not zero then we can write $x$ as: $x=qy+r$ for some $y$ in $F$. If $r$ not zero then $V(r)=1$.  Not sure what to do from here. I know eventually I'm supposed to get no remainder $(r=0)$ but I'm stuck at applying the definition and valuation map. What is LINQ? I know it's for databases, but what does it do? Booking travel tickets for visa without paying? Software for text search in files I am looking for a software that will search text in files from a folder similar to .  Is there something similar? I am new to Drupal. I have been trying to make a slide show on the front page but I am facing an issue on how to upload images of my choice in the slide show. I.e. the images that I have in my computers folder.  I have created a view and placed an image field in it, everything is set. I have also added the block to the main page content. All I can see on the front page is the slider title obviously since i have not been able to add any images.   Can any body tell me how to set my own images to the slider?  I don't want to use fixer slider.  I have used views slide show and some other js files for cycle.  Edit: Here is a screenprint of the view I defiined so far: Is it correct to say e.g. "I like your way of wearing" or "the way you wear looks perfect"?  Is it politely? Is it in use or not? May I use "the way you wear" referring to whole wearings including dress, scarf, hat, bracelet. jewellery, etc?  Thank you for your suggestions in advance. Cast Double to Integer in Java How do I fix a "Problem with MergeList" or "status file could not be parsed" error when trying to do an update? The computer gave me this output in a window:  E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages E: The package lists or status file could not be parsed or opened.   How can I fix this? Here's the very dumb way:  def divisorGenerator(n):     for i in xrange(1,n/2+1):         if n%i == 0: yield i     yield n   The result I'd like to get is similar to this one, but I'd like a smarter algorithm (this one it's too much slow and dumb :-)  I can find prime factors and their multiplicity fast enough.  I've an generator that generates factor in this way:  (factor1, multiplicity1) (factor2, multiplicity2) (factor3, multiplicity3) and so on...  i.e. the output of   for i in factorGenerator(100):     print i   is:  (2, 2) (5, 2)   I don't know how much is this useful for what I want to do (I coded it for other problems), anyway I'd like a smarter way to make  for i in divisorGen(100):     print i   output this:  1 2 4 5 10 20 25 50 100     UPDATE: Many thanks to Greg Hewgill and his "smart way" :) Calculating all divisors of 100000000 took 0.01s with his way against the 39s that the dumb way took on my machine, very cool :D  UPDATE 2: Stop saying this is a duplicate of  post. Calculating the number of divisor of a given number doesn't need to calculate all the divisors. It's a different problem, if you think it's not then look for "Divisor function" on wikipedia. Read the questions and the answer before posting, if you do not understand what is the topic just don't add not useful and already given answers. Can I get a rebate after using my HSA? "Reality" of length contraction in SR Significance contradiction in linear regression: significant t-test for a coefficient vs non-significant overall F-statistic How to disable the "highlight changes" feature? Our admins deployed a new version of Notepad++ (version 6.3) on our machines, and this version is highlighting all changes done in a file by default. It does so by setting the background color of every modified line to a bright orange, which I find very distracting.  We  have dozens of plugins installed, but I double checked and we do not have the "Change Markers" plugin (which could be the culprit).  Any idea where I can disable this feature? Changing the highlight color could also be an option. For valuation rings I know examples which are Noetherian.      I know there are good standard non Noetherian Valuation Rings. Can anybody please give some examples of rings of this kind?    I am very eager to know. Thanks. Why don't Minidumps give good call stacks? Change \textwidth and \textheight in mid-document