itchap 0 Light Poster

Hi everyone,

My problem is that i have some work done in Microsoft publisher (lets name it Doc1), however when I copy doc1 to a new document (doc2), doc2 does not keep the format/template of doc1.

I' am finding this very annoying and inconvenient, as I' am being forced to type up everything all over again just to change a few pictures and words. But, if doc2 kept the format of doc1, I can just copy/paste and add my modifications, without re-typing the whole thing.

Is there anyway in which I can like lock/fix/stabilize the format of a document so that the same format will appear in a new document?

Thanks in advance and I hope that you can understand what i' am trying to say.

itchap 0 Light Poster

Hi all,

I have to do this question to prepare for my "structure of Telecomm" subject final exam this week.

this is the question:

- What effect will cellular phones have on small business in the next 10 years?

This is what i did so far:

Cell phones are technologically advancing everyday, and they will posses the ability to do many technologically advanced functions, such as building applications for the business’s users. Cell phones are rapidly advancing to an extent, which would eventually allow them to replace laptops and computers. This will reduce software and hardware costs for businesses, since the cell phone would provide multiple services, such as creating applications, and many other things such as credit card, GPS locater and a television. Since cell phones are widespread, they will eventually replace normal land line phones, due to their portability. Cellular phones would also change the notation of communication for small businesses, because cellular phones are convenient and flexible. Therefore, businesses would be able to enjoy high-speed data access, data transmission and communications.

Im running out of ideas, and i would greatly appreaciate any other ideas, articles, websites, etc, that would help me. I would also like to know from you if im on the right track.

Thank you!!

itchap

itchap 0 Light Poster

HI,

Im working on this essay, and i just cant find any suitable or useful websites or sources on the web that explain: "Why would management prefer substandard internal security to professional outsourcing"
I've searched all over the damn net for some sites that might be useful, but i cant find any.

I really need you guys to help me out on this one, any articles, sites or anything would be very much appreaciated.

thanks in advance,

itchap

itchap 0 Light Poster

i see, Thanks :)

itchap 0 Light Poster

oh ok, I understand now, thanks buddy!

itchap 0 Light Poster

HI,
I have to write a essay on comparing security measures that companies use. I have to compare OUTSOURCING to SUBSTANDARD INTERNAL SECURITY.

The problem is, that i dont really know what is meant by internal security? When I google, I get things like the internal security of a a country and i cant find appropriate things that deal with the topic of my essay. :sad:

Can you please tell me what internal security is, so that i can be able to reasearch it in a better way in google.

itchap 0 Light Poster

HI,
I have to write a essay on comparing security measures that companies use. I have to compare OUTSOURCING to SUBSTANDARD INTERNAL SECURITY.

The problem is, that i dont really know what is meant by internal security? When I google, I get things like the internal security of a a country and i cant find appropriate things that deal with the topic of my essay. :sad:

Can you please tell me what internal security is, so that i can be able to reasearch it in a better way in google.

itchap 0 Light Poster

Thanks for the idea, yes we can use STL, I've never heard about B or B+ trees, but i'l research and i'l tell my team members about it.
Thanks so much for the idea...........I'd love to hear more ideas!!

thanks :D

itchap 0 Light Poster

Hi,

I'l be starting my graduation project in a few more weeks, and my group members and I still havent found the right topic. We've all been reasearching and all, but we still need more ideas. One of the ideas that we came up with is a text paraphraser. We enter the computer some text, then that text gets paraphrased, after that we type in a question related to the text, and we get the correct answer to that question. Another was a translator, that searches multiple web-based dictionaries in different languages so that we can translate from any language into any other. These are just ideas we came up with, and im hoping that you guys would be able suggest other interesting things. We would be using C++ to write the code, since we have more experience in C++ than any other programming languages.

I've read some old threads in this forum for people asking this same questions, but i didnt understand the ideas that people suggestted.

Looking forward to hear your ideas and suggestions, any articles, websites, etc, would be greatly appreaciated [IMG]http://www.thescripts.com/forum/images/smilies/smile.gif[/IMG]

Thanks,
itchap

itchap 0 Light Poster

Hi guys,

Thanks for the tips!! Is this better??????

<?xml version = ”1.0” ?>
<Order>
<Pizza>
<Customer>
<name> My Pizza </name>
<address> Kitchen </address>
<phoneNumber> 065432198 </phoneNumber>
</Customer>
<description> 
<size> small </size>
<price> $10 </price>
<crust> thin </crust>
<topping>
<meat>beef </meat>
<meat>chicken</meat>
<vegetable> red onion </vegetable>
<vegetable> cilantro</vegetable>
</topping>
</description>
</Pizza>
</Order>
 
<Order>
<Pizza>
<Customer>
<name> His Pizza </name>
<address> Kitchen2 </address>
<phoneNumber> 0625678800 </phoneNumber>
</Customer>
<description> 
<size> large </size>
<price> $16 </price>
<crust> thick </price>
<topping>
<meat>beef </meat>
<meat>chicken<meat>
<vegetable> red onion </vegetable>
<vegetable> cilantro</vegetable>
</topping>
</description>
</Pizza>
</Order>

