Q:

[2014-04-06 14:52:47 - HelloWord] No Launcher activity found!
[2014-04-06 14:52:47 - HelloWord] The launch will only sync the application package on the device!

Ans:

you need to add a package that matches your Android package name in your manifest. Right click on your src folder and New -> Package. Name it "com.example.hello". Then right click on this new package and choose New -> Class. Name this MainActivity.

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

筆試:

1. C語言

題目1: 程式填空

//Descript: str_parser used for parse src string into toke array


//Parameter: src = source string

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

1. 取得使用者輸入的參數

     SET /P VAR1=請輸入Ruby code file path:

2.類似註解

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

netstat -ano:可以查出現在程式使用中的ip port和使用的程式

Note: 迅雷會佔用80 port

C:\Users\Genie>netstat -ano


使用中連線


協定 本機位址 外部位址 狀態 PID

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

建立目錄

def create_default_dir folder
   if !Dir.exist?(folder)
      puts "%s%s" % ["Folder name = ",folder]
      Dir.mkdir(folder, 0777)

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

傳進function裡的參數,若不固定數量,則可用*來指定參數

def write_log(*elements)
puts elements[0],elements[1],elements[2][0],elements[2][1],elements[3];
end
=begin

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

以下:

8進制轉10進制

16進制轉10進制

#include <stdio.h>
#include <stdlib.h>

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

sample code 

=begin
Spreadsheet library
Ref. http://spreadsheet.rubyforge.org/GUIDE_txt.html
=end

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

解壓縮 tar.gz     =>     tar -zxvf filename.tar.gz


壓縮 tar.gz       =>      tar -zcvf filename.tar.gz /folder


解壓縮 tar.bz2   =>     tar -jxvf filename.tar.bz2

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

include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <linux/types.h> 
#include <sys/socket.h>

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

coredump是用來debug看程式哪個環節error了,程式掛了後,會產生core檔案

可用gdb來看此檔

用法:

step 1:

echo "/var/log/coredump/core-%e-%p-%t" >  /proc/sys/kernel/core_pattern

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

linux version : debian

預設使用的顏色定義在/usr/bin/dircolors,想要改變的話

需自已建立個檔案

cd到dircolors目錄下,

#在home/使用者/目錄下建立顏色檔案.dircolors

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

1 2 3
Blog Stats
⚠️

成人內容提醒

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

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