标签: share

如何在Windows共享上访问git仓库?

我希望能够将我的Windows 7桌面上的工作仓库同步到我的Windows 7笔记本电脑,而无需将我的提交推送到我们的主服务器.我该怎么做呢?我无法弄清楚如何设置远程路径,以便git可以理解它的位置.我通常使用Git Bash来处理git,而不是windows命令行,所以这里的问题很可能是我无法弄清楚如何在Git Bash中编写一个引用windows共享的路径.

所以,说我有一个回购(Windows共享路径):

\\\\MyWorkPCName\dev\myrepo\
Run Code Online (Sandbox Code Playgroud)

在命令行中,我可以访问目录和文件(尽管使用pushd,因为cmd是愚蠢的),如何将其转换为有效的git远程?

windows git share windows-7 git-remote

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

Google+分享网址:它使用的参数是什么?

我想在Stackoverflow上做出像.我没有+1按钮(加载需要一些时间,所有页面加载都慢一点).我查看了源页面,但没有找到任何信息...他们怎么做?

在facebook上这是:

url  = 'http://www.facebook.com/sharer.php?s=100';
url += '&p[title]='     + encodeURIComponent(title);
url += '&p[summary]='   + encodeURIComponent(text);
url += '&p[url]='       + encodeURIComponent(my_url);
url += '&p[images][0]=' + encodeURIComponent(pic);
Run Code Online (Sandbox Code Playgroud)

这样的东西必须是谷歌+分享到,但我没有在搜索过程中找到任何有用的信息.

我知道我可以使用这样的网址:https://plus.google.com/share?url=my_url,但这还不够 - 我还需要共享标题,文本和图像,但是为此目的使用什么url GET参数?

提前致谢!

share google-plus

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

Facebook分享者,发表评论?

是否可以将描述/评论变量发布到facebook sharer url?据我所知,它只能用于网址和标题.

share facebook

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

Windows文件共享:为什么有时新创建的文件在一段时间内不可见?

我们面临着让我们发疯的非常奇怪的问题.有时我们的文件共享PC上新创建的文件在一段时间内"缺席".要重现问题,你应该至少有两台电脑,叫他们alphabeta.在betaPC(\\beta\share\bug)上创建文件共享并从alphaPC 运行此PowerShell脚本:

param(
  $sharePath="\\beta\share\bug"
)
$sharePC = ($sharePath -split '\\')[2]
$session = New-PSSession -ComputerName $sharePC
$counter = 0
while ($true) {
  $fileName = $sharePath + "\$counter.txt"
  Invoke-Command -Session $session -ScriptBlock {
    param(
      $fileName
    )
    "" > $fileName
  } -ArgumentList $fileName
  if (Test-Path $fileName) {
    Write-Host "File $fileName exists" -fore Green
  } else {
    Write-Host "!!! File $fileName does NOT exist!" -fore Red
  }

  $counter = $counter + 1
  Start-Sleep 2 …
Run Code Online (Sandbox Code Playgroud)

windows smb share

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

如何强制Share Intent打开特定的应用程序?

我喜欢分享意图,非常适合用图像和文本参数打开共享应用程序.

但现在我正在研究如何强制分享意图从列表中打开一个特定的应用程序,并给出共享意图的参数.

这是我的实际代码,它显示了手机上安装的共享应用列表.请问,有人可以告诉我应该添加什么代码以强制举例如官方Twitter应用程序?和官方的faccebok应用程序?

Intent sharingIntent = new Intent(Intent.ACTION_SEND);
Uri screenshotUri = Uri.parse("file:///sdcard/test.jpg");  
sharingIntent.setType("image/*");
sharingIntent.putExtra(Intent.EXTRA_TEXT, "body text");
sharingIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri);
startActivity(Intent.createChooser(sharingIntent, "Share image using"));
Run Code Online (Sandbox Code Playgroud)

谢谢

twitter android share android-intent

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

在不同进程之间传递文件描述符的便携方法

在大多数UNIX系统上,可以通过fork()轻松地为子进程/父进程在进程之间传递打开的文件; 但是我需要分享一个fd"之后"孩子已经分叉了.

我发现一些网页告诉我sendmsg()可能适用于仲裁过程; 但这似乎非常依赖操作系统和复杂.该portlisten好像我能找到的最好的例子,但我更喜欢一个良好的包装库的libevent一样,隐藏的kqueue的所有魔法,游泳池,...

有谁知道是否有一些库(和便携式方式)这样做?

unix share fork file-descriptor

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

如何让我的Android应用程序出现在另一个特定应用程序的共享列表中

<action android:name="android.intent.action.SEND" />     
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
Run Code Online (Sandbox Code Playgroud)

这是在我的清单文件中

这将使我的应用程序出现在所有应用程序的共享列表中,但我希望我的应用程序出现在另一个特定应用程序的共享列表中,而我不拥有其他应用程序

android share filter android-intent

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

Google+分享API中出现origin_mismatch错误

我想在谷歌+上分享一些动态内容.为此,我检查了它https://developers.google.com/+/web/share/interactive#rendering_the_button_with_javascript

<head>
<script type="text/javascript">
  (function() {
   var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
   po.src = 'https://apis.google.com/js/client:plusone.js';
   var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
 })();
</script>
</head>
<body>
<button
  class="g-interactivepost"
  data-contenturl="http://www.pubandbar-network.co.uk/" 
  data-clientid="102180630313.apps.googleusercontent.com"
  data-cookiepolicy="single_host_origin">  Share 
</button>
</body>
Run Code Online (Sandbox Code Playgroud)

但是在执行时我收到了这个错误

Error: origin_mismatch
Request Details

    scope=https://www.googleapis.com/auth/plus.login
    response_type=code token id_token gsession
    access_type=online
    redirect_uri=postmessage
    cookie_policy=single_host_origin
    proxy=oauth2relay554026710
    origin=http://www.pubandbar-network.co.uk
    state=1995523240|0.4607792083184853
    display=page
    client_id=102180630313.apps.googleusercontent.com
    authuser=0
Run Code Online (Sandbox Code Playgroud)

请建议如何解决这个问题

api share mismatch google-plus

23
推荐指数
3
解决办法
6万
查看次数

Facebook Share Dialog在首次加载时不显示缩略图

我正在使用Facebook共享对话框来共享特定网址.共享链接包含一个图像,该图像应该是以后共享的一部分.关于这一点的奇怪之处在于它在移动浏览器上完全正常.但桌面浏览器不会在第一次尝试时加载图像.只需重新加载共享窗口即可修复丢失的图像.一旦此图像显示至少一次,它将继续在其他浏览器中工作,无需额外重新加载..

所以我的问题是:有人知道为什么这个网址的第一次调用不显示图像?

细节

用于打开共享对话框的链接

这是Facebook调试器的输出,没有错误,也显示图像.

Facebook调试器输出

更新

似乎没有任何问题使用Feed对话框.但这是另一种共享方式,我想阻止它,因为它需要一个App ID.

share facebook image thumbnails

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

如何从共享菜单中排除自己的应用程序?

该应用程序有一个intent过滤器,允许它通过ACTION_SEND意图出现在其他应用程序的共享菜单中.该应用程序本身也有一个使用ACTION_SEND和createChooser()的共享菜单,我的应用程序出现在列表中.由于他们已经在我的应用程序中,让他们能够分享回自己似乎很奇怪.

如果我的应用程序从我的应用程序中调用,我的应用程序是否有办法不显示在列表中?

android share menu android-intent

19
推荐指数
2
解决办法
3950
查看次数