How to check the availability of selection
Hi all!
I have a script fills the selected area. But if the user has not made a choice, the string Mybounds = doc.selection.bouns an error. How can I check, it's the selection are not?
You can wrap (var myBounds = app.activeDocument.selection.bounds) in a try clause.
Tags: Photoshop
Similar Questions
-
How to check the availability of the ucs?
Hi all
I have observed UCS alert on my monitoring tool.
Service: System availability
State: OK
HostGroup: Switch
Time: Wed Apr 15 19:10:16 UTC 2014
Additional information: OK: UPTIME = 34 minutes, 11.37But when I connected and checked the availability of the system, it has been for a long time:
System start time: Thu Nov 29 19:17:30 2012
System uptime: 501 days, 18 hours, 46 minutes, 45 seconds
The core run time: 501 days, 19 hours, 25 minutes, 11 seconds
Availability active supervisor: 501 days, 18 hours, 46 minutes, 45 secondsCould you please explain any other command to check availability?
Thank you
Phani.
First of all you need to know what the ip address of each fabric, if you don't know what they are you can connect at UCSM (see screenshot drew)
Once you have the IP for the two fabrics, the IPs SSH and run the following commands to get uptime on every fabric.
F A # connect nxos
F A (nxos) # see the availability of the system
-
How to check the availability of the Blackberry applications
Hello
I want to check the application of black berrymaps is available or before calling in my application, please help me how do to the avalability of the application...
Here's how to check for BB Maps, don't know where I got this code from:
try {}
mapsLocationPicker = MapsLocationPicker.getInstance ();
Currently} catch (IllegalStateException ise) {}
There is no
}BTW, how you progress in this thread?
-
How to check the availability of shop online.
I went to the Apple Store tonight and was looking to buy a Apple Watch series 2. They had only 1 color on the left and it's unique size. Is there a way to check online when they get new shipments, or even a way to reserve perhaps one for sending store online?
Go to the store click on the one you want and buy, will tell how long for shipping. then pay for it.
-
How to check the available Flash OCX
Hello
My app (in VC ++) uses flash OCX (activex) to read some swf files. The concern is that users of my application not have an internet connection. And they have lower (default) version of OCX. So, how can I give their own (higher) version of OCX for swf files played?
Thank you.Focus on player distribution license.
These are free and allow you to * legally * include player on your drive to distribute to users. In this way, you can wake the installation of Flash in an "install application" when the drive boots first.
-
How to check the JSON object properties available
Hi I have a JSON of WebService object.
How to check the available JSON object?
ex JSON:
{
name: "someName".
DESC: 'someDesc '.
}
How to check the available name?
Because sometimes not available from the server name properties
void MyClass::httpFinished(QNetworkReply* reply) { QString data = (QString) reply->readAll(); bb::data::JsonDataAccess jda; QVariant variant = jda.loadFromBuffer(data); QVariantMap variantMap = variant.value
(); QString name = variantMap.value("name").toString(); } I want to hide component Label on my .qml if name not available from webservice.
Thank you
Kaz32 wrote:
Hi I have a JSON of WebService object.
How to check the available JSON object?
ex JSON:
{
name: "someName".
DESC: 'someDesc '.
}
How to check the available name?
Thank you
If you want to check if the name is available, you must use
bool nameExists = variantMap.contains ("name")
-
How to use JavaScript to limit the number of boxes to check the user can select a PDF form?
How to use JavaScript to limit the number of boxes to check the user can select a PDF form?
Here's the working solution
Please rename all the boxes like chkBox0, chkBox1... .chkBox30 (must start with 0)
Value of exports of each checkbox must be "Yes" (default value is Yes)
Place this Code at the level of the Javascript Document
-Code JavaScript document-
var counter = 0; Checked the meter
-Count boxes checked again when the document is closed and reopened.
for (var i = 0; i)<= 30;="">=>
If (getField("chkBox"_+_i).value == 'Yes') {}
Counter += 1;
}
}
-The function of validation-
function validateCheckBox(name,value) {}
If (value == 'Yes' & meter)<>
Counter += 1;
} else if (value == 'Off') {}
counter = 1;
} else {}
getField ("name") .value = "Off";
App.Alert ("you can select only four checkboxes");
}
}
-End of Document Javascript-
Now put this line in the MouseUp event all checkboxes
Box - Code MouseUp event.
validateCheckBox (event.target.name, event.target.value);
//----------------------------------------------------------------------------------
Hope this will help
Kind regards
Post edited by: Mohammad Irfan
-
How to check the value of the space of the tablespaces and tables when errors occur?
Hi Experts,
For example, lets say we get ORA-01653: unable to extend table of error. How to check the size of the table and a tablespace? And how understanding is full?
Thanks for your help
Hello
Select df.tablespace_name "Tablespace"
totalusedspace 'Used MB',
(df.totalspace - tu.totalusedspace) "MB free.
DF. TotalSpace 'Total MB. "
round (100 * ((df.totalspace-tu.totalusedspace) / df.totalspace))
"PCT free."
Of
(select nom_tablespace,
Round (Sum (bytes) / 1048576) TotalSpace
from dba_data_files
Group by tablespace_name) df,.
(select round (sum (bytes) /(1024*1024)) totalusedspace, nom_tablespace)
from dba_segments
you group by tablespace_name)
where df.tablespace_name = tu.tablespace_name
and df.tablespace_name = "
"; For example, lets say we get ORA-01653: unable to extend table of error. How to check the size of the table and a tablespace? And how understanding is full?
Is to say clearly to the question (you can let us know what you have understood so we can fix)
[oracle@machine1 ~] $01653 oerr ora
01653, 00000, "impossible to extend %s.%s table by %s in %s tablespace»
* Cause: Failed to allocate a certain measure the required number of blocks for
a segment of the table in the specified tablespace.
* Action: Use ALTER TABLESPACE ADD DATAFILE statement to add one or more
storage of files indicate.
-Thank you
Pavan Kumar N
-
How to check the roles agreed on a specific group?
Hello
How to check the roles granted to a specific group?
If a user belongs to this group in particular, will have the same roles granted so much that the Group?
Thank you.
SQL> select grantee 2 from dba_role_privs 3 where granted_role = 'DBA'; GRANTEE --------------------------------- SYS SYSTEM
-
How to check the column updated whereby the package or procedure?
Hi all
Can someone help me how to check the column updated by which the package or procedure
A.Mahesh
Hello.
You can check what object is a reference to the table of the column:
Select *.
of all_dependencies d
where d.REFERENCED_NAME = '
. ' And you can find all the links to the object source data column:
Select *.
of s all_source
where s.name = "
." and s.OWNER = '
. ' and s.TYPE = "
." and as s.TEXT '%
%' -
How to check the locks in the database
Hello
oracleDatabase version: 11 GR 2
OS: Solaris
How to check the locks on database objects .it can be any lock?
None Select sql query to check the levlel of objects of database locks? what basis locks occur?
Please explain on the locks or share notes MOS?
Rgds,
Sam.Check below sql.
Select s1.username. '@' || S1.machine
|| ' (SID =' | s1.sid | block him ') '
|| S2. UserName | '@' || S2.machine | ' (SID =' | s2.sid |) ') ' AS blocking_status
v $ lock l1, v$ session s1, v$ lock l2, s2 of v$ session
where s1.sid = l1.sid and s2.sid = l2.sid
and l1. BLOCK = 1 and l2.request > 0
and l1.id1 = l2.id1
and l2.id2 = l2.id2;http://psoug.org/snippet/locks-view-locked-Objects_866.htm
http://www.DBA-Oracle.com/t_locked_rows_user_locks.htm -
How to check the ESX memory for errors?
Hi all
I faced with the strange behavior of ESX:
Some linux VMs (RHEL) were stopped. No error messages in the vCenter nor LabManager, I even thought that someone just connected and Runic stop.
Below you will find information of ESX server logs:
(1) the vmkernel newspaper:
#grep - color = always-i ' 1922 [^ 0-9] "... /VMkernel *"
.. (/ VMkernel.8:Dec 8 22:22:40 WKK1EC02 vmkernel: 290:11:51:47.230 cpu14:23084) UserDump: 1441: Dumping cartel 23079 (of the world 23084) to file the vmfs/volumes/4a4ce277-4a35505c-8828-0024817b058c/labmanager/1922/vmware-vmx-zdump.000...
(2) the journal of the VM:
# grep ' 08 Dec' /vmfs/volumes/4a4ce277-4a35505c-8828-0024817b058c/labmanager/1922/vmware-1.log '.
16:53:49.164 Dec 08: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.
16:54:14.972 Dec 08: vmx | GuestRpcSendTimedOut: message to the Toolbox has expired.
21:59:05.262 Dec 08: mks | Cannot write the temporary image THUMB
21:59:15.264 Dec 08: mks | Cannot write the temporary image THUMB
21:59:30.270 Dec 08: mks | Cannot write the temporary image THUMB
21:59:35.271 Dec 08: mks | Cannot write the temporary image THUMB
21:59:45.275 Dec 08: mks | Cannot write the temporary image THUMB
21:59:50.285 Dec 08: mks | Cannot write the temporary image THUMB
22:00:00.274 Dec 08: mks | Cannot write the temporary image THUMB
22:00:05.276 Dec 08: mks | Cannot write the temporary image THUMB
22:01:15.410 Dec 08: mks | Cannot write the temporary image THUMB
22:03:25.312 Dec 08: mks | Cannot write the temporary image THUMB
22:05:00.324 Dec 08: mks | Cannot write the temporary image THUMB
22:05:05.340 Dec 08: mks | Cannot write the temporary image THUMB
22:05:15.331 Dec 08: mks | Cannot write the temporary image THUMB
22:05:20.341 Dec 08: mks | Cannot write the temporary image THUMB
22:05:30.344 Dec 08: mks | Cannot write the temporary image THUMB
22:05:35.353 Dec 08: mks | Cannot write the temporary image THUMB
22:05:40.354 Dec 08: mks | Cannot write the temporary image THUMB
22:05:45.366 Dec 08: mks | Cannot write the temporary image THUMB
22:05:50.357 Dec 08: mks | Cannot write the temporary image THUMB
22:05:55.361 Dec 08: mks | Cannot write the temporary image THUMB
22:06:00.365 Dec 08: mks | Cannot write the temporary image THUMB
22:06:05.371 Dec 08: mks | Cannot write the temporary image THUMB
22:06:10.395 Dec 08: mks | Cannot write the temporary image THUMB
22:06:15.379 Dec 08: mks | Cannot write the temporary image THUMB
22:06:20.381 Dec 08: mks | Cannot write the temporary image THUMB
22:06:30.397 Dec 08: mks | Cannot write the temporary image THUMB
22:06:40.403 Dec 08: mks | Cannot write the temporary image THUMB
22:20:45.541 Dec 08: mks | Cannot write the temporary image THUMB
22:21:10.580 Dec 08: mks | Cannot write the temporary image THUMB
22:21:15.538 Dec 08: mks | Cannot write the temporary image THUMB
22:21:20.554 Dec 08: mks | Cannot write the temporary image THUMB
22:21:25.545 Dec 08: mks | Cannot write the temporary image THUMB
22:21:30.580 Dec 08: mks | Cannot write the temporary image THUMB
22:21:35.591 Dec 08: mks | Cannot write the temporary image THUMB
22:21:40.537 Dec 08: mks | Cannot write the temporary image THUMB
22:21:45.629 Dec 08: mks | Cannot write the temporary image THUMB
22:21:50.583 Dec 08: mks | Cannot write the temporary image THUMB
22:21:55.616 Dec 08: mks | Cannot write the temporary image THUMB
22:22:00.590 Dec 08: mks | Cannot write the temporary image THUMB
22:22:05.638 Dec 08: mks | Cannot write the temporary image THUMB
22:22:10.595 Dec 08: mks | Cannot write the temporary image THUMB
22:22:15.582 Dec 08: mks | Cannot write the temporary image THUMB
22:22:20.622 Dec 08: mks | Cannot write the temporary image THUMB
22:22:25.583 Dec 08: mks | Cannot write the temporary image THUMB
22:22:30.627 Dec 08: mks | Cannot write the temporary image THUMB
22:22:35.673 Dec 08: mks | Cannot write the temporary image THUMB
22:22:40.588 Dec 08: mks | Panic: file lock (was the bug 49968)
22:22:40.589 Dec 08: mks | Bora/lib/image/imageUtilPng.c:462 unrecoverable memory allocation failure
22:23:21.438 Dec 08: mks | Backtrace:
22:23:21.440 Dec 08: mks | Backtrace [0] 0x3ccf63d8 eip 0xa3f88cd
22:23:21.442 Dec 08: mks | Backtrace [1] 0x3ccf6818 eip 0x9ff705c
22:23:21.443 Dec 08: mks | Backtrace [2] eip 0xa2803bc 0x3ccf6b88
22:23:21.443 Dec 08: mks | Backtrace [3] eip 0xa2803f6 0x3ccf6bb8
22:23:21.444 Dec 08: mks | Backtrace [4] eip 0xa27fcc3 0x3ccf6bd8
22:23:21.444 Dec 08: mks | Backtrace [5] eip 0xa27fd28 0x3ccf6c28
22:23:21.445 Dec 08: mks | Backtrace [6] eip 0xa115582 0x3ccf7128
22:23:21.445 Dec 08: mks | Backtrace [7] eip 0xa115717 0x3ccf7138
22:23:21.445 Dec 08: mks | Backtrace [8] eip 0xa00d0a9 0x3ccf7168
22:23:21.446 Dec 08: mks | Backtrace [9] 0x3ccf9278 0xa00dbef eip
22:23:21.447 Dec 08: mks | Backtrace [10] eip 0x3ccf9298 0xa298217
22:23:21.447 Dec 08: mks | Backtrace [11] eip 0x3ccf92b8 0xa298255
22:23:21.448 Dec 08: mks | Backtrace [12] eip 0x3ccf92e8 0xa10bfe9
22:23:21.448 Dec 08: mks | Backtrace [13] eip 0xa0f2e81 0x3ccf93c8
22:23:21.504 Dec 08: mks | Backtrace [14] eip 0x160534fb 0x3ccf94b8
22:23:21.505 Dec 08: mks | Backtrace [15] eip 00000000 0x1613ae3e
22:23:21.507 Dec 08: mks | SymBacktrace [0] 0x3ccf63d8 eip in function 0xa3f88cd in/usr/lib/vmware/bin/vmware-vmx of the object in the 0x9f98000 (zero)
22:23:21.508 Dec 08: mks | SymBacktrace [1] 0x3ccf6818 eip 0x9ff705c panic function in/usr/lib/vmware/bin/vmware-vmx of the object loaded on the 0x9f98000
22:23:21.508 Dec 08: mks | SymBacktrace [2] 0x3ccf6b88 eip in function 0xa2803bc in/usr/lib/vmware/bin/vmware-vmx of the object in the 0x9f98000 (zero)
22:23:21.511 Dec 08: mks | SymBacktrace [3] 0x3ccf6bb8 eip in function 0xa2803f6 in/usr/lib/vmware/bin/vmware-vmx of the object in the 0x9f98000 (zero)
22:23:21.511 Dec 08: mks | SymBacktrace [4] 0x3ccf6bd8 eip in function 0xa27fcc3 in/usr/lib/vmware/bin/vmware-vmx of the object in the 0x9f98000 (zero)
22:23:21.512 Dec 08: mks | SymBacktrace [5] 0x3ccf6c28 eip in function 0xa27fd28 in/usr/lib/vmware/bin/vmware-vmx of the object in the 0x9f98000 (zero)
22:23:21.513 Dec 08: mks | SymBacktrace [6] 0x3ccf7128 eip in function 0xa115582 in/usr/lib/vmware/bin/vmware-vmx of the object in the 0x9f98000 (zero)
22:23:21.514 Dec 08: mks | SymBacktrace [7] 0x3ccf7138 eip in function 0xa115717 in/usr/lib/vmware/bin/vmware-vmx of the object in the 0x9f98000 (zero)
22:23:21.515 Dec 08: mks | SymBacktrace [8] 0x3ccf7168 eip in function 0xa00d0a9 in/usr/lib/vmware/bin/vmware-vmx of the object in the 0x9f98000 (zero)
22:23:21.515 Dec 08: mks | SymBacktrace [9] 0x3ccf9278 eip in function 0xa00dbef in/usr/lib/vmware/bin/vmware-vmx of the object in the 0x9f98000 (zero)
22:23:21.516 Dec 08: mks | SymBacktrace [10] 0x3ccf9298 eip in function 0xa298217 in/usr/lib/vmware/bin/vmware-vmx of the object in the 0x9f98000 (zero)
22:23:21.517 Dec 08: mks | SymBacktrace [11] 0x3ccf92b8 eip in function 0xa298255 in/usr/lib/vmware/bin/vmware-vmx of the object in the 0x9f98000 (zero)
22:23:21.518 Dec 08: mks | SymBacktrace [12] 0x3ccf92e8 eip in function 0xa10bfe9 in/usr/lib/vmware/bin/vmware-vmx of the object in the 0x9f98000 (zero)
22:23:21.519 Dec 08: mks | SymBacktrace [13] 0x3ccf93c8 eip in function 0xa0f2e81 in/usr/lib/vmware/bin/vmware-vmx of the object in the 0x9f98000 (zero)
22:23:21.519 Dec 08: mks | SymBacktrace [14] 0x3ccf94b8 eip 0x160534fb in function (zero) in the object /usr/lib/vmware/lib/libpthread.so.0 to the 0x1604e000
22:23:21.520 Dec 08: mks | SymBacktrace [15] eip 00000000 0x1613ae3e based on cloning in object /usr/lib/vmware/lib/libc.so.6 loaded in 0 x 16069000
22:23:21.520 Dec 08: mks | Msg_Post: error
22:23:21.521 Dec 08: mks | [msg.log.error.unrecoverable] fatal error VMware ESX: (mks)
22:23:21.521 Dec 08: mks | Bora/lib/image/imageUtilPng.c:462 unrecoverable memory allocation failure
22:23:21.521 Dec 08: mks | [msg.panic.haveLog] a log file is available in "/ vmfs/volumes/4a4ce277-4a35505c-8828-0024817b058c/labmanager/1922/vmware.log". [msg.panic.haveCore] a base file is available in "/ vmfs/volumes/4a4ce277-4a35505c-8828-0024817b058c/labmanager/1922/vmware-vmx-zdump.000". [msg.panic.requestSupport.withLogAndCore] please request support and include the contents of the log file and the base file. [msg.panic.requestSupport.vmSupport.vmx86]
22:23:21.523 Dec 08: mks | To collect the data to submit to the VMware support, run 'vm-support.
22:23:21.524 Dec 08: mks | [msg.panic.response] we will respond on the basis of your entitlement to support.
22:23:21.525 Dec 08: mks | ----------------------------------------
22:23:21.739 Dec 08: vmx | Watched VTHREAD thread 1 "mks" is dead
22:23:22.651 Dec 08: 1 vcpu. Watched VTHREAD thread 0 "vmx" is dead
22:23:22.740 Dec 08: vcpu-3 | Watched VTHREAD thread 0 "vmx" is dead
22:23:22.741 Dec 08: vcpu-2 | Watched VTHREAD thread 0 "vmx" is dead
22:23:22.743 Dec 08: vcpu-0 | Watched VTHREAD thread 0 "vmx" is deadI found the suggestion to check the ESX memory for problems.
I found the information that ESX 3.0 was ramcheck service which could check the memory, but there is no such service in future versions of ESX.
Could someone help me find how to check the memory without stopping the ESX Server (I could not migrate virtual machines per host)?
The only way you will get a true test of the memory of the HOST must stop it and run the test directly. Any tool running in the ESX console will only have indirect access RAM. The vmkernel controls access to physical RAM.
-
How to check the size of the tablespace by query?
How to check the size of the tablespace by query?Run this query...
SELECT
A.tablespace_name 'space ',.
A.bytes / (1024 * 1024) "Total_Size (MB).
Sum (B.bytes) / (1024 * 1024) "free_space (MB).
NVL (Round (Sum (B.bytes) * 100 / A.bytes), 1) "%Free."
Round ((A.bytes - SUM (B.bytes)) * 100/A.bytes) '% Used_Space '.
FROM dba_free_space B,.
(SELECT tablespace_name, SUM (bytes) bytes
FROM dba_data_files
A GROUP BY nom_tablespace)
WHERE B.tablespace_name (+) = A.tablespace_name
GROUP OF A.tablespace_name, A.bytes
UNION ALL
SELECT
A.tablespace_name 'space ',.
B.bytes / (1024 * 1024) "Total_Size (MB).
Sum (A.bytes_free) / (1024 * 1024) "free_space (MB).
NVL (Round ((Sum (B.bytes) - A.bytes_used) * 100 / B.bytes), 1) "%Free."
Round ((Sum (B.bytes) - A.bytes_free) * 100 / B.bytes) '% Used_Space '.
FROM dba_temp_files B,.
(SELECT tablespace_name, bytes_free, bytes_used
V $ temp_space_header
GROUP BY tablespace_name, bytes_free, bytes_used) has
WHERE B.tablespace_name (+) = A.tablespace_name
GROUP OF A.tablespace_name, B.bytes, A.bytes_free, A.bytes_used
ORDER BY DESC 4; -
How to check the arhice mode is on or not according to the pl/sql procedure
Hello
I'm trying to figure out how to check the mode archive inside begin end block. Basically, I'm developing a procedure that returns in mode archive.
I know that the following command returns the status of fashion archive but I can't do the job inside the begin end block.
"list of archive logs.
I'll be appricated if you show me how to call the above command inside begin end block.
Kind regards.Hello
If you want to see archive log mode is activated, you can simply check V$ database.
select log_mode from v$database
That is what you want, or is there something more, you need?
David
-
How to check the status of the import in Windows?
Hello
Import runs in my box of Wndows. The log file is not updated since long. How to check the status of the import job? FYI its oracle 10g.
And I checked the database which.
FYI
===
Select * from DBA_DATAPUMP_SESSIONS;
no selected line.
Select * from DBA_JOBS_RUNNING;
no selected line
Select the username, machine, module, sid, State, event, seq #, session seconds_in_wait $ v where type <>'IMPORT' and username = "AUTOTIME";
no selected line
Please let me know.You actually look at the session of $ v and check the status of the session that is created by the import job.
Sometimes the underlying tablespace is full, so import session just hangs, it must increase the size of the storage space.
You should also look at alert.log file and see if there is any error message like "cannot extend table space '.
Maybe you are looking for
-
How to lock Firefox in a corporate environment?
I need to lock a bunch of preferences so that they cannot be changed by users on multiple computers Windows 7, Firefox running. I was able to get most of the settings that I needed locked in a test environment by using the Firefox Addon-GPO and a .ad
-
Unable to open the address bar
I need help. Here is the list of the toolbars installed on my Firefox (latest version): Wiki, Google, and Care2. The thing is that I closed them all (together with the address bar and Favorites bar). Now it there is no way I can return the address ba
-
Satellite L20-101: could not connect my TV with the svhs
Hi guys,. I have a problem.I have a L20 - 101 and I can't connect my tv with my toshiba svhs output.I reinstalled the drivers for the motherboard and videography, what can I try?Thank you
-
use the date of birth of true or false
will you please suggest me the right to use the real birth date apple ID or I can use a fake if I use the original, many people know my date of birth and they can easily forward to reset my apple id security question or I can use a birth date wrong,
-
BTooth works do not after Windows Vista upgrade (Btooth works without problems) for W7At the moment I have problems connection BlackBerry device and other devices via Btoothmessages 1: 'softwarfe device driver was not successfully installed ".message