- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
- 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…
14 Posted Topics
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 = … | |
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")); … | |
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"> … | |
**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" … | |
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 … | |
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. > … | |
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 =) | |
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] … ![]() | |
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 … | |
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 … | |
Re: you need to save it, in a session.. eg: [CODE]<html> <head> <link rel="stylesheet" type="text/css" href="fh.css" /> </head> <body> <?php session_start(); if(isset($_POST['login'])){ $user = $_POST['user']; $pass = $_POST['pass']; if ($user == "Enter" && $pass == "12345"){ echo "Access Granted"; $_SESSION["remember"] = "yay"; }else{ echo "Access Denied"; } } <form action='forms.php' method='post'> … | |
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 … | |
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: … | |
Re: You have startet the session two times. (you dont need to start a session in this case) You hasn't defined a mysql password and i dont know what acts does.. in your sql query i have rewirted your code =) [CODE] <?php if(! $_POST["regfname"] || ! $_POST["reglname"] || ! $_POST["regcname"] … |
The End.