metadata

How to query the permissions on an Oracle directory?

依然范特西╮ 提交于 2019-12-21 03:38:28
问题 I have a directory in all_directories, but I need to find out what permissions are associated with it, i.e. what has been granted on it? 回答1: This should give you the roles, users and permissions granted on a directory: SELECT * FROM all_tab_privs WHERE table_name = 'your_directory'; --> needs to be upper case And yes, it IS in the all_TAB_privs view ;-) A better name for that view would be something like "ALL_OBJECT_PRIVS", since it also includes PL/SQL objects and their execute permissions

What is the origin of __author__?

我的梦境 提交于 2019-12-21 03:25:18
问题 Where does the convention of using private metadata variables like __author__ within a module come from? This Python mailinglist thread seems to hint at some discussion about it in 2001, but by the sound of it the convention was already out in the wild. Other than that, I can only find this PEP on package metadata, which seems influential but tangental at best. I'd like to try and find some explicit material on the subject so my documentation tool can parse these metadata variables

Microsoft SQL Server - Who created a Stored Procedure?

霸气de小男生 提交于 2019-12-20 21:58:49
问题 Is there a good way to tell who created a stored procedure in SQL Server 2005 (that also works in 2008)? In SQL Management Studio I can right mouse/properties on a proc to get the created date/time but how do I discover the creator? 回答1: It may be too late for you now, but you can keep track of DDL activity. We have a table in our administrative database that gets all the activity put in it. It uses a DDL trigger, new to 2005. These scripts create a table in your admin DB (SQL_DBA for me),

Instance environment variables

走远了吗. 提交于 2019-12-20 17:43:21
问题 I have several Google Compute Engine instances, and have set instance metadata on each, under the assumption these are available on the instance itself as an environment variable, but they don't show up. I then read here that I need to query the metadata server for this data, but that just returns a 403 unauthorized when run from the instance itself. Is there a way to access metadata as environment variables? 回答1: It may be worth studying Metadata querying a bit more, but my guess is that you

Where to find Apple's new command-line delivery tool Transporter? [closed]

牧云@^-^@ 提交于 2019-12-20 09:19:47
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I received the following email from Apple: You can now deliver your app's In-App Purchase and Game Center metadata to the App Store using Transporter, Apple’s command-line delivery tool. To deliver with Transporter, you must use App Store packages, which are directories that contain your app's In-App Purchase

Get the unique constraint columns list (in TSQL)?

前提是你 提交于 2019-12-20 09:14:29
问题 I can get a list of unique constraints fairly easily with the following query: select * from INFORMATION_SCHEMA.TABLE_CONSTRAINTS where CONSTRAINT_TYPE='UNIQUE' But how do I get a list of the columns that each unique constraint applies to? 回答1: See INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE 回答2: Ed is correct, the columns are exposed on the constraint column usage view, here is the SQL for it. select TC.Constraint_Name, CC.Column_Name from information_schema.table_constraints TC inner join

Mac OS X : add a custom meta data field to any file

坚强是说给别人听的谎言 提交于 2019-12-20 08:39:12
问题 I would like to me able to set (and get) a custom metadata attribute for any file. What is the best way to do this? Thanks 回答1: The OpenMeta framework is a de-facto third-party standard for adding metadata to OS X files using extended attributes. It is used by a number of third-party applications. 回答2: Custom attribute names work for me: $ xattr -w com.apple.metadata:MyAttribute gfdylvyieo a.txt $ mdls -n MyAttribute a.txt MyAttribute = "gfdylvyieo" $ mdfind gfdylvyieo /private/tmp/a.txt $

after using python mutagen,metatags not displayed

大兔子大兔子 提交于 2019-12-20 05:53:46
问题 I wanted to edit the meta data of a bunch of mp3 files,so I used python mutegan. The details of the mp3 file before running mutagen I used this simple code to change the details of the mp3 file. from mutagen.easyid3 import EasyID3 audio = EasyID3("C:/wamp/www/music/songs/showkali.mp3") audio['genre']='pop' audio.save() After running the program the details cannot be seen in the properties. The details of the mp3 file after running mutagen I figured out this is due to change in id3 tag version

How to use SQL to query the metadata in Microsoft Office Access? Like SQL Server's sys.tables, sys.columns etc

故事扮演 提交于 2019-12-20 05:44:10
问题 I'm totally new to Access but I'm familiar with SQL Server. I want to know if it's possible to use SQL to query the metadata in Microsoft Office Access? Like SQL Server's sys.tables, sys.columns etc. Thanks in advance. 回答1: use SELECT Name FROM MSysObjects WHERE Left([Name],1)<>"~" AND Left([Name],4)<>"MSys" AND Type In (1,4,6) ORDER BY Name; for table names list of table names and a list of database objects 来源: https://stackoverflow.com/questions/21350488/how-to-use-sql-to-query-the-metadata

Extracting Metadata from Website

元气小坏坏 提交于 2019-12-20 05:31:33
问题 I was wondering if there's a way in javascript that allows me to process the html source code that allows me to take out specific tags that I want? Sorry if it sounds easy or too simple. i am new to programming. 回答1: Use DOM it can pull data from webpages if you know the structure. 回答2: If you have the HTML in a string, then you can use: var str = '<html></html>'; // your html text goes here var div = document.createElement('div'); div.innerHTML = str; var dom = div.firstChild; // dom is the