[solved] Using xprop to set a property
xprop(1) has a "-set" option. I can't figure out how to use it. The "surf" browser is scriptable by setting a property named "_SURF_URL" to the URL you want it to load. I've tried these:
$ xprop -id 14680096 -set _SURF_URL http://www.google.com
xprop: error: unsupported conversion for _SURF_URL
$ xprop -id 14680096 -f _SURF_URL STRING -set _SURF_URL http://www.google.com
xprop: error: Bad format: STRING.
(The "id" is the one printed by "surf -x", and is correct, since I can use it to read properties.)
How do I use this?
Last edited by ataraxia (2009-08-12 14:55:01)
The -f option isn't that straightforward... see the description of 'format' and 'dformat' in xprop(1).
This should work:
xprop -id 14680096 -f _SURF_URL 8s -set _SURF_URL http://www.google.com
Similar Messages
-
Setting nonProxyHosts property not working
How do you set the nonProxyHosts property for Jrockit 1.5.0_11. We are trying to set this property for Aqualogic ESB which is using Jrockit by setting this property in net.properties under Jrockit but it does not seem to honor it. It seems to pick up proxyHost property though.
Well the issue is when I run the installSvc.cmd to install Aqualogic as a service and I am setting environment variable JAVA_OPTIONS with -DnonProxyHosts with a pipe (|) delimited list (e.g host1|host2|host3), but the script barfs and I think it does not like pipe symbol. May be this is more of a Aqualogic question than a JRockit one, or may be a windows script. Do you know if I need to escape the pipe symbol somehow? I tried escaping it with ^ but that did not help.
-
Set trigger property using JDAPI
Hi.
I have a couple of forms I need to modify using JDAPI. Among others I need to set trigger property "Fire in enter query mode" from no to yes. But I just cant find the way how to do this.
Any help would be appreciated.
GregorThis help may have some info..
http://www.oracle.com/webapps/online-help/forms/10g/
Please expand the "Programming Oracle Forms with JDAPI" item and look inside.
http://www.oracle.com/webapps/online-help/forms/10g/state/content/navId.3/navSetId._/vtTopicFile.jdapi%7Cjdapi_subclassobjprops~html/vtTopicId./ -
Set system property using -D flag that references another system property
Hi,
I'm interested in doing something like the following
java -Dmy.prop=${user.home}/.tmpdir
Setting the property in Java code is not an option.
Can this be done?
Thanks for helping.The only way I think you could do this is to ask the os for this value.
i.e windows: $HOMEDRIVE\$HOMEPATH
java -Dmy.prop=$HOMEDRIVE\$HOMEPATH\.tmpdir
linux: ~
java -Dmy.prop=~/.tmpdir
Or to use a small java application to return the value into the command line:
java -Dmy.prop=$(java HomeDir)/.tmpdir
class HomeDir {
public void main (String ... args) {
System.out.println(System.getProperty("home.dir"));
} -
How to Set "DateOnly" property in DateTimeControl using Javascript.
How to Set "DateOnly" property in DateTimeControl using JavaScript.
Is there any specific reason you want to set it through JavaScript ? You can directly set the DateOnly property in the markup itself.
<SharePoint:DateTimeControl runat=server id="dtControl" DateOnly="true"></SharePoint:DateTimeControl>
Please can you elaborate on what exactly is the requirement for setting this through javascript?
Geetanjali Arora | My blogs | -
How to use Oracle jdbc driver fixedString property?
Oracle pads values in char columns so if I insert "a" in a CHAR(2) column then I cannot get that record by comparing that column to "a", I should get it by comparing it to "a ". Right?
To solve this problem the Oracle jdbc driver has the property fixedString but I cannot make it work. (look for fixedString here )
I'm using ojdbc14.jar driver for Oracle 10gR2 and accessing an Oracle 10gR2 database.
This is my code:
try {
Properties props = new Properties();
props.put("user", "****");
props.put("password", "****");
props.put("fixedString", true);
Class.forName("oracle.jdbc.driver.OracleDriver");
String jdbcUrl = "jdbc:oracle:thin:@<host>:<port>:<sid>";
Connection connection = DriverManager.getConnection(jdbcUrl, props);
PreparedStatement ps = connection.prepareStatement(
"SELECT * FROM MY_TABLE WHERE MY_TABLE_ID = ?");
ps.setObject(1, "abc"); // (*)
// MY_TABLE_ID is CHAR(15)
ResultSet rs = ps.executeQuery();
while (rs.next())
System.out.print("data: ");
System.out.println(rs.getString("MY_TABLE_ID"));
rs.close();
ps.close();
connection.close();
} catch (SQLException ex) {
ex.printStackTrace();
} catch (ClassNotFoundException ex) {
ex.printStackTrace();
The above code executes fine (no exceptions thrown) but the ResultSet is empty after executeQuery().
If I change the line (*) for
ps.setObject(1, "abc ");
Then I get the column I wanted. So it seems the driver is ignoring the fixedString option.
I've also tried changing the line (*) for
ps.setObject(1, "abc", java.sql.Types.CHAR);
But the ResultSet I get is empty again. What am I missing?
Thanks in advanceEs un Bug se corrige en la versión del OAS 10.1.2.3
Bug 10222534: UNABLE TO SET FIXEDSTRING PROPERTY IN DATASOURCE -
Setting the property "Cache Level" of the pcd object to "None".
Hi all
I have an EP 6.0 on NW04 SPS 17. I need to solve a problem and found note 960975. My question is, how could we change the setting the property "Cache Level" of the pcd object to "None"? Where should I go? Is it on the NWA, Visual Admin, Configtool or somewhere else?
Many thanks before.
Regards
Agoes
Message was edited by:
Agoes Boedi PoerwantoHi Agoes,
By using the tool Support Desk -> Portal Content Directory -> PCD Administration you can do this. Please note that this tool should only be used in debugging situations.
There is a new section "Release a Unit from the cache cluster wide" in this tool. With this new functionality, you can remove an object from the cache on all nodes in the cluster. If the object is still in use, it will be reread immediately from the database
Releasing the entire PCD cache can severely affect performance. Hence, if there are inconsistencies suspected with a single object, e.g. a role or an iview, the new section "Release a Unit from the cache cluster wide" can be used to evict the given object from the cache on all nodes in the cluster.
Cheers,
shyam -
How to use open data set in SAP
Hi SAP Gurus,
Could anyone help, how to use open data set in SAP.
I need to upload a file from Application server (ZSAPUSAGEDATA) to internal table (IT_FINAL).
Thanks & Regards,
Krishnau2026Hi Krishna.
These are the steps you need to follow.
tables: specify the table.
data: begin of fs_...
end of fs_ " Structure Field string.
data: t_table like
standard table
of fs_...
data:
w_file TYPE string.
data:
fname(10) VALUE '.\xyz.TXT'.
select-options: if any.
PARAMETERS:
p_file LIKE rlgrap-filename.
w_file = p_file.
select .... statement
OPEN DATASET fname FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
*OPEN DATASET fname FOR OUTPUT IN BINARY MODE.
LOOP AT t_... INTO fs_....
write:/ .....
TRANSFER fs_... TO fname.
or
TRANSFER t_... TO fname
ENDLOOP.
CLOSE DATASET fname.
Reward points wisely and if you are benefitted or ask for more detailed explanation if problem not solved.
Regards Harsh. -
Is their a way to set system property in weblogic console
Hi WL USERS
Is their a way to set system property in weblogic console ie (http://localhost:8080/console) ? if yes, can we access that property in code using System.getProperty()?
Regards
vishyYes, It is Possible.
Please check the Option-1). Mention in the Following Link: http://weblogic-wonders.com/weblogic/2010/03/26/nodemanager-based-managedservers-setting-mem_args/
Here i tried to set a Custom Property "*-Duser.dir=E:/MyDirectory*" through the Admin Console.
NOTE: Setting any Option like JAVA_OPTIONS/CLASSPATh etc through Admin Console will work only when you start your Servers using the NodeManager. It means when you start your ManagedServers through AdminConsole...or Using nodeManager based WLST scripts.
Thanks
Jay SenSharma
http://weblogic-wonders.com/weblogic/ (WebLogic Wonders Are Here) -
How to use BAPI_OBJCL* to set classification data for Techn. Objects - PM ?
Good afternoon !
I´m working in a project to integrate some legacy system with the ECC 6.0, and I need to do some activities like, create functional locations and equipments in SAP PM, I have done this creating Z RFC modules that call bapis like BAPI_FUNCLOC_CREATE and BAPI_EQUI_CREATE, but these BAPIs doesn´t fill classification data, so, in a first moment, I solved this using BDC, but I would like to solve these needs using standard BAPIs if possible.
To solve the classification, I tried to do it using the BAPI_OBJCL* BAPIs(BAPI_OBJCL_GET_KEY_OF_OBJECT, BAPI_OBJCL_CREATE_KEY), but I didn´t find any example of using these bapis with technical objects, so I tried to test the BAPI_OBJCL_GET_KEY_OF_OBJECT in a first moment and, when I call it passing '003' as classtype(003 is the classtype for the functional locations), this bapi returns me "Class type 003 requires additional objects"(the same occurs if I try it with 002, for equipment). What means this message ? Need I to do some customization in img/spro, or cannot these bapis be used with PM technical objects ?
Thank you for your attention,
WilsonHi all !
I have found the solution for this problem, I found that I was trying to use the wrong functions for my case, so, to solve my needs here, I will use BAPI_OBJCL_CREATE to set the classification data for Functional Locations and Equipments, and I can use BAPI_OBJCL_GETCLASSES to list all classes assigned for a Technical Object, and BAPI_OBJCL_GETDETAIL to get all characteristics assigned to a Technical Object for a specific class.
Thank you all for your attention !
Wilson -
How do I set ClientCredentials property to windows credentials?
As per MSDN
http://technet.microsoft.com/en-us/library/92a9678c-bc4f-4d7a-ba44-85989bfe27ca
Building Applications Using the Reporting Web Service and the .NET Framework we have to set Credentials as below
ReportingService2010 rs = new ReportingService2010();
rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
However, after creating the proxy I don't see proxy has Credentials property as MSDN says. The proxy has ClientCredentials property but it is not derived from ICredentials
I'm using http://serverurl/ReportServer/ReportService2010.asmx
How do I set ClientCredentials property to windows credentials in this case?But i dont see "Add web reference" option.
Have you read the link I posted? "Add Service Reference" => button "Advanced" => "Add Web Reference"
to check if the folder already exists
Sure, with
ReportingService2010.ListChildren
Method
Olaf Helper
[ Blog] [ Xing] [ MVP] -
Using Expression in the PageName Property of a Tablix
Dear Community, my scenario includes SSRS 2008R2/2012 and RDL reports
I need Excel 2010 sheets to be named; every Tablix a different sheet. The new Property PageName is perfect and works great.
But I dislike to manually type the name and I'm looking for a way to set the PageName dinamically... The Dataset name could be my solution; I use
basic Tablix and just need to seek the name to set the Property.
I thought to the Custom Code. The (wrong) idea was to pass a field and retrieve the dataset name from it. No Success:
=Code.getDatasetName(Fields!myFLD.Value)
Public Function getDatasetName (byval myFLD As Field) As String
return myFLD.ParentName.ToString 'invented method
End Function
Thank in advance
pfHi pf,
If I understand correctly, you have several tablix in the report, and it has page break between each tablix.
As per my understanding, we need set the PageName property for each tablix manual. Since that, we have to manual type the dataset name for each tablix. If we have add page break in one tablix, we can use field value expression to display group values as
sheet name in excel.
Reference:
Naming Excel Worksheets
Regards,
Alisa Tang
If you have any feedback on our support, please click
here.
Alisa Tang
TechNet Community Support -
In which function i should set rendered property of components
Hi
Thank you for reading my psot.
it is really making me mad.
can some one tell me which function of a backing bean i should use to set rendered property of some components ?
i tried all of them and none of them seems to apply the rendereing propretiy.It is easy to find out
Add a message group to the Page. Then in each method add
info("At method <method name>");
Run the application and see the results.
- Winston
http://blogs.sun.com/roller/page/winston?catname=Creator -
Use of weblogic.system.home property
Hi,
I am working on Windows 2000, with weblogic 6.0.
I am trying to launch the default weblogic server with the
script startWebLogic.cmd, but I modified the original script
to set the current directory as the script directory.
So I commented the cd ..\.. command and set the weblogic.system.home on the java
weblogic.Server, as it is
written in the adminguide page 2-6
But it seems that weblogic can no longer find the config.xml file.
In fact the exception I got is the following "weblogic.management.configuration.ConfigurationException:
XmlRepository directory .\config does not exist" and the startup.log file contains
the following warning : "####<Feb 10, 2001 12:12:51 PM EST> <Warning> <Management>
<nicolas> <myserver> <main> <> <> <000000> <Unrecognized property: system.home>"
So I am just wondering if the system.home property is still supported or if it is
a documentation mistake (or misunderstanding)
Else is there any way to start a weblogic server with the home dir different than
the installation root.
Thanks
But"-Dweblogic.RootDirectory=c:\bea\wlserver6.0sp1" . . . Thank you Vijay at BEA
"David Brown" <[email protected]> wrote:
>
Does any have any more information regarding using the new 'ServerMBean.RootDirectory'
property ? I really need to find a way to tell weblogic 6.0sp1 where
to find
it's XmlRepository. (./config)
In our instalaltion, "./config" is under c:\bea\wlserver6.0sp1\, but
we are launching
the JVM from a directory outside of c:\bea\wlserver6.0sp1, so I need
to tell the
VM where to look for ./config
Thanks,
David
"Sanjeev Chopra" <[email protected]> wrote:
Nicolas GANDRIAU <[email protected]> wrote in message
news:3a859168$[email protected]..
Hi,
I am working on Windows 2000, with weblogic 6.0.
I am trying to launch the default weblogic server with the
script startWebLogic.cmd, but I modified the original script
to set the current directory as the script directory.
So I commented the cd ..\.. command and set the weblogic.system.homeon
the java
weblogic.Server, as it is
written in the adminguide page 2-6
But it seems that weblogic can no longer find the config.xml file.
In fact the exception I got is the following"weblogic.management.configuration.ConfigurationException:
XmlRepository directory .\config does not exist" and the startup.logfile
contains
the following warning : "####<Feb 10, 2001 12:12:51 PM EST> <Warning><Management>
<nicolas> <myserver> <main> <> <> <000000> <Unrecognized property:system.home>"
So I am just wondering if the system.home property is still supportedor
if it is
a documentation mistake (or misunderstanding)This is a bug in 6.0 (system.home does not work).
This will be fixed for upcoming ServicePack 1, which defines a new
property - ServerMBean.RootDirectory
Else is there any way to start a weblogic server with the home dirdifferent than
the installation root.
Thanks
But -
Windows installer sets VersionNT property to 603
Hello,
OS: Windows 10 Technical Preview
I've got msi package, which has LaunchConditions based on VersionNT(64) property, but installer sets this property to 603 (corresponding to Win8.1\2012r2). I wrote custom action, where I call VerifyVersionInfo function, and on 9879 build it worked,
but starting from 9926 It doesn't. It seems that VerifyVersionInfo now requires proper GUID in manifest file, that is not possible for binary custom action. What is the proper way to detect Windows 10 version in msi package?
I tried to ask this question at Windows Insider Program, but i was suggested to ask it here.
Thank you.Hello,
OS: Windows 10 Technical Preview
I've got msi package, which has LaunchConditions based on VersionNT(64) property, but installer sets this property to 603 (corresponding to Win8.1\2012r2). I wrote custom action, where I call VerifyVersionInfo function, and on 9879 build it worked, but starting
from 9926 It doesn't. It seems that VerifyVersionInfo now requires proper GUID in manifest file, that is not possible for binary custom action. What is the proper way to detect Windows 10 version in msi package?
I tried to ask this question at Windows Insider Program, but i was suggested to ask it here.
Thank you.
Hello,
1. Windows 10 has not been official released that there is not a solid version for us to detect, and currently issues related to windows 10 are not supported, you could consider submitting this feedback with the
Give us feedback part shared in the following document.
http://windows.microsoft.com/en-us/windows/preview-updates-feedback-pc
2. It's not clear which publishment you are using, if possible, you could share the detailed information like the tool to publish your project and the configuration in that feedback.
Thanks for your understanding.
Regards,
Carl
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
Importing .ISO files into SCVMM2012 R2 - Folder Naming Quirk
We've run into a folder naming issue in regards to importing .ISO's into the VMM Library. When specifying a folder to import the .ISO into, VMM adds %20 to the folder names where spaces are. Not a huge deal but wonder if anyone has a way around this
-
How do I get my ereader to appear on the left hand side of Digital Editions?
I have a Kobo Vox ereader and it works well. It connects to my computer and appears when I look at My Computer. It doesn not appear on the left hand side of Digital Editions under Devices (devices does not appear either) when ADE is started. The
-
Uploading TAX Classification data in material master
Hi, I have to upload tax classification data in material master for countries DE,IT,FR,ES,CH and GB. I have used BAPI_MATERIAL_SAVEDATA and passing values to table TAXCLASSIFICATIONS. But bapi is uploading tax classification only for country DE. When
-
Hi All, i have configured External RFC monitoring using application monitor in BPM. the problem is the max wait time given in setup is upto 25 seconds only. i have given the maximum. the response time in operations that i am getting is 150 milliseco
-
Photobooth makes constant beeping or "crickets" via video mode
running on mac os x 10.6.8 on a later 2008 13inch macbook The Beeping only occurs when the webcam and mic are on together. Also in iMovie HD. If I make an audio file the beeping is gone. I've tried to research this issue and I found plenty of results