2016年2月29日星期一

linux 6.3 一直不产生core,怎么设置都没用

# vi /etc/security/limits.conf

#* soft core 0
* soft core unlimited

# vi /etc/sysctl.conf

kernel.core_pattern = /tmp/core-%e-%s-%u-%g-%p-%t
fs.suid_dumpable = 2

Note:
%e is the filename
%g is the gid the processs was running under
%p is the pid of the process
%s is the signal that caused the dump
%t is the time the dump occurred
%u is the uid the process was running under
# vi /etc/sysconfig/init

DAEMON_COREFILE_LIMIT=’unlimited’

# sysctl -p
以上都作了,还是不行。

进一步,我
https://www.stigviewer.com/stig/red_hat_enterprise_linux_6/2015-03-06/finding/V-38640
disable 的abrtd,还是没出来。

2016年2月22日星期一

在IE9,IE10里面,babel编译的类,构造函数父类不被执行

在IE9,IE10里面,babel编译的类,父类不被执行,也就是super()没进去,查了几个小时,发现是
babel编译类,依赖 __proto__

http://ricostacruz.com/til/babel-ie-class-inheritance.html

https://babeljs.algolia.com/docs/advanced/transformers/spec/proto-to-assign/ 


但是我没找到如何传递这个参数进gulp-babel
放哪都是Unknown option: base.optional,.babelrc.optional
.pipe($.babel({optional: ['spec.protoToAssign']})).on('error', conf.errorHandler('Babel'))
 不行
放.babelrc里面
 "optional": ["spec.protoToAssign"]
都不认

咋搞

 



搞定,用这个
http://babeljs.io/docs/plugins/transform-es2015-object-super/ 


"plugins": ["transform-es2015-modules-amd", "transform-es2015-object-super"]
 

2016年2月15日星期一

郁闷,真是郁闷,查了半天问题,才发现是ocLazyLoad和ng injector不搭配

ng injector在调试angular时的确是非常好用,最近用到了ocLazyLoad,老把angular的模块统统再次reload一遍,导致动态加载mod失败,追了大半天ocLazyLoad代码才发现ng injector的缘故。因为ocLazyLoad拦截angualr的函数后,只打算bootstap一回,ng injector也进了被拦截的函数里,导致问题所在。

解决法子,用了ocLazyLoad的地方,就disable掉ng injector插件。

2016年2月12日星期五

ie11突然啥地址也访问不了了

基本我也就用ie看兼容性,突然啥都访问不了了,输入url没反应,但是用管理员模式却没啥问题。
开始以为是毛豆防火墙导致,禁止了还是一样。重新reset ie11所有设置仍然一样,没解决。

后来发现是 由于ie的保护模式,去掉勾勾就可以。

http://answers.microsoft.com/en-us/ie/forum/ie10-windows_7/internet-explorer-10-works-only-in-administrator/f369671b-f8aa-403d-810c-5e8cd18b0ef8?auth=1

这个保护模式到底保护啥了?
找了文档看了
https://msdn.microsoft.com/en-us/library/bb250462%28v=vs.85%29.aspx#upm_undpm

Understanding Protected Mode

 

https://www.microsoft.com/china/msdn/library/webservices/WebApp/ProtectedMode.mspx?mfr=true

Office Outlook2013突然启动不了了,一直在 「処理中」状態から進みません。

不知道为啥,突然就这样了,由于我修改了windows的登录密码,想起mac的修改密码会导致一堆chain的问题,我还专门去控制面板里面找到 email的设定,重新做了一个profile,还是不行。

后来动搞西搞,又怀疑到是不是我切换笔记本显卡的缘故,

注册表,追加上
HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Graphics\
DisableHardwareAcceleration DWORD 1
居然启动起来了 

2016年2月4日星期四

12c的pdb,jdbc 1.4连不上的解决方法

修改sqlnet.ora
设置上
SQLNET.ALLOWED_LOGON_VERSION_SERVER=8就可以了。

http://docs.oracle.com/database/121/NETRF/sqlnet.htm#NETRF2010