Code example of shining star like objects needed.
How is it possible to make shining star like object like in
the screensaver "Cosmic voyage"? Check out the screensaver here
http://www.voodoofiles.com/9503
and then tell me how this could be implemented. I need some code example.
Also check out my 3D site:
www.psyanimations.com
There are a few discussions of this effect if you search back in this forum. Basically, the glowing light effect is created by drawing an alphablended picture of a glowing light and then orienting it towards the user using an OrientedShape3D type of thing. If you need it to affect nearby objects you will want to put a lightsource with it.
Similar Messages
-
I need a code example for an action listener for a jcheckbox using matisse
I am trying to make it so that when some body clicks a jcheckbox it will put a figure into a jtextfield. Because I am using matisse I need to know the code for the action listener and I need to know quickly as well so I don't have time to look it up with searches etc.
Can anbody provide me with some example code please.I thought that as you are all more experienced than I am that you would know where to look and as you would have already been to all of the sites you would have been able to save me a lot of time looking for the best one. I didn't mean to insult you sorry, I knew that I would be looking for a long time and hoped that some one could help speed that up for me.
Any way I have obviously annoyed you in that thread earlier this week. I know that you are all pee'd at me and don't believe me and that is fine. I have learnt every thing that I need to learn and would like to thank you for your help although I think that your language in your last post was not very pleasant, but that is ok.
I don't want to continue posting any more. But thank you for your help. -
i need to run a piece of code which is inside a string object..is it possible?if so how?
i need to run a piece of code which is inside a string object..is it possible?if so how?
How would anyone know?
You haven't said what 'code' you are talking about or what you mean by 'run' it.
Since you are asking us to 'guess' what you need to do I will guess that it is a valid batch file for your OS. So just save the contents of that string to a file and then use a ProcessBuilder to 'run' it.
See the example in the API
ProcessBuilder (Java Platform SE 7 ) -
I need code example for server act as client and vice versa
Hi all,
I want code example for performing both server and clients using RMI. I mean Server will act as client and client will act as server. So a single program will act as both client and server .
Please give example, it will helpful to complete my project. I am struggling in this stage. Its like peer to peer action.
Thanks & Regards
R.Ragupathi1. The tutorial shows you how to do cleint/server.
2. Search on the topic "callback" to see how cleint and server roles can be reversed. -
I want to start using the creative cloud programs but it has forced me to "start a trial" and looks like I need a redemption code to "license" the products on my computer for the next year. Where do I find or get this redemption code?
If you bought your subscription direct from Adobe, you should not need any codes, only your Adobe ID and password
-Cloud programs do not use serial numbers... you log in to your paid Cloud account to download & install & activate... you MAY need to log out of the Cloud and restart your computer and log back in to the Cloud for things to work
-Sign in help http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
-http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
-http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
-http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
-Cloud Getting Started https://helpx.adobe.com/creative-cloud.html
-Install, update or UNinstall, and launch after installing
If you bought your subscription from some other vendor, ask that vendor for help
-Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html -
Need code example for dynamicly changing UI Propertey
Hello,
Can someone show me a simple code example that does the following:
A view which contains a button and a label.
Each press on the button changes the color (or other visible property) of the label.
But note: Don't bind the property to the Context for that, I want to do it through the doModifyView method.hi Roy Cohen,
I think u r not looking for the visibility property they have mentioned.
I think u r looking for a procedure to change the way the element looks..is it..
The problem is if u want any change to be visible when the button is pressed u can only change the length or the width.There is no option to change the semantic color or whatever.
To change the size u can try this code
IWDInputField in = (IWDInputField)view.getElement("<element name>");
in.setWidth(some value which is set when the button is pressed);
Is this wat u r looking for?
Jus mention it if there is something else.
Regards
Bharathwaj -
Can someone please show me a code example of how to use RS_EXTERNAL_SELSCREEN_STATUS function.
I want to delete "Create delivery in background" pushbutton from report vl10h.This is the example given in the FM documentation.
Example
Example for calling RS_EXTERNAL_SELSCREEN_STATUS:
PROGRAM SAPDBxyz DEFINING DATABASE xyz.
FORM INIT.
CALL FUNCTION 'RS_EXTERNAL_SELSCREEN_STATUS'
EXPORTING P_FB = 'TEST_EXTERNAL_STATUS'.
ENDFORM.
Example for function module that sets the status:
FUNCTION TEST_EXTERNAL_STATUS.
""Local interface:
*" IMPORTING
*" P_SUBMIT_MODE
*" TABLES
*" P_EXCLUDE STRUCTURE RSEXFCODE
*" EXCEPTIONS
*" NO_ACTION
IF P_SUBMIT_MODE NE SPACE.
RAISE NO_ACTION.
ENDIF.
SET PF-STATUS 'TEST' EXCLUDING P_EXCLUDE.
SET TITLEBAR 'TST'.
ENDFUNCTION.
INITIALIZATION.
CUA *
IMPORT T185V FROM MEMORY
ID SD_COND_MEM_01. "JAY
RV13B-KVEWE = 'B'.
RV13B-KOTABNR = '001'.
CALL FUNCTION 'RS_SUBMIT_INFO'
IMPORTING
P_SUBMIT_INFO = RSSUBINFO.
IF NOT RSSUBINFO-MODE_NORML IS INITIAL.
TITEL = T185V-CTITEL.
CALL FUNCTION 'RV_CONDITION_GET_CUA_REPO'
EXPORTING
PFKEY_I = 'BSELE'
TITLE_I = TITEL
PAR1_I = T185V-PARA1
PAR2_I = T185V-PARA2
PAR3_I = T185V-PARA3
PAR4_I = T185V-PARA4
TABLES
EXCL_I = AUSSCHLUSS.
CALL FUNCTION 'RS_EXTERNAL_SELSCREEN_STATUS'
EXPORTING
P_FB = 'RV_CONDITION_SET_CUA_REPO'.
ENDIF. -
Need code example for LDAP update
Hello,
I know how to preform an LDAP search using the package javax.naming.directory.DirContext.
Can someone show me how do I do an update to a certain record at the LDAP ?
Can this update be with the search already (such as in SQL) or should I search the relevant item first and than update it? In any case, a code example will be very helpful here...Roy
Personally I would use the UME APIs to update the user instead of connecting to the LDAP directly. There are many reason for this
1) The UME will work if you decide to change your user store
2) Connection pooling is already taken care of
3) Its using standard product functionality instead
I hope this helps (and sways) your decision
Darrell -
How to know which master data objects need to activated in R3
SALES OVERVIEW CUBE -0SD_C03
How to know which master data objects need to activated from delivery version to active version in R/3 for a particular standard cube like 0SD_C03.
its very urgent please advise.
R/3 in RSA5
Sales Master Data
0ACCNT_ASGN_TEXT Account assignment group for this customer
0ACCNT_GRP_TEXT Customer account group
0BILBLK_DL_TEXT Locked
0BILBLK_ITM_TEXT Billing block for item
0BILL_BLOCK_TEXT Billing block in SD document
0BILL_CAT_TEXT Billing Category
0BILL_RELEV_TEXT Relevant for Billing
0BILL_RULE_TEXT Billing rule
0BILL_TYPE_TEXT Billing Type
0CONSUMER_ATTR Consumer
0CONSUMER_LKLS_HIER Consumer
0CONSUMER_TEXT Consumer
0CUST_CLASS_TEXT Customer Classification
0CUST_GROUP_TEXT Customer Group
0CUST_GRP1_TEXT Customer Group 1
0CUST_GRP2_TEXT Customer Group 2
0CUST_GRP3_TEXT Customer Group 3
0CUST_GRP4_TEXT Customer Group 4
0CUST_GRP5_TEXT Customer Group 5
0DEALTYPE_TEXT Sales Deal Type
0DEL_BLOCK_TEXT Delivery block (document header)
0DEL_TYPE_TEXT Delivery Type
0DISTR_CHAN_TEXT Distribution Channel
0DIVISION_TEXT Division
0DLV_BLOCK_TEXT Schedule line blocked for delivery
0DOC_CATEG_TEXT SD Document Category
0DOC_TYPE_TEXT Sales Document Type
0INCOTERMS_TEXT Incoterms (Part 1)
0INDUSTRY_TEXT Industry keys
0IND_CODE_3_TEXT Industry code 3
0IND_CODE_4_TEXT Industry code 4
0IND_CODE_5_TEXT Industry code 5
0IND_CODE_TEXT Industry code
0ITEM_CATEG_TEXT Sales document item category
0ITM_TYPE_TEXT FS item type
0KHERK_TEXT Condition Origin
0MATL_GRP_1_TEXT Material Group1
0MATL_GRP_2_TEXT Material Group 2
0MATL_GRP_3_TEXT Material Group 3
0MATL_GRP_4_TEXT Material Group 4
0MATL_GRP_5_TEXT Material Group 5
0MATL_TYPE_TEXT Material Type
0MAT_STGRP_TEXT Material statistics group
0NIELSEN_ID_TEXT Nielsen ID
0ORD_REASON_TEXT Order reason (reason for the business transaction)
0PICK_INDC_TEXT Indicator for picking control
0PRODCAT_TEXT Product Catalog Number
0PROD_HIER_TEXT Product Hierarchy
0PROMOTION_ATTR Promotion
0PROMOTION_TEXT Promotion
0PROMOTYPE_TEXT Promotion Type
0PROV_GROUP_TEXT Commission Group
0REASON_REJ_TEXT Reason for rejection of quotations and sales orders
0REBATE_GRP_TEXT Volume rebate group
0RECIPCNTRY_TEXT Destination country
0ROUTE_TEXT Route
0SALESDEAL_ATTR Sales deal
0SALESDEAL_TEXT Sales deal
0SALESORG_ATTR Sales organization
0SALESORG_TEXT Sales Organization
0SALES_DIST_TEXT Sales district
0SALES_GRP_TEXT Sales Group
0SALES_OFF_TEXT Sales Office
0SCHD_CATEG_TEXT Schedule line category
0SHIP_POINT_TEXT Shipping point/receiving point
In BW
Base Unit of Measure 0BASE_UOM
Bill-to party 0BILLTOPRTY
Calendar Day 0CALDAY
Calendar Year/Month 0CALMONTH
Calendar Year/Week 0CALWEEK
Change Run ID 0CHNGID
Company code 0COMP_CODE
Cost in statistics currency 0COST_VAL_S
Credit/debit posting (C/D) 0DEB_CRED
Distribution Channel 0DISTR_CHAN
Division 0DIVISION
Number of documents 0DOCUMENTS
Sales Document Category 0DOC_CATEG
Document category /Quotation/Order/Delivery/Invoice 0DOC_CLASS
Number of Document Items 0DOC_ITEMS
Fiscal year / period
Fiscal year variant 0FISCVARNT
Gross weight in kilograms 0GR_WT_KG
Number of Employees 0HDCNT_LAST
Material 0MATERIAL
Net value in statistics currency 0NET_VAL_S
Net weight in kilograms 0NT_WT_KG
Open orders quantity in base unit of measure 0OPORDQTYBM
Net value of open orders in statistics currency 0OPORDVALSC
Payer 0PAYER
Plant 0PLANT
Quantity in base units of measure 0QUANT_B
Record type 0RECORDTP
Request ID 0REQUID
Sales Employee 0SALESEMPLY
Sales Organization 0SALESORG
Sales group 0SALES_GRP
Sales Office 0SALES_OFF
Shipping point 0SHIP_POINT
Ship-To Party 0SHIP_TO
Sold-to party 0SOLD_TO
Statistics Currency 0STAT_CURR
In R3 RSA5 we have all the Master data data sources as mentioned above, and BW also. How to find the related Master data Infosource in R/3 Master data Data sources.
Thanks in advance,
Bhima.
Message was edited by: Bhima Chandra Sekhar GuntlaHi,
<i>How to know which master data objects need to activated from delivery version to active version in R/3 for a particular standard cube like 0SD_C03.</i>
I think, you are looking for master data sources(text,attributes,hier).Am i right?
If so, This cube has almost all SD master data characterstics. So you can activate all the all master data datasources of SD in r/3 (SD-IO).
Any way you requirement does not stop only by using this cube . You will activate all other cubes in SD also. So if you want to activate only needed master data datasources when you are activating a cube, the job becomes senseless. There is no problem(wrong) in activating all master data available under that application , even though you want to activate only one cube.
With rgds,
Anil Kumar Sharma .P -
C# Code Example for Configuring SQL 2005 Reporting Services?
I have found the MSDN articles describing the classes, public methods, etc. for configuring SQL Server 2005 Reporting Services via WMI. I need to initially configure them and just do this:
- Report Server Virtual Directory
- Windows Service Identity
- Web Service Identity
- Database Setup
- Email Settings
- Execution Account
Is there a C# code example that already exists putting together all of this? I didn't want to reinvent the wheel if I didn't need to.
-EdJin,
Thanks so much! This is great! Your work is awesome!
I have a couple of issues that came up...
1) CreateVirtualDirectory.vbs creates the virtual directory for the Report Server just fine. Now how do I distinguish a script to create the virtual directory for the Report Manager?
2) I decided to go ahead and use what you did for scripting CreateApplicationPool (using http://msdn.microsoft.com/en-us/library/ms155349(SQL.90).aspx). I found the syntax is wrong here when I kept getting an error, so I put PowerShell on the server and pulled the following info:
Name : CreateApplicationPool
MemberType : Method
Definition : System.Management.ManagementBaseObject CreateApplicationPool(System.String Name, System.Boolean UseBuiltIn
Account, System.String Account, System.String Password)
However, I'd like to use "NT Authority\NetworkService" or "Network Service" as the account (which is an option for the Builtin accounts when I us RSConfigTool.exe). This is the syntax I used:
objInParam.Properties_.Item(
"Name") = "ReportServer"
objInParam.Properties_.Item("UseBuiltInAccount") = true
objInParam.Properties_.Item("Account") = "NT Authority\NetworkService"
objInParam.Properties_.Item("Password") = ""
But I always get an error with a negative number for the HRESULT.
Any ideas?-Ed -
Beginner Question | The use of modulus in this simple code example.
Hello everyone,
I am just beginning to learn Java and have started reading "Java Programming for the absolute beginner". It is quite a old book but seems to be doing the trick, mainly.
There is a code example which I follow mostly but the use of the modulus operator in the switch condition doesn't make sense to me, why is it used? Could someone shed some light on this for me?
import java.util.Random;
public class FortuneTeller {
public static void main(String args[]) {
Random randini = new Random();
int fortuneIndex;
String day;
String[] fortunes = { "The world is going to end :-(.",
"You will have a HORRIBLE day!",
"You will stub your toe.",
"You will find a shiny new nickel.",
"You will talk to someone who has bad breath.",
"You will get a hug from someone you love.",
"You will remember that day for the rest of your life!",
"You will get an unexpected phone call.",
"Nothing significant will happen.",
"You will bump into someone you haven't seen in a while.",
"You will be publicly humiliated.",
"You will find forty dollars.",
"The stars will appear in the sky.",
"The proper authorities will discover your secret.",
"You will be mistaken for a god by a small country.",
"You will win the lottery!",
"You will change your name to \"Bob\" and move to Alaska.",
"You will discover first hand that Bigfoot is real.",
"You will succeed at everything you do.",
"You will learn something new.",
"Your friends will treat you to lunch.",
"You will meet someone famous.",
"You will be very bored.",
"You will hear your new favorite song.",
"Tomorrow... is too difficult to predict" };
System.out.println("\nYou have awakened the Great Randini...");
fortuneIndex = randini.nextInt(fortunes.length);
switch (randini.nextInt(7) % 7) {
case 0:
day = "Sunday";
break;
case 1:
day = "Monday";
break;
case 2:
day = "Tuesday";
break;
case 3:
day = "Wednesday";
break;
case 4:
day = "Thursday";
break;
case 5:
day = "Friday";
break;
case 6:
day = "Saturday";
break;
default:
day = "Tomorrow";
System.out.println("I, the Great Randini, know all!");
System.out.println("I see that on " + day);
System.out.println("\n" + fortunes[fortuneIndex]);
System.out.println("\nNow, I must sleep...");
}randini.nextInt(7) % 7randini.nextInt(7) returns a value in the range 0 <= x < 7, right? (Check the API!) And:
0 % 7 == 0
1 % 7 == 1
2 % 7 == 2
3 % 7 == 3
4 % 7 == 4
5 % 7 == 5
6 % 7 == 6Looks like superfluous code to me. Maybe originally they wrote:
randini.nextInt() % 7Note this code has problems, because, for example -1 % 7 == -1 -
Embedding images in excel cells-please provide code examples
I need to create excel worksheet and embed an image in a cell. After looking at the POI javadoc and examples, I cannot figure out how to embed the image in a cell, only in the sheet. Does POI support this? I have also been looking a using Jexcel and would like to know if Jexcel supports this? If anyone has answers, please provide code examples.
thanksI need to create excel worksheet and embed an image in a cell. After looking at the POI javadoc and examples, I cannot figure out how to embed the image in a cell, only in the sheet. Does POI support this? I have also been looking a using Jexcel and would like to know if Jexcel supports this? If anyone has answers, please provide code examples.
thanks -
Error running code examples from Training Video
I am currently learning Java and I am using a Java Training series from Sun. There are several code examples that I am having problems running. I am 99.9% sure that my code is correct. That is the code that I have followed along and written.
Here is an example of code that I am trying to run. ( I am on OS X 10.5 BTW )
public class Person
public int ageYears = 32;
public void calculateAge()
int ageDays = ageYears * 365;
long ageSeconds = ageYears * 365 * 24L * 60 *60;
long ageMinutes = ageSeconds / 60;
long ageMilliseconds = ageSeconds * 1000;
System.out.println("You are " + ageDays + " days old.");
System.out.println("You are " + ageSeconds + " seconds old.");
System.out.println("You are " + ageMinutes + " minutes old.");
System.out.println("You are " + ageMilliseconds + " milliseconds old.");
}After I create the file (which is named Person.java) I open the terminal and cd to the directory the file is in. In my terminal I first say
javac Person.java
I don't get any errors at all. Then I try to run the program like this.
java Person
When I try this I get the following error
Exception in thread "main" java.lang.NoSuchMethodError: main
I am not sure why I get this error. On the instruction video the instructors code seams to run just fine with out have a main function. The instructor is on Windows and I am not sure if that has anything to do with it or not?
Any thoughts or suggestions would be really helpful.mswallace wrote:
I am currently learning Java and I am using a Java Training series from Sun. There are several code examples that I am having problems running. I am 99.9% sure that my code is correct. That is the code that I have followed along and written. Trust what the compiler and the JVM say to you.
I am not sure why I get this error. On the instruction video the instructors code seams to run just fine with out have a main function. The instructor is on Windows and I am not sure if that has anything to do with it or not?
Any thoughts or suggestions would be really helpful.So, as the error is asking you, where is the main method that every runnable program must have? This has nothing to do with windows and everything to do with all programs needing a main method to run (even applets where the main method is I believe within the Applet class code). -
i need a code example for user exit. EXIT_SAPLAFAR_002.
*data: con_afameth_za like t090-afamet value 'ZA',
con_afameth_zb like t090-afamet value 'ZB',
con_afameth_zc like t090-afamet value 'ZC',
con_afameth_zd like t090-afamet value 'ZD',
DATA: CON_AFAMETH_ZA(2) VALUE 'ZA',
CON_AFAMETH_ZB(2) VALUE 'ZB',
CON_AFAMETH_ZC(2) VALUE 'ZC',
CON_AFAMETH_ZD(2) VALUE 'ZD',
L_AFABTR TYPE F.
E_AKTIV = 'X'.
E_AFABTR = 0.
DATA: STRDATE(10) TYPE C ,
START_PERIOD TYPE I .
DATA: SUMDEPRE_PERIOD TYPE I ,
BALDEPRE_PERIOD TYPE I .
DATA: FYPLANDEPOD LIKE ANLC-NAFAP ,
TRUEPLANDEPOD LIKE ANLC-NAFAP ,
NETBOOKVALUE LIKE ANLC-KANSW ,
APCVALUE LIKE ANLC-KANSW ,
ACCMDEPR LIKE ANLC-KNAFA ,
DEPMONTH LIKE ANLC-PSTBEG .
TABLES: ANLC ,
ANLA ,
ANLB .
DATA: FIRSTYEAR(4) TYPE C ,
CURRENTYEAR(4) TYPE C .
DATA: ACQYEAR(4) TYPE C ,
ACQMONTH LIKE ANLA-ZUPER .
CURRENTYEAR = SY-DATUM+0(4) .
LOOP AT T_ANLC WHERE AFABE = I_AFABE .
**Deprecation amont is : apc * n / (n+1) / all period .
**At first phase of changeover .
CLEAR: STRDATE , START_PERIOD , CURRENTYEAR ,
FYPLANDEPOD , TRUEPLANDEPOD , NETBOOKVALUE .
CLEAR: ANLC , APCVALUE .
STRDATE = I_ANLB-AFABG .
START_PERIOD = STRDATE+4(2) .
FIRSTYEAR = STRDATE+0(4) .
CURRENTYEAR = SY-DATUM+0(4) .
SELECT SINGLE * FROM ANLC WHERE BUKRS = T_ANLC-BUKRS
AND ANLN1 = T_ANLC-ANLN1
AND ANLN2 = T_ANLC-ANLN2 .
IF SY-SUBRC = 0 .
APCVALUE = ANLC-KANSW + ANLC-ANSWL .
ACCMDEPR = ANLC-KNAFA + ANLC-NAFAG .
IF FIRSTYEAR = CURRENTYEAR .
DEPMONTH = ANLC-PSTEND - ANLC-PSTBEG .
ELSE .
DEPMONTH = ANLC-PSTEND - ANLC-PSTBEG + 1 .
ENDIF.
ENDIF .
IF APCVALUE GT 0 .
FYPLANDEPOD = ( APCVALUE - I_ANLB-SCHRW ) /
( I_ANLB-NDJAR * 12 + I_ANLB-NDPER ) * DEPMONTH .
E_AFABTR = FYPLANDEPOD .
ENDIF.
EXIT.
ENDLOOP. -
Hi,
Look below, what is the difference between these two code examples? I always use the first one, but is it right to use the second one to get the same result?
Ex.
public void Hello(int i, Vector vec)
int j;
Vector vector;
j=i;
vector=vec;
j++;
vector[c]=8;
public void Hello(int i, Vector vec)
i++;
vec[c]=8;
/AThe code is much the same but the second one performs better.
You should also keep in mind that primitive datatypes like int, char, ... are call-by-value and objects are call-by-reference.
call-by-value:
Means that the only the value of the integer is copied to the function.
call-by-reference:
Means that the only the reference is given to the function and so you can manipulate the object. ==> the changes are also in the object in the calling fkt.
Maybe you are looking for
-
My new iphone is seeing the network, but won't connect after I've entered the password. Wi-fi is in use with XP Pro and Mac OS X machines without incident. I've also tried password with $ at the beginning, and turning iphone off and on. Other suggest
-
Problem in extension of a controller class
Hi all, I have to make a radio button read only in a standard page. I am not able to set this property using personalisation, because, this bean is being created dynamically. So, I am extending the controller to perform the required function. Also ,
-
Migrate from vmware to oracle virtual machine having some error
Hi I am migrating the vmware with oracle virtula machine for that I have downloaded the OVFTool and run the following command ovftool.exe c:/../vmware.vmx d:/../vmware.ovf successfully I am able to migrate .vmx to .ovf file. then when I opened the sa
-
More Details about Multithreading Mode in User Management
Good morning, we are working with Portal 7.0 on SP 14 and there is an option to activate the multithreading mode in the User Management part of the support desk. Since this option seems to significant speed up our login time i´am interested in more d
-
IOS 7.1 probs communicating with hearing aid
Hey. I've had some serious problems with the streaming feature to my hearing aids since I updated to IOS 7.1. Any chance, I can go back to IOS 7.0.4