杂记

本文介绍了一种在postgreSQL中使用嵌套INSERT和SELECT语句的方法,并分享了一个使用byzanz工具在Ubuntu上创建GIF动画的具体教程。

1、postgreSQL INSERT 和SELECT 语句的嵌套用法,usage:

insert into route("route-key",name) values((select max("route-key") from route)+10000,'helloRoute')

2、Ubuntu GIF 制作工具: byzanz

#install
sudo apt-get install byzanz


#使用
xwininfo
#点击你要截图位置,终端打印如下内容(我点击的是chrome浏览器)

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x3a00001 "New Tab - Google Chrome"

  Absolute upper-left X:  65
  Absolute upper-left Y:  24
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1301
  Height: 744
  Depth: 24
  Visual: 0x20
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x22 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +65+24  -0+24  -0-0  +65-0
  -geometry 1301x744-0-0

#这里主要信息有: Absolute upper-left X,  Absolute upper-left Y,Width,Height,在终端输入:

byzanz-record -x 65 -y 24 -w 1301 -h 715 /home/mercy/x.gif

#就可以制作GIF了


    

 

转载于:https://my.oschina.net/mercyyang/blog/693538

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值