- Linux 系统rz、sz命令文件上传下载
砥砺前行的行者
Linux下只需要安装此命令yuminstall-ylrzszMac系统安装如下内容:1:下载Mac版iTerm2官网http://www.iterm2.com/2:安装homebrew(brew)3:brewinstalllrzsz4:进入到/usr/local/bin目录下cd/usr/local/bin5:在/usr/loal/bin目录下复制两个文件下载页面https://github.c
- M1Pro 使用跳板机
小吴同学(wlx)
跳板机
Mac(M1Pro)通过Iterm2使用跳板机1、由于堡垒机(跳板机)不能支持mac系统终端工具,只支持xshell等win生态。所以我们需要先安装iterm2装iterms教程这里头对rz、sz的配置不详细。我们可以这样配置:whereiterm2-send-zmodem.sh和whereiterm2-recv-zmodem.sh找到这2个文件的路径(这里假设你已经完成下载)。指令:open~/
- 高效mac常用快捷键整理
亚里
专业技能平台工具类杂记macosmac快捷键
高效mac常用快捷键整理macOS全局、剪切、拷贝、粘贴finder和系统快捷键文稿浏览器chrome标签页和窗口快捷键功能快捷键网页快捷键Idea&Pycharm必记编辑查询&替换导航重构编译、运行、调试iTerm标签分屏编辑文本编辑sublimetext导航:打开&关闭&前往编辑拆分窗口/标签页学习资料本文整理了程序员高效mac的常用快捷键,熟练使用可以大大提升效率。加油!觉得文章有收获,欢迎
- 使用 SH程序 破解Emby for MACOS 客户端
Emby(原名MediaBrowser)是一个主从式架构的媒体服务器软件,可以用来整理服务器上的视频和音频,并将音频和视频流式传输到客户端设备。此教程主要讲述如何在MACOS上使用SH脚本破除Emby使用限制。一键破解打开终端或iTerm,输入下面命令并回车/bin/bash-c"$(curl-fsSLhttps://git.io/EmbyPremiereUnlock.sh)"输入Mac开机密码后
- iTerm2 快捷键大全
DamonZDM
标签新建标签:command+t关闭标签:command+w切换标签:command+数字command+左右方向键切换全屏:command+enter查找:command+f分屏垂直分屏:command+d水平分屏:command+shift+d切换屏幕:command+option+方向键command+[或command+]查看历史命令:command+;查看剪贴板历史:command+sh
- 工具 - 打造 Mac “完美”终端(Terminal),一篇就够了
CatchZeng
原文:https://makeoptim.com/tool/terminal“完美”终端安装iTerm2zshOhMyZshPowerlevel10k常用插件autojumpzsh-syntax-highlightingzsh-autosuggestionsVSCode配置参考“完美”终端作为一个程序员,经常需要跟终端(Terminal)打交道。配置一个漂亮、好用的终端,不但心情愉悦,效率也能提升
- Linux搭建Go环境
gladming
gogolanglinux服务器
1.ssh远程登录Linux服务器,可选用iTerm、xshellsshroot@ip2.建议配置好阿里云yum源、epel源安装gityuminstallgit3.下载go源码包//下载地址go官网https://golang.org/dl/cd/opt/wgethttps://dl.google.com/go/go1.11.4.linux-amd64.tar.gz4.解压缩go源码包,确认当前
- 终端环境:zsh 和 oh-my-zsh
波罗学
chrome前端
本文是高效终端环境第二篇,系列查看:我的终端环境。前文中,对iTerm2已经有了一个大概认识。但一个高效的终端环境,离不开一个优秀shell解释器。本篇文章将主要介绍zsh+oh-my-zsh的安装、提示符主题配置,以及介绍7提升效率的zsh插件。为什么使用zsh?开始前,先问为什么,知其然,要知其所以然,是个好习惯。所以,为什么要用zsh呢?大家最熟悉的shell解释器,肯定是bash。zsh(
- Mac配置Iterm2炫酷终端
「已注销」
工具使用gitmac经验分享
简介这可能是全宇宙最简单的终端配置教程。下面截图是我自己常用的配置效果,可以很方便的提供一些友好的提示,比如当前git项目使用的分支,命令执行的时间等。开始安装Iterm2官网Download下载安装即可:https://iterm2.com/安装zsh命令行输入zsh--version来检查是不是已经支持zsh。如果不支持,可以使用brewinstallzsh来安装。安装oh-my-zshoh-
- Splits a string in several parts (tokens)
bocsoft
/***Splitsastringinseveralparts(tokens)thatareseparatedbydelimiter*characters.Delimitermaycontainsanynumberofcharacteranditis*alwayssurroundedbytwostrings.**@paramsrcsourcetoexamine*@paramdstringwithd
- 【INTEL(内部错误:子系统:CCLK,文件:/quartus/periph/cclk/cclk_gen7_utilities.cpp, 未在只读原子pr_part上设置全局标志(iterm 错误)
神仙约架
INTEL(ALTERA)FPGAquartuspr_partfpga开发
说明由于英特尔®Quartus®Prime专业版软件23.2中存在一个问题,在PR角色实现修订期间,在针对IntelAgilex®7F/I系列FPGA设备进行编译期间,您在部分重配置(PR)区域中对M20K使用本地路由时钟时,可能会看到此内部错误。解决方法要解决此问题,请确保在进入PR分区之前将时钟提升为全局信号。PR分区中不允许M20K使用本地路由时钟。从英特尔®Quartus®Prime专业版
- Mac下用iTerm2终端使用rz、sz进行服务器上传下载文件
paven559
linux服务器上安装了rz、sz,本地也安装好相应工具和配置触发即可。原文链接:https://blog.csdn.net/ccor2002/article/details/105458152/1.安装rz、szbrewinstalllrzsz2.配置iterm2触发器在/usr/local/bin/下创建脚本iterm2-send-zmodem.sh与iterm2-recv-zmodem.sh
- Mac下使用iterm2的主题色设置
郭_昊
开发提效攻略macos
Mac下使用iterm2的主题色设置1.[首先打开iterm的github查看自己喜欢的颜色](https://github.com/mbadolato/iTerm2-Color-Schemes#andromeda)2.从选择的主题色中点进去,选择Raw,选择保存3.打开iterm的Setting-Profiles-color-ColorPresets1.首先打开iterm的github查看自己喜
- mac上打造美观高效的终端 iterm2
寂夜了无痕
软件工具一箩筐iterm2mac上安装iterm2打造炫酷的终端Iterm2ohmyzshpowerlevel10k
iterm2iTerm2是默认终端的替代品,也是目前macOS下最好用的终端工具,集颜值和效率于一身。使用iterm2安装官方地址https://iterm2.com/downloads.html下载解压然后移动到Applications常用的配置设置热键热键针对单个profile不同的profile可以设置不同的热键设置Statusbarconfigurestatusbar配色光标选择窗口设置从
- 学习小组Day2笔记-青青
青青_237b
召唤linux召唤linux.png单纯linuxCentOSUbuntuWin10中linux推荐gitbashMac上的linux自带terminaliterms本地服务器的linux需要好配置服务器云服务器的linux如何登陆1.使用putty远程登录服务器2.直接输入sshroot@ip地址编号常用linux命令1.pwd显示当前路径2.mkdir创建空目录3.ls显示列表4.删除+目录名
- 一款好用的免费SSH工具MobaXterm和中文乱码处理
凌枫阁
ssh运维服务器
在SSH工具使用过程中,MAC有很成熟的Iterm2,Windows就百花齐放,比较好用的比如putty,但是样式比较传统,并且不支持文件传输,SecureCRT收费,样式也古老,XShell6功能强大,但是也是要收费,综合下来,最好用的还是开源免费的MobaXterm,能够处理日常所有的需求。官网:MobaXtermfreeXserverandtabbedSSHclientforWindows中
- 终端环境:iTerm2
波罗学
策略模式
我想大部分程序员在平时的工作中都是离不开终端,特别是如果你的系统是MacOS或Linux的话,终端的地位更是遥遥领先。本系列的目标是介绍如何基于iTerm2、zsh、oh-my-zsh(包括高效插件)、高效shell命令,甚至将计划基于Tmux和Neovim搭建我的日常终端环境。本文是搭建我的终端环境系列中的第一篇,首先将介绍第一个必不可可少的工具终端-iTerm2,Mac上的终端神器。前言介绍我
- python学习笔记20210329
jolly_elf
装饰器加载顺序:自下而上装饰器执行顺序:自上而下yield表达式:x=yield然后用send()将send中的值传递给yield前的x三元表达式:res=值1if表达式else值2列表生成式:[表达式foriterminlistif判断表达式]字典生成式:{k:vfork,vin元组if判断表达式}集合生成式:{keyforkeyinkeys}生成器:(iforiinrange(10)ifi>0
- 产品操作MySQL入门篇-工具使用
杨呀
MYSQL本资料为产品岗位作为日常工作参考,语言口语化At2019/4/15ByDavid.Yang数据库怎么登录/管理?登录数据库的方式有多种,比如本地Client登录、通过数据库管理工具登录、通过浏览器访问数据库端WEB软件登录。通过各种方式登录后,即可通过当前登录的方式进行数据库的操作。通过本地Client登录Client即一种客户端,比如MAC本地的iterm或iterm2客户端,还有SC
- Iterm2配色方案
fnbj
1.命令行配置高亮打开iterm窗口,执行以下命令:vim~/.bash_profile添加如下配置,设置配色方案:exportPS1="[\033[36m]\u[\033[m]@[\033[32m]\h:[\033[33;1m]\w[\033[m]$"exportCLICOLOR=1exportLSCOLORS=ExFxBxDxCxegedabagacadaliasls='ls-GFh'alia
- AAA--认证、授权、计费
A_Puter
网络网络协议运维
概念AAA是Authentication(认证)、Authorization(授权)和Accounting(计费)的简称,它提供了认证、授权、计费三种安全功能。AAA可以通过多种协议来实现,目前华为设备支持基于RADIUS(RemoteAuthenticationDial-InUserService)协议或HWTACACS(HuaweiTerminalAccessControllerAccessC
- Idea 修改Terminal 为Iterm2
ALEX_至臻
ideawindowsterminal
最近进了mac的坑废话不多讲把设置中Terminal->shellpath修改为/bin/bash是使用mac自身的终端改为/bin/zsh就是改为iterm2的终端希望可以帮到大家
- laravel excel 2.1
lxfamn
javajavascriptexcelvuejs
composerrequiremaatwebsite/excel简单Excel导出基础功能使用create方法快速一个文件,文件名作为第一个参数Excel::create('Filename');手动创建文件,使用LaravelExcelWriter实例作为回调函数的参数Excel::create('Filename',function($excel){//Callwritermethodsher
- 再见了Xshell、iTerm2,这款开源的终端工具真香
开源指北
哈喽,大家好,我是指北君。今天给大家推荐一款逼格很高的终端工具--Tabby对于每一名需要与服务器打交道的开发工程师,我们经常需要和Linux系统打交道,免不了要使用Xshell、iTerm2等终端工具来进行远程登录连接服务器。相对现在比较常用的终端工具主要有Xshell、iTerm2以及SecureCRT。在windows系统使用比较多的是Xshell,基本上是够用了。但是Xshell免费使用只
- iTerm安装及配置
木子家有小可爱
工具安装及配置macos
描述:用于安装和配置Mac终端工具iTerm,同时对界面进行个性化配置、提效插件推荐,助你打造专属终端神器。目的:原生终端的完美替代方案,解决原生终端操作不太方便,界面可定制化程度低的种种问题。最终效果:目录一、下载安装二、主题配置2.1基础主题配置2.2配置OhMyZsh安装脚本安装原生安装配置三、配置Meslo字体四、其他配置4.1声明高亮安装配置4.2自动填充建议4.3快速隐藏和显示iTer
- R语言【cli】——ansi_html_style():对ansi_html()的结果设置CSS格式
ALittleHigh
#clir语言htmlcss
Packagecliversion3.6.0Usageansi_html_style(colors=TRUE,palette=c("vscode","dichro","vga","winxp","win10","macos","putty","mirc","xterm","ubuntu","eclipse","iterm","iterm-pastel","iterm-smoooooth","ite
- MAC iterm 显示git分支名
马优晨
iterm显示git分支名iterm2显示git分支名MAC显示git分支名苹果显示git分支名苹果电脑显示git分支名
要在Mac上的iTerm中显示Git分支名,您需要使用一个名为“OhMyZsh”的插件。OhMyZsh是一个流行的Zsh框架,它提供了许多有用的功能和插件,包括在终端中显示Git分支名。以下是在iTerm中显示Git分支名的步骤:1、安装OhMyZsh:打开终端应用程序(iTerm),然后运行以下命令来安装OhMyZsh:sh-c"$(curl-fsSLhttps://raw.githubuser
- 2022-03-30
xu1234567
写作角度理解elasticsearch的高亮原理下面部分内容由小红书(www.xiaohongshutuiguang.cn)转载提供一、高亮的一些问题elasticsearch提供了三种高亮方式,前面我们已经简单的了解了elasticsearch的高亮原理;高亮处理跟实际使用查询类型有十分紧密的关系,其中主要的一点就是mutiterm查询的重写,例如wildcard、prefix等,由于查询本身和
- Linux terminal ls dir color
RoyTien
Reference配置linux下dircolors,ls命令和mac下iTerm2的颜色,让终端(iTerm2或Terminal)也色彩缤纷在原生的LinuxTerminal中,lsdir的颜色是深蓝色,配合黑底色看上起极为不舒服。ls-alh之后调整完好多了ls-alhLinux下的ls--color=auto命令,其实是根据两个文件来显示颜色的,/etc/DIR_COLORS或者~/.dir
- ZSH 自动读取 macOS 系统代理配置并设置环境变量
米开朗基杨
linuxjava编程语言dockershell
更多奇技淫巧欢迎订阅博客:https://fuckcloudnative.io前言和其它Linux的DE一样,macOS也支持在“系统偏好设置”中设置HTTP代理、HTTPS代理,但是macOS并不会在终端(Terminal、iTerm)的shell中自动生效系统代理配置。为了方便日常使用,我决定好好研究一下macOS的系统代理。1.macOS系统代理的行为和Linux和Windows只有一种系统
- Java序列化进阶篇
g21121
java序列化
1.transient
类一旦实现了Serializable 接口即被声明为可序列化,然而某些情况下并不是所有的属性都需要序列化,想要人为的去阻止这些属性被序列化,就需要用到transient 关键字。
- escape()、encodeURI()、encodeURIComponent()区别详解
aigo
JavaScriptWeb
原文:http://blog.sina.com.cn/s/blog_4586764e0101khi0.html
JavaScript中有三个可以对字符串编码的函数,分别是: escape,encodeURI,encodeURIComponent,相应3个解码函数:,decodeURI,decodeURIComponent 。
下面简单介绍一下它们的区别
1 escape()函
- ArcgisEngine实现对地图的放大、缩小和平移
Cb123456
添加矢量数据对地图的放大、缩小和平移Engine
ArcgisEngine实现对地图的放大、缩小和平移:
个人觉得是平移,不过网上的都是漫游,通俗的说就是把一个地图对象从一边拉到另一边而已。就看人说话吧.
具体实现:
一、引入命名空间
using ESRI.ArcGIS.Geometry;
using ESRI.ArcGIS.Controls;
二、代码实现.
- Java集合框架概述
天子之骄
Java集合框架概述
集合框架
集合框架可以理解为一个容器,该容器主要指映射(map)、集合(set)、数组(array)和列表(list)等抽象数据结构。
从本质上来说,Java集合框架的主要组成是用来操作对象的接口。不同接口描述不同的数据类型。
简单介绍:
Collection接口是最基本的接口,它定义了List和Set,List又定义了LinkLi
- 旗正4.0页面跳转传值问题
何必如此
javajsp
跳转和成功提示
a) 成功字段非空forward
成功字段非空forward,不会弹出成功字段,为jsp转发,页面能超链接传值,传输变量时需要拼接。接拼接方式list.jsp?test="+strweightUnit+"或list.jsp?test="+weightUnit+&qu
- 全网唯一:移动互联网服务器端开发课程
cocos2d-x小菜
web开发移动开发移动端开发移动互联程序员
移动互联网时代来了! App市场爆发式增长为Web开发程序员带来新一轮机遇,近两年新增创业者,几乎全部选择了移动互联网项目!传统互联网企业中超过98%的门户网站已经或者正在从单一的网站入口转向PC、手机、Pad、智能电视等多端全平台兼容体系。据统计,AppStore中超过85%的App项目都选择了PHP作为后端程
- Log4J通用配置|注意问题 笔记
7454103
DAOapachetomcatlog4jWeb
关于日志的等级 那些去 百度就知道了!
这几天 要搭个新框架 配置了 日志 记下来 !做个备忘!
#这里定义能显示到的最低级别,若定义到INFO级别,则看不到DEBUG级别的信息了~!
log4j.rootLogger=INFO,allLog
# DAO层 log记录到dao.log 控制台 和 总日志文件
log4j.logger.DAO=INFO,dao,C
- SQLServer TCP/IP 连接失败问题 ---SQL Server Configuration Manager
darkranger
sqlcwindowsSQL ServerXP
当你安装完之后,连接数据库的时候可能会发现你的TCP/IP 没有启动..
发现需要启动客户端协议 : TCP/IP
需要打开 SQL Server Configuration Manager...
却发现无法打开 SQL Server Configuration Manager..??
解决方法: C:\WINDOWS\system32目录搜索framedyn.
- [置顶] 做有中国特色的程序员
aijuans
程序员
从出版业说起 网络作品排到靠前的,都不会太难看,一般人不爱看某部作品也是因为不喜欢这个类型,而此人也不会全不喜欢这些网络作品。究其原因,是因为网络作品都是让人先白看的,看的好了才出了头。而纸质作品就不一定了,排行榜靠前的,有好作品,也有垃圾。 许多大牛都是写了博客,后来出了书。这些书也都不次,可能有人让为不好,是因为技术书不像小说,小说在读故事,技术书是在学知识或温习知识,有些技术书读得可
- document.domain 跨域问题
avords
document
document.domain用来得到当前网页的域名。比如在地址栏里输入:javascript:alert(document.domain); //www.315ta.com我们也可以给document.domain属性赋值,不过是有限制的,你只能赋成当前的域名或者基础域名。比如:javascript:alert(document.domain = "315ta.com");
- 关于管理软件的一些思考
houxinyou
管理
工作好多看年了,一直在做管理软件,不知道是我最开始做的时候产生了一些惯性的思维,还是现在接触的管理软件水平有所下降.换过好多年公司,越来越感觉现在的管理软件做的越来越乱.
在我看来,管理软件不论是以前的结构化编程,还是现在的面向对象编程,不管是CS模式,还是BS模式.模块的划分是很重要的.当然,模块的划分有很多种方式.我只是以我自己的划分方式来说一下.
做为管理软件,就像现在讲究MVC这
- NoSQL数据库之Redis数据库管理(String类型和hash类型)
bijian1013
redis数据库NoSQL
一.Redis的数据类型
1.String类型及操作
String是最简单的类型,一个key对应一个value,string类型是二进制安全的。Redis的string可以包含任何数据,比如jpg图片或者序列化的对象。
Set方法:设置key对应的值为string类型的value
- Tomcat 一些技巧
征客丶
javatomcatdos
以下操作都是在windows 环境下
一、Tomcat 启动时配置 JAVA_HOME
在 tomcat 安装目录,bin 文件夹下的 catalina.bat 或 setclasspath.bat 中添加
set JAVA_HOME=JAVA 安装目录
set JRE_HOME=JAVA 安装目录/jre
即可;
二、查看Tomcat 版本
在 tomcat 安装目
- 【Spark七十二】Spark的日志配置
bit1129
spark
在测试Spark Streaming时,大量的日志显示到控制台,影响了Spark Streaming程序代码的输出结果的查看(代码中通过println将输出打印到控制台上),可以通过修改Spark的日志配置的方式,不让Spark Streaming把它的日志显示在console
在Spark的conf目录下,把log4j.properties.template修改为log4j.p
- Haskell版冒泡排序
bookjovi
冒泡排序haskell
面试的时候问的比较多的算法题要么是binary search,要么是冒泡排序,真的不想用写C写冒泡排序了,贴上个Haskell版的,思维简单,代码简单,下次谁要是再要我用C写冒泡排序,直接上个haskell版的,让他自己去理解吧。
sort [] = []
sort [x] = [x]
sort (x:x1:xs)
| x>x1 = x1:so
- java 路径 配置文件读取
bro_feng
java
这几天做一个项目,关于路径做如下笔记,有需要供参考。
取工程内的文件,一般都要用相对路径,这个自然不用多说。
在src统计目录建配置文件目录res,在res中放入配置文件。
读取文件使用方式:
1. MyTest.class.getResourceAsStream("/res/xx.properties")
2. properties.load(MyTest.
- 读《研磨设计模式》-代码笔记-简单工厂模式
bylijinnan
java设计模式
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
package design.pattern;
/*
* 个人理解:简单工厂模式就是IOC;
* 客户端要用到某一对象,本来是由客户创建的,现在改成由工厂创建,客户直接取就好了
*/
interface IProduct {
- SVN与JIRA的关联
chenyu19891124
SVN
SVN与JIRA的关联一直都没能装成功,今天凝聚心思花了一天时间整合好了。下面是自己整理的步骤:
一、搭建好SVN环境,尤其是要把SVN的服务注册成系统服务
二、装好JIRA,自己用是jira-4.3.4破解版
三、下载SVN与JIRA的插件并解压,然后拷贝插件包下lib包里的三个jar,放到Atlassian\JIRA 4.3.4\atlassian-jira\WEB-INF\lib下,再
- JWFDv0.96 最新设计思路
comsci
数据结构算法工作企业应用公告
随着工作流技术的发展,工作流产品的应用范围也不断的在扩展,开始进入了像金融行业(我已经看到国有四大商业银行的工作流产品招标公告了),实时生产控制和其它比较重要的工程领域,而
- vi 保存复制内容格式粘贴
daizj
vi粘贴复制保存原格式不变形
vi是linux中非常好用的文本编辑工具,功能强大无比,但对于复制带有缩进格式的内容时,粘贴的时候内容错位很严重,不会按照复制时的格式排版,vi能不能在粘贴时,按复制进的格式进行粘贴呢? 答案是肯定的,vi有一个很强大的命令可以实现此功能 。
在命令模式输入:set paste,则进入paste模式,这样再进行粘贴时
- shell脚本运行时报错误:/bin/bash^M: bad interpreter 的解决办法
dongwei_6688
shell脚本
出现原因:windows上写的脚本,直接拷贝到linux系统上运行由于格式不兼容导致
解决办法:
1. 比如文件名为myshell.sh,vim myshell.sh
2. 执行vim中的命令 : set ff?查看文件格式,如果显示fileformat=dos,证明文件格式有问题
3. 执行vim中的命令 :set fileformat=unix 将文件格式改过来就可以了,然后:w
- 高一上学期难记忆单词
dcj3sjt126com
wordenglish
honest 诚实的;正直的
argue 争论
classical 古典的
hammer 锤子
share 分享;共有
sorrow 悲哀;悲痛
adventure 冒险
error 错误;差错
closet 壁橱;储藏室
pronounce 发音;宣告
repeat 重做;重复
majority 大多数;大半
native 本国的,本地的,本国
- hibernate查询返回DTO对象,DTO封装了多个pojo对象的属性
frankco
POJOhibernate查询DTO
DTO-数据传输对象;pojo-最纯粹的java对象与数据库中的表一一对应。
简单讲:DTO起到业务数据的传递作用,pojo则与持久层数据库打交道。
有时候我们需要查询返回DTO对象,因为DTO
- Partition List
hcx2013
partition
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
You should preserve the original relative order of th
- Spring MVC测试框架详解——客户端测试
jinnianshilongnian
上一篇《Spring MVC测试框架详解——服务端测试》已经介绍了服务端测试,接下来再看看如果测试Rest客户端,对于客户端测试以前经常使用的方法是启动一个内嵌的jetty/tomcat容器,然后发送真实的请求到相应的控制器;这种方式的缺点就是速度慢;自Spring 3.2开始提供了对RestTemplate的模拟服务器测试方式,也就是说使用RestTemplate测试时无须启动服务器,而是模拟一
- 关于推荐个人观点
liyonghui160com
推荐系统关于推荐个人观点
回想起来,我也做推荐了3年多了,最近公司做了调整招聘了很多算法工程师,以为需要多么高大上的算法才能搭建起来的,从实践中走过来,我只想说【不是这样的】
第一次接触推荐系统是在四年前入职的时候,那时候,机器学习和大数据都是没有的概念,什么大数据处理开源软件根本不存在,我们用多台计算机web程序记录用户行为,用.net的w
- 不间断旋转的动画
pangyulei
动画
CABasicAnimation* rotationAnimation;
rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"];
rotationAnimation.toValue = [NSNumber numberWithFloat: M
- 自定义annotation
sha1064616837
javaenumannotationreflect
对象有的属性在页面上可编辑,有的属性在页面只可读,以前都是我们在页面上写死的,时间一久有时候会混乱,此处通过自定义annotation在类属性中定义。越来越发现Java的Annotation真心很强大,可以帮我们省去很多代码,让代码看上去简洁。
下面这个例子 主要用到了
1.自定义annotation:@interface,以及几个配合着自定义注解使用的几个注解
2.简单的反射
3.枚举
- Spring 源码
up2pu
spring
1.Spring源代码
https://github.com/SpringSource/spring-framework/branches/3.2.x
注:兼容svn检出
2.运行脚本
import-into-eclipse.bat
注:需要设置JAVA_HOME为jdk 1.7
build.gradle
compileJava {
sourceCompatibilit
- 利用word分词来计算文本相似度
yangshangchuan
wordword分词文本相似度余弦相似度简单共有词
word分词提供了多种文本相似度计算方式:
方式一:余弦相似度,通过计算两个向量的夹角余弦值来评估他们的相似度
实现类:org.apdplat.word.analysis.CosineTextSimilarity
用法如下:
String text1 = "我爱购物";
String text2 = "我爱读书";
String text3 =