我刚刚在Windows计算机上下载了GitHub的Atom编辑器,现在尝试将我的Atom编辑器与git企业仓库集成,例如:
https://git.company.com/abc.git
Run Code Online (Sandbox Code Playgroud)
这样我就可以克隆,进行更改并签入。
我该如何完成这项工作?
我正在完成基于Silverlight 4的PivotViewer控件设计我的第一个Silverlight应用程序的过程.我在根据我的设计在顶部组织栏时遇到问题:
Pivot UI http://www.richard-slater.co.uk/wp-content/uploads/2010/08/PivotUI.png
我找到了左对齐徽标和标题的方法,这是一种将按钮与各种面板组合对齐的方法,但是它有两个主要问题.
我使用以下代码获得了最佳结果:
<StackPanel x:Name="LayoutHeader" Margin="4" Height="50" Grid.Column="0" Grid.Row="0" Orientation="Horizontal">
<Image x:Name="LogoImage" Height="50" Width="50" Source="/EVEMonPivot;component/EVEMonLogoBlue.png" Grid.Column="0" Grid.Row="0" />
<TextBlock x:Name="TitleText" Height="50" Text="EVEMon Pivot" FontSize="40" Grid.Column="1" Grid.Row="0" VerticalAlignment="Center" FontWeight="Bold" Padding="10,0,0,0" />
</StackPanel>
<StackPanel x:Name="NavHeader" Margin="4" Height="50" Grid.Column="0" Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Right">
<Button x:Name="StackExButton" Style="{StaticResource NavButton}" Click="StackExButton_Click">EVE Online StackExchange</Button>
<Button x:Name="BugsButton" Style="{StaticResource NavButton}">Bugs & Suggestions</Button>
</StackPanel>
Run Code Online (Sandbox Code Playgroud)
我打算将一些属性移动到样式中,但它仍然感觉很乱.
上面的代码也可以在小窗口中产生以下结果:
alt text http://www.richard-slater.co.uk/wp-content/uploads/2010/08/EVEMonPivotOverLay.png
有没有更好的办法?
用户向我们报告在安装.NET 4后可以解决我们的应用程序中的一些奇怪行为:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v2.0.50727" />
</startup>
</configuration>
Run Code Online (Sandbox Code Playgroud)
我不知道如果你没有指定一个程序集,它可能会加载到更高但兼容的版本中.
是否有可能确定可执行文件正在执行哪个框架?在运行时?或通过一些外部过程?我想确认是这种情况,并且用户体验不是其他问题的结果.
Process Explorer说EVEMon在2.0下运行,我倾向于怀疑问题是环境问题:

我只是Ruby&Rails的初学者.
我用Amazon Linux制作了一个实例.
有人说"使用Vim".
但我想使用Atom编辑器.
我可以在Amazon Linux上使用Atom吗?
或者我只是用Ubuntu Server创建新实例?
还有一件事!
我只能用命令行控制吗?
整理一些我认为是令人困惑的换行结构的代码:
return
CommonContext.HttpWebService.DownloadXml(configuration.MethodUrl(APIMethods.CharacterSheet),
postData);
Run Code Online (Sandbox Code Playgroud)
如果它在一条线上,那么很明显是可读的.目前我不清楚粗略地看一下"返回"和"postData"与长线有什么关系.CommonContext和APIMethods是静态类,配置是局部变量.
考虑到这一点,我可能会写两行如下:
string methodUrl = configuration.MethodUrl(APIMethods.CharacterSheet);
return CommonContext.HttpWebService.DownloadXml(methodUrl, postData);
Run Code Online (Sandbox Code Playgroud)
这是一种有效的吐出代码的方法还是有更好的方法?在这个例子中,我使用的是C#2.0.
atom-editor ×2
.net ×1
assemblies ×1
c# ×1
coding-style ×1
git ×1
linux ×1
mixed-mode ×1
silverlight ×1
ubuntu ×1
wpf ×1
xaml ×1