小编Wil*_*iam的帖子

致命:早期EOF致命:索引包失败

我用Google搜索并找到了许多解决方案,但对我来说都没有用.

我试图通过连接到LAN网络中的远程服务器从一台计算机克隆.
从另一台计算机运行此命令会导致错误.
但是在服务器上使用git://192.168.8.5运行SAME clone命令它没关系并且成功.

有任何想法吗 ?

user@USER ~
$ git clone  -v git://192.168.8.5/butterfly025.git
Cloning into 'butterfly025'...
remote: Counting objects: 4846, done.
remote: Compressing objects: 100% (3256/3256), done.
fatal: read error: Invalid argument, 255.05 MiB | 1.35 MiB/s
fatal: early EOF
fatal: index-pack failed
Run Code Online (Sandbox Code Playgroud)

我已添加此配置,.gitconfig但也没有帮助.
使用git版本1.8.5.2.msysgit.0

[core]
    compression = -1
Run Code Online (Sandbox Code Playgroud)

git cygwin msysgit

241
推荐指数
15
解决办法
27万
查看次数

在Perl中解码UTF-8 URL

考虑:

use URI::Escape;
print uri_unescape("%C3%B3");
Run Code Online (Sandbox Code Playgroud)

输出:³

用这个http://meyerweb.com/eric/tools/dencoder/解码

输出:ó

这是预期的.

我应该用什么Perl库来获得正确的输出?

perl encode decode

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

WPF ListBoxItem不会拉伸到最大宽度

我是WPF的新手.我试图使OrderItemsTmpl模板中的第一列拉伸到可用的最大宽度,但它不起作用,宽度只能达到文本内部的宽度.我不想使用绝对值.怎么解决这个?谢谢

<DataTemplate x:Key="OrderItemsTmpl">
            <Grid Background="Brown" HorizontalAlignment="Stretch" >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                    <ColumnDefinition Width="auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>

                <StackPanel Grid.Column="0" HorizontalAlignment="Stretch">
                    <CheckBox Content="{Binding Path=sItemName}" HorizontalContentAlignment="Stretch" ></CheckBox>
                    <ListBox HorizontalContentAlignment="Stretch"
                        ItemsSource="{Binding Path=aSinglOptns}"
                        Margin="20,0,0,0"
                        ItemTemplate="{StaticResource SinglOptnTmpl}"
                        Style="{StaticResource SheetListStyle}"
                        ItemContainerStyle="{StaticResource ListBoxItemStyle}"
                 >

                    </ListBox>
                </StackPanel>

                <TextBlock Grid.Column="1" Text="{Binding Path=fQty}"></TextBlock>
</DataTemplate>

<Style x:Key="ListBoxItemStyle" TargetType="{x:Type ListBoxItem}">
            <Setter Property="HorizontalContentAlignment" Value="Stretch"></Setter>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ListBoxItem">
                        <ContentPresenter></ContentPresenter>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>


<Style x:Key="SheetListStyle" TargetType="{x:Type ListBox}">
            <Setter Property="Background" Value="Aqua"></Setter>

            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ListBox}">
                        <Border
                            CornerRadius="8"
                            BorderThickness="2">
                            <ScrollViewer>
                                <WrapPanel
                                    IsItemsHost="True"
                                    Orientation="Vertical"
                                    HorizontalAlignment="Left"/>
                            </ScrollViewer>
                        </Border> …
Run Code Online (Sandbox Code Playgroud)

c# wpf xaml

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

无法加载动态库'C:\ xampp\php\ext\php_imagick.dll' - 找不到指定的模块

这很奇怪,模块显然位于该目录中.当我在文件资源管理器中使用该目录时,它找到了该模块.我认为这是兼容性问题?而不是没找到?

我从这里得到了这个dll http://windows.php.net/downloads/pecl/releases/imagick/3.4.1/

php windows xampp

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

标签 统计

c# ×1

cygwin ×1

decode ×1

encode ×1

git ×1

msysgit ×1

perl ×1

php ×1

windows ×1

wpf ×1

xaml ×1

xampp ×1