Mesa, OpenGL and VMware

最近幫朋友寫 Java OpenGL 的程式,慢慢有點感覺,於是就想在 Linux 上寫點東西給自己。實在不想再去跟 Linux 傳統型程式的各種 bug 鬥爭,我選擇 VMware。用 root 啟動到 runlevel 3,開啟 xfs 服務,然後 startx /usr/bin/xterm,一切正常。從 OpenGL 紅書抄了一份代碼,GL + GLU + GLUT 的。直接編譯出錯。檢查了一下,我的 FC4 裡只有 freeglut,沒有 glut-devel,於是把 #include

VMware Server notes

這幾天在 Laptop XP 和 Ubuntu server 上各裝了 VMware Server。。實在是很酷的東西。不知道還有誰記得當年的 coLinux 沒——或者這個東西現在還很流行,只是我不知道?VMware Server 至少已經非常簡單地達到了我當初用 coLinux 沒有做到的事情。 ——同時使用兩個系統。不用 VMware Player 的原因:VMware Server 可以建立新的 image 介面很熟悉,配置很簡單

Retrospect on a recent university project

Group reflections and conclusionLimitations in terms of functionalityThe app is able to perform its main tasks to deliver and discover information on campus. However there are still limitation in terms of functionality.Better image

std::map 的 inserter 實現

