是否有像Google Docs这样的Office 365开发API?我正在搜索网络,但我无法找到.
我正在尝试在我的ubuntu上安装openjdk-7,但是我收到以下错误:
$ sudo apt-get install openjdk-7-jre
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openjdk-7-jre is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package openjdk-7-jre has no installation candidate
Run Code Online (Sandbox Code Playgroud)
我想我错过了一些回购或类似的事情,但我无法找到任何参考地点和内容.
某些字符,例如Unicode字符'LATIN SMALL LETTER C WITH CARON'可以编码为0xC4 0x8D,但也可以用"LATIN SMALL LETTER C"和"COMBINING CARON"的两个代码点表示,即0x63 0xcc 0x8c.
更多信息:http://www.fileformat.info/info/unicode/char/10d/index.htm
我想知道是否有一个库可以将"拉丁文小写字母C"+"组合卡伦"转换为"拉丁文小写字母C卡通".或者是否有包含这些转换的表格?
Facebook曾经使用以下URL格式撰写邮件:
http://www.facebook.com/?compose&id=XXXXXX&message=...
Run Code Online (Sandbox Code Playgroud)
但是,上述URL不再起作用:它只是将用户转发到Facebook主页.有没有人可以通过URL params撰写Facebook电子邮件?
我想在Ubuntu上通过rvm安装Ruby Entreprise Edition.我正在运行以下内容:
$ rvm install ree --with-readline-dir=/home/ubuntu/.rvm/usr --with-iconv-dir=/home/ubuntu/.rvm/usr --with-zlib-dir=/home/ubuntu/.rvm/usr --with-openssl-dir=/home/ubuntu/.rvm/usr
Run Code Online (Sandbox Code Playgroud)
但是,它失败并出现以下错误:
Installing Ruby Enterprise Edition from source to: /home/ubuntu/.rvm/rubies/ree-1.8.7-2011.03
ree-1.8.7-2011.03 - #fetching (ruby-enterprise-1.8.7-2011.03)
ree-1.8.7-2011.03 - #extracting ruby-enterprise-1.8.7-2011.03 to /home/ubuntu/.rvm/src/ree-1.8.7-2011.03
ree-1.8.7-2011.03 - #installing
ERROR: Error running './installer -a /home/ubuntu/.rvm/rubies/ree-1.8.7-2011.03 --dont-install-useful-gems ', please read /home/ubuntu/.rvm/log/ree-1.8.7-2011.03/install.log
ERROR: There has been an error while trying to run the ree installer. Halting the installation.
Run Code Online (Sandbox Code Playgroud)
文件/home/ubuntu/.rvm/log/ree-1.8.7-2011.03/install.log说明以下内容:
* C compiler... found at /usr/bin/gcc
* C++ compiler... found at /usr/bin/g++
* The 'make' tool... found at /usr/bin/make …Run Code Online (Sandbox Code Playgroud) 我正在使用Net :: IMAP.fetch从Gmail获取一些邮件.但是,当我获取具有UTF8主题的消息(即,在西里尔文中)时,我得到这样的内容:
=?UTF-8?B?0KHRgNC/0YHQutC4INGE0L7RgNGD0Lwg0YLRgNCw?= =?UTF-8?B?0LbQuCDQuNC30LHQvtGA0L3QuCDQvNCw0YLQtdGA0Lg=?= =?UTF-8?B?0ZjQsNC7INC4INC90LAg0ZvQuNGA0LjQu9C40YY=?= =?UTF-8?B?0LggLSBjaXJpbGFjZSB0ZXN0?=
Run Code Online (Sandbox Code Playgroud)
如何将上述字符串转换为UTF8?
注意:这适用于ruby 1.8.7
我正在使用 PDFBox,我想知道是否可以将文件添加为附件并链接到它?
...
// create a new tree node and add the embedded file
PDEmbeddedFilesNameTreeNode treeNode = new PDEmbeddedFilesNameTreeNode();
treeNode.setNames( Collections.singletonMap( "My first attachment", fs ) );
// add the new node as kid to the root node
List<PDEmbeddedFilesNameTreeNode> kids = new ArrayList<PDEmbeddedFilesNameTreeNode>();
kids.add(treeNode);
efTree.setKids(kids);
// add the tree to the document catalog
PDDocumentNameDictionary names = new PDDocumentNameDictionary( doc.getDocumentCatalog() );
names.setEmbeddedFiles( efTree );
doc.getDocumentCatalog().setNames( names );
...
Run Code Online (Sandbox Code Playgroud) 将随机字符串(最多1024个字符,它们可以是UTF8)散列为0到100之间的整数值的最有效方法是什么?我认为计算CRC是最快的,但我不确定.
编辑:这个哈希的唯一要求是超级快,不要在会话之间改变(相同的数据=>相同的哈希值)