1. ASP.NET Radio Button problem

    Date: 02/07/05 (Web Development)    Keywords: html, web

    I am trying to read some radiobutton values into a a email function but
    can't seem to get them to display if anyone has some ideas then let me
    know, its doing my nut in.

    Sub Page_Load(ByVal Sender As Object, ByVal e As EventArgs)

    ' radio button list one
    dim NoOfStaff=New SortedList

    ' Radio Button List One
    dim TypeOfCompany=New SortedList
    TypeOfCompany.Add("5","Creative Industry")
    TypeOfCompany.Add("6","Other (Please specify below) * ")

    ' list of variables
    Dim name, company, position, address, phone, fax, email, web, staff, type, other, comments, newsletter As String

    request variables

    End Sub

    ' Send Email Function
    Sub send_email(Sender as Object, E as EventArgs)

    If Page.IsValid Then

    Dim comptype as String

    If request.form("tb10")= 1 Then
    comptype = "Engineering"
    Elseif request.form("tb10")= 2 Then
    comptype = "Clothing/Textiles"
    Elseif request.form("tb10")= 3 Then
    comptype = "Food/Drink"
    Elseif request.form("tb10")= 4 Then
    comptype = "Healthcare"
    Elseif request.form("tb10")= 5 Then
    comptype = "Creative Industry"
    Elseif request.form("tb10")= 6 Then
    comptype = "Other (Please specify below) * "
    End If

    Display1.text = comptype

    Dim MsgBody as String

    MsgBody = "Name: "
    MsgBody = MsgBody + tb1.text
    MsgBody = MsgBody + "
    MsgBody = MsgBody + tb2.text
    MsgBody = MsgBody + "
    Position in company: "
    MsgBody = MsgBody + tb3.text
    MsgBody = MsgBody + "
    Address: "
    MsgBody = MsgBody + tb4.text
    MsgBody = MsgBody + "
    Phone: "
    MsgBody = MsgBody + tb5.text
    MsgBody = MsgBody + "
    Fax: "
    MsgBody = MsgBody + tb6.text
    MsgBody = MsgBody + "
    Email: "
    MsgBody = MsgBody + tb7.text
    MsgBody = MsgBody + "
    Web Address: "
    MsgBody = MsgBody + tb8.text
    'MsgBody = MsgBody + "
    No of Staff: "
    'MsgBody = MsgBody + tb9.text
    MsgBody = MsgBody + "
    Type: "
    MsgBody = MsgBody + comptype
    MsgBody = MsgBody + "
    Other: "
    MsgBody = MsgBody + tb11.text
    MsgBody = MsgBody + "
    Comments: "
    MsgBody = MsgBody + tb12.text
    MsgBody = MsgBody + "

    ' Create new email and send it
    Dim newMail As New MailMessage
    newMail.BodyFormat = MailFormat.html
    newMail.From = "info@accordia.org.uk"
    newMail.To = tb7.text
    newMail.Subject = "Ready2Change Feedback Form"
    newMail.Body = MsgBody

    ' Sending mail
    SmtpMail.SmtpServer = ""

    End If

    End Sub

    Source: http://www.livejournal.com/community/webdev/169845.html

  2. photography website

    Date: 02/05/05 (Web Development)    Keywords: web, hosting, yahoo

    i have an imac. i need to build a website that will allow people to view and "hopefully" buy my photography. (and i know nothing about starting a website) i was going to go through godaddy for hosting it. but i need to know what program i can use to build it. the only experience i've had with websites is the geocities on yahoo and i designed our website at work using homestead, but that only works on pcs. (and these were already set up for me, i just update them).

    can any recommend what i should use? thanks!

    Source: http://www.livejournal.com/community/webdev/169604.html

  3. File Transfer/Shell Program Recommendations?

    Date: 02/02/05 (Web Development)    Keywords: web, linux

    Can anyone recommend a good freeware, GUI-based file transfer and shell program for Windows so that I can upload files to and run commands on my remote Linux webhost? Ideally I would like something along the lines of SSH Tectia Client, but I currently cannot afford the €136.62 price tag.

    Thanks in advance.

    Source: http://www.livejournal.com/community/webdev/168084.html

  4. Redirect _all_ queries to a single file

    Date: 02/06/05 (Apache)    Keywords: web, apache

    So I got tired of seeing advertisements on every web page I visit, really really tired. I downloaded a hosts file (http://someonewhocares.org/hosts/) that declares a huge list of servers known to display ads as, which redirects it to the copy of apache I run continuously. This of course speeds up page loads quite a bit, but it would display "page not found" errors everywhere an ad used to be. Sometimes it would just have a picture frame, but the picture would be empty. In any case, I was happy that the ads were gone.
    Then I got to thinking (uh oh!), how could I make this better? I wanted to remove the page not found text and replace it with a blank nothing, like a transparent gif or something. As it turns out, usually the requests the ad servers are to subdirectories or whatnot, usually long strings of meaningless characters. There's no possible way to put a transparent gif at every possible location, but I can use mod_rewrite instead.
    I tried playing around a bit, and came up with the idea of redirecting all requests to a small 1x1 gif that was a single transparent pixel. Problem is, I can't seem to get it to do what I want. Here is the simple rule I came up with in .htaccess

    options +FollowSymLinks

    RewriteEngine On
    RewriteBase /
    RewriteRule (.*) /trans.gif

    I have .htaccess and trans.gif stored in the root of my webserver's directory, which is /Library/WebServer/Documents. I adjusted the entry for that directory to be "AllowOverride All" just in case. Now the server is returning "Internal Server Error" instead of page not found. What am I doing wrong?

    Thanks in advance!

    Source: http://www.livejournal.com/community/apache/16787.html

  5. Deploying a simple servlet on Tomcat.

    Date: 12/14/04 (Apache)    Keywords: browser, html, xml, java, web

    Edit: Thanks, solved.

    Hi, I'm having problems deploying a very simple servlet on Tomcat 5.5. When I direct my browser to the expected URL, Tomcat just spits back a blank "Directory Listing for /" page, and I'm not seeing anything helpful in the logs.

    I'm wondering if the problem is that I have not included any .html files in my webapp ... but I don't understand why I would need to, or what I would have to put in it.

    Compiles fine.
    Servlet Code:
    public class HelloWorldExample extends HttpServlet {

    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException
       PrintWriter out = response.getWriter();
       out.println("See my first demo work!");

    The URL I type into my browser is
    http://localhost:8080/Hello. No dice :(

    Web.xml config:

     Hello v2
     Hello Demo


    As I understand it, this configuration should allow me to access my servlet by http://localhost:8080/Hello

    .war layout:

    I've read the tomcat docs and "Tomcat - The Definitive Guide" (O'Reilly). Many thanks if anyone could offer me some pointers.

    Source: http://www.livejournal.com/community/apache/14800.html

  6. Rewrite rule help in apache 2.

    Date: 12/09/04 (Apache)    Keywords: php, web, hosting

    We are using dynamic virtual hosting for a number of domains. The original request was to be able to go to http://somedomain.com/dav and update a webpage. This worked great. But now we would like to do this with dav over ssl. We don't want to buy an ssl certificate for every domain, so I would like to do a redirect from the virtual host to the ssl host. I can not do a Redirect /dav https://sslhost.com/davvhosts/%O as Redirect can not handle the %O.

    So I would like to do a Rewrite on the ssl server based on the HTTP_REFERER variable, but I can't get it to work:

    The Virtual host stuff:

      UseCanonicalName Off
      CustomLog logs/access_log vcommon
      VirtualDocumentRoot /web/vhosts/%0/htdocs
      VirtualScriptAlias /web/vhosts/%0/cgi-bin
        Options FollowSymLinks ExecCGI Multiviews Includes
        AllowOverride All
        ForceType application/x-httpd-php
      Redirect /dav https://www.sightworks.net/davvhosts

    Then in the SSL side I tried a couple things. First just modifying the HTTP_REFERER variable:
    RewriteEngine On
    RewriteMap lowercase int:tolower
    RewriteCond %{HTTP_REFERER} /dav/
    RewriteRule ^http://(.*)/dav/ $1
    RewriteCond %{REQUEST_URI} !^/icons/
    RewriteCond %{REQUEST_URI} !^/cgi-bin/
    RewriteCond %{REQUEST_URI} ^/davvhosts/
    RewriteRule ^/(.*)$ /www/vhosts/${lowercase:%{HTTP_REFERER}}/$1
    RewriteCond %{REQUEST_URI} ^/cgi-bin/
    RewriteRule ^/(.*)$ /www/vhosts/${lowercase:%{HTTP_REFERER}}/cgi-bin/$1 [T=application/x-httpd-cgi]
    RewriteCond %{REQUEST_URI} !^/icons/
    RewriteCond %{REQUEST_URI} !^/cgi-bin/
    RewriteCond %{REQUEST_URI} ^/davhosts/
    RewriteRule ^/(.*)$ /www/hosts/${lowercase:%{HTTP_REFERER}}/$1
    RewriteCond %{REQUEST_URI} ^/cgi-bin/
    I also tried just setting a different variable and using it, but that did not work either:
    RewriteEngine On
    RewriteMap lowercase int:tolower
    RewriteCond %{HTTP_REFERER} /dav/
    RewriteRule ^http://(.*)/dav/ - [E=HTTP_REFERER_HOST:$1]
    RewriteCond %{REQUEST_URI} !^/icons/
    RewriteCond %{REQUEST_URI} !^/cgi-bin/
    RewriteCond %{REQUEST_URI} ^/davvhosts/
    RewriteRule ^/(.*)$ /www/vhosts/${lowercase:%{HTTP_REFERER_HOST}}/$1
    RewriteCond %{REQUEST_URI} ^/cgi-bin/
    RewriteRule ^/(.*)$ /www/vhosts/${lowercase:%{HTTP_REFERER_HOST}}/cgi-bin/$1 [T=application/x-httpd-cgi]
    RewriteCond %{REQUEST_URI} !^/icons/
    RewriteCond %{REQUEST_URI} !^/cgi-bin/
    RewriteCond %{REQUEST_URI} ^/davhosts/
    RewriteRule ^/(.*)$ /www/hosts/${lowercase:%{HTTP_REFERER_HOST}}/$1
    RewriteCond %{REQUEST_URI} ^/cgi-bin/
    In both cases it looks like the variable being set ends up blank.
    Is what I want to do possible? If so, what am I doing wrong?
    CANCEL THAT QUESTION! I figured out the answer:
      RewriteEngine on
      RewriteLog    /web/etc/httpd/logs/rewrite.log
      RewriteCond   %{REQUEST_URI}  ^/dav$  [OR]
      RewriteCond   %{REQUEST_URI}  ^/dav/
      RewriteCond   %{HTTP_HOST}    !^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$
      RewriteRule   ^/dav.*$                https://www.sslhost.net/davvhosts/%{HTTP_HOST}/      [R,L]

    Source: http://www.livejournal.com/community/apache/14489.html

  7. What Flavor Should I Choose?

    Date: 11/07/04 (Apache)    Keywords: web, linux

    Of late I have been planning to setup a webserver1, running off of a box built from the old parts of my newly upgraded pc over my cable connection to the 'net. I don't like windows (3.1/95/98/ME/NT/2000/XP) as a OS for running a webserver2,or any other related activity, so I planned to go with linux. I had a hardcopy of good 'ol SuSE (6.1 kernel) but upon installing it, I found that what was good 4 years ago isn't quite up to what I enjoy today. So I installed a copy Redhat that I had from work. I had built a web server for the department on it, and after a bit of futzing around, enjoyed it very much. Looking around though, I found that there were a number of distros that I had only been vaguely familiar with before and each of them seemed to have some rather handy feature.

    So the question in the end is, what do I want out of the OS for my server?

    1: a stable webserver. This is covered by pretty much all distros, so no hard choices yet.
    2: an awesome desktop and USB 2.0 support. This is the secondary consideration, but rather important at the moment.

    I've looked around and talked to a few people on my friends list and a few more on IRC and have been left with more questions than answers. So far, the more I look at redhat, the more my opinion of it can be summed up by one word: 'meh.' A few friends (you know who you are :P ) have been raving to me about gentoo, but I haven't seen or heard enough about it to make an informed decision. There's always FreeBSD, but that's a bit hardcore and not so much on the 'overflowing with spiffy GUI options' side. Old SuSE doesn't seem to have anything really gigantic going for it either. I have no experience with slackware.

    As desktops go, KDE looks rather cool, as does Athena. I'ved used Gnome and it is better than CDE, but then again, what isn't?

    This is where you, my friends come in. Revel me with stories, personal experience and your wisdom.

    (x-posted, appologies if you see this more than once)

    1The webserver in question will be running primarily a website for students from my university, giving the low down on the professors so they know who to go for and who to avoid, and many other handy bits of school related information.

    2The one and only time I ever used windows as webserver (W2K) was when a web developer at work wanted to show me something. So we installed it on my box. It was compromised in 30 seconds. That may be a bit on the generous side, believe it or not. That is why I have no love for windows as an OS in this respect.

    Source: http://www.livejournal.com/community/apache/13645.html

  8. Cannot reset IE homepage

    Date: 12/21/04 (Software)    Keywords: web

    Hi guys,

    I've been having this problem for a while and it's really getting on my nerves, and I thought this community might be able help me. My IE homepage is permanently set on www.cnn.com, even though I don't want it. When I go to Tools->Internet Options, change the homepage, click Apply, and OK, and go to Tools->Internet Options again, it shows www.cnn.com again. It's not even like it reverts back after I restart IE. I even blocked that webpage, but it is still my homepage. I tried searching for .hta files on my computer but couldn't find any. I don't know what the problem is. Could someone help me? Thanks a lot!

    Source: http://www.livejournal.com/community/software/44339.html

  9. Polling script

    Date: 02/11/05 (PHP Development)    Keywords: php, web

    Hello everyone.. don't really post too much in here, but I thought i'd get some input from everyone. For the past few days, I was interested in how GD works, so I decided to write a script that would put it to use. I decided to write a poll for one of my clients, and it seems to be working pretty well. Heres a quick idea of how it works.

    - Poll module is loaded at the beginning of the script (before output) (will go into modules more in a minute)
    -- Just sets an array containing the very basic config of the poll (which db tables to use and whatnot) and also contains cookie information.

    - $cfg_poll['poll'] is set to tell which poll to load.

    - submodule 'poll_load' is loaded.
    -- DB is queried getting a bit of info on the pull (question being asked, size of poll graph, etc.
    -- DB is also queried to see if an IP matching the remote_addr exists in the answer table
    -- Last but not least, check if cookie exists for answering the poll

    If the last two things are matched, load poll_results, which just gets the answers from a db, and shows a graphical display of the poll.

    If those two aren't matched, display a form for submitting your answer to the poll.

    Anyways, if anyone has some input on this, that'd be great. I'll throw up an example when I get some real webspace. As you can see, this whole thing is done from a DB, and is fully customizable.

    Also, the whole 'module' is because this script runs off of mod_core.php, a script I wrote for making large projects easier. In short, modules are made, sub-modules can be loaded, contains debug info, etc.... Doesn't hurt too much on CPU usage either.

    ~ Fanaticus

    Source: http://www.livejournal.com/community/php_dev/52493.html

  10. Security in websites, part deux....

    Date: 01/02/05 (PHP Development)    Keywords: php, html, database, sql, java, security, web

    alright, so, i finally got around to designing my 'security system' for my family's website. here's how it'll work:

    1. user enters their username and password into an html form. a javascript function will confirm that both are between 6 and 16 characters long
    2. if they, are, they'll be passed to login.php which will double check the lenghts of the two strings, and then confirm that neither one contains anything but letters and numbers. if they don't pass muster, the user gets rerouted to the html login form.
    3. if the above two criteria evaluate to true, then a SQL query will run to see if there's a matching username and password row in a database.
    4. IF SO, the script calls session_start() and $_SESSION['UsrIsLogdIn']=true;. the script then redirects them to the rest of the site.

    now, each page on the rest of the site will do a check like this:
    if ($_SESSION['UsrIsLogdIn']!==true) {

    do you all think that this is good security? do you see any problems, loopholes, other ways in or ways to emulate the session variable being set to true? is there anything else i should add or make the pages check for?

    thanks for your help :)

    [Edit: oh, and what do you think is the best way to handle the user logging out? just setting $_SESSION['UsrIsLogdIn'] to false?]
  11. Source: http://www.livejournal.com/community/php_dev/51178.html

  12. security in websites

    Date: 12/29/04 (PHP Development)    Keywords: php, mysql, browser, database, sql, security, web

    i am preparing to design a website for my family. i'd like it to have a secure log-in, which references usernames and passwords in a mysql database. i'd like the rest of the website to be secure, meaning, if you're not logged in, you're redirected to the index. i'm planning to use sessions with cookies. as i'm relatively new to security in web design, i'd like some advice.

    i know the login.php script will check the username and password against a corresponding user table. if the login succeeds, a call will be made to session_start(). session_start() will be called on all subsequent pages, as well as a check to see if the login status is true (or something like that). herein is my first question:
    what should each subsequent page of the site check for?

    do i need to turn SSL on or will sessions, cookies and a database be enough? (it doesn't need to be super tight--mainly, some of my aunts and uncles don't want the pictures of their bikini clad daughters from our beach trips accessible to just anyone over the net.)

    ... i guess i'm not entirely sure what else to ask. i suppose that i'll need to make each page check to see if the above mentioned login status variable is set to true, but how do i set it to false? do i just design the session or cookie to expire when the browser is closed?

    any help or feedback is appreciated. if you know of a good site (that's easy to understand) which goes over what you need to do to design s secure site, please let me know.

    ah, by the way, the environment i'm designing this site for is a RedHat server with PHP4.3.9 and MySQL4.0

    thanks for your help

    Source: http://www.livejournal.com/community/php_dev/50687.html


    Date: 12/23/04 (PHP Development)    Keywords: php, virus, web

    hey, my name is Phil. i started learning PHP back in september. for some reason it didn't occur to me until now to join some lj communities about it. i just did some poking around about what looked like a virus going around some good sites and thought i'd leave a note about it, sorry if this is old news for you all:

    for those of you who run your own websites, there is a nasty worm going around servers with older versions of phpBB2 installed. it's called NeverEverNoSanity; if you go to a website and see a black background with red text which says "This site has been defaced!" then you know it got hit. anyway, upgrading to the latest version, phpBB 2.0.11 is supposed to fix the problem. just thought i'd let you know.

    here's a link: php.BB.com :: View topic - PHP exploits and phpBB.


    Source: http://www.livejournal.com/community/php_dev/50288.html

  14. Tomcat hosts?

    Date: 11/17/04 (PHP Development)    Keywords: php, mysql, database, sql, web

    (x-posted all over the damn place)

    I am currently looking for a good web host that offer Tomcat AND php AND some kind of database (MySQL or PostGres - I'm not picky). I'd also like to go with someone who has a sane usage policy (I once had a site yanked by addr.net due to "inappropriate content").

    Currently, http://www.oxxus.net/ looks pretty good.

    Anyone have any other suggestions?

    Source: http://www.livejournal.com/community/php_dev/49616.html

  15. Smarty vs PEAR template packages

    Date: 09/28/04 (PHP Development)    Keywords: php, html, web

    cross posted in php

    i'm about to rewrite a website and i'd like to use a template engine for it. i'm going to base the bulk of it on PEAR, but i'm not sure about which template package to use.

    of the PEAR template packages, at this stage i'm considering using HTML_Sigma. but i'm also looking into Smarty.

    i haven't used Smarty or any of the PEAR template packages before and i've only just started playing with Smarty.

    so what do people think is better: PEAR or Smarty?

    and why?

    Source: http://www.livejournal.com/community/php_dev/48674.html

  16. Hosting with php v5.0x

    Date: 09/22/04 (PHP Development)    Keywords: php, web, hosting

    So I am about to start on a project for a customer, and I would like to use PHPv5 for it. However my standard hosting provider (powweb) only uses php v4. Does anyone know if there is an inexpensive hosting company that supports v5 of php? As well as generally has good service.

    Source: http://www.livejournal.com/community/php_dev/48460.html

  17. Log out

    Date: 08/25/04 (PHP Development)    Keywords: web

    Hi all.

    This is probably a dead simple problem, as I'm sure just about every 's3kr3t' website does it.

    I'm trying to make a "members only" part of my web site. I use HTTP Basic Authentication to get a username and password and store that in a session. The problem I've got is when it comes to log out. In my log out script, I unregister the username, password etc and destroy the session. That's fine, session_is_registered() returns false. But now, if the user clicks "Members Area" they get straight back into the private area.

    What I'd like to happen is the user clicks log out and then when they go back to the private area they're asked for their username again.

    Any suggestions for how to sort that out?

    Source: http://www.livejournal.com/community/php_dev/46985.html

  18. how to make an ecard?

    Date: 08/25/04 (PHP Development)    Keywords: php, html, database, web

    Hello! Sorry if this is an inappropriate place to post this, I'm in a hurry and other places have been little help as of yet.

    I need advice. I am trying to create e-cards. I have the images, I need a way of sending them to people. This is for a friend's site that I'm building, and unfortunately she'd really like it within the next two weeks, so I'm trying to find something reletively easy.

    I have found many tutorials on the web - this one seemed fairly straightforward with the exception of the MS Access database. I am new to databases of any kind, and don’t have MS Access. I’d like to be able to convert it to PHP but don’t even have a clue how. I did this tutorial as well, but when I used the PHP file that came with it, no text would appear in the card. When I replaced the PHP file with a new one that supposedly fixes that issue from the message forums, I got an error that a lot of users on the site got, but all of them fixed it without explaining how. I am very new to PHP and don’t know how to edit it correctly. I’ve included the PHP file under a cut tag at the end of the post just in case any of you can see what’s wrong with it out of context.

    In theory I’d like to find either a very basic tutorial or something I can plug my images/info into, if such a thing exists. Thanks in advance for your help, it’s very much appreciated.

    I have this error "Parse error: parse error, unexpected T_STRING, expecting T_CASE or T_DEFAULT or '}" on line 9. I only included the first part of the text after HTML,HEAD, & TITLE since the error is somewhere in line 9. I’ve tried switching the quotes around and using single quote marks instead of double quotes, etc, etc.

    $ENum = $_GET["ENum"];
    $EcardText = $_GET["EcardText"];
    switch ($ENum) {

       case '1':
       $goto = "Ecard1.swf?EcardText=".$EcardText;
       $gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=1";
       $Dimensions = "WIDTH=700 HEIGHT=525";
       $DimensionsFooter = "WIDTH=700 HEIGHT=250";

       case '2':
       $goto = "Ecard2.swf?EcardText=".$EcardText;
       $gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=2";
       $Dimensions = "WIDTH=700 HEIGHT=525";
       $DimensionsFooter = "WIDTH=700 HEIGHT=250";

       case '3':
       $goto = "Ecard3.swf?EcardText=".$EcardText;
       $gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=3";
       $Dimensions = "WIDTH=700 HEIGHT=525";
       $DimensionsFooter = "WIDTH=700 HEIGHT=250";

       case '4':
       $goto = "Ecard4.swf?EcardText=".$EcardText;
       $gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=4";
       $Dimensions = "WIDTH=700 HEIGHT=525";
       $DimensionsFooter = "WIDTH=700 HEIGHT=250";

       case '5':
       $goto = "Ecard5.swf?EcardText=".$EcardText;
       $gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=5";
       $Dimensions = "WIDTH=700 HEIGHT=525";
       $DimensionsFooter = "WIDTH=700 HEIGHT=250";

    Source: http://www.livejournal.com/community/php_dev/46594.html

  19. New Member

    Date: 10/27/04 (Elite PHP Development)    Keywords: web

    Aloha to the new member enginsite,
    To all I haven't had much time to post any new code in 2 weeks, sorry for all of you who read this and haven't had an update.
    I will work on something here in a day or two. Probably something concerning my newest project.
    web based store transaction system, that also can be an online store, but is used at the checkout line in a mall :).
    Very spiffy stuff. Gonna have lots o fun with this.
    I will post code here and there about it, and puzzles, challenges.
    I've always liked nehe.gamedev.net and zend.com's coding challenges, they are the best. I want people to join this community first, and get input from users and such before that takes off.
    back to work,

    Source: http://www.livejournal.com/community/php_elite/597.html

  20. network status monitor project

    Date: 12/14/04 (Algorithms)    Keywords: browser, html, web

    Here is the gist of some project we are working on

    1) ping defined machines

    we have a ping.c program based on stevens but slightly modified so as
    to suit our project needs , it is basic and only verbose mode has been

    - It outputs to screen if run in verbose mode as ./ping -v localhost 32 2
    here 32 is packet length and 2 is the number of packets to be sent for
    ICMP echo reply
    -we compiled as cc ping.c -o ping

    2) portscan and portcheck

    we scan all ports via portscan.c program that will scan ports
    specified as argiments from start port to end port.
    It connects to ports and returns success else error thats all

    3) pingme file

    this has the hostnames or addresses in dot notation that define whom
    to ping upon .

    4) pinger shell script

    This shell script logs to /var/www/html and file created in pingme.html
    -executes the programs mentioned above and basically reads args from
    pingme file for the programs.
    - the output is logged to html file
    -execute as ./pinger

    5) open in browser
    we open http://localhost/pingme.html in browser

    Results is as below

    Statistics for ping on Mon Dec 13 21:57:51 IST 2004 from machine

    Hostname Reachable? Port 80 Port 21
    localhost: yes yes nope

    * ping
    * portcheck
    * portscan
    * script to integrate all components
    - add html output

    todo for networking project:
    * network congestion check
    * run all periodically
    * add eye-candy to html output

    Now this is project specifications we created

    Implementation of a network status monitor that can perform these steps

    1) ping all defined machines in the network from time to time, and
    alert (by an indicator on a web page or screen) when some machine is
    (2) periodically check HTTP and FTP ports of important machines (like
    your intranet server) to verify that services are running and
    responding properly
    (3) can check if there is any networking problem like ping delay or
    HTTP server responding slow
    (4) sysadmins can add custom service ports (other than HTTP/FTP) to
    their checklist
    (5) your application will then check if those ports are open from time to time

    1,2,4,5 are done so far ...for 3rd step we think some network
    congestion algorithm is needed and implementing it is needed. but
    simulation of congestion in lan is going to be tough right...any
    solutions ideas.....;)

    What more features we can add to this project to make it look l33t and
    impressive ....please do suggest some ideas.

    Deadline is approaching so please hurry....thanks again.

    Source: http://www.livejournal.com/community/algorithms/40484.html

  21. Competition: Reasonable templates, content editors, plus goodies OR my persuasive skills?

    Date: 02/23/05 (Web Development)    Keywords: web, hosting

    A potential new client/acquaintance casually contacted me inquiring about having me design a professional web site for her company....Shortly thereafter - before the sit down ironing out details discussion - she sends me an e-mail inquiring about another company who offers 50 MB hosting, 2 GB month transfer, domain name registration, web site design (generic template, mind you), a do-it-yourself content editor, 10 e-mail addresses, a professional description/write up of the company for "about us," "services," etc., AND a dial up internet connection for only.... $39.99 per month.

    That's cheap.

    I can recommend a good hosting company to her who only charges $4.00 per month for 500MB hosting, 25 GB data transfer, and.... like who needs 100 e-mail addresses, but it's included........BUT my regular web/graphic rates are between $25 and $40 per hour!!!

    Her inquiry regarding this $39.99 a month company with a $39.99 set-up fee really seems like a better deal for a simple web site....only $480-$500 per YEAR if she wants a basic web site to start out with for her company, plus all the extra goodies.

    How can I woo her away from wow of hosting, domain name, template design, do-it-yourself content editor, e-mail, content, AND an internet connection included in the cost? *scratches head* She's a good acquaintance and she's coming to me for advice, but I want her business!

    What do you think of my e-mail reply to her? How does it come across???


    Hi Mrs. Kenny,

    I've never heard of "so-and-so company" but I am am familiar with the type of web site editor program they offer (a design firm I do contract work for also provides the same service). "Unlimited updates with our easy-to-use online Website editor" - which means, the web site design is a generic template (some other company can also use the same design/layout/look - the web site design is not unique to your business/company identity) and is powered by a semi-user-friendly, but very basic "back-end/behind the scenes" type of web based program so you can update the content within the web site (mind you, only basic pictures and text, not the design itself) from your own computer without needing to know complicated web design coding language.

    Personally I am not a big fan of the do-it-yourself web site editors/programs - I can see how it is a neat feature, but it is very basic and limited. The do-it-yourself web editor programs seem like a good idea because the client can have control over updating the content (text) of the web site themselves whenever they want....however, based on my past experiences with previous clients and these programs, most of the clients I've set up template web sites for and trained to use the program (on behalf of the company I contract with) end up feeling stifled because:

    1) perhaps they are computer novices and find the web site editor program is challenging to use
    2) feel limited by the basic features and the plain, generic web site design; not having creative freedom to change things around
    3) have to pay a lot extra if they decide they do want to change things (or have to pay extra for services like search engine optimization)
    4) stuck in an expensive, long-term monthly contract they cannot break

    I must admit though, Mrs. Kenny, $39.99 per month with a one-time set-up fee of $39.99 (in comparison to other companies I know about who offer almost the same type of full package deal but charge a $1500 start up fee plus an additional $88 per month for hosting/domain fee), "so-and-so company" does seem very reasonable at $480-$500 per year and might be a good way to start with a basic web presence......that is, if you feel comfortable with the template look of the web site design promoting your business and if you feel comfortable updating the content/text yourself.

    It really depends on what you have in mind for the design/layout/content of your business web site, your goals, your audience, how often you want to update it or if you would like to update it yourself, and what your budget is.


    How do I dissuade her from the cheapy company? Any suggestions? I really appreciate your thoughts, comments, ideas, and wooing effort suggestions!

    Source: http://www.livejournal.com/community/webdev/174883.html

Previous page  ||  Next page

antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home