Changing DB parameters on live cube
i have a small number of infocubes with approximately 200,000,000 rows of data each. all of the logical database parameters (SE13) for the E & F tables are at the default settings (class "DFACT" and size cat "4"). the db-storage parameter setting inside the cube are also set to the default (fact table = DFACT & 4; dimension table is DDIM & 0; and the aggregate parameters are all blank).
i would like to change all the relevant parameters to the appropriate settings for the data volume. i have changed the size category to 9 in se13 and to 9 & 4 (fact table dim table respectively) inside the cube.
so here is my question... is it safe to transport these changes up to a full cube? i noticed that i had to unlock the infoobjects in the cube when changing the db storage parameters but it successfully transported to a loaded cube in our QA instance. additionally, the se13 changes to the E & F table did not require deleting any data in the cube.
i have search OSS and most of the references to this matter deal with the 2.x release and we are on 3.5 (and oracle is the dbms).
if anyone would share their experience with the above issue it would be greatly appreciated.
Hi Mark
Why is it that you want to change the settings? The purpose of the settings (as I understand it) is to specify how the DB shall create the table (The size of the initial extent and the next extents). In your case the table is already created i.e. the change you make will not have any effect. As far is I know it's not possible to change these settings on the table when it's created but you should talk to a DBA or a SAP Basis guy to confirm this.
Regards
Kristian
Similar Messages
-
Can we change the attribute once the cube is live
Hi:
i was wondering whether can we change the attributes once the cube is live?
kedarIf the Cube is LIVE with data ,we can turn ONN the NAV attribute for the cube as per the post above.
1)Do i need to delete and reload data in the cube for the navigational attribute changed inthe cube??history data
2)Will my deltas be affected which are live and running??
3)will update rules deactivated be a problem when we transport to production??
4)If we make changes to existing data model like adding infoobjects and want to have history data modified to that object ,than Can FULL REPAIR load work ??
or making a copy of the cube ,generating export DS..loading ..the olad traditional way is the option -
Is there a way to change the LUt extension form .CUBE to .cube. on export with this script in photoshop For MAC:
Chris Cox wrote:
The file extensions are written by the export plugin. (which incidentally has a comment that two studios wanted all caps extensions, but I failed to write down which ones in the comments)
To change the filenames, you'd want to add something at the end of doExportLUTs() that uses the supplied path and substitutes the desired extensions, then renames the file.
Thank you
// Export Color Lookup Tables automation in JavaScript
// IN_PROGRESS - why can't ColorSync Utility open any profile with a grid of 160 or larger?
// 150 works, 160 fails -- sent samples in email to Apple on Nov 8, 2013; they are investigating
// DEFERRED - right to left filenames (Arabic) come out wrong because of appending "RGB" and file extensions
// This seems to be a bug in JavaScript's handing of strings, not sure we can solve it easily.
// It might possibly be handled by checking bidi markers in UTF8 stream and adding custom handling for appending text/extensions.
@@@BUILDINFO@@@ ExportColorLookupTables.jsx 1.0.0.0
// BEGIN__HARVEST_EXCEPTION_ZSTRING
<javascriptresource>
<name>$$$/JavaScripts/ExportColorLookupTables/Menu=Color Lookup Tables...</name>
<menu>export</menu>
<enableinfo>true</enableinfo>
<eventid>9AA9D7D6-C209-494A-CC01-4E7D926DA642</eventid>
</javascriptresource>
// END__HARVEST_EXCEPTION_ZSTRING
#target photoshop
const appUIState = app.displayDialogs;
app.displayDialogs = DialogModes.NO; // suppress all app dialogs
app.bringToFront(); // make Photoshop the frontmost app, just in case
// on localized builds we pull the $$$/Strings from a .dat file
$.localize = true;
// from Terminology.jsx
const classApplication = app.charIDToTypeID('capp');
const classProperty = app.charIDToTypeID('Prpr');
const enumTarget = app.charIDToTypeID('Trgt');
const eventGet = app.charIDToTypeID('getd');
const eventSet = app.charIDToTypeID('setd');
const kcolorSettingsStr = app.stringIDToTypeID("colorSettings");
const kDither = app.charIDToTypeID('Dthr');
const keyTo = app.charIDToTypeID('T ');
const typeNULL = app.charIDToTypeID('null');
const typeOrdinal = app.charIDToTypeID('Ordn');
const kFloatWindowStr = app.stringIDToTypeID("floatWindow");
const typePurgeItem = app.charIDToTypeID('PrgI');
const enumClipboard = app.charIDToTypeID('Clpb');
const eventPurge = app.charIDToTypeID('Prge');
const keyExportLUT = app.charIDToTypeID( "lut " );
const keyFilePath = app.charIDToTypeID( 'fpth' );
const keyDescription = app.charIDToTypeID( 'dscr' );
const keyCopyright = app.charIDToTypeID( 'Cpyr' );
const keyDataPoints = app.charIDToTypeID( 'gPts' );
const keyWriteICC = app.charIDToTypeID( 'wICC' );
const keyWrite3DL = app.charIDToTypeID( 'w3DL' );
const keyWriteCUBE = app.charIDToTypeID( 'wCUB' );
const keyWriteCSP = app.charIDToTypeID( 'wCSP' );
const kScriptOptionsKey = "9AA9D7D6-C209-494A-CC01-4E7D926DA642"; // same as eventID above
const sGridMin = 7; // these must match the slider range defined in the dialog layout
const sGridMax = 256;
const sGridDefault = 32;
// our baseline UI configuration info
var gSaveFilePath = ""; // overwritten by document path
var gDescription = ""; // overwritten by document name
var gCopyright = ""; // "Adobe Systems Inc., All Rights Reserved";
var gGridPoints = sGridDefault;
var gDoSaveICCProfile = true;
var gDoSave3DL = true;
var gDoSaveCUBE = true;
var gDoSaveCSP = true;
gScriptResult = undefined;
// start doing the work...
main();
app.displayDialogs = appUIState; // restore original dialog state
gScriptResult; // must be the last thing - this is returned as the result of the script
function readOptionsFromDescriptor( d )
if (!d)
return;
if (d.hasKey(keyFilePath))
gSaveFilePath = d.getString( keyFilePath ); // will be overridden by UI
if (d.hasKey(keyDescription))
gDescription = d.getString( keyDescription ); // will be overridden always
if (d.hasKey(keyCopyright))
gCopyright = d.getString( keyCopyright );
if (d.hasKey(keyDataPoints))
var temp = d.getInteger( keyDataPoints );
if (temp >= sGridMin && temp <= sGridMax)
gGridPoints = temp;
if (d.hasKey(keyWriteICC))
gDoSaveICCProfile = d.getBoolean( keyWriteICC );
if (d.hasKey(keyWrite3DL))
gDoSave3DL = d.getBoolean( keyWrite3DL );
if (d.hasKey(keyWriteCUBE))
gDoSaveCUBE = d.getBoolean( keyWriteCUBE );
if (d.hasKey(keyWriteCSP))
gDoSaveCSP = d.getBoolean( keyWriteCSP );
function createDescriptorFromOptions()
var desc = new ActionDescriptor();
desc.putString( keyFilePath, gSaveFilePath ); // will be overridden by UI
desc.putString( keyDescription, gDescription ); // will always be overridden by document name
desc.putString( keyCopyright, gCopyright );
desc.putInteger( keyDataPoints, gGridPoints );
desc.putBoolean( keyWriteICC, gDoSaveICCProfile );
desc.putBoolean( keyWrite3DL, gDoSave3DL );
desc.putBoolean( keyWriteCUBE, gDoSaveCUBE );
desc.putBoolean( keyWriteCSP, gDoSaveCSP );
return desc;
function doExportUI()
// DEFERRED - it might be nice to be able to run without UI
// Right now we can't, but someone could modify the script if they so desire
const sDescription = localize("$$$/AdobeScript/Export3DLUT/Description=Description:");
const sCopyright = localize("$$$/AdobeScript/Export3DLUT/Copyright=Copyright:");
const sQuality = localize("$$$/AdobeScript/Export3DLUT/Quality=Quality");
const sGridPoints = localize("$$$/AdobeScript/Export3DLUT/GridPoints=Grid Points:");
const sFormatsToSave = localize("$$$/AdobeScript/Export3DLUT/Formats=Formats");
const sOpenButton = localize("$$$/JavaScripts/psx/OK=OK");
const sCancelButton = localize("$$$/JavaScripts/psx/Cancel=Cancel");
const strTextInvalidType = localize("$$$/JavaScripts/Export3DLUT/InvalidType=Invalid numeric value. Default value inserted.");
const strTextInvalidNum = localize("$$$/JavaScripts/Export3DLUT/InvalidNum=A number between 7 and 256 is required. Closest value inserted.");
const strNoExportsSelected = localize("$$$/JavaScripts/Export3DLUT/NoExportTypesSelected=No export types were selected.");
const strExportPrompt = localize("$$$/JavaScripts/Export3DLUT/ExportColorLookup=Export Color Lookup");
const strUntitledLUT = localize("$$$/JavaScripts/Export3DLUT/UntitledLUTFilename=untitled.lut");
const sSaveICC = localize("$$$/AdobeScript/Export3DLUT/ICCProfile=ICC Profile");
// these are not localized, since they refer to file format extensions
const sSave3DL = "3DL";
const sSaveCUBE = "CUBE";
const sSaveCSP = "CSP";
// strings similar to JPEG quality
const sPoor = localize("$$$/AdobeScript/Export3DLUT/Poor=Poor");
const sLow = localize("$$$/AdobeScript/Export3DLUT/Low=Low");
const sMedium = localize("$$$/AdobeScript/Export3DLUT/Medium=Medium");
const sHigh = localize("$$$/AdobeScript/Export3DLUT/High=High");
const sMaximum = localize("$$$/AdobeScript/Export3DLUT/Maximum=Maximum");
const ui = // dialog resource object
"dialog { \
orientation: 'row', \
gp: Group { \
orientation: 'column', alignment: 'fill', alignChildren: 'fill', \
description: Group { \
orientation: 'row', alignment: 'fill', alignChildren: 'fill', \
st: StaticText { text:'Description:' }, \
et: EditText { characters: 30, properties:{multiline:false}, text:'<your description here>' } \
copyright: Group { \
orientation: 'row', alignment: 'fill', alignChildren: 'fill', \
st: StaticText { text:'Copyright:' }, \
et: EditText { characters: 30, properties:{multiline:false}, text:'<your copyright here>' } \
qual: Panel { \
text: 'Quality', \
orientation: 'column', alignment: 'fill', alignChildren: 'fill', \
g2: Group { \
st: StaticText { text:'Grid Points:' }, \
et: EditText { characters:4, justify:'right' } \
drp: DropDownList {alignment:'right'} \
sl: Slider { minvalue:7, maxvalue:256, value: 32 }, \
options: Panel { \
text: 'Formats', \
orientation: 'column', alignment: 'fill', alignChildren: 'left', \
ck3DL: Checkbox { text:'3DL', value:true }, \
ckCUBE: Checkbox { text:'CUBE', value:true } \
ckCSP: Checkbox { text:'CSP', value:true } \
ckICC: Checkbox { text:'ICC Profile', value:true } \
gButtons: Group { \
orientation: 'column', alignment: 'top', alignChildren: 'fill', \
okBtn: Button { text:'Ok', properties:{name:'ok'} }, \
cancelBtn: Button { text:'Cancel', properties:{name:'cancel'} } \
const titleStr = localize("$$$/AdobeScript/Export3DLUT/DialogTitle/ExportColorLookupTables=Export Color Lookup Tables");
var win = new Window (ui, titleStr ); // new window object with UI resource
// THEORETICALLY match our dialog background color to the host application
win.graphics.backgroundColor = win.graphics.newBrush (win.graphics.BrushType.THEME_COLOR, "appDialogBackground");
// poor, low, medium, high, max
var MenuQualityToGridPoints = [ 8, 16, 32, 64, 256 ];
function GridPointsToQualityMenuIndex( num )
var menu = MenuQualityToGridPoints;
var menuItems = menu.length;
if (num <= menu[0])
return 0;
if (num >= menu[ menuItems-1 ])
return (menuItems-1);
for (var i = 0; i < (menuItems-1); ++i)
if ((num >= menu[i]) && (num < menu[i+1]))
return i;
return 0; // just in case of a logic failure
// insert our localized strings
var drop = win.gp.qual.g2.drp; // for easier typing
drop.add('item', sPoor ); // 0
drop.add('item', sLow ); // 1
drop.add('item', sMedium ); // 2
drop.add('item', sHigh ); // 3
drop.add('item', sMaximum ); // 4
drop.selection = drop.items[2]; // Medium
win.gp.description.st.text = sDescription;
win.gp.copyright.st.text = sCopyright;
win.gp.qual.text = sQuality;
win.gp.qual.g2.st.text = sGridPoints;
win.gp.options.text = sFormatsToSave;
win.gp.options.ck3DL.text = sSave3DL;
win.gp.options.ckCUBE.text = sSaveCUBE;
win.gp.options.ckCSP.text = sSaveCSP;
win.gp.options.ckICC.text = sSaveICC;
win.gButtons.okBtn.text = sOpenButton;
win.gButtons.cancelBtn.text = sCancelButton;
// set starting parameters
win.gp.description.et.text = gDescription;
win.gp.copyright.et.text = gCopyright;
win.gp.options.ckICC.value = gDoSaveICCProfile;
win.gp.options.ck3DL.value = gDoSave3DL;
win.gp.options.ckCUBE.value = gDoSaveCUBE;
win.gp.options.ckCSP.value = gDoSaveCSP;
// global flag/hack to keep the UI pretty
var gGlobalPreventChanges = false;
with (win.gp.qual)
sl.value = gGridPoints;
g2.et.text = gGridPoints;
drop.selection = drop.items[ GridPointsToQualityMenuIndex(gGridPoints) ];
// global flag is ugly, but recursive change calls are uglier
g2.et.onChange = function () { if (gGlobalPreventChanges) { return; }
gGlobalPreventChanges = true;
var val = Number(this.text);
this.parent.parent.sl.value = val;
drop.selection = drop.items[ GridPointsToQualityMenuIndex(val) ];
gGlobalPreventChanges = false; };
sl.onChanging = function () { if (gGlobalPreventChanges) { return; }
gGlobalPreventChanges = true;
var val = Math.floor(this.value);
this.parent.g2.et.text = val;
drop.selection = drop.items[ GridPointsToQualityMenuIndex(val) ];
gGlobalPreventChanges = false; };
// DEFERRED - we should also set the value if the same menu item is selected again (reset)
// but the JSX toolkit doesn't support that
drop.onChange = function()
if (gGlobalPreventChanges) { return; }
gGlobalPreventChanges = true;
var theSelection = this.selection.text;
if (theSelection != null) { // only change if selection made
var theSelectionIndex = this.selection.index;
var newGridPoints = MenuQualityToGridPoints[ theSelectionIndex ];
win.gp.qual.g2.et.text = newGridPoints;
win.gp.qual.sl.value = newGridPoints;
gGlobalPreventChanges = false;
win.onShow = function ()
this.qual.sl.size.width = 128;
this.layout.layout(true);
win.gButtons.cancelBtn.onClick = function () { this.window.close(2); };
// validate inputs when the user hits OK
var gInAlert = false;
win.gButtons.okBtn.onClick = function ()
if (gInAlert == true)
gInAlert = false;
return;
var gridText = win.gp.qual.g2.et.text;
var w = Number(gridText);
var inputErr = false;
if ( isNaN( w ) )
if ( DialogModes.NO != app.playbackDisplayDialogs )
gInAlert = true;
alert( strTextInvalidType );
gInAlert = false;
win.gp.qual.g2.et.text = sGridDefault;
win.gp.qual.sl.value = sGridDefault;
drop.selection = drop.items[ GridPointsToQualityMenuIndex(sGridDefault) ];
return false;
if ( (w < sGridMin) || (w > sGridMax) )
if ( DialogModes.NO != app.playbackDisplayDialogs )
gInAlert = true;
alert( strTextInvalidNum );
gInAlert = false;
if ( w < sGridMin)
inputErr = true;
drop.selection = drop.items[ GridPointsToQualityMenuIndex(sGridMin) ];
win.gp.qual.g2.et.text = sGridMin;
win.gp.qual.sl.value = sGridMin;
return false;
if ( w > sGridMax)
inputErr = true;
drop.selection = drop.items[ GridPointsToQualityMenuIndex(sGridMax) ];
win.gp.qual.g2.et.text = sGridMax;
win.gp.qual.sl.value = sGridMax;
return false;
if (inputErr == false)
win.close(true);
return;
win.center(); // move to center the dialog
var ret = win.show(); // dialog display
if (2 == ret)
return false; // user cancelled
// user hit OK, copy values from dialog
gDescription = win.gp.description.et.text;
gCopyright = win.gp.copyright.et.text;
gGridPoints = win.gp.qual.sl.value;
gDoSave3DL = win.gp.options.ck3DL.value;
gDoSaveCUBE = win.gp.options.ckCUBE.value;
gDoSaveCSP = win.gp.options.ckCSP.value;
gDoSaveICCProfile = win.gp.options.ckICC.value;
// if no files are going to be saved, then we have zero work to do
if ((false == gDoSaveICCProfile) && (false == gDoSave3DL) &&
(false == gDoSaveCUBE) && (false == gDoSaveCSP) )
// tell the user that no formats were selected
alert( strNoExportsSelected );
gScriptResult = 'cancel'; // quit, returning 'cancel' (dont localize) makes the actions palette not record our script
return false;
// prompt user for directory and output base filename
// default to directory and filename of current document
var currentDocumentPath
try
// if the file has no path (not saved), then this throws
var documentPath = app.activeDocument.fullName.fsName; // Get the OS friendly file path and name
documentPath = documentPath.replace(/\....$/,''); // remove extension, if there is one
documentPath = documentPath + ".lut"; // add dummy extension
currentDocumentPath = File ( documentPath );
catch (e)
// if there was no document path, default to user's home directory
var defaultName = "~/" + strUntitledLUT;
currentDocumentPath = File(defaultName);
var fname = currentDocumentPath.saveDlg(strExportPrompt);
if (fname == null)
return false;
gSaveFilePath = fname.fsName;
return true;
function doExportLUTs( path )
const keyUsing = charIDToTypeID( 'Usng' );
const eventExport = charIDToTypeID( 'Expr' );
var desc = new ActionDescriptor();
var desc2 = new ActionDescriptor();
desc2.putString( keyFilePath, path );
desc2.putString( keyDescription, gDescription );
desc2.putInteger( keyDataPoints, gGridPoints );
// assemble the full copyright string, if needed
var copyrightAssembled = gCopyright;
if (gCopyright != "")
var theDate = new Date();
// the year is from 1900 ????
var theYear = (theDate.getYear() + 1900).toString();
// Localization team says to just use the year
var dateString = theYear;
copyrightAssembled = localize("$$$/JavaScripts/Export3DLUT/Copyright=(C) Copyright ") + dateString + " " + gCopyright;
desc2.putString( keyCopyright, copyrightAssembled );
// select output format
desc2.putBoolean( keyWriteICC, gDoSaveICCProfile );
desc2.putBoolean( keyWrite3DL, gDoSave3DL );
desc2.putBoolean( keyWriteCUBE, gDoSaveCUBE );
desc2.putBoolean( keyWriteCSP, gDoSaveCSP );
desc.putObject( keyUsing, keyExportLUT, desc2 );
try
var resultDesc = executeAction( eventExport, desc, DialogModes.NO );
catch (e)
if ( e.number != 8007 ) { // don't report error on user cancel
var str = localize("$$$/JavaScripts/Export3DLUT/ExportLUTFailed=Unable to run the Export Color Lookup plugin because ");
alert( str + e + " : " + e.line );
gScriptResult = 'cancel'; // quit, returning 'cancel' (dont localize) makes the actions palette not record our script
return false;
return true;
function doRenderGrid( points )
// call the grid rendering plugin to do the work
const keyRenderGrid = charIDToTypeID( "3grd" );
const keyDataPoints2 = charIDToTypeID( 'grdP' );
var args = new ActionDescriptor();
args.putInteger( keyDataPoints2, points);
try
var result = executeAction( keyRenderGrid, args, DialogModes.NO );
catch (e)
if ( e.number != 8007 ) { // don't report error on user cancel
var str = localize("$$$/JavaScripts/Export3DLUT/RenderGridFailed=Unable to render color grid because ");
alert( str + e + " : " + e.line );
gScriptResult = 'cancel'; // quit, returning 'cancel' (dont localize) makes the actions palette not record our script
return false;
return true;
function resizeDocumentInPixels( width, height )
var myDocument = app.activeDocument;
var originalRulerUnits = app.preferences.rulerUnits;
app.preferences.rulerUnits = Units.PIXELS;
myDocument.resizeCanvas( width, height, AnchorPosition.MIDDLECENTER)
app.preferences.rulerUnits = originalRulerUnits;
function GetColorSettings()
var desc1 = new ActionDescriptor();
var ref1 = new ActionReference();
ref1.putProperty( classProperty, kcolorSettingsStr );
ref1.putEnumerated( classApplication, typeOrdinal, enumTarget );
desc1.putReference( typeNULL, ref1 );
var result = executeAction( eventGet, desc1, DialogModes.NO );
var desc2 = result.getObjectValue( kcolorSettingsStr );
return desc2;
function GetColorConversionDitherState()
var settings = GetColorSettings();
if (settings.hasKey(kDither))
return settings.getBoolean( kDither );
else
return null;
function ConvertTo16Bit()
const eventConvertMode = charIDToTypeID( 'CnvM' );
const keyDepth = charIDToTypeID( 'Dpth' );
var modeDesc16Bit = new ActionDescriptor();
modeDesc16Bit.putInteger( keyDepth, 16 );
var result = executeAction( eventConvertMode, modeDesc16Bit, DialogModes.NO );
// state = true or false
function SetColorConversionDither( state )
var desc1 = new ActionDescriptor();
var ref1 = new ActionReference();
ref1.putProperty( classProperty, kcolorSettingsStr );
ref1.putEnumerated( classApplication, typeOrdinal, enumTarget );
desc1.putReference( typeNULL, ref1 );
var desc2 = new ActionDescriptor();
desc2.putBoolean( kDither, state );
desc1.putObject( keyTo, kcolorSettingsStr, desc2 );
executeAction( eventSet, desc1, DialogModes.NO );
function PurgeClipboard()
var desc1 = new ActionDescriptor();
desc1.putEnumerated( typeNULL, typePurgeItem, enumClipboard );
var result = executeAction( eventPurge, desc1, DialogModes.NO );
// This helps us avoid resizing existing document views in tabbed document mode.
// This is new functionality, and will not work in older Photoshop versions.
function MoveDocumentToNewWindow()
var desc1 = new ActionDescriptor();
var result = executeAction( kFloatWindowStr, desc1, DialogModes.NO );
function main()
try
var tempDoc = null;
var tempDoc2 = null;
// do basic troubleshooting first
// make sure there is a document
if (!app.activeDocument)
gScriptResult = 'cancel'; // quit, returning 'cancel' (dont localize) makes the actions palette not record our script
return;
// check the document mode
var mode = app.activeDocument.mode;
if (mode != DocumentMode.RGB
&& mode != DocumentMode.LAB
&& mode != DocumentMode.CMYK)
var str = localize("$$$/JavaScripts/Export3DLUT/UnsupportedColorMode=Could not export Color Lookup Tables because only RGB, LAB, and CMYK color modes are supported.");
alert(str);
gScriptResult = 'cancel'; // quit, returning 'cancel' (dont localize) makes the actions palette not record our script
return;
// check the document depth, for safety
var depth = app.activeDocument.bitsPerChannel; // an object, not a number - why? I have no idea...
var bitsPerChannel = 1;
if (depth == BitsPerChannelType.EIGHT)
bitsPerChannel = 8;
else if (depth == BitsPerChannelType.SIXTEEN)
bitsPerChannel = 16;
else if (depth == BitsPerChannelType.THIRTYTWO)
bitsPerChannel = 32;
else
var str = localize("$$$/JavaScripts/Export3DLUT/UnsupportedImageDepth=Could not export Color Lookup Tables because only 8, 16, and 32 bits/channel are supported.");
alert(str);
gScriptResult = 'cancel'; // quit, returning 'cancel' (dont localize) makes the actions palette not record our script
return;
// Check layer types: background plus adjustments only
// For now, don't check each layer - a multiply solid layer still works as a color adjustment, as does selective blending
// Users will get odd results from other layer types (layer masks, pixel layers, etc.)
try
app.activeDocument.backgroundLayer.visible = true;
catch (e)
if (activeDocument.layers.length == 1)
alert( localize("$$$/JavaScripts/Export3DLUT/NoAdjustmentLayers=Could not export Color Lookup Tables because this document has no adjustment layers.") );
else
alert( localize("$$$/JavaScripts/Export3DLUT/NoBackground=Could not export Color Lookup Tables because this document has no background.") );
gScriptResult = 'cancel'; // quit, returning 'cancel' (dont localize) makes the actions palette not record our script
return;
// look for last used params via Photoshop registry, getCustomOptions will throw if none exist
try
var desc = app.getCustomOptions(kScriptOptionsKey);
readOptionsFromDescriptor( desc );
catch(e)
// it's ok if we don't have any existing options, continue with defaults
// set some values from the document
gDescription = app.activeDocument.name;
// ask the user for options, bail if they cancel at any point
if ( doExportUI() == false)
gScriptResult = 'cancel'; // quit, returning 'cancel' (dont localize) makes the actions palette not record our script
return;
// we're good to go, so save our parameters for next time
app.putCustomOptions(kScriptOptionsKey, createDescriptorFromOptions() );
// remove file extension from filePath, if there is one
gSaveFilePath = gSaveFilePath.replace(/\....$/,'');
// calculate the size of image we need
var width = gGridPoints * gGridPoints;
var height = gGridPoints;
if (mode == DocumentMode.CMYK)
height = gGridPoints*gGridPoints;
// duplicate the user document so we don't mess it up in any way
tempDoc = app.activeDocument.duplicate("temporary");
// make the temporary document active
app.activeDocument.name = tempDoc;
// to avoid resizing existing document views in tabbed mode
MoveDocumentToNewWindow();
// convert 8 bit documents to 16 bit/channel for improved quality of merged adjustments
if (bitsPerChannel == 8)
ConvertTo16Bit();
depth = BitsPerChannelType.SIXTEEN;
// resize the temporary canvas to our target size
resizeDocumentInPixels( width, height )
// select background layer
tempDoc.activeLayer = tempDoc.backgroundLayer;
// render lookup base grid
var worked = doRenderGrid( gGridPoints );
if (worked != true)
tempDoc.close( SaveOptions.DONOTSAVECHANGES );
return; // error should have already been shown, and there is not much we can do
// do not flatten here -- the export automatically gets flattened data
// and we may need layers for LAB->RGB conversion below
// export the chosen formats
worked = doExportLUTs( gSaveFilePath );
if (worked != true)
tempDoc.close( SaveOptions.DONOTSAVECHANGES );
return; // error should have already been shown, and there is not much we can do
// for LAB documents to export 3DLUT (which are inherently RGB), we have to do additional work
// As a bonus, this works for CMYK as well!
if ( mode != DocumentMode.RGB )
var filePath = gSaveFilePath + "RGB";
var oldDitherState = GetColorConversionDitherState();
try
SetColorConversionDither(false);
const targetProfileName = "sRGB IEC61966-2.1";
// new document temp2 in sRGB, matching depth of original
var originalRulerUnits = app.preferences.rulerUnits;
app.preferences.rulerUnits = Units.PIXELS;
tempDoc2 = app.documents.add( width, gGridPoints, 72, "temp2",
NewDocumentMode.RGB, DocumentFill.WHITE,
1.0, depth, targetProfileName );
app.preferences.rulerUnits = originalRulerUnits;
// make the new doc active
app.activeDocument.name = tempDoc2;
// to avoid resizing existing document views in tabbed mode
MoveDocumentToNewWindow();
// insert grid
worked = doRenderGrid( gGridPoints );
if (worked == true)
tempDoc2.selection.selectAll();
tempDoc2.activeLayer = tempDoc2.backgroundLayer;
tempDoc2.selection.copy();
tempDoc2.close( SaveOptions.DONOTSAVECHANGES );
tempDoc2 = null;
// make sure temp1 is active
app.activeDocument.name = tempDoc;
// resize for RGB grid
resizeDocumentInPixels( width, gGridPoints );
tempDoc.selection.selectAll();
tempDoc.paste(true);
PurgeClipboard(); // so we don't leave an odd, large item on the clipboard
tempDoc.selection.deselect();
tempDoc.flatten();
// convert temp1 to sRGB
tempDoc.convertProfile( targetProfileName, Intent.RELATIVECOLORIMETRIC, true, false );
// export the chosen formats
worked = doExportLUTs( filePath );
// at this point we still have to clean up, even if the call failed, so fall through
else
tempDoc2.close( SaveOptions.DONOTSAVECHANGES );
catch (e)
if ( e.number != 8007 ) { // don't report error on user cancel
var str = localize("$$$/JavaScripts/Export3DLUT/UnableToConvertRGB=Unable to convert image to RGB because ");
alert( str + e + " : " + e.line );
if (tempDoc2 != null) tempDoc2.close( SaveOptions.DONOTSAVECHANGES );
gScriptResult = 'cancel'; // quit, returning 'cancel' (dont localize) makes the actions palette not record our script
// always reset the dither state
SetColorConversionDither( oldDitherState );
PurgeClipboard(); // so we don't leave an odd, large item on the clipboard
} // if not RGB
// always close temp document without saving
tempDoc.close( SaveOptions.DONOTSAVECHANGES );
catch (e)
if ( e.number != 8007 ) { // don't report error on user cancel
var str = localize("$$$/JavaScripts/Export3DLUT/UnableToExport=Unable to export LUT because ");
alert( str + e + " : " + e.line );
// always close temp document without saving
if (tempDoc != null) tempDoc.close( SaveOptions.DONOTSAVECHANGES );
gScriptResult = 'cancel'; // quit, returning 'cancel' (dont localize) makes the actions palette not record our scriptHi blabla12345,
(untested and without warranty)
replace this line:
const sSaveCUBE = "CUBE";
with this:
const sSaveCUBE = "cube";
Have fun -
I have Photoshop cs6 Ext on an ASUS laptop. How can I increase the font size of the contents of the FILTER Panel situated on bottom left of screen. The font size is extreamly small and almost unreadable. I have changed display parameters, not the resolution, to no avail.
David.Paragraph breaks are good for readability. ;-)
Have you noticed any difference between your MacBook and others at the Apple store? Wondering whether this is a configurable setting at the system level, i.e., DPI.
You can default Firefox to a larger zoom level to avoid having to zoom every page. You'll still be able to adjust the size for individual sites as needed. It sounds as though you are aware of these add-ons:
* Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
* NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/
There are some discussions about changing coming in Firefox 22 (I think) to address higher density displays like the Retina display. So perhaps there will be a built-in setting to address this in the future. -
How to change NLS parameters in Oracle XE?
Hi
I have to change some parameters in database using Oracle XE server but I don't know how to do it. I must change these parameters:
NLS_CHARACTERSET
NLS_NCHAR_CHARACTERSET
How to do it?
Thanks for help.Thanks, but I'm newbie and I have to ask you about more details :)
What do you mean when you saying: init file (or spfile)? Where can I find these files?
Registry entry (NLS_LANG) is correct, but when I'm using web based administration application I can see more NLS settings. Unfortunately I can't change them :(
Using XE version I can't (I'm not sure about that) create another instance, there is only one instance created by installer. Is it possible to change NLS settings in this case? -
How to change NLS parameters in SQL Developer?
I think that Oracle National Language Support is quite confusing. How can I easily change NLS parameters for SQL Developer (for all connections) to match exactly those that my database is using?
Hello,
SELECT 5/8 x FROM dual;F9 -> 0.625
Change decimal separator in preferences
F9 -> 0,625
It is different when I execute a query/script with F5, then I always get 0.625
SELECT * FROM nls_session_parameters
WHERE parameter = 'NLS_NUMERIC_CHARACTERS';
PARAMETER VALUE
NLS_NUMERIC_CHARACTERS .,
SELECT 5/8 x FROM dual;
X
0.625
Change settings
SELECT * FROM nls_session_parameters
WHERE parameter = 'NLS_NUMERIC_CHARACTERS';
PARAMETER VALUE
NLS_NUMERIC_CHARACTERS ,.
SELECT 5/8 x FROM dual;
X
0.625Even changing the settings with ALTER SESSION makes no difference
ALTER SESSION SET NLS_NUMERIC_CHARACTERS = ',.';
SELECT * FROM nls_session_parameters
WHERE parameter = 'NLS_NUMERIC_CHARACTERS';
PARAMETER VALUE
NLS_NUMERIC_CHARACTERS ,.
SELECT 5/8 x FROM dual;
X
0.625
ALTER SESSION SET NLS_NUMERIC_CHARACTERS = '.,';
SELECT * FROM nls_session_parameters
WHERE parameter = 'NLS_NUMERIC_CHARACTERS';
PARAMETER VALUE
NLS_NUMERIC_CHARACTERS .,
SELECT 5/8 x FROM dual;
X
0.625It seems the script output does not care about my settings :-(
Regards
Marcus -
Change step parameters in teststand edit mode
Hello,
I would like to know if it's possible to change the parameters in a step in edit mode of teststand.
I have attached a sequence with one step, in this step I want to select DMMx.
After the selection I want to teststand to fill in the parameters in the step so I can the choose which type of measurement and such.
If this is not possible how could I make something like this possible.
As you may see this will be a HAL, and the only option I can see which would do this is bij a string array but I don't want to type in the commands in string.
Attachments:
ring.vi 14 KB
Sequence File 1.seq 5 KBHi Darkxceed
My recommendation for doing a HAL i TestStand would be to use an object oriented approach.
Create a class hirachy of your instruments like the following inside of LabVIEW:
Then use Dynamic Dispatch to make TestStand choose the instrument of interest. There is an example of using Dynamic Dispatching in TestStand here:
TestStand Using LabVIEW OOP Truck Example
https://decibel.ni.com/content/docs/DOC-24098
This solution will offcourse require you to read up on creating applications using object oriented programming in LabVIEW. We at NI have a course that walks you through both the theory and practical implementation. It is called Object Oriented Programming in LabVIEW. If you have a SSP agreement, you should be able to find it as Self Paced Online Training as a part of your contract.
There is also a good introduction to OOP in LabVIEW and HAL here:
https://decibel.ni.com/content/docs/DOC-32506
(There is a video embedded in the PDF)
Best Regards
Anders Rohde | CLD | Platinum Applications Engineer | National Instruments Denmark -
How to Change Database parameters as suggested by EWA report
Dear Experts,
As per EWA report , i have been asked to change several DB parameters as per note 0124361 . Should i go aghead and change the parameters ? What is the procedure of chaging those parameters? what is the real process that should be followed ? Please revert.Points guaranteed.
Regards,
SomyaRun "brspace -f dbparam"
Select option 1 "Change parameter value" and change the parameters. After changing select option 3 to create a new init.ora.
If you change parameters that have the scope "spfile" oracle requires a restart. If you only change parameters with scope "both" you don't need a restart of oracle. This changes are affected on the fly.
To restart oracle:
connect / as sysdba
SQL> shutdown
SQL> startup
You don't need to stop SAP if you only change oracle parameters. SAP reconnects automatically if the database is up. -
Recently,I start to pay attention to the function 'Kinect Fusion Explore Multi Static Cameras sample' In SDK 1.8.
Here ,I use two kinects ,but I have no idea how to change the parameters(x,y,z &dictance) in the red rectangle to make it work successfully.
By the way,I hava calibrated the two kinects' camera and get the related perameters.sorry,I can't add the image to my question...~~~~(>_<)~~~~
-
Change J2ee parameters on WAS 640-J2EE add in -config tool
I have started the config tool to change java paramters per SAP.
However I notice that config tool shows dispatcher and server and below that an instance (xxx-318782 for example) which has a dispatcher and server also.....
Why is this and which do I modify to change java parameters?
Alos where can I find the setting, it is somewhere under services directory?
Thanks
John RHi,
the dispatcher and server nodes that appear right below the root of the tree in the Config tool contain global properties (services and managers' properties). This means those properties are used globally instead of the default properties. For more info, refer to this page: http://help.sap.com/saphelp_nw04/helpdata/en/36/e71bbee9ab4677a744d4c4484b0bf4/frameset.htm
Next, the dispatcher and server you find under the instance xxx, are actually the elements that you've installed for your system. Changing a property on any of them applies locally, i.e. to the corresponding node (server or dispatcher).
To set java parameters, you need to click on the dispatcher or server (depending on which element's java props you need to modify). On the right side, under General tab you'll see the Java parameters field. Here is the relevant documentation: http://help.sap.com/saphelp_nw04/helpdata/en/39/7796e0a7be604ab63c2924045710a8/frameset.htm
Hope that helps! -
Hi,
I have a servlet and would like to change the request parameters before forwarding that request to another servlet.
But how can I change the parameters? I thought it would work with request.setAttributes, but the parameters are not being changed. How can I change the parameters then???Hi Joberc
1. Did you read javax.servlet.Filter API of Servlet 2.3.
It allows us to do some filtering in between and forward to another servlet
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/Filter.html
You can also search for code sample and see how it works.
2. As for your specific question and if possible, can we view your code to see
-- Paul. -
Is it possible to change the parameters order?
Or are they locked and only defined by the connector pane?Hi Darkxceed
My recommendation for doing a HAL i TestStand would be to use an object oriented approach.
Create a class hirachy of your instruments like the following inside of LabVIEW:
Then use Dynamic Dispatch to make TestStand choose the instrument of interest. There is an example of using Dynamic Dispatching in TestStand here:
TestStand Using LabVIEW OOP Truck Example
https://decibel.ni.com/content/docs/DOC-24098
This solution will offcourse require you to read up on creating applications using object oriented programming in LabVIEW. We at NI have a course that walks you through both the theory and practical implementation. It is called Object Oriented Programming in LabVIEW. If you have a SSP agreement, you should be able to find it as Self Paced Online Training as a part of your contract.
There is also a good introduction to OOP in LabVIEW and HAL here:
https://decibel.ni.com/content/docs/DOC-32506
(There is a video embedded in the PDF)
Best Regards
Anders Rohde | CLD | Platinum Applications Engineer | National Instruments Denmark -
ThSysInfo - How to change the parameters???
Hi all,
is it possible to change the parameters which are available with this system call...
We have changed the hostname in our system... but with this system call we always get the old hostname... Do we have to refresh a buffer or is it not possible to change these values...
CALL 'ThSysInfo'
ID 'OPCODE' FIELD OPCODE_MSGSERVER
ID 'MSOPCODE' FIELD MS_GET_HWID
ID 'HW_ID' FIELD HWID
ID 'ERRMSG' FIELD ERRMSG.
Any ideas?
regardspllz help me what is the solution for these
ThSysInfo - How to change the parameters???
CALL 'ThSysInfo'
ID 'OPCODE' FIELD OPCODE_GET_VIRT_HOSTDATA
ID 'PROTOCOL' FIELD PROTOCOL
ID 'VIRT_IDX' FIELD VIRT_IDX
ID 'HOST' FIELD HOSTNAME
ID 'PORT' FIELD PORT.
i want to change the hostname as by default through system it is taking some hostname but i want to change that hostname can u plzz guide me how to change that hostname as i am using these FM in my webdynpro method
pllzz hel me as soon as -
Can we change basic infocube to Transactional cube ?
Hi,
Can we change basic infocube to Transactional cube ?
If so, how to do it?
thanks
murali.Hi dear and welcome on board!
You can do it, sure!
Converting Basic Cube to transactional
Hope it helps!
Bye,
Roberto
...and please don't forget to reward the answers...it's THE way to say thanks here... -
Hi All,
We are planning to implement the Password Policy for SAP users in our organization...
we want to change next parameters
Login/no_automatic_user_sapstar
Login/fails_to_session_end
Login/password_expiration_time
Login/min_password digit
Login/min_password_letters
Login/min_password_special
Login/min_password_diff
so I have some questions,
first of all this change will be applied in our productive system SAP CRM ABAP 7.0 with MSSQL
what will be the impact when this change will be applied?, I mean the policies is inmediatly or for example it will be reflect until one user ask to be reset or until the expiration time defined will be get,
what will happen with comunication users?, I have seen some documentation when mentiion that just communication users of certain type will be affected, I can't understand it,, someone has experience doing that?
so I'm worried about communication users because we have some importants users that communicate BPM(JAVA SAP) or ESB (JAVA IBM),
thank you..
AlfredAlfredo,
To expand a bit on the answer to your first question, about when it will take effect, the answer is it depends. It's true that the parameters don't take effect for the system until a restart, but as for when, after that, they impact the users depends on several factors. Users will not be required to change their password until the expiration time has passed, but chances are that many of your users, if they've had accounts longer than the expiration time, will already be past that expiration time. In that case, they will be asked to change their password with their next logons following the restart. The exceptions will be people who have recently changed their password already or who have new user accounts.
As for the other parameters mandating password complexity, by default they will be applied the next time the user changes their password (which, for many, will be right away, as just described), but if the current password is not yet expired, it will be allowed to stand even if it doesn't meet the complexity rules until it does expire. You can change this, however, with another parameter: login/password_compliance_current_policy. By default this parameter is inactive, but if you set it to 1, then users with passwords that don't meet the current complexity requirement will be forced to change right away, even if they are not expired.
With regard to your second question, about the impact of the new policy on your Communication users, here is the basic layout of impacts:
User Type
GUI Logon
Password Rules
Dialog
Yes
Yes
System
No
No
Communications
No
Yes*
Service
Yes
No
So yes, Communications users are subject to the password rules, but as Sunny was saying, generally the rules only impact interactive logons, and Communications users don't logon interactively (GUI Logon). Still, if you want to be sure, you can change their type to System, and they still will not be able to logon interactively, and they will not be subject to password expiration. Either way, they also will not be counted during license measurement.
Best regards,
Matt
Maybe you are looking for
-
[solved] Back In Time restoration process
Hello, I have a basic question related to Back In Time backup program and the procedure of the restoration process. As far as I understood, Back In Time allows me to create a one-click snapshot of my entire root system (I only need / and not /home) w
-
Mountain Lion Email doesn't work even with 10.8.1 update!
My mail application completely failed shortly after the upgrade to Mountain Lion. None of the user advice has repaired it from these forums, so I have now resigned myself to using my ipad and iphone to conduct all my business emails. I was hopeful th
-
I'm not getting video on race buddy on nascar.com
-
I know I can get a 3rd party hit counter, but I am curious if I can see how many hits my site has received without visiting the site itself? In the old, old .mac Homepage you could see how many hits yoru site received when you logged into your .mac a
-
Error on Transporting Process chain
Hallo, Can you please help me with the following error? I am trying to transport a process chain into productive system and I receve the error below: Start of the after-import method RS_RSPC_AFTER_IMPORT for object type(s) RSPC (Activation Mode)