orange

day20190916notes

折月煮酒 提交于 2019-11-29 22:07:51
记得学完知识,趁热打铁。认真看3遍,写抄写模仿3遍。记不得,就罚抄3遍。奖罚分明。自知之明。最重要的是看懂和理解代码。能自己看懂代码,多花时间和功夫。 只要功夫深,铁杵磨成针。确定一个努力的方向,坚持和努力。物理学。 默写: jQuery_Chapter03_20190916/ css / style.css * { padding : 0 ; margin : 0 ; } html { color : #404040 ; font-size : 12px ; font-family : "Arial" , "微软雅黑" ; } a { text-decoration : none ; color : #1a66b3 ; } ul { list-style : none ; } .left { float : left ; } .right { float : right ; } .hide { display : none ; } .clearfix { clear : both ; overflow : hidden ; height : 0 ; } .wrap { width : 1200px ; margin : 0 auto ; } /**头部**/ .top { height : 32px ; background : #f9f9f9 ; padding-top :

香蕉派 banana pi BPI-M64 四核心64位开源单板计算机 全志A64方案

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 18:10:47
Banana pi BPI-M64搭载全志 A64 1.2 Ghz四核ARM Cortex A53 64位处理器, GPU采用双核500MHz Mali-400 MP2,具有的1.1 gpixel的吞吐量,让其图形能力远高于X-Box的性能水平 banana pi BPI-M64由最新的64位四核ARM A53 CPU供电,可提供比其他同行的32位开源开发板高出20%~30%的性能. BPI-M64 主要配置亮点: *64 位四核 ARM Cortex A53 1.2 Ghz CPU *Dual core Mali 400 MP2 GPU *板载2G DDR3内存 * MicroSD卡座,可以从TF卡启动系统 * 板载8G eMMC flash,系统可以烧录到eMMC,从eMMC启动 * 板载WIFI与蓝牙 * 支持IR遥控,2USB接口 * 支持1000M网口 * 支持Linux和Android 6.0系统 硬件接口: 规格书: 更多资料,请看gitbook 在线文档: https://bananapi.gitbooks.io/bpi-m64/content/en/ 来源: oschina 链接: https://my.oschina.net/u/1177513/blog/710759

香蕉派 banana pi BPI-M64 四核心64位开源单板计算机 全志A64方案

元气小坏坏 提交于 2019-11-29 18:10:34
Banana pi BPI-M64搭载全志 A64 1.2 Ghz四核ARM Cortex A53 64位处理器, GPU采用双核500MHz Mali-400 MP2,具有的1.1 gpixel的吞吐量,让其图形能力远高于X-Box的性能水平 banana pi BPI-M64由最新的64位四核ARM A53 CPU供电,可提供比其他同行的32位开源开发板高出20%~30%的性能. BPI-M64 主要配置亮点: *64 位四核 ARM Cortex A53 1.2 Ghz CPU *Dual core Mali 400 MP2 GPU *板载2G DDR3内存 * MicroSD卡座,可以从TF卡启动系统 * 板载8G eMMC flash,系统可以烧录到eMMC,从eMMC启动 * 板载WIFI与蓝牙 * 支持IR遥控,2USB接口 * 支持1000M网口 * 支持Linux和Android 6.0系统 硬件接口: banana pi BPI-M64 硬件规格: banana pi BPI-M64在线文档: https://bananapi.gitbooks.io/bpi-m64/content/en/ 论坛: http://www.banana-pi.org http://www.banana-pi.org.cn 来源: oschina 链接: https://my

指针常量和常量指针的区别

拥有回忆 提交于 2019-11-29 05:47:32
1、指针常量——指针类型的常量(int *const p) 本质上一个常量,指针用来说明常量的类型,表示该常量是一个指针类型的常量。在指针常量中,指针自身的值是一个常量,不可改变,始终指向同一个地址。在定义的同时必须初始化。用法如下: int a = 10, b = 20; int * const p = &a; *p = 30; // p指向的地址是一定的,但其内容可以修改 2、常量指针——指向“常量”的指针(const int *p, int const *p) 常量指针本质上是一个指针,常量表示指针指向的内容,说明该指针指向一个“常量”。在常量指针中,指针指向的内容是不可改变的,指针看起来好像指向了一个常量。用法如下: int a = 10, b = 20; const int *p = &a; p = &b; // 指针可以指向其他地址,但是内容不可以改变 3、例题 (1) int main() { int m = 10; const int n = 20; // 必须在定义的同时初始化 const int *ptr1 = &m; // 指针指向的内容不可改变 int * const ptr2 = &m; // 指针不可以指向其他的地方 ptr1 = &n; // 正确 ptr2 = &n; // 错误,ptr2不能指向其他地方 *ptr1 = 3; // 错误

Can't install Orange: “error: command 'clang' failed with exit status 1”

两盒软妹~` 提交于 2019-11-28 23:49:36
I am trying to install Orange on my Mac OS X 10.7.3 (Lion) and I keep getting an error when using either pip or building from source. First, I was getting an error that read: error: command 'gcc-4.0' failed with exit status 1 I have Xcode 4, which comes bundled with gcc 4.2.1. So I installed 64-bit/32-bit Python 2.7.3 , which has gcc 4.2 built in. I also tried to override the compiler choice using: export CC=gcc-4.2 But this produced a different error: gcc-4.2 not found, using clang instead ... error: command 'clang' failed with exit status 1 Here is the full log: $ python setup.py build

how to run easy_install using a particular python version

情到浓时终转凉″ 提交于 2019-11-28 19:53:47
问题 I have 3 python versions, I want to easy_install Orange using the second version. How can I do this? Unnecessary info: 2.1 in /usr/bin/python 2.6 in /Library/Frameworks/Python.framework/Versions/2.6/bin/python 3.1 in /Library/Frameworks/Python.framework/Versions/3.1/bin/python Answer: Ok found it here (http://peak.telecommunity.com/DevCenter/EasyInstall#multiple-python-versions), "Also, if you're working with Python version 2.4 or higher, you can run Python with -m easy_install to run that

编写一个AQI分析的Orange插件

孤者浪人 提交于 2019-11-28 15:28:10
原创文章,欢迎分享 ! http://my.oschina.net/u/2306127/blog/613875 最近空气污染严重,也为了演练一下Orange插件编写和数据处理的学习成果,准备开发一个AQI数据获取和分析的插件。目前做出来的一个样子如下,还有点酷吧?[下一步完善后,会将源码共享,目前暂不拿来误人,感兴趣的可交流] 研究过程中,也发现一个重要的趋势: 北京的空气质量在整个华北平原地区,几乎任何时候都是最好的! 这里主要介绍研究过程,目前结论只是初步观察,后面研究再提供相应的分析图表。 过程中遇到的问题和处理办法,与大家分享,也有一些未决的问题,看哪位牛人可以解决: 1、从网页上抓取AQI数据 数据来源用的 http://aqicn.org 。使用requests这个库进行数据抓取,功能很强,尤其是可以自定义Header。如果不自定义header,由于这个网站采用了反抓取技术,只返回过期的老数据,是无法得到最新的数据的。代码如下: #Get AQI data from web,by a region. def getaqidata(left,right,bottom,top): aqi_url = geturl(left,right,bottom,top) aqi = requests.get(aqi_url,headers=gethead()) raqi = aqi

Converting Pandas DataFrame to Orange Table

南楼画角 提交于 2019-11-27 13:21:22
I notice that this is an issue on GitHub already . Does anyone have any code that converts a Pandas DataFrame to an Orange Table? Explicitly, I have the following table. user hotel star_rating user home_continent gender 0 1 39 4.0 1 2 female 1 1 44 3.0 1 2 female 2 2 63 4.5 2 3 female 3 2 2 2.0 2 3 female 4 3 26 4.0 3 1 male 5 3 37 5.0 3 1 male 6 3 63 4.5 3 1 male The documentation of Orange package didn't cover all the details. Table._init__(Domain, numpy.ndarray) works only for int and float according to lib_kernel.cpp . They really should provide an C-level interface for pandas.DataFrames ,

2014-05-23 总结

穿精又带淫゛_ 提交于 2019-11-26 17:18:17
1、like 模糊查询 如果后面跟: 你%:表示以“你”开头任意多少去匹配 你 _ : 表示以“你”开头的两个字的 2、范围查询 关键字 in 如果想要查询id为123456的数据 ‘id' in(1,2,3,4,5,6) 3、 sort : 对数组排序 <?php $fruits = array( "lemon" , "orange" , "banana" , "apple" ); sort ( $fruits ); foreach ( $fruits as $key => $val ) { echo "fruits[" . $key . "] = " . $val . "\n" ; } ?> 以上例程会输出: fruits[0] = apple fruits[1] = banana fruits[2] = lemon fruits[3] = orange fruits 被按照字母顺序排序。 4、asort: 对数组进行排序并保持索引关系 <?php $fruits = array( "d" => "lemon" , "a" => "orange" , "b" => "banana" , "c" => "apple" ); asort ( $fruits ); foreach ( $fruits as $key => $val ) { echo " $key = $val \n"