小编Tom*_*ash的帖子

OS X Lion安装后./configure无法找到C编译器

虽然cc并且gcc完全处于正确的路径(/Developer/usr/bin在OS X Lion中),但运行./configure尝试通过硬编码(我猜)路径编译它/usr/bin.

我在哪里设置configure的路径?

macos xcode configure osx-lion

13
推荐指数
2
解决办法
2万
查看次数

访问PNG元数据

如何访问/删除PNG元数据?

我正在寻找Mac应用程序或PHP代码段.

png metadata image-formats

7
推荐指数
2
解决办法
2万
查看次数

将文本转换为JSON

您如何建议将文本文件转换为JSON格式?

我有一个文本文件,其中包含大约500位文本,格式如下:

[number in brackets or astriek]
[line1]
[line2]
[line3]
[space]
.
.
.
Run Code Online (Sandbox Code Playgroud)

我想将它转换为JSON,如下所示:

"page1": {
   "line1": "LINE1",
   "line2": "LINE2",
   "line3": "LINE3"
},
"page2": {
   "line1": "LINE1",
   "line2": "LINE2",
   "line3": "LINE3"
}
.
.
.
Run Code Online (Sandbox Code Playgroud)

想法?

format text json

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

如何使用jQuery qTIp设置提示维度?

我在修改qTip的笔尖大小(x,y)时遇到了一些麻烦.我尝试以style: { tip: { x:2,y:2 } }各种方式添加,但失败了.

如何将其添加到以下脚本?

  // Status Tooltips Style
  $.fn.qtip.styles.statusTooltips = {
    background: '#333333',
    color: 'white',
    textAlign: 'center',
    border: {
      width: 1,
      radius: 5,
      color: '#333333'
    },
    tip: 'leftMiddle',
    name: 'dark'
  }

  // Status Tooltips Init
  $('.status[title]').qtip({
    style: 'statusTooltips',
    position: {
      corner: {
         target: 'rightMiddle',
         tooltip: 'leftBottom'
      }
    }
  });
Run Code Online (Sandbox Code Playgroud)

javascript jquery tooltip qtip

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

用PHP本地化当前时间

尝试用PHP显示当前时间(使用):

$date = date('m/d/Y h:i:s a', time());                      
echo $date;
Run Code Online (Sandbox Code Playgroud)

尽可能简单.我该如何本地化?我想把这些月份和日子翻译成希伯来语.

谢谢.

php string time localization hebrew

5
推荐指数
2
解决办法
5247
查看次数

如何在Gem上更新单个提交?

我安装will_paginate了Gem和Bundle; 现在我看到有关GitHub的更新(此提交) - 如何更新它?手动?重新安装git clone

HALP!

git gem ruby-on-rails will-paginate

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

如何在Isotope的布局模式之间切换?

每个人都有两个问题:

1)如何打开和关闭同位素

2)如何切换布局模式?也就是说,我该怎么做呢:

 $('.content').isotope({  itemSelector : '.hentry',
                          layoutMode : 'cellsByRow',
                          cellsByRow : { columnWidth : 240, rowHeight : 360 } });
Run Code Online (Sandbox Code Playgroud)

对此:

 $('.content').isotope({  itemSelector : '.hentry',
                          layoutMode : 'masonry'});
Run Code Online (Sandbox Code Playgroud)

用一个简单的点击开关?有任何想法吗?

谢谢!

javascript jquery toggle jquery-masonry

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

在Mac OS X 10.5.8上安装PHP的Mcrypt扩展

我如何安装mcrypt?我正在使用Leopard 10.5.8和PHP5.

php macos installation mcrypt

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

自定义OpenLayers控件

如何轻松自定义OpenLayers地图控件?或者至少,我如何最小化控件的高度?

谢谢.

PS.有没有CSS覆盖?

javascript maps geocoding openlayers

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

如何让Annotate gem工作?

我已经加入annotate-models我的:development小组,删除Gemfile.lock,运行bundle install,但仍然会中断.

$ annotate User
/usr/local/Cellar/ruby-enterprise-edition/2010.02/lib/ruby/gems/1.8/gems/polyglot-0.3.1/lib/polyglot.rb:64:in `polyglot_original_require': no such file to load -- annotate/annotate_models (LoadError)
from /usr/local/Cellar/ruby-enterprise-edition/2010.02/lib/ruby/gems/1.8/gems/polyglot-0.3.1/lib/polyglot.rb:64:in `require'
from /usr/local/Cellar/ruby-enterprise-edition/2010.02/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
from /usr/local/Cellar/ruby-enterprise-edition/2010.02/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `load_dependency'
from /usr/local/Cellar/ruby-enterprise-edition/2010.02/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:in `new_constants_in'
from /usr/local/Cellar/ruby-enterprise-edition/2010.02/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `load_dependency'
from /usr/local/Cellar/ruby-enterprise-edition/2010.02/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
from /usr/local/Cellar/ruby-enterprise-edition/2010.02/lib/ruby/gems/1.8/gems/annotate-2.4.0/lib/tasks/annotate_models.rake:3
from /usr/local/Cellar/ruby-enterprise-edition/2010.02/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
from /usr/local/Cellar/ruby-enterprise-edition/2010.02/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
from /usr/local/Cellar/ruby-enterprise-edition/2010.02/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
from /usr/local/Cellar/ruby-enterprise-edition/2010.02/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
from /usr/local/Cellar/ruby-enterprise-edition/2010.02/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
from /usr/local/Cellar/ruby-enterprise-edition/2010.02/lib/ruby/1.8/monitor.rb:242:in `synchronize'
from /usr/local/Cellar/ruby-enterprise-edition/2010.02/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
from /usr/local/Cellar/ruby-enterprise-edition/2010.02/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
from /usr/local/Cellar/ruby-enterprise-edition/2010.02/lib/ruby/gems/1.8/gems/annotate-2.4.0/bin/annotate:67
from /usr/local/Cellar/ruby-enterprise-edition/2010.02/bin/annotate:19:in `load'
from /usr/local/Cellar/ruby-enterprise-edition/2010.02/bin/annotate:19
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

rubygems ruby-on-rails annotate

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