更新到OS X 10.9后,我的macport出现问题.
我尝试按照本手册https://trac.macports.org/wiki/Migration修复它们.
但是当我安装命令行工具时:
xcode-select --install
我得到消息
无法安装软件,因为软件更新服务器当前无法使用该软件.
同时我成功将我的其他机器更新为OS X 10.9.和安装的命令行工具没有问题,所以它们必须可用.
这里有什么问题?
我在尝试
sudo mount -t cifs //<server>/<share> -o username=user@domain,password=**** /mnt/<mountpoint>
Run Code Online (Sandbox Code Playgroud)
错误信息:
mount: wrong fs type, bad option, bad superblock on //server/share,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Run Code Online (Sandbox Code Playgroud)
系统日志有
CIFS VFS: cifs_mount failed w/return code = -22
Run Code Online (Sandbox Code Playgroud)
我可以在另一个centos系统上安装相同的共享.我可以ping服务器,已经创建了挂载点目录.
有人能告诉我正则表达式模式匹配字符串中最后一个"/"右边的所有内容.
例如,str ="red/white/blue";
我想匹配"蓝色",因为它是最后一个"/"右侧的所有内容.
非常感谢!
我在这里看看Angry Cats Backbone/Marionette教程帖子
http://davidsulc.com/blog/2012/04/15/a-simple-backbone-marionette-tutorial/
http://davidsulc.com/blog/2012/04/22/a-simple-backbone-marionette-tutorial-part-2/
我发现了同样的问题/需要在这里发布:
但我只能使用Backbone.Views,而不是Backbone.Marionette.ItemViews.
例如,从上面简单的主干牵线木偶教程链接,采取AngryCatView:
AngryCatView = Backbone.Marionette.ItemView.extend({
template: "#angry_cat-template",
tagName: 'tr',
className: 'angry_cat',
...
});
Run Code Online (Sandbox Code Playgroud)
模板#angry_cat-template
看起来像这样:
<script type="text/template" id="angry_cat-template">
<td><%= rank %></td>
<td><%= votes %></td>
<td><%= name %></td>
...
</script>
Run Code Online (Sandbox Code Playgroud)
我不喜欢的是,AngryCatView需要有
tagName: 'tr',
className: 'angry_cat',
Run Code Online (Sandbox Code Playgroud)
- 如果我拿出tagName
来,然后angry_cat-template
被包裹起来<div>
.
我想要的是在一个地方指定HTML(angry_cat-template),并且在angry_at-template中没有大多数HTML(所有<td>
标签),在AngryCatView中没有HTML(<tr>
标签).我想在angry_cat-template中写这个:
<script type="text/template" id="angry_cat-template">
<tr class="angry_cat">
<td><%= rank %></td>
<td><%= votes %></td>
<td><%= name %></td>
...
</tr>
</script>
Run Code Online (Sandbox Code Playgroud)
它对我来说感觉更干净,但我一直在用Derik Bailey的回答"Backbone.js关闭渲染中的div包裹"并且无法让它适用于Backbone.Marionette.
有任何想法吗?
出于惊人的目的,我试图安排工作每2分钟一次,每5分钟一次.那就是我想要1个工作来运行1,6,11,16 ..而另一个工作要运行在2,7,12,17 ......
我找不到这样做的例子.所以我尝试过:
every 5.minutes, :at=> 1 do
command "echo 'you can use raw cron sytax too'"
end
Run Code Online (Sandbox Code Playgroud)
这似乎有效,但所有':at'示例看起来都期待一个字符串格式的时间.以上是有效的,或者只是恰好工作,并且每个选项都不支持起始时间.
我想在区域图表中输出以下数据(时间,电池电量):
data: [
[08.15, 14.8],
[08.20, 13.9],
[08.25, 12.8],
[08.30, 11.8],
[08.35, 13.9],
[08.40, 14.1],
[08.45, 13.9],
[08.50, 14],
[08.55, 14],
[09.00, 14.1],
[09.05, 14.4]
]
Run Code Online (Sandbox Code Playgroud)
x轴应该从上午00.00 AM 00.00 PM开始,一整天.
不幸的是,当我查看API时,我不明白使用哪些选项.我现在得到的是x轴,从8.00到8.55,8.60,8.65~9.00.所以它使用十进制系统而不是分钟系统.
如何配置该线路应包含24小时60分钟?
使用当前数据,图表将是空的,仅在早上8点到9点之间有点.
我希望有人可以帮助我.
谢谢,
Mattijs
我正在尝试执行多级菜单,单击">"时会滑动.第一个问题是CSS没有正常工作,<ul>没有浮动到左边.
我需要的只显示一个ul,如果单击">"显示"子"菜单滑动或显示它,任何方法都很有用.
准备好测试的完整代码就在这里
我正在尝试这样做:菜单
JavaScript的
$(document).ready(function(){
var json = [{"id":"1","parent":"0","slug":"digitalart","name":"Digital Art"},{"id":"2","parent":"1","slug":"3d","name":"3-Dimensional Art"},{"id":"39","parent":"1","slug":"drawings","name":"Drawings"},{"id":"3","parent":"2","slug":"abstract","name":"Abstract"},{"id":"4","parent":"2","slug":"characters","name":"Characters"},{"id":"12","parent":"2","slug":"objects","name":"Objects"},{"id":"23","parent":"2","slug":"scenes","name":"Scenes"},{"id":"32","parent":"2","slug":"unsorted","name":"Unsorted"},{"id":"33","parent":"2","slug":"vehicles","name":"Vehicles"},{"id":"5","parent":"4","slug":"creatures","name":"Animals & Creatures"},{"id":"6","parent":"4","slug":"cartoon","name":"Cartoon"},{"id":"7","parent":"4","slug":"female","name":"Female"},{"id":"8","parent":"4","slug":"groups","name":"Groups"},{"id":"9","parent":"4","slug":"machines","name":"Machines & Robots"},{"id":"10","parent":"4","slug":"male","name":"Male"},{"id":"11","parent":"4","slug":"misc","name":"Miscellaneus"}];
build_menu(json, 0);
});
function build_menu(json, parent){
var menu;
var item = "";
var counter = 0;
if(parent != '0'){
item += '<li><a class="more" onClick="show(); return false;" href="#">Back</a></li>';
}
$.each(json, function(i, category) {
if(category.parent == parent){
var more = '<a class="more" onClick="show('+parent+'); return false;" href="#">></a>';
item = item + '<li>' + category.name + more + '</li>';
build_menu(json, category.id);
counter++;
}
});
if(counter > …
Run Code Online (Sandbox Code Playgroud) 我已经在我的Mac Intel Core 2 Duo上用雪豹10.6.8下载了eclipse classic x86_64 3.7 cocoa
我已经将eclipse目录解压缩并复制到Applications文件夹.运行时,我会收到以下错误
System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
Unexpected error loading extension: org.eclipse.equinox.p2.metadata.repository.simpleRepository
java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.httpclient.HttpClient at org.eclipse.ecf.provider.filetransfer.httpclient.HttpClientBrowseFileTransferFactory$1.sendBrowseRequest(HttpClientBrowseFileTransferFactory.java:53)
Error while reading from repository: http://download.eclipse.org/releases/indigo/site.xml.
Run Code Online (Sandbox Code Playgroud)
我有以下java版本
java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3425)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-384, mixed mode)
Run Code Online (Sandbox Code Playgroud)
我尝试过使用eclipse经典32和64位版本,两者都有同样的问题.
我也尝试在Java首选项下调整java版本(32或64)的优先级.
我想将一个流式传输mms:// url
到我的iPhone应用程序,但到目前为止很难获得有关该主题的信息.我知道有几个应用程序可以做到(FStream,WunderRadio,Tuner),我已经阅读了一些关于它们的说明,可能使用libmms和ffmpeg来完成这项任务.
有谁知道实现这一目标的方法?那里有一个我缺少的图书馆,或者已经有一些例子吗?我希望这会像简单一样容易
[someLibrary streamMMSUrl:@"mms://mymmsurlhere.com"]
谢谢你的帮助!
javascript ×2
regex ×2
backbone.js ×1
c ×1
cifs ×1
css ×1
eclipse ×1
gem ×1
highcharts ×1
iphone ×1
jquery ×1
json ×1
macos ×1
macports ×1
marionette ×1
menu ×1
mms ×1
mount ×1
multi-level ×1
posix ×1
ruby ×1
samba ×1
streaming ×1
whenever ×1
xcode ×1