以下“失声疗法”是针对HDMI被设置为默认输出的情况: aplay -l 是用来查看音视频设备与卡号信息的; 然后 1.sudo gedit /etc/asound.conf 2.在文件中写入defaults.pcm.card 1 defaults.pcm.d...
分类:
系统相关 时间:
2015-02-09 20:15:03
阅读次数:
220
HDU 4336 Card Collector(容斥原理 or 状压求期望dp)...
分类:
其他好文 时间:
2015-02-09 16:10:53
阅读次数:
137
http://www.android.gs/mount-google-nexus-4-mtp-sd-card-on-ubuntu-and-other-linux-computers/https://wiki.debian.org/mtphttp://roger.steneteg.org/299/mo...
分类:
其他好文 时间:
2015-02-08 10:17:42
阅读次数:
227
Problem Description
How far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We're assuming that the cards must be per...
分类:
其他好文 时间:
2015-02-06 09:36:23
阅读次数:
130
水题,STL双端队列。 1 /* 2319 */ 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 9 int main() {10 int n, t;11 in...
分类:
其他好文 时间:
2015-02-03 12:58:04
阅读次数:
181
问题是这样:原来代码.html.erb页面中有一个select元素,其每个item对应的是model中的类常量:
类中的常量定义如下:
class Order < ActiveRecord::Base
PAYMENT_TYPES = ["Check","Credit card","Purchase order"]
end
现在想把PAYMENT_TYPES重构至数据库中的表里去,于...
分类:
数据库 时间:
2015-02-03 11:05:10
阅读次数:
186
详细的题目大意与解析大家参考一下kuangbin的文章。
kuangbin链接
这边说一下自己对于kuangbin代码以及容斥原理位元素枚举的理解与解释,希望对大家有所帮助。
状态DP AC代码:状态压缩的思想我就不赘述了,我也只是略懂,这边仅仅分析一下状态方程
由于量比较多,我这边有的便用文字代替,有利于描述。
dp[i]表示i状态达到满状态(即收集满n个物品,以下称满状态)所需要的期...
分类:
其他好文 时间:
2015-02-03 09:36:21
阅读次数:
179
这是本人见过写博文最负责的一个人:http://www.crifan.com/android_try_use_android_logging_log4j_to_output_log_to_sd_card_file/为什么说他负责呢??因为作者写出了从确定需求到找到解决方案的整个过程,不仅会让读者少走...
分类:
移动开发 时间:
2015-01-29 21:01:35
阅读次数:
177
html事件传送htmlDom1.在事件定义好传入参数,参数支持普通参数和当前对象this:onclick="reduceonetocart('@dt_mycart.Rows[i]["card_id"].ToString()',this)"2.在接收的事件:function reduceonetoc...
分类:
Web程序 时间:
2015-01-29 11:54:44
阅读次数:
204
前台和后台通过JS传GUID的区别和方法1.后台生成字符串,然后拼接,在前台显示: onclick=\"changestate( '" + storeid + "' )\"2.前台 不用拼接和转换 : onclick="addonetocart('@dt_mycart.Rows[i]["card_i...
分类:
Web程序 时间:
2015-01-29 11:52:30
阅读次数:
173