04 2013 档案

摘要:---恢复内容开始---一般情况下需要sqlite3所以需要sudo apt-get install libsqlite3-dev而后,创建一个alchemy的project还需要Exposing Test Coverage Information就是$ ../bin/easy_install nose coverage然后,让它自动下载安装即可。On UNIX:$ ../bin/nosetests --cover-package=tutorial --cover-erase --with-coverage这样是用来检测应用的成分的,nose , coverage看看包里面的主要成分是什么。( 阅读全文
posted @ 2013-04-30 21:27 spaceship9 阅读(233) 评论(0) 推荐(1) 编辑
摘要:---恢复内容开始---一般情况下需要sqlite3所以需要sudo apt-get install libsqlite3-dev而后,创建一个alchemy的project还需要Exposing Test Coverage Information就是$ ../bin/easy_install nose coverage然后,让它自动下载安装即可。On UNIX:$ ../bin/nosetests --cover-package=tutorial --cover-erase --with-coverage这样是用来检测应用的成分的,nose , coverage看看包里面的主要成分是什么。( 阅读全文
posted @ 2013-04-29 14:08 spaceship9 阅读(181) 评论(0) 推荐(0) 编辑
摘要:一般情况下需要sqlite3所以需要sudo apt-get install libsqlite3-dev而后,创建一个alchemy的project还需要Exposing Test Coverage Information就是$ ../bin/easy_install nose coverage然后,让它自动下载安装即可。On UNIX:$ ../bin/nosetests --cover-package=tutorial --cover-erase --with-coverage这样是用来检测应用的成分的,nose , coverage看看包里面的主要成分是什么。(那个包括静态文件的文件夹 阅读全文
posted @ 2013-04-28 23:58 spaceship9 阅读(331) 评论(0) 推荐(0) 编辑
摘要:---恢复内容开始---sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.sqlite3 插入程序出错如上---恢复内容结束---由于sqlite3 是默认用的 阅读全文
posted @ 2013-04-25 16:44 spaceship9 阅读(721) 评论(0) 推荐(0) 编辑
摘要:上一篇文章介绍的是用zip(*data_matrix) ,即便是你使用矩阵,还是要自己加上一些标点符号,括号之类,还是比较复杂的。令人心里痒痒的。总是感觉不够高效,因为我们最平常喜欢做的是复制粘帖。所以做一个能直接读取文档,并且将其输入到数据库中的东西,应该非常好用,这个对某些喜欢做爬虫的网站来说,应该比较有市场。 :D这篇就是来用直接打开文档编辑,来重新创造数组或者元组的。先复习一下上次知识,这里我引用以前的一篇博文的部分内容。http://blog.csdn.net/spaceship20008/article/details/8316983######################## 阅读全文
posted @ 2013-04-20 18:17 spaceship9 阅读(299) 评论(0) 推荐(0) 编辑
摘要:其中为了输入一些数据库量表,我不得不到官方网站里面去下载原来数据,然后导入到数据库中。可是发现官方网站给的数据是pdf的,即使是拷贝下来,也是行列不在一起的,这样对将数据整合到数据库中是比较麻烦的。为了不每条数据都一条一条地输入我想出了一个办法。要输入的数据分别在此pdf文档的348 页,349页。复制粘帖到文本文档里面是按照每行每行的。数据并不是按照列来的。即使是复制到libraoffice 中也不能。于是我想出了这个方法这是直接复制的结果:这是我们想要的排列组合,13行,3列 (下载地址:http://wenku.it168.com/d_000144410.shtml分别位于348,349 阅读全文
posted @ 2013-04-20 16:56 spaceship9 阅读(466) 评论(0) 推荐(0) 编辑
摘要:http://docs.python.org/2/library/dbhash.html?highlight=.first#database-objects11.10.1. Database ObjectsThe database objects returned byopen()provide the methods common to all the DBM-style databases and mapping objects. The following methods are available in addition to the standard methods.dbhash.f 阅读全文
posted @ 2013-04-17 17:17 spaceship9 阅读(219) 评论(0) 推荐(0) 编辑
摘要:I downloaded some templates and make it work with pyramid.CSS, Js, and other things. It's just like easy to use.You see I haven't mapped the images . coz there are too many over there. No need.Sobuild a site later. :) Just get some JS and have fun. 阅读全文
posted @ 2013-04-17 04:24 spaceship9 阅读(145) 评论(0) 推荐(0) 编辑
摘要:So here i write.Hope cnblogs.com will live forever. All my blogs will be stored forever :)Alright. On the way to the glory! Pyramid :) 阅读全文
posted @ 2013-04-16 23:03 spaceship9 阅读(104) 评论(0) 推荐(0) 编辑
摘要:Please have a look over here :)http://stackoverflow.com/questions/4256107/running-bash-commands-in-pythonMainlyvim /tmp/call.pyDon't useos.system. Usesubprocess.Like in your case:#bashCommand ="cwm --rdf test.rdf --ntriples > test.nt"bashCommand ="ls"import subprocess#proc 阅读全文
posted @ 2013-04-15 18:11 spaceship9 阅读(343) 评论(0) 推荐(0) 编辑
摘要:Here's what i got from the factory:To get more information: http://www.kuaipan.cn/file/id_104438662447499411.htmMQ-5传感器简介:MQ-5气体传感器所使用的气敏材料是在清洁空气中电导率较低的二氧化锡(SnO2)。当传感器所处环境中存在可燃气体时,传感器的电导率随空气中可燃气体浓度的增加而增大。使用简单的电路即可将电导率的变化转换为与该气体浓度相对应的输出信号。 MQ-5气体传感器对丁烷、丙烷、甲烷的灵敏度高,对甲烷和丙烷可较好的兼顾。这种传感器可检测多种可燃性气体,特别是天 阅读全文
posted @ 2013-04-15 02:02 spaceship9 阅读(1522) 评论(0) 推荐(0) 编辑
摘要:this tutorial is very neat.Mine is like this :While the one from sparkfun is like this:Anyway their circuit are almost the same.(The blue one's better for safty )So the codes are functional for those two different coloured board.BMP085 PinPin FunctionVCCPower (1.8V-3.6V)GNDGroundEOCEnd of conver 阅读全文
posted @ 2013-04-14 22:06 spaceship9 阅读(1396) 评论(0) 推荐(0) 编辑
摘要:Nail a marker here:http://docs.pylonsproject.org/projects/pyramid/en/latest/tutorials/wiki2/definingviews.htmlTo Be Continued--------------------------------------------TIME LINE 21:42 2013 04 13--------------------------------------------------------http://pyramid.readthedocs.org/en/1.4-branch/narr 阅读全文
posted @ 2013-04-13 21:43 spaceship9 阅读(178) 评论(0) 推荐(0) 编辑
摘要:Here's something I made to help you understand Pyramid well.You may need to read very specific tutorials in details in those 5 steps:1. A Hello World! using Pyramid web frameworkhttp://docs.pylonsproject.org/projects/pyramid/en/latest/My knowledge and experience:Raju's blog is really helpful 阅读全文
posted @ 2013-04-13 21:17 spaceship9 阅读(444) 评论(0) 推荐(0) 编辑
摘要:How to record your desktop and webcam, or stream them?Here's the solution:Go visit:https://help.ubuntu.com/community/Webcam#VLCHere's some key references:VLC is neatIt's better to use the VLC GUI interface to operate.3.2. VLC3.2.1. Using the GUIIn VLC, choose 'Open capture device' 阅读全文
posted @ 2013-04-12 14:02 spaceship9 阅读(423) 评论(0) 推荐(0) 编辑
摘要:我购买的是这个模块:6.45元/个先解释一下这个模块的原理:人体红外线感应模块工作原理一、红外光谱 人们肉眼看得见的光线叫可见光,可见光的波长为380~750nm。可见光的波长从短到长依次排序是紫光→蓝光→青光→绿光→黄光→橙光→红光。波长比红光更长的光,叫做红外光,或叫做红外线(红外)。红外光是人们无法用肉眼看见的光线。民 部分光线的波长分布如下: 紫光(O.40~0.43μm);蓝光(0.43~0.47μm);青光(O.47~0.50μm);绿光(0.50~0.56μm);黄光(0.56~0.59μm);橙光(0.59~0.62μm);红光(0.62~0.76μm);红外(0.7... 阅读全文
posted @ 2013-04-12 13:51 spaceship9 阅读(7637) 评论(0) 推荐(1) 编辑
摘要:I am proud to be a former Archlinux user. And Am To Be. hahaTo set up your wireless drivers or modules, this page will be helpful. https://wiki.archlinux.org/index.php/Wireless_Setupusuallypi@raspberrypi ~ $ dmesg | grep rtl8187[14856.735462] rtl8187: Customer ID is 0xFF[14856.738270] Registered led 阅读全文
posted @ 2013-04-11 21:19 spaceship9 阅读(600) 评论(1) 推荐(1) 编辑
摘要:We will need to read those references if we want to go further.Webcam streaming with Raspberry PiandHow To : Stream A Webcam From The Raspberry PiHow To : Stream A Webcam From The Raspberry Pi Part 2and the easiest way:How To: Raspberry PI Web Cam Serverget some key words from the article above:just 阅读全文
posted @ 2013-04-11 20:25 spaceship9 阅读(564) 评论(0) 推荐(0) 编辑
摘要:Tom Igoe's page on stepper motors.Stepper MotorsA stepper motor is a motor controlled by a series of electromagnetic coils. The center shaft has a series of magnets mounted on it, and the coils surrounding the shaft are alternately given current or not, creating magnetic fields which repulse or 阅读全文
posted @ 2013-04-11 13:02 spaceship9 阅读(413) 评论(0) 推荐(0) 编辑
摘要:根据adafruit提供的代码。利用ladyada提供的motor shield近距离全照:将9g舵机接在srv1处,(褐色为负极,红色正极,橙色信号线用来接受PWM指令)将直流电机接在M2处,(正负极可以先不考虑,因为是直流电机)步进电机自己占据了M3,M4.步进电机的排线详细属性地址:http://www.adafruit.com/products/858#Technical DetailsUnipolar stepper with 0.1" spaced 5-pin cable connector8 steps per revolution1/64 geared down re 阅读全文
posted @ 2013-04-10 22:33 spaceship9 阅读(1375) 评论(0) 推荐(0) 编辑
摘要:下面上一些代码,是没有用任何库的.仅仅是将步进点击链接到arduino不同的8, 9, 10 , 11口上的Arduino 控制步进电机 2012-06-11 12:44:44原帖:http://blog.chinaunix.net/uid-23686726-id-3238613.html代码让我给改了改, 还是推荐装个motor shield吧.不然这样折腾 单片机肯定是不撑的.看样子是4步8相的.具体4步8相是啥,请看我上篇博客:http://www.cnblogs.com/spaceship9/archive/2013/04/10/3012552.html分类: 嵌入式 i... 阅读全文
posted @ 2013-04-10 17:29 spaceship9 阅读(10107) 评论(0) 推荐(0) 编辑
摘要:step motor先拿51 单片机配套的资料来复习一下.4相8拍28 BYJ48 或者 24 步进电机48是四相8拍.电路图下载资料:http://ishare.iask.sina.com.cn/f/15511340.html本ppt讲义:http://ishare.iask.sina.com.cn/f/36683589.html上面的ABCD四个相位,可以有 只同一位点,这样就成了四步。 A B C D -> A 一圈 每步 90度 四相四拍步进电机或者可以没360度,分成8份,每份转45度。 A AB B BC C CD D DA -> A 一圈 每步45度 传说中 的四相位 阅读全文
posted @ 2013-04-10 16:07 spaceship9 阅读(1998) 评论(0) 推荐(1) 编辑
摘要:I bought this shield which is designed by adafruit.comHere's the link to show you how to use it.http://learn.adafruit.com/adafruit-motor-shieldhttp://www.ladyada.net/make/mshield/IntroductionThis photo has notes. Move your mouse over the photo to see them.Arduino is a great starting point for el 阅读全文
posted @ 2013-04-10 11:24 spaceship9 阅读(3246) 评论(0) 推荐(0) 编辑
摘要:舵机舵机是一种非常有意思的,多级齿轮增大扭力的widget。非常有用。在很多方面。Servo is very useful. Now Please check this out : What is Servo Control (from wikipedia)VariationsWhen a pulse is sent to a servo that is less than 1.5ms the servo rotates to a position and holds its output shaft some number of degrees counterclockwise from t 阅读全文
posted @ 2013-04-10 10:52 spaceship9 阅读(933) 评论(0) 推荐(0) 编辑
摘要:Tired.Hanying around on https://wiki.archlinux.org for a while this afternoon.One of my very old computer needs get accessed to internet.I install Xubuntu10.04 which is the only one suitable for the old machine produced about in 2002.It's too slow.even though it has a celeon 2.4Ghz CPU and 512 D 阅读全文
posted @ 2013-04-09 15:04 spaceship9 阅读(547) 评论(0) 推荐(0) 编辑
摘要:sudo apt-get install postgresql-9.1out put :)Installation Finished. :)Please read the official reference about how to use PostgreSQLhttp://www.postgresql.org/docs/9.1/interactive/tutorial-createdb.html____________su rootsu - postgres#log into postgrespsql -U posgresthen we get into the postgreSQL co 阅读全文
posted @ 2013-04-08 15:22 spaceship9 阅读(232) 评论(0) 推荐(0) 编辑
摘要:it's too sad that MySQLdb module is not capatiable with the newest pyramid web application framework (python3)if you do really want to use MySQL to store your data.Just use the python 2.7 when you are deploying pyramid app.http://sourceforge.net/projects/mysql-python/ 阅读全文
posted @ 2013-04-08 12:35 spaceship9 阅读(198) 评论(0) 推荐(0) 编辑
摘要:http://docs.pylonsproject.org/projects/pyramid/en/1.4-branch/narr/install.html是我在csdn的博客:http://blog.csdn.net/spaceship20008/article/details/8767884放在cnblogs做备份按照介绍操作。我用的是mint13, python 3.2.3版本。使用的是virtualenv 开发工具在一个虚拟的python环境下开发web app这样很不错。请按照其步骤来。在python3.2中,有一些东西需要记住:4.6.2. Old String Formattin 阅读全文
posted @ 2013-04-08 10:47 spaceship9 阅读(460) 评论(0) 推荐(0) 编辑
摘要:to handle posgreSQL well.i found this article may be helpful.From: http://www.cnblogs.com/tzp_8/archive/2012/11/08/2760746.htmlpostgresql 常用命令(1)用户实用程序:createdb 创建一个新的PostgreSQL的数据库(和SQL语句:CREATE DATABASE 相同)createuser 创建一个新的PostgreSQL的用户(和SQL语句:CREATE USER 相同)dropdb 删除数据库dropuser 删除用户pg_dump 将Postg 阅读全文
posted @ 2013-04-08 10:43 spaceship9 阅读(207) 评论(0) 推荐(1) 编辑
摘要:I created an app on openshift. and then i added a postgreSQL cartridge there.using ssh username@ip which redhat provided i logged into the server.using command "export" to check out the postgreURL which looks like postgre://username:password@ip:portthen store those information.To make post 阅读全文
posted @ 2013-04-08 10:31 spaceship9 阅读(727) 评论(0) 推荐(0) 编辑
摘要:有用的文档链接:使用python演绎和使用MQTT协议记得用google---------------------------------------------------------------------------------------------------------------------------------------PythonRequire themosquittoPythonAPIRepeatedly publish (useful for testing)Scrape serial port data, publish on topic信息地址:http://mq 阅读全文
posted @ 2013-04-06 18:26 spaceship9 阅读(1589) 评论(0) 推荐(0) 编辑
摘要:小任务就是还有许多模块今天没能全部测试完成。还有,红外线人体感应模块、NRF无线电模块,六轴陀螺仪模块、磁场磁极检测模块、光线强度检测模块、几个大功率LED灯(需要设计电路)、NTC10D-9温度检测电阻(需要设计电路)、MQ-5可燃气体检测模块(这个非常有意思,可以详细说一说)。看到了吧,还有这么些模块没有测试的。够过瘾了吧。想当初侦查这些模块的时候,一共花了有一个月的时间。然后统一下订单,就收到了。现在已经测试完成了的有超声波测距模块、DHT11温度湿度检测模块、霍尔模块、光敏感应模块(非光敏强度)、火焰检测模块、震动模块、继电器模块、声音模块、触摸感应模块、DS18B20模块(这个几个模 阅读全文
posted @ 2013-04-06 18:00 spaceship9 阅读(752) 评论(0) 推荐(0) 编辑
摘要:---恢复内容开始---DHT11以前用的是DS18B20也是但总线的,而且每个DS18B20都有一个特定的ROM,所以将许多单总线的温度计放在一根线上也行。真是一个非常好的设计方案!如果这里我们要用到单总线的话,还加上温度,湿度。在arduino上,我们可以直接使用单总线库,将非常简单。想想以前c51单片机上,连最基本的延时程序都要自己写,还要写PWM,等等等等,AVR系列的单片机真是让想法-到实现快了好多步。在现在单片机成本越来越便宜的情况下,直接使用AVR这种单片机可以说会成为非常好的选择方案。现在又加上Arduino简单的库,更是更加容易了许多。好了,现在开始。———————————— 阅读全文
posted @ 2013-04-06 16:09 spaceship9 阅读(4086) 评论(0) 推荐(0) 编辑
摘要:火焰传感器根据不同的火光,可以用打火机检测,这个在智能小车里面有用到过。记得2006年,参加高中机器人大赛的时候,高二,就用到过这样的一个电阻。把信号传递给单片机,然后让单片机给不同的马达信号。让马达的转速不同以起到拐弯的作用(这是壁障),在一定范围看到火光的话,可以启动风扇,开始吹,直到火光没有了位置,停止转动,就是这么简单。现在又买了这个单独的模块。我们来看一下。————————————————————————分割线——————————————————————————资料请自行下载,工厂不技术支持http://www.kuaipan.cn/file/id_10443866244749941 阅读全文
posted @ 2013-04-06 11:14 spaceship9 阅读(3246) 评论(0) 推荐(0) 编辑
摘要:这一款是非常简单的光敏感应器简单到,只对一定光强度有信号感应,输出TTL电平。此款也是用电位器来调节的。都是这么简单。过段时间我为大家奉上数字版的光敏传感器。————————————————————————分割线——————————————————————————这里面是商家提供的资料:用途:光线亮度检测,光线亮度传感器,具有方向性,只感应传感器正前方的光源,用于寻光效果更佳模块特色:1 可以检测周围环境的亮度和光强度(与光敏电阻比较,方向性比较好,可以感知固定方向的光源)2 灵敏度可调(图中蓝色数字电位器调节)3 工作电压3.3V-5V4数字开关量输出(0和1)5设有固定螺栓孔,方便安装6小 阅读全文
posted @ 2013-04-06 10:42 spaceship9 阅读(9537) 评论(0) 推荐(0) 编辑
摘要:霍尔开关,首先科普一下,当一块通有电流的金属或半导体薄片垂直地放在磁场中时,薄片的两端就会产生电位差,这种现象就称为霍尔效应。霍尔开关则是利用霍尔效应的一种传感器,它可以很方便的把磁信号转换成电信号,具有很高的可靠性和灵敏度。模块产品具体数据:霍尔传感器模块用于磁场检测传感器使用M44开关型霍尔传感器:模块有2个输出:1、AO,霍尔实时输出2、DO,霍尔信号经过比较器调整之后输出模块特点:1、尺寸小,36mm X 16mm2、有3mm的安装螺丝孔3、可以使用3-5.5v直流电源供电4、有霍尔实时输出信号5、有通过比较器整理之后更加稳定的输出信号6、比较器输出能力16mA7、有电源指示灯8、比较 阅读全文
posted @ 2013-04-06 09:49 spaceship9 阅读(7624) 评论(0) 推荐(0) 编辑
摘要:voice sensor信号图:原厂数据如下图:6.5元的模块。一 产品特点:1 可以检测周围环境的声音强度,使用注意:此传感器只能识别声音的有无(根据震动原理)不能识别声音的大小或者特定频率的声音2 灵敏度可调(图中蓝色数字电位器调节)3 工作电压3.3V-5V5 输出形式 数字开关量输出(0和1高低电平)6 设有固定螺栓孔,方便安装7 小板PCB尺寸:3.2cm * 1.7cm二 模块接线说明1 VCC 外接3.3V-5V电压(可以直接与5v单片机和3.3v单片机相连)2 GND 外接GND3OUT 小板开关量输出接口(0和1)三 使用说明1声音模块对环境声音强度最敏感,一般用来检测周围环 阅读全文
posted @ 2013-04-06 08:56 spaceship9 阅读(11310) 评论(0) 推荐(0) 编辑
摘要:触摸模块的意思就是说,触摸了一下,然后就向单片机传输一个高低电平信号。一般是静电感应模块。这里我用的是这款。产品特点一、尺寸:长45mmX宽18mmX高5mm二、主要器件:运放,三极管 工作电压:DC 3-5V三、特点:1、具有输出TTL电平信号指示。2、直接可接单片机输IO口。3、抗干扰能力强4、连接单片机,实现触摸开关功能5、可单独控制一块我们产品的继电器模块6、寿命长可连续工作7、是标准2.54mm排针做输入输出连接。8、四周有固定安装孔。资料下载地址http://115.com/file/benbuntc#触摸模块.rar一个非常简单的模块————————————————————分割线 阅读全文
posted @ 2013-04-06 06:58 spaceship9 阅读(4593) 评论(0) 推荐(0) 编辑
摘要:以下是店家提供的一部分资料一共就需要3根线——————————————————分割线————————————————————————用途:用于各种震动触发作用,报盗报警,智能小车,电子积木等。请注意这个模块在感应到小的震动时触发时间会很短,不够驱动继电器,有些人的资料显示可以直接和继电器模块相连,实际运用效果不佳。模块特色:1、采用本公司生产的各种灵敏度震动开关,默认用SW-18020P震动传感器,。2、比较器输出,信号干净,波形好,驱动能力强,超过15mA3、工作电压3.3V-5V4、输出形式 :数字开关量输出(0和1)5、设有固定螺栓孔,方便安装6、小板PCB尺寸:3.2cm x 1.4c 阅读全文
posted @ 2013-04-05 19:29 spaceship9 阅读(5011) 评论(0) 推荐(0) 编辑
摘要:资料进入这里下载:http://dl.vmall.com/c062c71lkn1、本模块性能稳定,测度距离精确。能和国外的SRF05,SRF02等超声波测距模块相媲美。模块高精度,盲区(2cm)超近,稳定的测距是此产品成功走向市场的有力根据!产品应用领域: 机器人避障 物体测距 液位检测 公共安防停车场检测2 主要技术参数:1:使用电压:DC5V2:静态电流:小于2mA 3:电平输出:高5V 4:电平输出:底0V5:感应角度:不大于15度6:探测距离:2cm-450cm 7:高精度 可达0.2cm接线方式,VCC、trig(控制端)、 echo(接收端)、 GND基本工作原理:(1)采用IO口 阅读全文
posted @ 2013-04-05 17:25 spaceship9 阅读(1519) 评论(0) 推荐(0) 编辑
摘要:代码int jidianqi=8;String command= "";void setup(){ pinMode(jidianqi, OUTPUT); digitalWrite(jidianqi,HIGH); Serial.begin(9600);}void loop(){ while(Serial.available()) // To Get up ALL Serial data { command += char(Serial.read()); delay(10); } if (command.length()>0) { if (command ==... 阅读全文
posted @ 2013-04-05 16:55 spaceship9 阅读(3108) 评论(0) 推荐(0) 编辑
摘要:现在按照既定想法,把所有的arduino模块依次尝试一边。链接到我的arduino Uno 与arduino mega 2560 上mega 2560有更多的io口,而且cache也很大。所以应该更有效果。幸好可以有arduino IDE 现在比较稳定的版本官方提供的是1.0.3的。而我用的是ubuntu库里面提供的,是1.0.1版的还是。不过无所谓。可以用。期待,arduino跨版本升级的时候,不要有太大的改动。好了。开始。先试试最简单的继电器模块产品介绍:本模块5V继电器,低电平触发产品介绍:1、本模块符合国际安全标准,控制区域与负载区域有隔离槽;2、采用松乐正品继电器;3、具有电源和继电 阅读全文
posted @ 2013-04-05 14:39 spaceship9 阅读(16769) 评论(0) 推荐(1) 编辑
摘要:先写一个关于定位时间测试的程序,看看到底花了多长时间定位的。timeout_test.html 1 <!-- 2 To change this template, choose Tools | Templates 3 and open the template in the editor. 4 --> 5 <!DOCTYPE html> 6 <html> 7 <head> 8 <title></title> 9 <meta http-equiv="Content-Type" content=&qu 阅读全文
posted @ 2013-04-04 13:38 spaceship9 阅读(230) 评论(0) 推荐(0) 编辑
摘要:marker on google MapsPage 186在谷歌地图上增加你的地理坐标。更多有关Google Maps JavaScript APIhttp://code.google.com/apis/maps/documentation/javascript/使用方法如下。需要在原来的基础上增加一个方法在上一篇博客的showMap()函数中。是加入function addMarker(map, position, title, content){}map => map = new google.maps.Map(mapDiv, mapOptions); 是用谷歌地球api创建的 特定 阅读全文
posted @ 2013-04-03 09:00 spaceship9 阅读(550) 评论(0) 推荐(0) 编辑
摘要:终于来到第五章了,这里将学习怎么调用谷歌地球的API,在HTML5中实现地理定位。This is so freakin' exciting!!!!终于来了。前面几章还好有面向对象的经验,所以看起来并不是很痛苦,很快就看完了。javascript的函数有很多。先学习怎么用,拿来主义是坐标。好了,开始辉煌的第五章了。开始实现HTML位置感知!!!-----------------------------02:15 A.M.-----------------------------------------Google Maps API 是Google 提供的一个javascript 库,与需 阅读全文
posted @ 2013-04-02 02:59 spaceship9 阅读(640) 评论(0) 推荐(0) 编辑
摘要:On Page 113看到140页实在看不下去了。javascript有很强的格式化功能。这本书把变量叫成对象object。对象这个词意也太浑浊了。js是一个非常不严谨的语言。用法倒是不少,看起来很痛。前端来说,还需要套用很多模板才行。简单的浏览器交互,还是直接拿来用好点,如果是build from scratch, 真是太killing brain了。————————————————————April 1st, 04:54 P.M. To Be Continued---------------------------- 阅读全文
posted @ 2013-04-01 04:54 spaceship9 阅读(168) 评论(0) 推荐(0) 编辑
摘要:on page 85现在分别贴出代码playlist.htmlplaylist.jsplaylist_store.jsplaylist.css他们的代码。放到一个文件夹下playlist.html 1 <!-- 2 To change this template, choose Tools | Templates 3 and open the template in the editor. 4 --> 5 <!DOCTYPE html> 6 <html lang="en"> 7 <head> 8 <title>&l 阅读全文
posted @ 2013-04-01 03:19 spaceship9 阅读(416) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示