Mryqu's Notes


  • 首页

  • 搜索
close

博客从Hexo转向Hugo

时间: 2018-12-14   |   阅读: 694 字 ~4分钟
起因 使用Hexo构建我的博客网站,感觉功能丰富、插件齐全,使用的不能再爽。 但是我开始把我以前的新浪博客帖子搬家,就不美了。我就搬了自己原创的部分,总共六百多个帖子,总是内存溢出。 <--- Last few GCs ---> 17611169 ms: Mark-sweep 1389.3 (1404.7) -> 1388.2 (1406.7) MB, 529.2 / 0.0 ms [allocation failure] [GC in old space requested]. 17611746 ms: Mark-sweep 1388.2 (1406.7) -> 1388.2 (1406.7) MB, 577.3 / 0.0 ms [allocation failure] [GC in old space requested]. 17612313 ms: Mark-sweep 1388.2 (1406.7) -> 1395.2 (1403.7) MB, 566.6 / 0.0 ms [last resort gc]. 17612859 ms: Mark-sweep 1395.2 (1403.7) -> 1402.
阅读全文 »

Facebook的Page Access Token

时间: 2018-10-30   |   分类: DataBuilder     |   阅读: 86 字 ~1分钟
忽然发现原本可用的Facebook App Access Token无法获取Page内容的,甚至是自己的主页,错误提示为: “(#10) To use ‘Page Public Content Access’, your use of this endpoint must be reviewed and approved by Facebook. To submit this ‘Page Public Content Access’ feature for review please read our documentation on reviewable features: https://developers.facebook.com/docs/apps/review."。 注:我的App yquTest当前App版本为2.8。 祭出Access Token Tool武器,开始实验User Access Token。 发现结果如下: 使用Facebook App Access Token无法读取自己或他人的主页内容 使用Facebook User Access Token可以读取自己主页内容,但无法读取他人的主页内容 Facebook Page Access Token调查 获取自己多个主页的Page Access Toke 获取自己单个主页的Page Access Toke 使用Page Access Token获取自己的主页内容 尝试获取他人主页的Page Access Token 结果自然是嘿嘿嘿。
阅读全文 »

折腾openui5-sample-app之使用Yarn替换Bower

时间: 2018-09-13   |   分类: FrontEnd     |   阅读: 59 字 ~1分钟
SAP/openui5-sample-app是使用npm下载依赖的后端开发和构建模块,使用bower下载依赖的前端openui5库。 在npm install的过程中提示"npm WARN deprecated bower@1.8.4: We don’t recommend using Bower for new projects. Please consider Yarn and Webpack or Parcel. You can read how to migrate legacy project here: https://bower.io/blog/2017/how-to-migrate-away-from-bower/"。 对于SAP这个小示例,区分前端和后端使用包管理器有点浪费!对于所有的依赖模块,可以要么使用npm,要么使用yarn。 删除bower_components和dist目录 安装yarn: npm install yarn -g 去掉bower.json 不过其中依赖的openui5/packaged-sap.ui.core、openui5/packaged-sap.m、openui5/packaged-themelib_sap_belize仅仅bower能够获取,在npm仓库里是找不到的。 修改package.json 去除bower模块 去除postinstall脚本 增加@openui5/sap.m依赖 增加@openui5/sap.ui.core依赖 增加@openui5/themelib_sap_belize依赖 修改Gruntfile.js npm仓库里的@openui5/sap.m、@openui5/sap.ui.core、@openui5/themelib_sap_belize仅包含openui5/packaged-sap.ui.core、openui5/packaged-sap.m、openui5/packaged-themelib_sap_belize中resources的部分,而不包含test-resources的部分。 对于openui5_connect任务,我认为无需test-resources部分即可。 将openui5库的定位从bower_components目录下改为node_modules目录下的相应位置 构建测试 yarn grunt build grunt serve 参考 SAP/grunt-openui5 JS新包管理工具yarn和npm的对比与使用入门

折腾openui5-sample-app之使用npm镜像

时间: 2018-09-12   |   分类: FrontEnd     |   阅读: 23 字 ~1分钟
学习了一下SAP/openui5-sample-app,看看SAP是如何使用构建前端的。 SAP/openui5-sample-app中npm安装模块是从https://www.npmjs.com/下载的,不知道从淘宝NPM镜像下载是否会快些。 对npm使用镜像有以下几种方式,这里我使用第三种: 通过config命令 npm config set registry https://registry.npm.taobao.org npm info underscore 命令行指定 npm --registry https://registry.npm.taobao.org info underscore 在.npmrc文件中指定 registry = https://registry.npm.taobao.org 结果,速度上没什么感觉,都不快!

[Spring] LDAP用户验证笔记

时间: 2018-08-13   |   分类: Service+JavaEE   Spring     |   阅读: 25 字 ~1分钟
对Spring LDAP用户验证进行了学习,制作了时序图: LDAP身份验证的步骤为: 从客户端登录页面获得用户名和密码。 匿名或使用管理DN/密码绑定到LDAP服务器,通过登录用户名查询用户DN,如失败则报用户不存在。 使用用户DN和密码再次绑定到LDAP服务器,如果能成功绑定则验证成功,否则报用户密码错误。 参考 Spring Security Architecture Spring Security Reference Spring Security Project GETTING STARTED: Authenticating a User with LDAP GitHub: spring-guides/gs-authenticating-ldap

[JS] 导出数据到CSV文件

时间: 2018-08-09   |   分类: FrontEnd     |   阅读: 61 字 ~1分钟
项目有可能要在HTML客户端上导出数据到CSV文件,先找找方案。 JS/jQuery方案 Export to CSV using jQuery and html Demo for StackOverflow Answer to the question: Export to CSV using jQuery and html 使用javascript下载页面中的表格数据 Exporting data from a web browser to a csv file using javascript. OpenUI5方案 GitHub: OpenUI5 Export Test Download the Model Data to a CSV/Excel file in UI5 Export sap.ui.table.Table as CSV Export To Excel customization in UI5

新博客mryqu.github.io开张!

时间: 2018-07-30   |   阅读: 1 字 ~1分钟
我目前的博客位于新浪mryqu的博客,这个算是新窝吧。

新博客诞生记

时间: 2018-07-30   |   阅读: 303 字 ~2分钟
在新浪博客贴代码片段诸多不爽,技术文章也时常通不过莫名其妙的关键词审查。偶尔心动,就创建了https://github.com/mryqu/mryqu.github.io,立刻新博客就出来了。 感觉有点简陋,开始琢磨theme之类的东东,然后就陷入了Jekyll、Hexo、Pelican等工具的比较纠结中,最后选定了用Node.js编写的博客框架Hexo及主题hexo-theme-next。 安装Hexo 安装Hexo的前提条件是已经安装好了Node.js和NPM: mryqu@mryqu MINGW64 /c/quTools $ node -v v6.9.5 mryqu@mryqu MINGW64 /c/quTools $ npm -v 3.10.10 安装Hexo: mryqu@mryqu MINGW64 /c/quTools $ mkdir hexo mryqu@mryqu MINGW64 /c/quTools $ cd hexo mryqu@mryqu MINGW64 /c/quTools/hexo npm install -g hexo-cli mryqu@mryqu MINGW64 /c/quTools/hexo npm install hexo --save 创建博客 mryqu@mryqu MINGW64 /c/users/mryqu $ hexo init blog mryqu@mryqu MINGW64 /c/users/mryqu $ cd blog mryqu@mryqu MINGW64 /c/users/mryqu/blog $ git clone https://github.com/iissnan/hexo-theme-next themes/next mryqu@mryqu MINGW64 /c/users/mryqu/blog $ cd themes/next mryqu@mryqu MINGW64 /c/users/mryqu/blog/themes/next $ git tag -l mryqu@mryqu MINGW64 /c/users/mryqu/blog/themes/next $ git checkout tags/v5.
阅读全文 »

[Vagrant]学习VBoxManage定制

时间: 2018-07-26   |   分类: Tool   Vagrant     |   阅读: 1571 字 ~8分钟
Vagrant Configuration - VBoxManage Customizations里面有讲到通过VBoxManage修改VirtualBox虚拟机。而VBoxManage modifyvm里面细致的介绍了所有设置。 VBoxManage modifyvm设置 接触过的VBoxManage modifyvm设置 下面就仔细研究一下我看到过的modifyvm设置: # -*- mode: ruby -*- # vi: set ft=ruby : VAGRANTFILE_API_VERSION = "2" Vagrant.require_version ">= 1.6.3" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.provider "virtualbox" do |vb| # --memory设置用来指定分配的内存,单位为MB # 可简写为vb.memory=8192 vb.customize ['modifyvm', :id, '--memory', '8192'] # --cpus设置用来指定虚拟机的虚拟CPU个数 # 可简写为vb.cpus=3 vb.customize ['modifyvm', :id, '--cpus', '3'] # --cpuexecutioncap <1-100>设置用来指定虚拟CPU可用的CPU时间比例。 # 值50意味无论VM使用多少个虚拟虚拟CPU,都不会超过宿主机CPU时间的一半。 vb.customize ['modifyvm', :id, '--cpuexecutioncap', '75'] # --natdnshostresolver<1-N> on|off用来指定NAT使用宿主机的解析机制处理DNS请求。 vb.customize ['modifyvm', :id, '--natdnshostresolver1', 'on'] # --natdnsproxy<1-N> on|off用来指定NAT将所有客户机DNS请求代理到宿主机的DNS服务器。 vb.
阅读全文 »

[Vagrant] 学习一下Vagrant的Provider类型

时间: 2018-07-25   |   分类: Tool   Vagrant     |   阅读: 32 字 ~1分钟
偶尔动了心思,想自己装一个Wiki。就按照MediaWiki-Vagrant,装一个Vagrant版的MediaWiki玩玩。MediaWiki全球最著名的开源wiki程序,运行于PHP+MySQL环境。MediaWiki从2002年2月25日被作为维基百科全书的系统软件,并有大量其他应用实例。 顺手研究了一下mediawiki/vagrant项目的Vagrantfile文件,跟我们自己项目用的Vagrantfile仅仅配置了一个VirtualBox provider不同,它配置了VirtualBox、VMWare Fusion、Microsoft Hyper-V、LXC、Parallels和libvirt (KVM/QEMU)六种provider。 在Vagrant的网站上仅仅提及了默认的VirtualBox、VMware、Docker、Hyper-V四款provider。那到底Vagrant有多少provider类型呢? 从Vagrant Cloud上可知有22种provider类型的Vagrant box镜像可供下载: aws cloudstack digitalocean docker google hyperv libvirt lxc openstack parallels qemu rackspace softlayer veertu virtualbox vmware vmware_desktop vmware_fusion vmware_ovf vmware_workstation vsphere xenserver
1 2 3 4 5 6 7 8

Programmer & Architect

662 日志
27 分类
1472 标签
RSS 订阅
GitHub Twitter FB Page
© 2009 - 2023 Mryqu's Notes
Powered by - Hugo v0.120.4
Theme by - NexT
0%