Jump to content

peranha

Members
  • Posts

    878
  • Joined

  • Last visited

Everything posted by peranha

  1. The cameras that we install come with a pigtail on them, and have 2 screw terminals (unmarked) that you screw one wire to positive, and one wire to negative. It is a guessing game, but having done this for 4 years now, I have got it down (for the most part). Then when we install new cameras, it is all different.
  2. Why? Don't they have circuits that prevent them from failing due to reverse polarisation? I worked with a lot of industrial automation hardware and most of it would not fail from that (I won't say any, because I did not test all of it ). Now... putting 110/230AC, where 24DC should go... this usually yields some spectacular results. Most cameras are duel polarity (work on 24VAC, and 12VDC in either position) Some cameras are strictly 12VDC, which have a heater and fan in them which needs positive on one post and negative on another. I have blown many cameras because I thought that they were duel polarity, and in fact were not.
  3. yeah, it was only 13k, and you want to make sure the polarity of the power was correct.
  4. Thanks, that worked. The tutorial that I followed didn't have that in it for some reason.
  5. I have this code and I cannot get the points to display on the map. It keeps saying marker is not defined. Line 53 <script type="text/javascript"> function createMarker(point,html) { var marker = new GMarker(point); GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(html); }); return marker; } window.onload = showMap; function showMap() { var map = new GMap(document.getElementById("map")); map.addControl(new GSmallMapControl()); map.centerAndZoom(new GPoint(-108.5010, 45.7982), 14); <?php if (mysql_num_rows($cityresult) > 0) { // yes // print them one after another while($row = mysql_fetch_row($cityresult)) { ?> var point = new GLatLng(<?php echo $row[1]; ?>, <?php echo $row[0]; ?>); createMarker(point, '<?php echo $row[2]; ?>'); map.addOverlay(marker); <?php // Line 53 ?> <?php } } ?> } </script>
  6. Yeah, they have quite sophisticated cameras. 360° view cameras are not that uncommon now. I have installed cameras with a 42x optical zoom, with 16x digital zoom. They can look in the windows of the school 3/4 mile away, and read what is written on the chalk board/white board. I could only give the public ones, where they are located (ones I can remember), as far as zoom, camera type, etc. they are different, and I would not be able to remember all of them. It depends on what the customer want to see. you can get a lens from 2.6mm (which is a wide angle about 90°) to a 32mm (which is a zoom lens used to view down a few blocks and see what is happening. 20° view is about all.) It is very hard to say what a camera can view because the lenses are interchangeable.
  7. Being I install and repair CCTV equipment, I can tell you where all the cameras are in the areas that I service which is a 5 state region. Sadly, as stated in the link, this info is not required to be given out to anyone, they are just required to post that "This building may be recorded by video and audio equipment." sort of saying. It doesnt have to be in a specific area, just on the entrance to the build and they are covered. Now days almost every outdoor camera at a government facility is a PTZ "moveable camera", so even if you were to take pictures, etc, it may not have helped in your case as the camera may not have been pointed at the bike rack, or where ever you had your bike tied up to.
  8. peranha

    Linux OR unix.

    Not sure ASP runs on Linux. I could be wrong though, Ive never seen it.
  9. search google for "bbcode scripts" Here is a tutorial from the second link. http://www.phpbuilder.com/board/showthread.php?t=10313499
  10. Yes I do, it is included in my header file. When I insert it into this file, it says A session had already been started - ignoring session_start()
  11. Yeah, but that still doesnt help with the session not getting set. I am not sure why it isnt.
  12. What tests have you done? echo out the session, and it is empty, not set, moved the $_SESSION['img_number'] around, and still nothing. Submitted the code, and it does not validate, keeps giving me "Undefined index: img_number"
  13. Thanks, that fixed that error, but now it will not set the $str in a session for me to check on submit. Here is the code. <?php $string = "abcdefghijklmnopqrstuvwxyz0123456789"; $str = NULL; for($i=0;$i<6;$i++){ $pos = rand(0,36); $str .= $string[$pos]; } $textbox = imagettfbbox($fontSize, 0, $font, $str) or die('Error in imagettfbbox function'); $x = ($width - $textbox[4])/2; $y = ($height - $textbox[5])/2; imagettftext($img_handle, $fontSize, 0, $x, $y, $txtColor, $font , $str) or die('Error in imagettftext function'); for($i=0;$i<$lineCount;$i++){ $x1 = rand(0,$width);$x2 = rand(0,$width); $y1 = rand(0,$width);$y2 = rand(0,$width); imageline($img_handle,$x1,$y1,$x2,$y2,$lineColor); } session_start(); header('Content-Type: image/jpeg'); imagejpeg($img_handle,NULL,100); imagedestroy($img_handle); $_SESSION['img_number'] = $str; ?>
  14. I have this captcha, and it say undefined variable str on line 24, it worked before, but now doesnt. Not sure why it quit working. <?php $string = "abcdefghijklmnopqrstuvwxyz0123456789"; for($i=0;$i<6;$i++){ $pos = rand(0,36); $str .= $string{$pos}; //Line 24 } ?>
  15. What he is wanting I dont think is really doable without editing the SMF code, which the admins here dont want to do because when upgrades are done, all the editing is erased. he also said to insert what in put in the chat window in the forum database to be searchable.
  16. Viewing the source, it looks like you have 2 different header files On the one page the doctype is indented, and on the other it is not, your favicon paths are different, One page has keywords, the other doesnt. Just a guess though. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>TheHyp.net Main Index</title> <link href="cssface.css" rel="stylesheet" type="text/css" /> <link rel="shortcut icon" href="favicon.ico"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="description" content="TheHYP focuses on music news and reviews, also covering other forms of media and art"> <meta name="keywords" content="HYP, hype, music, reviews, articles, news, massachusetts, new england, boston, hip, california, progressive, rock, metal, indie, nu metal, instrumental, movies, art, video, concerts, youtube, audio, mp3, live music, music dvds, divx, artist"> <title>Articles @ thehyp.net</title> <link href="../cssface.css" rel="stylesheet" type="text/css" /> <link rel="shortcut icon" href="../favicon.ico" /> <link rel="alternate" type="application/rss+xml" title="TheHYP.net RSS Feed" href="http://thehyp.net/general/hyprss.xml" />
  17. Have you uploaded it to the server?
  18. <?php if (isset($_SESSION['session_name_here'])) { // Code to be run here } ?>
  19. Website is under construction page?
  20. Sorry, maybee I wasnt quite clear on my last post. That is why I also check the ip in the database for the logged in user with the ip from the visiting user as well as the logged_in session variable. On login store their ip and on each page, check it with the database.
  21. What I do as an added security is to check their ip and add it to the session, and check their current ip against the session ip.
  22. From my experiance you need to set it to a variable. <?php $docroot = $_SERVER['DOCUMENT_ROOT'][ require_once($docroot/includes/config.php?gzipoff=1'); ?> Also, always start php with the full php tags as short tags may not be supported on the server. In your case right now they probably are, but if you ever move servers, they may not be.
  23. In here if ($updateScript == 'ttp') { $var14 = mysql_real_escape_string($_GET['var14']); $query = "UPDATE thermal_transfer_paper SET category='TTP', material='$var14', along those lines.
  24. if posts have more than 1 page, you can view all the posts on one page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.