会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
冰凌花花~
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
41
下一页
2019年10月11日
keycloak docker compose 配置 导入 realm
摘要: 如果需要提前将已有keycloak的realm导出并通过docker-compose导入,用下图的方式导出,将导出的文件命名为realms.json 新建文件夹并创建文件: docker-compose.yml 如果不需要导入realm,可以直接用下面的方式: 后台启动: docker-compos
阅读全文
posted @ 2019-10-11 10:28 冰凌花花~
阅读(648)
评论(0)
推荐(0)
2019年9月25日
Using Redis as a Login Session Store Rails
摘要: 用到的gem有: gem 'activerecord-session_store', '~> 0.1.0'gem 'redis', '~> 3.3.3'gem 'redis-namespace', '~> 1.6.0'gem 'redis-rack-cache'gem 'redis-rails',
阅读全文
posted @ 2019-09-25 09:42 冰凌花花~
阅读(220)
评论(0)
推荐(0)
解决 Rails 默认搜索带default_scope的问题: unscope 用法
摘要: 假设有一个model为book.rb, 里面有一个默认的搜索条件: default_scope { where(display: true) } 也就是说如果直接写查询语句的话,默认是只能搜索到display 为true的book,如果默认查询所有的book呢, 这里就用到unscope unsco
阅读全文
posted @ 2019-09-25 06:10 冰凌花花~
阅读(477)
评论(0)
推荐(0)
2019年9月19日
angular 获取键盘输入的值
摘要: 注意不要用event.keyCode, https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent js代码 resetBankAccountNumber(id) { this.setBankAccountValidity('ownB
阅读全文
posted @ 2019-09-19 05:43 冰凌花花~
阅读(351)
评论(0)
推荐(0)
2019年9月6日
mac安装 jupyter notebook
摘要: https://jupyter.org/install.html 安装:pip install jupyterlab 启动: jupyter notebook 如果想用来测试http请求,需要安装requests pip install requests 接下来测试一下get、post请求 Get
阅读全文
posted @ 2019-09-06 15:14 冰凌花花~
阅读(443)
评论(0)
推荐(0)
2019年8月12日
OpenSSL::Cipher.new 加密解密
摘要: OpenSSL::Cipher.new application_controller.rb def decrypter(data) key = ENV['ENCRYPTION_KEY'] iv = ENV['ENCRYPTION_IV'] decipher = OpenSSL::Cipher.new
阅读全文
posted @ 2019-08-12 09:06 冰凌花花~
阅读(786)
评论(0)
推荐(0)
2019年8月7日
如何用serverless创建aws-lambda
摘要: https://serverless.com/framework/docs/providers/aws/guide/quick-start/ 安装serverless $npm install -g serverless $mkdir serverless-demo $cd serverless-d
阅读全文
posted @ 2019-08-07 07:37 冰凌花花~
阅读(321)
评论(0)
推荐(0)
2019年8月3日
python操作postgreSQL数据库
摘要: Recommended solution: https://docs.aws.amazon.com/lambda/latest/dg/vpc-rds.html Coded a python script (as attached) for insert the biller details to t
阅读全文
posted @ 2019-08-03 11:57 冰凌花花~
阅读(272)
评论(0)
推荐(0)
2019年6月30日
grafana 设置 cloudwatch 监控 aws efs
摘要: aws
阅读全文
posted @ 2019-06-30 18:11 冰凌花花~
阅读(1472)
评论(0)
推荐(0)
2019年6月28日
java导出csv
摘要: public void doGet(HttpServletRequest request, HttpServletResponse response) { response.setContentType("text/csv"); response.setHeader("Content-Disposi
阅读全文
posted @ 2019-06-28 18:39 冰凌花花~
阅读(237)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
41
下一页
公告