Help with program design
I am trying to create a program that exchanges information using UDP with the option to encrypt the information sent, the key used will be exchanged before hand, a wraped key, there is just one problem, the init method on the cipher object. i can't figure out how to initilize it, because I don't have a key until I unwrap it
andrewjj20
what are some good websites on encryptionOy. I usually point people at books rather than websites. "Applied Cryptography", by Bruce Schneier, and "Practical Cryptography", by Schneier and Ferguson, are my two standard "read these to know how it works" volumes. Crypto is a large topic.
When I said "search on" in my message, I meant searching right here in these forums. There's been a lot of discussion on key-exchange in here.
Good luck,
Grant
Similar Messages
-
Hai,
Can any one give example for search help with Programming?
I hope we can create search help with help of coding.
With Regards,Jaheer.yes u can create search help by using match code in programs
for eq
go with abap editor se 38
provide the name of program
parameters : vendor like lfa1-lifnr matchcode object yzob.
double click on yzob
provide description for search help
provide selection method
provide search help parameter
enable check box for import and export
provide lpos
spos
save check activate
press f4 for check and import values i.e it will display a records list available in database table
rewards points please -
Hi everybody,
I designed a calculator, and I need help with the rest of the scientific actions. I know I need to use the different Math methods, but what exactly? Also, it needs to work as an applet and application, and in the applet, the buttons don't appear in order, how can I fix that?
I will really appreciate your help with this program, I need to finish it ASAP. Please e-mail me at [email protected].
Below is the code for the calcualtor.
Thanks in advance,
-Maria
// calculator
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
public class calculator extends JApplet implements
ActionListener
private JButton one, two, three, four, five, six, seven,
eight, nine, zero, dec, eq, plus, minus, mult, div, clear,
mem, mrc, sin, cos, tan, asin, acos, atan, x2, sqrt, exp, pi, percent;
private JLabel output, blank;
private Container container;
private String operation;
private double number1, number2, result;
private boolean clear = false;
//GUI
public void init()
container = getContentPane();
//Title
//super("Calculator");
JPanel container = new JPanel();
container.setLayout( new FlowLayout( FlowLayout.CENTER
output = new JLabel("");
output.setBorder(new MatteBorder(2,2,2,2,Color.gray));
output.setPreferredSize(new Dimension(1,26));
getContentPane().setBackground(Color.white);
getContentPane().add( "North",output );
getContentPane().add( "Center",container );
//blank
blank = new JLabel( " " );
container.add( blank );
//clear
clear = new JButton( "CE" );
clear.addActionListener(this);
container.add( clear );
//seven
seven = new JButton( "7" );
seven.addActionListener(this);
container.add( seven );
//eight
eight = new JButton( "8" );
eight.addActionListener(this);
container.add( eight );
//nine
nine = new JButton( "9" );
nine.addActionListener(this);
container.add( nine );
//div
div = new JButton( "/" );
div.addActionListener(this);
container.add( div );
//four
four = new JButton( "4" );
four.addActionListener(this);
container.add( four );
//five
five = new JButton( "5" );
five.addActionListener(this);
container.add( five );
//six
six = new JButton( "6" );
six.addActionListener(this);
container.add( six );
//mult
mult = new JButton( "*" );
mult.addActionListener(this);
container.add( mult );
//one
one = new JButton( "1" );
one.addActionListener(this);
container.add( one );
//two
two = new JButton( "2" );
two.addActionListener(this);
container.add( two );
//three
three = new JButton( "3" );
three.addActionListener(this);
container.add( three );
//minus
minus = new JButton( "-" );
minus.addActionListener(this);
container.add( minus );
//zero
zero = new JButton( "0" );
zero.addActionListener(this);
container.add( zero );
//dec
dec = new JButton( "." );
dec.addActionListener(this);
container.add( dec );
//plus
plus = new JButton( "+" );
plus.addActionListener(this);
container.add( plus );
//mem
mem = new JButton( "MEM" );
mem.addActionListener(this);
container.add( mem );
//mrc
mrc = new JButton( "MRC" );
mrc.addActionListener(this);
container.add( mrc );
//sin
sin = new JButton( "SIN" );
sin.addActionListener(this);
container.add( sin );
//cos
cos = new JButton( "COS" );
cos.addActionListener(this);
container.add( cos );
//tan
tan = new JButton( "TAN" );
tan.addActionListener(this);
container.add( tan );
//asin
asin = new JButton( "ASIN" );
asin.addActionListener(this);
container.add( asin );
//acos
acos = new JButton( "ACOS" );
cos.addActionListener(this);
container.add( cos );
//atan
atan = new JButton( "ATAN" );
atan.addActionListener(this);
container.add( atan );
//x2
x2 = new JButton( "X2" );
x2.addActionListener(this);
container.add( x2 );
//sqrt
sqrt = new JButton( "SQRT" );
sqrt.addActionListener(this);
container.add( sqrt );
//exp
exp = new JButton( "EXP" );
exp.addActionListener(this);
container.add( exp );
//pi
pi = new JButton( "PI" );
pi.addActionListener(this);
container.add( pi );
//percent
percent = new JButton( "%" );
percent.addActionListener(this);
container.add( percent );
//eq
eq = new JButton( "=" );
eq.addActionListener(this);
container.add( eq );
//Set size and visible
setSize( 190, 285 );
setVisible( true );
public static void main(String args[]){
//execute applet as application
//applet's window
JFrame applicationWindow = new JFrame("calculator");
applicationWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//applet instance
calculator appletObject = new calculator();
//init and start methods
appletObject.init();
appletObject.start();
} // end main
public void actionPerformed(ActionEvent ae)
JButton but = ( JButton )ae.getSource();
//dec action
if( but.getText() == "." )
//if dec is pressed, first check to make shure there
is not already a decimal
String temp = output.getText();
if( temp.indexOf( '.' ) == -1 )
output.setText( output.getText() + but.getText() );
//clear action
else if( but.getText() == "CE" )
output.setText( "" );
operation = "";
number1 = 0.0;
number2 = 0.0;
//plus action
else if( but.getText() == "+" )
operation = "+";
number1 = Double.parseDouble( output.getText() );
clear = true;
//output.setText( "" );
//minus action
else if( but.getText() == "-" )
operation = "-";
number1 = Double.parseDouble( output.getText() );
clear = true;
//output.setText( "" );
//mult action
else if( but.getText() == "*" )
operation = "*";
number1 = Double.parseDouble( output.getText() );
clear = true;
//output.setText( "" );
//div action
else if( but.getText() == "/" )
operation = "/";
number1 = Double.parseDouble( output.getText() );
clear = true;
//output.setText( "" );
//eq action
else if( but.getText() == "=" )
number2 = Double.parseDouble( output.getText() );
if( operation == "+" )
result = number1 + number2;
else if( operation == "-" )
result = number1 - number2;
else if( operation == "*" )
result = number1 * number2;
else if( operation == "/" )
result = number1 / number2;
//output result
output.setText( String.valueOf( result ) );
clear = true;
operation = "";
//default action
else
if( clear == true )
output.setText( "" );
clear = false;
output.setText( output.getText() + but.getText() );Multiple post:
http://forum.java.sun.com/thread.jsp?forum=31&thread=474370&tstart=0&trange=30 -
Can anyone help with programming co ordinates.
how do i develop a class specification for class points.
//pointTest.java
main(...)
Point P1;
P1.create(24,16); // create a point with coordinates {24,16}
P1.display(); // display the {X,Y} coordinates of P1
can anyone help with coding to program two points. can anyone elaborate on the stubs shown above to develop one point.There's already a Point class. So use that.
Unless this is a homework in which case, well, it's your homework isn't it? So why are you asking us? -
Need help with security design!
Hi,
I haven't worked with security design very much. Currently I'm about to develop an application to my father which should implement some sort of security.
One of the reasons for this application besides making my father happy is educating myself.
The application is an online image album.
The security could be divided in role-based security and instance level security.
Role-based (NO PROBLEM):
A user cannot delete another user, an administrator can delete users.
Instance-level (DON'T KNOW HOW):
A user can load other users image albums if he/her is allowed/granted to view the album and its images. Note that the user could be granted to view the album, but not all of its images.
My problem is how I should design the "instance-level" security? Should I keep a ACL (Access Control List) with each instance of album and image?
This seems to be a common functionality to add view/load/read/write permissions to an instance in runtime to let a certain user to operate on an asset?
Have searched the Internet but haven't found any nice framework to help me.
Could anyone with some experience please help me out?!
Kind regards, AndreasHi,
I ran into the same problem. Could you resolve it?
please give me your feedback. -
I want to design and use one or more classes for a particular project I am working on.
I need some advice hopefully from someone who has experience in this area. Basically,
for this particular problem I have two database tables. I want the first class to
represent the first database table and the second class to represent the second
database table. An object of the first class will be created first, and then if certain
criteria are met then an object of the second class will be created.
Question:
Should I use classical inheritance and let the first class inherit from the second class?
Or should I use the containment delegation model and embed an object of the second
class in the first class?
----Tables------
For example, my first table ET_UserData looks something like this:
ET_UserData
(PK)UserName
Password
FirstName
LastName
My second table ET_DetailedUserData looks like this
ET_DetailedUserData
(FK)UserName
WorkAddress
WorkPhoneNumber
CityWhereEmployed
SocialSecurityNumber
City
State
StreetAdress
PrimaryTelephoneNumber
AlternatePhoneNumber
HasRegistered
RegistrationDate
RegistrationTime
CreditCardNumber
NameOfPrimaryContact
DateOfBirth
Weight
EyeColor
Height
Member
Here is are some pseudo classes for the two classes.
Class UserData
string UserName
string FirstName
string LastName
Class DetailedUserData /* For a classical approach, sub class off of class UserData */
/* UserData ThisUser --> Containment delegation model */
string (FK)UserName
string WorkAddress
string WorkPhoneNumber
string CityWhereEmployed
string SocialSecurityNumber
string City
string State
string StreetAdress
Int PrimaryTelephoneNumber
Int AlternatePhoneNumber
Bool HasRegistered
Int RegistrationDate
Int RegistrationTime
Int CreditCardNumber
String NameOfPrimaryContact
Int DateOfBirth
Int Weight
Int EyeColor
Int Height
bool Member
}Thank you for your help. If you can continue to help me I would appreciate it.
I and another developer did the database design. Pretty solid design. Plus we have all of the requirements
which are very good too.
Originally I wanted just one table to contain all of the data associated with a user. Instead of ET_UserData and ET_Detailed user data I wanted just one table. But I decided to break this table up into the two tables for the following reason.
1.) This is a web application where each user logs into a web form. At a minimum, in order to use the website the session associated with each user needs the UserName, Password, First and last name.
This is the data in the first table.
If they choose to do more specialized functions on this website, then they will need all of the information (Attributes) that are located in the second table. In general 40% of the time all users will need information located in the second table.
My reasoning for breaking the table into two seperate tables is that I wanted to minimize the amount of data involved in a result set, created from the sql query. The math tells me that 60% of the time most of the data in the result set will not be used.
2.) If I create one class to represent all of the data/attributes in both tables, then my reasoning is that their will be alot of overhead in the single class because 60% of the time, a majority of the attributes are not needed and used.
I would deeply appreciate your help with this. You seem to have great insight and advice. Please help me as I increase the duke dollars Sir. -
Help with program flow and timing a loop please
I'm working on an application that will display vibration data on several tabs. 1 tab displays the time waveform, another a running RMS value, another an FFT etc.
On another tab I want the user to have the option of streaming the data to disk for 'x' number of seconds.
I created a sub-vi with a flat sequence structure.
The first frame open/creates a file. The second frame gets the current time in seconds and adds 'x' seconds to it. The third frame contains a while loop with a "Get Current Time in Seconds" and a "Write to Binary File" which executes while the current time is less than the "previous current time plus 'x'".
This sub-vi is in a while loop that is called when a "capture data" button is pressed.
My problem is that the rest of the program (waveform, RMS, FFT displays) stops executing when the while loop / sub-vi is executing.
This can be seen via the "TEST" indicator that doesn't update.
When the program flow goes back to the rest of the program I get an error 'cause the buffer has over-flown (ed)
I'm really new at this so any help is greatly appreciated.
I've attached images of the main vi (Project3.pdf) and the sub-vi containing the Flat Sequence (WriteToDisk.pdf)
I can attach the actual vis if it helps.
Thanks,
Erik
Attachments:
Project3.pdf 189 KB
WriteToDisk.pdf 85 KBThe behavior you're seeing is by design. There are two solutions to your problem:
Place the write to file in a separate loop that runs in parallel to your main loop. Thus, your "Project3" VI would have two loops. One is the data acquisition, the other is the streaming to file. You should not create data dependencies between the loops that would cause one loop to wait until the other is done. You want both running in parallel. You can stop both loops with the same stop button. With this method you can use local variables to get the Time Waveform data as you're doing now.
Launch the stream to file VI dynamically. This basically uses the VI Server to start a subVI and then immediately return to the caller. The subVI is then running on its own. There are examples that ship with LabVIEW that show you how to do this. You would have to have the subVI monitor something to determine if it should stop should the main program stop.
The first option would be the easiest to implement in your case. The second is more complex, but leaves you with one loop. -
I am having a lot of trouble with the left side of CSS Designer. Sorry to sound like such a kvetch!
To take a simple example - From the Welcome screen I create a fuid grid layout and name my style sheet mystyles.css. When the document window/program opens I am seeing boilerplate.css in bold and only two selectors down below - "html, button, input, select, textarea" and "html". Why only two since the boilerplate has a huge complement of selectors?
Next question (more important) - when I click on mystyles.css a list of 16 selectors pops up, although the only one I was expecting to see was the selector for "grid container"! Why does this happen? Why doesn't Dreamweaver let me create my own selectors as I build the site? I have read that mystyles.css should contain only those style rules which I have inserted into the head of my code. Is that not true?
In general I feel that Adobe relies too much on robotic tutorials without explaining the underlying architecture. When the beginning uses starts out on his/her own, it is easy to get confused.
Please help!
Kevin from CambridgePlease let me know if you are willing to continue with this.
That's why I'm here!
The CSS in each of those stylesheets provides the "boilerplate" layout for your fluid grid pages. Without that CSS, you would have no "fluid" and no "grid". That's why both of them contain pre-defined rules, many of which correspond to the ID's already assigned to the HTML (or the tag(s)) that is/are written on the page when it is first opened.
The contents of the @media pane are determined by the selections you made for the various widths and gutters in the New Page dialog that opened when you selected the Fluid Grid Layout option. You can adjust these as needed once they are written during this process.
So what are your further questions? -
Need help with program for Inner join
Hello Experts,
I need to create a list from table sbook containing booking number (sbook-bookid), customer number (sbook-customid), customer name (scustom-name) , customer class (sbook-class) and ticket price (sflight-price). I am new to ABAP and am very confused I tried reading up some examples and came up with the attached program
Attached is my program for inner join
Kindly Help
Thanks SuHi Su K
You May use key fields , Foreign keys for joining , Here
SELECT SBOOK~BOOKID SBOOK~CUSTOMID SBOOK~CLASS
SCUSTOM~ID SCUSTOM~NAME FROM SFILGHT
INNER JOIN SBOOK ON SBOOK~CARRID EQ SFILGHT~CARRID
SBOOK~CONNID EQ SFILGHT~CONNID
SBOOK~FLDATE EQ SFILGHT~FLDATE
INNER JOIN SCUSTOM ON SCUSTOM~ID = SBOOK~ID -
Help with programs not opening!
I have a Lenovo Ideapad Miix 10.
Worked fine until recently. Now when I try to open something like Word or Excel, they don't open. Instead, it takes me to the desktop and does nothing. When I go to "troubleshoot compatibility", I have the option to test the program, allow access to change the computer (or whatever its asking for..) but it still does nothing. When I click no and select that the problem is not fixed, the troubleshooter lists incompatible program as being detected.
This is really inconvenient, and I am still getting comfortable with the windows tablet so dont exactly know my way around yet. anyone able to help out? thanks in advance!You are posting in the "icloud on my mac" forum, but your profile mentions Windows. If using a mac, you need to have iphoto or aperture installed in order to receive new photos via photo stream. If using windows, try posting in the iCloud on a PC forum. You'll get better help there.
https://discussions.apple.com/community/icloud/icloud_on_my_pc -
Rookie needs help with program!!
Hi everyone,
I am new to JAVA programming and am trying to figure out my first progam. Any suggestions? Here's what I have to come up with...
This program will test your ability to code a loop function and some work with the strings methods.
INPUT
A SENTENCE OF UNKNOWN LENGTH.
OUTPUT
THE NUMBER OF WORDS IN THE SENTENCE AND EACH WORD ON A SEPARATE LINE. Two spaces are not a word; "a" is a word.
HINT
Use a loop until the end of the sentence and count each word that is removed from the front of the sentence (one at a time). Each time the sentence should be shortened.
I know I need to use a string method...Here's what I have so far...
public class jmstr
public static void main (String[ ] args)
System.out.println ("Please enter a sentence starting with some spaces ");
inputline = SavitchIn.readLine ( ) ;
System.out.println (inputline);
I'm not really sure what to do next....?
Any help would be appreciated!
matermanhttp://java.sun.com/j2se/1.4.2/docs/api/java/util/StringTokenizer.html
look at the example on the page, then scroll down to the Methods section and click on
countTokens() -
Help with program to remove comments from chess(pgn) text files
Hi
I would like to make a java program that will remove chessbase comments from pgn files (which are just based text files).
I have done no java programming on text files so far and so this will be a new java adventure for me. Otherwise I have limited basic java experience mainly with Java chess GUI's and java chess engines.
I show here a portion of such a pgn text file with the chessbase comments which are between the curly braces after the moves:
1. e4 {[%emt 0:00:01]} c6 {[%emt 0:00:10]} 2. d4 {[%emt 0:00:03]} d5 {
[%emt 0:00:01]} 3. e5 {[%emt 0:00:01]} Bf5 {[%emt 0:00:01]} 4. h4 {
[%emt 0:00:02]} e6 {[%emt 0:00:02]}
I want to make a java program if possible that removes these comments, so just leaving the move notation eg:
1. e4 c6 2. d4 d5 3. e5 Bf5 4. h4 e6
I am just starting with this. As yet I am unsure how to begin and do this and I would be extremely grateful for any help and advice to get me going with this project.
I look forward to replies, many thanksI found a simple java text editor (NutPad-with sourcecode) and have tried to adapt it to incorporate the regular expressions code suggested by ChuckBing and renamed it CleanCBpgnPad.
Presently this won't compile! (not surprising).
I copy the code here:
//CleanCBpgnPad by tR2 based on NutPad text editor
// editor/NutPad.java -- A very simple text editor -- Fred Swartz - 2004-08
// Illustrates use of AbstractActions for menus.
//http://www.roseindia.net/java/java-tips/45examples/20components/editor/nutpad.shtml
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
public class CleanCBpgnPad extends JFrame {
//-- Components
private JTextArea mEditArea;
private JFileChooser mFileChooser = new JFileChooser(".");
//-- Actions
private Action mOpenAction;
private Action mSaveAction;
private Action mExitAction;
private Action mCleanAction;
//===================================================================== main
public static void main(String[] args) {
new CleanCBpgnPad().setVisible(true);
}//end main
//============================================================== constructor
public CleanCBpgnPad() {
createActions();
this.setContentPane(new contentPanel());
this.setJMenuBar(createMenuBar());
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setTitle("CleanCBpgnPad");
this.pack();
}//end constructor
///////////////////////////////////////////////////////// class contentPanel
private class contentPanel extends JPanel {
//========================================================== constructor
contentPanel() {
//-- Create components.
mEditArea = new JTextArea(15, 80);
mEditArea.setBorder(BorderFactory.createEmptyBorder(2,2,2,2));
mEditArea.setFont(new Font("monospaced", Font.PLAIN, 14));
JScrollPane scrollingText = new JScrollPane(mEditArea);
//-- Do layout
this.setLayout(new BorderLayout());
this.add(scrollingText, BorderLayout.CENTER);
}//end constructor
}//end class contentPanel
//============================================================ createMenuBar
/** Utility function to create a menubar. */
private JMenuBar createMenuBar() {
JMenuBar menuBar = new JMenuBar();
JMenu fileMenu = menuBar.add(new JMenu("File"));
fileMenu.add(mOpenAction); // Note use of actions, not text.
fileMenu.add(mSaveAction);
fileMenu.add(mCleanAction);
fileMenu.addSeparator();
fileMenu.add(mExitAction);
return menuBar;
}//end createMenuBar
//============================================================ createActions
/** Utility function to define actions. */
private void createActions() {
mOpenAction = new AbstractAction("Open...") {
public void actionPerformed(ActionEvent e) {
int retval = mFileChooser.showOpenDialog(CleanCBpgnPad.this);
if (retval == JFileChooser.APPROVE_OPTION) {
File f = mFileChooser.getSelectedFile();
try {
FileReader reader = new FileReader(f);
mEditArea.read(reader, ""); // Use TextComponent read
} catch (IOException ioex) {
System.out.println(e);
System.exit(1);
mSaveAction = new AbstractAction("Save") {
public void actionPerformed(ActionEvent e) {
int retval = mFileChooser.showSaveDialog(CleanCBpgnPad.this);
if (retval == JFileChooser.APPROVE_OPTION) {
File f = mFileChooser.getSelectedFile();
try {
FileWriter writer = new FileWriter(f);
mEditArea.write(writer); // Use TextComponent write
} catch (IOException ioex) {
System.out.println(e);
System.exit(1);
mCleanAction = new AbstractAction ("Clean"){
public void actionPerformed (ActionEvent e) {
int retval = mFileChooser.showCleanDialog(CleanCBpgnPad.this);
if (retval== JFileChooser.APPROVE_OPTION){
File f = mFileChooser.getSelectedFile();
try {
FileCleaner cleaner = new FileCleaner (c);
mEditArea.clean(cleaner); // Use TextComponent clean
}catch (IOException ioex){
String str = "1. e4 {[%emt 0:00:01]} c6 {[%emt 0:00:10]} 2. d4 {[%emt 0:00:03]} d5 {[%emt 0:00:01]} " + "3. e5 {[%emt 0:00:01]} Bf5 {[%emt 0:00:01]} 4. h4 {[%emt 0:00:02]} e6 {[%emt 0:00:02]}";
str = str.replaceAll("\\{.*?\\}", "");
System.out.println(str);
System.exit(1);
mExitAction = new AbstractAction("Exit") {
public void actionPerformed(ActionEvent e) {
System.exit(0);
}//end createActions
}//end class CleanCBpgnPad
As seen I added a newAction mClean.
4 errors arise starting with line 101-cannot find symbol method showCleanDialog
then 3 errors on line 104 tryfilecleaner
Can anyone help me with this please?
Can I incorporate the regular expression code to remove these text comments into this text editor code and if so how?
Obviously a lot of this code is new to me and I will continue to study it and hope to learn to understand most , if not all of it!
Again I look forward to replies,thanks -
Help with a design, using Java Persistence
I'm having a design issue, and I hope that someone can help.
I have a table called Item, and it essentially acts as a header table for a group of attributes for that item.
TABLE Item
.....id....................long
.....itemName.........varchar
.....StartDate........datetime
.....StopDate........datetime
If I can, I'd like to design a model that will allow for a dynamic number of attributes for any given ITEM.
I initially thought that it would be convenient to design the Attributes table like such:
TABLE Attribute
.....id....................long
.....itemID.............long (references Item.id)
.....attributeName....varchar
.....value...............?
.....StartDate.........datetime
.....StopDate.........datetime
My problem is the VALUE column. Attributes can be any given type, so this won't work if I want to enforce a data type.
I don't know where to go from here. I can create a table to include all attributes, but each attribute needs to have a date range.
Additionally, the history of the attributes must be retained; so, if I succeeded any given Attribute I would need to duplicate the
entire row (thus, all the other data that didn't change).
One thought was to create an Attribute table for each of the most common types, but that seems like a really bad idea:
TABLE AttributeLong
TABLE AttributeDateTime
TABLE AttributeVarchar
etc, etc ...
I should note that I'm using Java Persistence.I agree with you 100%. Here is something I'm trying to get a grip on: there are a finite number of attributes per group, but the number of attribute groups can grow (maybe 20 sets max - but I just don't know yet).
I would need one table (Entity) for each set of attributes.
So, for instance, let's say I have:
Item1 is of kind KIND1 that has an attribute set of SET1
(ie, tables ITEM and SET1)
Item2 is of kind KIND2 that has an attribute set of SET2
(ie, tables ITEM and SET2)
I'd like to have my Item entity class set up like such:
myItem.getAttributeSet
instead of:
myItem.getAttributeSet1
myItem.getAttributeSet2
Since at given time I can extend my application (and add new entity classes to support a new table for SET3), I wanted to avoid changing Item. I can have getAttributeSet return an interface and then cast it, but that still requires changing Item to account for the new entities. Thus, I can't just drop in new "packages."
I want a flexible and extensible system., but maybe I'm over thinking/engineering this. -
Hello,
I am attempting to replicate a design of a popular Bill Murray T-shirt and need help.
On the left is the design that I want to have and on the right is my design
They are close but the one on the right is too cartoonish, the edges are not as crisp and the coloring is not consistent.
Here are the steps I took:
-Copied new layer
-Unlocked Background
-Image->Adjustments->Black&White
-Copied Layer->Pasterize->level 3
-Copied New layer
-Filter->Artistic->Cutout
-Levels->8 Simplicity->0 Fidelity->3
-Image->Brightness/Contrast
It's not quite what I am looking for, PLEASE HELP!
Thanks!A couple of comments - and these are just my thoughts -
Part of the reason the image on the left looks as it does is the black background as opposed to the white one on the right. Changing that would probably give a whole different feel to the image to start with.
If you want to "darken up" and sharpen parts of the image you could try putting a copy of the original layer (I do mean the original - not the gray scale one you have created) above the grayscale layer. Choosing Adjustments / threshold to create a very starkly contrasted image. Then use a combination of opacity level on that layer to reveal the gray image. Alternatively place an inverted mask on the layer (hiding the new B&W layer) and then, using a white brush with opacity of 30% or less to gradually darken the areas of the image that you feel need it.
As I said - just my suggestion, I am sure other people will have different suggestions.
Cheers
John -
Looking for some help with package design (box)
I'm pretty good with Photoshop, but Illustrator is fairly new to me. I'm helping a friend do his product packages and I already have all of the graphics, I'm just having trouble figuring out how to put it all together in Illustrator.
We already have the box dimensions and just need to get a vector file that the factory can use to print. My main question is how do I create the actual layout of the box to work on? In the pdf that was sent to us I can pull out the box, but it just sits on a white background.
My next question is how do I fill the layout with a pattern. I have a carbon fiber look pattern in Photoshop, but I'm having trouble figuring out how to use it to fill in Illustrator.
Thanks ahead of time for any help.Jem,
Pardon me if I sound rude by suggesting that before you launch into an expensive printing job (which could result in disastrous consequences if you don't do it right) that you actually learn how to use the program first. You may also want to learn something about the offset printing process and how to prepare print jobs.
Even many Illustrator novices know that there is no such thing as a background in Illustrator, in the sense that there is in Photoshop. You will need to PLACE your Photoshop background as a high resolution CMYK tiff in the provided template. That's the answer to your second question. I don't really understand your first question. Maybe someone else will. Are you simply asking, "where do I begin?" If so, then you REALLY REALLY need to read a book on how to use Illustrator. The Adobe Illustrator Classroom in a Book might be the place to start.
"I'm pretty good with CPR. I'm helping a friend do his vasectomy and I already have all the equipment (scalpels, thread, etc.) I'm just having trouble figuring out where to cut."
Maybe you are looking for
-
Element missing error message in sap script
I have added some extra text elements ibn my Script and transported it into Quality. I can see those added elemetns through SE71. But when i run the transaction if i see in debugging mode iam not able to see the added elements in the script. I have w
-
Hi.. I'm using a ref cursor query to fetch data for a report and works just fine. However i need to use dynamic sql in the query because the columns used in the where condition and for some calculations may change dynamically according to user input
-
Panel content not loaded in non-english Photoshop
Hello. I have created this Panel ( http://circografico.com.ar/shop/downloads/ad-artbox-lite/ ) that works perfect in Photoshop CS6 - english version - both in Windows and Mac, but when someone try to use it in a spanish Photoshop version, it loads a
-
DRM 11.1.1.3 Performance benefit to making a version 'submitted'?
Hi All: Just a quick question. Are there any performance/storage benefits in DRM 11.1.1.x to changing a version status to submitted? What I am aiming at here is ideally maintaining some prior year versions as required by law but keeping their resour
-
Skype Version 7.2.0.103 just keep crashing
I have upgraded Skype which is bacially an automatice upgrade to a version Skype Version 7.2.0.103. Since I have upgraded my Skype Application just simply crashing. I am using WIndows 8.1 Verson. I can open the application. Then it stays up for about