自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(71)
  • 资源 (10)
  • 收藏
  • 关注

原创 ubuntu 22.04 docker 配置代理

按照官方apt安装docker的话,docker.server文件会生成在 /lib/systemd/system/docker.service。修改这个 docker.service 在 [Service] 部分增加三行 Environment设置就可以了,结果如下。之后docker pull ubuntu 就会从代理拉镜像了。重新加载 docker.server的配置。重启docker service。

2023-02-02 01:08:00 1656 1

原创 Ubuntu Fcitx 繁简输入切换

Ubuntu Fcitx 繁简输入切换安装输入法apt-get install fcitxapt-get install fcitx-table-wbpy安装输入法之后,状态栏会多一个小键盘(有时候要重启电脑的) 默认情况下如果只能输入繁体字的话,可以按Ctrl + Shift + F切换

2016-05-20 00:43:30 3824

原创 Android 里button.requestFocus()后,要点击两次才生效

使用requestFocus()的对象不能可以点击的,一般找一个没什么用处的ViewGroup来调用获取焦点,这样又可以使我想失去焦点的控件失去焦点,又不影响其它控件使用

2015-10-27 03:17:08 1759

原创 Android ViewPager前两页显示空白

问题描述当时我在做一个聊天工具,要求制作一个表情符号输入框框,这个聊天界面就是一个ChatActivity,上面就是聊天消息,下面就EditText用于输入点击表情按钮时,要像微信那样,从屏幕下方弹出一个表格,让用户选择要发送的表情。这个表情框我用一个Fragment制作,叫:EmojiFragment,然后里面加ViewPager,ViewPager里每一页都是一个EmojiPageFragmen

2015-10-11 04:54:54 1461

原创 ubuntu 解压windows创建的zip(rar)文件中文乱码

Ubuntu 用UTF-8编码的,Window用GBK编码,所以会乱码只要指定压缩文件的编码方式就可以了,install unarsudo apt-get install unar例如Windows创建的zip文件是test.zipunar -e GBK test.zip你可以使用unar -h查看帮助信息

2015-07-11 22:05:23 777

原创 解决Ubuntu adb无法连接上android手机

开发环境 Lenovo 手机, android 4.0.1 Ubuntu 14.04 adb version: Android Debug Bridge version 1.0.31 解决步骤断开手机与电脑连接,执行以下命令,查看自己电脑里有什么usblsusb得到输出:Bus 002 Device 004: ID 04f2:b272 Chicony Electronics

2015-07-10 14:27:06 1337

原创 Android ActionBar 返回上一个Activity

第一个Activity是:MainActivity,里有有几个TextView作为按键去用,activity_main.xml:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:la

2015-06-25 14:42:54 1626

原创 Intellij Idea 14 修改字体

如图, 在我想修改字段的时候,show only monospaced 选中,又不能够 取消这个选项只要点击Save as …将Default保存一份就可以修改了

2015-06-05 21:06:53 1073

原创 Golang 计算目录中代码的行数

程序名字countlineos 包来获取运行参数运行的时候要提供两个参数,一个是目录,一个是扩展名 如: countline . go没有运行参数的就退出程序 if len(os.Args) != 3 { fmt.Println("countline [Dir] [extention]") return }计算文件有多少个 ‘\n’func coun

2015-05-29 13:18:41 2603

转载 Intellj IDEA 序列号生成代码

