2021年3月12日 星期五

顯示解析度列表

 


https://en.wikipedia.org/wiki/Graphics_display_resolution


1920x1080 fhd (16:9)


1400x1050 sxga+ (4:3)


1280x960 sxga- (4:3)



1280x1024 sxga (5:4)


 

1600x1024 wsxga (3:2)


2021年2月25日 星期四

手機 sony xperia xa2 h4133 android

 


https://zh.wikipedia.org/zh-tw/Sony_Xperia_XA2


https://www.gsmarena.com/sony_xperia_xa2-8986.php


2018 2月發行



3GB ram, 32GB eMMC




5.2 吋




qualcomm 630




usb type-c




wifi 802.11abgn




1080x1920


2sim






Android 8



sony unlock bootloader

https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader#unlock-code

2021年1月7日 星期四

git repo 管理

 git repo 管理





有一個使用情形是用 repo管理

 

已經出一版 1.0 sdk了。


如果是有patch的話想只出1.01有修改的檔案

如  project a 的 ddd.c  和 project b的 eee.c

 

是不是有對應的指令可以做到


repo forall -c 'git diff --src-prefix=old/$REPO_PATH/ --dst-prefix=new/$REPO_PATH/ v1.0 v1.0.1' > all.patch


This command generates a single patch for the change from v1.0 to v1.0.1 tags.




將有修改後的檔案 tar起來。


single tar file::  files the change from v1.0 to v1.0.1 tags.



List file different to `filelist`

$ repo forall -c 'git diff HEAD v1.0.1 v1.0 --name-only | sed -e "s|^|$REPO_PATH/|"' > filelist


Create tarball according to `filelist`

$ tar jcvf test.tar.bz2 `cat filelist`





https://stackoverflow.com/questions/33030289/is-there-a-tool-to-create-repo-manifest-file-with-sha-based-on-current-work-dire




The repo manifest command creates manifest files with fixed SHA-1s based on the current workspace.


repo manifest -r -o my-manifest.xml







只用git管理的情形

http://stackoverflow.com/questions/12841360/git-archive-from-changed-files-on-bare-repos

 


git archive --format=tar --prefix='/' master `git diff V1.02 master --name-only` | gzip -9 > ~/tars/update-v1.02-`git describe master --tags`.tar.gz



https://www.jianshu.com/p/58e5d4f9f9a9


https://source.android.com/setup/develop/repo



大丈夫日記 

http://ryan0210.blogspot.com/2013/10/coding-repo-git.html


泰勞筆記

https://thai-lin.blogspot.com/2017/05/repo-git.html




repo sync -j threadcount



 -j threadcount :在線程之間拆分同步,以加快完成速度。確保不要通過為其他任務保留一些CPU來壓倒計算機。要查看可用CPU的數量,請首先運行: nproc --all

 



git push origin master 


1.

直接 push:

$ git push orgin default:master


2.


進到 code review的push 指令

git push origin default:refs/for/master


PS. 其實 repo upload 指令,就是把 topic branch push 到 refs/for/project-branch,

       就會直接進到 code-review 頁面上



tig


m main view

d diff view

r branch view the branches, remotes and tags in the repository.

t tree view

b blame view Displays the file content annotated or blamed by commits.


all view

j k up/down

J K next/previous

上鍵 下鍵 next/previous

page up/down : page up down

q 關閉 畫面


in main view

D 切換 date display modes

A 切換 author display modes

X 切換 commit sha

enter  查看 commit 的詳細 diff 變更 

q 關閉 diff 畫面。


還有 tig 指令後面接 branch 名稱可以直接查看分支,接著在分支 commit 上按大寫 C 可以 cherry-pick 回目前的 branch,而 tig 後面接檔名的話可以直接查看跟這個檔案有關的 commit,更多的基本功能介紹可以看 git? tig! 這篇文章。



https://devhints.io/tig

http://blog.kidwm.net/388

http://jonas.nitro.dk/tig/manual.html


htc 內建遊戲

 


htc 內建遊戲



https://forum.xda-developers.com/t/app-teeter-apk.1666561/



TEETER 平衡球遊戲 - HTC論壇


https://community.htc.com/tw/chat.php?mod=viewthread&tid=5446



https://www.youtube.com/watch?v=CNhH5LE1tO8

2020年12月30日 星期三

gdb

 gdb exefile



basic command


file exefile


run/r

continue/c

next/n


step/s


print/p


quit/q


break filename:linenumber


break file:func



info break


watch,

break: clear delete enable disable


info locals



info registers

info all_registers


show args


print *array@len


print format


o - octal

x - hexadecimal

u - unsigned decimal

t - binary

f - floating point

a - address

c - char

s - string


https://visualgdb.com/gdbreference/commands/print



examine/x


x/nfu <address>



https://henrybear327.gitbooks.io/gitbook_tutorial/content/Linux/GDB/index.html


https://welkinchen.pixnet.net/blog/post/60935296-%E9%99%A4%E9%8C%AF%E5%B7%A5%E5%85%B7-gdb-%28the-gnu-project-debugger%29


2020年12月11日 星期五

手機 紅米 redmi note 7 pro android

 


https://www.gsmarena.com/xiaomi_redmi_note_7_pro-9521.php



https://www.sonymobile.com/tw/products/phones/xperia-xa2/specifications/#gref


2019 2月發行


6GB ram, 128GB eMMC


6.3 吋


qualcomm 675


usb type-c


wifi 802.11abgnac


1080x2340

2sim


miui 11.02

Android 10

2020年12月1日 星期二

上學歌 國語童謠、兒歌

 https://www.youtube.com/watch?v=CwrmdZnSRug



http://classweb.loxa.edu.tw/clockloxa/wma/childrensong/wmawpl/13school.htm



上學歌 國語童謠、兒歌


天亮了,天亮了,公雞正在叫

穿好衣,洗好臉,快快上學校

見了老師一鞠躬,說聲老師早

見了同學拉拉手,互相問個好



https://memes.tw/gif/488



https://m.051661.com/ertonggequ/zhongwengequ/64/23374.html


https://www.lrcku.com/geci/20181128/13755.html


https://bayou0707.pixnet.net/blog/post/28569570



https://am164x11.pixnet.net/blog/post/145331791

兒歌《上學歌》



https://blog.xuite.net/am164x11/twblog/154655169-%E5%85%92%E6%AD%8C%E3%80%8A%E4%B8%8A%E5%AD%B8%E6%AD%8C%E3%80%8B