小编Ant*_*nAL的帖子

Access localhost on Mac OS X from Parallels machine

i need to test my web site, running on a local Mac, under several browsers in Windows.

I use Windows XP, installed in Parallels Desktop.

It would be great, when i will be able to access my http://localhost:3000 from Windows, sitting in virtual environment (Parallels).

How to wire all the stuff up ?


Update:

I figured out, how to access shared web-site on the mac.

I have following settings:

Parallels Desktop -> Preferences -> Network -> Shared Network

"Parallels Shared …

parallels virtualization web-development osx-snow-leopard

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

在 Linux 中为特定用户和组设置权限

如何向特定用户或特定组授予文件权限?

我们有三组:“g12”(“u1”和“u2”)、“g34”和“g56”。

  • g12 - 应该只读取文件。

  • g34 - 应该写和读它。

  • g56 - 应该拥有所有权限 (rwx)。

其他人根本不应访问该文件。

linux administration permissions chmod

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

提交时“找不到文件”错误

我有一个工作副本,从 SVN 存储库中检出。

当我尝试提交时,出现以下错误:

svn: File not found: revision 57, path '/trunk/path/to/my/file/logo-mini.jpg'
Run Code Online (Sandbox Code Playgroud)

我在 repo 中找到了这个文件,并注意到它只有一个修订版 - 58。

我不明白,为什么 SVN 会抱怨这个文件,它何时出现以及为什么它指向修订版 57 而不是 58 ?

我还重命名了这个文件的 Grand-grand-grand-parent 文件夹。可能,这是一个问题......

更新

我从 Cornerstone 应用程序 (Mac OS X) 获得的详细错误描述:

Description : Could not find the specified file.
 Suggestion : Check that the path you have specified is correct.

Technical Information
=====================

      Error : V4FileNotFoundError
  Exception : ZSVNNoSuchEntryException

Causal Information
==================

Description : Commit failed (details follow):
     Status : 160013
       File : subversion/libsvn_client/commit.c, 867

Description …
Run Code Online (Sandbox Code Playgroud)

svn commit

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

硬链接在 GUI 模式下的 Mac OS X 下不起作用

在使用硬链接时,我遇到了一些奇怪的行为。从终端,我创建了一个文本文件 1.txt 和一个“到这个文件”的硬链接

nano 1.txt
mkdir dir
ln 1.txt ./dir/
Run Code Online (Sandbox Code Playgroud)

我检查了生成的硬链接,并查看其内容与原始文件的内容相同。

less ./dir/1.txt
Run Code Online (Sandbox Code Playgroud)

我更改了初始文件...

nano 1.txt
Run Code Online (Sandbox Code Playgroud)

...你看,这些变化反映在硬链接中

less ./dir/1.txt
Run Code Online (Sandbox Code Playgroud)

我更改了硬链接的内容(当然更正确 - 文件,被硬链接引用)......

nano ./dir/1.txt
Run Code Online (Sandbox Code Playgroud)

...并看到,更改反映在初始文件中

less 1.txt
Run Code Online (Sandbox Code Playgroud)

直到现在,一切顺利……

现在,我关闭终端并开始使用 Finder 中创建的文件(1.txt 和 ./dir/1.txt)。当我使用 TextEdit 更改这两个文件时,更改不会反映在另一个文件中。

硬链接现在已断开。这是怎么回事?

hardlink textedit macos

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

Ubuntu 16.04.5 LTS (xenial) 下 PostgreSQL 10 未满足的依赖项

按照https://www.postgresql.org/download/linux/ubuntu/ 中的官方说明,我收到以下错误:

The following packages have unmet dependencies:
 postgresql-10 : Depends: postgresql-client-10
                 Depends: libgssapi-krb5-2 (>= 1.14+dfsg) but 1.13.2+dfsg-5ubuntu2 is to be installed
                 Depends: libicu60 (>= 60.1-1~) but it is not installable
                 Depends: libpq5 (>= 9.3~) but it is not going to be installed
                 Depends: libssl1.1 (>= 1.1.0) but it is not installable
                 Recommends: sysstat but it is not going to be installed
Run Code Online (Sandbox Code Playgroud)

Linux发行版是: Ubuntu 16.04.5 LTS

我尝试了很多关于清除、升级 apt 的建议,但没有任何帮助。

是否可以在 Ubuntu 16.04.5 LTS 下安装 PostgreSQL 10?

另外,我现在无法安装 PostgreSQL …

postgresql installation apt ubuntu-16.04

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