y****3 发帖数: 131 | 1 Design a backend store for storing metadata about files and directories
belonging to different users as part of an online storage service. The
logical data model is as follows:
--a user has zero or more files or directories
--a directory contains zero or more files or sub-directories
--a file or directory has a relative path that is up to 32KB in length
--a file has a size and last modified time
This store should handle the following online queries efficiently:
--lookups on single files or sub-d... 阅读全帖 |
|
w****x 发帖数: 138 | 2 How to create two schemas A and B as metioned above? |
|
z**********8 发帖数: 2049 | 3 这个schema的东东,还是不明白放在那里的用意。
一个database里面,可以有multiple个schemes? 不知道谁有实际例子? |
|
c*****d 发帖数: 6045 | 4 在oracle里,schema == user
userA可以有emp
userB可以有emp
userA.emp和userB.emp是不同的实体 |
|
i****a 发帖数: 36252 | 5 AdvantureWorks 示例数据库就有. 例如 HumanResources schema objects 只有人力资
源的人可以用 |
|
c*********e 发帖数: 16335 | 6 比如用户名是hr,schema就是hr
admin可以设置hr的权限。 |
|
z**********8 发帖数: 2049 | 7 一个database里面,可能有多个schema? |
|
B*****g 发帖数: 34098 | 8 其实并不完全一样
schema == user + 其他实体
不过这只是概念上吹毛裘皮 |
|
p*****m 发帖数: 205 | 9 现在两个系统用不同DB(MySQL, Oracle),任何一个DB被插入或者删除一条记录就得实时
通知另外一个DB做相关的操作,2个DB table的schema不相同,更新table的时候需要有
映射逻辑处理?什么方式最高效呢? Oracle 提供 java stored procedure with
trigger,但是好像没有慢。 |
|
f*******4 发帖数: 345 | 10 I tried DatabaseMetaData.getTables(catalog, schema, "%", new String[]{"TABLE
"}) and got nothing.
I used ResultSetMetaData.getSchemaName(column) and got an empty String.
Anything wrong with the code or Oracle 9i JDBC driver hasn't implemented
those APIs properly? |
|
g**********y 发帖数: 14569 | 11 Anyone knows a good Java XML instance generator (from XSD schema)? open
source is better.
Sun used to have a instance generator, but took off from its website. And I
heard it doesn't do well with XSD. If you still have a copy of this xmlgen.
jar, can you share it?
Thanks. |
|
g*****g 发帖数: 34805 | 12 No, I think I have WTP, that's it.
When you create an XML, you have the optino to
create xml from dtd or xml schema |
|
b**r 发帖数: 352 | 13 I'm trying to implement something as described below. I know it can be done
using a simpleType then extension in a complexType, but I want to
encapsulate everything inside a single complexType, which is much easier for
the xslt to process, since XSLT 1.0 is not schema conscious.
Is this possible?
Thanks!
mode0
阅读全帖 |
|
c********1 发帖数: 5269 | 14 from google translate
scheme==>方案
schema==>架构 |
|
e*******o 发帖数: 4654 | 15 database schema
数据库的模式
Maven's versioning scheme
Maven 的版本号命名规范。 |
|
c***y 发帖数: 8 | 16 急问,
哪位过来人给点建议吧。。。
用什么软件(买版权也可以)或者free software,可以开发xml schema??
//bow 1000000000000times |
|
c********e 发帖数: 383 | 17 【 以下文字转载自 Programming 讨论区 】
【 原文由 crystalike 所发表 】
didnt see any schema related code in SAX...so i have to use the
xerces parser??
any one have experience? |
|
P*****x 发帖数: 72 | 18 Which XML parser are u using? For apache parser, you need to set the
external schema location in parser setup code. |
|
c**********2 发帖数: 144 | 19 有没有人知道CSV file还有一个什么schema啊?如果有的话,怎么生成这个文件?SAS
可以OUTPUT这个文
件吗? |
|
|
w*****s 发帖数: 122 | 21 在XML文档中使用数据类型
什么是XML文档中的数据类型?
微软提供的XML Schema版本支持数据类型。作为一项预先展示的技术,它对于那些
想要用schema和丰富的数据类型构造原型和增长经验的开发者来说是很有用的。微软积
极参与制定逐步形成的W3C的XML Schema标准。开发者需要注意这个版
本的XML Schema是要变化的。在微软IE5当中,元素值能被指定数据类型。数据类
型能够通过XML Schema或根据实际情况被指定。以前,XML元素值只有一种类型(字符
串),所以开发者要处理XML文档必须花时间转换元素值。键入你的
XML数据,解析器会进行数据类型转换。另外,由于元素值有特定的数据类型,所
以元素值的改变也要符合数据类型。这给你提供了一种确认使用者输入的方法。
如何指定XML元素值的类型?
通过XML Schema指定元素值的类型,你必须在XML Schema的开头声明数据类型的名
域和schema的名域。
c******n 发帖数: 4965 | 22 I don't think so
if you check the following simple code
///////////////////////
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class TTT {
private String p ;
public String getP() { return p;}
public void setP(String p) { this.p = p;}
public void fun() {
System.out.println("value" + p);
}
public static void main(String args[]) {
ApplicationContext ctx ... 阅读全帖 | |
|
w*****s 发帖数: 122 | 23 XML Schema
什么是XML Schema?
W3C XML Activity Page 声明:“尽管XML1.0提供了一种机制,文档类型定义(
DTD)给标记的使用加了限制,但是对XML文档的自动处理需要更严格更全面的工具。需
要主要体现在对应用软件各部分的结合、文档结构、属性和数据类型
等等的约束。W3C XML Schema工作组正忙于定义XML文档的结构、内容和语义。”
微软IE5支持XML Schema,这项预先展示的技术是建立在递交给W3C的XML-Data草案
的基础上的。XML Schema可被认为是XML-Data草案的子集,它符合文档内容描述(DCD
)提议的特点。
IE5中的XML解析器能够根据文档类型定义(DTD)或XML Schema解析XML文档。XML
Schema是用来声明内容模式的基于XML的语法。它有DTD所有的功能,并且还有其他的功
能如数据类型定义。
如何建立XML Schema?
请在下面的XML文档中找一找每个节点的schema声明。
t******l 发帖数: 10908 | 24 具体算法不知道。但所有的人类下棋这种快速而简单的思维,都是基于心理学上的
schema,也就是 prior knowledge。在这些 schema 基础上做 variation。
跟深蓝不同的是,现代计算机的发展,阿尔法狗可以把全世界所有已知的下过的棋局
都装在机器里。这样阿尔法狗可以计算出基本上人类在给定时间里可以想出来的所有
根据过去 schema 的 variation,以及各种 variation 的概率。
这样在机器训练的时候,阿尔法狗可以自己跟自己的克隆下,创建更多的 variation,
产生更多的 schema。
如果不在所有的 schema 的 variation 里,多半是无理棋。那阿尔法狗硬算也
不会吃亏。
外加跟石头下的时候,石头过去下的棋的所有 schema 都存在。而且比赛前阿尔法狗
还可以克隆一个石头风格阿尔法狗,事前把石头所有大概率的 schema variation
都跑一遍。
等等等等。 | |
|
w*****s 发帖数: 122 | 25 访问经过类型定义的XML值
什么是经过类型定义的XML值?
经过类型定义的XML值是指在XML Schema中被指定数据类型的元素值。XML解析器使
用schema来确认文档。
微软提供的XML Schema版本支持数据类型。作为一项预先展示的技术,它对于那些
想要用schema和丰富的数据类型构造原型和增长经验的开发者来说是很有用的。微软积
极参与制定逐步形成的W3C的XML schema标准。开发者需要注意这个版
本的XML Schema是要变化的。
除了拥有字符串值以外,每个XML元素也可以有经过类型定义的值。例如下面的XML
元素:
1970-09-30
值可以是“1970-09-30”,也可以是经过类型定义的“Web Sep 30 00:00:00 PDT
1970.”
如何访问经过类型定义的XML值?
可以通过XML对象模式访问经过类型定义的数据。就好象你能根据元素节点的节点
值性质找到元素值一样,你能根据元素本身的节点类型值找到经过类型定义的元素值。
例如,考 |
|
|
b**********5 发帖数: 7881 | 27 第三面: 一开始写一个非常简单的题目, 比如有这么一个json schema:
{ “score” : 0.9,
"id" : "abc",
"categories" : ["japanese", "bento"]
}
然后现在给你一个collection of those objects, sorted by score, remove
duplicate ids, return a new list
我这题竟然写的有点磕磕碰碰, 一开始稀里糊涂去remove duplicate score。。 然后
在弄了个hashmap存id为key, 然后object为value, 准备再输出hashmap。。。 然后
买上被指出不对, 最后改为hashset, 然后写对。。。
然后他问,我现在要每个schema object, 要output它的category list中的一个
category。 但一个category只能有一个corresponding schema object。 现在要
output as many schema... 阅读全帖 |
|
l***r 发帖数: 459 | 28 I have dba priviliege. I am able to create a proceduce in other schema, say A
schema. However, when I try to query a table in other schema, say B schema, in
procedure, I got "table or view doesn't exist". I have to grant select on that
table to A schema and make procedure compiled.
I wonder why?
Thanks.
sample:
create or replace procedure a.proc
(
para_out out varchar
)
as
begin
select notes into para_out from b.first; <-- error happened here
end;
/ |
|
j******n 发帖数: 108 | 29 目前 xml db 最为人诟病的就是 performance
抛开技术上的困难,xml 作为一个 data model
还是反映了很多实际应用中 relational model 难以处理的cases
比如最有名的就是 data exchange
还有 schema-less/flexible schema,传统 relational model 都是先设计 schema,
normalization, 然后 table partitioning
这在很多 applications 中都是不现实的,
比如 content management systems, messaging system, SaaS
xml 在这些场景就显的非常自然
回到技术上,xml db 也不是所有的都慢
oracle 的 claim 是对于 xml with static schema,性能还是很不错的
但是说回来,如果都是 static schema 的话,为什么还要用 xml 呢
relational model 就很好了呀 (除了需要 exchange)
所以对于 xml 需求并不是不存在
只是现在似... 阅读全帖 |
|
w**d 发帖数: 27 | 30 Leetcode 简单 和中等难度的题目 已经刷过两遍 勉强能做到bug free
大概背景如下:
小弟波士顿东北大学毕业
有2年半的工作经验,主要是做大数据, skills 如下:
• AWS cloud products (EC2/S3/RDS).
• Big Data (Hadoop/Hive/Zookeeper/Cloudera), Real-time computation
(Apache Storm), Messaging system (Apache Kafka), Real-time graphing (
Graphite), NoSQL (HBase,Aerospike),
• Web application framework (Spring MVC), REST API service,
Hibernate, JPA, Apache Tomcat
• Schema design (star schema/snowflake schema/closure tables), data
wareho... 阅读全帖 |
|
t*******r 发帖数: 22634 | 31 http://en.wikipedia.org/wiki/Schema_(psychology)#Schematic_proc
Schematic processing
Through the use of schemata, a heuristic technique to encode and retrieve
memories, the majority of typical situations do not require much strenuous
processing. People can quickly organize new perceptions into schemata and
act without effort.[7]
However, schemata can influence and hamper the uptake of new information (
proactive interference), such as when existing stereotypes, giving rise to
limited or biased d... 阅读全帖 |
|
S***k 发帖数: 370 | 32 1.
Get mapped users of a login
sp_helplogins
Get principal_id of a database user
select * from sys.database_principals
Get schema owned by the database user
select * from sys.schemas
change schema ownership if necessary
ALTER authorization on schema::schema_name to other_principal_name
Drop database user
Drop user user_name
Get session id of connections
select * from sys.dm_exec_sessions where login_name = 'login_name'
Kill session_id
DROP Login login_name
2.
Grant VIEW Definition ON OBJECT::Pro |
|
m*********y 发帖数: 127 | 33 installSqlServer:
[sql] Executing resource: C:\EdifecsSetups\install\database\schema\
dist\SqlServer\Create_Enablement_User.sql
[sql] Failed to execute:
[sql] USE Master
BUILD FAILED
C:\EdifecsSetups\install\database\schema\build\build.xml:476: The following
error occurred while executing this line:
C:\EdifecsSetups\install\database\schema\build\build.xml:480: The following
error occurred while executing this line:
C:\EdifecsSetups\install\database\schema\build\build.xml:83: ja |
|
g***l 发帖数: 18555 | 34 自问自答一下,XSD就跟TABLE SCHEMA是一样的,要不知道TABLE SCHEMA也就没法
SELECT,SSIS有一个XML CONTROL可以VALIDATE XSD,出错可以SEND EMAIL,或者用DATA
FLOW CONTROL,DATA SOURCE ANY XLM 加自己的XSD,这样就可以把XML SCHEMA翻译成
TABLE SCHEMA了。
老板提出的要求,自己不学真是答不出来啊 |
|
c**t 发帖数: 2744 | 35 it asks to execute:
http://www.w3.org/2000/09/xmldsig#" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xrml="urn:mpeg:mpeg21:2003:01-REL-R-NS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
C********r 发帖数: 145 | 36 Sorry, I have no Chinese software on this machine...
I am new to WPF and Infragistics Controls. I am trying to accomplish a
seemly simple task. use Xamdatagrid to display a collection of data records
retrieved from database.Besides the columns from the data records, I want an
additional unbounded column to contain a checkbox. I am having a really
hard time to get the databinding to work. I have spend 2 days to look up
examples and tutorials but none are complete or easy to understand(for me at
l... 阅读全帖 | |
|
b**********g 发帖数: 806 | 37 我的build.xml里要build两个xsd,象下面这样子.但是不能同时build两个,我看到有说u
se a nested element,用过的给个sample好吗,谢谢谢谢.
schema="${src.xml}/ruckusStreaming_1.0.xsd"
target="${target.src}"
package="net.company.ui.web.client.jaxb">
target="${target.src}"
package="net.company.ui.web. |
|
c******n 发帖数: 4965 | 38 cassandra's schema replication is flawed by design
you can have schema out of sync,
it could be that when you try to insert into the cf, it went to a
certain node, and that node does not have the latest schema def , and
that cf is not present
I once repeatedly reproduced the schema out of sync issue, but no time
to dig into that further now
but the
can
any |
|
c*****t 发帖数: 1879 | 39 Using jackson streaming api, how to create an AVRO container?
I tried the following.
Schema s = AvroUtils.getSchema (rs.getMetaData ());
AvroSchema schema = new AvroSchema(s);
AvroFactory f = new AvroFactory();
AvroGenerator g = f.createGenerator (m_os);
g.setSchema (schema);
g.writeStartArray ();
...
g.writeEndArray ();
g.flush ();
But the file generated does not contain the schema... |
|
N********n 发帖数: 8363 | 40 Qutoe: "Schema flexibility sounds like a great idea, but the only time
it's actually useful is when the structure of your data has no value"
LOL. Like I have said for a trillion times already, the so called
"big data" is only good at handling data w/o a fixed schema also
known as JUNK. How much value can you mine outta junk?
If your data has any kinda importance then it naturally has a structure
or a form of relationship that needs to be organized into a schema. If
you think some schema-less "bi... 阅读全帖 |
|
d*******r 发帖数: 3299 | 41 大家写 distributed 后台程序,经常要到处扔 JSON 吧,
不管你是用 REST 或者其它方式, 互扔 JSON 就是方便呀.
手写了很多次 JSON message 的 validator 后,
我觉得写 message validator 挺烦挺boring的,
(不要跟我说,你不校验 message, 或者你觉得手写validator很好玩...)
我觉得还是得找个标准的 validator 来用:
http://json-schema.org/examples.html
注意这个 validator,不仅校验 type,连 value range 就可以校验.
而且是跨语言的,有 Node, Python, Go, Java 等等各个语言的 validator lib
http://json-schema.org/implementations.html
就是说, 用这个 JSON schema 的话,发送JSON message 的双方,
定义好 JSON schema 后,call 一下 validator 的 lib 就完成 message 校验了.
对这个,... 阅读全帖 |
|
t**r 发帖数: 3428 | 42 mongodb是schema-less的db.
可是mongoose生生又在程序中定义了schema.
var schema = mongoose.Schema({
_id: { type: String, lowercase: true, trim: true,validate: validEmail }
, name: { first: String, last: String }
, salt: { type: String, required: true }
, hash: { type: String, required: true }
});
这是哪出啊?是不是违背了mongodb的初衷了?
大牛们怎么看? |
|
t****n 发帖数: 56 | 43
和XML对应的是RDF,W3C已经推出了推荐版本的draft了。在W3C上可以找到
它。偶这里的叙述不是很严格,偶把namespace中定义的概念体系粗略的称
为了schema。当然,自己可以定义自己的schema,W3C定义的schema(RDF)是
想要尽可能的包含OO以及通常的关系型数据库的概念,作为参考还是不错的
schema的。 |
|
i*****t 发帖数: 220 | 44 look at this:
xmlns:dt="urn:schemas-microsoft-com:datatypes">
~~~~~~~ why use dt prefix?
~~~~ why not use dt prefix?
|
|
b********g 发帖数: 47 | 45 每天在版上潜水,看大家写的面经,收益很多 呵呵。现在找工作告一段落,我也写一
下我面试的几个公司吧。本人UIUC CS MASTER
Google:
我第一家面的是Google,campus event听到的招人消息,9月底他们再次来学校进行
campus interview。这个campus interview是连续的两轮面试,各45分钟。题目都很简
单,后来看了版上精华区才知道原来100%都覆盖了。依稀记得是:
1、两个sorted array,求交集
2、已知一篇文章和它的inverted index,求可以覆盖所有单词的最小窗口。就是大家
讨论了好多次的题目
3、实现memcpy
4、上台阶问题,就是那个可以一步可以两步的fibonacci数
5、如何验证一个binary search tree的合法性
一周后收到onsite通知,奇怪的是让我改面software engineer in test。onsite是10
月24号,只有三场面试,题目都很简单,精华区几乎100%覆盖,不大记得了,只记得有
一题开放性问题问一个地图上面的若干个城市,根据什么因素来对这些城市进行排名,
... 阅读全帖 |
|
x***y 发帖数: 633 | 46 I published a web service in Visual Studio and this web service accepts a
message in the XML format of one predefined schema, which has been published
with the web service(I have the URL). The root of this schema has several
child node, each of which has several child elements. The question is, when
I try to consume this web service via a web page by inputing data into a
form, how to get the message from the data in the form according the known
schema, automatically? Is javascript or AJAX able t... 阅读全帖 |
|
r*******3 发帖数: 35 | 47 Ask.com, Oakland, CA
Test and Quality Engineer
Summary
Ask.com is looking for a Test and Quality Engineer who is technically
skilled and passionate about testing. The candidate will work side-by-side
with the Development and Release Engineering teams in a fast-paced, Agile/
SCRUM environment. This position must use their knowledge of QA best
practices and methods along with their scripting experience to ensure
quality throughout the site and maintain and extend Ask’s testing framework
including... 阅读全帖 |
|
n****p 发帖数: 193 | 48 Big data means big IT job opportunities -- for the right people
As companies embrace big data, they're in the market for high-level
strategists and communicators. Do you have the chops to snag a big data job?
As big data gathers momentum, it's helping to create big career
opportunities for IT professionals -- if they have the right qualifications.
According to a report published in 2011 by McKinsey & Co., the U.S. could
face a shortage by 2018 of 140,000 to 190,000 people with "deep analytical
t... 阅读全帖 |
|
Q*******1 发帖数: 91 | 49 怎么确定是否被学校坑了。给你看一个学校的课程表,你看看会不会被坑呢。
%%%%%%%%%%%%%%%这个是bgsu的课程设置
Fall
MSA 5020 Regression Analysis
MSA 5400 Database Management
MSA 5470 Exploratory Data Analysis
MSA 6010 Decision Optimization
MSA 6701 Analytics Project I
Spring
MSA 5160 Time-Series Analysis and Forecasting
MSA 5600 Business Intelligence
MSA 6440 Data Mining
MSA 6500 Big Data Analytics
MSA 6702 Analytics Project II
Summer
MSA 6450 Advanced Data Analytics
MSA 6600 Project Management
MSA 6703 Analytics Project III
%%%%%%%%%%%%%这个是S... 阅读全帖 |
|
Q*******1 发帖数: 91 | 50 怎么确定是否被学校坑了。给你看一个学校的课程表,你看看会不会被坑呢。
%%%%%%%%%%%%%%%这个是bgsu的课程设置
Fall
MSA 5020 Regression Analysis
MSA 5400 Database Management
MSA 5470 Exploratory Data Analysis
MSA 6010 Decision Optimization
MSA 6701 Analytics Project I
Spring
MSA 5160 Time-Series Analysis and Forecasting
MSA 5600 Business Intelligence
MSA 6440 Data Mining
MSA 6500 Big Data Analytics
MSA 6702 Analytics Project II
Summer
MSA 6450 Advanced Data Analytics
MSA 6600 Project Management
MSA 6703 Analytics Project III
%%%%%%%%%%%%%这个是S... 阅读全帖 |
|