How to deal with Sum of Averages problem in BPC
Hi All
I have a situation where I am trying to calculate Averages.
P1, P2 and P3 roll up to "All_Projects"
Similar problem appears at Monthly level (which gets calculated correctly, but incorrectly at quarterly level).
Please help, how we could possibly resolve this problem?
Thanks
AJ
Hi Ankur,
Please, read my document Average percent values on nodes to understand how to work with average figures.
B.R. Vadim
Similar Messages
-
[Wine] - How to deal with undetected ALSA Device problem
All hail Google and Archwiki
sorry for that nonsense, I'm just too happy after two days trying to make my speaker work with Wine. For those who get same problem with me (Wine didn't detect your ALSA device correctly and/or didn't list it on winecfg), this is simple workaround to get them working.
Note: In oppose to Wiki's advice to install wine-suse from AUR, I use Wine from Community repo. AUR install always give me "WARNING: Dependencies have been installed before the failure" error
Additional note: Using this workaround. One may get error when try to use sound test within winecfg, and you'll likely get this error message on terminal:
fixme:wave:ALSA_ComputeCaps Device has a minimum of 2 channels
As far as google can tell, this will bring no harm to your box, unless proven otherwise
1. First thing first, if you don't know which device you should use, check it with 'cat /proc/asound/devices', else skip to step 3,
bam ~/Desktop > cat /proc/asound/devices
2: : timer
3: [ 0- 0]: digital audio playback
4: [ 0- 0]: digital audio capture
5: [ 0- 0]: hardware dependent
6: [ 0] : control
7: : sequencer
8: [ 1- 0]: digital audio playback
9: [ 1- 0]: digital audio capture
10: [ 1] : control
2. Pick each device marked audio playback and test the output:
bam ~/Desktop > aplay -D hw:1,0 /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
if you get this error:
aplay: set_params:1059: Channels count non available
replace hw:x,y with plughw:x,y.
3. After you get the working device number (e.g: hw:1,0), launch regedit
wine regedit
navigate to HKEY_CURRENT_USER\Software\Wine
4. Create new key named Alsa Driver , make new yalues as follow
[Software\\Wine\\Alsa Driver]
#disable auto scan sound card
"AutoScanCards"="N"
#specify number of output device
"DeviceCount"="1"
#point it to your hw number
"DeviceCTLn"="hw:1"
#same as above
"DevicePCMn"="hw:1"
#optional: direct hardware interface
"UseDirectHW"="Y"
detailed explanations can be found in Wine wiki (link on bottom)
5. close and test it by launching an apps (using test sound in winecfg will give you error!).
6. If your settings correct, you'll get your sound working
Hope this help someone
references:
http://alsa.opensrc.org/index.php/DigitalOut
http://wiki.winehq.org/UsefulRegistryKeys
ps: Sorry for misspelled word/gramatical error, I'm not too good on English.domain_uplevel only affects how we do LDAP search. It will have no effect on users that are not in your LDAP,.
Setting up a "domain smarthost" will cause messages addressed to unknown users to be routed to the host placed in the "smarthost". That would handle your issue, as long as the second box is "authoratative" for your domain, and doesn't send messages it doesn't know what to do with, to the Messaging Server.
Or, you could add all the users to your LDAP, and put the "mailhost" to msg2. That will route their mails over to the other box. -
How to deal with the code highlight problem of Jekyll in ArchLinux
Seemingly, The code highlight function of Jekyll is required by python-pygments but I use python2 in ArchLinux. I have to install python2-pygments instead but this works not very well because Jekyll needs /usr/bin/pygmentize instead of pygmentize2
Below is a dirty solution:
sudo pacman -S python2-pygments
ln -s /usr/bin/pygmentize2 /usr/bin/pygmentize
Any other good solution? or any plugin of Jekyll can replace python-pygments[2]?
Last edited by caasi (2012-04-23 02:07:14)domain_uplevel only affects how we do LDAP search. It will have no effect on users that are not in your LDAP,.
Setting up a "domain smarthost" will cause messages addressed to unknown users to be routed to the host placed in the "smarthost". That would handle your issue, as long as the second box is "authoratative" for your domain, and doesn't send messages it doesn't know what to do with, to the Messaging Server.
Or, you could add all the users to your LDAP, and put the "mailhost" to msg2. That will route their mails over to the other box. -
How to deal with this problem while Flex Integration SSH
Error creating bean with name '_messageBroker': Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: flex/messaging/AbstractFlexSessionProvider……
Caused by: java.lang.ClassNotFoundException: flex.messaging.AbstractFlexSessionProvider
I have exist project used SSH ,and now need flex to be use in some new unint.
I hava follow these step to write my code , please help me to pickup the misstake i had token.
(flex4.0 spring 3.6 strust2.2 **)
1. download the Blazeds file and spring-flex-core-1.5.2.RELEASE.jar
(org.springframework.integration-1.0.3.RELEASE.jar also include)
2. unpack the Blazeds copy the flex folder to WEB-INF
3.add the lib/* to my project lib folder
4.add some declaration in the web.xml
5.new a flex-application-config.xml
^^^^ and so on. I don't know how to deal with this problem!!!
Waitting for help!The information you provided is totally useless for determining the problem.
If it helps, I think the message you are getting is related to BlazeDS not being able to find the service class you are calling. You either have a typo somewhere, or you didn't set up a secure channel in your service config (I am assuming you meant SSL and not SSH). -
How to deal with this problem?
How to deal with this problem?
We plan to use Oracle Coherence (In Memory Data Grid) for a large-scale application. In order to keep the database table data in Coherence caches, we will create all the corresplonding Java objects (entities) and construct the persistence system using JPA/EclipseLink+JDBC. In this way, any in-memory object update will be persisted to the corresponding database tables.
The problem is that some existing application codes are updating these database tables directly now. If the direct-database-table update is not permmited in the persistence environment, we have to discard most of the existing application scripts.
I want to know, in this situation, should I discard most of the existing scripts?
Are there any other solutions?Allowing writes from both cache & DB is possible with its own set of issues.
The main issue to consider is conflicts from updates on same record via both cache and DB. If your caches are write-through the conflict decreases - but then cache writes become slower. If your caches are write-behind potentially the older cache update will overwrite the latest DB update. Now you are back to Database 101 -- timestamps, versions, etc...
If you use a DB trigger to initiate the resync request you might want to distinguish whether the update has come from the cache-store (in which case, you may choose to do nothing), or if the update was from the 'existing apps', etc...
If you choose to inject the resync logic at the application code level - you have the usual sourcecode issues - can you modify the code, is all the DB code localized, what options do you have to link with Coherence functionality (DLL, external proc, webservice, etc), etc... Naturally though, if you have to make substantial changes to signal a resync....you might consider taking the extra step and change the code to write to the cache. -
How to deal with deadlock on wwv_flow_data table when http server times out
There are some threads about a deadlock on the wwv_flow_data table. None of them contain a real explanation for this behaviour. In my case I will try to explain what I think is happening. Maybe it helps somebody who is hitting the same matter.
In my case with APEX 3.2.1 I am navigating from one page to another. Doing this APEX will lock the table wwv_flow_data. As soon as the other page is shown the lock will be released. But now this other page contains a bad performing query (standaard report region). After 5 minutes the http server (modplsql) will time out and present the message "No response from the application server" on the screen. In the meanwhile the query is still running on the database server and the lock stays on the wwv_flow_data table.
Normal user behaviour will be that the user will use the back button to return to the previous page and tries it again to navigate to the other page or
the user will try to refresh the page with the bad performing query.
And voila now you will have a deadlock on the wwv_flow_data table since a second session is trying to do the same thing while the first hasn't finished yet.
How to deal with it?
First of all. Have a good look at the bad performing query. Maybe you can improve it that it will succeed before the http server will timeout.
In my case the 11gr1 optimizer couldn't handle a subquery factoring clause in the best way. After changing it back to a classical inline query the problem was solved.
Secondly you could increase the timeout parameter of the http server. Although this not the best way.
Maybe it would better if APEX in a next version would release the lock on the table wwv_flow_date earlier or do a rollback just before the moment that the http server is timing out.
regards,
Mathieu MeeuwissenHello Shmoove,
I saw your reply here and you probably understand the problems the HTTP 100 response may cause.
I am trying to send image that was taken by getSnapshot. The problem is that the server respond with this HTTP 100 message.
I suspect that the reason that my server doesn't recognize the file that I'm sending from J2me is that the "server to client" response to the 100 message comes after the second message of (see what the TCPIP viewer shows down here):
POST /up01/up02.aspx HTTP/1.1
Content-Type: multipart/form-data; boundary=xxxxyyyyzzz
Connection: Keep-Alive
Content-length: 6294
User-Agent: UNTRUSTED/1.0
Host: szekely.dnsalias.com:80
Transfer-Encoding: chunked
400: Client to Server (126 bytes)
78
--xxxxyyyyzzz
Content-Disposition: form-data; name="pic"; filename="david.jpg"
Content-Type: application/octet-stream
400: Connected to Server
400: Server to Client (112 bytes)
HTTP/1.1 100 Continue
Server: Microsoft-IIS/5.1
Date: Wed, 23 Mar 2005 00:47:02 GMT
X-Powered-By: ASP.NET
Any help will be appreciated,
David -
Hi everybody,
I wrote a "Class Library" project which is a service using Visual Stodio 2008 recently, then tried to use a Visual Studio 2008
Setup Project to install it.
Here is what I did for the "Class Library":
1. Finish the program.cs, Service.cs
2. Add Installer
3. Change the serviceInstaller so that "StartType" to be Aotumatic
4. Change the ServiceProcessInstaller2 so that "Account" to be LocalSystem
5.
6. Click in F5 (Start Debugging)
Here is what I did for the Setup Project:
1. Add the exe file built from the "Class Library" project to the Application Folder
2. On the Custom Action Editor, add the exe file from 1 to Install and Commit
3. Change the property of the project so that "RemovePreviousVersion" to be true
4. Click on F6(Build Solution)
Then I tried to run the msi file from the built of the Setup Project. Because I modified the two projects serveral times, I uninstalled the Class Library using "Control Panel->Add or Remove Programs" before I reinstall. Two things I notived:
1. After unstall, the registry was not cleaned up about the installed program
2. After several rounds install/uninstall, I got "Error 1001. The specified service already exists"
My questions are:
1. How to cleanup the registry when uninstall a program?
2. How to deal with the "Error 1001. The specified service already exists"?
3. Did I do anytbing wrong with the "Class Library" or the "Setup Project"?
Thanks a lot!
HelenHi Simon, not a problem!
I spent some more time on this and here are few more notes:
it is called Major Upgrade, when you are installing new version of the product upon a previous one and
MSI supports 2 strategies:
Strategy 1. Install a new version and uninstall previous one. (Install a new version right upon previously installed version (file merging is performed based on dll version number) and the delete previously
installed files)
Strategy 2. Uninstall previous version and install a new one (Delete all previous files and install from scratch new files.)
From the first look it seems that 1st strategy is weird and buggy. But, remember, MSI is great because it's transactional!!! That means that if once some of the phases (Installation, Uninstallation, Rollback, Comit) fails, your machine
will be reverted to the previous state and it'll be still functional.
Let's consider both strategies:
Consider you have installed product_v1.msi and you want to install product_v2.msi.
Strategy 1
1. MSI engine copies files from Product_v1 directory to TEMP directory
2. MSI engine merges files based on the assembly version (between v1 and v2)
3. Once merging is completed successfully it removes files in TEMP (RemoveExistingProducts action triggers it) and you got product_v2 installed, otherwise if it fails MSI engine revert machine to V1 and copies previous files from TEMP.
Strategy 2
1. MSI engine tottaly removes all files from v1.
2. MSI engine installs v2 files and if something goes wrong you cannot revert back, because RemoveExistingProducts allready worked out and MSI doesn't have files to revert machine back
I recommend to everybody to use Strategy 1 and leverage MSI transaction functionality. And you can set this strategies by defining sequence of RemoveExistingProducts action. See more info
here. So, I think it's not even a bug in VS as I said in the upper post it is default recommened behaviour.
AND, you got "Error 1001. The specified service already exists"
because if we follow Strategy 1 MSI engine tries to install Windows Service on top of the existing service and OF COURSE it fails MSI engine (StopServices, DeleteServices actions are executed before actual
installation and they look at ServiceControl table). In order to stop service first and delete them you have to fill ServiceContol table of the MSI (and then StopServices, DeleteServices actions will recognize what to they have to stop
and delete), like this:
*clip*clip*clip*
' see http://msdn.microsoft.com/en-us/library/windows/desktop/aa371634(v=vs.85).aspx for more info
' Update the Service Entry to stop and delete service while uninstalling
query = "INSERT INTO ServiceControl (ServiceControl, Name, Event, Arguments, Wait, Component_) VALUES ('MAD_Service', 'Service name', '160', '', '1', '"
+ componentName + "')"
Set view = database.OpenView(query)
: CheckError
view.Execute : CheckError
' Update the Service Entry to stop and delete service while installing
query = "INSERT INTO ServiceControl (ServiceControl, Name, Event, Arguments, Wait, Component_) VALUES ('MAD2_Service', 'Service name', '10', '', '1', '"
+ componentName + "')"
Set view = database.OpenView(query)
: CheckError
view.Execute : CheckError
*clip*clip*clip*
We can uninstall service first by following Strategy 2, but then we lose transactional support.
So, Simon did I encourage you to change your code a bit?:)
And, btw, if you don't want to change the strategy, please don't rely on SequenceID in MSI table, it can be change, you have to get the at the runtime.
Hope it will help to everybody!
See also more advanced explanation of how MSI works
here.
Truly yours, Marat -
Organizational unit transfers ,how to deal with the person in it ?
Hi,All,I need your help!
if an organizational unit has been transfered to another upper organizational unit ,and there are already persons assigned to different positions of it,so how to deal with this problem?are those person's IT 0000,0001should be changed too?and how to maintain this kind of change?is a personnel action necessary?or there is some other more efficient way for it?Hi
In IT0001 You have a Position which is linked to a Org unit. If you want to change the org units reporting relationship then you have to change it in OM by creating a new relationship with the upper org unit.
All the person are assigned to position so nothing needs to be done in PA.
Reward points if useful.
Regards -
How to deal with the barcode?
i'm developing a file storage system in java, there're two barcode on each file(one is pdf417, the other one is code128) , but now ,there's a problem confused me :
i use the barcode scanner to scan the file and get images of these files from the scanner , but i have no idea how to deal with these images,
i need the barcode information on the images, and i know there're some java components can help me to read the barcode from images , for example : BarcodeReader from Barcode Library, but these components were too expensive for me , is there any other way can solve this problem?yes, look for a cheaper component...
Or write your own...
Or save up until you can afford the more expensive ones... -
How to deal with the growing table?
Every tables are growing in any applications. In some applications, tables become larger and larger quickly. How to deal with this problem?
I am developing an application system now. Should I add a lot of delete commands in the code for each table?junez wrote:
Every tables are growing in any applications. In some applications, tables become larger and larger quickly. How to deal with this problem?
I am developing an application system now. Should I add a lot of delete commands in the code for each table?Uh, well, yes if you continually add rows to a table the table will grow ... sooner or later you will want to delete rows that are no longer needed. What did you expect? You have to decide what the business rules are to determine when a row can be deleted, and make sure your design allows for such rows to be identified. This is called ..... analysis and design. -
How to deal with the rejected stock if it is rjected by QC
Dear All,
please let me know how to deal with the rejected stock from Quality point of view.i.e., for incoming materails and Finished if returned from customer
Regards,
P.Vijayahi
if material is rejected for incoming material then you can create Notification for incoming material due to you can return back material with print for that you have to record defects in result recording. in T-code QM02 if result is recorded with defects. or you can create with Qm01.against vendor
if material is returned from costumer you can create inspection lot for that for that you have to maintained inspection type 06 in material master. you can result record for that you can create notification for that. or rework for this material as per quality check or can scrap
if have any problem please come back
regards
Pravin -
How to deal with images stored in oracle
hi,
can anyone help me to solve this issue please:
in fact i am developping a swing based standalone application based on a TCP/IP client-server connection, so the point is to display on my frame for each student his information and also his personal picture
first step : storing the personal picture into the oracle database from a specefic frame that allows to specify each NEW student's profile and his photo.
step 2: as needed, a specefic frame allows to retrieve all the information related to a student and his photo to ( in a jlabel or other swing componenet)
how to deal with this storing and then the retriving from the oracle DB
any help please!If I understand well your problem, you need your client java application to store and retrive information from an oracle DB.
This can be done via JDBC.
Here's the tutorial:
http://java.sun.com/developer/onlineTraining/Database/JDBC20Intro/JDBC20.html
Look at
http://java.sun.com/developer/onlineTraining/Database/JDBC20Intro/JDBC20.html#JDBC2018
for storing and retriving binary data (like java serialized objects (Images for example)) -
I am storing text messages in a PropertyResourceBundle as follows
txt_EmailAdd = {mel ADres
txt_Password = pasvDR
I made the above file in MSword using hindi fonts
The folllowing text is supposed to be in hindi
{mel ADres
pasvDR
but it does not show the text in hindi it still shows in English but when I open the above text file in MSword it shows the text in hindi
Please tell me how to deal with this problem . I hope you people reply as eaarly as possible.
I also have another prob, I am developing a website using jsp+servlet now I have made the above mentioned property file and stored it in c:\tomcat5.0\webapps\emailreadersevice\IndexMessagesBundle.properties
but when I access it from my application's index.jsp file Tomcat gives me following exception
java.lang.NullPointerException
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:714)
java.util.ResourceBundle.getBundle(ResourceBundle.java:579)
org.apache.jsp.index_jsp._jspService(index_jsp.java:55)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
My index.jsp file is stored in c:\tomcat5.0\webapps\emailreaderservice\index.jsp
In my index.jsp file i have written the following statement to get the IndexMessagesBundle but tomcat gives me the above exception.
ResourceBundle IndexMessages = ResourceBundle.getBundle("IndexMessagesBundle",currentLocale);
Please guide me abt how to go abt it. Also tell me whether I am doing the right thing or not. If no then please tell me the right steps to followHi one_dane
I have made the property file using hindi fonts to type the following thing
{ m e l A D r e s
p a s v D R
No the above values are not place holders Infact in order to type EmailAddress and Password in hindi I had to type the above keys. so when I put system.out.println in my jsp page it does not display any hindi text but the above keys which i used to type in order to display hindi text in my txt file.
But I think i am not going on the right track should i type the unicode values for hindi text which is of the form \udddd in my property file. I have the unicode chart for hindi fonts so I can look up the chart and type appropriate unicodes(\udddd) to display Email Address and Password in hindi. Or am i still not getting how to do it? If not then please tell me how did you create your hindi property file. Is the following that you typed in your property file or is it the output of converting your property file into unicode using native2ascii
title=\u090f\u0926\u0938\u093e \u092a\u0917\u0932\u094d\u0917 \u0942\u093e\u0902\u0942JSP i18n issues
Please reply as soon as possible and hanks a lot for your help.
Eagerly waiting for a reply,
Heti shah -
How to deal with multiple language SQL script?
Hi All,
We now want to create a SQL script that contains multiple languages(English, Chinese, Japanese), this script need to be run at there different database installed on different OS, for example, Oracle9i on Windows 2000 English Edition/Chinese Edition/Japanese Edition.
If I save the file as ANSI format, this file will only be recognized at local OS(e.g. the Chinese and Japanese character will not be normally displayed on other OS, if I run the script, the CH/JP characters will not be stored normally in DB).
If I save the file as Unicode format, this file can be recognized by all three OS, but Oracle SQL Plus will not recognize it, thus we can't run the script.
Who can tell me how to deal with this issue? Is it possible to save only one script that can run on different language OS?
Thanks,
SparkHi,
The ISQLplus supports multiple languages, but there will be following problems for my case:
1.ISQLplus don't support Unicode format script too, so I must save the file as ANSI format.
2.To display the characters normally depends on the database server's platform. I create a script contain three languages with ANSI format in Chinese OS, but if I want to load this script to database server installed on English OS via ISQLplus, the Chinese characters will not be displayed normally too.
PS:
So, I think this is not only related with Oracle but also the Windows OS, it is hard to create one file with ANSI format that can be displayed normally in different platforms.
Thank you all the same,
Spark -
How to deal with validation errors from DAO layer.
I have been pondering on how to deal with validation errors from DAO layer.
Lets say you have a DAO that can save a car object. A car has a year, make, model, vin and so on. During the save operation of this DAO, it validates the car attributes to see if they pass some business rules. If it does not it throws some validation exception that contains all the validation errors. These validation errors know nothing about jsf or my components it just knows what attributes on the object are invalid and why.
If I just want to show those errors at the top of the page that would be no problem I could just create some FacesMessage objects and add them to the FacesContext messages. But if the DAO layer is telling me that the make attribute is invalid it would be nice to map it to the make field on the screen. I am wondering if any of you have tackled this problem or have some ideas on how to tackle it?
BrianLet it throw an exception with a self explaining message, then catch it and embed that message in a FacesMessage.
Or let it throw more specific exception types (InvalidCarMakeException extends CarDAOException and so on) and let JSF handle it with own FacesMessage message.
Maybe you are looking for
-
Dynamic sql for select statement
Hi, Please help me with the below code: It is updating null if the select statment returns one values. If it fetches multiple values then it throughs the below error msg when running the program. Please let me know how to modify the below code. Or le
-
Hello. Hope someone can help me with this. I received an e-mail with a document in it, I believe from a Windows computer. It was listed as Christmas 2007.doc. When it first came in, I doubled clicked on the .doc icon and it went through the Maclink p
-
ITunes opening automatically on download of MP3
Whenever I download an MP3 file from any source, iTunes opens, showing an empty playlist for that date. How do I keep it from opening?
-
Can't send emails on .mac since installing Leopard
I can receive mail via my .mac account but whenever I attempt to send a new e-mail or reply to an e-mail my .mac account crashes and asks if I want to send the error messages to Apple which I did twice. Any ideas on how I might fix this? So far every
-
HP printer only prints blank pages from Word or Pages
My HP all in one printer only prints blank pages from Word or Pages documents, prints ok from anything else. Any ideas? Have deleted and readded printer removed HP software reinstalled software from Apple etc. Help please!