-
as seen on Stack Overflow
- Search for 'Stack Overflow'
i have this huge function and i am wondering how to make it recursive. i have the base case which should never come true, so it should always go to else and keep calling itself with the variable t increases. any help would be great
thanks
def draw(x, y, t, planets):
if 'Satellites' in planets["Moon"]:
…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm trying to calculate the sunset / rise times using python based on the link provided below.
My results done through excel and python do not match the real values. Any ideas on what I could be doing wrong?
My Excel sheet can be found under .. http://transpotools.com/sun_time.xls
# Created on…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi Guys,
I'm constructing a geolocation based application and I'm trying to figure out a way to make my application realise when a user is facing the direction of the given location (a particular long / lat co-ord). I've got the math figured, I just have the triangle to construct.
//UPDATE
So…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
so I'm trying to make a program that will output the sum, average, and smallest and largest values. I have everything basically figured out except the smallest and largest values are outputting 2147483647 and -2147483647, which I believe are the absolute smallest and largest values that Java will…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I've heard many times that all programming is really a subset of math. Some suggest that OO, at its roots, is mathematically based. I don't get the connection. Aside from some obvious examples:
using induction to prove a recursive algorithm
formal correctness proofs
functional languages
lambda calculus
asymptotic…
>>> More
-
as seen on Super User
- Search for 'Super User'
I am currently working on a document that was written using Microsoft Word 2007 and I am also using Microsoft Word 2007 to update the document. It is just the way of the workplace I am now in.
I have noticed that the feature of adding nested headers ("subheaders" perhaps) does not work the same…
>>> More
-
as seen on Super User
- Search for 'Super User'
Recently, something changed with my Microsoft Word 2007 installation/preferences on Windows XP, such that whenever I open a word document, all the field codes are displayed raw instead of as their expanded value. For example, my header reads:
My Name { TITLE \* MERGEFORMAT } Version { REVNUM…
>>> More
-
as seen on Super User
- Search for 'Super User'
Hi,
I was wondering if there's a way to get a word count that excludes text with a specific Style in a Microsoft Word 2007 document?
I've seen this related question, but I've got blocks of source code scattered throughout which would mean I'd have to go through each of my documents a section at…
>>> More
-
as seen on Super User
- Search for 'Super User'
I tend to have a few Word documents that I keep open all the time, with notes for a long-running project. Normally they are all minimized.
The problem is that when I click on a different .doc or .docx file in Windows Explorer, even though the new document opens in its own window, the other, minimized…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I want to open a word document through my program in C# and document path to read or write to.
2.To change the formatting of text in the word document as if i wanted the word window to give me the text in RTF format or plain text or docx (supported formats)
3.If i can retrieve the text in my given…
>>> More