Looking forward to hear your feedback.......thanks!

itchap

itchap 0 Light Poster

Hey,

I came across this question, this is the 1st time I write a XML file, and I have no idea if my work is correct, or if thats how its supposed to be.......please give me your feedback:

Consider the following XML file that describes a pizza:
An order for a Pizza in a restaurant, stores the name, address, and the phone number of the customer. It stores also the description of one or more pizzas. A pizza has a size (small priced at $10, medium at $13 and large at $16), a crust type (thin or thick) and one or more toppings. The toping could be meat (beef or chicken), vegetable (red onion or cilantro).

Create an XML file that describes two different order for two different pizza.


this is what i did:

<?xml version = ”1.0” ?>
<Pizza>
<name> My Pizza </name>
<address> Kitchen </address>
<phoneNumber> 065432198 </phoneNumber>
<description> 
<size> small </size>
<price> $10 </price>
<crust> thin </crust>
<topping>
<meat>beef </meat>
<meat>chicken</meat>
<vegetable> red onion </vegetable>
<vegetable> cilantro </vegetable>
</topping>
</description>
<name> His Pizza </name>
<address> Kitchen2 </address>
<phoneNumber> 0625678800 </phoneNumber>
<description> 
<size> large </size>
<price> $16 </price>
<crust> thick </price>
<topping>
<meat>beef </meat>
<meat>chicken<meat>
<vegetable> red onion </vegetable>
<vegetable> cilantro </vegetable>
</topping>
</description>
</Pizza>

Thanks in advance....

itchap

itchap 0 Light Poster

Thanks jwenting :D ....yeah your right, I fixed the code to this:

import java.nio.*;
public class Buffer {
  private int buffer = -1;
 
  public void set(int val)
  {
      System.out.println("Writing" + val);
      buffer = val;
  }
    
  public int get()
  {
      System.out.println("Reading" + buffer);
      return buffer;
  }
}
import java.lang.*;
import java.nio.*;

public class Producer implements Runnable{
 
private Buffer sharedBuf; // the buffer is the buffer class above
// constructor should accept (Buffer), and set it to the sharedBuf ...
public Producer (Buffer sharedBuf){
 this.sharedBuf=sharedBuf;
}
  public void run()
  {
   try{
     for (int i=1; i<=4; i++)
     {
      Thread.currentThread().sleep(3); //sleep for a random time, between 0-3 seconds for example;
        sharedBuf.set(i);
     }
   }
     
     catch (InterruptedException exception) {
        exception.printStackTrace();
       }
    
        System.out.println("Producer finished, exiting...");
  }
}
import java.lang.*;
import java.nio.*;

public class Consumer implements Runnable{
 
 private Buffer sharedBuf; // the buffer is the same buffer used by the producer
 int sum = 0; // total stuff read from the buffer
 
 
//..constructor should accept(Buffer), and set it to the sharedBuf ...
 
 public Consumer (Buffer sharedBuf){
  this.sharedBuf=sharedBuf;
 }

  public void run() {
   try{
      // read the buffer four times, and keep the total
      for (int i=1; i<=4; i++)
      {
       Thread.currentThread().sleep(3);
         sum = sum + sharedBuf.get();
      }
}
   
   catch(InterruptedException exception) {
         exception.printStackTrace();
        }
      
     System.out.println("Consumer finished, ate " + sum + "exiting...");
   
  }
}
public class test {
 public static void main(String args[]) { 
   Buffer shared = new Buffer();
   Thread t=new Thread( new Producer(shared));
   t.start();
   Thread b=new Thread( new Consumer(shared));
   b.start();
  }
 }

my threads are …

itchap 0 Light Poster

Hi Everyone,

I'am currently working on this question:

Write a producer-consumer problem that uses threads and shares a common buffer. However do not use semaphores or any other synchronization primitives to guard the shared data structures. Just let each thread access them when it wants to. Use sleep and wakeup to handle the full and empty conditions. See how long it takes for a fatal race condition to occur. For example you might have the producer print a number once in a while. Do not print that number every minute because the I/O could affect the race conditions.

This is what I managed to do:

import java.nio.*;
 
public class Buffer {
  private int buffer = -1;
 
  public void set(int val)
  {
      System.out.println("Writing" + val);
      buffer = val;
  }
    
  public int get()
  {
      System.out.println("Reading" + buffer);
      return buffer;
  }
}
import java.lang.*;
import java.nio.*;

public class Consumer extends Thread implements Runnable{
 
 private Buffer sharedBuf; // the buffer is the same buffer used by the producer
 int sum = 0; // total stuff read from the buffer
 
 
//..constructor should accept(Buffer), and set it to the sharedBuf ...
 
 public Consumer (Buffer sharedBuf){
  this.sharedBuf=sharedBuf;
 }