本來 std::map 不是 back insertable sequence,但是論壇上有人希望對一個 map 進行 std::copy in, std::copy out,於是偶就隨便寫了這麼的個東西。。template >class map_inserter {public: typedef std::map<_Key, _Value, _Compare> map_type; typedef typename map_type::value_type

Reflection on recent university project

Group reflections and conclusionLimitations in terms of structure, design, implementationThe design and structure of this app generally fulfills its requirements, capable of providing information to the client in the way that is flexible, extensible

SVN + Subeclipse

這兩天被代碼版本問題折騰壞了,痛下決心要引入一個 versioning system 到我的系統中來。近年最火的是 SVN,我的兄弟 hellwolf 也是個 svn 高手,所以不需多加考慮,就是它了。首先從 http://subversion.tigris.org/ 下載 SVN 的 Win32 binary。下載 svn-win32-1.3.1.zip,解包到 /software/svn-win32-1.3.1 目錄下,得到 svn.

Enable weak password in Ubuntu

WARNING: BAD PRACTICE!Here we go.Edit /etc/pam.d/common-passwordfind the linepassword [success=1 default=ignore] pam_unix.so obscure sha512The "obscure" option here disables simple password, according to the man page of pam_unix(8)Enable

web.py multipart file handling

I'll have to admit that... it was so easy to use $_FILE for file uploading in PHP.Trying to switch to Python from PHP (for various reasons including shared configuration between web and background processes, etc). Started looking at web.py (with

arm7下swi中斷類比程式步步學

介紹個中斷使用swi模式特權模式superisor svc供OS使用的一個保護模式其實也是一個中斷,對於硬體使用者不可幹擾確切的來說是使用者定義中斷模式1.瞭解正常狀態USER狀態的可用寄存器R0~R7通用 R8~R12獨立寄存器[有些模式寄存器組是獨立] R13-SP[各自獨立] R14-LR[獨立] PC[通用] CPSR[獨立]r0~r7通用寄存器同PC下的通用寄存器一樣R8~R12 作為備份寄存器

Ubuntu Natty locale issue

Ubuntu Natty (11.04), debootstrap-ed chroot environmentRunning most commands would receive the following warning message:perl: warning: Setting locale failed.perl: warning: Please check that your locale settings:LANGUAGE = "en_AU:en",LC_ALL = (unset)

學習 vi —— “學習清單”式

原始連結:http://www.gentoo.org/doc/en/vi-guide.xml學習 vi —— “學習清單”式1、起點介紹這篇指南要向你介紹 vi ——一個強大的可視化編輯器——的使用方法。通過一種特殊的循序漸進的“作弊紙”模式,這篇指南讓你在短時間內迅速成為 vi 高手。在這篇指南裡面,你將學到如何瀏覽、編輯文字、使用“插入”模式、複製粘貼以及使用一些重要的 vi 外掛程式(譬如:可視化外掛程式)和多視窗編輯。如果你不知道,或者對 vi 感到不爽,那麼趕快利用這篇指南,讓這個

API Usability for casual programmers…

偶爾跟朋友開玩笑,說我什麼程式都寫過,唯獨沒寫過 Win32 程式,一行都沒有。這到不全然是真——我的 C++ 還是用 Dev-C++ 在 Windows 下學會的呢,MSDN 也裝過一次,三年前,沒看幾頁。但是,我確實完全不曾涉獵過 Win32 編程。看見那些大寫的類型名稱和動輒六個八個的參數列表我就會止不住的噁心想吐。後來遇見 Linux,明白了什麼叫做簡單優雅的 Unix 哲學,就再也沒有想過回頭看 Win32。今天早上照例查信,忽然有了寫一個 Windows

No way to generate HTML markup with data-link and helper functions in JsViews like in JsRender

I was using both Jsviews (https://github.com/BorisMoore/jsviews) and Jsrender (https://github.com/BorisMoore/jsrender), with of course jQuery and jQueryMobile for the interface. The custom tag provided by Jsrender gives great flexibility to build

[memo] dlopen 與 –export-dynamic

先看看狀況(小心頭疼)client.c 編譯得到 client;在 client 的 main 中用 dlopen( "./liba.so", RTLD_LAZY|RTLD_GLOBAL) 開啟 liba.so,並調用 liba.so 中的 start 函數;在 liba.so 的 start 函數中通過 dlopen( 0, RTLD_GLOBAL|RTLD_LAZY ) 得到的控制代碼嘗試調用 client  中的 startup_fcn 函數。使用 gcc client.c -o

Basic distinguish between web.py / flup and tornado web process handling model (TBC)

Tornado is known for its capability of handling concurrent connections with help of OS event triggering mechanisms like epoll and kqueue.Web.py is a web framework for Python. It relies on other server packages to serve as a complete web server

Proxy and site on same port with Apache 2.2

# sites-enabled/siteNameVirtualHost *:80<VirtualHost *:80> ServerName site.com</VirtualHost># sites-enabled/proxy<VirtualHost *:80> #ServerName not important ProxyRequests On</VirtualHost>When using Debian style

IT 翻譯是有多難?對 CSDN 翻譯文的錯誤修正

今天 Fenng 在微博上連結了 CSDN 的一篇翻譯文 《GitHub曆史上最糟糕宕機事故回放及反省》http://weibo.com/1577826897/zdd2J1oh8本著對 Fenng 品牌的信任,我就點去看了一下。CSDN

Bash array iteration

#!/bin/bashOD=outputURL=http://www.ug.it.usyd.edu.au/~ygao6590/# T: threadst=( 1 2 3 )#t=( 1 )# F: filesf=( "50k" "100k" "200k" )#f=( "50k" )# S: timeout (secs)s=( 5 10 15 20 25 )#s=( 5 )tidx=0fidx=0sidx=0while [ "$tidx" -lt ${#t[@]} ]; do

TCP shutdown VS HTTP KeepAlive

Building an HTTP client for some performance testing purposes. Multiple sockets, I/O multiplexing, two threads. One sender pushing pipelined requests and one receiver dragging all server responses. In order to simplify program logic I tried to

HTTP/1.1, protocol design, pySpeedtest client

So recently I've been writing HTTP/1.1 client side protocol parsing stuff. Twice.When I went through RFC2616, even shallow like I was doing (merely picking bits that I need to know to get my stuff working),  I get the feeling of seeing through time.

總頁數: 61357 1 .... 16897 16898 16899 16900 16901 .... 61357 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.