当前位置:  编程技术>其它
本页文章导读:
    ▪原:Mindjet文件导出      创建:2013年01月11日Mindjet的免费账号的文件无法导出.可以绕过,方法如下:# 可以使用iphone同步之.# 然后,用iFunBox打开iphone程序的Documents文档. 见名知意,将需要的文件夹导出.# 导出的文件虽然没有.........
    ▪在Windows中使用MinGW编译X264      转载自:http://www.cnblogs.com/xiongjiaji/archive/2012/06/08/2541265.html 参考:http://ayobamiadewole.com/Blog/Others/x264compilation.aspx 注意:安装完MinGW后,要把“安装路径\MinGW\bin”加到PATH环境变量中。否.........
    ▪Python遍历路径下文件并转换成UTF-8编码        开始学Python,这篇文章来自于应用需求。  os.walk很方便,下面写了两个版本的函数进行遍历,分别是不使用walk和使用walk的。import sysimport stringimport osdef detect_nowalk(dir_path): files = os.lis.........

[1]原:Mindjet文件导出
    来源:    发布时间: 2013-11-15
创建:2013年01月11日

Mindjet的免费账号的文件无法导出.

可以绕过,方法如下:
# 可以使用iphone同步之.
# 然后,用iFunBox打开iphone程序的Documents文档. 见名知意,将需要的文件夹导出.
# 导出的文件虽然没有文件名,但是其实是mmap文件.改名即可.
# 使用其他兼容软件打卡mmap文件.

+++++

佳为好友 2013-01-11 16:48 发表评论

    
[2]在Windows中使用MinGW编译X264
    来源:    发布时间: 2013-11-15
转载自:http://www.cnblogs.com/xiongjiaji/archive/2012/06/08/2541265.html

参考:http://ayobamiadewole.com/Blog/Others/x264compilation.aspx

注意:安装完MinGW后,要把“安装路径\MinGW\bin”加到PATH环境变量中。否则在./configure的时候会“No working C compiler found”。

 

 

具体步骤如下:

For someone coming from a windows background, where you do virtually everything, using GUI probably with Visual studio or an equivalent IDE, compiling a program from the command line can be a daunting task. 

This blog post will guide you through compiling and building the popular open source video encoding library on windows using the MinGW(Minimalist GNU on Windows). 

First you need to download the x264 source code from http://x264.nl/ Or if you know how to use git, you can git clone the x264 from git://git.videolan.org/x264.git. 

Then you should download MinGW from http://sourceforge.net/projects/mingw/files Download the mingw-get-inst-20111118.exe (591.9 kB) install it and during the installation steps, select all the check boxes. (直接到这里下载就可以了:http://sourceforge.net/projects/mingw/)

After the installation is completed(然后还要把环境变量加上), then from Start button , click All program, then click MinGW and then Click on MinGW shell, this brings up the following window 

 
From the msys shell change your directory to the location where your x264 source code is, in my own case the x264 code is in the c: drive so I will simply Type cd c:\x264

  

Then type ./configure and press enter, this screen waits for some seconds and the bring

  

Then you can now type make and press enter, this will bring up the window below, showing the progress of the compilation process.

 

    
[3]Python遍历路径下文件并转换成UTF-8编码
    来源:    发布时间: 2013-11-15

  开始学Python,这篇文章来自于应用需求。

  os.walk很方便,下面写了两个版本的函数进行遍历,分别是不使用walk和使用walk的。

import sys
import string
import os

def detect_nowalk(dir_path):
files = os.listdir(dir_path)
for filename in files:
print "file:%s\n" % filename
next = os.path.join(dir_path, filename)
if os.path.isdir(next):
print "file folds:%s\n" % filename
detect_nowalk(next)

if __name__ == "__main__":
detect_nowalk(".")
import sys
import os

def detect_walk(dir_path):
for root, dirs, files in os.walk(dir_path):
for filename in files:
print "file:%s\n" % filename
for dirname in dirs:
print "dir:%s\n" % dirname

if __name__ == "__main__":
detect_walk(".")

  另外附上使用第一种方法转换文件编码的源码,有的文件转换后用gedit打开是乱码,但用vi查看是正确的。

import sys
import string
import codecs
import os
import shutil

def gbkToUtf8(path):
files = os.listdir(path)
for filename in files:
if os.path.isdir(filename):
print "file folds:%s\n" % filename
gbkToUtf8(filename)
continue

try:
tokens = string.splitfields(filename, '.')
if len(tokens) != 2 or tokens[1] != 'txt':
#print tokens[1]
continue
else:
print 'Encode Converting (GBK to UTF-8) : ', filename
utfFile=open(filename)
tstr = utfFile.read()
#tstr = utfFile.read().decode("gbk") is wrong
tstr = tstr.encode("UTF-8")
utfFile.close()
utfFile = open(filename, 'w')
utfFile.write(tstr)
utfFile.close()
except:
print "error %s" %filename

if __name__ == "__main__":
gbkToUtf8(".")

 

 

 

本文链接


    
最新技术文章:
 




特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

©2012-2021,,E-mail:www_#163.com(请将#改为@)

浙ICP备11055608号-3