Stack Definition Help Request
I've never been versed on STACK 101. I'm hoping someone can help me decipher the below stack so that I can offer up some sort of solution before tomorrow. "Please"
Thanks
Application: *****
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: Microsoft.Exchange.WebServices.Data.ServiceResponseException
Stack:
at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ProcessWebException(System.Net.WebException)
at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(Microsoft.Exchange.WebServices.Data.IEwsHttpWebRequest)
at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ValidateAndEmitRequest(Microsoft.Exchange.WebServices.Data.IEwsHttpWebRequest ByRef)
at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
at Microsoft.Exchange.WebServices.Data.ExchangeService.InternalCreateItems(System.Collections.Generic.IEnumerable`1<Microsoft.Exchange.WebServices.Data.Item>, Microsoft.Exchange.WebServices.Data.FolderId, System.Nullable`1<Microsoft.Exchange.WebServices.Data.MessageDisposition>, System.Nullable`1<Microsoft.Exchange.WebServices.Data.SendInvitationsMode>, Microsoft.Exchange.WebServices.Data.ServiceErrorHandling)
at Microsoft.Exchange.WebServices.Data.Item.InternalCreate(Microsoft.Exchange.WebServices.Data.FolderId, System.Nullable`1<Microsoft.Exchange.WebServices.Data.MessageDisposition>, System.Nullable`1<Microsoft.Exchange.WebServices.Data.SendInvitationsMode>)
at Microsoft.Exchange.WebServices.Data.EmailMessage.InternalSend(Microsoft.Exchange.WebServices.Data.FolderId, Microsoft.Exchange.WebServices.Data.MessageDisposition)
at Microsoft.Exchange.WebServices.Data.EmailMessage.SendAndSaveCopy()
at ILink5_OMExtractor.OMExtractor.MainThreadLoop()
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()
STACK 101 ? I'm guessing you talking about Lamp stack 101 ? I don't think your error is really stack 101 specific it look like something custom
OMExtractor ? that your trying to use if so what is that and what does the code look like eg are you maybe using the EWS Java API
https://github.com/OfficeDev/ews-java-api
The actually error your getting is because you haven't handled a regular exception it looks like it is being generated when you call
SendAndSaveCopy. The request is hitting the Exchange server okay, an error is happening at the server and then your getting a
ServiceResponseException. What you should be doing is putting your
SendAndSaveCopy in a Try/Catch block and then process the exception looking at the serviceerror enum http://msdn.microsoft.com/EN-US/library/microsoft.exchange.webservices.data.serviceerror(v=exchg.80).aspx to
see what the actual error is. Eg could be anything from Permissions to throttling etc.
Cheers
Glen
Similar Messages
-
Flexible packet matching stack definition
hi,
I'm checking how flexible packet matching works, and i have a question about the stack definition class-map. I understand that i need to define the stack of protocols included in packets of my interest, however i have found some statements like this:
class-map type stack match-all TCP
match field IP protocol eq 0x6 next TCP
match field TCP dest-port eq 0x16 next IP
!-- and
class-map type stack match-all IP-TYPE
stack-start l2-start
match field ETHER type eq 0x800 next ETHER
My question is what is the meaning of both statements in bold and why are they needed, why do u need to add a next statement with "IP" since for
my understanding you are saying with this that the next protocol header is IP again, and the same thing with "next ETHER".
thanks all for your replies.The first thing I would do is verify and Repair permissions.
Next read through both of these links and preform any suggested maintenence tasks they recommend.
http://discussions.apple.com/thread.jspa?messageID=607640򔖘
And also the one below.
http://www.thexlab.com/faqs/maintainingmacosx.html
Either one or both of these should help you.
Don -
Managed Bean Help for Definition Help
I am working on creating Managed Bean Help for Definition Help as described in ‘19.5.3 How to Create Managed Bean Help’ section of the Web User Interface Developer's Guide fpr ADF. Using JDev Version 11.1.2.1.0.
Thought I had all the artifacts assembled but when I run the log message is: <ELHelpProvider> <_getTranslationMap> ELHelpProvider's helpSourceExpression is null.
Any suggestions would be greatly appreciated.
Here is the managed bean:
public class ELHelpProviderProjRequest extends ELHelpProvider {
public ELHelpProviderProjRequest() {
/* To use the HelpProvider, the EL expression in the helpTopicId attribute must point to a Map, otherwise
* you will get a coerceToType error. */
public Map<String, String> getHelpMap()
Iterator iterator = _HELP_MAP.entrySet().iterator();
while(iterator. hasNext()){
System.out.println("hash map entry " + iterator.next());
return _HELP_MAP;
static private final Map<String, String> _HELP_MAP = new HashMap<String, String>();
static {
// each element [put] can be for a separate helpTopicId attribute
_HELP_MAP.put("MAPHELP_CATEGORY_CAPITAL_DEFINITION", "Map value for credit card definition");
_HELP_MAP.put("MAPHELP_CATEGORY_OTHER_DEFINITION", "Map value for credit card instructions");
} Here is the adf-setting.xml in Application sources / META-INF:
<?xml version="1.0" encoding="windows-1252" ?>
<adf-settings xmlns="http://xmlns.oracle.com/adf/settings" >
<adf-faces-config xmlns="http://xmlns.oracle.com/adf/faces/settings">
<help-provider prefix="MAPHELP_">
<help-provider-class>
com.corpnet.abc.util.ELHelpProviderProjRequest
</help-provider-class>
<property>
<property-name>helpSource</property-name>
<value>#{helpTranslationMap.helpMap}</value>
</property>
</help-provider>
</adf-faces-config>
</adf-settings>Here is the faces-config:
<managed-bean>
<managed-bean-name>helpTranslationMap</managed-bean-name>
<managed-bean-class> com.corpnet.abc.util.ELHelpProviderProjRequest </managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>Here is the helpTopicId in the inputText component:
<af:inputText value="Test" inlineStyle="font-weight: bold;" id="it31" simple="true" helpTopicId="MAPHELP_CATEGORY_CAPITAL" readOnly="true"/>Register the managed-bean as a help provider in the adf-settings xml like:
Example 19-9 Registering a Managed Bean as a Help Provider
<adf-settings xmlns="http://xmlns.oracle.com/adf/settings">
<adf-faces-config xmlns="http://xmlns.oracle.com/adf/faces/settings">
<help-provider prefix="MAPHELP_">
<help-provider-class>
oracle.adf.view.rich.help.ELHelpProvider
</help-provider-class>
<property>
<property-name>helpSource</property-name>
<value>#{helpTranslationMap.helpMap}</value>
</property>
</help-provider>
</adf-faces-config>
</adf-settings>
As you've pointed out, Review section 19.5.3 for more details -> http://docs.oracle.com/cd/E24382_01/web.1112/e16181/af_message.htm#CHDHIGIA
You could also investigate use the OHW product available here: http://www.oracle.com/technetwork/developer-tools/help/index-083946.html -
AT selection-screen on ON HELP-REQUEST
Hi
What is normally done in the Selection Screen event :
AT selection-screen on ON HELP-REQUEST.
Normally pressing F1 helps gives Documentation present in Data Element assoicated with the field. Exactly in what cases would we be needing to use this event.Hi,
That event is used for search.
at selection-screen on value-request for p_file.
call function 'F4_FILENAME'
exporting
field_name = 'p_file'
importing
file_name = p_file.
If you code in the same manner in the selection screen you will able to search and select a file from your work station, so that it will be uploaded in SAP.
I hope this will help you, if not plzzz be back.
CHEERS
If your problem is solved award points and close the thread. -
Hi
wat is importance of POH. what If there is no PROCESS ON HELP-REQUEST ?
Thanks and regards
- Puneet Sharma.To display data element supplement documentation, you must code the following screen flow logic in the POH event:
PROCESS ON HELP-REQUEST.
FIELD <f> [MODULE <mod>] WITH <num>.
After PROCESS ON HELP-REQUEST, you can only use FIELD statements. If there is no PROCESS ON HELP-REQUEST keyword in the flow logic of the screen, the data element documentation for the current field, or no help at all is displayed when the user chooses F1. Otherwise, the next FIELD statement containing the current field <f> is executed.
If there is screen-specific data element supplement documentation for the field <f>, you can display it by specifying its number <num>. The number <num> can be a literal or a variable. The variable must be declared and filled in the corresponding ABAP program.
You can fill the variables, for example, by calling the module <mod> before the help is displayed. However, the FIELD statement does not transport the contents of the screen field <f> to the ABAP program in the PROCESS ON HELP-REQUEST event. -
Process on Help request and Process on value request events examples
HI All,
Can anybody please give me some examples of Process on Help request and Process on value request events.
Thanks in advanceHI,
Check programs
<b>demo_selection_screen_f1</b>.
<b>demo_selection_screen_f4.</b>
Regards,
Sesh -
i have a structure where in all the key figures are restricted with one key figure, i need them to be restricted to another one also i.e. restricted to two KF's. but this is not possible, since the definition accepts only one KF. what is the work around for this.
thank youbasically its to have a restricted kf, but i need to switch between 2 restricions... which is not possible, maintaining two structues makes perfect sense which we contemplated but then it would be a very very very long query. any other work around would cell definitions help here
-
Help Requested - Agents/Scheduler/Bursting Mode/
Hello,
I have OBIEE 11G.
I have an automated email bursting requirement.
The details are -
I have one Table of people's names, address, email id and personal details. These people are not intended to be OBIEE users.
It is a table with people's names and email id.
Using each person's id(Pri key), I want to create a personalized email message and send it out to the intended email.
Sample rows-
Name: Vikram, Address: 123 abc st, Email: [email protected]
Name: Ram, Address: 345 xyz st, Email: [email protected]
message would be
Hello <vikram>
<Addr: 123 abc st>
Welcome!
Thanks
And it has to be sent to the email [email protected]
(( I'm researching more on using the SA system table .. but I really do not want to create them as OBIEE users.))
I want help in terms of what would be the best way to do that. I need direction to look into.
Further action:
Each time a new user is added to the table - the personalized email should be sent to that member. ((Maybe use flags??)
(I was thinking in terms of Triggers - & is there a way to use scripting for scheduling agents? command line?)
Please ask more details and I can answer them for help.
Thanks
VikramHi! Thanks for the reply,
After much googling we've finally found a stable configuration.
java.args=-server -Xmx768m -Xss64k -Dsun.io.useCanonCaches=false -XX:MaxPermSize=512m -XX:+UseParallelGC -Dcoldfusion.rootDir={application.home}/ -verbose:gc -Xloggc:c:/Jrun4/logs/gc/gcInstance1b.log
I tried playing with the survivor ratio but came back to the default when I didn't notice much improvement. In the end what did it (pretty sure) is -Xss to reduce the requests size living on the stack. Our large initial heap, perm + overhead combined with the default request size was causing the JVM to go over and blow up I think.
We've been stable for over a month now, the next step for us is to reduce the MaxPermSize a little at a time to find our optimal range. -
Find and Replace Issue Help Requested.
Hi all. I've been digging around for a couple of days and
can't seem to figure this one out. For starters, I have already
looked at the Regular Expression syntax and tried the MS word
clean-up option, but no luck. We have about 1,500 pages of content.
They are in DNN, so the pages are created dynamically.
Unfortunately, the page content was written in Word and then dumped
in DNN. We are trying to clean up the pages. We are grabbing the
content from Dot Net Nuke and putting it into Dreamweaver 8.0.2.
Then we are manually cleaning out things like:
<?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office" />
and
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"
align=left>
We are using the Find and Replace funtion in Dreamweaver to
clean out these commands, but I know from the documentation, there
is an easier way to clean these pages.
Bottom Line: Since the pages are dynamically built, I know I
have to grab the page content and put it in Dreamweaver manually
and then put it back in DNN, but I am trying to find a way (using
Regular Expressions or something) to look for all the little
variances of MSO, <?XML, etc. in a straight shot. I would like
to find a way to use a wild card to look for all tags that have MSO
or Microsoft or ?XML in them and then replace them with a null
value. From what I can tell, the Find would have to use a wildcard
because the advanced find features don't carry what I am looking
for. Something like Find \<?xml * [<-wildcard] to \> to
grab the entire tag. The Find tag command doesn't work because the
tags I need aren't listed. Also, because the content is dynamic, I
can't do a Fins and Replace against the entire site for these
commands, but it would be nice to "Find" all of these items with a
single pass since the "Replace" value is always null.
The wildcard syntax and multiple Find instances are the main
questions. The wildcards seem to be character or space specific.
Sorry for the long explanation - I just don't want to waste
anyone's time typing responses to things I've already tried to do.
Thanks in advance for any help. This is my first time back in
the forums in about 4 years.sadamec1 wrote:
> Well David, you Findmaster - it worked! (At least it
found and highlighted the
> code). Now, I need to dig through what you sent me and
compare it against my
> regular expression definitions to find out how to grab
the rest of these
> phrases. You're the best. Thank you!
Glad that it did the trick. Just to help you understand what
I did,
there are two main sections, as follows:
<\?xml[^>]+>
and
<[^>]+(?=class=Mso)[^>]+>
They are separated by a vertical pipe (|), so they simply act
as
alternatives.
The first one searches for <?xml followed by anything
except a closing
bracket until it reaches the first closing bracket.
The second one is more complex. It begins with this:
<[^>]+
This simply looks for an opening bracket followed by anything
other than
a closing bracket. What makes it more intelligent is the next
bit:
(?=class=Mso)
This does a forward search for "class=Mso". It's then
followed by this
again:
[^>]+>
That finds anything except a closing bracket followed by a
closing bracket.
The bit that you need to experiment with is (?=...). It's
technically
called a "forward lookaround". The effect is that the second
half of the
regex finds <....class=Mso....>.
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/ -
Stacked chart help in apex 4.0
Hi All,
I am working on a stacked chart.below is the query
select null link,range label,count(total) value1,Dept value2 from
(select '0-10' as range,count(emp_id) total,Dept from table
group by Dept
union all
select '10-20' as range,count(emp_id) total,Dept from table
group by Dept
select '20-30' as range,count(emp_id) total,Dept from table
group by Dept
union all
select '30-40' as range,count(emp_id) total,Dept from table
group by Dept)
i need to display the count of employee id in each department as a stacked series. Can anyone please help me to how to get this
Regards
ArkSorry. I just realized that I was logged-in as a "developer" not as the APEX Admin which, of course, is why I couldn't find the "security" option. I had too many windows open at once.
Elie -
I am trying to piece together a maro that will initially resize an image and save it with a different suffix at different size increments. I found within the cs5 scripts folder the macro 'Fit Image.jsx' that would allow me to resize correctly but am lost on how to add in the subsequent save steps and additional resize and saves. I would like to have it save the image with 5 different file sizes and suffixes (400x400 '-2' suffix, 250x250 '-2T', 150x150 '-1', 100x100 '-0', and 50x50 '-2S'). I found some information on the saveas http://forums.adobe.com/message/2652204 but have no experience with javascript. I have some understanding of VBA and believe a loop could be used but haven't the slightest idea how to set this up. Is there anyone out there that could help walk me through this and lend me a hand?
---Below contains the 'Fit Image.jsx' file that I found---
// c2008 Adobe Systems, Inc. All rights reserved.
// Written by Ed Rose
// based on the ADM Fit Image by Charles A. McBrian from 1997
// edited by Mike Hale added option to avoid resize on images already smaller than target size
@@@BUILDINFO@@@ Fit Image.jsx 1.0.0.21
/* Special properties for a JavaScript to enable it to behave like an automation plug-in, the variable name must be exactly
as the following example and the variables must be defined in the top 1000 characters of the file
// BEGIN__HARVEST_EXCEPTION_ZSTRING
<javascriptresource>
<name>$$$/JavaScripts/FitImage/Name=Fit Image...</name>
<menu>automate</menu>
<enableinfo>true</enableinfo>
<eventid>3caa3434-cb67-11d1-bc43-0060b0a13dc4</eventid>
<terminology><![CDATA[<< /Version 1
/Events <<
/3caa3434-cb67-11d1-bc43-0060b0a13dc4 [($$$/AdobePlugin/FitImage/Name=Fit Image) /imageReference <<
/width [($$$/AdobePlugin/FitImage/Width=width) /pixelsUnit]
/height [($$$/AdobePlugin/FitImage/Height=height) /pixelsUnit]
/limit [($$$/AdobePlugin/FitImage/limit=Don't Enlarge) /boolean]
>>]
>>
>> ]]></terminology>
</javascriptresource>
// END__HARVEST_EXCEPTION_ZSTRING
// enable double clicking from the Macintosh Finder or the Windows Explorer
#target photoshop
// debug level: 0-2 (0:disable, 1:break on error, 2:break at beginning)
// $.level = 2;
// debugger; // launch debugger on next line
// on localized builds we pull the $$$/Strings from a .dat file, see documentation for more details
$.localize = true;
var isCancelled = true; // assume cancelled until actual resize occurs
// the main routine
// the FitImage object does most of the work
try {
// create our default params
var sizeInfo = new SizeInfo();
GlobalVariables();
CheckVersion();
var gIP = new FitImage();
if ( DialogModes.ALL == app.playbackDisplayDialogs ) {
gIP.CreateDialog();
gIP.RunDialog();
else {
gIP.InitVariables();
ResizeTheImage(sizeInfo.width.value, sizeInfo.height.value);
if (!isCancelled) {
SaveOffParameters(sizeInfo);
// Lot's of things can go wrong
// Give a generic alert and see if they want the details
catch( e ) {
if ( DialogModes.NO != app.playbackDisplayDialogs ) {
alert( e + " : " + e.line );
// restore the dialog modes
app.displayDialogs = gSaveDialogMode;
isCancelled ? 'cancel' : undefined;
function ResizeTheImage(width, height) {
var oldPref = app.preferences.rulerUnits;
var docWidth;
var docHeight;
var docRatio;
var newWidth;
var newHeight;
var resolution = app.activeDocument.resolution;
var limit = sizeInfo.limit;
app.preferences.rulerUnits = Units.PIXELS; // save old preferences
// original width, height
docWidth = (1.0 * app.activeDocument.width * resolution) / 72.0; // decimal inches assuming 72 dpi (used in docRatio)
docHeight = (1.0 * app.activeDocument.height * resolution) / 72.0; // ditto
if (docWidth < 1.0 || docHeight < 1.0)
return true; // error
if (width < 1 || height < 1)
return true; // error
if ( limit && ( docWidth <= width && docHeight <= height ) ){
app.preferences.rulerUnits = oldPref; // restore old prefs
isCancelled = false; // if get here, definitely executed
return false; // no error
docRatio = docWidth / docHeight; // decimal ratio of original width/height
newWidth = width;
newHeight = ((1.0 * width) / docRatio); // decimal calc
if (newHeight > height) {
newWidth = docRatio * height; // decimal calc
newHeight = height;
// resize the image using a good conversion method while keeping the pixel resolution
// and the aspect ratio the same
app.activeDocument.resizeImage(newWidth, newHeight, resolution, ResampleMethod.BICUBIC);
app.preferences.rulerUnits = oldPref; // restore old prefs
isCancelled = false; // if get here, definitely executed
return false; // no error
// created in
function SaveOffParameters(sizeInfo) {
// save off our last run parameters
var d = objectToDescriptor(sizeInfo, strMessage);
app.putCustomOptions("3caa3434-cb67-11d1-bc43-0060b0a13dc4", d);
app.playbackDisplayDialogs = DialogModes.ALL;
// save off another copy so Photoshop can track them corectly
var dd = objectToDescriptor(sizeInfo, strMessage);
app.playbackParameters = dd;
function GlobalVariables() {
// a version for possible expansion issues
gVersion = 1.1;
gMaxResize = 300000;
// remember the dialog modes
gSaveDialogMode = app.displayDialogs;
app.displayDialogs = DialogModes.NO;
gInAlert = false;
// all the strings that need to be localized
strTitle = localize( "$$$/JavaScript/FitImage/Title=Fit Image" );
strConstrainWithin = localize( "$$$/JavaScript/FitImage/ConstrainWithin=Constrain Within" );
strTextWidth = localize("$$$/JavaScripts/FitImage/Width=&Width:");
strTextHeight = localize("$$$/JavaScripts/FitImage/Height=&Height:");
strTextPixels = localize("$$$/JavaScripts/FitImage/Pixels=pixels");
strButtonOK = localize("$$$/JavaScripts/FitImage/OK=OK");
strButtonCancel = localize("$$$/JavaScripts/FitImage/Cancel=Cancel");
strTextSorry = localize("$$$/JavaScripts/FitImage/Sorry=Sorry, Dialog failed");
strTextInvalidType = localize("$$$/JavaScripts/FitImage/InvalidType=Invalid numeric value");
strTextInvalidNum = localize("$$$/JavaScripts/FitImage/InvalidNum=A number between 1 and 300000 is required. Closest value inserted.");
strTextNeedFile = localize("$$$/JavaScripts/FitImage/NeedFile=You must have a file selected before using Fit Image");
strMessage = localize("$$$/JavaScripts/FitImage/Message=Fit Image action settings");
strMustUse = localize( "$$$/JavaScripts/ImageProcessor/MustUse=You must use Photoshop CS 2 or later to run this script!" );
strLimitResize = localize("$$$/JavaScripts/FitImage/Limit=Don^}t Enlarge");
// the main class
function FitImage() {
this.CreateDialog = function() {
// I will keep most of the important dialog items at the same level
// and use auto layout
// use overriding group so OK/Cancel buttons placed to right of panel
var res =
"dialog { \
pAndB: Group { orientation: 'row', \
info: Panel { orientation: 'column', borderStyle: 'sunken', \
text: '" + strConstrainWithin +"', \
w: Group { orientation: 'row', alignment: 'right',\
s: StaticText { text:'" + strTextWidth +"' }, \
e: EditText { preferredSize: [70, 20] }, \
p: StaticText { text:'" + strTextPixels + "'} \
h: Group { orientation: 'row', alignment: 'right', \
s: StaticText { text:'" + strTextHeight + "' }, \
e: EditText { preferredSize: [70, 20] }, \
p: StaticText { text:'" + strTextPixels + "'} \
l: Group { orientation: 'row', alignment: 'left', \
c:Checkbox { text: '" + strLimitResize + "', value: false }, \
buttons: Group { orientation: 'column', alignment: 'top', \
okBtn: Button { text:'" + strButtonOK +"', properties:{name:'ok'} }, \
cancelBtn: Button { text:'" + strButtonCancel + "', properties:{name:'cancel'} } \
// the following, when placed after e: in w and h doesn't show up
// this seems to be OK since px is put inside the dialog box
//p: StaticText { text:'" + strTextPixels + "'}
// create the main dialog window, this holds all our data
this.dlgMain = new Window(res,strTitle);
// create a shortcut for easier typing
var d = this.dlgMain;
// match our dialog background color to the host application
d.graphics.backgroundColor = d.graphics.newBrush (d.graphics.BrushType.THEME_COLOR, "appDialogBackground");
d.defaultElement = d.pAndB.buttons.okBtn;
d.cancelElement = d.pAndB.buttons.cancelBtn;
} // end of CreateDialog
// initialize variables of dialog
this.InitVariables = function() {
var oldPref = app.preferences.rulerUnits;
app.preferences.rulerUnits = Units.PIXELS;
// look for last used params via Photoshop registry, getCustomOptions will throw if none exist
try {
var desc = app.getCustomOptions("3caa3434-cb67-11d1-bc43-0060b0a13dc4");
descriptorToObject(sizeInfo, desc, strMessage);
catch(e) {
// it's ok if we don't have any options, continue with defaults
// see if I am getting descriptor parameters
var fromAction = !!app.playbackParameters.count;
if( fromAction ){
// reset sizeInfo to defaults
SizeInfo = new SizeInfo();
// set the playback options to sizeInfo
descriptorToObject(sizeInfo, app.playbackParameters, strMessage);
// make sure got parameters before this
if (app.documents.length <= 0) // count of documents viewed
if ( DialogModes.NO != app.playbackDisplayDialogs ) {
alert(strTextNeedFile); // only put up dialog if permitted
app.preferences.rulerUnits = oldPref;
return false; // if no docs, always return
var w = app.activeDocument.width;
var h = app.activeDocument.height;
var l = true;
if (sizeInfo.width.value == 0) {
sizeInfo.width = w;
else {
w = sizeInfo.width;
if (sizeInfo.height.value == 0) {
sizeInfo.height = h;
else {
h = sizeInfo.height;
app.preferences.rulerUnits = oldPref;
if ( DialogModes.ALL == app.playbackDisplayDialogs ) {
var d = this.dlgMain;
d.ip = this;
d.pAndB.info.w.e.text = Number(w);
d.pAndB.info.h.e.text = Number(h);
d.pAndB.info.l.c.value = sizeInfo.limit;
return true;
// routine for running the dialog and it's interactions
this.RunDialog = function () {
var d = this.dlgMain;
// in case hit cancel button, don't close
d.pAndB.buttons.cancelBtn.onClick = function() {
var dToCancel = FindDialog( this );
dToCancel.close( false );
// nothing for now
d.onShow = function() {
// do not allow anything except for numbers 0-9
d.pAndB.info.w.e.addEventListener ('keydown', NumericEditKeyboardHandler);
// do not allow anything except for numbers 0-9
d.pAndB.info.h.e.addEventListener ('keydown', NumericEditKeyboardHandler);
// hit OK, do resize
d.pAndB.buttons.okBtn.onClick = function () {
if (gInAlert == true) {
gInAlert = false;
return;
var wText = d.pAndB.info.w.e.text;
var hText = d.pAndB.info.h.e.text;
var lValue = d.pAndB.info.l.c.value;
var w = Number(wText);
var h = Number(hText);
sizeInfo.limit = Boolean(lValue);
var inputErr = false;
if ( isNaN( w ) || isNaN( h ) ) {
if ( DialogModes.NO != app.playbackDisplayDialogs ) {
alert( strTextInvalidType );
if (isNaN( w )) {
sizeInfo.width = new UnitValue( 1, "px" );
d.pAndB.info.w.e.text = 1;
} else {
sizeInfo.height = new UnitValue( 1, "px" );
d.pAndB.info.h.e.text = 1;
return false;
else if (w < 1 || w > gMaxResize || h < 1 || h > gMaxResize) {
if ( DialogModes.NO != app.playbackDisplayDialogs ) {
gInAlert = true;
alert( strTextInvalidNum );
if ( w < 1) {
inputErr = true;
sizeInfo.width = new UnitValue( 1, "px" );
d.pAndB.info.w.e.text = 1;
if ( w > gMaxResize) {
inputErr = true;
sizeInfo.width = new UnitValue( gMaxResize, "px" );
d.pAndB.info.w.e.text = gMaxResize;
if ( h < 1) {
inputErr = true;
sizeInfo.height = new UnitValue( 1, "px" );
d.pAndB.info.h.e.text = 1;
if ( h > gMaxResize) {
inputErr = true;
sizeInfo.height = new UnitValue( gMaxResize, "px" );
d.pAndB.info.h.e.text = gMaxResize;
if (inputErr == false) {
sizeInfo.width = new UnitValue( w, "px" );
sizeInfo.height = new UnitValue( h, "px" );
if (ResizeTheImage(w, h)) { // the whole point
// error, input or output size too small
d.close(true);
return;
if (!this.InitVariables())
return true; // handled it
// give the hosting app the focus before showing the dialog
app.bringToFront();
this.dlgMain.center();
return d.show();
function CheckVersion() {
var numberArray = version.split(".");
if ( numberArray[0] < 9 ) {
if ( DialogModes.NO != app.playbackDisplayDialogs ) {
alert( strMustUse );
throw( strMustUse );
function FindDialog( inItem ) {
var w = inItem;
while ( 'dialog' != w.type ) {
if ( undefined == w.parent ) {
w = null;
break;
w = w.parent;
return w;
// Function: objectToDescriptor
// Usage: create an ActionDescriptor from a JavaScript Object
// Input: JavaScript Object (o)
// object unique string (s)
// Pre process converter (f)
// Return: ActionDescriptor
// NOTE: Only boolean, string, number and UnitValue are supported, use a pre processor
// to convert (f) other types to one of these forms.
// REUSE: This routine is used in other scripts. Please update those if you
// modify. I am not using include or eval statements as I want these
// scripts self contained.
function objectToDescriptor (o, s, f) {
if (undefined != f) {
o = f(o);
var d = new ActionDescriptor;
var l = o.reflect.properties.length;
d.putString( app.charIDToTypeID( 'Msge' ), s );
for (var i = 0; i < l; i++ ) {
var k = o.reflect.properties[i].toString();
if (k == "__proto__" || k == "__count__" || k == "__class__" || k == "reflect")
continue;
var v = o[ k ];
k = app.stringIDToTypeID(k);
switch ( typeof(v) ) {
case "boolean":
d.putBoolean(k, v);
break;
case "string":
d.putString(k, v);
break;
case "number":
d.putDouble(k, v);
break;
default:
if ( v instanceof UnitValue ) {
var uc = new Object;
uc["px"] = charIDToTypeID("#Pxl"); // pixelsUnit
uc["%"] = charIDToTypeID("#Prc"); // unitPercent
d.putUnitDouble(k, uc[v.type], v.value);
} else {
throw( new Error("Unsupported type in objectToDescriptor " + typeof(v) ) );
return d;
// Function: descriptorToObject
// Usage: update a JavaScript Object from an ActionDescriptor
// Input: JavaScript Object (o), current object to update (output)
// Photoshop ActionDescriptor (d), descriptor to pull new params for object from
// object unique string (s)
// JavaScript Function (f), post process converter utility to convert
// Return: Nothing, update is applied to passed in JavaScript Object (o)
// NOTE: Only boolean, string, number and UnitValue are supported, use a post processor
// to convert (f) other types to one of these forms.
// REUSE: This routine is used in other scripts. Please update those if you
// modify. I am not using include or eval statements as I want these
// scripts self contained.
function descriptorToObject (o, d, s, f) {
var l = d.count;
if (l) {
var keyMessage = app.charIDToTypeID( 'Msge' );
if ( d.hasKey(keyMessage) && ( s != d.getString(keyMessage) )) return;
for (var i = 0; i < l; i++ ) {
var k = d.getKey(i); // i + 1 ?
var t = d.getType(k);
strk = app.typeIDToStringID(k);
switch (t) {
case DescValueType.BOOLEANTYPE:
o[strk] = d.getBoolean(k);
break;
case DescValueType.STRINGTYPE:
o[strk] = d.getString(k);
break;
case DescValueType.DOUBLETYPE:
o[strk] = d.getDouble(k);
break;
case DescValueType.UNITDOUBLE:
var uc = new Object;
uc[charIDToTypeID("#Rlt")] = "px"; // unitDistance
uc[charIDToTypeID("#Prc")] = "%"; // unitPercent
uc[charIDToTypeID("#Pxl")] = "px"; // unitPixels
var ut = d.getUnitDoubleType(k);
var uv = d.getUnitDoubleValue(k);
o[strk] = new UnitValue( uv, uc[ut] );
break;
case DescValueType.INTEGERTYPE:
case DescValueType.ALIASTYPE:
case DescValueType.CLASSTYPE:
case DescValueType.ENUMERATEDTYPE:
case DescValueType.LISTTYPE:
case DescValueType.OBJECTTYPE:
case DescValueType.RAWTYPE:
case DescValueType.REFERENCETYPE:
default:
throw( new Error("Unsupported type in descriptorToObject " + t ) );
if (undefined != f) {
o = f(o);
// Function: SizeInfo
// Usage: object for holding the dialog parameters
// Input: <none>
// Return: object holding the size info
function SizeInfo() {
this.height = new UnitValue( 0, "px" );
this.width = new UnitValue( 0, "px" );
this.limit = false;
// Function: NumericEditKeyboardHandler
// Usage: Do not allow anything except for numbers 0-9
// Input: ScriptUI keydown event
// Return: <nothing> key is rejected and beep is sounded if invalid
function NumericEditKeyboardHandler (event) {
try {
var keyIsOK = KeyIsNumeric (event) ||
KeyIsDelete (event) ||
KeyIsLRArrow (event) ||
KeyIsTabEnterEscape (event);
if (! keyIsOK) {
// Bad input: tell ScriptUI not to accept the keydown event
event.preventDefault();
/* Notify user of invalid input: make sure NOT
to put up an alert dialog or do anything which
requires user interaction, because that
interferes with preventing the 'default'
action for the keydown event */
app.beep();
catch (e) {
; // alert ("Ack! bug in NumericEditKeyboardHandler: " + e);
// key identifier functions
function KeyHasModifier (event) {
return event.shiftKey || event.ctrlKey || event.altKey || event.metaKey;
function KeyIsNumeric (event) {
return (event.keyName >= '0') && (event.keyName <= '9') && ! KeyHasModifier (event);
function KeyIsDelete (event) {
// Shift-delete is ok
return ((event.keyName == 'Backspace') || (event.keyName == 'Delete')) && ! (event.ctrlKey);
function KeyIsLRArrow (event) {
return ((event.keyName == 'Left') || (event.keyName == 'Right')) && ! (event.altKey || event.metaKey);
function KeyIsTabEnterEscape (event) {
return event.keyName == 'Tab' || event.keyName == 'Enter' || event.keyName == 'Escape';
// End Fit Image.jsxWith Photoshop CS5 you can use Image Processor Pro and this should do what you require...
http://blogs.adobe.com/jnack/2011/05/new-image-processor-pro-script-for-cs5.html -
PowerMac G3 Blue & White Hard Drive Trouble/Help Requested
Hey all,
I work for a small IT/computer repair company. We recently got in a PowerMac G3 Blue & White (300 MHz; 512K cache; 64 MB SDRAM) which has what appears to be a bad hard drive.
(Upon boot, it comes up with a flashing disk/question mark and you can hear the drive making noises it shouldn't be/spinning up and down/etc.). I've tried booting with the OS CD (8.5.1) in the drive and get a bit further, but it complains of an unimplemented trap, and if I try holding down C to boot up, it starts to load, but then the screen flashes and it eventually locks up (but without the hard drive connected at all doesn't even get that far; just a gray screen).
I've done some research and think my first step should be to replace the hard drive (though if that's not the case, I'd appreciate some insight). I haven't fixed many Macs before, though, so I still have several questions:
1.) The drive that came with the machine is a 6 GB IBM connected to the mainboard IDE interface. It lists it as having Apple HDD Firmware. Is this firmware required on any drive I'd have to get to work with this machine, or can I go with any IDE drive and not worry about it like with PC's (I'm going to stay as small as I can, but with newer drives, that's probably still a lot of gigs)?
2.) Similarly, when I do get a new drive, assuming that's the problem, will OS 8.5.1 be able to format and use it, as I've never done an install of this particular OS before. I'm assuming I just boot from CD and go through the process?
3.) Unfortunately, I've discovered this unit is using the Revision 1 chipset. So I may need to go for some sort of PCI IDE interface option. Any recommendations for a cheap solution here, and is this a definite must to get this working reliably?
4.) The owner of this machine also inquired about a DVD/CD burner (would have to be external as there's no room inside). Any recommendations that would work well with this machine, or is this machine not suited to using these types of drives well?
5.) Can this Apple G3 run Mac OSX well enough, as the client has also expressed interest in upgrading OSes, or is it too slow for this?
Thanks much for any help - this is fairly new territory for me!
ShaunShaun,
After the iMac killed the used Mac market and the G4 killed the value of the B&W G3, I closed up shop and moved on to better ways of making money. lol
One client wanted a newer mac cheap so I bought her a used B&W G3. One month later they came out with the Mac Mini for $125.00 more than a fully configured B&W. With in the year, that client moved up to a Mini. The B&W has plummeted in value since that day. Current market is G4 or better now.
For a hobby machine, it is still a great computer. To pay for service time at shop rate, that model can quickly become a money pit. You may have already checked out some sites like this:
http://www.macgurus.com/products/motherboards/mbppcg3bw.php
so I apologize in advance if you already know the history of issues with that machine.
Yes we can walk you through the resurrection of a Blue and ***** ( honest typo) Mac, but religious preferences aside, if you value the client, tell them about the value of a mini. It was built to run OS X. It has behaved flawlessly ( except with MS Office ) for us here.
The model of B&W Mac that you mentioned has many service land mines. Those traps for the unwary can be easily avoided with SCSI interface cards and a SCSI drive. Your fees and the cost of the upgrades might add up to close to the cost of a bare bones Mini. Just something to consider.
First thing to do is to "zap the PRAM" and Texas mac man gives a good tutorial here:
http://www.geocities.com/texas_macman/pram.html
The Apple OEM HDD firmware is not required but it does make life much easier on your client.
If you have a spare Western Digital IDE drive kicking around, see if you can format it to Mac with Drive Setup in the Utilities folder of any drive you can get to boot that Mac after zapping the PRAM.
The Mini can be ordered with a DVD burner.
Good luck.
Jim -
hi i was wondering if anyone could help me, i keep getting 2 errors on the pop and push methods sayin it cannot find the variable.
package labwork1;
import java.util.*;
* @author me
public class Main
public Main() {
public static void main(String[] args)
Stack stk = new Stack();
public void help(String object)
if(object.startsWith("-")){
stk.pop();
else{
stk.push(object);
}ok i get that the scope of the stack is only in the
main method, how would i solve this, so that the push
and pop methods will work?Not sure what you are doing but:
Declare it in the class as an instance variable. -
I know, another Time Machine help request
I get the Time Machine back up error. I recently purchased a Seagate GoFlex Desk external drive. Time Machine seemed to recognize it right away. The following morning I found the dreaded "Time Machine could not complete the backup. Unable to complete backup. An error occurred while creating the backup folder."
I have formatted the external drive per Pondini's step by step; MAC OS Extended (Journaled). No luck. Then I downloaded Time Machine Buddy Widget. I don't know how to copy the error messages in the pop-up. Apparently it is having an issue with a movie that was downloaded from Itunes. I proceeded to exclude it (band-aid). However, I will run Time Machine again and it will have a problem with another file. The error code is consistent; Error (-36)
Starting standard backup
Backing up to: /Volumes/TM Backups/Backups.backupsdb
Event store UUIDs don't match for volume
No pre-backup thinning needed 135.88 GB requested (including padding), 1.80 TB available
Your help will be greatly appreciated!kenfromlo wrote:
I get the Time Machine back up error. I recently purchased a Seagate GoFlex Desk external drive. Time Machine seemed to recognize it right away. The following morning I found the dreaded "Time Machine could not complete the backup. Unable to complete backup. An error occurred while creating the backup folder."
See #C10 in Time Machine - Troubleshooting (but see the next item first).
I have formatted the external drive per Pondini's step by step; MAC OS Extended (Journaled).
Did you select the GUID Partition Map Scheme? If not, reformat it that way.
Then I downloaded Time Machine Buddy Widget. I don't know how to copy the error messages in the pop-up.
Click in the message area, select Cmd+A (to select All), then Cmd+C to copy.
(Or, if you mean the TM failure message, a screen print is fine.)
Apparently it is having an issue with a movie that was downloaded from Itunes. I proceeded to exclude it (band-aid). However, I will run Time Machine again and it will have a problem with another file. The error code is consistent; Error (-36)
See the pink box in #C3 of Time Machine - Troubleshooting. -
WLC2106 + LAP1131AG configuration help request
Greetings Everyone.
One of my customers asked me to configure a WLC 2106 and 2 LAP 1131AG (lightweight) for corporate/guest Wifi.
Basicly they want to implement a good wifi connection for internal use and a guest one with different QoS. The two lans
should both have dhcp but they must bet kept segregated so that none from the Guest wifi can access corporate resources.
Since i've never configured a WLC from scrath i lightly supposed it would be quite straigh forward as routers and switches from Cisco.
Unfortunately i was totally wrong.
I've downloaded the "Cisco Wireless LAN ControllerConfiguration Guide" (Soft.Release 6.0 June 2009) and after i red it i made up this workflow
for the configurations:
1) Configure Controller: (via serial)
- Set Management Interface parameters (IP- SM - Def GW - Dhcp server IP)
- Set Ap-Manager Interface parameters
- Virtual Interface parameters
- Set Admin Credentials
- Dhcp Configuration (internal and/or external)
2) Ap registration on the controller
- Configure vlan with dhcp request redirection to the dhcp server
3) Configure Wlan following customer's requests.
- Configure Wlan Auth for Corporate/Guest Wifi
- Configure QoS for both Wlans
Unfortunately i'm experiencing issue while trying joining the AP to the WLC.
It appers that the IT guy of my customer tried to configure one of the Ap.
In that Ap's flash i find files referring to a "mesh" configuration like:
mesh_cfg.txt - mesh_port_cfg.txt
which are not present on the other Ap.
I've tried to register both the Ap using:
1) Internal DHCP
2) External DHCP (microsoft W2k8 R2)
3) External DHCP (non cisco router)
But as a matter of fact they got the ip from dhcp but they don't show up in the WLC GUI.
So, resuming my issues sounds like:
1) Can't make Ap join the WLC
2) There are configuratin file on one Ap that i can't clear
3) DHCP configuration is probably wrong.
Since i'm quite lost, i'm ready to learn from anyone who could spare some time helping me out.
Thank you in advance!
Regards
Alessio
P.S.
Ap version is the following:
Cisco IOS Software, C1130 Software (C1130-K9W8-M), Version 12.4(21a)JHB1, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2010 by Cisco Systems, Inc.
Compiled Wed 11-Aug-10 15:39 by prod_rel_team
ROM: Bootstrap program is C1130 boot loader
BOOTLDR: C1130 Boot Loader (C1130-BOOT-M) Version 12.3(8)JEA, RELEASE SOFTWARE (fc2)Good Day Everyone.
After a long fight, the insights of Stephen and Scott and:
https://supportforums.cisco.com/docs/DOC-13960 and
https://supportforums.cisco.com/thread/2003153
I finally managed to wipe the old configuration and to configure a LAP 1131 attached to one of the POE of the controller.
After having configured a Wlan and having set the correct DHCP redirection i'm able to connect and get an ip! (WHOA!)
I've had to set a manual ip address on the AP (let's call AP1 from now on) and to manually point it to the controller.
I was thinking about using this configuration at the customer's site getting ips from the internal DHCP and thus letting employees using the internal resources of the company.
With the same idea, i started to configure the second AP (AP2 from now on).
So i set up a dynamic interface, always on physical port 1 of the controller, gave it an ip address on another class.
Got into the antenna via console and set an ip accordingly.
I expected the controller and the antenna to communicate immediately as the AP1 did before BUT:
LWAPP_CLIENT_ERROR_DEBUG: spamHandleJoinTimer: Did not recieve the Join response
LWAPP_CLIENT_ERROR_DEBUG: No more AP manager IP addresses remain.
%SYS-5-RELOAD: Reload requested by LWAPP CLIENT. Reload Reason: DID NOT GET JOIN RESPONSE.
%LWAPP-5-CHANGED: LWAPP changed state to DOWNXmodem file system is available.
And keep reloading itself on, and on, and guess? Yes, on.
I'm sure i took a wrong step somewhere, could someone be so kind to enlighten me about it?
Thanks in advance!
Alessio
Maybe you are looking for
-
DME not generated for a few documents
I see in F110, Parameters have been entered Payment proposal has been created Payment proposal has been edited Payment run has been carried out Posting orders: 162 generated, 114 completed DME output did not include a few documents (48 of them). Do y
-
How to set remembering playback position as default
Hi everyone, I know how to manually set the "Remember Playback Position", however it doesn't remain set and keeps on dropping off. does anyone know how to set it as a default value? or is there a bug effecting this functionality?
-
I can't log in to my hotmail account because of third party cookies being disabled
I changed my cookie settings because of a bank site that I needed to use to make an e-deposit. In order to do that, I had to enable 3rd party cookies. After I did that, I can no longer access my hotmail (outlook.com) e-mail account. I can't sign in t
-
USB Port support for windows?
Hi, There is JavaComm API for Serial and Parallel Port in Java. and also USB support on Linux platform? What about the USB Port for windows platform? How Can communicate through USB Port? plz, suggest me the sides, code Thanks Pramod Kadam
-
Occasional "Unexpected Termination" of SSIS packages
Hi, We're using SSIS 2012 version 11.0.3381.0 and we have master packages run via SQL Agent jobs. A few times a month a master package will end with "Unexpected Termination" shown in the SSIS All Executions report, causing us the headaches of fixing