Parallelised script using ranges error?
Hi all,
I have a script that runs i have parallelised that accepts ranges from another table [PROCESS_CONTROL]. I am getting the below message in my logs and I am not sure exaclty what it is telling me. Any ideas?
superkav.
Elapsed: 00:00:00.18
old 5: C_OCTASK_TRANSFERHISTO, I_OCTASK_TRANSFERHISTO from TOCTASKTRANSFERHISTORY WHERE I BETWEEN (SELECT RANGE_LO FROM PROCESS_CONTROL WHERE PROCESS_ID = '&1' and THREAD_NBR = &2) and (SELECT RANGE_HI FROM PROCESS_CONTROL WHERE PROCESS_ID = '&1' and THREAD_NBR = &2);
new 5: C_OCTASK_TRANSFERHISTO, I_OCTASK_TRANSFERHISTO from TOCTASKTRANSFERHISTORY WHERE I BETWEEN (SELECT RANGE_LO FROM PROCESS_CONTROL WHERE PROCESS_ID = 'toctasktransferhistory' and THREAD_NBR = 2) and (SELECT RANGE_HI FROM PROCESS_CONTROL WHERE PROCESS_ID = 'toctasktransferhistory' and THREAD_NBR = 2);
PL/SQL procedure successfully completed.
Heres the code.. removed a part of it to make it a bit smaller (just an insert statement)
spool sc2fo_app_toctransferactivitychange_dml_ora.log;
set timing on
DECLARE
filenme varchar2(100) := 'task-migration.sql';
rundate DATE;
osusernme varchar2(40);
machine varchar2(40);
BEGIN
SELECT sysdate, osuser, userenv('TERMINAL') INTO rundate, osusernme, machine FROM dual, v$session where v$session.audsid = (select userenv('SESSIONID') from dual);
INSERT INTO TScriptHistory(daterun, scriptname, osusername, host) VALUES(rundate, filenme, osusernme, machine);
COMMIT;
END;
DECLARE
CURSOR rogue_records7 IS SELECT I, LASTUPDATEDATE, C_OSUSER_UPDATEDBY,
I_OSUSER_UPDATEDBY, CHANGEDATE, REASON, DESCRIPTION,
C_PRIVHOLD_FR, I_PRIVHOLD_FR, C_PRIVHOLD_TO, I_PRIVHOLD_TO,
C_OCTASK_TRANSFERHISTO, I_OCTASK_TRANSFERHISTO from TOCTASKTRANSFERHISTORY WHERE I BETWEEN (SELECT RANGE_LO FROM PROCESS_CONTROL WHERE PROCESS_ID = '&1' and THREAD_NBR = &2) and (SELECT RANGE_HI FROM PROCESS_CONTROL WHERE PROCESS_ID = '&1' and THREAD_NBR = &2);
record_val7 rogue_records7%ROWTYPE;
BEGIN
OPEN rogue_records7;
LOOP
Fetch rogue_records7 INTO record_val7;
Exit When rogue_records7%NOTFOUND;
....bla bla bla
CLOSE rogue_records7;
END;
commit;
set timing off
spool off
Similar Messages
-
Error when running a script using upsshell.exe
I have a simple custom script which is
Sub Test1()
Set fso= CreateObject("Scripting.filesystemobject")
Set ts = fso.CreateTextFile("D:\DATA\****\Outbox\Templates\Test.txt")
ts.writeline "hi"
End sub
When I am running it manually in workbench, the script runs fine but when I try to run it using upsshell.exe(command provided below)
D:\Oracle\MIDDLE~1\EPMSYS~1\products\FINANC~2\SHARED~1\upsShell.exe CustomScriptEx=****~admin~****~~****~D:\DATA\test\Outbox\Logs~Test1~1033~0
i get the following error
ERROR:
Code............ 438
Description..... [Script failure caused error]: Object doesn't support this property or method
Procedure....... modupsShell.ExecuteCustomScriptEx
Component....... upsShell
Version......... 1112
Process ID...... 292496
Thread.......... 290292
IDENTIFICATION:
User............ admin
Domain..........
Computer Name... *******
App Name........ ****
PROCEDURE STEPS:
1-Split Arguments
2-Create Load balancer=*******
3-Authenticate
4-Get Next App Server
5-Open App Server=*******
6-Execute the script=Test1
7-Step was not reached, a previous step failed
Any ideas on the error?Hello Verdulken,
I have a few additional questions:
Does your application function correctly when running the LabVIEW operator interface you have created as a VI in the LabVIEW development environment (i.e. does this problem only occur when the LabVIEW operator interface is run as an executable)?
What is the error that you are receiving?
Regarding the VI that you open programmatically, do you open it in a visible manner (i.e. use the Show front panel when called option from VI Properties)?If so, do you also close this VI after it finishes (i.e. use the Close if originally closed option from VI Properties)?
Does the error occur on the step that calls this very same VI again later in the sequence?
Does your application function correctly if you use the development adapter for all of your calls?
Thank you in advance for this information,
Matt G.
National Instruments
Applications Engineering -
[Solved] I used RANGE UNBOUNDED FOLLOWING. But syntax error
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/functions001.htm#CIHCEIGA
RANGE BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING. The short form of this is RANGE UNBOUNDED FOLLOWINGI used RANGE UNBOUNDED FOLLOWING.
But I got syntax error ORA-00905: missing keyword.
Why?
SQL> select version from v$instance;
VERSION
10.2.0.1.0
SQL> select Val,
2 First_Value(case when mod(Val,10) = 0 then Val end ignore nulls)
3 over(order by Val Range Between Current row and Unbounded Following)
4 as "aaa"
5 from (select 10 as Val from dual
6 union select 15 from dual
7 union select 20 from dual
8 union select 25 from dual
9 union select 30 from dual
10 union select 32 from dual
11 union select 34 from dual
12 union select 40 from dual);
VAL aaa
10 10
15 20
20 20
25 30
30 30
32 40
34 40
40 40
SQL> select Val,
2 First_Value(case when mod(Val,10) = 0 then Val end ignore nulls)
3 over(order by Val Range Unbounded Following)
4 as "aaa"
5 from (select 10 as Val from dual
6 union select 15 from dual
7 union select 20 from dual
8 union select 25 from dual
9 union select 30 from dual
10 union select 32 from dual
11 union select 34 from dual
12 union select 40 from dual);
over(order by Val Range Unbounded Following)
ORA-00905: missing keyword.Thanks for doc link and reply.
I saw doc page 217 of the DB2 Version 9 doc.
Well.
On "window-aggregation-group-clause", we can choose "ROWS" and "group-end".
Then on "group-end", we can choose "UNBOUNDED FOLLOWING" or "unsigned-constant FOLLOWING".
On DB2 V9.1, I tested this query.
Then, this query worked.
select sortKey,Val,
max(Val) over(order by sortKey Range Unbounded Following) as MaxVal1,
max(Val) over(order by sortKey Rows 2 following) as MaxVal2
from (select 10 as sortKey,90 as Val from sysibm.sysdummy1
union select 20 as sortKey,50 as Val from sysibm.sysdummy1
union select 30 as sortKey,70 as Val from sysibm.sysdummy1
union select 40 as sortKey,30 as Val from sysibm.sysdummy1
union select 50 as sortKey,95 as Val from sysibm.sysdummy1
union select 60 as sortKey,98 as Val from sysibm.sysdummy1) dummy
sortKey Val MaxVal1 MaxVal2
10 90 98 90
20 50 98 70
30 70 98 95
40 30 98 98
50 95 98 98
60 98 98 98I saw doc page 219-220 of the DB2 Version 9 doc.
In doc page 219-220
group-end
Specifies the ending point for the aggregation group. The aggregation
group start is the current row.
Specification of the group-end clause is equivalent to a group-between clause of the form ″BETWEEN CURRENT ROW AND group-end″.Therefore,
I conclude that "UNBOUNDED FOLLOWING" is official on DB2.
However I don't know that "UNBOUNDED FOLLOWING" is official on standard SQL. -
When an FLV is playing and I want to download it. I click on the Ant download button. A little window appears reading ( Java Script Application "download error" message)
This works for me on YouTube.
Cancel the download and then immediately right click and choose retry. -
Problem exchanging partitions using range partitioning
I have a range-partitioned table. Here's a cut down version....
CREATE TABLE MY_TABLE
( VALUE NUMBER,
PARTITION_KEY NUMBER
PARTITION BY RANGE ("PARTITION_KEY")
(PARTITION "P1" VALUES LESS THAN (2),
PARTITION "P2" VALUES LESS THAN (3),
PARTITION "P3" VALUES LESS THAN (4),
PARTITION "P4" VALUES LESS THAN (5),
PARTITION "P5" VALUES LESS THAN (6),
PARTITION "P6" VALUES LESS THAN (7),
PARTITION "P7" VALUES LESS THAN (8));For the process I'm working on, I want to be able to:
- create a table as a copy of one of the partitions
- do some processing on that table
- exchange the updated table back into the partitioned table
I can achieve this as follows....
CREATE TABLE MY_TABLE_COPY_P7 AS (SELECT * FROM MY_TABLE WHERE PARTITION_KEY = 7);
... do processing ...
ALTER TABLE MY_TABLE DROP PARTITION P7;
ALTER TABLE MY_TABLE ADD PARTITION P7 VALUES LESS THAN (8);
ALTER TABLE MY_TABLE EXCHANGE PARTITION P7 WITH TABLE MY_TABLE_COPY INCLUDING INDEXES;However, this only works if the partition I'm adding back in is the highest partition.
If I try do take out one of the middle partitions, then add it back I get an error:
SQL] ALTER TABLE MY_TABLE ADD PARTITION P5 VALUES LESS THAN (6);
ALTER TABLE MY_TABLE ADD PARTITION P5 VALUES LESS THAN (6)
ERROR at line 1:
ORA-14074: partition bound must collate higher than that of the last partitionAny ideas on how I can exchange one of the middle partitions with having to first drop the higher ones?
Btw, I have to use range partitioning as we're using spatial, which only supports range partitioning.
Cheers,Actually, you can do the exchange partition thing with 8i and over. After creating my_table from your script, I did:
SQL> INSERT INTO my_table VALUES (1,7.5);
1 row created.
SQL> INSERT INTO my_table VALUES (2, 7.2);
1 row created.
SQL> INSERT INTO my_table VALUES (3,7.7);
1 row created.
SQL> CREATE TABLE my_tab_tmp AS
2 SELECT * FROM my_table
3 WHERE 1=2;
Table created.
SQL> ALTER TABLE my_table EXCHANGE PARTITION P7 WITH TABLE my_tab_tmp;
Table altered.
SQL> SELECT * FROM my_tab_tmp;
VALUE PARTITION_KEY
1 7.5
2 7.2
3 7.7
SQL> SELECT * FROM my_table;
no rows selected
SQL> UPDATE my_tab_tmp
2 set value = value * 20;
3 rows updated.
SQL> COMMIT;
Commit complete.
SQL> ALTER TABLE my_table EXCHANGE PARTITION P7 WITH TABLE my_tab_tmp;
Table altered.
SQL> SELECT * FROM my_tab_tmp;
no rows selected
SQL> SELECT * FROM my_table;
VALUE PARTITION_KEY
20 7.5
40 7.2
60 7.7You will, of course, need to re-build any global indexes on my_table.
When you first create my_tab_tmp, you should also create indexes to match any local indexes on the partitions, then do the exchange partition using the INCLUDING INDEXES clause. You could also skip creating the indexes and then re-create them after exchanging the updated table with the partition.
Note that none of this will work if you are changing values of partition_key so thatthey fall out of the range for the partition.
HTH
John -
With ActiveWorkbook.Connections(Connection).OLEDBConnection ' This statement is giving me a script out of range error
' when used inside
the function shown below.
Sub getData(qArray() As String, Connection As String, ActSheet As String)
'Updates the data from the Database. qArray is the SQL query in an array, connection defines which connection to use and ActSheet defines in which sheet to place the data
Sheets(ActSheet).Select
Range("A1").Select
With ActiveWorkbook.Connections(Connection).OLEDBConnection
.CommandText = qArray
.BackgroundQuery = False ' Hvis true opdateres ikke før script er kørt færdig
.CommandType = xlCmdSql
.Connection = "OLEDB;Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=RDWEB;Data Source=dk0149sql.niladv.org;"
.RefreshOnFileOpen = False
.SavePassword = False
.SourceConnectionFile = ""
.SourceDataFile = ""
.ServerCredentialsMethod = xlCredentialsMethodIntegrated
.AlwaysUseConnectionFile = False
End With
ActiveWorkbook.Connections(Connection).Refresh
End Sub
I am getting a subscript out of range when I use the above statement inside the getData function shown below.
The data is getting into the qArray as seen the Locals Window after it errors
How do I eliminate this error?It seems that Connection has some bad value. Have you investigated what that may be?
The code looks puzzling to me - it never seems to be running the query. Then again, this is a forum for SQL Server, and not for programming Excel. And it's probably in a forum of the latter type should have posted your question.
Erland Sommarskog, SQL Server MVP, [email protected] -
Executing a script using full path in ODT 11.1.0.5.10 beta?
Using a query window from ODT 10x, I used to be able to run a script using '@' and the path to the script. For example: '@D:\Documents\CAL.MB\Oracle\Create Scripts\Applicant\APPLICANT_TB.sql'.
Now I get the following error:
Command '@D:\Documents\CAL.MB\Oracle\Create Scripts\Applicant\APPLICANT_TB.sql' is not supported in query window.
I checked the documentation, but I couldn't find an alternative way to do this. Anyone know of any alternatives?Use VS.NET Tools menu->Run SQL*Plus Script->Specify the full path of your filename ->Select the connection->Hit the ok button.
-
Runtime range error #1125 index out of range
Hi there,
My project is to decode ddjvu image files and display them in flash using Alchemy.
In AS3 code, I declare two bytearrays, one for original image data, the other for the decoded one.
I pass two ByteArrays (not ns::gstate) into Alchemy just by extracting from "args", and malloc a datasize and using "AS3_ByteArray_readBytes". Then the c++ code will decode the image. Then I malloc another one to store output data, and write it to bytearray using "AS3_ByteArray_writeBytes". After these, I do free the memory I allocated.
But when I run it in Flex, At the first time, it works perfect, When I change a input image, it returns range error #1125. Sometimes it even happens just after reading the input bytearray and then exit.
the error is catched in my c++ code part which has nothing to do with AS3. But I compiled in alc-off mode, it always works fine. So I'm pretty sure it has nothing to do with my c++ code.
In the error imformation, the index is very big integer, about 10 digits, while the range is at thousand level.
I dont know why. I guess it may be memory problem. Because the size of output data can be as large as 100MB.
thx in advance.I dont think so. Because when the input image is some kind of djvu(1st page of a book), it works fine. but if not, it fails...I just dont know why.
-
HTTP trigger script using ECC variable/Call sub flow - not working
Hello all,
I am trying to http trigger script which will show the real time stats of the CSQs. The script is based on "Day of week" and Time of day" checking the queue time and will update the HTML doc to show as real time data. The scripts for various CSQs has multiple boolean variable (parameter, set to false by default) like "open/night/emergency/meeting" which can be set to open or close the queue by the supervisor depending on the situation. For ex, if a variable is set to True in application page for any of the Queue, I am trying to send that "true" value to the http trigger script, so that these can be shown real time.
Steps tried:
1. Tried using ECC variable - setting a ECC variable to True in the main script and getting that value in the http trigger script to a local variable, if found True, the display as "CSQ1 = OPEN", else "CSQ1 = CLOSED" ; but the script gave an error as attached (http1.png)
2. Tried using Call sub flow - Like Holiday check, under the "Rest" branch of "Time of Day" - will check the queue and will get the value returned to the local variable - Failed and it shows an error as attached (http2.png)
As of now, I have completed the script with the logic of checking the logged in agents count in the CSQs and updating the Real time data. But it has some issues like, if an agent didnt logged out properly or if an agent is asked to login during OOH although the queue is closed, as per the logged in resource logic, the data is shown as OPEN.
Please share your thoughts on this and if you have come across such a script, kindly share as a knowledge share.
Thanks in advance.
Bala.Hello all,
I am trying to http trigger script which will show the real time stats of the CSQs. The script is based on "Day of week" and Time of day" checking the queue time and will update the HTML doc to show as real time data. The scripts for various CSQs has multiple boolean variable (parameter, set to false by default) like "open/night/emergency/meeting" which can be set to open or close the queue by the supervisor depending on the situation. For ex, if a variable is set to True in application page for any of the Queue, I am trying to send that "true" value to the http trigger script, so that these can be shown real time.
Steps tried:
1. Tried using ECC variable - setting a ECC variable to True in the main script and getting that value in the http trigger script to a local variable, if found True, the display as "CSQ1 = OPEN", else "CSQ1 = CLOSED" ; but the script gave an error as attached (http1.png)
2. Tried using Call sub flow - Like Holiday check, under the "Rest" branch of "Time of Day" - will check the queue and will get the value returned to the local variable - Failed and it shows an error as attached (http2.png)
As of now, I have completed the script with the logic of checking the logged in agents count in the CSQs and updating the Real time data. But it has some issues like, if an agent didnt logged out properly or if an agent is asked to login during OOH although the queue is closed, as per the logged in resource logic, the data is shown as OPEN.
Please share your thoughts on this and if you have come across such a script, kindly share as a knowledge share.
Thanks in advance.
Bala. -
Attribute out of range error with Dalsa Spyder camera
I have a Dalsa Spyder camera SG-11 which seems to work fine in NI MAX. I've also had this camera working successfully in a LabView vi but now, for some reason, I am getting an error message "Attribute out of range (-1074360302)".
I've tried using different gain values (since MAX sometimes gives an attribute out of range error relating to gain) but am not having much success.
Has anyone else experienced this problem and found a work around?
LightworkerHi LightWorker,
I've not seen this probelm specifically with Dalsa Spyder SG-11 cameras but there are several KnowLedge Base Articles on the error for various differnt models of camera. It may be that one of these fixes will apply to your camera as well.
How Do I Resolve "Error: 0xBFF69012 Attribute value is out of range” When Connecting to a GigE Camer...
Why do I get Error 0xBFF69012 "Attribute Value is Out of Range" with my Basler GigE Camera?
Stingray Camera & NI LabView / Vision Builder Error -1074360302 "Attribute is out of range"
Please let us know if any of these solve your issue.
Kind regards,
James W
Controls Systems Engineer
STFC -
CRAXDDRT PrintOutEx method throes 'value out of range' error
Hi,
I am using CRAXDDRT.dll for Crystal reports 10 to print a report to a file in afp format.
The following is the scenario:
We have to print out the Tax forms of all the accounts. These forms are printed through an AFP printer. We generate the AFP file and push it to the printer for printing. We create the files each containg10000 accounts. So, we create multiple afp files going in a loop in our code, breaking our files to contain 10000 accounts. For writing the report to a file we use the PrintOutEx method of CRAXDDRT.dll which also takes StartPage number and StopPage numbers as parameters. But when either of the parameters exceeds 32000(int) the method fails with a 'value out of range' error. Do we have any hot fix so that the PrintOutEx method accepts StartPageNum and StopPageNum values more than 32000.
Public crReport As CRAXDDRT.ReportClass
crReport.PrintOutEx(False, piCopiesToPrinter, True, 33000, 38000, sPortName)
Thanks.CR 10 has been out of patch support since december of 07. See the following for more details:
Business Objects Product Lifecycles [original link is broken]
There is no equivalent API to PrintOutEx in the Crystal Reports SDK for .NET. Thus I understand why you need to use the RDC. However, my suggestion of changing your reference to craxDrt.dll as opposed to craxDDrt.dll still stands due to the two reasons I gave in my previous post (licensing and stability).
I would also consider Don's suggestion re. the 32K limit:
"Only work around I can think of is to limit the number of pages for your print jobs to 32K and then create multiple print jobs to select the same limit. Using Record Selection formula to set the limit, as for the actual page numbers being printed you will likely have to limit them also to 32k, the field may not be able to hold any page numbers higher than 32k."
Finally, another suggestion worth investigating is to see if CR XI release 2 with the latest Service Pack has the same issue. CR XI r2 eval can be downloaded from here:
http://www.businessobjects.com/products/reporting/crystalreports/eval.asp
The latest Service Pack can be downloaded from here:
https://smpdl.sap-ag.de/~sapidp/012002523100013876392008E/crxir2win_sp5.exe
Ludek -
Execute unix shell script using DBMS_SCHEDULER
Hi,
I am trying run to shell script using DBMS_SCHEDULER.
1) I check..nobody user exist on my HP-UX.
2) I check externaljob.ora on (10.2.0.2.0) also..It has an entry..
run_user = nobody
run_group = nobody
3) I created job successfully and enabled it.
begin
DBMS_SCHEDULER.CREATE_JOB
job_name => 'test_unix_script',
job_type => 'EXECUTABLE',
job_action => '/tmp/test.ksh',
start_date => '08-NOV-2006 04:45:16 PM',
job_class => 'DEFAULT_JOB_CLASS',
enabled => TRUE,
auto_drop => FALSE,
comments => 'test_unix_script.'
END;
EXEC DBMS_SCHEDULER.enable('test_unix_script');
4) test.ksh script had -r-xr-xr-x permission.
5) When I checking dba_scheduler_job_run_details view, ADDITIONAL_INFO column display following error messgae.
ORA-27369: job of type EXECUTABLE failed with exit code: No such file or directory
Did I miss anything?
Any help will be appreciated!!
Thanks..My /tmp/test.ksh trying to find database status.
. ~oracle/.profile > /dev/null
db_status=`eval sqlplus -s 'system/passwd@DEV' << EOF
set pagesize 0 feedback off verify off heading off echo off
select status from v\\$instance;
exit
EOF`
echo $db_status > /tmp/db_status_out -
Repost: Oracle VM Manager (IndexError: list index out of range) error
The Oracle VM Manager software will not import a server side created VM for management purposes. It is giving an index-out-of-range error when trying to retrieve the Memory Size from the jumpbox.xen file (I created a symbolic link to this file called vm.cfg).
Here is the log for the index-out-of-range error:
ovs_root.log
"2008-08-20 02:03:26" INFO=> utl_list_dir: directory('/OVS/running_pool') => pro
jectweb/,infinesse-web/
"2008-08-20 02:03:26" INFO=> list_dir: directory('/OVS/running_pool') => project
web/,infinesse-web/
"2008-08-20 02:03:26" INFO=> utl_get_vm_size: vm('/OVS/running_pool/infinesse-we
b') => 12020
"2008-08-20 02:03:26" INFO=> get_vm_size:vm('/OVS/running_pool/infinesse-web') =
success:size=12020"2008-08-20 02:03:26" ERROR=> xen_get_memory:vm('/OVS/running_pool/infinesse-web
')=><IndexError: list index out of range>
"2008-08-20 02:03:26" INFO=> get_vm_memory: vm('/OVS/running_pool/infinesse-web'
) scope=cfg rs=failed:<IndexError: list index out of range>
and my vm.cfg file:
# -- mode: python; --
# This JumpBox requires Hardware Support otherwise known as Xen's HVM mode.
# To test your Xen installation if it supports this mode, issue the following
# command:
# sudo xm info | grep xen_caps
# it should return a capabilities line like:
# xen_caps : xen-3.0-x86_32 hvm-3.0-x86_32
# as long as there is an hvm entry as shown above it should work.
## If starting Xen fails you may need to set a custom path
## for your kernel or device model files. Uncommant the following
## variables and put in the appropriate paths
## Uncomment and set your custom hvm loader path here
# hvm_path = ""
## Uncomment and set your custom device model loader path here
# devmodel_path = ""
# You will probably want to uncomment the following VNC variables so you
# can see the JumpBox console over VNC. Make sure to set the vncpassword to
# something unique. Also, if you run multiple JumpBoxes on the same host, you
# may want to leave vncdisplay unset and use the domid for the display numbers
#vnc=1 # enable VNC library for graphics, default = 1
#vnclisten="0.0.0.0" # address that should be listened on for the VNC server if vnc is set.
#vncdisplay=1 # set VNC display number, default = domid
#vncconsole=1 # enable spawning vncviewer for domain's console
#vncpasswd='password' # set password for domain's VNC console
memory = '256'
vfb = ['type=vnc,vncunused=1,vnclisten=0.0.0.0']
########### You shouldn't have to edit anything below here ##############
import os
import sys
# Assemble the basepath
file = os.getcwd() + '/' + sys.argv[2]
basepath = os.path.dirname(os.path.abspath(file))
datatarball = basepath + '/disks/data/data.xen.tgz'
builder = "hvm"
hvmfiles = [
'/usr/lib/xen/boot/hvmloader',
'/usr/lib/xen-ioemu-3.0/boot/hvmloader'
devfiles = [
'/usr/lib/xen/bin/qemu-dm',
'/usr/lib/xen-ioemu-3.0/bin/qemu-dm'
# Check to see if the user has assigned custom HVM or device_model paths
try:
hvmfiles.insert(hvm_path,0)
except NameError:
pass
try:
devfiles.insert(devmodel_path,0)
except NameError:
pass
# Choose the appropriate HVM Loader
for i in hvmfiles:
if os.path.exists(i):
kernel = i
break
# Choose the appropriate Device Models
for i in devfiles:
if os.path.exists(i):
device_model = i
break
# Need to test if device_model and kernel are set, if not return with error.
# If this is the first time this has run, extract the data disk tarball
# then remove the tarball
if os.path.exists(datatarball):
os.chdir(basepath + '/disks/data')
os.system("tar -zxpf " + datatarball)
os.remove(datatarball)
# Continue normal configuration
name = "joomla15"
vif = ['type=ioemu, mac=00:16:3E:2B:1F:04, bridge=xenbr0']
disk = ['file:' + basepath + '/disks/root/root.hdd,hda,w','file:' + basepath + '/disks/data/data.xen,hdb,w']
root = "/dev/hda1 ro"
extra = "4"Hi Ravi,
the error is due to the componet JAVA(TM) 7 which is not supported.
Better to run JAVA 6, I'm running the update 33, you can download it from http://www.oracle.com/technetwork/java/javase/downloads/jre6-downloads-1637595.html
Remeber to remove JAVA &
Go to control panel --> add remove programs and remove JAVA (TM) 7.
It will solve the problem.
Ciao,
Massimo -
Staroffice Basic, Calc, passing and using ranges
Okay, I was trying to transfer a VBA function from Excel to StarOffice.
The routine call looks like this:
=PS_MUL($K$22:$K$277 ; $L$22:$L$277 ; $F$22:$F$277 ; F22)
That is, there are three ranges, and a value input.
Here is my attempt at STAROFFICE's version of this routine
Function PS_MUL(Tay1_A as Object, Tay2_A as Object, Rank_Vector, Rank_A as Long) as Double
Dim Product_sum as Double
Dim Element1 as Double, Element2 as Double
Dim i as Integer, j as Integer
Dim cell1 as Object, cell2 as Object
Product_sum=0
i=0
For Each Element1 in Rank_Vector
i=i+1
j=0
cell2=Tay2_A.GetCellByPosition(i,0)
For Each Element2 in Rank_Vector
j=j+1
cell1=Tay1_A.GetCellByPosition(j,0)
If Element1+Element2=Rank_A Then Product_sum=Product_sum+cell1.Value*cell2.Value
Next Element2
Next Element1
PS_MUL=Product_sum
End FunctionIn VBA, I simply refereced "Product_sum=Product_sum+Tay_1A( i ) * Tay_2A( j )"
That is, the input cell ranges are 1-D arrays, and Tay_1A was implicitly defined. So I just used them as arrays, and no problem.
Here, no matter what I try to do with my code, including getting a cell reference by position and taking its value or whatnot, I still get errors.
I think it is becoming clear to me that I don't understand how to pass and use range references in StarBasic.
If anybody could help me out with understanding passing and using these range references, I'd appreciate it.
Just for comparison, here is the function in VBA:
Function CombSumProd(Tay_1A, Tay2_A, Rank_Vector, Rank_A As Variant) As Variant
Dim Product_sum As Variant, Element1 As Variant, Element2 As Variant
Dim i As Integer, j As Integer
Product_sum=0
i=0
For Each Element1 in Rank_Vector
i = i+1
j = 0
For Each Element2 in Rank_Vector
j=j+1
If Element1+Element2=Rank_A Then
Product_sum=Product_sum+Tay1_A(i) *Tay2_A(j)
Next Element2
Next Element1
CombSumProd=Product_sum
End FunctionHi
Follow the steps below - (I am assuming that you are using BI queries in your model & your tabs are as per quarter - one tab for each quarter)
1. Create one radio button & in entry list create static list as 1 - Quarter 1, 2 - Quarter 2 & so on.
2. Now you want plan Vs actual in one graph & Currency in another. So create these reports for each quarter separately, so in all you will have 8 reports (2 for each quarter)
3. IN the layout you have to arrange it vary carefully, you take all the 'Plan Vs Actual' report for all the quarters & arrange them exactly one over the other. Same for Currency reports also.
4. NOw Give visibility condition for each report example - if report is for first quarter then condition will be - bool(if(radio button string=="1",true,false)) & assign the default value in radio button as 1. so that at the time of execution you will get these reports by default.
5. Like wise give condition for all.
6. When you execute this report you will get radio buttons at the top & as you select different buttons differents report will get opened.
7. As you have plased these exactly one over the other, user will not come to know these are different reports.
Try this method, if you have any doubts for this, please do ask me.
Regards
Sandeep -
"Your script uses objects from a non-existent collection"
I have a multiple page form with a barcode on each form. I created a separate collection for each barcode. The auto generated code looks fine and has the correct collection created, however I still get the error, Paper Forms Barcode error "Your script uses objects from a non-existent collection".
I'm not sure what is wrong and I don't know how to fix it. Anyone else run into this?You will need to create a shared folder in Dropbox, then populate that with what ever folders you need to organize the files. It appears the DropBox app,will not handle this, but you can do, it by logging in to you account via Safari. Once the folders are created, they will show up in the app. Likewise with designating the folders as shared. Anyone you wish to share with will need a Dropbox account. (using the public folder will not work since links out it are for files only, not folders. An odd restriction, but it is what it is).
IF you have copies of the files on a PC, you will find that will be the easiest place to upload them from. If they are only in iBooks on the iPad, you will need to synch and use the file management function to copy them off. not sure if you can synch them back over to DropCopy within iTunes (never tried it).
DEpending on your needs, a couple of apps to look into are iCab Mobile (a browser), and GoodReader (doc viewing and management app). Both integrate well with DropBox.
Maybe you are looking for
-
while doing GR for asset PO system is giving error message of "Acct123 for trans/ev key ANL, is not a control account some one plz explain me the reason for this error and how to resolve.
-
Can't install iTunes on my computer?
Hi All, I know this is a very frequently asked question but let me just fill you in. I went to sync my iPad and iPhone 6 with iTunes on my computer (I had downloaded and installed the very latest version). I had the same problem as others where my de
-
Problem opening a file from a command line executed program with args
I have to run my program from the command prompt like this: c:\ java Parser template.txt keyvalue.dat output.txt I figured out how to read the args in, and I know they are being assigned to the proper variables. My template.txt, etc are in the same d
-
Hi! I have a task that would be easy to accomplish if I were to use a pen and paper, but still seems hard to accomplish in Numbers. I want to create a graph/diagram showing on the Y-axis: time of the day when (A) I went to bed, and (B) I woke up; and
-
Old version of Flash in Chrome on Mac
I'm using a Macintosh running Mavericks (10.9.5), Chrome 38.0.2125.122, and according to adobe.com, I have Flash version 15,0,0,223 in Chrome and should have version 15.0.0.242. It sounds like my system is quite a bit behind on Flash versions. I just