Conventions for the whole project
We have coding conventions for Java language. But is there any conventions (or best practices) defined for a whole Java project. Like store all your source files in "src" folder, store your jar files in "lib" folder, have your binary files named as "all-lower-case.sh" and store them in "project/bin", etc. These may not be the case with every Java project on the planet, but has anyone blogged about these "guidelines"? If you have a tip or two, or if you had come across a blog or a related post regarding this, please do share.
Thanks!
Srikanth
georgemc wrote:
If you're concerned, form a SIG (special interest group) of your most trusted developers (no management) to come up with an agreed-upon spec, and publish it on your intranetThis is a very good idea, what I don't want to do is to reinvent the wheel entirely. We had formed a SIG before and came up with our own standards. But it was totally different from what most of the industry does. So I am just looking for a basis on which we can tweak. I am looking forward for the standard set of guidelines that are already followed which I am not aware. For example, we were storing our documentation under a directory called "docs". But throughout the industry, the standard practice is to store under "doc" (singular form). Another example I can think of is the jar file naming convention. We were naming our jars as ourApplication.jar, whereas I realized over a period of time that the jar files are named as our-application-1.0.3.jar
From where did the others learn about these guidelines? I would be happy to read them and follow.
Thanks again,
Srikanth
Similar Messages
-
A time counter for the whole project
Can you tell me is there any way to get the overall project time as a time counter in the playback controls? Or viewed somewhere on Captivate?
I need to know at which time a particular slide is appearing in a video. I can only find time duration per slide or one overall time for the project.If you dont like the TOC, here you can find some other ideas:
http://blog.lilybiri.com/display-time-information -
My video i have successfully worked on for seven days now won't open at all. It says there is no sequence of this type found... But in the very bottom bar I can see the whole project load. But the only option from the error screen is exit out of Premiere Pro CC. I am on a PC withe Windows 8.1 and apps are up to date. Thanks much for any help!!
Hi Bryan,
My video i have successfully worked on for seven days now won't open at all. It says there is no sequence of this type found... But in the very bottom bar I can see the whole project load. But the only option from the error screen is exit out of Premiere Pro CC. I am on a PC withe Windows 8.1 and apps are up to date. Thanks much for any help!!
Sounds like an activation issue. Quite Premiere Pro. Sign out of Creative Cloud. Restart Premiere Pro. Sign back in: http://bit.ly/CC-sign-out
Hope that works for you.
Kevin -
I'm using MacBook Pro with 128GB SSD that has a limited disk space. As we know, when rendering in Project File (User/Movies/Final Cut Projects), it takes huge space and the limited disk space would not be enough for the whole editing.
My question is, Is there any method to get the rendering Projects file saved into an external hard drive which is connected with USB/ Thunderbolt/ Firewire, with huge disk space (eg. 500GB HDD).
Now, new project created in my Mac is automatically saved in (User/Movies/Final Cut Projects) and my Mac has ran out of space to hold the files.
Thank you.You have at least 3 different ways to show the project library:
1) Go to WIndow->Show Project Library
2) Click the button in bottom left of your window:
3) Hit the keyboard shortcut (Command-0)
The project library will be shown, occupying the area where the timeline usually is.
Your hard disks will be visible. Click the hard disk where you want the new project to reside and hit Cmd-N to create a new project. -
Is there a way to make an audio clip not cover the whole project in iMovie? I want to add audio clip or song and let it start at a certain point in the project. Whenever I add audio or song it covers the whole project. I'm working with iMovie on IPad!
Thank you for your reply Karsten but unfortunately this didn't help me so far. Or maybe I'm missing something?
First the link is a tutorial for iMovie on a Mac. I'm using iMovie on iPad so the steps are inapplicable.
Second it is only possible for me to manipulate the end part of the sound clip to whichever duration I want. But I can't do the same with the 'beginning' of the sound clip.
I simply want to place some photos in the beginning of my video with no sound in the background then after like 2 secs I want to start the music clip. For some reason that is not possible! Cause every time I drop the music clip unto my project timeline it automatically place it self along with the first frame in the project! And consequently the photos and music are forced to start together.
Hope I'm making sense... -
Export the whole project to external harddisk
Due to the limit of SSD storage in Macbook Pro , I want to export the whole project together with source files, rendered files, title, music ... to external harddisk for storage, and incase want to use it back, that I can imported into the Final Cut Pro
What is the version of FCP X?
-
Two months of Premiere Pro - two major Errors that stopped the whole project
I have switched from FCP - and I am quite dissappointed.
Within two months I have experienced two major errors that stopped the whole project. Something like that never happened to me in 15 years of AVID an FCP. -
1. Err msg. "Project contains sequences that cannot be opened" - No way to open the project at all after two weeks of working on it.
2. Err msg. "A Low-level exception occurred in: Adobe Player" - No way to play back the sequence at all. Had to be finnished in FCP.
Apart from that Premiere keeps loosing Render Files and does not recognize my USB-audio-device.
Can anyone help me (tech support) PLEASE?
Am I the only one with problems like that?
- Thinking about switching to MC7.
CS6
OS 10.8.2.
imac 3.1 Ghz corei7
16 GB RamYou specify "CS6," but do not indicate whether you have patched to the latest. If you haven't please do so.
Any time I hear "crash on launch" (or words to that effect), my first thought is that something in the preferences may be tripping up the app. You can clear the prefs by holding Shift+Option while launching the app--keep the keys pressed until PPRO finishes launching. If you've invested time customizing your prefs and want to be able to revert to them in case they weren't the cause of the problem, then you can manually move or rename them; let us know if you need help finding them.
Other possible culprits, in the order that I recommend proceeding:
If the crash occurs only when you launch directly into a particular project, then naturally that project is most likely the cause.
Drivers, especially for graphics card: update them (on Mac, that means updating OSX)
third party codecs: uninstall them
third party hardware: first update drivers. If that doesn't help, disconnect or disable the hardware -
Generation of Annual Leave Quota at a time for the whole year
Hi All,
Kindly give some suggestions.
I am working on Time evaluation. We have a quota , Annual leave which is now given on monthly basis, means lets 12 annual leave are for whole year and employee are getting 1 leave on each month.
Now my requirement is to give this quota at a time in the start of every year. That means all the 12 annual leave should be generated in the start of a year.
When I select the option no pro rata calculation then I am getting all this leave in the start of the year. But when an employee is joined in the mid of the year then also 12 leave is been generated which is not correct.
Please suggest me how to make this leave as prorated so that for new joinee , this leave is generated taking into account the period and generate the prorate value for the whole year at the time of joining.
Thanks
Tanuja.Hi Sikinder,
I am using + time evaluation Status-2. We have to generate quota in PT60 for each period.
Write now we are getting annual leave quota getting generated in monthly basis. We want to genarate whole quota for the year in the 1st month of the year.
When I have given calender year in the accrual period , i am not getting any quota in the 1st month rather getting the whole quota in the end of the year.
Please suggest me what to do.
Regards,
Tanuja. -
Create a defaut view for the MS Project Server 2010 client
Dear Forum,
how can I create a defaut view for the MS Project Server 2010 client?
I saved a template and set a default view under File -> Options ->Project View. I also did the same in the checked-out enterprise global. If I then close the client and re-open it my default view changes back again to the previous one (not the view
I set as a default view).
What explains this behaviour and what can I do? Any hints?
Thank you very much for your help!Scheduler007 --
The view you selected by clicking File > Options > Project View is the default view for every new project you create from a blank project template. This is a global option, so setting it from the checked out Enterprise Global file serves no purpose.
When you select a view as your default view, you will see that view applied to the blank project that is opened when you launch Microsoft Project 2010, and you will see it applied if you create new blank projects. If you create enterprise templates for
people to use in your organization, you should simply apply the view to the template that you want as the default so that users will see this view immediately when they create a new project from the template. In addition, if you apply a view to an open
project, close and check in the project, and then reopen the project, you will see the last view applied in that project (as Guillaume correctly points out).
Beyond this, there is no method possible for the Project Server administrator to specify a default view for the Microsoft Project application used by the project managers in your organization. This is an option each PM must set. Hope this helps.
Dale A. Howard [MVP] -
Time Out error problem when i run the report for the whole plant
Dear all,
pls find the below coding, when i execute this report for the whole plant , it gives me time out error since it has to process huge database. pls suggest me in which part of my below coding i can improvise or any other better way to fetch the same result.
pls note that
i m using Views for querying.pls also note the comments given in Bold to understand the reason behind the coding.
Views used in are - ZVPOD and ZVPRDCONF.
START-OF-SELECTION.
Data: zstat type jest-stat.
data: stklocaf type mska-lgort.
data: stklocas type mska-lgort.
<u><b>To collect the status of the production order by joining the ZVPOD and JEST table.</b></u>
CLEAR it_ZVPRODDET.
SELECT DISTINCT ZVPOD~bukrs ZVPOD~aufnr ZVPOD~objnr
jest~stat ZVPOD~werks ZVPOD~arbpl ZVPOD~J_3AKORD2
FROM ZVPOD
INNER JOIN jest ON ZVPOD~objnr = jest~objnr
INTO CORRESPONDING FIELDS OF wa_ZVPRODDET where
plnbez in FGM and arbpl in wc and werks in plant
and SSAVD in eldate
and J_3AKORD2 in cups and jest~inact ne 'X'.
APPEND wa_ZVPRODDET TO it_ZVPRODDET.
ENDSELECT.
SORT it_ZVPRODDET BY aufnr stat.
<u><b>Loop thru Itab to check and delete the records from itab for the specified status.</b></u>
LOOP AT it_ZVPRODDET INTO wa_ZVPRODDET.
IF wa_ZVPRODDET-stat = 'I0045' . " TECO - compl
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
ELSEIF wa_ZVPRODDET-stat = 'I0009' . " CNF - Confirmed
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
ELSEIF wa_ZVPRODDET-stat = 'I0012' . " DLV - Delivered
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
ELSEIF wa_ZVPRODDET-stat = 'I0046' . " CLSD - Closed
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
ELSEIF wa_ZVPRODDET-stat = 'I0076' . " DLFL - Del Flag
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
ELSEIF wa_ZVPRODDET-stat = 'E0003' . " SCLS - Short Close
CLEAR tj30t.
SELECT SINGLE txt04
FROM tj30t INTO tj30t-txt04
WHERE stsma = 'PRDHOLD' AND
estat = 'E0003' AND
txt04 = 'SCLS' AND
spras = 'EN'.
IF sy-subrc = 0.
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
ENDIF.
ENDIF.
* Condition for Prod Order released - REL
IF wa_ZVPRODDET-stat = 'I0002'.
mreleased = 'Y'.
else.
mreleased = 'N'.
endif.
zstat = wa_ZVPRODDET-stat.
IF mreleased = 'N'.
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr
and stat = zstat.
ENDIF.
ENDLOOP.
<u><b>Loop thru the filtered ITAB to get all the production order details for the production order number specified in the where clause( zaufnr ) and populate another internal table.</b></u>
LOOP AT it_ZVPRODDET INTO wa_ZVPRODDET.
zaufnr = wa_zvproddet-aufnr.
zarbid = wa_zvproddet-arbid.
at new aufnr.
SELECT DISTINCT * INTO CORRESPONDING FIELDS OF walnpln
FROM zvpod where plnbez in FGM and arbpl in wc and SSAVD in
eldate and werks in plant and J_3AKORD2 in cups and aufnr = zaufnr.
APPEND walnpln TO itablnpln.
endselect.
endat.
endloop.
clear walnpln.
<u><b>
Looping thru Internal table and performs all the following calculations and inner loop
and also relevant querying.</b></u>
<u><b>Assume that ITABLNPLN holds appox. 8000 records.</b></u>
LOOP AT itablnpln INTO walnpln.
contot = 0.
SELECT distinct * INTO CORRESPONDING FIELDS OF TABLE itablnp
FROM zvprdconf where aufnr = walnpln-aufnr and
j_3asize = walnpln-j_3akordx and stzhl ne '2' and stokz ne 'X'.
clear zvprdconf.
SELECT single isdd
FROM zvprdconf into zvprdconf-isdd
where aufnr = walnpln-aufnr and
j_3asize = walnpln-j_3akordx and stzhl ne '2' and stokz ne 'X'.
SELECT single isdz
FROM zvprdconf into zvprdconf-isdz
where aufnr = walnpln-aufnr and
j_3asize = walnpln-j_3akordx and stzhl ne '2' and stokz ne 'X'.
IF sy-subrc EQ 0.
<u><b>Assume that ITABLNP holds appox. 30 records.</b></u>
loop at itablnp into walnp.
contot = contot + walnp-J_3ALMNGA.
move walnp-J_3ASIZE to walnpln-J_3ASIZE.
move zvprdconf-isdd to walnpln-zdate.
move zvprdconf-isdz to walnpln-ztime.
endloop.
walnpln-output = contot.
endif.
walnpln-wip = walnpln-menge - contot.
if walnpln-werks = '1000'.
stklocaf = '1050'.
stklocas = '1060'.
elseif walnpln-werks = '2000'.
stklocaf = '2150'.
stklocas = '2160'.
endif.
select single kunnr into walnpln-ship from vbpa where
vbeln = walnpln-KDAUF and PARVW = 'WE'.
zship = walnpln-ship.
move zship to walnpln-ship.
select single kalab into walnpln-zactqty from mska
where matnr = walnpln-plnbez
and j_3asize = walnpln-J_3AKORDX and LGORT = stklocaf.
condense walnpln-kdauf.
zsales = walnpln-kdauf.
concatenate zsales 'S' into zso.
select single kalab into walnpln-zsndqty from mska
where matnr = walnpln-plnbez
and j_3asize = walnpln-J_3AKORDX and LGORT = stklocas
and J_4KSCAT = zso.
zmatn = walnpln-plnbez.
zsale = walnpln-KDAUF.
walnpln-kdauf = zsale.
walnpln-plnbez = zmatn.
zcust = walnpln-kunnr.
walnpln-kunnr = zcust.
select single bezei into walnpln-season from TVV2T where
kvgr2 = walnpln-kvgr2 and SPRAS = 'E'.
select single bezei into walnpln-shipmode from T173T where
vsart = walnpln-vsart and SPRAS = 'E'.
STRL = strlen( walnpln-j_3akord2 ).
if strl = 4.
move walnpln-j_3akord2 to walnpln-j_3akord3.
clear walnpln-j_3akord2.
endif.
move zremk to walnpln-remk.
MODIFY itablnpln FROM walnpln.
contot = 0.
clear itablnp.
ENDLOOP.
PERFORM build_fieldcatalog.
PERFORM build_layout.
PERFORM display_alv_report.Hi raja,
Plese go through the suggessitions.
1.avoide the select ...endselect. write the below select
CLEAR IT_ZVPRODDET.
SELECT DISTINCT
ZVPOD~BUKRS
ZVPOD~AUFNR
ZVPOD~OBJNR
JEST~STAT
ZVPOD~WERKS
ZVPOD~ARBPL
ZVPOD~J_3AKORD2
FROM ZVPOD
INNER JOIN JEST ON ZVPOD~OBJNR = JEST~OBJNR
INTO CORRESPONDING FIELDS TABLE IT_ZVPRODDET
WHERE PLNBEZ IN FGM AND
ARBPL IN WC AND
WERKS IN PLANT AND
SSAVD IN ELDATE AND
J_3AKORD2 IN CUPS AND
JEST~INACT NE 'X'.
IF SY-SUBRC = 0.
SORT TABLE IT_ZVPRODDET.
ENDIF.
2..first of all dont delete a record inside the loop. instead use the Field symobols.
have u obsereved you code in the loop!!!!. wht u r doing..
u r removing the same record which u in the loop..
If u wanto delete the entires with check to<b> stat</b>... <b>then.. why dont u put the STAT field in Wher e condition..?</b> by this you reduce the data base select time..
Now the select query is like the below....
CLEAR IT_ZVPRODDET.
SELECT DISTINCT
ZVPOD~BUKRS
ZVPOD~AUFNR
ZVPOD~OBJNR
JEST~STAT
ZVPOD~WERKS
ZVPOD~ARBPL
ZVPOD~J_3AKORD2
FROM ZVPOD
INNER JOIN JEST ON ZVPOD~OBJNR = JEST~OBJNR
INTO CORRESPONDING FIELDS TABLE IT_ZVPRODDET
WHERE PLNBEZ IN FGM AND
ARBPL IN WC AND
WERKS IN PLANT AND
SSAVD IN ELDATE AND
J_3AKORD2 IN CUPS AND
JEST~INACT NE 'X' AND
( STAT <> 'I0045' AND
STAT <> 'I0045' AND
STAT <> 'I0009' AND
STAT <> 'I0012' AND
STAT <> 'I0046' AND
STAT <> 'I0076' AND
STAT <> 'E0003' ).
IF SY-SUBRC = 0.
SORT TABLE IT_ZVPRODDET.
ENDIF.
<b>3.</b> WHT IS MEANING OF THE SELECT
<b> CLEAR TJ30T.
SELECT SINGLE TXT04
FROM TJ30T INTO TJ30T-TXT04
WHERE STSMA = 'PRDHOLD' AND
ESTAT = 'E0003' AND
TXT04 = 'SCLS' AND
SPRAS = 'EN'.
IF SY-SUBRC = 0.
DELETE IT_ZVPRODDET WHERE AUFNR = WA_ZVPRODDET-AUFNR.
ENDIF.</b>....... IN WHERE CONDION U R GIven all are constant values right?..
why u need select it inside the loop.. u can write before the SELECT from ZVPOD..
that why first checke this field then go for fur thure selects..
<b>now u r code looks like this....</b>
CLEAR TJ30T.
SELECT SINGLE TXT04
FROM TJ30T INTO TJ30T-TXT04
WHERE STSMA = 'PRDHOLD' AND
ESTAT = 'E0003' AND
TXT04 = 'SCLS' AND
SPRAS = 'EN'.
IF SY-SUBRC = 0.
CLEAR IT_ZVPRODDET.
SELECT DISTINCT
ZVPOD~BUKRS
ZVPOD~AUFNR
ZVPOD~OBJNR
JEST~STAT
ZVPOD~WERKS
ZVPOD~ARBPL
ZVPOD~J_3AKORD2
FROM ZVPOD
INNER JOIN JEST ON ZVPOD~OBJNR = JEST~OBJNR
INTO CORRESPONDING FIELDS TABLE IT_ZVPRODDET
WHERE PLNBEZ IN FGM AND
ARBPL IN WC AND
WERKS IN PLANT AND
SSAVD IN ELDATE AND
J_3AKORD2 IN CUPS AND
JEST~INACT NE 'X' AND
JEST~STAT <> 'I0045' AND
JEST~STAT <> 'I0045' AND
JEST~STAT <> 'I0009' AND
JEST~STAT <> 'I0012' AND
JEST~STAT <> 'I0046' AND
JEST~STAT <> 'I0076' AND
JEST~STAT <> 'E0003' ).
IF SY-SUBRC = 0.
SORT TABLE IT_ZVPRODDET.
ENDIF.
ENDIF.
there are so many select inside the loop...... please Delete all of them.... write them be for the loop.......using the FOR ALL ENTRIES.....
THEN LOOP THE TABLE USING THE WHERE CONDITIONS.
<b>Plese write u updated code here again</b>.. -
Freight cost condition for the whole purchase order (Header relation)
Maybe you could help me out with the following difficulty regarding freight costs for the whole purchase orders from the mass maintenance transaction MEK1 for pricing conditions.
I try to have one freight condition for the whole purchase order.
For instance, I maintained in the transaction MEK1 for the condition FRA1 the key combination vendor and purchasing organization (table 44) and entered an absolute value of X EUR.
Unfortunately this condition will not pulled as header costs in the purchase order, because I would have had defined an access sequence in the condition type, but this is not allowed for header conditions in general.
Do you have any workaround to maintain an item condition, which works like a header condition, so that I am allowed to have an access sequence and be able to maintain MEK1?
Any comments and help are very welcome.
Many thanks in advance
SabrinaHi,
Fright and discount conditions are called supplement conditon type and they are always matained with main condition type.
Please check PB00 condition type in m/06 transaction. You will find pricing procedure assinged as RM0002 to PB00 condtion type.
So you can maintain fra1 and other supplement condtions in main condtion only in MEk1 trasnaction.
By selecting the line item and then shift + F7 you can maintain fright or discount condtions for PB00 condition types with out having access sequence for supplement condtion types.
Regards,
shailesh Mackwan -
How do you add the language of the dictionary in pages for the whole document?
How do you add the language of the dictionary in pages for the whole document. When I add the british language it does not stay ON for the whole document. It goes back to "none"???? I am using pages 09 version 4.1 (923).
This is a feature of Numbers. If you repost on the iWork forum you may get more information.
-
Copying 2 drives to 1 for the same project
I'm copying an external drive and have a 2nd for the same project I want to also copy (to the same external drive) and am wondering if I'll have any issues with media becoming unlinked?
Anyone have any ideas?
.That didn't work at-all. That Media Manager deal is way too confusing in the way the options and parameters are worded - It's like reading riddles. And, I kept getting some kind of i/o error message.
Blah.
I copied all the files to a single new drive with 2 partitions and named the partitions the same as the 2 drives I previously had the files on.
Seems to be working fine other than losing some render files which is pretty normal anyway for FCP.
. -
MN05: setting the number of printer copies for the whole range of vendors
Hi all,
by t.code MN05 I can set the number of copies of the MM documents printed the FIRST TIME. I can do it for doc.type or vendor.
I can't set the number of printer copies for the whole range of vendors. Should I do it for each one of them?
Thanks
GandalfUnfortunately,
setting for document type, it doesn't work for all range of vendors.
Setting for document type, in the field "PartF" I've put in "OA". Could it depend on it?
you do for document type and then it will cover all range of vendors.
If you want prints for a specific vendor then set condition recrod for that vendor only.
regards -
ADF : Value change listener for the whole jsff page
Is there any feature to have a value change listener for the whole jsff page ?
How to know if user has change something in the page i.e. how to know whether the page is dirty ?User please tell us your jdev version!
Read this blog https://blogs.oracle.com/groundside/entry/ever_wondered_how_uncommitteddatawarning_works
Timo
Maybe you are looking for
-
Satellite M30X: DVD/CD rom drive does not work
Hi, Hope someone can help. The above drive will not now recognise any inserted media. It whirrs for a while then stops. I have cleaned the lens and also run through the support and diagnostic tests and they cannot help me any further. I have also rei
-
Hi, I have a brand-new-just-out-of-the-box Macbook (First Mac to own) I have the 100 gig(92.84) hard drive, and without loading a bit on it it says I am already using 18.37 gigs of space. Can this be true? Does OS X really come pre-packed with 18 gig
-
Datasource via function module
Hi, I am building a function that is due to be used by a Datasource (via Function Module). This function uses table WDRD. It applies to this table a code that needs the use of an internal table for the calculation (for intermediary calculation storag
-
Why my apps won't download?
-
Can't Install Flash Player on Safari OS 10.3.9
Hi. I recently reinstalled my system software on my iBook G3, and I've been trying to install the latest Flash Player for Safari 1.3.2 running on OS 10.3.9. Non Intel. I have tried downloading and installing quite a few times. But no plug in is showi