#include "rtmp.h"
class RTMPWriter : public SrsFileWriter
{

Person 發表在 痞客邦 留言(0) 人氣()

#include <stdio.h>
#include <stdlib.h>
#ifdef ENABLED_PNG
#include <png.h>
#endif

Person 發表在 痞客邦 留言(0) 人氣()

用了His最新toolchain: arm-hisiv100nptl-linux-gcc (Hisilicon_v100(gcc4.4-290+uclibc_0.9.32.1+eabi+linuxpthread)) 4.4.1

編了gdb7.5,立刻就出現下列錯誤

compile warning "configure: error: no termcap library found"

老問題, 少了termcap:如果X86直接安裝sudo apt-get install libncurses5-dev就好了.

但畢竟是要corss compiler,因此要抓ncurses自己回來重build,

Person 發表在 痞客邦 留言(0) 人氣()

GPS 座標轉 google map
<!DOCTYPE html>
<html>
<head>
<metaname="viewport"content="initial-scale=1.0, user-scalable=no"/>

Person 發表在 痞客邦 留言(0) 人氣()

listen=YES
#listen_ipv6=YES
anonymous_enable=YES
anon_root=/srv/ftp
local_enable=YES

Person 發表在 痞客邦 留言(0) 人氣()

White paper: FastCGI: A High-Performance Web Server Interface (http://www.fastcgi.com/drupal/node/6?q=node/15)

如果FastCGI在編譯的時候, 發生了EOF Error未定義的問題. 只要在fcgio.cpp的檔案補上#include <cstdio.h>即可解決.

我使用範例裡面的echo.fcgi, 配合lighttpd, 設定如下

###################################################

##

Person 發表在 痞客邦 留言(0) 人氣()

#if BLD_WIN_LIKE || VXWORKS
int gettimeofday(struct timeval *tv, struct timezone *tz)
{
    #if BLD_WIN_LIKE
        FILETIME        fileTime;

Person 發表在 痞客邦 留言(0) 人氣()

Unix domain sockets have a unique ability to pass file descriptors.

#include <sys/sockets.h>

int sendmsg(int fd, const struct msghdr *msg, unsigned int flags);

int recvmsg(int fd, struct msghdr *msg, unsigned int flags);

sender:

Person 發表在 痞客邦 留言(2) 人氣()

製作一個calc的webservice

下載gsoap toolkit, linux必須安裝byacc, flex, bsion, openssl lib.

./configure --without-yacc (需要補上without-yacc,不然會出現-ly找不到的問題)

安裝完之後,主要會有兩個執行檔 

wsdl2h 解晰wsdl檔案,產生soapcpp2需要用到的header檔案

Person 發表在 痞客邦 留言(1) 人氣()

1.yum install samba, apache, subversion

2.samba configuration

security = server
password server = 192.168.1.2
[homes]

Person 發表在 痞客邦 留言(0) 人氣()

  • Apr 26 Tue 2011 15:23
  • astyle

setting_ultraedit_astyle0

astyle http://astyle.sourceforge.net/

In UltraEdit, go into Advanced > Tool Configuration from the menu.

Command Line

astyle --style=allman --indent=tab --quiet "%f"

Person 發表在 痞客邦 留言(0) 人氣()

如果想用linux連到samba server export出來的分享資料夾,

之前都是用smbclient或者mount -t smbfs,

不過smbfs在新版的linux已經移除了,取而代之的是

mount -t cifs -o username=personlin,password=personlin //192.168.23.2/personlin /mnt/smb

[舊的用法]

Person 發表在 痞客邦 留言(0) 人氣()

1 2 3 4
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。