Home

Android TextView

Android TextView 画横线 TextView tv = (TextView) findViewById(R.id. text_view ); // 中间加横线 , 添加Paint.ANTI_ALIAS_FLAG是线会变得清晰去掉锯齿 tv.getPaint().setFlags(Paint.STRIKE_THRU_TEXT_FLAG | Paint.ANTI_ALIAS_FLAG ); // 底部加横线 , 添加Paint.ANTI_ALIAS_FLAG是线会变得清晰去掉锯齿 tv .getPaint().setFlags(Paint. UNDERLINE_TEXT_FLAG | Paint.ANTI_ALIAS_FLAG ); tv.setPaintFlags...

Read more

Mybatis

Mybatis 返回ID oracle 通过序列创建id, mysql 有自增字段 <insert id="insertSelective" useGeneratedKeys="true" keyProperty="sid" parameterType="com.teamsun.base.entity.SysProject"> <selectKey resultType="java.lang.Long" keyProperty="sid" order="AFTER" > SELECT LAST_INSERT_ID() as sid </selectKey> </insert> Refere...

Read more

Linux install package By iso

Linux install package By iso [media] name=Redflag x86_64 Linux 7 - media baseurl=file://mnt enabled=1 gpgcheck=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redflag-7-x86_64 yum install --disablerepo=\* --enablerepo=media -y install <rpm> Reference

Read more

Android Widget

Android Widget 1. widgets分类 Information widgets Collection widgets Control widgets Hybrid widgets 2. Widgets组件 AppWidgetProviderInfo AppWidgetProvider AppWidgetProvider onUpdate() : onAppWidgetOptionsChanged() onDeleted(Context, int[]) onEnabled(Context) onDisabled(Context) onReceive(Context, Intent) Use coll...

Read more

Oracle to mysql

Oracle to mysql Oracle 表名和表别名不区分大小写, mysql区分; 字段名称都不区分大小写 ID改成自增, 去掉ORACLE序列语句, 不插入ID 递归 使用WITH语句, [MySQL Recursive CTE (Common Table Expressions)](https://www.geeksforgeeks.org/mysql-recursive-cte-common-table-expressions/) oracle: SELECT P.SID, P.PRJ_NAME FROM TB_SYS_PROJECT P CO...

Read more

Python asyncio

Python asyncio high-level APIs Coroutines and Tasks async/await asyncio.run() 运行coroutines顶级入口点 asyncio.create_task() 创建并发coroutines任务 asyncio.TaskGroup() 3.11 替代asyncio.create_task 一个对象如果可以使用await, 那么就说这个对象是awaitables asyncio库的对象, 大多数是awaitables coroutine function: an async def function; coroutine object: an object returned by c...

Read more

Linux 安装python3.6

Linux 安装python3.6 wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz Reference linux centos7 安装python3.6 替换默认python2.7

Read more