(使用Debian Linux,KDE,Konsole和bash.)
当我运行git log时,我无法读取完整的提交消息.我看到句子的开头,但如果它太长,我看不到它.
此外,我没有看到多行的条目.
如何查看完整的git日志条目?
sort( $new, SORT_NATURAL | SORT_FLAG_CASE );
Run Code Online (Sandbox Code Playgroud)
SORT_NATURAL是php 5.4中的新功能,但我在我的localhost(ubuntu 12.04)上运行5.3.10并不是真的有意升级.
什么是PHP 5.3中的等价物,我读过就像natsort.
是natsort( $new, SORT_FLAG_CASE );一样的吗?
我经常编写脚本,也可以通过图形用户界面完成.要做一次,它很容易使用gui.要经常这样做,使用脚本要快得多.
(几乎)所有gui应用程序都使用底层cli应用程序.例如,切换桌面分辨率最有可能发出xrandr调用.
或者gui click只是更改了一些底层配置文件,这同样有趣.
阅读cli文档并找出相同的结果需要时间.可以改善吗?
我的意思是,我可以在Linux上记录任何GUI点击的基础CLI调用吗?
我想以所有格式下载Google网络字体,并创建一个组合的CSS,以便在任何地方使用它们,而无需从Google服务器加载它们.
我已经有一个PHP脚本下载字体文件.现在只需要CSS.
您可能知道Google网络字体API根据浏览器用户代理提供特殊的CSS.
我有几个问题.
@font-face声明,但有font-weight和font-style不同.我是否正确地假设Google仅为"常规"版本的字体提供SVG而不是"斜体,粗体,书......"我决定完全摆脱我的CSS中的所有id,除此之外,我想开始过渡到HTML 5.
旧标记,其中.sidebar是两个侧边栏的选择器,ID用于单独设置侧边栏的样式
<div id="sidebar" class="sidebar widget-area"></div>
<div id="sidebar-alt" class="sidebar widget-area"></div>
Run Code Online (Sandbox Code Playgroud)
现在这就是我在html 4中所做的事情,我并不认为ID在HTML5中是过时的,请不要赞成这个评论我会在html 4中做同样的事情
<div class="sidebar sidebar-primary widget-area"></div>
<div class="sidebar sidebar-secondary widget-area"></div>
Run Code Online (Sandbox Code Playgroud)
我现在的问题是关于角色属性.这基本上是一个弥补价值?它或将来可能有一些真正的意义吗?
解决方案1 其中.sidebar保留两个侧边栏的选择器,我会使用[role ="..."]来单独设置侧边栏的样式
<aside role="sidebar-primary" class="sidebar widget-area"></aside>
<aside role="sidebar-secondary" class="sidebar widget-area"></aside>
Run Code Online (Sandbox Code Playgroud)
解决方案2 或者我应该更好地为两个侧边栏提供相同的角色并使用角色选择器来处理常见样式?
<aside role="sidebar" class="sidebar-primary widget-area"></aside>
<aside role="sidebar" class="sidebar-secondary widget-area"></aside>
Run Code Online (Sandbox Code Playgroud)
我还没有进入HTML 5,我希望得到一些意见,如果可能的话,深入解释可能会更好.
在查看WTC角色列表之后,似乎没有定义"侧边栏"角色,在关于它的事情之后,两个解决方案(1 + 2)可能都不好
解决方案3
W3C将"补充"角色定义为角色,这可能是更好的方法吗?我仍然很好奇为什么人们提出了角色="侧边栏"然后它对"发明"角色有什么意义呢?如果是因为CSS他们应该使用类来设计风格吗?
<aside role="complementary" class="sidebar-primary widget-area"></aside>
<aside role="complementary" class="sidebar-secondary widget-area"></aside>
Run Code Online (Sandbox Code Playgroud) 我目前正在使用元素制作,如果twitter bootsrap 3.0显示在一个没有中断.当我创建一个包装器浮动时会发生什么,输入元素会被切断.
<form id="commentform" method="post" action="http://devsite.localhost/wp-comments-post.php" name="commentform">
<span class="comment-form-author"><label class="obscure" for="author">Name</label><span class="input-group span2"><input type="text" placeholder="Name *" aria-required="true" tabindex="1" size="30" value="" name="author" id="author" /></span></span> <span class="comment-form-email"><label class="obscure" for="author">Email</label><span class="input-group span3"><input type="text" placeholder="Email *" aria-required="true" tabindex="2" size="30" value="" name="email" id="email" /></span></span> <span class="comment-form-url"><label class="obscure" for="url">Website</label><span class="input-group span3"><input type="text" placeholder="Website" tabindex="3" size="30" value="" name="url" class="input-medium" id="url" /></span></span>
<div class="comment-form-comment">
<textarea placeholder="Comment" aria-required="true" tabindex="4" rows="8" cols="45" name="comment" id="comment">
</textarea>
</div>
<!-- #form-section-comment .form-section -->
<p class="form-submit"><input type="submit" value="Post Comment" id="submit" name="submit" /> …Run Code Online (Sandbox Code Playgroud)