Quantcast
Channel: okmem.com - Latest entries
Browsing latest articles
Browse All 15 View Live

一个splinter visit 的bug

splinter visit bugspilnter官方给出的方法,启动浏览器打开一个网页可以用visit我们看一下这个visit的实现 def visit(self, url): self.connect(url) self.ensure_success_response() self.driver.get(url)先尝试连接网站然后判断连接是否成功最终使用selenium原生的API...

View Article


AutoIt简介和中文文档

AutoItAutoIt是利用windows的控件来做自动化的一种工具。在页面之外的操作可以考虑用这个工具实现,他可以模拟键入 ENTER TAB 输入字符串 等等。这里不做过多的介绍,先放中文文档给大家做个参考https://www.dropbox.com/s/v1hinc4rjfjbio2/AutoIt.chm?dl=0

View Article


Image may be NSFW.
Clik here to view.

django 快速搭建blog 一篇文章

自己收藏利用Django快速搭建一个简单的Blog。参考自《Django Web开发指南》第二章。Web Python Django Blog 一,创建项目1, 为blog创建名为mysite的工程项目:1 django-admin.py startproject mysite  2, 项目结构如下:1234567  mysite    ├── manage.py    └── mysite...

View Article

Image may be NSFW.
Clik here to view.

django 快速搭建blog 另外一篇文章

自己收藏Django 自称是“最适合开发有限期的完美WEB框架”。本文参考《Django web开发指南》,快速搭建一个blog 出来,在中间涉及诸多知识点,这里不会详细说明,如果你是第一次接触Django ,本文会让你在感性上对Django有个认识,完成本文操作后会让你有兴趣阅读的相关书籍和文档。废话少说,come on!!本操作的环境:===================Windows...

View Article

django 搭建blog的一些cmd

自用django-admin.py startproject mysite ./manage.py migrate ./manage.py collectstatic ./manage.py syncdb ./manage.py runserver 0.0.0.0:80 ./manage.py test zinia django-blog-zinnia

View Article


另外一种if else

python geek [b,a][a>=b] 取a b的较大值 [False.True]lambda>>> x=[1,2][1<2]>>> x 2>>> x=[1,2][1>2]>>> x 1>>> >>> f=lambda x:x if x > 0 else...

View Article

竟然有人在网上贴出DMT配方

DMT制作方法 This is DMT quick formula: (9 steps) 1. 500ml water + 33.3g of Mimosa Hostilis Root Bark = Mixture A 2. Mixture A + 33.3g NaOH = Mixture B 3. Mixture B + 50ml of Naphtha = Mixture C 4....

View Article

python 目录处理以及拷贝

python os.path path    import shutil import os""" python handle windows path cpoy tree""" print "UNC--------------------" #Define UNC path src_1 = r'\\xxx\yyy\zzz' src_2 = "\\\\xxx\\yyy\\zzz" #Get UNC...

View Article


基于Glype 搭建自己的在线网页代理 online web proxy

glype online web proxy相信大家都用过在线的网页代理,可是用别人的始终觉得不太靠谱,还是自己搭建一个比较好。目前业界有很多在线网页代理的工具,我还是选择了Glype,因为这家更新还是比较快的。好,废话少说,开始步骤1. 到官网下载软件包www.glype.com打不开?BlockScript 是他的一个plugin,可以根据ip范围country之类的限制访问,翻个墙2....

View Article


apache2.4.x三种MPM介绍 apache 参数优化

apache 调优 参数三种MPM介绍                                                                                Apache 2.X...

View Article

干眼症

干眼症干眼症  电脑、电视、手机产生电磁辐射,辐射加重近视、散光,引起眼睛疲劳,眼睛疼痛,眼睛干涩,干眼症,视力下降,头疼头痛头晕。...

View Article

java 发邮件模板工具 以及mail 内图片关联

java chunk-templates mailchunk-templates不错的工具http://www.x5software.com/chunk/examples/ChunkExample对于template加图片的的需求,可以使用template引用附件图片的方法:Example:Template的修改<h2>Detail Report</h2><IMG...

View Article

Image may be NSFW.
Clik here to view.

Latent Semantic Analysis (LSA) Tutorial第一部分(转载)

Latent Semantic Analysis (LSA)Latent Semantic Analysis (LSA) Tutorial第一部分(转载)译:http://www.puffinwarellc.com/index.php/news-and-articles/articles/33.htmlWangBen 2011-09-16 beijing...

View Article


Image may be NSFW.
Clik here to view.

Latent Semantic Analysis (LSA) Tutorial 潜语义分析LSA介绍 第二部分 (转载)

Latent Semantic Analysis (LSA) Tutorial Latent Semantic Analysis (LSA) Tutorial 潜语义分析LSA介绍 第二部分 (转载)Part 2 - Modify the Counts with TFIDF计算TFIDF替代简单计数In sophisticated Latent Semantic Analysis systems,...

View Article

Image may be NSFW.
Clik here to view.

Latent Semantic Analysis (LSA) Tutorial 潜语义分析LSA介绍 第三部分 (转载)

Latent Semantic Analysis (LSA) Latent Semantic Analysis (LSA) Tutorial 潜语义分析LSA介绍 第三部分 (转载)Part 4 - Clustering by Color用颜色聚类We can also turnthe numbers into colors. For instance, here is a color...

View Article

Browsing latest articles
Browse All 15 View Live