I just installed and built // This is faintly sketchy, in many people's view, because in principle
// a view can have any type of viewmodel that has properties of the
// appropriate names and types. You *could* make many viewmodels all
// implement some interface that supports common stuff, and make this that
// type. That wouldn't save you from the MVVM Inquisition, but it would be
// more flexible than this.
protected ProjectViewModel ViewModel { get { return DataContext as ProjectViewModel; } }
public void listBoxProject_MouseDoubleClick(object sender,MouseButtonEventArgs e)
{
// WARNING you need to add range checking here
var lb = sender as ListBox;
var item = lb.Items[lb.SelectedIndex];
ViewModel.ActivateItem(item);
}
following the instructions on the official website here, on Mac OS X 10.10.5 Yosemite. However I found torch
cannot install any package with the command
luarocks
The error message is always
Error: No results matching query were found
here I tried luarocks install <package_name>
being <package_name>
, csvigo
, image
, which were all successful in Ubuntu.
So, any ideas about it?
答案 0 :(得分:-2)
您可以添加参数--from=http://rocks.moonscript.org/dev
您可以使用torch/bin/luarocks
或其他自定义构建之一。
从长远来看,它不会帮助你:
lua + luarocks是一团糟,远离它。