peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I wanna source code

SANJAY

You should give proper explanition of what you are trying to do, we do not give away are work so easly. Show effort, show what you did so far...

As to your question, you can convert html to pdf with full version of Acrobat or other softare for this purpose. To convert back to html from pdf is more complicated by factor that pdf have to be "searchable". Problem with creating searchable doc is that if was scanned there is no full succes, document was not 100% red there can be some pieces and bits which are not recogniced. So all of your pdf documents should be firstly created in word processing software, than convert to pdf and than to html. What a waist of time if you can get all infomation directly from word processor to html.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Use Adobe Premier or Unlead Video Studio or similar base software for video editing

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

go to Edit than Menus and play little with setting over there

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Well answer is simple, HSpace is size of of empty space in pixels from left and right side of your image. Increase value of this setting and everything on left & right get shifted away from your image.
Why don't you try put all this menu buttons in one row table and than try adjust spaces between columns??? That would be easier as you seems not know how to use CSS.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

No free space, you should provide us with your code so we can help you find the problem

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Happy New Year from London to all people around the world

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

haha my teacher is oposite opinion, provided vector for reading from file. Than I used Tokenizer because I forgot there is split, but it worked fine. I learned somethig new :mrgreen: and gone be different from rest of people, so nobody can say I copied somebodies work.

Thank you for your advice. I may start hang around this forum for change of motion.

Cya around friend

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Make a selection for a tie,invert selection and applay BW settings. What that mean? Only selected part will change

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Thanx for your advice. I did not get it working either way, but found that effective solution with use of Vector been sugested. My mistake that I did not seen link on the bottom of the page ;) and trying to get my own solution to the problem. Always good programming exercise

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I have small code to read datas from "dat" type of file. It's read fine just when last line is done it's kick-off with error message
Exception in thread "main" java.lang.NullPointerException at CW2.main<CW2.java:26>

import java.io.*;
import java.util.*;

class CW2
{
	public static void main( String[] args)
	{
		try
		{
		
			BufferedReader in = new BufferedReader( new FileReader("staff2005.dat"));
			String whole;
		
			while(true)
			{
				try
				{
					whole = in.readLine();
				}
				catch (EOFException eof)
				{
					System.out.println("End of File");
					break;
				}
				
				System.out.println( whole.trim());
			}
			in.close();
		}
		catch  (IOException e) 
		{
       System.out.println ( "IO Exception =: " + e );
      }

	}
}

Just learning, please don't shot me :o . Think there is a problem with my definition of try & catch. Highligted line 26 for you.

Can you please advice on this matter??

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Seem sttright forward. What is problem with it??

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

True???
He/she does not even know what is talking about, otherwise will specify what exactly he/she wish to do and what would be best technic/way to do it

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

No, because you will always access this bigones no matter how mutch you resize them, their are still same data size. You better do scale-down version of them.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Sorted out, found my mistake.

Thank you for your help again :cheesy:

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

hmm, this sorted my problem with print order, but come new problem.
This how newGame function in main program looks like

void newGame()
{
  int cid;
  if((cid = fork())==0)
    {
    execl("score.out","score.out","score",NULL);
    perror("Didn't work.");
    }
  wait( cid);
}

Here is copy of output

* * * * * * * * * * * * * * * * * * * * * * * *
1. New Game
2. Display current score
3. Enter new score
4. Exit game
* * * * * * * * * * * * * * * * * * * * * * * *

Choose number for operation to perform : 1
0
0
0
0
0
Inumber :        7550163
Size in bytes :  20
Segmentation fault

Segmentation error, I love this ones, usually mean rewrite your program/algorithm. Any usefull sugestions? What and where do I try to access or overwrite some important information?

Sorry, forgot thank you for help :o

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Having strange behaving programs,at the bottom you can find them, but here is short explenation.

