小编Rob*_*zan的帖子

像Google Docs一样的Office 365开发API?

是否有像Google Docs这样的Office 365开发API?我正在搜索网络,但我无法找到.

google-data-api office365

22
推荐指数
3
解决办法
1万
查看次数

在ubuntu 10.04上安装openjdk-7-jre - 软件包openjdk-7-jre没有安装候选

我正在尝试在我的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)

我想我错过了一些回购或类似的事情,但我无法找到任何参考地点和内容.

java ubuntu

16
推荐指数
1
解决办法
4万
查看次数

如何将UTF8组合字符转换为ruby中的单个UTF8字符?

某些字符,例如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卡通".或者是否有包含这些转换的表格?

ruby utf-8

15
推荐指数
2
解决办法
3357
查看次数

用于撰写Facebook电子邮件/消息的URL(通过URL-params撰写电子邮件)

Facebook曾经使用以下URL格式撰写邮件:

http://www.facebook.com/?compose&id=XXXXXX&message=...
Run Code Online (Sandbox Code Playgroud)

但是,上述URL不再起作用:它只是将用户转发到Facebook主页.有没有人可以通过URL params撰写Facebook电子邮件?

email url facebook

7
推荐指数
2
解决办法
2万
查看次数

"rvm install ree"在ubuntu上失败:如何获得传递openssl和zlib dev头文件的要求?

我想在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)

ruby ubuntu rvm

7
推荐指数
3
解决办法
2916
查看次数

如何解码在UTF8中通过Net :: IMAP获取的主题?(红宝石)

我正在使用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

ruby imap jruby utf-8

5
推荐指数
1
解决办法
828
查看次数

如何添加 PDF 文档的文件附件链接

我正在使用 PDFBox,我想知道是否可以将文件添加为附件并链接到它?

我们使用以下代码https://svn.apache.org/viewvc/pdfbox/tags/1.8.9/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/EmbeddedFiles.java作为示例:

        ...
        // 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)

java pdfbox

4
推荐指数
1
解决办法
1996
查看次数

将长字符串散列到给定范围内的值的快速有效方法

将随机字符串(最多1024个字符,它们可以是UTF8)散列为0到100之间的整数值的最有效方法是什么?我认为计算CRC是最快的,但我不确定.

编辑:这个哈希的唯一要求是超级快,不要在会话之间改变(相同的数据=>相同的哈希值)

ruby string hash

0
推荐指数
1
解决办法
1289
查看次数

标签 统计

ruby ×4

java ×2

ubuntu ×2

utf-8 ×2

email ×1

facebook ×1

google-data-api ×1

hash ×1

imap ×1

jruby ×1

office365 ×1

pdfbox ×1

rvm ×1

string ×1

url ×1