Cosmomi123456
码龄10年
关注
提问 私信
  • 博客:60,489
    60,489
    总访问量
  • 暂无
    原创
  • 470,193
    排名
  • 3
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:广东省
  • 加入CSDN时间: 2015-01-10
博客简介:

Cosmomi123456的博客

查看详细资料
个人成就
  • 获得8次点赞
  • 内容获得0次评论
  • 获得40次收藏
创作历程
  • 15篇
    2019年
  • 38篇
    2018年
  • 109篇
    2017年
  • 19篇
    2016年
创作活动更多

HarmonyOS开发者社区有奖征文来啦!

用文字记录下您与HarmonyOS的故事。参与活动,还有机会赢奖,快来加入我们吧!

0人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

rc.local 注意事項,call python script, file position

如果要在 rc.local 呼叫 python scriptpython script 的位置需使用絕對路徑其 python script 裡的有關 file 的位置也需使用 絕對路徑如果要在 rc.local 呼叫建立 filefile 的位置需使用絕對路徑rc.local 位在 /etc 下rc.localtouch test #--- 沒有生效t...
转载
发布博客 2019.07.17 ·
225 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

shell 變數

echo $?上个命令的退出状态,或函数的返回值。ref:http://c.biancheng.net/cpp/view/2739.html转载于:https://www.cnblogs.com/youchihwang/p/11052780.html
转载
发布博客 2019.06.26 ·
224 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

insmod mknod

insmod module會在 /proc/devices/ 下產生 major number 及 device name----------------------------mknod 會使用 /proc/devices/ 下的 major number 在 /dev 建立 節點----------------------------reference:https://w...
转载
发布博客 2019.07.16 ·
352 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

gcc 簡單操作

gcc -c test.c產出 test.o object filegcc -c test.c -o XXX產出 XXX object filegcc test.c -o aaa產出 aaa executable file转载于:https://www.cnblogs.com/youchihwang/p/10692040.html
转载
发布博客 2019.04.11 ·
179 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

c 語言 控制碼

source code#include <stdio.h>int main(){ char *test = "ABC\x41
"; printf("string : %s", test); return 0;}output$ ABCAsource code 中的 "\x41",代表 ascii 碼 0x41,也就是 "A"也可寫...
转载
发布博客 2019.03.27 ·
141 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Make recursive

folder structure:Makefilet1/Makefilet1/t1.ct2/Makefilet2/t2.cMakefileSUBDIRS = t1 t2all: for dir in $(SUBDIRS); do \ $(MAKE) -C $$dir; \ donet1/Makefileall: t1clean: ...
转载
发布博客 2019.03.22 ·
236 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Makefile 的 prequisite 執行順序 single multi thread

Makefile 代碼如下:B 需要 A 的 產出,all: A BA B 是 target,case 1:single-threadmake -j1則執行的順序為 A -> BA 先產出,B 再消化。case 2:multi-threadmake -j16則執行的順序為平行 A->B->A 尚未產出 B 所需要的東西,B 就向去拿,會發生...
转载
发布博客 2019.03.26 ·
178 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Makefile 變數替換

MakefileSUBDIRS = xxx aaaBUILDSUBDIRS = $(SUBDIRS:%=build-%)CLEANSUBDIRS = $(SUBDIRS:%=clean-%).PHONY: all cleanall: $(BUILDSUBDIRS)$(BUILDSUBDIRS): @echo "<===" $@ make -C $...
转载
发布博客 2019.03.21 ·
118 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Makefile target dependency

Makefile.....all: T1 T2T1: @echo "<===" $@T2: @echo "<===" $@.....make執行順序為 T1 -> T2=====================Makefile.....all: T2 T1T1: @echo "<===" $@T2: ...
转载
发布博客 2019.03.22 ·
311 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Makefile PHONY

case 1:Makefileclean: rm aenvironment_1 :There is only file a$ make cleanclean aenvironment_2 :There are two file a and clean$ make cleanmake: 'clean' is up to date.can't clean ac...
转载
发布博客 2019.03.21 ·
215 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

pipe

利用 pipe 做接收資料case 1Terminal_1$ mkfifo foo$ echo "1" > foo 此時會程式會 hold 住,直到 data 被取走Terminal_2$ cat < foo // 取走資料$ 1case 2Terminal_1$ mkfifo foo$ echo "1" > foo 此時會程式會 h...
转载
发布博客 2019.03.20 ·
146 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

isatty

isatty - test whether a file descriptor refers to a terminal#include <stdio.h>#include <unistd.h>int isatty(int fd);int main(int argc, char *argv[]) { printf("isatty : %d
",...
转载
发布博客 2019.03.20 ·
337 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

measure time program

#include <time.h>int delay(int time){ int i,j; for(i =0;i<time;i++) for(j=0;j<10000;j++) ;}int main(){ struct timespec start_1, end_1;...
转载
发布博客 2019.03.08 ·
144 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

source insight setting

adjust source code font sizeOptions -> File Type Options -> Screen Font -> Sizeadjust distance between line and lineOptions -> Preferences -> Display -> Style -> left side...
转载
发布博客 2018.12.18 ·
247 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

tmux

https://larrylu.blog/tmux-33a24e595fbc转载于:https://www.cnblogs.com/youchihwang/p/10268737.html
转载
发布博客 2019.01.14 ·
137 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Visual Studio Code 好用的 source code editor

short cuthttps://code.visualstudio.com/shortcuts/keyboard-shortcuts-linux.pdfgo to definition :F12go back :ctrl alt -go forward :ctrl shift -Find All References (need extension C++ Intell...
转载
发布博客 2019.01.17 ·
453 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

screenshoter 連續截圖工具

https://pcrookie.com/?p=993顯示 mouse 設定Settings -> Saving -> Display mouse cursor转载于:https://www.cnblogs.com/youchihwang/p/9787590.html
转载
发布博客 2018.10.14 ·
118 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

trickle charging current is 0A ?

Recently, I test trickle charging current of the smart phone.It's 0A.??????????????????????yes, it's 0A.Scared me.I read some releated pmic spec.The trickle charging mode is fully controlle...
转载
发布博客 2018.09.15 ·
289 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

grep and regular expression --- ^ . *

"^" : Start of Line anchor"." : Matches any single character except the newline character."*" : Matches the preceding character 0 or more times.Application_1test fileif_0 // no white ...
转载
发布博客 2018.10.04 ·
148 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

objdump

objdump -h test (show section headers)test.c#include <stdio.h>int main(){ static int xxxxxxxxxxxxxxxxxxxxxxxxxx; static int aaaaaaaaaaaaaaaaaaaaaaaaaa; printf...
转载
发布博客 2018.08.25 ·
129 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多