-
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 Server Fault
- Search for 'Server Fault'
ASA Spoke to Spoke Communication
I have been looking at spke to spoke comms or "hairpining" for months and have posted on numerouse forums but to no avail.
I have a Hub and spoke network where the HUB is an ASA Firewall version 8.2
* I basicaly want to allow 2 spokes to be able to communicate with…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
is there possibility to map something like:
private Map<Website, Map<String, String>> parameterMaps =
new HashMap<Website, Map<String, String>>();
Where 'Website' is my class having some strings attributes, and inner map should be some website specific url parts. I'd…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi all
So, I need to do this: http://seeds.dk/find-din-seeds with jQuery. Also, I need to have some callback when clicking a needle.
Are there some ready-made plugins for this function?
>>> More
-
as seen on Super User
- Search for 'Super User'
I've found a guide here:
http://www.pendrivelinux.com/boot-multiple-iso-from-usb-multiboot-usb/
And found this menu.lst in my flash drive, which seems to be the one that I'm seeing when I boot using my flash drive:
# This Menu Created by Lance http://www.pendrivelinux.com
# Ongoing Suggested Menu…
>>> More
-
as seen on SQL Blog
- Search for 'SQL Blog'
Host Michael Coles (blog|twitter) has selected LOB data as the topic for this month's T-SQL Tuesday, so I'll take this opportunity to post an overview of reporting with spatial data types. As part of my work with SQL Server 2008 R2 Reporting Services, I've been exploring the use of spatial data types…
>>> More