-
as seen on Server Fault
- Search for 'Server Fault'
I'm running a KVM instance inside of OpenStack, and it isn't getting an IP address from the DHCP server.
Using tcpdump, I can see the request and reply packets on vnet0 of the compute host:
# tcpdump -i vnet0 -n port 67 or port 68
tcpdump: WARNING: vnet0: no IPv4 address assigned
tcpdump: verbose…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
Deployed bundle:~makyo/openstack/2/openstack, on top of 7 physical boxes and 3 virtual ones. After changing vip_iface strings to point to right devices, e.g., br0 instead of eth0, and defining "/mnt/loopback|30G", in Cinder's block-device string, am able to navigate through openstack dashboard, error…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have the following scalar function in MS SQL 2005:
CREATE FUNCTION [dbo].[Distance] ( @lat1 float, @long1 float,@lat2 float, @long2 float )
RETURNS float
AS
BEGIN
RETURN (3958*3.1415926*sqrt((@lat2-@lat1)*(@lat2-@lat1) + cos(@lat2/57.29578)*cos(@lat1/57.29578)*(@long2-@long1)*(@long2-@long1))/180);
END
I…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I was using the xattr pecl extension in 12.04 (in fact, I think since 10.04) without problem. Not surprisingly, I had to reinstall it after upgrading to 12.10 because of the new version of PHP.
But now it fails to build, and I can't figure out why. Other PECL extensions have built fine. And I have…
>>> More
-
as seen on Game Development
- Search for 'Game Development'
Here's one way to implement delta time:
/// init ///
var duration = 5000,
currentTime = Date.now();
// and create cube, scene, camera ect
//////
function animate() {
/// determine delta ///
var now = Date.now(),
deltat = now - currentTime,
currentTime = now,
scalar…
>>> More