ubuntu server安裝GUI

ubuntu server預設是沒有GUI組件的,在個人使用的時候GUI有時又是不可或缺的組件,這個時候該怎麼辦呢其實很簡單,如果機器能連網的話,只需簡單的幾個步驟就能完成ubuntu server安裝GUI組件  sudo apt-get install

Install matplotlib Error: src/ft2font.h:16:22: fatal error: ft2build.h: No such file or directory

在ubuntu下從源碼安裝matplotlib的時候出現這樣的錯誤:src/ft2font.h:16:22: fatal error: ft2build.h: No such file or directorysrc/_png.cpp:10:20: fatal error: png.h: No such file or directory通過尋找編譯資訊,發現matplotlib依賴於freetype2和libpng等開發包具體解決方案如下:(1)安裝freetype2開發包:  sudo

error: error in setup script: command ‘build_exe’ has no such option ‘include-file

在使用cx_freeze將python程式轉換成exe的時候碰到如下錯誤:setup.py內容如下:import sysfrom cx_Freeze import setup, Executable# Dependencies are automatically detected, but it might need fine tuning.build_exe_options = { # "packages": ["os"],

ImportError: No module named _md5解決方案

將使用cx_freeze打包的python程式copy到別的機器上運行時碰到這樣的錯誤:jerrykwan@jerrykwan:~/Downloads/exe.linux-x86_64-2.7$ ./server_family_info Traceback (most recent call last):  File "/usr/local/lib/python2.7/site-packages/cx_Freeze/initscripts/Console.py", line 27, in

強大的網站分析工具Google Analytics

什麼是Google Analytics?  Google Analytics(分析),您可以收集、查看和分析有關您網站訪問量的資料。通過將 JavaScript 程式碼片段嵌入頁面,可以查看哪些內容的訪問次數最多、平均頁面瀏覽量和訪問網站的時間,哪些廣告為網站吸引到最多訪問者以及其它更多內容。還可以使用簡單的管理介面設定目標和過濾器,從而根據業務需求來控制記入報告的資料。最棒的地方在於這一成熟而功能完善的網路分析套件是免費的。註冊Google Analytics帳號  要使用Google

TFS命令方式強制籤入別人簽出的檔案

  我們在使用TFS原始程式碼控制的時候,會遇到這樣的情況,原始程式碼控制會在每個客戶PC上建立一個工作區,然後這個工作區域映射到伺服器上的源碼檔案夾,我 們在正常簽入,簽出的時候,我們的源碼會在伺服器到用戶端的工作區進行操作,但是一旦有項目群組成員在告假或者離職之前簽出,並且加入了簽出鎖,這時如果項 目組的其他成員想要修改被鎖定的檔案,或者是TFS的管理員想要在原始程式碼控制中刪除這個項目,這時問題出現了,因為我們無法通過Team

dwz架構使用心得

一、分頁出現的問題1、分頁功能不能使用  分頁提交需要把POST到背景參數(頁號、頁大小、查詢條件等)放到ID為pageForm的form裡,但在開發過程中,怎麼點分頁按鈕都沒有反應,通過調試發現pageForm這個form標籤沒有了,只剩下form裡的<input>標籤了,而demo中的分頁樣本就沒有問題。是把demo裡的代碼拷過來的啊,怎麼就不行呢?花了近兩個小時,終於找到原因,原來在首頁中,所有代碼都放到了<form id="form1"

Window.open()的使用

<SCRIPT LANGUAGE="javascript"> <!-- window.open ('page.html', 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no,resizable=no,location=no, status=no') //寫成一行 --> </SCRIPT> 參數解釋: <SCRIPT

js函數理解

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html;

讓div置中的方法

 var docWidth = document.body.offsetWidth;        // var docHeight = document.body.offsetHeight;                var divobj = document.getElementById("align");        var divWidth = divobj.offsetWidth;        // var divHeight = divobj.offsetHeight;   

NoVNC的使用、websockify以及VNC截圖

在使用NoVNC的時候,需要VNCServer支援websocket,對於大多數VNCServer來說要想使用NoVNC則需要使用NoVNC內建的./utils/websockify來進行代理或者二次封裝,具體操作步驟如下:一、代理方式    1.1 啟動 vncserver        tightvncserver -geometry 1024x768 -nolisten tcp :1    1.2 使用websockify進行代理        ./utils/websockify 680

安裝gevent錯誤/gevent/core.so: undefined symbol: event_global_current_base_ 的解決方案

在通過python setup.py install 安裝gevent後,使用gevent時提示如下錯誤:# python2.6Python 2.6.7 (r267:88850, Sep  6 2011, 08:13:16) [GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] on linux2Type "help", "copyright", "credits" or "license" for more information.>>>

how to get the caller’s module name, file name , function name and line number?

在寫一些底層模組的時候,特別是日誌模組、底層服務等,需要記錄調用者的一些資訊,比如module name, file name, function name, line number 等,而不是記錄我們所寫的底層模組的相關資訊。這個時候就需要用到python的inspect模組來完成相應的功能以下代碼僅作為樣本:# -*- coding: utf-8 -*-'''@summary: get caller's module name, file name, function name, line

python2.7下安裝cherrypy問題

將CentOS下的python版本升級到python2.7,通過easy_install安裝cherrypy沒問題,但在使用cherrypy的時候卻出錯。import cherrypy時報出錯誤如下:Traceback(most recent call last):   File"<stdin>", line 1,in<module>   File"/usr/local/lib/python2.7/site-packages/cherrypy/__init__.py",

Http client to POST using multipart/form-data

轉載一段python代碼,通過urllib2使用multipart/form-data來傳送檔案import httplib, mimetypesdef post_multipart(host, selector, fields, files): """ Post fields and files to an http host as multipart/form-data. fields is a sequence of (name, value) elements for

使用komodo調試Django

對於如何使用komodo來調試Django程式,這裡做一簡單描述,以備查用。主要採用遠程調用方式來調試,亦即使用komodo的pydbgp.py具體做法如下:1.設定komodo debugger connectionEdit--> Preference...-->Debugger  Debugger Connection 選中 a specific port2.調用pydbgp.pypython "D:\Program Files\ActiveState Komodo IDE 5\

怎樣更改Git的commit?

怎樣更改Git的commit?在使用git的時候,避免不了要更改某一個或某一些commit,這個時候就需要使用git rebase命令了。假如說當前repository中共有兩個commit, 05034eefd8670787d0f2cf6a67a2798b31c676b5(Initial commit), c9e03a2805b3b7c101b77ecaf5ac4f9a96759f64(just for

jquery比較時間大小(時分)

var getid = $(this).find(".Time").attr("id");                        var starttime = getid.split(',');                        var a = new Date("01/10/2012 12:00");                        var b = new Date("01/10/2012 18:00");                       

js,jquery數組

1.數組的建立var arr=new Array();2.尋找數組中的元素for(var i=0;i<arr.length;i++)if(arr[i]==temp)return true;3.下面比較一下Array和Object的特性:Array:建立:var ary = new Array(); 或 var ary = []; 增加:ary.push(value); 刪除:delete ary[n]; 遍曆:for ( var i=0 ; i < ary.length ; ++i

jquery文字廣告

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>    <title>廣告</title>    <script

總頁數: 61357 1 .... 8498 8499 8500 8501 8502 .... 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.