  public void threadRun() throws InterruptedException {
   try{
      // read the buffer four times, and keep the total
      for (int i=1; i<=4; i++)
      {
         sleep(1);
         sum = sum + sharedBuf.get();
      }
}
   
   catch(InterruptedException exception) {
         exception.printStackTrace();
        }
      
     System.out.println("Consumer finished, ate " + sum + "exiting...");
   
  }
}
import java.lang.*;
import java.nio.*;

public class Producer …
itchap 0 Light Poster

Hi Guys,

Thanks for the help , the finalize() methode is what i was looking for. Your tips and help are very much appreaciated.

Thanks once again,

itchap :)

itchap 0 Light Poster

Hey,

does anyone happen to know which method is called by the garbage collector on an object when garbage collection determines that there are no more references to the object?

and does anyone happen to know which class contains the definition of this method?

Thanks :)

itchap

itchap 0 Light Poster

can go drown

itchap 0 Light Poster

beyond -> horizon

itchap 0 Light Poster

all folks code or quitely love daniweb

itchap 0 Light Poster

diet -> fit

itchap 0 Light Poster

dizzy is how i feel when sitting for too long infront of the computer

itchap 0 Light Poster

a vegetable->healthy

itchap 0 Light Poster

a very nasty..

itchap 0 Light Poster

your post count is more, BUT, i'll catch up to you :p

itchap 0 Light Poster

some folks skid or guiltily love daniweb

itchap 0 Light Poster

that is sure

itchap 0 Light Poster

cucumber->YUMMY

itchap 0 Light Poster

the point i get, im glad that we can be friends, and the sentence consruction is actually pretty good... better than mine ;)

itchap 0 Light Poster

monster wants to stay in the forum and monster wants to be your friend :)

itchap 0 Light Poster

brinjals->which means?

itchap 0 Light Poster

up is where the topic of beer will no longer go ;)

itchap 0 Light Poster

to strike with

itchap 0 Light Poster

some folks skid or guiltily screw friends

itchap 0 Light Poster

color->purple

itchap 0 Light Poster

experience will make you think twice before asking your wife for beer again ;)

itchap 0 Light Poster

i sleep 6 - 7 hrs per night and its not enough to keep me going through the day :(

itchap 0 Light Poster

beer tasted nasty because wife got it ;)

itchap 0 Light Poster

who is fumming

itchap 0 Light Poster

>I'm taking all three subjects together....so you must imagine how mixed up im getting
I know that feeling all too well. I frequent forums for about nine different languages and I end up making more of those blunders than I'd like. ;)

heh....yeah, tell me about it :lol: , goodluck anyway :cheesy:

itchap 0 Light Poster

Thank you sooooo much Narue :) I really am getting confused between C, C++ and java. I'm taking all three subjects together....so you must imagine how mixed up im getting ;)

cheers,

itchap

itchap 0 Light Poster

hi again!! I did this question:

Create a class responsible for determining whether a string is a palindrome.

I did the code. but i have some errors that i dont know how to fix.

these are the errors:

1- syntax error before `)' token
2- syntax error before `)' token
3- In function `int main()':
4- ` Ispalindrome' undeclared (first use this function)

#include <iostream>
#include <conio.h>
#include <string.h>
 
using namespace std;
 
 
class palindrome
{
     string s;
 
     public:
 
     palindrome()
     {
        s="null";
     }
 
        palindrome (string s1)
        {
           s=s1;
        }
 
     boolean Ispalindrome()
     {
             string s1 = s.reverse;
             if (s==s1)
             return true;
             else
             return false;
     }
};
 
int main()
{
   palindrome s1("How are you");
   cout<<s1.Ispalindrome();
   palindrome s2("BOB");
   cout<<s2.Ispalindrome();
 
   getch();
   return 0;
}

Thanks for your help in advance!

itchap

itchap 0 Light Poster

You should put this in a loop, now it will find 1 occurence and continue with the rest of your code.
so something like:

While (not the end of the file)
{
    look for searchstring
    lines++;
    if string is found
    {
       cout << "found at line" << lines << endl
    }
}

Thanks Nick!!!!!!!!!!!!!!!!!!!!

itchap 0 Light Poster

i am new to eriting c codes and in one of the programming i am currently doing, i came across something like #ifdef_cplusplus. i don't know what it means. help

You should ask this question in a new thread, so others dont get confused on which of us to help.

itchap 0 Light Poster

Hi everyone,

Im trying to solve this question:

write a C++ program to find a given word in a file. It should display all the line numbers where the word occurs.

this is the code that i did so far, the problem is it wont display all the right line number, it only displays "1" :( I hope that you guys can help me fix it up.

#include <iostream>
#include <conio.h>
#include <fstream>
using namespace std;
int main()
{
string s1;
ifstream in ("file.txt");
int lines = 0;
cout << "Enter your search string: " <<endl;
cin >> s1;
in.seekg(0,ios::beg);
lines ++;
cout<<"The  string occured at lines: " << lines<<endl;
in.close();
getch();
return 0;
}

Thanks in advance,
itchap