小编DdW*_*DdW的帖子

将git代理重置为默认配置

我安装Socat通过HTTP CONNECT代理使用Git协议,然后我创建一个gitproxy在bin目录中调用的脚本.

#!/bin/sh
# Use socat to proxy git through an HTTP CONNECT firewall.
# Useful if you are trying to clone git:// from inside a company.
# Requires that the proxy allows CONNECT to port 9418.
#
# Save this file as gitproxy somewhere in your path (e.g., ~/bin) and then run
# chmod +x gitproxy
# git config --global core.gitproxy gitproxy
#
# More details at https://www.emilsit.net/blog/archives/how-to-use-the-git-protocol-through-a-http-connect-proxy/

# Configuration. Common proxy ports are 3128, 8123, 8000. …
Run Code Online (Sandbox Code Playgroud)

git

85
推荐指数
6
解决办法
13万
查看次数

获取Windows用户显示名称

如何获取登录用户的显示名称?不是用户名,而是显示名称,如下面的屏幕截图所示 - 以及任何Windows Vista/7计算机的开始菜单中显示的名称.

在此输入图像描述

我从其他问题尝试了一堆不同的建议,但它们都显示了用户名,而不是显示名称.您可以在上面的屏幕截图中看到这些尝试的结果.

Imports System.Security.Principal
Imports System.Threading
Imports System.IO
Imports System

Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        MsgBox("1: " & System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString & vbCrLf & _
               "2: " & Environment.UserDomainName & vbCrLf & _
               "3: " & WindowsIdentity.GetCurrent().Name & vbCrLf & _
                "4: " & Thread.CurrentPrincipal.Identity.Name & vbCrLf & _
               "5: " & Environment.UserName & vbCrLf & _ …
Run Code Online (Sandbox Code Playgroud)

.net c# vb.net winforms

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

无法找到合适的SDK来定位

我尝试为UWP创建一个项目,但是我收到了这个错误:

在此输入图像描述

sdk visual-studio win-universal-app uwp

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

Excel到.NET资源文件转换

我将各种语言的资源字符串收集到一个大型Excel工作表中.是否有工具将每种语言的字符串转换为.NET资源文件(resx)?

-pom

.net import-from-excel

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

如何在asp.net项目中设置无限会话时间

我正在研究asp.net项目.如何增加会话超时.(无限超时)?或者我可以在IIS服务器上执行此操作.如果可以,请解释..

c# asp.net session web-config web-technologies

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

使用PowerShell远程安装Windows 10应用程序

我一直试图用PowerShell远程安装来安装Windows 10通用应用程序.我已经尝试了所有我能想到的所以现在我转向你希望有人可以给我一个答案或解释为什么我的方法不起作用.替代解决方案也受到赞赏.

基本上我想要做的是能够远程安装Windows 10应用程序,我的方法包括将文件下载到目标计算机并使用PowerShell远程处理来运行安装.这是我的脚本的简化版本:

$computerName = 'XYZ'
$userName = 'abc'
$newCred = Get-Credential "$computerName\$userName"
$newSession = New-PSSession -ComputerName $computerName -Credential $newCred -ErrorAction Stop
Invoke-Command -Session $newSession -ErrorAction Stop -Verbose -Scriptblock {   

function installApp($srcDirectory) {
     $installer = Get-ChildItem "$srcDirectory\App.Test*\Add-AppDevPackage.ps1" | Select-Object -ExpandProperty FullName        
     &($installer)             
}

$srcDirectory =  "$($env:TEMP)/TestApp"
    installApp($srcDirectory)
}

Remove-PSSession $newSession
Run Code Online (Sandbox Code Playgroud)

基本上它所要做的就是运行在visual studio中生成的生成脚本以安装应用程序.但是,当我运行它时,我得到以下内容:

Installing app...

Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF6, Det gick inte att registrera paketet.

error 0x80070005: Adding a tile failed with unexpected error.

NOTE: For additional …
Run Code Online (Sandbox Code Playgroud)

powershell installation powershell-remoting uwp

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

如何发送添加日历事件(不邀请)的电子邮件?

我知道如何通过php(icalendar)发送日历邀请,但我想通过发送电子邮件将事件添加到接收者的日历中.这样就不需要RSVP按钮(Outlook)或其他响应.

谁能帮我这个?

icalendar calendar rfc5545

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

.NET资源文件仅用于本地化吗?

我过去使用.resx文件存储文本文件和其他东西 - 例如查询.它工作得很好,因为我可以说Resources.Queries.BlahQuery.(是的,我知道我们应该使用存储过程,但这是另一个故事...)

我永远不会对这些资源进行任何本地化.

这是一个坏主意吗?我在滥用.NET资源文件吗?

.net resx

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

Devexpress从gridview child获取值

我使用此代码生成数据并将其输出到gridview中

string sql = "Sql Query";
string sqlCredit= "Sql Query";
string sqlCreditPayment = "Sql Query";

  SqlDataAdapter da = new SqlDataAdapter();

    DataSet ds = new DataSet();
    ds.EnforceConstraints = false;
    ds.DataSetName = "Receivables";

    ds.Tables.Add((con.ShowResult(sql, ref da)).Tables[0].Copy());
    ds.Tables[0].TableName = "dtReceivables";

    ds.Tables.Add((con.ShowResult(sqlCredit, ref da)).Tables[0].Copy());
    ds.Tables[1].TableName = "dtCredit";
    ds.Tables[1].Columns[1].ColumnMapping = MappingType.Hidden;
    ds.Tables[1].Columns[7].ColumnMapping = MappingType.Hidden;

    ds.Tables.Add((con.ShowResult(sqlCreditPayment, ref da)).Tables[0].Copy());
    ds.Tables[2].TableName = "dtCreditPayment";
    ds.Tables[2].Columns[0].ColumnMapping = MappingType.Hidden;

    DataRelation dr0 = new DataRelation("CreditList", ds.Tables[0].Columns["Id"], ds.Tables[1].Columns["DocSupplierId"]);

    ds.Relations.Add(dr0);


    DataRelation dr1 = new DataRelation("CreditPaymentList", ds.Tables[1].Columns["Id"], ds.Tables[2].Columns["SourceId"]);
    ds.Relations.Add(dr1);



    slipDashBoard.DataSource = ds.Tables["dtReceivables"];

    slipDashBoard.ForceInitialize();
    gridView1.BestFitColumns();
Run Code Online (Sandbox Code Playgroud)

伙计们.请帮忙.当我点击gridview的孩子时,我希望实现这样的目标.thnx提前

在此输入图像描述

c# devexpress winforms devexpress-windows-ui

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