Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #4K
~4K People Reached
Interests
cars, computers, and other technical things
PC Specs
AMD Phenom ii X4 955, overclock: 4.20 GHzATI RADEON HD 5770 1GB overclock: 960 MHzASUS M4A88TD-V EVO…
Favorite Tags
Member Avatar for brugernavn

Hello, I got this error: `IndentationError: expected an indented block` Im new to python and only used to php, i have no idea what to do. #!/usr/bin/python import numpy as np import argparse import cv2 cap = cv2.VideoCapture(0) while(True): # Capture frame-by-frame ret, frame = cap.read() # Operations orig = …

Member Avatar for brugernavn
0
1K
Member Avatar for brugernavn

Hello, PHP gives me wrong calculation results. !? Example, PHP says that: (47,60*554,82)/100 = 263,7 The right result is: 264 My code: function kurs_usd($value) { // in use (usd to dkk) $kurs = mysql_fetch_array(mysql_query("SELECT kurs, time FROM pvs.kurs WHERE id = 'usd'")); if(time() >= $kurs['time']) { $data = explode("\n", file_get_contents("http://www.nationalbanken.dk/_vti_bin/DN/DataService.svc/CurrencyRatesXML?lang=da")); …

Member Avatar for brugernavn
0
591
Member Avatar for brugernavn

Hello, I am trying to "transfer" geolocation-data to a php script. I think, that the reason it wont work is, i can't get the varible from outside the function. So far, i got this code. How do i get it to work?! :) <body onload="office_getLocation()"> <script src="min.js" type="text/javascript"></script> <script type="text/javascript"> …

Member Avatar for DJBirdi
0
500
Member Avatar for brugernavn

**Hello :)** I just installed bind9 on my ubuntu server. I can reach my domain fine, from any computer at home (i have fine result when trying to run: "`dig @my-public-ip mydomain.com`").. But i can't reach my domain from outside (vpn).. Do i just need to wait, for the "root-servers.net" …

Member Avatar for CimmerianX
0
188
Member Avatar for brugernavn

Hello :D Im 100% noob to javascript.. now, i have this script: <script> if(navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { document.write(position.coords.latitude + '_' + position.coords.longitude); }); } </script> and i need to send the location data to a php script.. Is there any easy and smart way to do souch things? The easy …

Member Avatar for NardCake
0
187
Member Avatar for brugernavn

Hello =) I have a lilte problem with my dhcp server.. when i try to start isc up.. i got this message "failed to start" syslog: > Jul 1 15:31:11 nectioon-home-server dhcpd: Internet Systems Consortium DHCP Server 4.1-ESV-R4 > Jul 1 15:31:11 nectioon-home-server dhcpd: Copyright 2004-2011 Internet Systems Consortium. > …

0
157
Member Avatar for brugernavn

hello folks, How can i make a .deb package with a executable php script in it? so.. I can just say: apt-get install my-package ..then my package will execute a php-script that are inclueded in the package. ofcause php5-cgi is installed on the system. Hope you understand me =)

Member Avatar for Habitual
0
97
Member Avatar for brugernavn

There must be a easier way to do this: it prints the size of a mysql database in Megabytes. $query = mysql_query("SELECT data_length, index_length FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'pvs'"); while($data = mysql_fetch_array($query)){ $num[] = ($data['data_length'] + $data['index_length']); } for($i = 0; $i < count($num); $i++) { $tot = $num[$i] …

Member Avatar for diafol
0
144
Member Avatar for brugernavn

Hello :) Is it possible to host 500 heavy websites on a single apache installation? How many resource do i need to have? 16GB of ram? 3 Ghz cpu? Will it be a problem to "reload" the virtual host conf file? (if i reload it with: *apachectl -k graceful*) Best …

Member Avatar for rch1231
0
101
Member Avatar for brugernavn

Hey, I have a couple of questions about cloud computing. Now, If i connect 10 computers together in a cloud, can I consider the 10 computers to be one big computer? If i have 3 computers with 100Gb hdd each, connectet in a cloud. Can i so make a vm …

Member Avatar for thelostboy
0
212
Member Avatar for Hendo

I'm trying to make a simple login page to grant access to my form pages. I don't want anything fancy, just a simple name and password match to grant access. What I have grants access no matter what is typed in, and I don't understand why. Any help would be …

Member Avatar for EnjoyYourMeal
0
242
Member Avatar for brugernavn

hejsa, I just got a little problem.. [B]i only have one public ip.. but i need to host several websites over many local ip's..[/B] so, i need to forward the incomming requsts (from the public) to one of the local ip's.. based on the domainname.. so, [B]mydomain.com > my public …

Member Avatar for brugernavn
0
170
Member Avatar for brugernavn

Hello =), I can't understand why my dns server won't work. i get this, when i testing with "dig" [CODE]; <<>> DiG 9.7.3 <<>> connectioon.eu ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 54973 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: …

Member Avatar for brugernavn
0
150
Member Avatar for akshayphp

I am basically creating a registration page. Tell me where I am wrong in this code. [CODE] <?php session_start();session_destroy(); session_start(); if($_POST["regfname"] && $_POST["reglname"] && $_POST["regcname"] && $_POST["regemail"] && $_POST["regphone"] && $_POST["regwebsite"]) { if($_POST["regpass"]==$_POST["regcpass"]) { $servername="localhost"; $username="akshay"; $conn= mysql_connect($servername,$username)or die(mysql_error()); mysql_select_db("akshay",$conn); $sql="INSERT INTO acts(fname,lname,cname,email,phone,website,password)values('$_POST[regfname]','$_POST[reglname]','$_POST[regcname]','$_POST[regemail]','$_POST[regphone]','$_POST[regwebsite]','$_POST[regpass]'); $result=mysql_query($sql,$conn) or die(mysql_error()); print "<h1>you have registered …

Member Avatar for hakeemtunde
0
266