小编sur*_*190的帖子

如何从Outlook中的"收件人"字段中提取电子邮件地址?

我在某种程度上使用VBA,使用此代码:

Sub ExtractEmail()
Dim OlApp As Outlook.Application
Dim Mailobject As Object
Dim Email As String
Dim NS As NameSpace
Dim Folder As MAPIFolder
Set OlApp = CreateObject("Outlook.Application")
' Setup Namespace
Set NS = ThisOutlookSession.Session
' Display select folder dialog
Set Folder = NS.PickFolder
' Create Text File
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("c:\mydocuments\emailss.txt", True)
' loop to read email address from mail items.
For Each Mailobject In Folder.Items
   Email = Mailobject.To
   a.WriteLine (Email)
Next
Set OlApp = Nothing …
Run Code Online (Sandbox Code Playgroud)

email outlook vba text-files outlook-vba

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

降价没有在 Jekyll 站点上呈现?

Markdown 未转换为 HTML。

_config.yml

# Build settings
markdown: kramdown
    input: GFM
# Permalinks
permalink:        pretty
encoding:         UTF-8
Run Code Online (Sandbox Code Playgroud)

前端输出

<article class="post-content">
<!-- Contents of md files here in plain text-->
</article>
Run Code Online (Sandbox Code Playgroud)

jekyll

6
推荐指数
1
解决办法
3229
查看次数

使用粘性标题,搜索功能,按字母顺序选择器和可打开的项目/卡实现可扩展的Android Recycler视图?

这似乎是一个非常具体的问题,但它实际上与现实世界的应用程序相关.

通常,对于应用程序的要求需要具有以下特征,ListView或者为了将来证明RecyclerView:

  • StickyHeaders
  • Search 功能
  • 一个Alphabetical SectionIndexer快速滚动
  • Swipable 额外功能的项目
  • 扩展

因此,有一些库可以在列表上执行单个任务:

但是,这些库不能很好地协同工作,并且通常不能相互扩展.有没有想法如何将所有这些类的功能组合在一起?

android listview android-recyclerview

6
推荐指数
0
解决办法
1742
查看次数

你如何确保一条线存在并且使用Ansible LineinFile取消注释?

如何确保文件中存在特定行,并且使用ansible的"lineinfile"取消注释

我想要取消注释的行(in .htaccess):

#php_flag display_errors on
Run Code Online (Sandbox Code Playgroud)

我使用了以下内容:

  - name: Make sure PHP Errors are turned on
    lineinfile: dest={{ www_path }}/.htaccess line="php_flag display_errors on"
Run Code Online (Sandbox Code Playgroud)

.htaccess ansible ansible-playbook

6
推荐指数
1
解决办法
2430
查看次数

为什么Ansible没有运行Pip作为sudo用户?

我有一个确保所有要求都在本地安装的剧本.我在用ansible 2.0.0

ansible-playbook site.yml -i staging
Run Code Online (Sandbox Code Playgroud)

site.yml:

---
  - hosts: localhost
    become: yes
    become_user: "{{ sudo_user }}"
    connection: local

    vars_files:
      - vars/main.yml

    roles:
      - do
Run Code Online (Sandbox Code Playgroud)

sudo_usersurfer190在瓦尔.

做/任务/ main.yml:

- name: make sure everything is installed
  apt: name={{item}} state=installed
  with_items:
    - python-apt
    - python-pycurl
    - python-pip
    - python-setuptools

- name: Install dopy
  pip: name={{ item }}
  with_items:
    - virtualenv
    - dopy
    - passlib
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

failed: [localhost] => (item=passlib) => {"cmd": "/usr/local/bin/pip install passlib", "failed": true, "invocation": {"module_args": …
Run Code Online (Sandbox Code Playgroud)

pip ansible ansible-playbook

6
推荐指数
1
解决办法
3013
查看次数

如何使用ansible git模块获取签出代码的SHA?

我想SHA-1用Ansible 存储当前检出的代码版本的提交哈希.

我希望set_fact将此版本用于其他角色.

git ansible ansible-playbook

6
推荐指数
1
解决办法
3852
查看次数

为什么我在Angular 2中加载rxjs-extensions时遇到错误?

我一直在逐步跟踪angular2网站上的英雄教程,但是当我到达教程的http部分时,我遇到了一些障碍.为什么我一直在控制台中出现这些错误?

"GET http:// localhost:3000/app/rxjs-extensions.js 404(Not Found)"

"错误:错误:XHR错误(404 Not Found)加载 http:// localhost:3000/app/rxjs-extensions.js(...)"

这是我的systemjs.config.js:

(function(global) {
  // map tells the System loader where to look for things
  var map = {
    'app':                        'app', // 'dist',
    '@angular':                   'node_modules/@angular',
    'angular2-in-memory-web-api': 'node_modules/angular2-in-memory-web-api',
    'rxjs':                       'node_modules/rxjs'
  };
  // packages tells the System loader how to load when no filename and/or no extension
  var packages = {
    'app':                        { main: 'main.js',  defaultExtension: 'js' },
    'rxjs':                       { defaultExtension: 'js' },
    'angular2-in-memory-web-api': { main: 'index.js', defaultExtension: …
Run Code Online (Sandbox Code Playgroud)

angular2-services angular

6
推荐指数
1
解决办法
3370
查看次数

如何将StaticLiveServerTestCase与不同的域一起使用?

我正在使用selenium进行geckodriver和firefox的功能测试.

我看到主机是,http://localhost:62305并且在该类中生成:

@classproperty
def live_server_url(cls):
    return 'http://%s:%s' % (cls.host, cls.server_thread.port)
Run Code Online (Sandbox Code Playgroud)

在我创建的功能中,我为用户提供了一种方法来创建具有自己子域的租户,但出于单元测试的目的,它可以是域.

因此,例如,我使用域创建租户example.com,如何 StaticLiveServerTestCase在同一个功能测试方法中将该域名指向同一端口上当前正在运行的应用程序.

我查看了这篇建议编辑的帖子 /etc/hosts.问题在于它不仅适用于CI和其他人的计算机.

django-testing

6
推荐指数
1
解决办法
60
查看次数

git rebase 后如何推送到远程?

嗨,我vile使用以下方法成功删除了提交: git rebase -p 0df8fg5^ 0df8fg5

我在master分行工作。但是现在当我:

git push

它给:

To git@github.com:my_user/my_repo.git
 ! [rejected]        master -> master (fetch first)
error: failed to push some refs to 'git@github.com:my_user/my_repo.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first merge the remote changes (e.g.,
hint: 'git pull') before pushing again.
hint: See the 'Note …
Run Code Online (Sandbox Code Playgroud)

git github

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

使用Laravel在本地迁移时如何在宅基地上运行迁移?

我必须通过SShing在宅基地箱上进行迁移:

homestead ssh
cd ~/Code/my-project
php artisan migrate
Run Code Online (Sandbox Code Playgroud)

我更喜欢只运行migrate本地文件夹,并自动在访客(虚拟)机器上运行迁移.

laravel homestead

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