Variances Using Crossover Time Model
I'm sure this is a standard problem but am unable to find a solution:We're using a crossover time model where three fiscal years, quarters, months and weeks are all descendants of time (there is no year in scenarios).How do we build a member that computes a variance? For example, we'd like the variance for any measure between 2002_Q1 and 2001_Q1.Any help would be appreciated, even if it's just to point me at some appropriate documentation.Thanks.
To be able to calculate a variance between a selected year/month/quarter and the prior year, you could do it a number of ways:1) Create members in the time dimension to represent the possible variances (that could be a lot of extra members.2) Create a new dimension to store the variances.3) Split the years out of the model and do variances within that dimension.Of course, you could always have the front end tool do the variance for you, but if you want to have it come out of Essbase, those are the choices.You could use an existing dimension to store the variances, but you will have some limitations. For example, if you choose to use the accounts dimension, you will have to select an account on which to do the variance.Are there specific values for which you want to see the variance, or could it be anything?Regards,Jade-------------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected]
Similar Messages
-
I have a late mode IMac 27" running Snow Leopard. I downloaded Mountain Lion from the Apple Store and paid for it. When I trie to install it took me through the first few pages of installation such as agrreeing to terms and the Lion Page showed up asking where I wanted to intall Mountain Lion. The install button was greyed out. I also had a message this disc is used for Time Machine. I had no other disc to choose from. Time Mahine was in the OFF position. I tried hooking up an external drive and tried using it as th Time Machine Backup. That did not work and it also said this disc is used by Time Machine. I have read of several other cases like this but have found no solution other than doinh a complee wipe of the hard drive and doing a reinstall which I really want to avoid if I can.
Look at the root of your hard drive for a folder called Backups.backupdb.
Or, a sparse bundle disk image for one of mobile computers that might have tried to back up to your Mac.
If you have those, remove them and try again. -
Hi,
Problem Description: Need to upload a document with values related to document properties using custom form in to document set using JavaScript Object Model.
Kindly let me know any solutions.
Thanks
Razvi444The following code shows how to use REST/Ajax to upload a document to a document set.
function uploadToDocumentSet(filename, content) {
appweburl = decodeURIComponent(getQueryStringParameter('SPAppWebUrl'));
hostweburl = decodeURIComponent(getQueryStringParameter('SPHostUrl'));
var restSource = appweburl +
"/_api/SP.AppContextSite(@target)/web/GetFolderByServerRelativeUrl('/restdocuments/testds')/files/add(url='" + filename + "',overwrite=true)?@target='" + hostweburl + "'";
var dfd = $.Deferred();
$.ajax(
'url': restSource,
'method': 'POST',
'data': content,
processData: false,
timeout:1000000,
'headers': {
'accept': 'application/json;odata=verbose',
'X-RequestDigest': $('#__REQUESTDIGEST').val(),
"content-length": content.byteLength
'success': function (data) {
var d = data;
dfd.resolve(d);
'error': function (err,textStatus,errorThrown) {
dfd.reject(err);
return dfd;
Then when this code returns you can use the following to update the metadata of the new document.
function updateMetadataNoVersion(fileUrl) {
appweburl = decodeURIComponent(getQueryStringParameter('SPAppWebUrl'));
hostweburl = decodeURIComponent(getQueryStringParameter('SPHostUrl'));
var restSource = appweburl +
"/_api/SP.AppContextSite(@target)/web/GetFolderByServerRelativeUrl('/restdocuments/testds')/files/getbyurl(url='" + fileUrl + "')/listitemallfields/validateupdatelistitem?@target='" + hostweburl + "'";
var dfd = $.Deferred();
$.ajax(
'url': restSource,
'method': 'POST',
'data': JSON.stringify({
'formValues': [
'__metadata': { 'type': 'SP.ListItemFormUpdateValue' },
'FieldName': 'Title',
'FieldValue': 'My Title2'
'bNewDocumentUpdate': true,
'checkInComment': ''
'headers': {
'accept': 'application/json;odata=verbose',
'content-type': 'application/json;odata=verbose',
'X-RequestDigest': $('#__REQUESTDIGEST').val()
'success': function (data) {
var d = data;
dfd.resolve(d);
'error': function (err) {
dfd.reject(err);
return dfd;
Blog | SharePoint Field Notes Dev Tools |
SPFastDeploy | SPRemoteAPIExplorer -
Can I use 2 Time Capsules on the same network
Can I use 2 Time Capsules on the same network
Posted: Jul 23, 2009 1:49 PM Reply Email
Here is what I want to do. I currently have a time capsule used for one end of the house. Currently my 2 kids rooms are in an addition that I have run a cable from the time capsule to each of their rooms. If I want to give them wireless for that part of the house could I add another TC, for wireless and they can both backup their macbooks to that time capsule.
So Can I add a 2nd time capsule to extend by "N" network, or should I just go with an AP express or extreme and let them each have their own HD backup for each macbook?
BrettHave bought many reconditioned (Refurb) product from Apple site and have always been happy with them. To date none have failed me and we have been Apple customers since 2006. With that said when you buy Refurbs make sure you know what model you are getting. The current TCs on the Apple site are last generation. The way to tell is to check the model number against the current one. Easy way to do this is to put both in the shopping cart and compare the model numbers. The Refurb model number is FB277LL/A and the new TC model is MB765LL/A. The first digits identify whether a Refurb or new, the rest should be the same if they are the same model number.
Before you buy, now which model number you want and then check other sites to compare prices. I recently purchased a new TC on Amazon for a better price then the Apple Store Site. For larger Refurb purchases like MBPs, we choose to buy directly from Apple; but for peripherals we often buy from OWC, Amazon, and other sites. Hope this helps. -
Using multiple timer in the same SessionBean
Hello,
Is it possible to use multiple timer in the same Stateless Session Bean. In my application a user can schedule some task to execute. To do so I was thinking of creating a Session Bean which would create calendar timer on user request and, when one of the timer expires, retrieve the task to execute thanks to the information stored in the timer.
When I tried the solution explained above, it seems that the @timeout method is synchronized on 1 timer. For example if I create a timer that will be executed every 10 seconds and another one executed every 30 seconds, the timeout callback is called every 30 seconds but 4 times.
My code looks like that :
@Stateless
@LocalBean
public class TimeManager {
public void onUserRequest(ScheduleExpression expression) {
Timer timer = timerService.createCalendarTimer(expression, timerCfg);
@Timeout
void timeout(Timer timer) {
logger.log(Level.INFO, (String) timer.getInfo());
}Is there a way to do what I want?
Thank youThis doesn't make any sense to me. If i were to write a bunch of schemas for a particular applicaion, would
I have them all in the same namespace? You would normally have one schema that describes the information model associated with the one namespace that the different documents in your application use.
If so, why can't I load more than one in the same name space?The parser chooses the schema based on the namespace alone. There is no other information used to decide which schema to use, so you can only have one schema for the namespace.
They all have different root elements.You can have different root elements in the one schema.
I don't even need the namespaces, but I can't
figure out how to get rid of them (the schema isn't valid with out them according to XML Spy). You can set the schema explicitily before parsing, but not (AFAIK) set after parsing has begun, except by using the mapping of namespace to schema location.
I have also tried to use the external-noNameSpaceSchemaLocationproperty, but it doesn't seem like you can pass in an array of schemas to that one. It only expects a
String as the Object you pass in to setProperty. Yes, you can only validate a document against the one schema.
So, how can I load all my schemas so I don't have to reference them in the XML documents? Either combine your schemas so you have one schema for your namespace that validates elements which are defined in that namespace (the formal/correct way of doing it), or construct a filter that inserts a PI to point to the schema once the root element is opened (the pragmatic/bit of a hack way of doing it).
Pete -
Can I use my Time Capsule to set up multiple networks, or just one?
Can I use my Time Capsule to set up multiple networks, or just one? We'd like to offer the internet to clients who are at our studio, but don't want them able to access all our computers, so a second network for them would be useful.
Two big IFs here.
Not all versions of the Time Capsule have Guest Networking capability, so it might be a good idea to verify that first. Can you provide the model number of your Time Capsule. it's on the bottom of the device.....starts with an "A" followed by four numbers.
Next, assuming that the Time Capsule has Guest Network capability, the next requirement would be to verify that your modem is compatible with the Time Capsule for that feature.
Basically, you need a simple modem.....not a modem/router or gateway device that is often furnished by Internet Service Providers. If you are not sure what you have, post back with the make and model number of your "modem" and we'll see if we can find some details ont he device. -
Trying to use my Time Capsule as a Hard Drive.. Help!!
I have recenly inherited an old Time Capsule from a family member and I've been trying to figure out for two hours how to use it as an external hard drive. I connected it and added it to my existing network as an extention. Then, I turned off its wireless capability, and hit update. After about 5 minutes all it said was that "An error occurred while updating the configuration." Ive done this process over and over. And Ive reset it to factory settings multiple times already. All I need is an easy way to increase my computers storage using this Time Capsule, even if it means using an ethernet cable.
The very best way to do this is with ethernet to the existing router. Put the TC in bridge mode manually.
Then plug it in to existing router.. we recommend LAN router to WAN on the TC but even that is not 100% necessary.
If you want to link by wireless, to a non-apple router that is bad.. recommend strongly against it. Join a wireless network is super slow.
If you have a desktop Mac you can plug it directly into the Mac by ethernet.
But we need to know how the Mac is connected to internet.
I have given some info on one layout here.
https://discussions.apple.com/thread/4817218?tstart=30
If you end up relying on an old TC. And any of the models from Gen1-3.. and increasingly Gen4 have all reached EOL.. they can die suddenly and either take your files with them or be hard to recover. Also a TC is slow cf a USB external drive even, which is more reliable. Considering a 2TB is <$100 I would be careful using an old TC simply because you got it free. -
How to invoke a web service asynchronously using ws-addressing model?
Hi Gurus,
We are invoking an external web service asynchronously using Oracle Work Flow Business events using the following mechanism -
1)Created a web service invoker event to invoke the web service.
2)Created a subscription that invokes the web service (provided the wsdl address, operation info).
3)Defined a subscription parameter WFBES_CALLBACK_EVENT with value pointing to a recieve event.
4)Created a receive event(parameter value for WFBES_CALLBACK_EVENT) and a subscription that directs the response to a custom PL/SQL function to process response.
so far so good. We were able to invoke the web service and get and process the response.
Problem: The external web service can take upto 10 hrs to process the request. A time out of 2 hrs is set on the server hosting the external web service. So when the external web service takes more than 2 hrs to process the request and it times out and we get the following error on EBS side -
'l_error_message:oracle.apps.fnd.wf.bes.InvokerException: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html; charset=iso-8859-1'
Now the external web service providers are suggesting that we are not calling their web service asynchronously and we should use ws-addressing model to do so.
Is there a way to invoke this web service using ws-addressing model using business events or from PL/SQL or OA middle-tier?
Regards,
Sunil
CMRO Development.
I am providing here the WSDL of the external web service -
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://service.sdk.webservices.enigma.com" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:ax21="http://service.sdk.webservices.enigma.com/xsd" xmlns:ns="http://service.sdk.webservices.enigma.com" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://service.sdk.webservices.enigma.com/xsd" xmlns:ax22="http://service.sdk.webservices.enigma.com">
<xs:import namespace="http://service.sdk.webservices.enigma.com"/>
<xs:complexType name="JCGWebServicesException">
<xs:complexContent>
<xs:extension base="ax22:Exception">
<xs:sequence>
<xs:element minOccurs="0" name="id" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="message" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="JCGServiceReply">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="pdfStatus" nillable="true" type="ax21:PdfStatus"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="PdfStatus">
<xs:sequence>
<xs:element minOccurs="0" name="jobCardID" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="pdfPath" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="status" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://service.sdk.webservices.enigma.com" xmlns:ax23="http://service.sdk.webservices.enigma.com/xsd">
<xs:import namespace="http://service.sdk.webservices.enigma.com/xsd"/>
<xs:complexType name="Exception">
<xs:sequence>
<xs:element minOccurs="0" name="Exception" nillable="true" type="xs:anyType"/>
</xs:sequence>
</xs:complexType>
<xs:element name="JCGWebServicesException">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="JCGWebServicesException" nillable="true" type="ax21:JCGWebServicesException"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="runJobCard">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="a_WorkpackageFilePath" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="a_userName" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="runJobCardResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="ax21:JCGServiceReply"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
<wsdl:message name="JCGWebServicesException">
<wsdl:part name="parameters" element="ns:JCGWebServicesException">
</wsdl:part>
</wsdl:message>
<wsdl:message name="runJobCardResponse">
<wsdl:part name="parameters" element="ns:runJobCardResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="runJobCardRequest">
<wsdl:part name="parameters" element="ns:runJobCard">
</wsdl:part>
</wsdl:message>
<wsdl:portType name="JCGServicePortType">
<wsdl:operation name="runJobCard">
<wsdl:input message="ns:runJobCardRequest" wsaw:Action="urn:runJobCard">
</wsdl:input>
<wsdl:output message="ns:runJobCardResponse" wsaw:Action="urn:runJobCardResponse">
</wsdl:output>
<wsdl:fault name="JCGWebServicesException" message="ns:JCGWebServicesException" wsaw:Action="urn:runJobCardJCGWebServicesException">
</wsdl:fault>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="JCGServiceSoap11Binding" type="ns:JCGServicePortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="runJobCard">
<soap:operation soapAction="urn:runJobCard" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="JCGWebServicesException">
<soap:fault name="JCGWebServicesException" use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="JCGServiceSoap12Binding" type="ns:JCGServicePortType">
<soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="runJobCard">
<soap12:operation soapAction="urn:runJobCard" style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
<wsdl:fault name="JCGWebServicesException">
<soap12:fault name="JCGWebServicesException" use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="JCGService">
<wsdl:port name="JCGServiceHttpSoap12Endpoint" binding="ns:JCGServiceSoap12Binding">
<soap12:address location="http://localhost:8080/JCG/services/JCGService"/>
</wsdl:port>
<wsdl:port name="JCGServiceHttpSoap11Endpoint" binding="ns:JCGServiceSoap11Binding">
<soap:address location="http://localhost:8080/JCG/services/JCGService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Edited by: sikumar on Jun 22, 2010 1:50 PMBharat,
You dont need a Business Event setup to invoke a BPEL process from PL/SQL unless you have a special case and you need to process the response from the BPEL process in a separate thread (or in background)..
For a straight call to BPEL process from PL/SQL, here is a sample script -
function "MYTEST0" return varchar2 AS
soap_request varchar2(30000);
soap_respond varchar2(30000);
http_req utl_http.req;
http_resp utl_http.resp;
resp XMLType;
i integer;
helpStr varchar2(30000);
BEGIN
soap_request:= '<?xml version = ''1.0'' encoding = ''UTF-8''?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns0="
http://xmlns.oracle.com/TestWS">
<env:Body>
<ns0:TestWSProcessRequest>
<ns0:input>abc</ns0:input>
</ns0:TestWSProcessRequest>
</env:Body>
</env:Envelope>
/* the BPEL process name is TestWS */
http_req:= utl_http.begin_request
( 'http://hostname:7777/orabpel/default/TestWS/1.0'
, 'POST'
, 'HTTP/1.1'
utl_http.set_header(http_req, 'Content-Type', 'text/xml');
utl_http.set_header(http_req, 'Content-Length', length(soap_request));
utl_http.set_header(http_req, 'SOAPAction', 'process');
utl_http.write_text(http_req, soap_request);
http_resp:= utl_http.get_response(http_req);
utl_http.read_text(http_resp, soap_respond);
utl_http.end_response(http_resp);
resp:= XMLType.createXML(soap_respond);
resp:= resp.extract('/soap:Envelope/soap:Body/child::node()',
'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"');
helpStr := '';
i:=0;
loop
helpStr := helpStr || substr(soap_respond,1+ i*255,250);
i:= i+1;
if i*250> length(soap_respond)
then
exit;
end if;
end loop;
return helpStr;
END; -
External HD for use with Time Machine
I have a new MacBook Pro with 320GB HD. I want to buy an external HD to use with Time Machine for a back up. HOw much capacity should I be looking at for the external? Is 500GB enough or is it possible to partition a 1TB unit for use as backup and extra storage (photos, music, etc...)?
Thanks.
This should have been posted in the late model forum. Sorry.tsoup2u wrote:
Can I use disk utility to partition once plug in HD?
Yes, you can. Click the Partition tab. Click options and set the partition scheme to GUID. One option is to have one partition a bit smaller than your internal HDD, which you can use for a bootable clone (SuperDuper or Carbon Copy Cloner).
See this post for a great discussion of backup strategies:
http://discussions.apple.com/thread.jspa?messageID=9423426� -
Perfect Hard Drive To Use With Time Machine?
Hi,
Has anyone found out what's the perfect External Hard Drive to use with Time Machine?
I have experience with a few of WD's My Book models (Essential, Pro and Studio). The problem with all of them is that they automatically keep switching themselves off (spin down) and on (spin up) throughout the day, in an effort to save power. But it's actually quite annoying. The My Book drive will automatically turn itself off, and then turn back on again within the space of one minute. Also, going to use Spotlight (even if you've excluded Time Machine Backups from being indexed) will automatically prompt the My Book drive to turn back on, which introduces a small delay to using Spotlight.
Does anyone make an External Hard Drive, with a Firewire 400 or 800 connection, that stays on ALL the time and doesn't automatically make decisions about when it should spin down or spin up?I'am using a 500Gb Freecom Pro Hard Drive connected on USB via my Cinema Display. I so forget about it that I often forget to disconnect it from my laptop before leaving the office... Never complained about it
Btw, it does not implements the energy saver Auto turn off/on feature which I don't need cause the time it could mostly be really useful is by night. As it stops when I disconnect the USB and start again when I connect it back.. this is perfect to me.
I must say I'm quite happy with every Freecom product I bought and this one certainly don't break the rule -
Best practice for modelling rediects using the threat modelling tool
I'm in the process of modelling systems using the threat modelling tool.
There services in question do a lot of redirecting and handing off to one another on the client side, including things like ACS and identify providers.
If Web App A redirects to Web App B what is the best way to draw this?
1) App A (process) > HTTPs redirect > browser > request > App B (process) or
2) Can I just model it as HTTPS from A to B?
Obviously 2 simplifies diagrams hugely , but does that then exclude a range of potential threats or does the tool cater for this implicitly?Storing documents outside the web root and using
<cfcontent> to push their contents to the users is the most
secure method.
Putting the documents in a subdirectory of the web root and
securing that directory with an Application.cfm will only protect
.cfm and .cfc files (as that's the only time that CF is involved in
the request). That is, unless you configure CF to handle every
request.
The virtual directory is no safer than putting the documents
in a subdirectory. The links to your documents are still going to
look like:
http://www.mysite.com/virtualdirectory/myfile.pdf
Users won't need to log in to access these documents.
<cfcontent> or configuring CF to handle every request
is the only way to ensure users have to log in before accessing
non-CF files. Unless you want to use web-server
authentication. -
Best use of a model in cairngorm
I am a little confused about the use of a model , ModelLocator, in cairngorm
I have it created and it all works fine but whats the best way to access it, Currently i have numerous forms that all do something like
<fx:Script>
<![CDATA[
import com.model.ModelLocator;
[Bindable] private var model:ModelLocator = ModelLocator.getInstance();
and then later on
private function fun1(evt:Event):void
model.something = "blah"
var s1:String = model.anotherSomething;
or whatever
Is it ok to have varibles all over the place in different mxml files all creating a private var model, does this comsume resouces or is it ok because its static
Also i have several arrayCollections 11+ , plus other stuff in the model, is this okHi JockMahon,
Its ok fine you can go with that..
However remember one thing you will be declaring any variables in the ModelLocator class only if you are using them through out your application .. I mean more than one mxml page or AS files. However if you require any property or variable only within a single file then you can declare it locally within the file instead of decalring it in
ModelLocator.
The ModelLocator class in cairngorm framework is a singleton class so in how many files you have a model variable it will actually refer or return only single static instance of the ModelLocator class.
[Bindable] private var model:ModelLocator = ModelLocator.getInstance();
So how many times you have a variable by using the above style of decalring you will only get a single static reference to the instance of ModelLocator class. No ne instances are created. Its like you get a pointer to the model variable.
Hope it is clear now.
Thanks,
Bhasker -
Batch testing using the Sequencial Model
One of our Test Engineers is uncomfortable with the Batch Model provided with TestStand 2. Is there an easy way of using the Sequential Model as a Batch Model (testing multiple UUTs). The way I understand it, there is much more flexibility and capability built into the Batch Model, but I'm having a hard time convincing him and our boss of that. It seems as though by the time you get done modifying the Sequencial Model to do Batch testing, you've basically created a custom Batch Model anyway. And if that's the case, why not use something that was already designed specifically for that purpose. Am I looking at this correctly?
jtc,
you are correct in your understanding regarding the basics of the two different models. The sequential model is designed to test a single UUT at a time. The batch model expands this to test as many UUTs in parallel as you like, but the execution is synchronized on some points for the UUTs. This is done because we asume that the UUTs are connected together somehow e.g. placed on the same carrier. So each execution first handles things for all UUTs once (like retrieving/positioning of the carrier) and then starts to test each "socket" (meaning each UUT). After each socket has finished, the carrier is removed and a new one has to be placed in the fixture.
Since i dont know TS 2.0 (i started with 3.0) i am not sure where the differences are regarding processmodels. In TS 3.x, you have a third processmodel called "ParallelModel" which does not contain logical dependencies between the sockets.
Another thing about the BatchModel is that you can insert "synchronized sections" where you can "change the way of execution in parts of your sequence". One possible setting is e.g. "One thread only" which makes sure that the sockets synchronize at the beginning of the section and then only ONE socket executes the content of the section. After this, all sockets continue testing.
Another "problem" which is encountered by many beginners is that both parallel and batch model copy the initial sequence for all sockets. So each socket does the same tests which is propably not wanted.
Nevertheless, you can change the execution by including all tests for all sockets. Then create appropriate preconditions where you check for the socket you are currently working on. The needed Lookupstring would be "RunState.TestSockets.MyIndex"....
hope this helps,
Norbert B.
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it. -
Trapped at "Is it OK to use Air time?", HELP!
I finished a MIDlet program but I was stooped at the "Is it OK to use Air time?" warning even I clicked 'Yes'. However, when I run this program at the server machine, the warning doesn't show up.
What's the problem indeed? Can I disable this warning?
following is my codes:
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.io.*;
import java.io.*;
* An example MIDlet with simple "Hello" text and an Exit command.
* Refer to the startApp, pauseApp, and destroyApp
* methods so see how each handles the requested transition.
* @author Ken_2
* @version
public class GetNpost extends MIDlet implements CommandListener {
private Display display; // The display for this MIDlet
private Form fmMain;
private Alert alError;
private Command cmGET;
private Command cmPOST;
private Command cmExit; // The exit command
private TextField tfAcct;
private TextField tfPwd;
private StringItem siBalance;
private String errorMsg = null;
public GetNpost() {
display = Display.getDisplay(this);
//Create Command
cmGET = new Command ("GET", Command.SCREEN, 2);
cmPOST = new Command ("POST", Command.SCREEN, 3);
cmExit = new Command("Exit", Command.SCREEN, 1);
// Textfields
tfAcct = new TextField("Account:", "", 5, TextField.NUMERIC);
tfPwd = new TextField("Password:", "", 10, TextField.ANY | TextField.PASSWORD);
//Balance string item
siBalance = new StringItem("Balance: $","");
// Create Form, add commands & Components, listen for events
fmMain = new Form("Account Information");
fmMain.addCommand(cmExit);
fmMain.addCommand(cmGET);
fmMain.addCommand(cmPOST);
fmMain.append(tfAcct);
fmMain.append(tfPwd);
fmMain.append(siBalance);
fmMain.setCommandListener(this);
* Start up the Hello MIDlet by creating the TextBox and associating
* the exit command and listener.
public void startApp() {
display.setCurrent(fmMain);
* Pause is a no-op since there are no background activities or
* record stores that need to be closed.
public void pauseApp() {
* Destroy must cleanup everything not handled by the garbage collector.
* In this case there is nothing to cleanup.
public void destroyApp(boolean unconditional) {
* Respond to commands, including exit
* On the exit command, cleanup and notify that the MIDlet has been destroyed.
public void commandAction(Command c, Displayable s) {
if (c == cmGET || c == cmPOST) {
try
if (c == cmGET)
lookupBalance_withGET();
else
lookupBalance_withPOST();
catch (Exception e)
System.err.println("Msg: " + e.toString());
else if (c == cmExit)
destroyApp(false);
notifyDestroyed();
* Access servlet using GET
private void lookupBalance_withGET() throws IOException
HttpConnection http = null;
InputStream iStrm = null;
boolean ret = false;
// Data is passed at the end of url for GET
String url = "http://ismt.no-ip.com/servlet/DRMfypGroup2.GetNpostServlet" + "?" + "account=" + tfAcct.getString() + "&" + "password=" + tfPwd.getString();
try
http = (HttpConnection) Connector.open(url);
// Client Request
// 1) Send request method
http.setRequestMethod(HttpConnection.GET);
// 2) Send header information - none
// 3) Send boday/data - data is at the end of URL
// Server Response
iStrm = http.openInputStream();
// Three steps are processed in this method call
ret = processServerResponse( http, iStrm);
finally
// Clean up
if (iStrm != null)
iStrm.close();
if (http != null)
http.close();
// Process request failed, show alert
if (ret == false)
showAlert(errorMsg);
* Access servlet using POST
private void lookupBalance_withPOST() throws IOException
HttpConnection http = null;
OutputStream oStrm = null;
InputStream iStrm = null;
boolean ret = false;
// Data is passed at the end of url for GET
String url = "http://ismt.no-ip.com/servlet/DRMfypGroup2.GetNpostServlet" + "?" + "account=" + tfAcct.getString() + "&" + "password=" + tfPwd.getString();
try
http = (HttpConnection) Connector.open(url);
oStrm = http.openOutputStream();
// Client Request
// 1) Send request method
http.setRequestMethod(HttpConnection.POST);
// 2) Send header information. Required for POST to work!
http.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
// If you experience connectoin/IO problems, try removing the comment from the following line
//http.serRequestProperty("Connection", "clsoe");
// 3) Send boday/data
// Write account number
byte data[] = ("account=" + tfAcct.getString()).getBytes();
oStrm.write(data);
oStrm.flush();
// Server Response
iStrm = http.openInputStream();
// Three steps are processed in this method call
ret = processServerResponse(http, iStrm);
finally
// Clean up
if (iStrm != null)
iStrm.close();
if (http != null)
http.close();
// Process request failed, show alert
if (ret == false)
showAlert(errorMsg);
* Process a response from a server
private boolean processServerResponse(HttpConnection http, InputStream iStrm) throws IOException
// Reset error message
errorMsg = null;
// 1) Get Statis Line
if (http.getResponseCode() == HttpConnection.HTTP_OK)
// 2) Get header information - none
// 3) Get body (data)
int length = (int) http.getLength();
String str;
if (length != -1)
byte servletData[] = new byte[length];
iStrm.read(servletData);
str = new String(servletData);
else // Length not available...
ByteArrayOutputStream bStrm = new ByteArrayOutputStream();
int ch;
while ( (ch =iStrm.read()) != -1)
bStrm.write(ch);
str = new String (bStrm.toByteArray());
bStrm.close();
//Update the string item on the display
siBalance.setText(str);
return true;
else
// Use message from the servlet
errorMsg = new String ( http.getResponseMessage() );
return false;
* Show an alert
private void showAlert(String msg)
// Create Alert, use message returned from servlet
alError = new Alert("Error", msg, null, AlertType.ERROR);
// Set Alert to type model
alError.setTimeout(Alert.FOREVER);
// Display the Alert. Once dismissed, display the form
display.setCurrent( alError, fmMain);
}Ooops - adding to my own reply: this is valid for latest Sun Java studio Mobility (available at http://developers.sun.com/prodtech/javatools/jsmobility/index.html). Older versions have different wtk directory - search for _policy.txt in the install directory.
-
Is it possible to use face time with my iphone4 with 3G when the wi-fi is not avalable
Hi,
The Blurb
The * items message that is at the bottom
*FaceTime video calling requires a FaceTime-enabled device for the caller and recipient and a Wi-Fi connection. FaceTime over a mobile network requires iPhone 4S, iPhone 5 or iPad (3rd generation) with mobile data capability. Availability over a mobile network depends on carrier policies; data charges may apply.
Some features may not be available in all countries or all areas. Click here to see complete list.
It is not specifically saying it is 4G only phones.
It is not saying it is 3G either.
It is not listing an iPhone 4 (only the 4S)
It seems whether 3G can or cannot or if the iPhone can do 4G and it is available it seems that particular model will not.
10:26 PM Friday; March 29, 2013
iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.3)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
Couple of iPhones and an iPad
"Limit the Logs to the Bits above Binary Images." No, Seriously
Maybe you are looking for
-
How to download firefox on windows 8.1 64 bit?
After the firefox installer downloaded and I ran the program a "Run As" window opens (see attached picture). I have tried running it under current user, however after I hit okay nothing happens. I have also tried running it under administrator, but I
-
I wanna find out how can i upload imovie in instagram
how can i upload imovie clip in instragram
-
A friend of mine is an unsigned artist who may possibly want to consider trying to make his music available for purchase on iTunes, I have an iPod myself and I love it! My friend is an up and coming rapper who's stuff is definetly hot, in my opinion.
-
Bridge scripting learning curve
I must admit I was a little confused when I first looked at Bridge scripting. I had some background writing photoshop scripts. This forum is an excellent resource to supplement the documentation. Anyway, I have figured out everything I needed to port
-
Equivalent program for SAPM07DR when i am using SMARTFORMS
Hi All. Can any body please tell me what is the equvivalent program for SAPM07DR in samrt forms. Background: This is an upgradation from 46b to ECC 6.0. Using T-code MB03 we are now priniting the Goods accompanying document in SAP script. Now we want