trace of a pixel of output?
I presume the answer is no, but is it possible that you can get instructions for tracing output?
I really struggle with math, and this is way beyond any math I used for my script as3 so far. Is there anywhere in the environment, you can get a trace statement of what number is the output?
If not, is there a way I can send this request to include in future releases?
You can get your hands on the final result in ActionScript, but that doesn't help you debug the intermediate results. We had some success writing filters in the sections and by testing each section before adding the next bit, or putting in tests a value lies within a given range and of setting the output to the green if it ratifies and red if it fails.
I publish a filter that displays a number to the screen, but it won't work with PB in Flash:
https://blogs.Adobe.com/pixel-Bender/2011/04/16/displaying-numbers-in-a-kernel/
Bottom line debugs PB filters is extremely delicate.
Tags: Pixel Bender
Similar Questions
-
I have a selection of ants walk on my document. I need to move the selection (not pixels) with output by using the cursor keys.
Is it possible to move an existing selection in the document by using the mouse?
Yes, by selecting one of the selection tools and clicking inside the selection, and then drag to the new location.
-
Module output print size question
Since the upgrade to CC, my output in the print module size does not work like it used to. I have a custom file size that is configured to print to jpg (for blogs) and am able to points. I put it to 800 x 600 pts, 300 dpi. When it prints the jpg, the actual size, it sends it is 3333 x 2708 (or various other huge files). It's the same way I always have, but now it seems that it is not change the size of the image file full original size at all. Any suggestions?
Points are a measure of the physical size, unusual to use instead of inches or in centimeters, but perfectly valid.
800 points is 800/72 = 11.111 "@ 300 DPI = 3333 pixel"
600 points is 600/72 = 8.333 "@ 300 DPI = 2500 pixels"
The foregoing is what to expect, the output specification that you mention. It seems great for blogging purposes.
So, I wonder if your numbers 800 x 600 are supposed to also go out as the dimensions of the pixels ?
If for your PPI, affecting 72 instead of 300 , will map each point (physical size) on a pixel (in output file), since 1 pt = 1/72 inch (per current convention).
If you get an image of 800 x 600 pixels for the blog.
800 points / 72 = 11,111 "@ 72 dpi = 800 pixels"
or to say the opposite, 72 points is 1 inch and 72 dpi, an inch produced 72 pixels.
-
Charger changes the pixel value after loading as bitmap
Hi all
My goal is to load two images and compare its color pixel-by-pixel information. For this I used "flash.display.Loader' class to load the images, and once the load finished I catalogued the content loaded bitmap object (loaderObj.content as Bitmap). Finally, I'll get the bitmapdata of the bitmap of the two images and compare the pixels.
Now the problem is the color of the original image information and the loaded bitmap is slightly different. For example, the color value of the pixels of the image attached image1.jpg is 0xDDDDDD for full 1366 x 768. And for the image even when it is loaded as bitmap color value of pixels are different from the original value (for a few pixels only, not all pixels are different).
I gave you the source code and sample images.
Please can someone help me how to solve this problem?
<? XML version = "1.0" encoding = "utf-8"? >
" < = xmlns:fx s:WindowedApplication ' http://ns.Adobe.com/MXML/2009 "
xmlns:s = "library://ns.adobe.com/flex/spark".
xmlns:MX = "library://ns.adobe.com/flex/mx".
width = "1376" height = "800."
ShowStatusBar is kept = "false" >
< fx:Declarations >
<! - Place non-visual elements (e.g., services, items of value) here - >
< / fx:Declarations >
< fx:Script >
<! [CDATA]
private function loadBtn_ClickHandler (): void {}
var file:File = new queue (File.desktopDirectory.nativePath);
file.addEventListener (Event.SELECT, onFileSelectionHandler);
file.browseForOpen ('open image', [new FileFilter ("Images", "*.gif, *.jpg; *.JPEG; *.png")]);
}
private void onFileSelectionHandler(ev:Event):void {}
var loadedFilePath:String = (ev.target as a file) .nativePath;
loadImageAsBitmap (loadedFilePath);
}
/ * Load the bitmap image using the loader * /.
private void loadImageAsBitmap(url:String):void {}
var loader: Loader = new Loader();
load the content as a bitmap
loader.contentLoaderInfo.addEventListener (Event.COMPLETE, onContentLoadComplete);
loader.contentLoaderInfo.addEventListener (IOErrorEvent.IO_ERROR, onContentLoadFail);
Loader.Load (new URLRequest (url));
}
private void onContentLoadComplete(ev:Event):void {}
var loaderInfo:LoaderInfo = ev.target as LoaderInfo;
var bitmap: Bitmap = loaderInfo.content as Bitmap;
printPixelValue (bitmap.bitmapData);
container_ID. AddChild (bitmap);
}
private void onContentLoadFail(ioe:IOErrorEvent):void {}
trace ("Image Load Failed");
}
private void printPixelValue(bmData:BitmapData):void {}
var initPixelValue:Number = - 1;
for (var countI:int = 0; countI < bmData.height; countI ++) {}
var countI:int = 1;
for (var countJ:int = 0; countJ < bmData.width; countJ ++) {}
var pixelValue:Number = bmData.getPixel32 (countJ, countI);
If (pixelValue! = initPixelValue) {}
initPixelValue = pixelValue;
Print pixel value for a single line
trace ("value of Pixel to" + countI + "x" + countJ + "is:" + pixelValue);
}
}
trace ("value of Pixel to" + countI + "x" + countJ + "is:" + pixelValue);
//}
}
[]] >
< / fx:Script >
< s:Button id = "loadBtn_ID" label = "Load!" click = "loadBtn_ClickHandler ()" "
x = '5' y = "5" height = "20" / >
< mx:UIComponent id = 'container_ID' x '5' = y = "30" width = "1366" height = "768" / >
< / s:WindowedApplication >
Sample image:
Thank you all,
Update the sdk to 4.6.0 fixed the problem
-
DROP in flow of the IPSec tunnel
Hello
I am trying to use a VPN, who worked on one connection ASA months on ASA9.1 (2). I've updated to ASA9.1 11 (6) and it has stopped working.
This is the remote ASA5505s making an IPSEC connection-a network head 5520. I can ride preceding and following 2 and 11 9.1 9.1 (6) and while the configuration does not change, the VPN starts working on 9.1 2
Vpn connects, but there is no packets sent or received...
I get this packet tracer...
Output of the command: "packet - trace entry tcp teeessyou 192.168.190.2 5000 192.168.195.1 detail 80.
Phase: 1
Type: ACCESS-LIST
Subtype:
Result: ALLOW
Config:
Implicit rule
Additional information:
Direct flow from returns search rule:
ID = 0xae1308e8, priority = 1, domain = allowed, deny = false
hits = 622, user_data = 0 x 0, cs_id = 0 x 0, l3_type = 0 x 8
Mac SRC = 0000.0000.0000, mask is 0000.0000.0000
DST = 0000.0000.0000 Mac, mask is 0100.0000.0000
input_ifc = teeessyou, output_ifc = anyPhase: 2
Type: UN - NAT
Subtype: static
Result: ALLOW
Config:
NAT (teeessyou, outside) static source all all static destination teeessyou_ENCODERS teeessyou_ENCODERS
Additional information:
NAT divert on exit to the outside interface
Untranslate 192.168.195.1/80 to 192.168.195.1/80Phase: 3
Type: ACCESS-LIST
Subtype: Journal
Result: ALLOW
Config:
Access-group teeessyou_access_in in the teeessyou interface
teeessyou_access_in of access allowed any ip an extended list
Additional information:
Direct flow from returns search rule:
ID = 0xae24d310, priority = 13, area = allowed, deny = false
hits = 622, user_data is 0xab6b23c0, cs_id = 0 x 0, use_real_addr, flags = 0 x 0 = 0 protocol
IP/ID=0.0.0.0 SRC, mask = 0.0.0.0, port = 0, = 0 tag
IP/ID=0.0.0.0 DST, mask is 0.0.0.0, port = 0, tag = 0, dscp = 0 x 0
input_ifc = teeessyou, output_ifc = anyPhase: 4
Type: NAT
Subtype:
Result: ALLOW
Config:
NAT (teeessyou, outside) static source all all static destination teeessyou_ENCODERS teeessyou_ENCODERS
Additional information:
Definition of static 192.168.190.2/5000 to 192.168.190.2/5000
Direct flow from returns search rule:
ID = 0xae1ea5a8, priority = 6, area = nat, deny = false
hits = 622, user_data is 0xae1e9c58, cs_id = 0 x 0, flags = 0 x 0 = 0 protocol
IP/ID=0.0.0.0 SRC, mask = 0.0.0.0, port = 0, = 0 tag
IP/ID=192.168.192.0 DST, mask is 255.255.224.0, port = 0, tag = 0, dscp = 0 x 0
input_ifc = teeessyou, output_ifc = externalPhase: 5
Type: NAT
Subtype: volatile
Result: ALLOW
Config:
Additional information:
Direct flow from returns search rule:
ID = 0xa9678858, priority = 1, domain = nat-volatile, deny = true
hits = 105, user_data = 0 x 0, cs_id = 0 x 0, reverse, use_real_addr, flags = 0 x 0, Protocol = 6
IP/ID=0.0.0.0 SRC, mask = 0.0.0.0, port = 0, = 0 tag
IP/ID=0.0.0.0 DST, mask is 0.0.0.0, port = 0, tag = 0, dscp = 0 x 0
input_ifc = none, output_ifc = anyPhase: 6
Type: IP-OPTIONS
Subtype:
Result: ALLOW
Config:
Additional information:
Direct flow from returns search rule:
ID = 0xae136910, priority = 0, sector = inspect-ip-options, deny = true
hits = 622, user_data = 0 x 0, cs_id = 0 x 0, reverse, flags = 0 x 0 = 0 protocol
IP/ID=0.0.0.0 SRC, mask = 0.0.0.0, port = 0, = 0 tag
IP/ID=0.0.0.0 DST, mask is 0.0.0.0, port = 0, tag = 0, dscp = 0 x 0
input_ifc = teeessyou, output_ifc = anyPhase: 7
Type: VPN
Subtype: encrypt
Result: ALLOW
Config:
Additional information:
Direct flow from returns search rule:
ID = 0xaeec4328, priority = 70, domain = encrypt, deny = false
hits = 65, user_data is 0xb7dc, cs_id = 0 x 0, reverse, flags = 0 x 0 = 0 protocol
IP/ID=0.0.0.0 SRC, mask = 0.0.0.0, port = 0, = 0 tag
IP/ID=192.168.195.0 DST, mask is 255.255.255.0, port = 0, tag = 0, dscp = 0 x 0
input_ifc = none, output_ifc = externalPhase: 8
Type: NAT
Subtype: rpf check
Result: ALLOW
Config:
NAT (teeessyou, outside) static source all all static destination teeessyou_ENCODERS teeessyou_ENCODERS
Additional information:
Direct flow from returns search rule:
ID = 0xae1eae48, priority = 6, area = nat-reversed, deny = false
hits = 129, user_data is 0xae1e9d10, cs_id = 0 x 0, use_real_addr, flags = 0 x 0 = 0 protocol
IP/ID=0.0.0.0 SRC, mask = 0.0.0.0, port = 0, = 0 tag
IP/ID=192.168.192.0 DST, mask is 255.255.224.0, port = 0, tag = 0, dscp = 0 x 0
input_ifc = teeessyou, output_ifc = externalPhase: 9
Type: VPN
Subtype: ipsec-tunnel-flow
Result: DECLINE
Config:
Additional information:
Reverse flow from returns search rule:
ID = 0xaea9f6b0, priority = 69 = ipsec-tunnel-flow area, deny = false
hits = 129, user_data = 0 x 0, cs_id = 0xaea999c0, reverse, flags = 0 x 0 = 0 protocol
IP/ID=192.168.192.0 SRC, mask = 255.255.224.0, port = 0, = 0 tag
IP/ID=192.168.190.0 DST, mask is 255.255.255.0, port = 0, tag = 0, dscp = 0 x 0
input_ifc = out, output_ifc = anyHello Spencerallsop,
I recommend to add the keyword "no-proxy-arp" the end of the NAT statement, so the ASA try to answer queries ARP for the traffic(VPN interesting traffic), also this last phase 9 usually shows ignored due to a filter VPN defined in sometimes group policy, make sure you have not a filter VPN in a group policy that affect this tunnel then you will need to do the following:
1. remove the NAT statement:
-no nat (teeessyou, outside) static source all all static destination teeessyou_ENCODERS teeessyou_ENCODERS
2 fix the NAT statement with the keyword "No.-proxy-arp" :
-nat (teeessyou, outside) static source any any destination static teeessyou_ENCODERS teeessyou_ENCODERS non-proxy-arp
3 disable the VPN ISA SA:
-claire crypto ikev1 his
4. run the packet tracer to check that the L2L has developed,
To be honest I wouldn't recommend move you to 9.1.7 since it has some problems with the ARP entries, and it affects AnyConnect SSL somehow, which is still under investigation.
In fact, this bug affects 9.1.7 (may affect your environment):
- https://bst.cloudapps.cisco.com/bugsearch/bug/CSCuy28710
Please don't forget to rate and score as of this post, keep me posted!
Kind regards
David Castro,
-
Any suggestions on how to read what is stored in the flash pix?
Watch flashfs shows only the record of 0-5, the origin and the length, but how to decipher one what are these files?
Hello tripplegreen,
Please take a look at
Scores FLASH PIX
The worm PIX 6.2 and low (ver 2 file system)
folder 0: PIX binary image
file 1: Startup config
file 2: key information and the IPSec certificate
file 3: image PDM
folder 4: file system folder
PIX Ver 6.3 and higher (ver 3 filesystem)
folder 0: PIX binary image
file 1: Startup config
file 2: key information and the IPSec certificate.
file 3: image PDM
file 4: Crashinfo (last recorded trace back and see the output of tech)
folder 5: recording of file system.
See the PDM - pix flashfs (config) #.
Flash file system: version: 3 magic: 0 x 12345679
folder 0: origin: 0 length: 1941560-PIX binary Image
file 1: origin: 2621440 length: 4909-Config PIX
file 2: origin: 2752512 length: 1917 - IPSec data
file 3: origin: 2883584 length: 3126944 - PDM binary Image
folder 4: origin: 6029312 length: 131072 - Crashinfo file
folder 5: origin: 8257536 length: 308 - disc file system
I hope this helps! If Yes, please rate.
Thank you
-
UserHandle casting error when running applications of MAF
Hello
I'm trying very hard to get the application Oracle MAF running on an emulator, but it keeps the slightest mistake with the same trace.
(adb logcat output)
W/chrome (2351): [WARNING:resource_bundle.cc (315)] locale_file_path.empty)
I have / chrome (2351): [INFO: aw_browser_main_parts.cc (63)] load an apk successful, fd = 31 off = len 46092 = 2953
I have / chrome (2351): [INFO: aw_browser_main_parts.cc (78)] loading webviewchromium.pak, fd:32 off the coast: len:643667 228796
D / (2351): HostConnection::get() new host connection 0xa656a030, tid 2351
W/chrome (2351): [WARNING:mailbox_synchronizer.cc (36)] MailboxSync not supported due to the lack of support image/closing EGL
W/chrome (2351): [WARNING:data_reduction_proxy_settings.cc (403)] SPDY OFF at start proxy
W/art (2351): try to remove the local handle increased entry of IRT, ignorant
W/chrome (2351): [WARNING:proxy_service.cc (901)] CAP support disabled because there is no implementation of system
W/AwContents (2351): onDetachedFromWindow called when already detached. I ignore / art (2351): weatherstripping sticky brand of background GC released A 747 (254KB)
llocSpace objects, 1 (16KB) LOS objects, 0% free, 2MB / 2MB, pause 1.984ms total 220.260ms
I / ActivityManager (1239): poster com.oraclecorp.internal.HelloWorld/oracle.adfmf.Container: + 1s519ms
W/System.err (2351): java.lang.reflect.InvocationTargetException
W/System.err (2351): the impossible (Native Method)
W/System.err (2351): at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
W/System.err (2351): at oracle.adfmf.framework.FeatureContextManagerFactory.createFeatureContextManager(FeatureContextManagerFactory.java:37)
W/System.err (2351): at oracle.adfmf.framework.FeatureContextManagerFactory.getInstance(FeatureContextManagerFactory.java:72)
W/System.err (2351): at oracle.adfmf.Application.initApplication(Application.java:87)
W/System.err (2351): to oracle.adfmf.Container$ 4.run(Container.java:457)
W/System.err (2351): to oracle.adfmf.Container$ FrameworkInitializationTask.do InBackground(Container.java:821)
W/System.err (2351): to oracle.adfmf.Container$ FrameworkInitializationTask.do InBackground(Container.java:804)
W/System.err (2351): to android.os.AsyncTask$ 2.call(AsyncTask.java:288)
W/System.err (2351): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
W/System.err (2351): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
W/System.err (2351): to java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:587)
W/System.err (2351): at java.lang.Thread.run(Thread.java:818)
W/System.err (2351): caused by: java.lang.ClassCastException: android.os.UserHandle cannot be cast to java.lang.String
W/System.err (2351): at oracle.adfmf.util.CommandLine.getProperty(CommandLine.java:53)
W/System.err (2351): at oracle.adfmf.util.CommandLine.getProperty(CommandLine.java:43)
W/System.err (2351): at oracle.adfmf.util.CommandLine.getPropertyAsBoolean(CommandLine.java:68)
W/System.err (2351): at oracle.adfmf.util.CommandLine.isProfileMode(CommandLine.java:78)
W/System.err (2351): at oracle.adfmf.JavaStarter.addSystemArguments(JavaStarter.java:240)
W/System.err (2351): at oracle.adfmf.JavaStarter.startJava(JavaStarter.java:131)
W/System.err (2351): to oracle.adfmf.framework.NativeFeatureContextManager. < init > (NativeFeatureContextManager.java:45)
W/System.err (2351):... 13 more
D/TaskPersister (1239): removeObsoleteFile: deletion of file = 22_task.xml
I _assume_ that this is the "caused by: java.lang.ClassCastException: android.os.UserHandle cannot be cast to java.lang.String" which is the cause of it. "
But I can't find anything about it.
I tried the following on my 64 bit Windows 7 specifications: -.
Eclipse - Luna (4.4.1) SR1
jDeveloper Studio 12.1.3.0.0
I downloaded the Android SDK (23.0.5) tools only tried to get the man of versions downloaded. I created correct emulator.
I use Java jdk1.7.0_71
I tried the demo different apps... all the same question... showing the splashscreen Oracle and the stracktrace above.
Anyone have any ideas?
Joe
Hi Joe, I assume you are using an Android 5.0 emulator. 5.0 Android is not officially supported by CRG, however, this particular problem is fixed with the latest patch MAF you can install via help > Check For Updates.
-
Why vector increase RAM plus table double?
Hello!
I have an app simple as3 Web that use Vector. < number > to store the numeric value. But it increase double RAM more table. For example:
Use vector:
private var myTest:Vector.<Number> = new Vector.<Number>(); private function Test():void { for (var i:int = 0; i < 8192000; i++) { this.myTest.push(1.0); } trace("Length: " + this.myTest.length); } // Output: Length: 8192000 // RAM in Task Manager ~ 65Mb
Table use:
private var myTest:ByteArray = new ByteArray(); private function Test():void { for (var i:int = 0; i < 8192000; i++) { this.myTest.writeFloat(1.0); } trace("Length: " + this.myTest.length); } // Output: Length: 32768000 // RAM in Task Manager ~ 32.5Mb b
So, why vector increase my RAM double more table. How to fix this?
Thanks in advance!
a bytearray is not an array.
If you compared to your use of vector with the use of ram ram a table, you will find that the vector uses less ram than the table.
so, the real question is why a bytearray uses so much more efficient than an array and vector ram. answer from the help files:
The ByteArray class provides methods and properties to optimize reading, writing and working with binary data.
Note: The ByteArray class is for experienced developers who need to access the data on the byte level.
In memory data are a packaged (the most compact representation of the data type) byte array, but an instance of the ByteArray class can be manipulated with standard
[]
operators (access to a table). It also can be read and written to a file in memory, using methods similar to those in the URLStream and Socket classes.PS use scout to the flash profile, not the Task Manager.
-
Y at - it a trick to save on the object? It will save/load fine, but once the application closes the object is lost and charges "not defined".
var saveDataObject:SharedObject = SharedObject.getLocal ("test_save_file");
saveDataObject.data.savedObject = new test_object();
saveDataObject.flush ();
trace (saveDataObject.Data.savedObject);
-output: '[object test_object].
-updating of the test, save the file exist always.
trace (saveDataObject.Data.savedObject);
-output: "undefined".
At first I thought was it saves a pointer to the object, but the code above would not have this issue. I also made with a table and it came back as expected, then is there something special to save an object or it is not possible and I'll have to disassemble the object and save the individual values?
use:
You cannot save Serializable/serialized (Serialize anything "JacksonDunstan.com") objects.
var saveDataObject:SharedObject = SharedObject.getLocal ("test_save_file");
If {(saveDataObject.data.savedObject)
No matter what
} else {}
saveDataObject.data.savedObject = new test_object();
saveDataObject.flush ();
}
-
Photo loss of sharpness during his time in Photoshop and viewing in LR again
I had a JPG from LR to Photoshop CC, made a little change and backed up. Then I realized, that the PSD file has lost some sharpness compared to the original JPG.
It doesn't matter whether I pass with the option with "lightroom changes". It happens in both cases who use a copy.
It's really weird and frustrating.
But, I found out that that only the case if I discovered the photo in LR (Phothoshop and Irfanview all versions of the photo looks the same on the dive)
A very ugly bug in LR 5.7?
Edit:
The difference become smaller, after viewing the two photos in 1:1. But still, there is a visible difference when switching between exactly the same images (just is spent at end of test for Photoshop as a copy and saved as a JPG, no editing in PS).
Concerning
First of all that I have to say that I managed to download the file, but I first had an error that said that it is not found. It's probably just an incompatibility of the dropfiles site and my browser default plug-in download and it worked finally just using the standard browser download function. Looking at the content of the photo itself, there is no LR that have been saved in JPG format, setting only a few metadata changes such as adding the location of the photo as being in Hawaii.
Anyway, there are several questions that are mixed:
(1) when a JPG file is open and re-registered it will be slightly different due to compression JPG is a lossy format, and that the workspace of color in PS is slightly different from that of LR when PS converts the colors of its 16-bit workspace 8-bit pixel of output be exactly the same as the input pixels even if there is no substantive change in the PS , just a beautiful and resave.
This screenshot of 4:1 the photo PS has more variation in the colors between adjacent lines of pixels as the original in LR:
(2) this variation in colors may cause a difference apparent in sharpness in LR when a resampled smaller zoom level is used - in this case complete with a small window size of LR:
3 (a) use the PS resampling for display and resampling of LR to display different algorithms due to the LR to have to be as fast as possible, so what you see at these levels of zoom is not exactly reflect the sharpness of the image, only the re-sampling of the differences and the accuracy of the algorithm.
3 (b) in LR it is a badge of warning in the details pane when using less than 100% zoom. Unfortunately the warning disappears when I press a button to take a screenshot of it:
So to summarize, the pixels remain unchanged through a cycle of opening/registration when you use the JPG lossy format - a reason to use objectives, and less than 100% / 1: 1 zoom levels show not sharpening with precision in any program and the differences between the resampling algorithms in the outcome of various programs of the differences in the result inaccurate resampled. In other words, with less than 100% / 1: 1 zoom PS inaccuracy is different from the inaccuracy of LR so neither should be used to judge the sharpness, and you must use 100% / 1:1 zoom or higher.
-
How to grant this request?
Hi exports.
I'm working on oracle applications. On applications when a report is run, it took 4 to 6 hours to complete. I activated the trace and take the tkprof output. I give the area where time takes too long to run. Please guide me in this. How I reduce the time.
Banner
Query 1Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod PL/SQL Release 10.2.0.3.0 - Production "CORE 10.2.0.3.0 Production" TNS for Linux: Version 10.2.0.3.0 - Production NLSRTL Version 10.2.0.3.0 - Production
Query 2SELECT SUM(CMPNT_COST) FROM CM_CMPT_DTL_VW CM,CM_CLDR_DTL CAL WHERE ITEM_ID = (SELECT ITEM_ID FROM IC_ITEM_MST WHERE ITEM_NO = :b1 ) AND COST_MTHD_CODE = 'PMAC' AND CM.CALENDAR_CODE = CAL.CALENDAR_CODE AND CM.PERIOD_CODE = CAL.PERIOD_CODE AND :b2 BETWEEN CAL.START_DATE AND CAL.END_DATE AND WHSE_CODE = (SELECT ORGANIZATION_CODE FROM MTL_PARAMETERS_VIEW WHERE ORGANIZATION_ID = :b3 ) call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ---------- Parse 2 0.02 1.74 0 0 0 0 Execute 898 0.10 0.14 0 0 0 0 Fetch 898 6725.58 33276.46 89695038 81677590 0 898 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 1798 6725.71 33278.35 89695038 81677590 0 898 Misses in library cache during parse: 1 Misses in library cache during execute: 1 Optimizer mode: ALL_ROWS Parsing user id: 173 Rows Row Source Operation ------- --------------------------------------------------- 449 SORT AGGREGATE (cr=40838795 pr=44939444 pw=4597635 time=16613240123 us) 4829 HASH JOIN (cr=40838795 pr=44939444 pw=4597635 time=9057442461 us) 898 TABLE ACCESS FULL CM_CLDR_DTL (cr=6735 pr=56 pw=0 time=104182 us) 101742 VIEW CM_CMPT_DTL_VW (cr=40832060 pr=44939388 pw=4597635 time=9682849482 us) 340891576 UNION-ALL (cr=40824876 pr=44938969 pw=4597635 time=17933942059 us) 340891576 HASH GROUP BY (cr=20412438 pr=24769239 pw=4597635 time=10846575027 us) 361186825 TABLE ACCESS FULL CM_CMPT_DTL (cr=20412438 pr=20171604 pw=0 time=7164703993 us) 0 TABLE ACCESS FULL CM_CMPT_DTL (cr=20412438 pr=20169730 pw=0 time=6901261441 us) 449 NESTED LOOPS (cr=2245 pr=216 pw=0 time=5859356 us) 449 TABLE ACCESS BY INDEX ROWID IC_ITEM_MST_B (cr=1347 pr=177 pw=0 time=5095717 us) 449 INDEX UNIQUE SCAN IC_ITEM_MST_B_UNQ1 (cr=898 pr=51 pw=0 time=1021648 us)(object id 326600) 449 INDEX UNIQUE SCAN IC_ITEM_MST_TL_PK (cr=898 pr=39 pw=0 time=743956 us)(object id 326545) 449 NESTED LOOPS OUTER (cr=4939 pr=203 pw=0 time=3994946 us) 449 NESTED LOOPS (cr=3592 pr=107 pw=0 time=2354467 us) 449 FILTER (cr=1796 pr=34 pw=0 time=987087 us) 449 NESTED LOOPS OUTER (cr=1796 pr=34 pw=0 time=927028 us) 449 NESTED LOOPS OUTER (cr=1796 pr=34 pw=0 time=946673 us) 449 NESTED LOOPS OUTER (cr=1796 pr=34 pw=0 time=917867 us) 449 NESTED LOOPS OUTER (cr=1796 pr=34 pw=0 time=886142 us) 449 NESTED LOOPS OUTER (cr=1796 pr=34 pw=0 time=863553 us) 449 NESTED LOOPS OUTER (cr=1796 pr=34 pw=0 time=830785 us) 449 NESTED LOOPS (cr=1796 pr=34 pw=0 time=808504 us) 449 NESTED LOOPS OUTER (cr=1347 pr=34 pw=0 time=779000 us) 449 TABLE ACCESS BY INDEX ROWID MTL_PARAMETERS (cr=898 pr=2 pw=0 time=202640 us) 449 INDEX UNIQUE SCAN MTL_PARAMETERS_U1 (cr=449 pr=2 pw=0 time=183457 us)(object id 38517) 449 INDEX UNIQUE SCAN CST_COST_GROUPS_U1 (cr=449 pr=32 pw=0 time=557604 us)(object id 30846) 449 INDEX UNIQUE SCAN HR_ORGANIZATION_UNITS_PK (cr=449 pr=0 pw=0 time=11606 us)(object id 43657) 0 INDEX UNIQUE SCAN MTL_PICKING_RULES_U1 (cr=0 pr=0 pw=0 time=6183 us)(object id 38530) 0 INDEX UNIQUE SCAN MTL_ATP_RULES_U1 (cr=0 pr=0 pw=0 time=14490 us)(object id 38531) 0 INDEX UNIQUE SCAN BOM_RESOURCES_U2 (cr=0 pr=0 pw=0 time=6062 us)(object id 30440) 0 TABLE ACCESS BY INDEX ROWID HR_ALL_ORGANIZATION_UNITS (cr=0 pr=0 pw=0 time=15751 us) 0 INDEX UNIQUE SCAN HR_ORGANIZATION_UNITS_PK (cr=0 pr=0 pw=0 time=6126 us)(object id 43657) 0 INDEX UNIQUE SCAN MTL_PARAMETERS_U1 (cr=0 pr=0 pw=0 time=6153 us)(object id 38517) 0 INDEX RANGE SCAN HR_ALL_ORGANIZATION_UNTS_TL_PK (cr=0 pr=0 pw=0 time=6630 us)(object id 44020) 449 INDEX RANGE SCAN FND_LOOKUP_VALUES_U1 (cr=1796 pr=73 pw=0 time=1345141 us)(object id 34010) 0 VIEW PUSHED PREDICATE FND_COMMON_LOOKUPS (cr=1347 pr=96 pw=0 time=1623600 us) 0 NESTED LOOPS (cr=1347 pr=96 pw=0 time=1614352 us) 449 TABLE ACCESS BY INDEX ROWID FND_LOOKUP_TYPES (cr=1347 pr=96 pw=0 time=1591386 us) 449 INDEX RANGE SCAN FND_LOOKUP_TYPES_U1 (cr=898 pr=64 pw=0 time=1164297 us)(object id 34004) 0 INDEX UNIQUE SCAN FND_LOOKUP_VALUES_U1 (cr=0 pr=0 pw=0 time=6778 us)(object id 34010) ********************************************************************************
Please help me as this cordially.SELECT OH1.HEADER_ID A,OEL.LINE_ID B FROM RA_CUSTOMER_TRX_ALL RA,RA_CUSTOMER_TRX_LINES_ALL RCTLA,OE_ORDER_HEADERS_ALL OH,OE_ORDER_HEADERS_ALL OH1,OE_ORDER_LINES_ALL OEL WHERE RA.CUSTOMER_TRX_ID = RCTLA.CUSTOMER_TRX_ID AND (RA.CT_REFERENCE) = TO_CHAR(OH1.ORDER_NUMBER) AND OH1.SOURCE_DOCUMENT_ID = OH.HEADER_ID AND OH.ORDER_NUMBER = :b1 AND RCTLA.INVENTORY_ITEM_ID = (SELECT DISTINCT INVENTORY_ITEM_ID FROM MTL_SYSTEM_ITEMS_B WHERE SEGMENT1 = :b2 ) AND OH1.HEADER_ID = OEL.HEADER_ID AND OEL.INVENTORY_ITEM_ID = RCTLA.INVENTORY_ITEM_ID call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ---------- Parse 1 0.00 0.00 0 0 0 0 Execute 387 0.04 0.04 0 0 0 0 Fetch 389 689.22 33361.26 19979867 20144715 0 2 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 777 689.26 33361.31 19979867 20144715 0 2 Misses in library cache during parse: 1 Misses in library cache during execute: 1 Optimizer mode: ALL_ROWS Parsing user id: 173 Rows Row Source Operation ------- --------------------------------------------------- 2 TABLE ACCESS BY INDEX ROWID OE_ORDER_LINES_ALL (cr=20144715 pr=19979867 pw=0 time=33024227812 us) 391 NESTED LOOPS (cr=20144713 pr=19979865 pw=0 time=33169147608 us) 2 NESTED LOOPS (cr=20144705 pr=19979861 pw=0 time=33024244282 us) 2 HASH JOIN (cr=20144516 pr=19979682 pw=0 time=33022474026 us) 2363409 TABLE ACCESS FULL OE_ORDER_HEADERS_ALL (cr=7992324 pr=7935681 pw=0 time=10973123196 us) 159464124 MERGE JOIN CARTESIAN (cr=12152192 pr=12044001 pw=0 time=21849267761 us) 387 TABLE ACCESS BY INDEX ROWID OE_ORDER_HEADERS_ALL (cr=1553 pr=79 pw=0 time=1416188 us) 387 INDEX RANGE SCAN OE_ORDER_HEADERS_U2 (cr=1166 pr=79 pw=0 time=1400563 us)(object id 41431) 159464124 BUFFER SORT (cr=12150639 pr=12043922 pw=0 time=20287027876 us) 159464124 TABLE ACCESS FULL RA_CUSTOMER_TRX_ALL (cr=12150639 pr=12043922 pw=0 time=19458528384 us) 2 TABLE ACCESS BY INDEX ROWID RA_CUSTOMER_TRX_LINES_ALL (cr=189 pr=179 pw=0 time=1762590 us) 2 INDEX RANGE SCAN RA_CUSTOMER_TRX_LINES_N2 (cr=8 pr=1 pw=0 time=20802 us)(object id 29156) 2 HASH UNIQUE (cr=179 pr=176 pw=0 time=1713629 us) 26 TABLE ACCESS BY INDEX ROWID MTL_SYSTEM_ITEMS_B (cr=179 pr=176 pw=0 time=1056631 us) 26 INDEX SKIP SCAN MTL_SYSTEM_ITEMS_B_N1 (cr=172 pr=172 pw=0 time=1056300 us)(object id 38528) 2 INDEX RANGE SCAN OE_ORDER_LINES_N1 (cr=8 pr=4 pw=0 time=44331 us)(object id 41462) ********************************************************************************
Thank you and best regards,
IqbalI think that there are three methods that you can try.
I make the assumption that the setting of binding: item_no filters the good output.
However, it seems to me that if this setting is not propagated in the view.
The reason could be that the perspective is somewhat complex using a combination of GROUP BY and UNION ALL.approach would be:
(1) use joins instead of subquery when calling the view. This could help the database to better prepare for any settings that could potentially spread.approach two would be:
(2) prepare the view in such a way, it is easier.
UNION ALL is generally not a problem, but the group by the power. A way to rewrite the view is to eliminate the union all. This would reduce to less complexity.(3) merge the two statements into one. It would be very useful for testing too much performance.
For example, using the selection from the vew, but call of the subquery for: item_no in each union all part of the main query. See if that helps, although it would not be the final solution.(Now, some code sniplets for help with the method 1) and (2).
(2) we use one when the condition on the selected columns, rather a union all
SELECT case when NVL(rmcalc_type,0) = 0 then cmpntcost_id else 0 end as cmpntcost_id, item_id, ... case when NVL(rmcalc_type,0) = 0 then cost_level else 0 end cost_level, SUM (cmpnt_cost), -- no case needed here! ... FROM cm_cmpt_dtl /* where condition is now a combination of both previous conditions */ --WHERE NVL(rmcalc_type,0) > 0 --WHERE NVL(rmcalc_type,0) = 0 WHERE NVL(rmcalc_type,0) >= 0 GROUP BY item_id, whse_code, calendar_code, ... case when NVL(rmcalc_type,0) = 0 then cmpntcost_id else 0 end ;
Important thing is to include new conditional logic in the group by clause
(1) the main query can be rewritten to the logic of the normal joint instead of the Subselects. This help very often the CBO to find a better plan.
original as posted by knockaertselect sum(cmpnt_cost) from cm_cmpt_dtl_vw cm , cm_cldr_dtl cal where cm.calendar_code = cal.calendar_code and cm.period_code = cal.period_code and cost_mthd_code = 'PMAC' and :b2 between cal.start_date and cal.end_date and item_id = ( select item_id from ic_item_mst where item_no = :b1 ) and whse_code = ( select organization_code from mtl_parameters_view where organization_id = :b3 );
Join the version
select sum(cmpnt_cost) from cm_cmpt_dtl_vw cm join cm_cldr_dtl cal on cm.calendar_code = cal.calendar_code and cm.period_code = cal.period_code join ic_item_mst i on cm. item_id = i.item_id join mtl_parameters_view p on cm.whse_code = p.organization_code where i.item_no = :b1 and :b2 between cal.start_date and cal.end_date and p.organization_id = :b3 and cost_mthd_code = 'PMAC' ;
Published by: Sven w. January 29, 2013 14:56
(3) I just noticed that make of all the "grouped" in the view are quite useless, if you want to have a lot of money at the end. Just then replace the view with the main table.
select sum(cmpnt_cost) from cm_cmpt_dtl cm /* source view was changed to source table */ join cm_cldr_dtl cal on cm.calendar_code = cal.calendar_code and cm.period_code = cal.period_code join ic_item_mst i on cm. item_id = i.item_id join mtl_parameters_view p on cm.whse_code = p.organization_code where i.item_no = :b1 and :b2 between cal.start_date and cal.end_date and p.organization_id = :b3 and cost_mthd_code = 'PMAC' ;
I add where condition "WHERE NVL(rmcalc_type,0) > = 0" because I guess that this rmcalc_type can not be negative. If possible, this filter should be added.
-
Errors for server SOA management
Hi all
I converted a code java in a Web service using jdeveloper and deployed in weblogic server, and it works fine when I invoke it through the server of the SOA. But, when I'm passing some bad input values I should suppose to get the error, but I don't see any errors inside the em and status displays as completed. At the same time, I am able to display the stack trace of complete error within the command-line soa_server1 (StartManagedWeblogic soa_server1). How can I catch the mistakes inside the em. I added catchall block but without success. My requirement is to intercept this error inside the em and have to send by e-mail.
Thank youWhere you have this...
catch (APIException e) { e.printStackTrace(); e.getMessage(); e.getRootCause(); }
Change in this...
catch (APIException e) { e.printStackTrace(); // this is printing the error stack trace to soa_server1 command prompt output throw new RuntimeException(e); }
This should solve... I didn't check the syntax... Let me know if you have any problem...
See you soon,.
Vlad -
Does not update dynamic textbox
Hey guys,.
I created a game for my finals, but I just can't get a text box to update. I have a new one using the same method and it works.
_root.currentScoreTXT = _root ["currentScore"]; //
_root.scoreText.text = _root.currentScoreTXT; Doesn't work? Don't know what's going on.
trace (_root.currentScoreTXT);
Sorry, cannot find how integrate the code. The trace at the end of output the exact score.
Any help is greatly appreciated.
You must include your police or remove this 0 of the TextField.
-
Problem of extracting data from the XLIFF XML file
Hi again,
AS3 CS6 Flash Pro
I have the XML loaded from a Flash panel language translation file strings in an XML variable. Works very well. Traces out - shown below.
When I try to extract the data as XML < trans-unit >, I get an 1120: access of undefined property unit.
function completeHandler(event:LoaderEvent):void { var stuff:XMLLoader = LoaderMax.getLoader(arrayXMLFiles[0]); var moreStuff:XML = LoaderMax.getContent(arrayXMLFiles[0]); ssDebug.trace(moreStuff); // this works with output shown below ssDebug.trace(moreStuff.xliff.file.body.trans-unit); // - error here }
The Trace is here:
<xliff version="1.0" lang="en" xmlns="http://www.w3.org/XML/1998/namespace"> <file datatype="plaintext" original="CardJam.fla" source-language="EN"> <header/> <body> <trans-unit id="001" resname="IDS_ZXP7_JAM_01"> <source>If, while you are printing, your printer stops, ...</source> </trans-unit> <trans-unit id="002" resname="IDS_ZXP7_JAM_02"> <source>look at the Operator Control Panel (OCP) for the fault description.</source> </trans-unit> <trans-unit id="003" resname="IDS_ZXP7_JAM_03"> <source>If the fault is a card jam, open and close the Print Cover (or Options Cover).</source> </trans-unit> <trans-unit id="004" resname="IDS_ZXP7_JAM_04"> <source>The printer will initialize and move the jammed card to the Reject Bin.</source> </trans-unit> <trans-unit id="005" resname="IDS_ZXP7_JAM_TITLE"> <source>Card Jam</source> </trans-unit> </body> </file> </xliff>
I found a code by looking at a similar problem - I do not know how to retrieve other data (as I guess) the rest of the HTML in the code. I need to find a better reference with details and examples.
I fixed it by changing:
ssDebug.trace(moreStuff.xliff.file.body.trans-unit); -error
TO:
ssDebug.trace (moreStuff.file.body ['trans-unit']); -no error
with results expected (no error):
-
Variable to use in the next scene
Hello
I'm trying to use a variable captured in a scene in the next scene of the game that I do.
Here is the code I use to set the variable
var player;
Player = inputbox.text;
On the the next scene I used trace (player) to test the output. Instead of out the name entered in the previous image, it out rather 'undefined'
I use a custom .as file that is shown below
package {}
import flash.display.MovieClip;
import flash.events.MouseEvent
SerializableAttribute public class extends MovieClip {PlayerName
public static var player
public void PlayerName() {}
}
}
}I don't really know ActionScript and have been using things I found on the internet. Any help would be appreciated.
By a stoke of luck I managed to get this to work, without having to remove the scenes.
Instead of
var player;
Player = inputbox.text;
and trace (player)
I had to use
var player;
PlayerName.player = inputbox.text;
and trace (PlayerName.player)
as I put it as a local variable.
Maybe you are looking for
-
iPad will not slide to open or close
Mini iPad will not slide to open or close.
-
Satellite Pro C660 - possible upgrade to 8 GB of RAM?
Hello I recently bought a PSC0MA Satellite Pro C660-01K00V from a seller online with guarantee all covered. He came like a usual model would come like but with 6 GB of RAM. I thought it was a great buy so I bought it. After it happened, I looked at t
-
I have tried everything - delete the session (twice) - nothing happened. I have reset my settings to the homepage with initially and back to the restoration of the tabs - nothing happened. I went to about: config and set my Firefox ask me on exit, if
-
Status bar at the bottom of the screen will not allow
Status bar at the bottom of the screen will not even when I try to activate with display > verified status bar This has happened Each time Firefox opened
-
A fatal error has occurred?
For some reason any, whenever I turn on my computer, I get this box that says "a fatal error has occurred. Setup cannot continue. Please contact your seller or provider of support. Press to stop the system. Can someone please help me with this?