小编Jar*_*ner的帖子

最适合Linux开发的Visual-Studio Like工具

我需要为我正在进行的项目编写一些程序,我非常习惯于Visual Studio 2008,我不介意用Python编程,但我需要在语言本身上安装一个舒适的GUI编程,它必须很好地集成和快速.我知道要求很多,但Linux有什么问题吗?

我知道Mono,但我发现它不能完全兼容或能够满足我的需求.坦率地说,程序看起来像是在Linux中运行

编辑:我没有丢弃GTK#,只有Mono Winform

.net python linux ide visual-studio

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

跨平台编程语言与一个体面的gui工具包?

对于我的程序理念,它要求软件用一个可由所有主要桌面平台执行的二进制文件编写,这意味着它需要一个解释语言或JVM中的语言.要么对我好,但编程语言必须平衡功能和简单性(例如Python)

我知道wxPython但我已经读过它在Mac OS X上的支持相当有限

Java听起来不错,看起来不错,但是编程似乎太难了

有帮助吗?

python java wxpython cross-platform multiplatform

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

SelectedIndex是一个空引用异常?

我一直收到这个错误:

System.NullReferenceException was unhandled by user code
  Message=[Arg_NullReferenceException]
Arguments: 
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.0.60401.00&File=mscorlib.dll&Key=Arg_NullReferenceException
  StackTrace:
       at Jantire.DoHomeworkView.TextAlignment_combobox_SelectionChanged(Object sender, SelectionChangedEventArgs e)
       at System.Windows.Controls.Primitives.Selector.OnSelectionChanged(SelectionChangedEventArgs e)
       at System.Windows.Controls.Primitives.Selector.InvokeSelectionChanged(List`1 unselectedItems, List`1 selectedItems)
       at System.Windows.Controls.Primitives.Selector.SelectionChanger.End()
       at System.Windows.Controls.Primitives.Selector.OnItemsChanged(NotifyCollectionChangedEventArgs e)
       at System.Windows.Controls.ItemsControl.OnItemCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
       at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
       at System.Windows.Controls.ItemCollection.NotifyCollectionChanged(NotifyCollectionChangedEventArgs e)
       at System.Windows.Controls.ItemCollection.NotifyCollectionReady()
       at System.Windows.Controls.ItemsControl.NotifyAllItemsAdded(IntPtr nativeItemsControl)
  InnerException: 
Run Code Online (Sandbox Code Playgroud)

在代码:

private void TextAlignment_combobox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            //This next line is where error …
Run Code Online (Sandbox Code Playgroud)

c# visual-studio-2010 nullreferenceexception silverlight-4.0

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

scanF后的SegFault?

#include <stdio.h>
#define TimeConverter 60
#define TempFormula time * time * 4 / time + 2 - 20

double HoursMinToTime(int hour, int min);

double Temperature(double time);