Main program will present a menu from which you can pick operation to do. When I choose 1 it is suppouse to create file of certain name(not exactly, you have to complile score.c program and on command line pass name of file which you wish to create, I'm using "score") with new 5 accounts of zero value, dispalay its inode number and syze than get back to main program.
What is does is :
- display option menu and ask for number of operation to perform
- display again menu
- its displays info about new accounts and hang, thats how is it looks like

here is output

* * * * * * * * * * * * * * * * * * * * * * * *
1. New Game
2. Display current score
3. Enter new score
4. Exit game
* * * * * * * * * * * * * * * * * * * * * * * *

Choose number for operation to perform : 1
* * * * * * * * * * * * * * * * * * * * * * * *
1. New Game
2. Display current score
3. Enter new score
4. Exit game
* * * * * * * * * * * * …
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Hi - does anyone know how to change the look of the text field form? I can't find anything that will change the color, outline, height, etc.

Thanks!

What you mean DW???

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I say you need first learn flash and than think of building website in flash. I'm not pro in this area but at least I do have some backround knowledge of this tool. Firstly get started with tutorials provided with your copy of flash/ get a book, than you may try some simple trick which are online.

If not you get your self into troubles and than you quickly abandon idea of using Flash

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

search google for filters in CSS-cascading style sheets

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

This may help you little bit www.w3schools.com

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You can only return a single item using a return statement.

Lol, who told you this. You can return as many values as you wish. Only have to configure recive function to store more than one value

I did small change to this find function so looks like this

string OrderedList::find(string& w, string& d, string& s)
{
  keyValue* p = head;
  if(p != NULL)
    {
      w = p->word;
      d = p->definition;
      head = p->next;

      if(head == NULL)
	{
	  s = 'n';
	  return(w, d, s);
	}
      else
	{
               s = 'y';
	  return(w, d, s);
	}
    }//end p !=NULL
 
 else
    {
      s = 'n';
      return(w, d, s);
    }
}//end find

and updated function sorted

void dynamicHTable::sorted()
{
  string word;
  string definition;
  string status;

  for(int i = 0; i < TABLE_SIZE-1; i++)
    {
      dHTable[i].find( word, definition, status);
      if (status == "y")
	{
	  do{
	    Table.insert(word, definition);
	    dHTable[i].find( word, definition, status);
	  }while(status == "y");
	}//if ebd
    }//for end
}//sorted end

No more error messages. Well if somebody know smarter implementation let me know :cheesy:

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I'm getting following compile error

OrderedList.cc: In member function `std::string OrderedList::find(std::string&, std::string&, int&)':
OrderedList.cc:133: error: invalid conversion from `int' to `const char*'
OrderedList.cc:133: error: initializing argument 1 of `std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]'

OrderedList.cc looks like this

string OrderedList::find(string& w, string& d, int& s)
{
  keyValue* p = head;
  if(p != NULL)
    {
      w = p->word;
      d = p->definition;
      head = p->next;

      if(head == NULL)
	{
	  s = 0;
	  return(w, d, s);
	}
      else
	{
	  return(w, d, 1);
	}
    }//end p !=NULL
 
 else
    {
      return(w, d, 0);
    }
}//end find

and its called by following function

void dynamicHTable::sorted()
{
  string word = NULL;
  string definition = NULL;
  int status = 0;

  for(int i = 0; i < TABLE_SIZE-1; i++)
    {
      dHTable[i].find( word, definition, status);
      if (status ==1)
	{
	  do{
	    Table.insert(word, definition);
	    dHTable[i].find( word, definition, status);
	  }while(status ==1);
	}//if ebd
    }//for end
}//sorted end
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Explanation is a bit long so please bear with me, solution is short :lol:
We got an assigngment from uni to create word dictionary program to read an external file where each line consist of WORD and DEFINITION separated by empty space. If some word exists more than once add other definitions append. Please use static hash table and sort datat in alphabetic order:evil:
Fine we will do it. :mrgreen:
Using getline we get word and then definition plus this automaticaly delete '\0' character and next function insert them in hash table. As long word does not repeat everything it's fine. But if program find that word already exists in table we should join definitions as

1st_def = 1st_def + 2nd_def

however if you do that table will strangly get mess up. To prevent this behaviour you have to do following

1st_def = 1st_def + "\n" + 2nd_def

Took some time to find out.
Reading is finish, data in hash table we sort them now is time export them.
Format :

WORD - DEFINITION. 2nd DEFINITION if used

what we get is of course

WORD - DEFINITION
2nd DEFINITION

OK, we have to delete new line character in order to get proper out put. We store definition in temporary variable, then search this variable for new line character, if found replace it with one empty space ( " " ). Well search and replacement work perfect but when outputing everything get …

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Thank you Narue,
nice tutorial but to complex. I got bitte lost even then you provided exelent coments. Do you know of something less demanding for beginner and not programmer with experience.

Cheers

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

People did any of you come across good tutorials on hash tables???

What I got from schools is useless and teacher is not able to explain properly.

Thanx for help

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

In many cases good internet providers give some webspace. I'm using f2s.com(UK) which give me 200MB, only problem is name of your site, but that can be simple changed you just buy domain name and transfer to your existing account.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

What about little of brain storming from you for start??
This is not sunday market : "Password protection for 5, forums for 10..."

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

There is minimum people using 800x600, last time when I did my site I put size to 1024x768 which is ok with size and resolution for my laptop.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

:lol: Wow somebody was realy unfortunate.

:mrgreen:Congratulation to JAM in finding his lost friend tgreer

(sorry, but what is the possibility of ocurence for situation like this??)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Short and simple, I installed Windows XP and Solaris 10 on same disk in order to create same development enviroment like at school where we use Solaris in our labs.
I got new hard disk because old one was small.

Firstly with use of XP instalation CD I created partition (80G xp and 40 solaris).
Than I installed XP just basic install, no extra drivers for VGA or any other device.
Once this done I did install Solaris. No problem at all.

Problem here is when I start PC it's take long to boot up to option menu where I can choose OS. When I start Solaris every things go fine and fast. But when I choose XP, Solaris say that is starting unknow system and than it's take some time to load up XP.

Can somebody please give advice what shall I do?
Also I'm happy to do new instalation just let me know how.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Yes, Rashakil Fol is right your tutorial is bad, if I do not know HTML this wouldn't help my at all.
However you can improve it, try to see other online tutorials how they are done. Good example is www.w3schoools.com.

Good luck to you!

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Looks like you just nick something from somewhere :cheesy: and don't know what to do with it :?:

js stand for JavaScript which is external (not included in content of site).
What you have to do is downloadied and post it here and we will see what can be done.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Yes, you don't have to make image of everything. This simple shadow effects and many others can by simple achive with use of CSS and basic JavaScript.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Here is nice example how to do something like that, if you are happy to read the code :cheesy:
http://www.creative.com/language.asp

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Sorry but this need complex solution and you will not learn in 1-2 weeks. You better ask some company and have to pay for it or do another post that you are looking for somebody who can do this sort of work for free( for funn or school project) or other exchange (small amount of money, etc)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

i see what your saying but can't work out the code. im trying.
<img src="graphics/logo1.gif" width="234" height="134" border:0px> as the img tag but it is not overiding it. what am i doing wrong.

It is supposed to be like this

<img src="graphics/logo1.gif" width="234" height="134" style="border:0px;">

With inline declaration you have to call "style" for CSS and then change parameters.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Matter of preference. I f you use more Adobe products you will be more familiar with interface of Pagemaker. And oposite, if you work with Macromedia Quark will do it for you.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You used comands for DOM which you did not declared.

document.style.backgroundColor=green;
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

It's just i know almost nothing about scripts , i just wanted to know if someone could help me edit the ones i provided to make the site look better?

Sorry but you did not provide any proper script or idea :o . I found only this

<script language="JavaScript">
<!--

function SymError()
{
return true;
}

window.onerror = SymError;

//-->
</script>

Than there is external javascript mentioned

<script type="text/javascript" src="/i.js"></script>

and uncounted number of closing tags for script.

</script>

Rest of the thing is HTML with few links to PHP pages ;)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

This worked for me

<html>
<head>
<title>More javascript</title>

<script language=JavaScript>

function clicked(evt){

window.alert("You clicked the page element: "+evt.srcElement.id);
if (evt.srcElement.id == "mycol"){
document.bgColor="green";
myTable.bgColor="blue";  
mycol.innerText="haha"; 
}
}

</script>
</head>


<body id="mybody" onclick="clicked(event)">

<br><br>
<table id="myTable" border="1" >
<tr id="myrow">
<td id="mycol" style="cursor: pointer;"  >Click this box to change colors...</td>
</tr>
</table>
</body>


</html>
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

SWF Protect can help you to Encrypt and Protect your Macromedia Flash SWF Files from ActionScript Decompilers.

Current version is: v1.1
small bugs fixed.
Download link: http://www.sample4u.com

Yes budy, nice, but this is not a sale yard. You better ask Dani for permision!!!
This does not need a coment:
Sample4u is a dedicated flash resource site created since late march in 2005. lead by one man of flash expertise. I need to Sponsor for my site

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

OK I will ask other way.

Why do you think scrips will make it look better?
Would not be also good ask somebody for visual advice?
If you still think scrips will fix it for you, can you please provide us with view/idea what this script should do?

Sound like questioner, but try to see reason behind it. We are willing to help, but we need to know what exactly you are looking for :D.

So think about it and give us something.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

What do you mean by

spice up website

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Good idea, Flash is friendly and easy to use. I'm not multimedia guru, but sometimes I use it for some of my work. Know some guys which can do unbelivable stuff with it.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Same thing

At start your_subindex   = {empty string}
on 1st click your_subindex   = {1st subindex}
on 2nd click 1st command your_subindex   = {empty string}
2nd command your_subindex   = {2nd subindex}

and so on.

Also why dont you try classic on? All subindexes placed on the stage and make them invisible on start. Then when ever any selection made run small script which will make shore that others subindexes are hiden only requered is visible. In style of rollover, instead of rollover use command onclick.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I am not "pro" in Flash but you may try to do following. After selection from main index been made ad an extra line in your code which will empty your listbox of main index (empty your string variable) and then load up sub index.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Good to know that

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Flash and Director was my suggestion because of your following post

A basic one and than i will work my way up to harder one's
what will i need to start the game? :?:

What this mean???
You have no idea where to start my friend! And need help :mrgreen:
So type in your browser google and key words like browser game, tutorial browser game etc and you find something for your self

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

When you open your template in Photoshop, at the bottom of your Tool Bar is icon for sending context of Photoshop to Image Ready (Marked with red colour on attached image and it is part of Photoshop product). This will open your Photoshop template in Image Ready.

Check your template to see if everything is in place.

Go to File/Output Settings/HTML to set up all settings for saving your document in html format.

Once this done, go to File and Save Optimized As to save your work.