2018 React Native save image file from App to Phone Code here tested under React Native 0.51 and Android. import RNFetchBlob from 'react-native-fetch-blob'; import RNFS from'react-native-fs'; let dirs = RNFetchBlob.fs.dirs const file_path = dirs.DCIMDir + '/' + 'wechat.jpg'; RNFS.copyFileAssets('wechat.jpg', file_path) .then(() => { RNFetchBlob.fs.scanFile([{ path: file_path }]) }) .catch((error) => console.log(error)); file
React Native 发请求碰到 CORS跨域问题解决方法 (2017 年) Failed to load https://example.com/job: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8081' is therefore not allowed access. The response had HTTP status code 405.
360 度全景图片/视频 | 2017 年总结 如果只是自己玩玩,用 Gear 360 / Insta 360 没啥问题。如果对画质要求高一些,就单反拍摄然后软件拼接。拍的每张图片有20%~30%的重叠就好了。
(已解决)记一次 RAILS_ENV=production bundle exec rails assets:precompile 出错的解决方案 uglifier 不支持 ES6。所以 production 环境下一跑 rails assets:precompile 就出错
2017 年 Ruby on Rails 5 解决 Emoji 报错问题 报错信息是: Mysql2::Error: Incorrect string value: '\xF0\x9F\x98\x84' for column 'wechat_nickname' at row 1: UPDATE `users` SET `wechat_nickname` = '郑诚(Zheng Cheng)😄',
2017 Solve: "whenever" gem cron job not working on Ubuntu server problem it cost me entire afternoon!
Featured 家人身患重症,需要捐款治疗!(目标 30w,目前筹到3w) Serious illness need donation! detail inside (Goal 300,000, Current Progress 30,000. only 10%)