首页 软件开发 ( Page 1722 )

软件开发 20709

#Ruby
ruby读取http文件保存到本地

require 'open-uri' File.open('/home/user/1.jpg', 'wb') {|f| f.write(open('http://tp1.sinai…

2014-10-23 332

#Ruby
Ruby 检查 HTTP 回应的错误和重定向

require 'net/http' def get_web_document(url) uri = URI.parse(url) response = Net::HTTP.get…

2014-10-22 519

#Objective-C
UITextView/UITextField限制字数

+ (void)limitTextFieldLength:(UITextField *)textField maxLength:(NSInteger)maxLength { NSS…

2014-10-22 403

#HTML
来自渴切css:纯css透明解决方案兼容所有浏览器

.transparent{ filter:alpha(opacity=50); -moz-opacity:0.5;/**Firefox 3.5即将原生支持opacity 属性,所以…

2014-10-22 931

#Python
整数中1出现的次数(从1到n整数中1出现的次数)

# -*- coding:utf-8 -*- class Solution: def NumberOf1Between1AndN_Solution(self, n): count …

2014-10-22 803

#Python
python 爬虫 下载妹子图片

#coding:utf-8 import requests from bs4 import BeautifulSoup import re DownPath = "/jiaoben…

2014-10-22 701

#Python
python版实现文本左右对齐排版

# python版实现文本左右对齐排版 # 题目来源: http://www.bathome.net/thread-1246-1-1.html # 依山居 7:17 2015/11…

2014-10-22 498

#SQL
oracle查询表空间文件所在路径

select * from dba_data_files 查询数据库内所有的数据字典 select * from DICT

sql
2014-10-22 564

#Ruby
Ruby 调用 Windows Excel 来生成电子表格

require 'win32ole' excelobj = WIN32OLE.new("excel.application") excelobj['Visible']=TRUE e…

2014-10-22 765

#Objective-C
ios自带菊花转圈圈 等待动画

CLLocationManager* activity = [[UIActivityIndicatorView alloc]initWithFrame:CGRectMake(100…

2014-10-21 629

#PHP
Windows安装配置php+memcached的方法

Windows下Memcached的安装配置方法 1、将第一个包解压放某个盘下面,比如在c:\memcached。 2、在终端(也即cmd命令界面)下输入 ’c:\me…

#HTML
检测浏览器是否支持HTML5

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>…

2014-10-21 495