mikeandike22 18 Nearly a Posting Virtuoso

Ok So right now I am using a script called MicroCalendar to setup a client calendar where A client can add an appointment to it but I need to put something into place that makes sure that they cannot overlap appointments..right Now im just saving appointments to txt files with the date of the appointment on them..here is my current code, i have not tried to check the half hour interval yet..

<?php	
		$myFile = "appointment $_POST[day]-$_POST[month]-$_POST[year].txt";
		$fh = fopen($myFile, 'w');
		fclose($fh);
		$fh1 = fopen($myfile, 'a');
		if($_POST[ok])
		{ 
		 $stringData = "$_POST[name], scheduled an appointment at $_POST[hour]:$_POST[minute] on $_POST[day]-$_POST[month]-$_POST[year]";
		 $handle = @fopen($file, 'r');
		 $contents = @fread($handle, filesize($file));
		 $strPos = strpos( $stringdata , $contents);
		 if ($strPos!== false)
		 {
			 fwrite($fh, $stringData);
			 fclose($fh);
			 echo "<br>$_POST[name], scheduled an appointment at $_POST[hour]:$_POST[minute] on $_POST[day]-$_POST[month]-$_POST[year]";  
		 }
	   ?>
mikeandike22 18 Nearly a Posting Virtuoso

I think that would be illegal..There is plenty of free places online where you can learn actionscript(Id suggest staying away from youtube most flash tuts on that seem to be done by children script kiddies)..just try and do a couple examples online if you cant figure it out ask on the forum and post your code and through trial and error you will start to get the hang of it..

mikeandike22 18 Nearly a Posting Virtuoso

Ok Right Now I have a preloader that setup that loads the intro. and then a button in the intro loads another movie clip and everything seems fine until I add the actionscrip to load the text and buttons.

here is the error I get
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Bio/::frame1()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Bio/onLoader()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()

and here is the action script in the movieclip that I think is causing the trouble:

//Text Box
var myLoader:URLLoader = new URLLoader();
myLoader.dataFormat = URLLoaderDataFormat.TEXT;
myLoader.load(new URLRequest("text/bio.txt"));
myLoader.addEventListener(Event.COMPLETE, onLoader);

function onLoader(ev:Event){
    contents.htmlText = String(myLoader.data);
}

contents.multiline = true;
contents.wordWrap = true;
//contents.autoSize = TextFieldAutoSize.LEFT;

function upscrolltext(evt:MouseEvent):void{
   trace(contents.scrollV);
   contents.scrollV -= 1;
    }
bscrollup.addEventListener(MouseEvent.CLICK, upscrolltext);

function dwnscrolltext(evt:MouseEvent):void{
   trace(contents.scrollV);
   contents.scrollV += 1;
    }
bscrolldwn.addEventListener(MouseEvent.CLICK, dwnscrolltext);

var bounds:Rectangle = new Rectangle(bscrolldrag.x, bscrolldrag.y,0,160);
var dragging:Boolean = false;

function dragscroll(evt:MouseEvent):void{
    bscrolldrag.startDrag(false,bounds);
    dragging = true;
}

function dropscroll(evt:MouseEvent):void{
    bscrolldrag.stopDrag();
    dragging = false;
}
bscrolldrag.addEventListener(MouseEvent.MOUSE_DOWN, dragscroll );
stage.addEventListener(MouseEvent.MOUSE_UP, dropscroll );

function checkslider(evt:Event):void{
    if(dragging){
        //trace("scroll");
        contents.scrollV = Math.round((bscrolldrag.y - bounds.y)*contents.maxScrollV/160 );
    }
}
stage.addEventListener(Event.ENTER_FRAME, checkslider);

**** FIGURED out that the actions were on frames were those entities didnt exist that was dumb*****


I Found a new problem..I am going from one movieclip to another using this code

biobtn.addEventListener(MouseEvent.CLICK, bio);
function bio(evt:MouseEvent):void{
    gotoAndStop(35);
    var home:MovieClip = new Home();
    var display:MovieClip = new …
mikeandike22 18 Nearly a Posting Virtuoso

Doubt you could do it with pure CSS but maybe if you modified the mediabox(http://iaian7.com/webcode/Mediabox) javascript code to display the video on hover state instead of onclick then it could work.

mikeandike22 18 Nearly a Posting Virtuoso

That code worked perfectly thanks fert.

mikeandike22 18 Nearly a Posting Virtuoso

It appears that mail is enabled from what I can tell because the phpinfo lists send_mail and smtp info. I havent tried out the code yet but I will soon.

mikeandike22 18 Nearly a Posting Virtuoso

I want a nav system where there is a different image for either link and they have rollover links. I figured it would be easier to include the text and then hide it in css so that it would be accessible compatible.

Ok this is my current setup for the HTML that I have

<div id="topnav">
     <ul id="navicons">
      <li><a href="#" class="one">ONE</a></li>
	  <li><a href="#" class="two">TWO</a></li>
      <li><a href="#" class="three">THREE</a></li> 
     </ul>
    </div>
mikeandike22 18 Nearly a Posting Virtuoso

Hello Im looking for a real simple way, if possible with no databases involved, to send an email to a hosting account on godaddy. I believe they use smtp.secureserver.net for the smtp server. I have a form that asks for the persons name and their email..I am later going to make some sortof mailing list, So if you know of a easily integratable mailing list app let me know.

Thanks In advance for any help offered

mikeandike22 18 Nearly a Posting Virtuoso

I need help with this program im working on where you get input from a file and the program checks if the numbers are in ascending order or not and which one is the smallest and largest number in the series..cant use arrays..
This is a my input.txt right now

1 
2 
3 
4 
5

and here is my code so far

#include <fstream>
#include <iostream>

int main( )
{
    using namespace std;
    ifstream in_stream;
    ofstream out_stream;

    in_stream.open("input.txt");
	
	if( in_stream.fail() ){
		cout << "The input file does not exist";
	}

    out_stream.open("output.txt");

	int input, min_store, max_store,store;
	char ans;
    
	in_stream >> input;
	min_store = input;
	max_store = input;

	for ( int i = 0; i < 5; i++){
		in_stream >> store;

		if( store < input ){
			ans = 'n';
		}
        
		if( input > max_store ){
			max_store = input;
		}

		if( store < min_store ){
			min_store = store;
		}

		in_stream >> input;

	}

	if ( ans = 'n' ){
		out_stream << "The numbers are not in ascending order"<< endl;
	}
	else{
		out_stream << "The numbers are in ascending order"<< endl;
	}
    
    out_stream << "The smallest number is "<< min_store<< endl;
	out_stream << "The largest number is "<< max_store<< endl;

	in_stream.close( );
    out_stream.close( );

    return 0;
}
mikeandike22 18 Nearly a Posting Virtuoso

I tried that but then it wasnt reading the right numbers from the file.

mikeandike22 18 Nearly a Posting Virtuoso

I just changed it to this seems to work fine, i just initialized the array with a size of 100

#include <iostream>
#include <cmath>
using namespace std;

double std_Dev ( double Nums[], int inSize );

double avg = 0, sDev, sum = 0, sum2 = 0;

int main ( ){
	int inSize;
    double Nums[100];

	cout << "How many Numbers would you like to find the standard deviation for (max 100):";
	cin >> inSize;

	cout << "\nInput the numbers hit enter after each entry:";
	for ( int i = 0; i < inSize; i++ ){
		cin >> Nums[i];
	}

	sDev = std_Dev ( Nums, inSize );

	cout << "The Standard deviation is "<< sDev<<endl;

	return 0;
}

double std_Dev ( double Nums[], int inSize ){
	for ( int i = 0; i < inSize; i++ ){
		sum += Nums[i];
	}
    avg = sum / inSize;

	for ( int i = 0; i < inSize; i++ ){
		sum2 += pow( Nums[i] - avg, 2 );
	}

	sDev = sqrt( sum2 / ( inSize - 1 ) );

	return sDev;
}
mikeandike22 18 Nearly a Posting Virtuoso

The program calculates the standard deviation by having the user input the list of numbers into an array.
So i get these errors on the program
error C2057: expected constant expression
error C2466: cannot allocate an array of constant size 0
error C2133: 'Nums' : unknown size

here is the code

#include <iostream>
#include <cmath>
using namespace std;

double std_Dev (double Nums[], int inSize, double &avg, double &sum, double &sum2);

int main ( ){
	int inSize;
	double avg = 0, sDev, sum = 0, sum2 = 0;
	cout << "How many Numbers would you like to find the standard deviation for (max 100):";
	cin >> inSize;

	double Nums[inSize];

	cout << "\nInput the numbers hit enter after each entry:";
	for ( int i = 0; i < inSize; i++ ){
		cin >> Nums[i];
	}

	sDev = std_Dev(Nums, inSize, avg, sum, sum2);

	cout << sum<<" "<<inSize<<" "<<avg<<" "<<sDev<<endl;

	return 0;
}

double std_Dev (double Nums[], int inSize, double &avg, double &sum, double &sum2){
	for ( int i = 0; i < inSize; i++ ){
		sum += Nums[i];
	}
	avg = sum / inSize;

	for ( int i = 0; i < inSize; i++ ){
		sum2 += pow( Nums[i] - avg, 2 );
	}

	double sDev;
	sDev = sqrt( sum2 / ( inSize - 1 ) );

	return sDev;
}

works in gcc but for some reason doesnt in VS 2005 which is what I need dumb class guidelines.

mikeandike22 18 Nearly a Posting Virtuoso

here is my final code that functions correctly.

#include <iostream>
#include <fstream>
using namespace std;

int main( ){
	ifstream input;
	double lineValue[100];
	double median;
	int count = 1;


	input.open( "asgn.dat" ); 

	if ( input.fail( ) ){
		cout << "Input file opening failed. \n"; 

		exit(1); 
	}
    

    while ( count < 100 && input >> lineValue[count] ) { 
		count++; 
    }
    
	count = count - 1; 

	if ((count % 2) == 0 ){ 
		count = count / 2;  
        
		median = (( lineValue[ count + 1 ] + lineValue[ count ] ) / 2 ); 
	}
	else {
		count = ( ( count - 1 ) / 2 ) + 1; 
		
		median = lineValue[ count ];
	}
	
	cout << "The median is "<< median<< "."<< endl;

	return 0;
}
mikeandike22 18 Nearly a Posting Virtuoso

Thanks a lot that was really dumb of me, but im new to this stuff so u know problems come up a lot.

mikeandike22 18 Nearly a Posting Virtuoso

so far this is what I have i commented out the part that calculates the median but i still cant get the for loop to pass the right integer values into the array.

#include <iostream>
#include <fstream>
using namespace std;

int main( ){
	ifstream input;
	int lineValue[100];
	int value, median;
	int count = 1;


	input.open( "asgn.dat" );

	if ( input.fail( ) ){
		cout << "Input file opening failed. \n";

		exit(1);
	}
    

	while ( input >> value ){
		count++;
	}

	for ( int i = 0; i < count; i++ ){
		input >> lineValue[i];
	}

	/*if ( ( count % 2 ) == 0 ){
		count = count / 2;

		median = ( ( lineValue[ count + 1 ] + lineValue[ count ] ) / 2 );
	}
	else {
		count = ( ( count - 1 ) / 2 );
		
		median = lineValue[ count ];
	}*/
    
	cout << lineValue[1]<< endl;
	cout << count<< endl;

	return 0;
}
mikeandike22 18 Nearly a Posting Virtuoso

thanks so far and yes you are gauranteed that the file is in order.

mikeandike22 18 Nearly a Posting Virtuoso

so what i tried to accomplish in the code was to open the file, read all the values into an array and then count how many numbers there were.

mikeandike22 18 Nearly a Posting Virtuoso

OK i am taking a file with data stored like
1
2
3
4
5
then i have to find the median of the numbers in the file. The only condition i have to allow for is that if the amount of numbers in the file are an even number than the median is the average of two numbers.

mikeandike22 18 Nearly a Posting Virtuoso

well what i want it to do is store the values of the file into an array and add to the counter. ive been trying different ways of doing this so things like this while loop might not make perfect sense. can you explain how to initializ the rest of the array so it can match the count.

mikeandike22 18 Nearly a Posting Virtuoso

The program compiles but it gives me weird output like -858993460 with a the data file containing 1 - 10.

mikeandike22 18 Nearly a Posting Virtuoso

Hi im trying to take a .dat file with just a list of integers separated by lines. The program has to allow for whether or not the list is an even amount of numbers or not. im a bit stuck here is what i have so far.

#include <iostream>
#include <fstream>
using namespace std;

int main( ){
	ifstream input;
	int med_val[100];
	int value, median;
	int count = 1;


	input.open( "asgn.dat" );

	if ( input.fail( ) ){
		cout << "Input file opening failed. \n";

		exit(1);
	}
    

	while ( !input.eof( ) ){
		input >> value;
		count++;
		for ( int i = 0; i < count; i++ ){
		input >> med_val[i];
	   }
	}

	

	if ( ( count % 2 ) == 0 ){
		count = count / 2;

		median = ( ( med_val[ count + 1 ] + med_val[ count ] ) / 2 );
	}
	else {
		count = ( ( count - 1 ) / 2 );
		
		median = med_val[ count ];
	}

        cout << median<< endl;

	return 0;
}

Any help would be appreciated thanks in advance.

mikeandike22 18 Nearly a Posting Virtuoso

I finally convinced the client that this was unneccessary so dont need it nemore thanks neways.

mikeandike22 18 Nearly a Posting Virtuoso

I want to make like a loading page that shows a progress bar and then displays an enter button so they can enter the website. Something with an ajax like look.

mikeandike22 18 Nearly a Posting Virtuoso

Probably some really high quality hardware and some in house software.

mikeandike22 18 Nearly a Posting Virtuoso

I would say it is definitely easier to start doing 2D stuff related to games. You can work on textures and stuff which is very useful to know in games. For 3D software 3D studio max is prob the major player and cost like $4,000. There is Blender which is free and very extensive. I would goto the blender website and look at the gallery to see what you can accomplish with it and try and find some tutorials.

mikeandike22 18 Nearly a Posting Virtuoso

yea i didnt search google for that when I first looked..I was looking for info on the second part dealing with ffs.sys which seemed more relevant. And that fix would not have helped because I couldnt even start windows in safe mode so i just reinstalled and am now searching through driver cds and shit.

mikeandike22 18 Nearly a Posting Virtuoso

Im getting a blue screen of death on my windows Xp machine that says

Stop: 0x0000008E (0xC0000005, 0xF8631F1C, 0xF71598138, 0x00000000)
ffs.sys -address F8631F1C base at F8627000, Datestamp

I have no idea wat caused this and cant find anything about ffs.sys dealing with windows. Any help is appreciated.

mikeandike22 18 Nearly a Posting Virtuoso

I am an aspiring web something or other not really sure what actual title would be. I mainly do (X)HTML/CSS work, but also know photoshop and some scripting/other (PHP mainly, Javascript, XML, and SQL). Also I already had a job coding websites in HTML/CSS for the University of Massachusetts. However im looking for places to build up a portfolio I can use to get even better jobs. Ive looked on http://programmermeetdesigner.com and monster, but half the time the people dont know what they want. They post ads like web designer needed required skills: Photoshop, Illustrator, HTML/CSS, Ruby on Rails, PHP, and AJAX. I dont know how they get to thinking RoR and Ajax is web design. However I usually dont get chosen because I dont have any sortof portfolio to show. So I was wondering if there was anywhere that has like contract jobs, another difficulty is that im still in school so its hard to like goto an office for a job, and other what not. Thanks for any help you can give me.

mikeandike22 18 Nearly a Posting Virtuoso

I fixed the problem by running a program called Super Fdisk which is free. It boots off a floppy and right away told me there were problems with the disk. It fixed them and now everything works fine. I think the problem came about when I was trying to install FreeBSD on a USB drive and did the command fdisk -BI to the wrong device.

mikeandike22 18 Nearly a Posting Virtuoso

No Im going to try it out. It is really frustrating me because I can see the drive in my Computer Management -> Storage -> Disk Management dialog but it doesnt show up in My computer. Also with the holidays dont really have a lot of time to troubleshoot. Im going for every available option before I reformat.

mikeandike22 18 Nearly a Posting Virtuoso

I have a maxtor 6Y120P0 IDE drive and I restarted my computer and it isnt recognized anymore. It still says it is there in the device manager but it doesnt show up in my computer. This drive has like everything on it. I need to find like a driver or something but so far wasnt successful its been like 15 mins of google searching here and its really frustrating the hell out of me.

mikeandike22 18 Nearly a Posting Virtuoso

The original UNIX actually isnt opensource that is why there are so many variants like BSD and Linux. Most BSD distributions are based on the opensource versions of UNIX and Linux is written from scratch to be Unix like.

mikeandike22 18 Nearly a Posting Virtuoso

Ok so I will just stick an old Nvidia in there and do svideo to rca from there.

mikeandike22 18 Nearly a Posting Virtuoso

Intro

I just moved from Linux(ubuntu) to BSD (DesktopBSD/FreeBSD) as you might have read in my blog. So here are some things you might want to know about my install situation that could help you out later.

First Scenario: Remove Linux Completely

I installed my DesktopBSD right over my Linux install partition which lead to problems like for example Grub still being installed and not loading. So after you install and reboot you will get a Grub error 17. Im no Grub guru so cant tell you wat that actually means, but here is how you fix it:

Option 1: Have a windows XP cd handy? snatch that up and put it in. Launch into the recovery mode or rescue w.e cmd prompt and after you login type fixmbr this will rewrite your Master Boot Record and get rid of the problem.

Option 2: If you dont have a windows installation or dont have the cd there are livecds or linux distros that will do this. I believe Suse 9 has something similar. Also if you have a copy of Dos you can do it on that.
Now that you got that done you will be able to boot into your windows partition and now you will have to modify your Boot.ini file to add *BSD to the NT bootloader. Get a program called bootpart and follow the instructions. It will tell you all the OS's on your system and allow you to select …

mikeandike22 18 Nearly a Posting Virtuoso

You might actually have to post the script or at least part of the script. and from what I can gather from your post the username and password isnt being stored when you go onto other pages or something like that. You might want to try using cookies or something like that. However that might not be your problem your question is kind of vague

mikeandike22 18 Nearly a Posting Virtuoso

thats because it was hosted on my server that I took down. It was a photoshop document of a fake id.

mikeandike22 18 Nearly a Posting Virtuoso

there is a insert media function in dreamweaver and one of the options is flash so that should work I think as long as the flash is calling all the scripts. Im not entirely sure because it could be different with extions but you just use the object and embed tags if you want to hand code it.

mikeandike22 18 Nearly a Posting Virtuoso

Why the need for the second router? why not just run two ethernet cables down to those pc's. The problem mainly seems to be normal network activity if one pc is using more bandwidth it is normal for the other computer to loose some bandwidth.

mikeandike22 18 Nearly a Posting Virtuoso

Hello I have a bunch of videos I want to burn to a DVD im making in Adobe Encore DVD 2.0 (I like the menu functionality it has and the flowchart is real easy) however the videos need to be 720*480 resolution and 29.97 fps and encore wont encode them for me so I need a program that can do it preferably free and does not make the size of the file much bigger.

mikeandike22 18 Nearly a Posting Virtuoso

what exactly is the problem? your description doesnt really help.
one of the files either on your cd or your current instillation could be corrupted

mikeandike22 18 Nearly a Posting Virtuoso

Im pretty sure that 64 bit processors can support drivers. What you are probably thinking of is an operating system like Windows 64 or w/e which only supports 64 bit applications (I actually dont know if they sell this still or if it was ever a product). But yea a 64 bit processor should be backwards compatible with 32 bit drivers.

mikeandike22 18 Nearly a Posting Virtuoso

If you have a geforce 4 you might as well cough up the $50-$100 to get an upgrade.

mikeandike22 18 Nearly a Posting Virtuoso

I dont think you want to do that. That card is old and probably does not support a lot of overclocking. best bet (asumming this card is agp) is to do an agp apetature(not sure how to spell it) which allows your video to borrow system memory so if your card runs out you can game for longer. It will take some googling to find out. Also if this Geforce is made by BFG it is probably already overclocked out of the box (overclocking things yourself isnt the best idea and can ruin your card).

mikeandike22 18 Nearly a Posting Virtuoso

ok well I finally got past the pro install, but I had to use a different version. It isnt illegal because I still used my xp pro code, but now the only thing I dont like is they have a weird welcome screen and I want to change it but dont know how. For some reason the people who put together this version of software likes ashley judd a lil too much.

mikeandike22 18 Nearly a Posting Virtuoso

Ok I tried to upgrade to xp pro awhile ago and it didnt work and so then today I tried again using a student version I got. It stops at around 34 or 33 minutes remaining and doesnt do anything. So now I just want to go back to windows XP home and cancel the upgrade. So how would I just cancel it w/o having to reformat my hd and reinstall from the XP home cd.

mikeandike22 18 Nearly a Posting Virtuoso

then you could just have a driver problem. So I would look up what sound card you have and then goto the company's website and download the latest drivers.

mikeandike22 18 Nearly a Posting Virtuoso

do you have a sound card or just integrated sound.

mikeandike22 18 Nearly a Posting Virtuoso

ok I went with a Hauppauge PVR 350 which has an S-Video out on it so I can just get an S-Video to RCA or Coax (if they make it?) converter and plug it in to the tv for the display.

mikeandike22 18 Nearly a Posting Virtuoso

Using the GNOME desktop there are a few options that I have heard of, but I have only tried one. There is a program called Akamura or something and it is a dock with a crazy physic engine, but it only has a preset number of dock items and icons. What I do is just make another panel and put a bunch of application launchers in it and make it transparent and then move the stuff on the bottom panel to the top.

Now for KDE there really is a good mac dock alternative called KXdocker which acts just like an OS X dock and I have used it on my KDE desktop awhile ago.


I did a lil googling for ya and found this tutorial on how to setup a app called engage which is a themable dock for the enlightenment window manager but can work on GNOME
http://www.usalug.org/phpBB2/viewtopic.php?p=50901
http://xcomputerman.com/files/engage.mpeg

mikeandike22 18 Nearly a Posting Virtuoso

Hey im making a MythTV box and the biggest concern that I am having is whether or not the capture card will work so I thought someone might know here. Im thinking about putting it ontop of ubuntu first off mainly because I want a full operating system and knoppmyth just seems to be the mythtv frontend. So anyways I want a reasonable PCI card that will capture tv in mpeg 2/4 with good quality somwhere around $75-140. And then for video out im not sure what to do, the motherboard has some onboard ati video but I dont know if it can do svideo (im also going to need a svideo to coax converter). So I will probably stick and Nvidia 5200 in there, but havent seen anything about compatibility. Now Nvidia in my experience works well with linux but again im more worried about the tuner/capture card and the quality of the display.