bobgo2728

Members
  • Content Count

    186
  • Joined

  • Last visited

Posts posted by bobgo2728

  1. and I did that once already. I am just not sure what I want to do. I want this SOB to work and not be a crap hole that it is now.

    I have a Linksys WRT54G v2.0 wireless router and ever since I changing the firmware I do not experience connection drops or lockups. I used the Sveasoft Alchemy firmware, but DD-WRT is also available which reveals a lot of features in the router.

    If you do not like the new firmware after taking it out for a test drive you can always revert to Linksys stock firmware.

  2. Air flow = Good

    Reset button = tried, same results,

    UPS = no but sure that is not an issue

    Don't you just wish that they had router diagnostic software like they make hard drive testers?

    It could always be the router going bad. I had a magnavox which kept dropping signal every day and had to be powered off and back on to connect and it would work for another day. Eventually it became a brick and even the reset button did nothing.

    It could be heat, is it in a location where it is not in sunlight and gets adequate airflow?

    I also would try using the reset button and re configuring everything and seeing if that helps.

    Do you have it plugged into a UPS with automatic voltage regulation/ line filtering ? A small voltage spike to small to trip a surge supressor could have damaged it and be the root of the issue.

    Or it may just be dying .

    Some folks get many years out of a router, others see them fail fairly early in life.

    Might also check your routers system logs to see if it lists a cause of the error like the firewall blocking traffic due to some perceived threat.

  3. OK I have had my issues with my Linksys WRT54G version 2.2 as of late and I am wondering if 3rd party firmware is worth it and or will fix the problem. So far I have heard bad stories about it.

    My router is doing this that drives me nuts.

    1) drops my DSL connection at random times.

    2) has the correct firmware version # but the date of the firmware is wrong.

    3) I use logmein.com and it allows me in for 30 seconds or less.

    4) drops my wireless signal at random times

    5) does not bridge well with my Speedstream 4200 or 5200 modem from my DSL company.

    So what do you guys think? Should I get 3rd party? I tried ww-drt a while back but it looked way to out there for me and put back the orginal linksys stuff.

  4. OK I have www.bogointeractive.com/test3/ and if you highlight the page you will see the calendar there in the page. Now I am trying to get it to look like http://www.planetradio1073.com/pages/pic_otd.html to where the images that big images display down below in thumb nails. So here is the code from the index.php for you.

    <?PHP require_once('Calendar.php');
    $cal = new Calendar(); ?>


    <html>
    <head>

    <style type="text/css" media="all">@import "/style.css";</style>

    </head>
    <body>
    <center>

    <?=$cal->getMonthHTML(date("m"),date("Y"));?>

    <img src="<?=date("Y")?>/<?PHP echo date("md") ?>.jpg">

    </center>
    </body>
    </html>

    and here is the code from Calendar.php

    <?

    // PHP Calendar Class Version 1.4 (5th March 2001)
    //
    // Copyright David Wilkinson 2000 - 2001. All Rights reserved.
    //
    // This software may be used, modified and distributed freely
    // providing this copyright notice remains intact at the head
    // of the file.
    //
    // This software is freeware. The author accepts no liability for
    // any loss or damages whatsoever incurred directly or indirectly
    // from the use of this script. The author of this software makes
    // no claims as to its fitness for any purpose whatsoever. If you
    // wish to use this software you should first satisfy yourself that
    // it meets your requirements.
    //
    // URL: http://www.cascade.org.uk/software/php/calendar/
    // Email: [email protected]


    class Calendar
    {
    /*
    Constructor for the Calendar class
    */
    function Calendar()
    {
    }


    /*
    Get the array of strings used to label the days of the week. This array contains seven
    elements, one for each day of the week. The first entry in this array represents Sunday.
    */
    function getDayNames()
    {
    return $this->dayNames;
    }


    /*
    Set the array of strings used to label the days of the week. This array must contain seven
    elements, one for each day of the week. The first entry in this array represents Sunday.
    */
    function setDayNames($names)
    {
    $this->dayNames = $names;
    }

    /*
    Get the array of strings used to label the months of the year. This array contains twelve
    elements, one for each month of the year. The first entry in this array represents January.
    */
    function getMonthNames()
    {
    return $this->monthNames;
    }

    /*
    Set the array of strings used to label the months of the year. This array must contain twelve
    elements, one for each month of the year. The first entry in this array represents January.
    */
    function setMonthNames($names)
    {
    $this->monthNames = $names;
    }



    /*
    Gets the start day of the week. This is the day that appears in the first column
    of the calendar. Sunday = 0.
    */
    function getStartDay()
    {
    return $this->startDay;
    }

    /*
    Sets the start day of the week. This is the day that appears in the first column
    of the calendar. Sunday = 0.
    */
    function setStartDay($day)
    {
    $this->startDay = $day;
    }


    /*
    Gets the start month of the year. This is the month that appears first in the year
    view. January = 1.
    */
    function getStartMonth()
    {
    return $this->startMonth;
    }

    /*
    Sets the start month of the year. This is the month that appears first in the year
    view. January = 1.
    */
    function setStartMonth($month)
    {
    $this->startMonth = $month;
    }


    /*
    Return the URL to link to in order to display a calendar for a given month/year.
    You must override this method if you want to activate the "forward" and "back"
    feature of the calendar.

    Note: If you return an empty string from this function, no navigation link will
    be displayed. This is the default behaviour.

    If the calendar is being displayed in "year" view, $month will be set to zero.
    */
    function getCalendarLink($month, $year)
    {
    return "";
    }

    /*
    Return the URL to link to for a given date.
    You must override this method if you want to activate the date linking
    feature of the calendar.

    Note: If you return an empty string from this function, no navigation link will
    be displayed. This is the default behaviour.
    */
    function getDateLink($day, $month, $year)
    {
    return "";
    }


    /*
    Return the HTML for the current month
    */
    function getCurrentMonthView()
    {
    $d = getdate(time());
    return $this->getMonthView($d["mon"], $d["year"]);
    }


    /*
    Return the HTML for the current year
    */
    function getCurrentYearView()
    {
    $d = getdate(time());
    return $this->getYearView($d["year"]);
    }


    /*
    Return the HTML for a specified month
    */
    function getMonthView($month, $year)
    {
    return $this->getMonthHTML($month, $year);
    }


    /*
    Return the HTML for a specified year
    */
    function getYearView($year)
    {
    return $this->getYearHTML($year);
    }



    /********************************************************************************

    The rest are private methods. No user-servicable parts inside.

    You shouldn't need to call any of these functions directly.

    ***************************************************************************
    ******/


    /*
    Calculate the number of days in a month, taking into account leap years.
    */
    function getDaysInMonth($month, $year)
    {
    if ($month < 1 || $month > 12)
    {
    return 0;
    }

    $d = $this->daysInMonth[$month - 1];

    if ($month == 2)
    {
    // Check for leap year
    // Forget the 4000 rule, I doubt I'll be around then...

    if ($year%4 == 0)
    {
    if ($year%100 == 0)
    {
    if ($year%400 == 0)
    {
    $d = 29;
    }
    }
    else
    {
    $d = 29;
    }
    }
    }

    return $d;
    }


    /*
    Generate the HTML for a given month
    */
    function getMonthHTML($m, $y, $showYear = 1)
    {
    $s = "";

    $a = $this->adjustDate($m, $y);
    $month = $a[0];
    $year = $a[1];

    $daysInMonth = $this->getDaysInMonth($month, $year);
    $date = getdate(mktime(12, 0, 0, $month, 1, $year));

    $first = $date["wday"];
    $monthName = $this->monthNames[$month - 1];

    $prev = $this->adjustDate($month - 1, $year);
    $next = $this->adjustDate($month + 1, $year);

    if ($showYear == 1)
    {
    $prevMonth = $this->getCalendarLink($prev[0], $prev[1]);
    $nextMonth = $this->getCalendarLink($next[0], $next[1]);
    }
    else
    {
    $prevMonth = "";
    $nextMonth = "";
    }

    $header = $monthName . (($showYear > 0) ? " " . $year : "");

    $s .= "<table class=\"calendar\">\n";
    $s .= "<tr>\n";
    $s .= "<td align=\"center\" valign=\"top\">" . (($prevMonth == "") ? " " : "<a href=\"$prevMonth\"><<</a>") . "</td>\n";
    $s .= "<td align=\"center\" valign=\"top\" class=\"calendarHeader\" colspan=\"5\">$header</td>\n";
    $s .= "<td align=\"center\" valign=\"top\">" . (($nextMonth == "") ? " " : "<a href=\"$nextMonth\">>></a>") . "</td>\n";
    $s .= "</tr>\n";

    $s .= "<tr>\n";
    $s .= "<td align=\"center\" valign=\"top\" class=\"calendarHeader\">" . $this->dayNames[($this->startDay)%7] . "</td>\n";
    $s .= "<td align=\"center\" valign=\"top\" class=\"calendarHeader\">" . $this->dayNames[($this->startDay+1)%7] . "</td>\n";
    $s .= "<td align=\"center\" valign=\"top\" class=\"calendarHeader\">" . $this->dayNames[($this->startDay+2)%7] . "</td>\n";
    $s .= "<td align=\"center\" valign=\"top\" class=\"calendarHeader\">" . $this->dayNames[($this->startDay+3)%7] . "</td>\n";
    $s .= "<td align=\"center\" valign=\"top\" class=\"calendarHeader\">" . $this->dayNames[($this->startDay+4)%7] . "</td>\n";
    $s .= "<td align=\"center\" valign=\"top\" class=\"calendarHeader\">" . $this->dayNames[($this->startDay+5)%7] . "</td>\n";
    $s .= "<td align=\"center\" valign=\"top\" class=\"calendarHeader\">" . $this->dayNames[($this->startDay+6)%7] . "</td>\n";
    $s .= "</tr>\n";

    // We need to work out what date to start at so that the first appears in the correct column
    $d = $this->startDay + 1 - $first;
    while ($d > 1)
    {
    $d -= 7;
    }

    // Make sure we know when today is, so that we can use a different CSS style
    $today = getdate(time());

    while ($d <= $daysInMonth)
    {
    $s .= "<tr>\n";

    for ($i = 0; $i < 7; $i++)
    {
    $class = ($year == $today["year"] && $month == $today["mon"] && $d == $today["mday"]) ? "calendarToday" : "calendar";
    $s .= "<td class=\"$class\" align=\"right\" valign=\"top\">";
    if ($d > 0 && $d <= $daysInMonth)
    {
    $link = $this->getDateLink($d, $month, $year);
    $s .= (($link == "") ? $d : "<a href=\"$link\">$d</a>");
    }
    else
    {
    $s .= " ";
    }
    $s .= "</td>\n";
    $d++;
    }
    $s .= "</tr>\n";
    }

    $s .= "</table>\n";

    return $s;
    }


    /*
    Generate the HTML for a given year
    */
    function getYearHTML($year)
    {
    $s = "";
    $prev = $this->getCalendarLink(0, $year - 1);
    $next = $this->getCalendarLink(0, $year + 1);

    $s .= "<table class=\"calendar\" border=\"0\">\n";
    $s .= "<tr>";
    $s .= "<td align=\"center\" valign=\"top\" align=\"left\">" . (($prev == "") ? " " : "<a href=\"$prev\"><<</a>") . "</td>\n";
    $s .= "<td class=\"calendarHeader\" valign=\"top\" align=\"center\">" . (($this->startMonth > 1) ? $year . " - " . ($year + 1) : $year) ."</td>\n";
    $s .= "<td align=\"center\" valign=\"top\" align=\"right\">" . (($next == "") ? " " : "<a href=\"$next\">>></a>") . "</td>\n";
    $s .= "</tr>\n";
    $s .= "<tr>";
    $s .= "<td class=\"calendar\" valign=\"top\">" . $this->getMonthHTML(0 + $this->startMonth, $year, 0) ."</td>\n";
    $s .= "<td class=\"calendar\" valign=\"top\">" . $this->getMonthHTML(1 + $this->startMonth, $year, 0) ."</td>\n";
    $s .= "<td class=\"calendar\" valign=\"top\">" . $this->getMonthHTML(2 + $this->startMonth, $year, 0) ."</td>\n";
    $s .= "</tr>\n";
    $s .= "<tr>\n";
    $s .= "<td class=\"calendar\" valign=\"top\">" . $this->getMonthHTML(3 + $this->startMonth, $year, 0) ."</td>\n";
    $s .= "<td class=\"calendar\" valign=\"top\">" . $this->getMonthHTML(4 + $this->startMonth, $year, 0) ."</td>\n";
    $s .= "<td class=\"calendar\" valign=\"top\">" . $this->getMonthHTML(5 + $this->startMonth, $year, 0) ."</td>\n";
    $s .= "</tr>\n";
    $s .= "<tr>\n";
    $s .= "<td class=\"calendar\" valign=\"top\">" . $this->getMonthHTML(6 + $this->startMonth, $year, 0) ."</td>\n";
    $s .= "<td class=\"calendar\" valign=\"top\">" . $this->getMonthHTML(7 + $this->startMonth, $year, 0) ."</td>\n";
    $s .= "<td class=\"calendar\" valign=\"top\">" . $this->getMonthHTML(8 + $this->startMonth, $year, 0) ."</td>\n";
    $s .= "</tr>\n";
    $s .= "<tr>\n";
    $s .= "<td class=\"calendar\" valign=\"top\">" . $this->getMonthHTML(9 + $this->startMonth, $year, 0) ."</td>\n";
    $s .= "<td class=\"calendar\" valign=\"top\">" . $this->getMonthHTML(10 + $this->startMonth, $year, 0) ."</td>\n";
    $s .= "<td class=\"calendar\" valign=\"top\">" . $this->getMonthHTML(11 + $this->startMonth, $year, 0) ."</td>\n";
    $s .= "</tr>\n";
    $s .= "</table>\n";

    return $s;
    }

    /*
    Adjust dates to allow months > 12 and < 0. Just adjust the years appropriately.
    e.g. Month 14 of the year 2001 is actually month 2 of year 2002.
    */
    function adjustDate($month, $year)
    {
    $a = array();
    $a[0] = $month;
    $a[1] = $year;

    while ($a[0] > 12)
    {
    $a[0] -= 12;
    $a[1]++;
    }

    while ($a[0] <= 0)
    {
    $a[0] += 12;
    $a[1]--;
    }

    return $a;
    }

    /*
    The start day of the week. This is the day that appears in the first column
    of the calendar. Sunday = 0.
    */
    var $startDay = 0;

    /*
    The start month of the year. This is the month that appears in the first slot
    of the calendar in the year view. January = 1.
    */
    var $startMonth = 1;

    /*
    The labels to display for the days of the week. The first entry in this array
    represents Sunday.
    */
    var $dayNames = array("S", "M", "T", "W", "T", "F", "S");

    /*
    The labels to display for the months of the year. The first entry in this array
    represents January.
    */
    var $monthNames = array("January", "February", "March", "April", "May", "June",
    "July", "August", "September", "October", "November", "December");


    /*
    The number of days in each month. You're unlikely to want to change this...
    The first entry in this array represents January.
    */
    var $daysInMonth = array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);

    }

    ?>

    So what in the calendar.php do I have to edit?

  5. OK but is there an easy way also to add in a calendar view below it with thumbnails?

    The script can be changed to whatever you need. The month and day version above uses "files/photo/<month>/<day>.jpg" where <month> and <day> are integers in the ranges [1,12] and [1,31], resp. The day of the year version uses "files/photo/<day>.jpg" where <day> is an integer in the range [0,365].

    If you use either script, you might want to fix the inconsistent pluralization of "files" and "photo". I don't know why I did that.

  6. OK got it, now what do I call the images and what folders would I or need to put them into.

    Month and day version:

    <?php

    function photoOfTheDay($month, $day)
    {
    return 'files/photo/' . strval($month) . '/' . strval($day) . '.jpg';
    }

    $date = getdate();
    $photo = photoOfTheDay($date[month], $date[mday]);

    ?>

    <center>
    <img src="<?php echo $photo ?>">
    </center>

    Day of the year version:

    <?php

    function photoOfTheDay($day)
    {
    return 'files/photo/' . strval($day) . '.jpg';
    }

    $date = getdate();
    $photo = photoOfTheDay($date[yday]);

    ?>

    <center>
    <img src="<?php echo $photo ?>">
    </center>

  7. So do I use this code that you have given me or does it not work?

    The code for the day-of-the-year version would identical to the code post except that the range of the $n parameter would be [0,365] instead of [1,31].

    The code for the day-of-the-month would be something like

    function photoOfTheDay($month, $day)
    {
    return 'files/photo/' . strval($month) . '/' . strval($day) . '.jpg';
    }

    photoOfTheDay(3, 15) would yield "files/photo/3/15.jpg". The range checks would be complicated...

    ...however, the range checks above don't work, anyway: you get broken links on valid dates if the files don't exist. The script could check for the files, but it might be easier to omit the check and look for broken links in the generated pages.

  8. OK give me an example of what the code would look like. I would like to have this thing be abled to be loaded up for several months down the road.

    The array is unnecessary.

    $totalPics = 30;

    function photoOfTheDay($n)
    {
    global $totalPics;
    $n = $n > $totalPics ? rand(1, $totalPics) : $n;
    return 'files/photo' . strval($n) . '.jpg';
    }

    You could span several months by having separate directories for each month, passing the month number into the function, and returning "files/photo/$month/$day.jpg". Or one directory with "photo$month$day.jpg". Or by using the day of the year (date('z')). Or by using "$month * 31 + $day;". Or....

  9. OK I found this script that will do a image of the day. It changes over at midnight of the server time. Which is fine with me. Now I am wondering how I can have it 1) display the images in a calander view below so that way there are thumbnails. 2) how to have it be able to load up more then 31 images so I don't have to change it for several months down the road. Anyway here is the code.

    <?php

    $totalPics="31";

    $photoOfTheDay = Array (

    '1' => 'files/photo1.jpg' ,
    '2' => 'files/photo2.jpg' ,
    '3' => 'files/photo3.jpg' ,
    '4' => 'files/photo4.jpg' ,
    '5' => 'files/photo5.jpg' ,
    '6' => 'files/photo6.jpg' ,
    '7' => 'files/photo7.jpg' ,
    '8' => 'files/photo8.jpg' ,
    '9' => 'files/photo9.jpg' ,
    '10' => 'files/photo10.jpg' ,
    '11' => 'files/photo11.jpg' ,
    '12' => 'files/photo12.jpg' ,
    '13' => 'files/photo13.jpg' ,
    '14' => 'files/photo14.jpg' ,
    '15' => 'files/photo15.jpg' ,
    '16' => 'files/photo16.jpg' ,
    '17' => 'files/photo17.jpg' ,
    '18' => 'files/photo18.jpg' ,
    '19' => 'files/photo19.jpg' ,
    '20' => 'files/photo20.jpg' ,
    '21' => 'files/photo21.jpg' ,
    '22' => 'files/photo22.jpg' ,
    '23' => 'files/photo23.jpg' ,
    '24' => 'files/photo24.jpg' ,
    '25' => 'files/photo25.jpg' ,
    '26' => 'files/photo26.jpg' ,
    '27' => 'files/photo27.jpg' ,
    '28' => 'files/photo28.jpg' ,
    '29' => 'files/photo29.jpg' ,
    '30' => 'files/photo30.jpg' ,
    '31' => 'files/photo31.jpg' ,

    );

    // Place day of month in variable 'x'
    //$x=date("d");
    // A website vistor made a suggestion to change the date function to use j
    // instead of d. This causes the date to be read without leading zeros.
    $x=date("j");

    // If value of date exceeds the amount of photos then pick a random photo to display
    if($x > $totalPics) { $x=rand(1,$totalPics); }

    // Display image
    echo <<<EOC
    <center><img src="$photoOfTheDay[$x]"></center>
    EOC;

    ?>

  10. OK I am trying to figure something out here. When I view <a href="http://www.dirtpit.tv/test/">this</a> in FireFox it works just fine. But when I view it in IE 7, I see nothing. I seen no flash at all. What gives? I mean the code is all the same as on the front of <a href="http://www.dirtpit.tv">DirtPit.TV</a>. Any thoughts on what could be wrong?

    <OBJECT classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,18,0" width="384" height="288" id="DirtPit_Welcome" ALIGN="">
    <PARAM NAME=movie VALUE="/media/DirtPit_Welcome.swf">
    <PARAM NAME=loop VALUE=false>
    <PARAM NAME=menu VALUE=true>
    <PARAM NAME=quality VALUE=high>
    <PARAM NAME=bgcolor VALUE=#000000>
    <EMBED src="/media/DirtPit_Welcome.swf" loop=false menu=true quality=high bgcolor=#000000 width="384" height="288 NAME="DirtPit_Welcome" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
    </OBJECT><br /><br /></center>

  11. Well I was told of this free configuration software that is out there that helps with the configuration of my video capture card. It mainly is something that just helps with aspect ratios and things of that sort.

    What do you mean by configuration? Windows movie maker detects video capture cards and can record from it. It comes with XP and i am assuming vista as well.
  12. OK gang, here is a doozy. I use UStream.tv as you can see on, http://www.kibz.com/index_sub.php?id=77 and you can see that cam 3 is all fisheyed or zoomed way in. I am using these cams that are on BNC connections that come into a video capture card via the gold RCA input. Now I have switched out the cams to see if it is the problem, nope. So I tried a different cord, nope. So I am not sure but maybe the card is wacky. So I am wondering if anyone can help me out here. I am wondering if I need to setup the input software that comes with the card. I mean it looks fine in windows movie maker and other video capture software but not on UStream. What is the deal.

  13. Unmanned balloon. The equipment might come back, depending on where it lands. We mainly need some type of a small GPS unit to use satilite or something other than cell for it to report back its position to us back at the station. Also, we would like to have a webcam that could use cell data and or min as we could probably get it sponsored but with rual USA it is likely that cell might not work, but we can try anyways. We just need something that is cheap and easy to setup and that is proven to work.

    Tracfone doesnt offer data services, and youd need unlimited data. Otherwise that looks like itd work.

    Or

    Probably be fairly easy to send up an older, cheap laptop + web cam + mobile card.

    When you say balloon, is this a manned balloon? Is the equipment coming back or is it disposable?

  14. OK Gang here is a deal that I need some help with. I work for a radio station and we want to put a wireless webcam of some kind or a cam that will work with a mobile card from Sprint or something. We want to mount this on a balloon and launch it and have it be connected to the web the entire time if possible. If not just have it hit and miss.

  15. See this PC would be running XP Pro but if it will portion traffic with XP dat would be sweet. our cams are on a biz class cable right now but we are trying to work a trade with the phone company for DSL or better.

    As Jeff says. It depends on your service.

    But it might help in other ways.

    I have to use two nic connections. For the reason, my 10/100/1000 nic built into the mobo still won't except or work under XP. No matter what I do. So I had to add a card just for XP to connect (dual boot system). Vista just loves the integrated setup tho. and just flies with the 10/100/1000 setup.

    But I got to noticing both nic cards were working while running Vista. Started to dig deeper and discovered that both are talking to the network and moving information for different usages.

    So if this works for you. One card might dedicate itself to just video uploading while the other sets itself for normal workloads. Not sure if it will work under XP or not.