小编the*_*guy的帖子

从sdkmanager CLI截断Android SDK包路径

./sdkmanager --list > tmp.txt 给我一个像这样的.txt文件:

Installed packages:
  Path  | Version | Description              | Location
  ------- | ------- | -------                  | ------- 
  tools | 25.2.3  | Android SDK Tools 25.2.3 | tools/  

Available Packages:
  Path                              | Version      | Description                      
  -------                           | -------      | -------                          
  add-ons;addon-g..._apis-google-15 | 3            | Google APIs                      
  add-ons;addon-g..._apis-google-16 | 4            | Google APIs                      
  add-ons;addon-g..._apis-google-17 | 4            | Google APIs                      
  add-ons;addon-g..._apis-google-18 | 4            | Google APIs                      
  add-ons;addon-g..._apis-google-19 | 20           | Google APIs                      
  add-ons;addon-g..._apis-google-21 | 1            | Google APIs                      
  add-ons;addon-g..._apis-google-22 …
Run Code Online (Sandbox Code Playgroud)

macos android-sdk-tools

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

F#造型扑克牌

我想在F#中代表标准扑克牌.我的目标是实现一个微软纸牌(Windows附带的一个)的克隆,一个卡片套装,面部和颜色很重要的游戏.这个练习主要是为了学习一些F#.

我考虑过使用歧视的工会:

type Suit =
    | Diamonds
    | Hearts
    | Clubs
    | Spades

type Color =
    | Red
    | Black

type Face =
    Two | Three | Four | Five | Six | Seven |
    Eight | Nine | Ten | Jack | Queen | King | Ace
Run Code Online (Sandbox Code Playgroud)

卡的记录类型:

type Card = {
    suit: Suit;
    face: Face;
    color: Color;
}
Run Code Online (Sandbox Code Playgroud)

但是,卡片的颜色可以从它的套装中推断出来 - 所有钻石和红心都是红色的,所有的俱乐部和黑桃都是黑色的.不能仅从Color确定套装.也许这样的事情是合适的:

type Suit =
    | Diamonds of Color //should always be red
    | Hearts …
Run Code Online (Sandbox Code Playgroud)

f# playing-cards

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

Outlook代码查看链接打开了错误的Visual Studio版本

我安装了Visual Studio 2013 Premium和2012 Premium。我在TFS中收到有关代码审查的电子邮件通知。这些通知包括一个打开评论的链接,显示文本为“在Visual Studio中打开更改和评论”。链接位置以

vstfs://codereview/...
Run Code Online (Sandbox Code Playgroud)

当我单击链接时,将在Visual Studio 2012中打开代码审阅。

如何使Visual Studio 2013代替Visual Studio 2012处理代码审阅电子邮件链接?我希望它们可以在Visual Studio 2013中打开。

tfs visual-studio visual-studio-2012 visual-studio-2013

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

如果连接了调试器,为什么我的堆栈跟踪仅包含行号?

我有一个向Raygun报告崩溃的Xamarin.Android应用程序。从Release版本报告给Raygun的堆栈跟踪不包括行号。如果我为Release构建配置提供与.csproj文件中的Debug配置相同的设置:

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  <DebugSymbols>True</DebugSymbols>
  <DebugType>full</DebugType>
  <Optimize>false</Optimize>
  ...
</PropertyGroup>
Run Code Online (Sandbox Code Playgroud)

那么我仍然看不到发送给Raygun的堆栈跟踪中的行号。但是,如果我在运行带有附加的Visual Studio调试器的应用程序时,则发送到Raygun的堆栈跟踪信息确实包含行号。请注意,无论如何,所有堆栈跟踪都包括类和方法的名称。这个问题只与行号有关。

如果引发异常时附加了调试器,为什么堆栈跟踪仅包含行号?更重要的是,如何在没有附加调试器的情况下,在Release版本的报告堆栈跟踪中获取行号?

.net visual-studio-debugging xamarin.android xamarin raygun

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

GoLand 的运行/调试配置窗口中“Go 工具参数”的“-i”选项是什么?

-iGoLand 的运行/调试配置窗口中的“Go 工具参数”选项是什么 ?在此输入图像描述

go goland

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