int main()
{
    int hour, min;
    double time, temperature;
    printf("Hours and minutes: ");
    scanf("%d %d", hour, min);
    //Segfault HERE
    time = HoursMinToTime(hour, min);
    temperature = Temperature(time);
    printf("After a %lf hour power failure, the frezer will be %lf degrees", time, temperature);
    return 0;
}
double HoursMinToTime(int hour, int min)
{
    double time = hour * …
Run Code Online (Sandbox Code Playgroud)

c scanf segmentation-fault

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

独角兽崩溃循环

我正在尝试在我的Ubuntu 11.04机器上使用Nginx设置Unicorn.我从源代码编译Ruby,(之前尝试过RVM,但有很多问题),现在安装unicorn(以及rails 3.1.0 RC4)之后,它有一个奇怪的问题,它会崩溃,然后尝试运行崩溃的部分反复,或至少是它的样子.

产量

root@server-pc:/usr/local/blog# unicorn_rails
I, [2011-07-15T13:14:50.577149 #23269]  INFO -- : listening on addr=0.0.0.0:8080 fd=3
I, [2011-07-15T13:14:50.577677 #23269]  INFO -- : worker=0 spawning...
I, [2011-07-15T13:14:50.579412 #23269]  INFO -- : master process ready
I, [2011-07-15T13:14:50.581087 #23271]  INFO -- : worker=0 spawned pid=23271
I, [2011-07-15T13:14:50.581599 #23271]  INFO -- : Refreshing Gem list
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/runtime.rb:31:in `block in setup': You have already activated rack 1.3.1, but your Gemfile requires rack 1.3.0. Consider using bundle exec. (Gem::LoadError)
        from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/spec_set.rb:12:in `block in each'
        from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/spec_set.rb:12:in …
Run Code Online (Sandbox Code Playgroud)

deployment unicorn ruby-1.9.2 ubuntu-11.04 ruby-on-rails-3.1

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

为什么意外缩进?

为什么会这样?

def LoadPackageList():
    try:
        #Attempts to load package list... Adds each neccessary attribute into array
        print("Loading Package List... please wait")
        packages = []
        packagelisturl = os.getcwd() + "packages.list"
        dom = minidom.parse(urllib.urlopen(packagelisturl))
        try:
            for eachattributeofpkglist in dom.GetElementsByTagNameNS(packagelist, 'packages'):
                packages.append({
                    'title': node.getAttribute('title'),
                    'shortname': node.getAttribute('shortname'),
                    'dlurl': node.getAttributes('dlurl'),
                    'description': node.getAttributes('description'),
                    'tags': node.getAttributes('tags'),
                    'infopage': node.getAttributes('infopage'),
                    'quality': node.getAttributes('quality'),
                    'id': node.getAttributes('id')
            })

        except LoadPackageListFailed:
            print("Loading Package List failed... try again soon or manually update this release!")
            Write2ErrorLog(LoadPackageListFailed)
#Indent Here Fails            
def Usage():
#prints usage and closes
    print …
Run Code Online (Sandbox Code Playgroud)

python indentation

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

C中的变量乘法?

//Hydroelectric Dam Helper
#include <stdio.h>
#define GRAV 9.80
#define EFINC 0.9
#define EFINC2 90


int main()
{
  //Defines all the variables to be used
  double height, work, mass;
  printf("Height of dam (in meters):");
  scanf("%lf", &height);
  printf("Flow of water (in thousand cubic meters per second):");
  scanf("%lf", &mass);
  work = (mass * GRAV * height * EFINC); 
  printf("The dam would produce %f megawatts at %d%% efficency", &work, EFINC2);
  return 0; 
}
Run Code Online (Sandbox Code Playgroud)

这些值设置正确,我通过打印高度和质量来测试它,但是工作永远不会得到一个值,EFINC2打印出一个我不太确定的荒谬数字

c variables constants multiplication

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

在[]中使用数字赋值时,无法将字符串[]转换为字符串

当值是字符串数组中的字符串时,为什么它抱怨它无法将字符串数组转换为字符串

码:

 int i;
            string[] Filenames;

            OpenFileDialog UnConvertedFilesList = new OpenFileDialog();
            if (UnConvertedFilesList.ShowDialog() == DialogResult.OK)
            {

                foreach (string FileName in UnConvertedFilesList.FileNames)
                {

                    //Right Here
                    Filenames[i] = Filenames;
                    AudioFiles_listbox.Items.Add(FileName);
                    i++;
                }

            }//if
            else
            {
                MessageBox.Show("File does not exist");
            }
Run Code Online (Sandbox Code Playgroud)

编辑:该行改为Filenames [i] = FileName

现在它说"使用未分配的局部变量'文件名'和i相同的东西

它们定义在函数的顶部.

c# arrays string

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

win32api与Python

什么是使用win32api进行I/O和其他事情而不仅仅是Python的Pro和Con,如果它们都具有特定的功能

我的意思是,使用PyWin32 vs Win32Api

python io winapi

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

Rake db:迁移缺失:控制器

我对这个错误信息感到非常困惑,我完全没有意识到任何丢失的控制器,但这是它正在吐出的错误 在此输入图像描述

还有一点被切断,但我真的希望有所帮助,这是一个非常令人沮丧的错误.

mysql migration debugging rake ruby-on-rails-3

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