package com.juxuny.test;import java.math.BigInteger;import java.util.Date;import java.util.Random;import java.util.zip.CRC32;public class keygen{ /** * @param s * @param i * @param byt

2015-03-25 09:40:57 995

原创 让golang 代码在arm设备上运行

首先,检查自己安装的go有没有5g 5l这两个文件,执行:go tool5a5c5g5l6a6c6g6laddr2linecgodistfixnmobjdumppackpprofyacc    我这里是已经安装好了,如果见不到5g 5l的话,就要自己再次编译一次go代码了进入go/src 执行:CGO_

2015-03-19 22:44:57 2076 1

原创 java 堆排序代码(最小堆)

package com.juxuny.heap;import java.lang.reflect.Array;import java.util.ArrayList;import java.util.List;/** * Created by Juxuny on 2015/2/10. */public class Heap { private int MAX = 2 <<

2015-02-10 20:34:20 1232

原创 GO语言时间格式化

过去用java,python,php,等语言,将一个时间格式化成一个字符串都是用“yyy-MM-dd hh:mm:ss”之类的方法,golang 的格式化方法真令我大开眼界先看官方文档说明:func (Time) Formatfunc (t Time) Format(layout string) stringFormat returns a textual

2015-02-02 16:22:37 2326

原创 ubuntu 明明安装了flash player plugin ,但提示没有安装,解决办法

安装另一个稳定怎么的flash playersudo apt-get install pepperflashplugin-nonfreesudo update-pepperflashplugin-nonfree --install

2015-01-30 19:44:58 1307

原创 ubutnu 完全删除mysql

sudo apt-get autoremove --purge mysql-server-5.0sudo apt-get remove mysql-serversudo apt-get autoremove mysql-serversudo apt-get remove mysql-common (非常重要)//清除残留数据dpkg -l |grep ^rc|awk '{pr

2015-01-25 20:56:26 505

原创 java SimpleDateFormat格式化输出日期

2015-01-20 19:58:01 635

原创 Ubuntu install ia32-libs

NDK-BUILD失败,错误提示:make: ~/dev/android/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc: Command not found据我所知,ndk下载了64

2014-11-21 18:52:30 679

原创 修改Activity切入动画

1.创建动画

2014-10-27 20:54:06 672

原创 android 调用系统命令实现关机

系统reboot命令有两个功能(我暂时知道的),关机跟重启,一开始nyyl

2014-09-30 14:16:28 2399 1

原创 java 创建WebSservice

一,服务端

2014-09-24 16:00:49 915

原创 android RotateAnimation使用

RotateAnimation (float fromDegrees, float toDegrees, int pivotXType, float pivotXValue, int pivotYType, float pivotYValue) 参数说明: float fromDegrees:旋转的开始角度。 float toDegrees:旋转的结束角度。 int pivot

2014-09-24 09:59:24 845

原创 android TextView 跑马灯效果

<TextView android:text="1234567890qazxswedcvfrrtgbthndghsdfaldfhadnscn" android:singleLine="true" android:marqueeRepeatLimit="marquee_forever" android:ellipsize="marque

2014-09-16 15:05:51 695

原创 android 安装apk

Intent i = new Intent(Intent.ACTION_VIEW); i.setDataAndType(Uri.fromFile(new File(dst)), "application/vnd.android.package-archive"); context.sta

2014-09-15 18:55:25 498

原创 android 开机自启动

创建一个broadcastReceiver:public class BootBroadcastReceiver extends BroadcastReceiver { private String BOOT_ACTION = "android.intent.action.BOOT_COMPLETED"; public BootBroadcastReceiver() {

2014-09-13 00:45:21 499

原创 android 让自己的Activity只创建一个实例

<activity android:launchMode="singleInstance" android:name=".MainActivity" android:label="@string/title_activity_main" android:screenOrientation="landsc

2014-09-13 00:27:31 1624

原创 android 让自己的app成为launcher

在androidMaifest.xml添加:                                <activity android:name=".StartActivity" android:label="@string/app_name" >

2014-09-12 20:29:25 998

原创 SimpleDateFormat 使用说明

G 年代标志符  y 年  M 月  d 日  h 时 在上午或下午 (1~12)  H 时 在一天中 (0~23)  m 分  s 秒  S 毫秒  E 星期  D 一年中的第几天  F 一月中第几个星期几  w 一年中第几个星期  W 一月中第几个星期  a 上午 / 下午 标记符   k 时 在一天中 (1~24)  K 时 在

2014-09-12 12:50:26 445

原创 android ScrollView滚动到底部

只做记录,方便日后再遇到相似的问题可以lk

2014-08-30 18:27:10 795 1

原创 android studio 添加assets目录

在src/main创建目录assets,

2014-08-29 09:57:58 1359

原创 android 指南针实例

在onCreate 得到SensorManger实例

2014-08-20 22:46:22 1137

原创 格式化显示时间(实例)

Date date = new Date(t * 1000); SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd\rHH:mm:ss"); map.put("name", format.format(date));

2014-08-19 16:02:37 504

原创 Android 3d翻转动画(实例)

原理以后再说,主要使用android的

2014-08-15 17:04:50 803

原创 mysql AES 加密(笔记)

SELECT AES_DECRYPT(AES_ENCRYPT('1234567890123456','abcdefgh') ,'abcdefgh') ;

2014-08-10 00:31:24 655

原创 android 实现手机摇一摇功能

实现接口SensorEventListenepublic abstract class ShakeListenerUtils implements SensorEventListener { public Context context = null; private String TAG = "ShakeListenerUtils"; public Sha

2014-08-09 00:26:53 839

原创 android 将Bitmap转YUV420sp(实例)

/** * 将bitmap里得到的argb数据转成yuv420sp格式 * 这个yuv420sp数据就可以直接传给MediaCodec,通过AvcEncoder间接进行编码 * @param yuv420sp 用来存放yuv429sp数据 * @param argb 传入argb数据 * @param width 图片width *

2014-08-08 20:27:07 6829 1

原创 android 删除目录(实例)

首先要添加权限:

2014-08-08 20:24:50 637

原创 android 修改xml实现横屏与竖屏

只需要在AndroidManifest.xml中对Activity属性进行设置android:screenOrientation="landscape"表示始终横屏,android:screenOrientation="portrait"表示始终竖屏,下面是始终横屏的例子:<activity android:name="ViewStatusDetailActivity"

2014-07-25 11:28:49 2245

原创 android actionBar右上角 menu 显示三个点

try { ViewConfiguration config = ViewConfiguration.get(this); Field menuKeyField = ViewConfiguration.class.getDeclaredField("sHasPermanentMenuKey"); if(menuKeyField

2014-07-21 12:45:32 3059

原创 android style设置控件样式

以下是要使用的四个文件

2014-06-03 22:52:47 661

原创 android 列表对话框

public static void showItemsListDialog(Context context, String title, String[] items, DialogInterface.OnClickListener itemsListener, DialogInterface.OnClickListener cancelListener) { new Alert

2014-06-03 22:31:30 612

机器学习的一些基础知识.zip

本人收集的一些关于机器学习的文档或者相关论文,主要包括图片识别,目标跟踪

2019-07-18

Support Vector Machines

This note is about the Support Vector Machines (SVM), a method that has exhibited excellent accuracy in classication problems. Complex mathematics are involved in various aspects of SVM, e.g., proof of its generalization bounds, its optimization, designing and proving the validity of various non-linear kernels, etc. We will, however, not focus on the mathematics. The main purpose of this note is to introduce how the ideas in SVM are formulated, why are they reasonable, and how various simplications are useful in shaping the SVM primal form. We will not touch any generalization bound of SVM, although that is an area which have attracted intensive research eorts. We will not talk about how the optimization problem in SVM can be solved or approximately solved (for eciency and scalability). These choices enable us to focus on the key ideas that lead to SVM, and the strategies in SVM that may be helpful in other domains, and we encourage the readers to also pay attention to these aspects of SVM.

2018-03-02

Information Theory

“Information lies at the heart of biology, societies depend on it, and our ability to process information ever more efficiently is transforming our lives. By introducing the theory that enabled our information revolution, this book describes what information is, how it can be communicated efficiently, and why it underpins our understanding of biology, brains, and physical reality. Its tutorial approach develops a deep intuitive understanding using the minimum number of elementary equations. Thus, this superb introduction not only enables scientists of all persuasions to appreciate the relevance of information theory, it also equips them to start using it. The same goes for students. I have used a handout to teach elementary information theory to biologists and neuroscientists for many years. I will throw away my handout and use this book. ”

2018-03-02

信息论(英文版)

“Information lies at the heart of biology, societies depend on it, and our ability to process information ever more efficiently is transforming our lives. By introducing the theory that enabled our information revolution, this book describes what information is, how it can be communicated efficiently, and why it underpins our understanding of biology, brains, and physical reality. Its tutorial approach develops a deep intuitive understanding using the minimum number of elementary equations. Thus, this superb introduction not only enables scientists of all persuasions to appreciate the relevance of information theory, it also equips them to start using it. The same goes for students. I have used a handout to teach elementary information theory to biologists and neuroscientists for many years. I will throw away my handout and use this book. ”

2018-03-02

stm32 能过无刷电调驱动无刷电机

stm32 输出pwm到无刷电调控制无刷电机

2013-12-23

mongoDB mgo GO语言驱动

mongoDB 的GO语言驱动,让你更方便地去mongoDB上处理数据

2013-10-11

Go 语言 串口驱动(linux)

GO语言通过C的头文件对linux上的串口进行读写

2013-10-11

ZXing Demo

使用zxing的api,实现二维码识别(会自动对焦)

2013-09-19

golang mysql driver

用于连接mysql ,使得go 语言更加方便

2013-04-29

jx_http_server

C++实现http server 与浏览器应答,并且用C++代替php,但代码还是有点错误

2013-02-13

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除