basic IPV6 Validation error 解决办法:
sudo networksetup -setmanual "AX88179 USB 3.0 to Gigabit Ethernet" 192.168.3.144 255.255.255.0 192.168.3.254
Mike Driver
styofa doing anything
One Nice Bug Per Day
he wasn't even looking at me and he found me
let's talk about Bridgerton tea, my ask is open
Monterey Bay Aquarium

shark vs the universe
almost home

ellievsbear

izzy's playlists!
TVSTRANGERTHINGS
Sweet Seals For You, Always

❣ Chile in a Photography ❣
Game of Thrones Daily
PUT YOUR BEARD IN MY MOUTH
No title available
will byers stan first human second
Cosmic Funnies

祝日 / Permanent Vacation

Andulka

seen from Singapore
seen from Australia
seen from United States
seen from United States

seen from Türkiye
seen from United Kingdom

seen from United States
seen from United Kingdom

seen from Malaysia

seen from Mexico
seen from United States

seen from United States
seen from United States

seen from Malaysia

seen from Ireland

seen from Germany

seen from Germany

seen from France

seen from Australia

seen from Singapore
@do007
basic IPV6 Validation error 解决办法:
sudo networksetup -setmanual "AX88179 USB 3.0 to Gigabit Ethernet" 192.168.3.144 255.255.255.0 192.168.3.254
Texturepacker :相当有用的工具
非常感谢 Textruepacker 的作者授予的license key
Adobe Flex 开发少不了它!
如果想申请免费license key,可以到 http://www.codeandweb.com/request-free-license
OmniOS 下安装 Python-ImageMagick
先安装 boost、boost-python
安装 ImageMagick:
echo "PKG_OPTIONS.ImageMagick=djvu ghostscript jasper wmf" >> ../../mk/defaults/mk.conf
如果不安装 ghostscript ,在使用过程中会报:RuntimeError: Magick: Postscript delegate failed No such file or directory
下载 Python-ImageMagick
CXXFLAGS='-I/usr/pkg/include/python2.7' ./congure
make
如果提示 python.hpp找不到:
ln -s /usr/pkg/include/boost /usr/include
安装后运行,如果提示: ImportError: ld.so.1: python2.7: fatal: libgomp.so.1: open failed: No such file or directory
echo 'LD_LIBRARY_PATH=/opt/gcc-4.7.2/lib:/opt/gcc-4.7.2/lib/amd64/:$LD_LIBRARY_PATH' >> ~/.profile
在 ominios 下的实验记录
zfs create rpool/o01
zfs set mountpoint=/export/o01 rpool/o01
chmod 700 /export/o01
zfs create rpool/o01_ds
zonecfg -z o01
create
add dataset
set name=rpool/o01_ds
end
set zonepath=/export/o01
add net
set address=192.168.0.100
set defrouter = 192.168.0.1
set physcial=bnx0
end
verify
commit
exit
zoneadm -z o01 install
zoneadm -z o01 boot
cp /etc/resolv.conf /export/o01/root/etc/
zlogin -C o01
cp /etc/nsswitch.dns /etc/nsswitch.conf
pkg update
pkg install gcc47 gnu-tar linker header-math object-file gnu-coreutils lint system/header
pkg install sunstudio12.1
pkg install git
curl -s http://pkgsrc.smartos.org/packages/illumos/bootstrap/bootstrap-2012Q3-illumos.tar.gz | gtar -zxf - -C /
vi ~/.profile
export PATH=/usr/pkg/bin:/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin:/opt/sunstudio12.1/bin:/opt/gcc-4.7.2/bin:/opt/pkg/sbin:/opt/pkg/bin
source ~/.profile
pkgin -y up
pkgin -y in cvs
cd /opt
cvs [email protected]:/cvsroot checkout pkgsrc
cd pkgsrc/bootstrap
./bootstrap
编译 imagemagick:
cd /opt/pkgsrc
ls -d */*Image*
cd graphics/ImageMagick
bmake install clean
Postgresql 9.2 添加 UUID 失败的解决方法
ERROR: could not access file "MODULE_PATHNAME": no such file or directory.
psql -d xxxx
create extension "adminpack";
create extension "uuid-ossp";
ETL 让 Sysbase 能正常显示中文的办法
在 Database Connection 中:
“Additional parameters" 添加:
charset=eucgb
Mac OS X 10.8 使用 Zeroc ICE 的办法
10.8 上无法使用 brew 安装 zeroc ice
折衷的办法是在 10.7 上用 brew 编译安装然后传给10.8使用,由于 homebrew 的 ice.rb 没有提供 python及 java的编译,so .... 修改了 ice.rb,代码如下:
require 'formula'
class Ice < Formula
homepage 'http://www.zeroc.com'
url 'http://www.zeroc.com/download/Ice/3.4/Ice-3.4.2.tar.gz'
sha1 '8c84d6e3b227f583d05e08251e07047e6c3a6b42'
depends_on 'berkeley-db'
depends_on 'mcpp'
# * compile against Berkely DB 5.X
# * use our selected compiler
def patches
[
"https://trac.macports.org/export/94734/trunk/dports/devel/ice-cpp/files/patch-ice.cpp.config.Make.rules.Darwin.diff",
DATA
]
end
#option 'doc', 'Install documentation'
#option 'demo', 'Build demos'
def site_package_dir
"#{which_python}/site-packages"
end
def which_python
"python" + `python -c 'import sys;print(sys.version[:3])'`.strip
end
def options
[
['--doc', 'Install documentation'],
['--demo', 'Build demos'],
['--java', 'Build java library'],
['--python', 'Build python library']
]
end
# See:
# http://www.zeroc.com/forums/bug-reports/4965-slice2cpp-output-does-not-compile-standards-conformant-compiler.html
fails_with :clang do
build 318
cause <<-EOS.undent
In file included from BuiltinSequences.cpp:23:
In file included from ../../include/Ice/BuiltinSequences.h:30:
../../include/Ice/Stream.h:545:19: error: invalid use of incomplete type 'Ice::MarshalException'
throw MarshalException(__FILE__, __LINE__, "enumerator out of range");
(and many other errors)
EOS
end
def install
ENV.O2
inreplace "cpp/config/Make.rules" do |s|
s.gsub! "#OPTIMIZE", "OPTIMIZE"
s.gsub! "/opt/Ice-$(VERSION)", prefix
s.gsub! "/opt/Ice-$(VERSION_MAJOR).$(VERSION_MINOR)", prefix
end
# what want we build?
wb = 'config src include'
wb += ' doc' if build.include? 'doc'
wb += ' demo' if build.include? 'demo'
inreplace "cpp/Makefile" do |s|
s.change_make_var! "SUBDIRS", wb
end
inreplace "cpp/config/Make.rules.Darwin" do |s|
s.change_make_var! "CXXFLAGS", "#{ENV.cflags} -Wall -D_REENTRANT"
end
cd "cpp" do
system "make"
system "make install"
end
if ARGV.include? '--java'
Dir.chdir "java" do
system "ant ice-jar"
Dir.chdir "lib" do
lib.install ['Ice.jar', 'ant-ice.jar']
end
end
end
if ARGV.include? '--python'
inreplace "py/config/Make.rules" do |s|
s.gsub! "/opt/Ice-$(VERSION)", prefix
s.gsub! "/opt/Ice-$(VERSION_MAJOR).$(VERSION_MINOR)", prefix
end
Dir.chdir "py" do
system "make"
system "make install"
end
# install python bits
Dir.chdir "#{prefix}/python" do
(lib + site_package_dir).install Dir['*']
end
end
end
end
__END__
--- ./cpp/src/Freeze/MapI.cpp
+++ ./cpp/src/Freeze/MapI.cpp
@@ -1487,10 +1487,10 @@ Freeze::MapHelperI::size() const
try
{
-#if DB_VERSION_MAJOR != 4
-#error Freeze requires DB 4.x
+#if DB_VERSION_MAJOR < 4
+#error Freeze requires DB 4.x or greater
#endif
-#if DB_VERSION_MINOR < 3
+#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR < 3
_db->stat(&s, 0);
#else
_db->stat(_connection->dbTxn(), &s, 0);
Mac Lion 10.7.X 安装 Zeroc-ICE
brew install ice --python --java --demo --doc
注:ML 10.8.X 安装失败
MacOS 下 远程安装 Oracle 11g r2
在 /etc/sshd_config 把:
#X11Forwarding no
改成:
#X11Forwarding yes
然后运行 ssh (通过 -X flag):
ssh -X oracle@oracle_server_ip
cd database/
./runInstaller
FreeBSD 添加用户,删除用户,更改用户属性
添加用户:pw useradd username 或 adduser 根据提示做
删除用户:pw userdel username
更改属性:pw usermod -s /bin/sh -n username
使普通用户可以su root成为root权限,将用户加入wheel组:
vi /etc/group
wheel:*:0:root,admin
vim 替换 tab
查找所有的tab: /\t
将\t替换为四个空格: :%s/\t/ /g
关于定制 refinerycms-news 的小插曲
问题:
rake refinery:override view=refinery/news/items/*
提示:zsh: no matches found: view=refinery/news/items/*
原因:
zsh tries to do its autocompletion magic on *
解决方法:
rake refinery:override view=refinery/news/items/\*
win7 下安装 psqlodbc ,ODBC列表找不到postgresql驱动
为了测试 filemaker 的外部数据源,在win7环境摆弄一下postgresql ,发现ODBC列表找不到postgresql的驱动,google出来的答案:
http://stackoverflow.com/questions/1057575/postgresql-odbc-driver-not-showing-up-in-control-panel-data-sources
运行 %systemdrive%\Windows\SysWoW64\odbcad32.exe
nginx-gridfs “Mongo Exception: Connection Failure” 处理
nginx 先于 mongodb 启动导致这个问题
解决办法:
mv /usr/local/etc/rc.d/mongd /etc/rc.d/
vi /etc/rc.d/mongod
# PROVIDE: mongod
# REQUIRE: NETWORK ldconfig zfs ----->mongodb文件放在了zfs上
# KEYWORD: shutdown
vi /usr/local/etc/rc.d/nginx
# PROVIDE: nginx
# REQUIRE: LOGIN cleanvar mongod
# KEYWORD: shutdown
FreeBSD make install 补遗
make rmconfig-recursive #重新选择选项
make config-recursive #一次性选择所有选项
FreeBSD 中 "invalid byte sequence in US-ASCII"
在 .cshrc 添加:
set env LANG en_US.UTF-8
set env LC_CTYPE en_US.UTF-8
FreeBSD + Nginx + Nagios 安装补充
cd /usr/ports/www/fcgiwrap
make install clean
/etc/rc.conf:
nginx_enable="YES" php_fpm_enable="YES" fcgiwrap_enable="YES" fcgiwrap_user="www" nagios_enable="YES"
/usr/local/etc/nginx/nginx.conf:
server { listen 80 default; server_name _; index index.html index.php; root /usr/local/www; # IP and IP ranges which should get access allow 10.0.0.0/24; allow 10.1.0.1; # all else will be denied deny all; # basic HTTP auth auth_basic "Restricted"; auth_basic_user_file htpasswd; location ~ \.cgi$ { try_files $uri =404; include fastcgi_params; fastcgi_pass unix:/var/run/fcgiwrap/fcgiwrap.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param REMOTE_USER $remote_user; } location ~ \.php$ { try_files $uri =404; include fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } }
关于 nginx.conf 中的 htpasswd 文件,可以用两种方法解决:
方法一:
cd /usr/ports/security/py-htpasswd
make install clean
which htpasswd.py
vi htpasswd.py:
#!/usr/local/bin/python
用法:
htpasswd.py -c -b /usr/local/etc/nginx/htpasswd nagiosadmin password
方法二:
cd /usr/local/etc/nginx
perl -le 'print "nagiosadmin:".crypt("password","salt");' > htpasswd