小编Eli*_*ren的帖子

通过公共WIFI的GitLab(SSH),端口22被阻止

我使用星巴克wifi,尝试推送到gitlab.com仓库时得到以下信息:

  $ git push origin master
  ssh: connect to host gitlab.com port 22: Connection refused
  fatal: Could not read from remote repository.
Run Code Online (Sandbox Code Playgroud)

我尝试通过GitHub改编GitHub的解决方法:Github(SSH),通过将以下内容添加到〜/ .ssh / config来阻止端口22

 Host gitlab.com
        Hostname gitlab.com
        Port 443
Run Code Online (Sandbox Code Playgroud)

但这不起作用,因为我收到此错误:

 $ git push origin master
 ssh_exchange_identification: Connection closed by remote host
 fatal: Could not read from remote repository.

 Please make sure you have the correct access rights
 and the repository exists.
Run Code Online (Sandbox Code Playgroud)

我有一个解决方法,可以使用端口443推送到GitLab.com吗?

ssh wifi gitlab

5
推荐指数
2
解决办法
6620
查看次数

使用String.Format将秒转换为HH:MM:SS

我有一个float秒数,我想制作一个hh:mm:ss表示24小时倒计时的格式的字符串.我正在尝试使用此代码:

TimeToMissionsReady = 86400f - FromMissionCompletedSeconds;
TimeToMissionsReadyString = string.Format ("{0:00}:{1:00}:{2:00}", TimeToMissionsReady / 3600f, (TimeToMissionsReady / 60f) % 60f, TimeToMissionsReady % 60f);

Debug.Log (TimeToMissionsReadyString);
Run Code Online (Sandbox Code Playgroud)

但它不起作用'因为它显示奇怪的东西,如:24:60:30和一秒钟后24:59:29

难道我做错了什么?

c# timespan

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

如何在MvvmCross中呈现iOS模态视图

如何使用MvvmCross在iOS上呈现模态视图?

使用Xamarin工作室在iOS和MvvmCross的NuGet版本4.2.2,没有的MvxModalSupportTouchViewPresenter,MvxModalNavSupportTouchViewPresenter或者IMvxModalTouchView甚至是可用的.

ViewModel甚至需要知道特定视图在iOS上作为模态视图呈现的事实吗?

modal-dialog xamarin.ios mvvmcross xamarin

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

标签 统计

c# ×1

gitlab ×1

modal-dialog ×1

mvvmcross ×1

ssh ×1

timespan ×1

wifi ×1

xamarin ×1

xamarin.ios ×1