Turning class into loose expression
I have a class as you see below;
public class LoginScreen extends CustomNode{
var x;
override function create():Node{
loginGroup=Group{
content: [....
I want to turn it into a loose expression so like
var x;
function create(){
login group=Group{
content:[....
but when I change the code and run the application I can't see anything. What should I do and what are the things that I should consider before I change the class into a loose expression
I don't know. It's a reeeeaaallllyyyyyy good question and I'm SURE that is was never ever asked before on this forum. Let see I'll try to do a forum search to see if someone else ever thought about this.
Regards
Similar Messages
-
Breaking Down Classes Into Files
I'd like to know what's considered best practice when dividing multiple classes into seperate files. I know you can have only one public class per file, and I've heard some people say it's best to have one class per file, period. But the one-class-per-file rule seems overly strict.
To give a specific example, I have a class which manages event handlers and event generators. The class receives events and delegates them to one of its registered handlers. The handlers can, in turn, spawn new events by calling the event generators, which have package access.
Currently, I have the handlers, the generators, and the public class which manages them all in one file, which I know is not good, especially since some of the handlers and some of the generators are fairly large classes in their own right. However, it would be silly (I think) to put every handler and every generator in its file, because some of them are almost trivially small, and none of them have public access. But what is the best way to break them down: Should I put the handlers all in one file, and the generators all in one file, giving me three files total? Or are there other principles that should guide me?
Thanks for any thoughts,
JohnThat's a good point. Although, as you said, it
doesn't really apply in my case. That is, if I put
all the handlers in a file called EventHandlers.java,
that should be pretty clear for me. And, in fact, it
would probably be easier to work with the classes if
they are all in one file.But what do you think about when I say reuse? Don't you think that one class per file will make it easier to reuse the classes? As it is now you have to take them all. Since you have things that are in common for them I would say that you must have interfaces, and abstract classes. Couldn't they be reused in another project? So there are benefits even in small projects. It's also better to have many files if there are several developers and your version manager doesn't allow multiple checkouts of the same file.
>
Also, you mentioned sub-packages. I'm assuming
classes in sub-packages do not have access to their
parent's package-access members. What I really would
like is to prevent any classes except the event
handlers from accessing my EventManager's generator
members. Could you solve that problem in another way? Why do they need access to the EventManager?
Are you saying I should put all the other
classes in a sub-package? I say that you should put related classes in sub-packages. Look at the package structure of the java core (can be seen in the javadoc)
/Kaj -
Error loading a class into oracle db
hi,
my oracle server: 8i Enterprise Edition Release 8.1.7.0.0
i want to load a simple java class into my oracle server.
java source:
public class Ping
java.lang.String server;
public static void main(java.lang.String[] args)
System.out.println(new Ping().runCmd(args[0]));
public static java.lang.String runCmd(String cmd)
boolean result=false;
int timeout=5000;
try {
java.net.InetAddress byName=java.net.InetAddress.getByName(cmd);
result=byName.isReachable(timeout);
catch(java.io.IOException e)
e.printStackTrace();
java.lang.String retVal=java.lang.Boolean.toString(result);
return retVal;
}after compiling the java file. i'm using loadjava at dos prompt.
loadjava -user uname/pwd@db -resolve Ping.class
this command results in
ORA-29545: badly formed class:
loadjava: 1 errors
alternatively i had used a command
loadjava -user uname/pwd@db -noverify -resolve Ping.class
this command results in
Error while turning off verifier
ORA-29532: Java call terminated by uncaught Java exception: java.security.Ac
cessControlException: the Permission (oracle.aurora.security.JServerPermission V
erifier ) has not been granted by dbms_java.grant_permission to SchemaProtection
Domain(SMSPGS|PolicyTableProxy(SMSPGS))
ORA-29545: badly formed class:
loadjava: 2 errors
but user is having sufficient rights (javasyspriv)
what is wrong above, please help me.
regards,
s.mohamed asifthe error message says it all: You don't have permission.
-
Which software is better at turning images into paintings? Adobe Photoshop CS6 or Adobe Illustrator?
Why make it a competition? They're both better! ;-)
I would suggest it depends on what you intend to express (including output production), and your comfort level with the applications. Russell Brown has a video showing ways to make more traditional media referenced painting with Photoshop CS6 here: http://av.adobe.com/russellbrown/PaintingAssistant_SM.mp4
Illustrator also have some great tools for making natural media brushstrokes. Here's demo from AI CS5: https://www.youtube.com/watch?v=TMVCjMm2xWo
regards,
steve -
Turning string into Identifier
I want to create a jsp instanceof tag taht will take a string as an argument and turn it into tan identifier to test against. e.g.
String input = "java.lang.String";
// do somethinng to convert input to identifier object
boolean isInstance = anotherInputVariable instanceof new Identifier(input);
Is there a simple way to do this?
I also want to be able to cast the secondary input into the class represented by the identifier string.. e.g.
String g = (input) anotherInputVariable;
How would I do that as well?
Sorry if this is somewhat coherant... Im on a deathmarch coding project and my brain is awash.I want to create a jsp instanceof tag taht will take a
string as an argument and turn it into tan identifier
to test against. e.g.
String input = "java.lang.String";
// do somethinng to convert input to identifier objectSomething like this?Class c = Class.forName(input);
boolean isInstance = anotherInputVariable instanceof new Identifier(input);You can't use the instanceof operator, but the Class class has methods that will do what you want - check the API. However, use of these techniques is usually a sign of a bad design.
Is there a simple way to do this?
I also want to be able to cast the secondary input
into the class represented by the identifier string..
e.g.
String g = (input) anotherInputVariable;
How would I do that as well?Impossible - there is no runtime type casting. And it wouldn't do you any good anyway, because at complie time (when you're writing your code) the only information you would have available is that it's an Object, so those are the only methods you could use. -
Changing Java class into Java Bean
Can anybody tell me how to change a Java class into simple Java Bean.I dont need any visual interface of Java Bean.I simply want to turn my Java class into Java Bean.
You can use almost any class as a java bean.
To be a bean it must
1 - Have a constructor which takes no arguments (so it can be instantiated)
2 - For properties/attributes which you want to have readable/writable, provide get / set methods of the appropriate type.
Thats it. -
How to import classes into labview project?
Hi everyone
I start objected oriented program with labview, I have two sample project and I want to import their classes into my new project? is it possible to do that ? how can I import them ?
thanksYou can simply add them like you would any other VI or library. I would recommend creating a virtual folder for your classes so you can keep your project organized.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot -
How to convert .class into .jar file
Hi,
How to convert .class into .jar filejsf_VWP5.5.1 wrote:
Hi,
How to convert .class into .jar fileFrom a command prompt, cd to the location of your .class file(s).
If you want to create a simple jar, use: jar -cf Whatever.jar Whatever.class
If you want to compile all .class files in a directory into a jar, use *.class instead.
Now, I'm going to assume you want to create an executable jar... here's how to do that:
1) Create a blank text file; for this example, lets call it main.txt.
2) In the first line of main.txt, type: Main-class: Whatever ('Whatever' should be the name of the class in your program where the main() method is located)
3) Press enter to go to the next line (someone please correct me if I'm wrong, but if you don't insert the line break/CR after the Main-class: statement, this will not work... in my experience, this is true)
4) Make sure you save this file in the same directory as your .class file(s).
5) Type: jar -cmf Whatever.jar main.txt Whatever.class
...and that's about it. For more information on the usage of the jar command and to understand the switches (such as -cmf), try jar --help.
Hope that helps. -
My adobe illustrator is in a foreign language. how can i turn it into english?
my adobe illustrator is in a foreign language. how can i turn it into english?
First please remember this is a public forum. If you are going to respond to the thread via e-mail please remove your signature prior to responding.
To resolve your difficulties you will need to go to the Language & Text preference pane. Once there click on Edit List and remove all languages besides English. You will then likely need to remove and reinstall the trial as the language setting I believe is set during the installation process. -
HOW TO TURN $6 INTO $6,000!!!!!! READING THIS COULD CHANGE
YOUR LIFE!
I found this on a bulletin board and decided to try it. A
little while back,
I was browsing through newsgroups, just like you are now, and
came across an
article similar to this that said you could make thousands of
dollars within
weeks with only an initial investment of $6.00! So I thought,
Yeah right,
this must be a scam,but like most of us, I was curious, so I
kept reading.
Anyway, it said that you send $1.00 to each of the 6 names
and address
stated in the article. You then place your own name and
address in the
bottom of the list at #6, and post the article in at least
200 newsgroups.
(There are thousands) No catch, that was it. So after
thinking it over, and
talking to a few people first, I thought about trying it. I
figured: what
have I got to lose except 6
stamps and $6.00, right? Then I invested the measly $6.00.
Well GUESS
WHAT!!...
within 7 days, I started getting money in the mail! I was
shocked! I figured
it would end soon, but the money just kept coming in. In my
first week, I
made about $25.00. By the end of the second week I had made a
total of over
$1,000.00! In the third week I had over $10,000.00 and it's
still growing.
This is now my fourth week and I have made a total of just
over $42,000.00
and it's still coming in rapidly. It's certainly worth $6.00,
and 6 stamps,
I have spent more than that on the lottery!! Let me tell you
how this works
and most importantly, why it works....Also, make sure you
print a copy of
this article NOW, so you can get the information off of it as
you need it. I
promise you
that if you follow the directions exactly, that you will
start making more
money than you thought possible by doing something so easy!
Suggestion: Read this entire message carefully! (Print it out
or download
it.) Follow the simple directions and watch the money come
in! It's easy.
It's legal. And, your investment is only $6.00 (Plus postage)
IMPORTANT: This is not a rip-off; it is not indecent; it is
not illegal; and
it is virtually no risk - it really works!!!! If all of the
following
instructions are adhered to, you will receive extraordinary
dividends.
PLEASE NOTE: Please follow these directions EXACTLY, and
$50,000 or more can
be yours in 20 to 60 days. This program remains successful
because of the
honesty and integrity of the participants. Please continue
its success by
carefully
adhering to the instructions. You will now become part of the
Mail Order
business. In this business your product is not solid and
tangible, it's a
service. You are in the business of developing Mailing Lists.
Many large
corporations are happy to pay big bucks for quality lists.
However, the
money made from the mailing lists is secondary to the income
which is made
from people like you and me asking to be included in that
list. Here are the
4 easy steps to success:
STEP 1: Get 6 separate pieces of paper and write the
following on each piece
of paper; PLEASE PUT ME ON YOUR MAILING LIST. Now get 6 US
$1.00 bills and
place ONE inside EACH of the 6 pieces of paper so the bill
will not be seen
through the envelope (to prevent thievery). Next, place one
paper in each of
the 6 envelopes and seal them. You should now have 6 sealed
envelopes, each
with a piece of paper stating the above phrase, your name and
address, and a
$1.00 bill. What you are doing is creating a service. THIS IS
ABSOLUTELY
LEGAL! You are requesting a legitimate service and you are
paying for it!
Like most of us I was a little skeptical and a little worried
about the
legal aspects of it all. So I checked it out with the U.S.
Post Office
(1-800-725-2161) and they
confirmed that it is indeed legal! Mail the 6 envelopes to
the following
addresses:
Mailing Adresses
Stephanie Hicks
1283 Evening Canyon
Henderson NV 89014
Ross Wilson
202 Belmont Dr.
Thibodaux, LA 70301
James Small
4690 Sierra St.
Riverside, CA 92504
Thomas G.
P.O. Box 591939
Houston, TX 77259
S. Parker
159 Main Street
Dadeville, Alabama 36853
A. Wyman
9734 Landowne ct.
Orlando, FL 32817
STEP 2: Now take the #1 name off the list that you see above,
move the other
names up (6 becomes 5, 5 becomes 4, etc...) and add YOUR Name
as number 6 on
the list.
STEP 3: Change anything you need to, but try to keep this
article as close
to
original as possible. Now, post your amended article to at
least 200
newsgroups. (I think there are close to 24,000 groups) All
you need is 200,
but remember, the more you post, the more money you make!
This is perfectly
legal! If you have any doubts, refer to Title 18 Sec. 1302
& 1341 of the
Postal lottery laws. Keep a copy of these steps for yourself
and, whenever
you need money, you can use it again, and again.
PLEASE REMEMBER that this program remains successful because
of the honesty
and integrity of the participants and by their carefully
adhering to the
directions. Look at it this way. If you are of integrity, the
program will
continue and the money that so many others have received will
come your way.
NOTE: You may want to retain every name and address sent to
you, either on a
computer or hard copy and keep the notes people send you.
This VERIFIES that
you are truly providing a service. (Also, it might be a good
idea to wrap
the $1 bill in dark paper to reduce the risk of mail theft.)
So, as each
post is downloaded and the directions carefully followed, six
members will
be reimbursed for their participation as a List Developer
with one dollar
each. Your name will move up the list geometrically so that
when your name
reaches the #1 position you will be receiving thousands of
dollars in
CASH!!! What an opportunity for only $6.00 ($1.00 for each of
the first six
people listed above) Send it now, add your own name to the
list and you're
in business!
---DIRECTIONS ----- FOR HOW TO POST TO NEWSGROUPS------------
Step 1) You do
not need to re-type this entire letter to do your own
posting. Simply put
your cursor at the beginning of this letter and drag your
cursor to the
bottom of this document, and select 'copy' from the edit
menu. This will
copy the entire letter into the computer's memory.
Step 2) Open a blank 'notepad' file and place your cursor at
the top of the
blank page. From the 'edit' menu select 'paste'. This will
paste a copy of
the letter into notepad so that you can add your name to the
list.
Step 3) Save your new notepad file as a .txt file. If you
want to do your
postings in different settings, you'll always have this file
to go back to.
Step 4) Use Netscape or Internet explorer and try searching
for various
newsgroups (on-line forums, message boards, chat sites,
discussions.) Step
5) Visit these message boards and post this article as a new
message by
highlighting the text of this letter and selecting paste from
the edit menu.
Fill in the Subject, this will be the header that everyone
sees as they
scroll through the list of postings in a particular group,
click the post
message button. You're done with your first one!
Congratulations...THAT'S
IT! All you have to do is jump to different newsgroups and
post away, after
you get the hang of it, it will take about 30 seconds for
each newsgroup!
**REMEMBER, THE MORE NEWSGROUPS YOU POST IN, THE MORE MONEY
YOU WILL MAKE!!
BUT YOU HAVE TO POST A MINIMUM OF 200**
That's it! You will begin receiving money from around the
world within days!
You may eventually want to rent a P.O.Box due to the large
amount of mail
you will receive. If you wish to stay anonymous, you can
invent a name to
use, as long as the postman will deliver it.
**JUST MAKE SURE ALL THE ADDRESSES ARE CORRECT.** Now the WHY
part: Out of
200 postings, say I receive only 5 replies (a very low
example). So then I
made $5.00 with my name at #6 on the letter. Now, each of
the 5 persons who just sent me $1.00 make the MINIMUM 200
postings, each
with my name at #5 and only 5 persons respond to each of the
original 5,
that is another $25.00 for me, now those 25 each make 200
MINIMUM posts with
my name at #4 and only 5 replies each, I will bring in an
additional
$125.00! Now, those 125 persons turn around and post the
MINIMUM 200 with my
name at #3 and only receive 5 replies each, I will make an
additional
$626.00! OK, now here is the fun part, each of those 625
persons post a
MINIMUM 200 letters with my name at #2 and they each only
receive 5 replies,
that just made me $3,125.00!!! Those
3,125 persons will all deliver this message to 200 newsgroups
with my name
at #1 and if still 5 persons per 200 newsgroups react I will
receive
$15,625,00!With an original investment of only $6.00!
AMAZING! When your
name is no longer on the list, you just take the latest
posting in the
newsgroups, and send out another $6.00 to names on the list,
putting your
name at number 6 again. And start posting again. The thing to
remember is:
do you realize that thousands of people all over the world
are joining the
internet and reading these articles
everyday?, JUST LIKE YOU are now!! So, can you afford $6.00
and see if it
really works?? I think so... People have said, "e;what if the
plan is played
out and no one sends you the money? So what! What are the
chances of that
happening when there are tons of new honest users and new
honest people who
are joining the internet and newsgroups everyday and are
willing to give it
a try?
Estimates are at 20,000 to 50,000 new users, every day, with
thousands of
those joining the actual internet.
Remember: play FAIRLY and HONESTLY and this will really work.HOW TO TURN $6 INTO $6,000!!!!!! READING THIS COULD CHANGE
YOUR LIFE!
I found this on a bulletin board and decided to try it. A
little while back,
I was browsing through newsgroups, just like you are now, and
came across an
article similar to this that said you could make thousands of
dollars within
weeks with only an initial investment of $6.00! So I thought,
Yeah right,
this must be a scam,but like most of us, I was curious, so I
kept reading.
Anyway, it said that you send $1.00 to each of the 6 names
and address
stated in the article. You then place your own name and
address in the
bottom of the list at #6, and post the article in at least
200 newsgroups.
(There are thousands) No catch, that was it. So after
thinking it over, and
talking to a few people first, I thought about trying it. I
figured: what
have I got to lose except 6
stamps and $6.00, right? Then I invested the measly $6.00.
Well GUESS
WHAT!!...
within 7 days, I started getting money in the mail! I was
shocked! I figured
it would end soon, but the money just kept coming in. In my
first week, I
made about $25.00. By the end of the second week I had made a
total of over
$1,000.00! In the third week I had over $10,000.00 and it's
still growing.
This is now my fourth week and I have made a total of just
over $42,000.00
and it's still coming in rapidly. It's certainly worth $6.00,
and 6 stamps,
I have spent more than that on the lottery!! Let me tell you
how this works
and most importantly, why it works....Also, make sure you
print a copy of
this article NOW, so you can get the information off of it as
you need it. I
promise you
that if you follow the directions exactly, that you will
start making more
money than you thought possible by doing something so easy!
Suggestion: Read this entire message carefully! (Print it out
or download
it.) Follow the simple directions and watch the money come
in! It's easy.
It's legal. And, your investment is only $6.00 (Plus postage)
IMPORTANT: This is not a rip-off; it is not indecent; it is
not illegal; and
it is virtually no risk - it really works!!!! If all of the
following
instructions are adhered to, you will receive extraordinary
dividends.
PLEASE NOTE: Please follow these directions EXACTLY, and
$50,000 or more can
be yours in 20 to 60 days. This program remains successful
because of the
honesty and integrity of the participants. Please continue
its success by
carefully
adhering to the instructions. You will now become part of the
Mail Order
business. In this business your product is not solid and
tangible, it's a
service. You are in the business of developing Mailing Lists.
Many large
corporations are happy to pay big bucks for quality lists.
However, the
money made from the mailing lists is secondary to the income
which is made
from people like you and me asking to be included in that
list. Here are the
4 easy steps to success:
STEP 1: Get 6 separate pieces of paper and write the
following on each piece
of paper; PLEASE PUT ME ON YOUR MAILING LIST. Now get 6 US
$1.00 bills and
place ONE inside EACH of the 6 pieces of paper so the bill
will not be seen
through the envelope (to prevent thievery). Next, place one
paper in each of
the 6 envelopes and seal them. You should now have 6 sealed
envelopes, each
with a piece of paper stating the above phrase, your name and
address, and a
$1.00 bill. What you are doing is creating a service. THIS IS
ABSOLUTELY
LEGAL! You are requesting a legitimate service and you are
paying for it!
Like most of us I was a little skeptical and a little worried
about the
legal aspects of it all. So I checked it out with the U.S.
Post Office
(1-800-725-2161) and they
confirmed that it is indeed legal! Mail the 6 envelopes to
the following
addresses:
Mailing Adresses
Stephanie Hicks
1283 Evening Canyon
Henderson NV 89014
Ross Wilson
202 Belmont Dr.
Thibodaux, LA 70301
James Small
4690 Sierra St.
Riverside, CA 92504
Thomas G.
P.O. Box 591939
Houston, TX 77259
S. Parker
159 Main Street
Dadeville, Alabama 36853
A. Wyman
9734 Landowne ct.
Orlando, FL 32817
STEP 2: Now take the #1 name off the list that you see above,
move the other
names up (6 becomes 5, 5 becomes 4, etc...) and add YOUR Name
as number 6 on
the list.
STEP 3: Change anything you need to, but try to keep this
article as close
to
original as possible. Now, post your amended article to at
least 200
newsgroups. (I think there are close to 24,000 groups) All
you need is 200,
but remember, the more you post, the more money you make!
This is perfectly
legal! If you have any doubts, refer to Title 18 Sec. 1302
& 1341 of the
Postal lottery laws. Keep a copy of these steps for yourself
and, whenever
you need money, you can use it again, and again.
PLEASE REMEMBER that this program remains successful because
of the honesty
and integrity of the participants and by their carefully
adhering to the
directions. Look at it this way. If you are of integrity, the
program will
continue and the money that so many others have received will
come your way.
NOTE: You may want to retain every name and address sent to
you, either on a
computer or hard copy and keep the notes people send you.
This VERIFIES that
you are truly providing a service. (Also, it might be a good
idea to wrap
the $1 bill in dark paper to reduce the risk of mail theft.)
So, as each
post is downloaded and the directions carefully followed, six
members will
be reimbursed for their participation as a List Developer
with one dollar
each. Your name will move up the list geometrically so that
when your name
reaches the #1 position you will be receiving thousands of
dollars in
CASH!!! What an opportunity for only $6.00 ($1.00 for each of
the first six
people listed above) Send it now, add your own name to the
list and you're
in business!
---DIRECTIONS ----- FOR HOW TO POST TO NEWSGROUPS------------
Step 1) You do
not need to re-type this entire letter to do your own
posting. Simply put
your cursor at the beginning of this letter and drag your
cursor to the
bottom of this document, and select 'copy' from the edit
menu. This will
copy the entire letter into the computer's memory.
Step 2) Open a blank 'notepad' file and place your cursor at
the top of the
blank page. From the 'edit' menu select 'paste'. This will
paste a copy of
the letter into notepad so that you can add your name to the
list.
Step 3) Save your new notepad file as a .txt file. If you
want to do your
postings in different settings, you'll always have this file
to go back to.
Step 4) Use Netscape or Internet explorer and try searching
for various
newsgroups (on-line forums, message boards, chat sites,
discussions.) Step
5) Visit these message boards and post this article as a new
message by
highlighting the text of this letter and selecting paste from
the edit menu.
Fill in the Subject, this will be the header that everyone
sees as they
scroll through the list of postings in a particular group,
click the post
message button. You're done with your first one!
Congratulations...THAT'S
IT! All you have to do is jump to different newsgroups and
post away, after
you get the hang of it, it will take about 30 seconds for
each newsgroup!
**REMEMBER, THE MORE NEWSGROUPS YOU POST IN, THE MORE MONEY
YOU WILL MAKE!!
BUT YOU HAVE TO POST A MINIMUM OF 200**
That's it! You will begin receiving money from around the
world within days!
You may eventually want to rent a P.O.Box due to the large
amount of mail
you will receive. If you wish to stay anonymous, you can
invent a name to
use, as long as the postman will deliver it.
**JUST MAKE SURE ALL THE ADDRESSES ARE CORRECT.** Now the WHY
part: Out of
200 postings, say I receive only 5 replies (a very low
example). So then I
made $5.00 with my name at #6 on the letter. Now, each of
the 5 persons who just sent me $1.00 make the MINIMUM 200
postings, each
with my name at #5 and only 5 persons respond to each of the
original 5,
that is another $25.00 for me, now those 25 each make 200
MINIMUM posts with
my name at #4 and only 5 replies each, I will bring in an
additional
$125.00! Now, those 125 persons turn around and post the
MINIMUM 200 with my
name at #3 and only receive 5 replies each, I will make an
additional
$626.00! OK, now here is the fun part, each of those 625
persons post a
MINIMUM 200 letters with my name at #2 and they each only
receive 5 replies,
that just made me $3,125.00!!! Those
3,125 persons will all deliver this message to 200 newsgroups
with my name
at #1 and if still 5 persons per 200 newsgroups react I will
receive
$15,625,00!With an original investment of only $6.00!
AMAZING! When your
name is no longer on the list, you just take the latest
posting in the
newsgroups, and send out another $6.00 to names on the list,
putting your
name at number 6 again. And start posting again. The thing to
remember is:
do you realize that thousands of people all over the world
are joining the
internet and reading these articles
everyday?, JUST LIKE YOU are now!! So, can you afford $6.00
and see if it
really works?? I think so... People have said, "e;what if the
plan is played
out and no one sends you the money? So what! What are the
chances of that
happening when there are tons of new honest users and new
honest people who
are joining the internet and newsgroups everyday and are
willing to give it
a try?
Estimates are at 20,000 to 50,000 new users, every day, with
thousands of
those joining the actual internet.
Remember: play FAIRLY and HONESTLY and this will really work. -
I have scanned some black and white negatives into my computer(iMac) where they are stored on the hard disc as positives.When I import them into iPhoto to print they turn back into negatives.How do I turn them back into positives?
That's because you scanned them as B/W photos and iPhoto 08 doesn't support the grayscale color profile. You can either rescan them as color photos or export them as originals out of iPhoto to a folder on the desktop and applhy this Automator application, Convert to JPG and Embed sRGB Profile, on them and then remimport into iPhoto. You can download it from Toad's Cellar . Be sure to read the warning on the website about not applying it on your only copies.
OT -
How can I split a class into 2 files?
I converted a C++ program to Java recently and it works fine, but I ran into a problem.
One file is very large and I need to add more functionality. Unlike with C++ where you can just put new functions in another file, I don't see a way to do it in Java.
I made another file, and therefore another class, but the compiler complains that it can't call a static function from non-static context. (I did not declare it static so I guess it's assuming it) But I understand why. So I made the new class "extend" the old one so "this" would exist but that doesn't work -- Is it because the new class is a subclass of the original class?
There must be a way to do this. But I don't see what is likely obvious. HELP! And thanks.JavaIsBetterThanCPP wrote:
There must be a way to do this. But I don't see what is likely obvious. HELP! And thanks.Unfortunately Java has no concept of "partial classes" like C# has. Generally, however, a class that is large enough to split up into separate files is either one class that should be modularized further into separate classes, or it already is modularized and all that code is the result of many inner classes. What some people do is promote those inner classes to top-level members in their own file, and mark them as package-private. Using a package you can basically have two classes that know everything about each other and have full access to each other.
But personally, and until I see justification otherwise, semantics in Java being unbreakingly tied to a certain file structure and naming is the most bonehead and, frankly, non-Java thing about Java.
There's probably a pre-processor out there that will let you split a class into multiple files and will combine them into a single source file just-in-time to pass to the compiler. -
When I define a variable in BO it automatically turns it into a detail
i have made a user prompt in my report
so the user can input a value that does not exist in universe so i can use it as condition or a filter,
i have done this by using the followiing condition in the query
object = object
or
object = ToPrompt("Give number")
As you can see by the logic this condition will ALWAYS be true because object = object is always true. So this logic will not impact the rest of the query it will just allow to enter any value in the user prompt
in the report when i try to create a new variable
=ToNumber(UserResponse ("Query 1 with NEW_UNIV" , "Give number"))
it automatically turns it into a detail and i cant change it to measure or dimension.
is there a way to fix this
thanks in advancesome one answered in the following link
[When I define a variable in BO it automatically turns it into a detail; -
Object Creation Of One class into another and vice versa
Hello Everyone,
My name is Prashant Sharma from Jaipur [Rajasthan]
Can u people help me
How to create of one class into another and vice versa
Eg,
I am having class A and class B
I want to create object of class A into class B and vice versa
Plz help me out of this problem as soon as possible....Read this: [Creating Objects|http://java.sun.com/docs/books/tutorial/java/javaOO/objectcreation.html]
Then, do one of these three:
1. Create an instance of the class
2. Extend the class
3. Access methods within the class
Try it out. Post the problem code if you're having trouble. -
When I try to reorder different pages it just takes all the pages within the document and turns them into a stack! Why is this happening and how can I oder pages as the update is meant to let me?
Any Help?I know the update has only been out a while but if anyone has an idea why it is doing this, please let me know!But you are telling me something I already know.
Be precise.
It is not Pages '09 that is broken.
I am back in Mavericks and testing Pages 5.2.
There are improvements, we shall see how useful, but in less than a minute I have already discovered bugs.
Peter
Maybe you are looking for
-
File name in Split messages with Message mapping
Hi everyone, I split my incoming message into multiple files based on the Order Numbers. Also I have a particular file naming convention I need to use. Its someething like RTG746932746.63749 Now, I have given the field file name along with my target
-
Hi all, I have an issue to discuss. When we procure a material, there are 3 types of costs: - that belongs to vendor like price, discount, salex tax, etc - some other conditions that does not belong to vendor but have effect on material cost like ins
-
InDesign CS5 is not opening after deactivation/activation. How can I fix this? Illustrator and Photoshop open and are working fine. Please help!
-
hy is my money gone my sister just gave me a card for $25.00 and I loaded it on and I got out of my account and now the money's gone PLEASE HELP!?!
-
Max L Import from Server data_file - Essbase 11.1.1.3
I got a problem setting the right path for importing data-files directly from a directory on the server (that is not under the "arborpath"). As I mentioned in the techref: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl