万年素人からHackerへの道

万年素人がHackerになれるまで殴り書きするぜ。

  • ・資産運用おすすめ
    10万円は1000円くらい利益
    資産運用ブログ アセマネ
    • ・寄付お願いします
      YENTEN:YYzNPzdsZWqr5THWAdMrKDj7GT8ietDc2W
      BitZenny:ZfpUbVya8MWQkjjGJMjA7P9pPkqaLnwPWH
      c0ban:8KG95GXdEquNpPW8xJAJf7nn5kbimQ5wj1
      Skycoin:KMqcn7x8REwwzMHPi9fV9fbNwdofYAWKRo

    2018-09-01から1ヶ月間の記事一覧

    Xcode一括Alpha

    Invalid App Store Icon. The App Store Icon in the asset catalog in 'アプリ.app' can't be transparent nor contain an alpha channel." のエラーうざい。 まずImageMagickインストール brew install imagemagick find ./assets/ -name "*.png" -exec co…

    ReactNativeのアイコン設定

    【iOS】React Nativeのアプリにアイコンを設定する方法 | YuiTech 「アプリ名.xcworkspace」の白いアイコンの方で起動 この手順

    AWSのCognitoでERR_NAME_NOT_RESOLVEDのエラー

    AWSのCognitoでERR_NAME_NOT_RESOLVEDのエラー ブリッジアダプターからNATにしたら解決

    ReactNativeでRNVectorIconsManagerのエラー

    RNVectorIconsManager.m:95:37: error: too many arguments to block call, expected 1, have 3".Also,"reject(@"font_load_failed", @"Font failed to load", error); reject(@"font_load_failed", @"Font failed to load", error); でエラー。 reject(erro…

    ReactNativeでAmobの「undefined is not an object」エラー https://github.com/sbugert/react-native-admob/issues/222 version2使う? yarn add react-native-admob@2.0.0-beta.5 react-native link をも実行する。 qiita.com にあるけど。 UIApplicationD…

    ReactNativeでmobx

    yukiyuriweb.com https://github.com/babel/babel/issues/8459 yarn add react react-dom mobx mobx-react yarn add @babel/plugin-proposal-decorators .babelrcに追加 { plugins: [ ..., ['@babel/plugin-proposal-decorators', {legacy: true}], ], }

    ReactNative治らないios

    error: bundling failed: Error: Plugin/Preset files are not allowed to export objects, only functions. In /Users/shinriyo/development/react_apps/kazoemon/node_modules/babel-preset-react-native-stage-0/index.js at createDescriptor (/Users/sh…

    Weexでuiのボタン色変え

    https://github.com/alibaba/weex-ui/blob/master/packages/wxc-button/type.js こんな感じにインポートして import { STYLE_MAP, TEXT_STYLE_MAP } from "weex-ui/packages/wxc-button/type"; こうする。 cssではなくてdata()での変数指定。 data() { retur…

    WeexでUI (weex-ui)

    WeexでUIを使うにはweex-uiを使うのがいい。 alibaba.github.io インストール -Dは--save-devの略 npm i babel-preset-stage-0 babel-plugin-component -D npm i weex-ui -S or yarn add --dev yarn add babel-preset-stage-0 yarn add --dev babel-plugin-c…

    ReactNativeでiOSのビルドをするとlibfishhook.aが無くてエラーが出る

    ReactNativeでiOSのビルドをするとlibfishhook.aが無くてエラーが出る https://github.com/facebook/react-native/issues/19569 これを見て For a solution, I copied the file from my ios/build/Build/Products/Debug-iphonesimulator/libfishhook.a and p…

    React Native IOS Build CFBundleIdentifier Does not Exist

    今まで動作したのにまたハマった。 EZ-NET: CocoaPods を使ってオープンソースのライブラリをプロジェクトで簡単に管理する : Objective-C プログラミング Podfileをいじる。 platform :ios, ‘7.1’ xcodeproj '自分のxcodeprojのなまえ' hoge.xcodeprojだっ…

    WeexでPug(旧名:Jade)使う

    langへpugって書くだけ。 <template lang="pug"> div image.logo(style='width:500px;height:500px', :src='logo') text.greeting Big Numbers div(@click="jump('/game')") text.btn Start div(@click="jump('/setting')") text.btn Settings </template> でもその前に yarn add pugで入れる…

    Weexでfor

    リストレンダリング — Vue.js htmlで <ul id="example-2"> <li v-for="(item, index) in items"> {{ parentMessage }} - {{ index }} - {{ item.message }} </li> </ul> jsは var example2 = new Vue({ el: '#example-2', data: { parentMessage: 'Parent', items: [ { message: 'Foo' }, { message: 'Bar' } ] } }) これだと…

    Weexでいいサンプル

    GitHub - apuravchauhan/weex-base: Tutorial code to go with the below tutorial: https://medium.com/@apuravchauhan/weex-vs-react-native-from-scratch-2018-32ae41d1effc git clone https://github.com/apuravchauhan/weex-base cd apurav-app npm ins…

    ReactNative警告

    react-native-vector-iconsまたはreact-navigationが原因か?? Class RCTCxxModule was not exported. Did you forget to use RCT_EXPORT_MODULE()? の警告が下に出る。 RCT_EXPORT_MODULE();をどっかに書かないとダメ?? https://segmentfault.com/a/1190…

    ReactNativeでのreact-native-admobで試したこと

    npm eject cd ios pod init そして、iosフォルダ内へ生成されたPodfileに追加。pod 'Firebase/Messaging'もいるかも?自信はない。 # Uncomment the next line to define a global platform for your project # platform :ios, '9.0' target 'kazoemon' do #…

    react-native-admobはexpoにもある?

    https://www.reddit.com/r/reactnative/comments/8qcjot/issue_with_reactnativeadmob_rngadbannerview_does/ redditで Hey again. I was thinking that Expo does have some ad functionality so typed into google "admob expo". って言ってる人いた Admob…

    undefined is not an object evaluating ReactPropTypes.stringのエラー

    こっちはFacebook公式ReactNativeのIssue https://github.com/facebook/react-native/issues/14590 しかし、 import PropTypes from 'prop-types'; worked for me !! Thanks ってあるけど僕はもうやってる・・。 と思ったが、発生している箇所は、 node_modu…

    watchmanキャッシュ消す ReactNativeのめんどいiosでのエラー、Admob追加などした

    npm run ejectで吐き出されたiOSのXcodeのプロジェクトを実行。 なんかのタイミングでpackage.jsonが変わった babel-preset-react-nativeを4.0入れようと npm install babel-preset-react-nativeしたせいか?? "babel-preset-react-native": "^4.0.1", これ…

    ReactNativeでのXcodeプロジェクトはどこ?

    Xcodeはどこだ? node_modules/react-native/local-cli/templates/HelloWorld/ios/HelloWorld.xcodeproj かな? しかも、HelloWorldになってるのはなぜ? 吐き出すのは npm run eject これがいいかも? そしたらアプリ名なんにするか聞かれる。

    ReactNativeで"RNGADBannerView does not exist" error

    React native google admob error? - Stack Overflow https://github.com/sbugert/react-native-admob/issues/230 react-native linkをする?

    Weexで<router-link>

    <router-link>を使ってページ遷移するのはWebだけかもしれない。 これはProfileっていう名前のボタンでprofileで設定したページに行くのに楽そうだけど <router-link to="profile"> <text>Profile</text> </router-link> アニメーションは発生するが、白い画面に行ってしまい積む。 https://weex.incubator.apache.org/guide/adv</router-link>…

    Weexでのボタン押下処理

    src/HelloWorld.tsxを使った。 cssで背景色でボタンを擬似的に。 普通のクリックと長押しがある。 このサンプルではログとトースト表示。 @appear @disappearはなんか機能しないね。 <template> <div> <div class="box" @click="onclick" @longpress="onlongpress" @appear="onappear" @disappear="ondisappear"> <text class="box-text">test</text> </div> </div> </template> <script> co…

    Weexでページ

    結局はVue.jsなのでsrc/router.jsこれを利用。 qiita.com

    Weexのいろんなこと

    TypeScript zhuanlan.zhihu.com vue-class-component / typescript support? · Issue #3092 · alibaba/weex · GitHub この中国語読めば使える? iOS起動のエラー Error: You should config `CodeSign` and `Profile` in the `ios.config.json` We suggest th…

    MobXをReactNativeで

    qiita.com この辺参考 これらいれた。 yarn add babel-plugin-transform-decorators-legacy yarn add mobx-react yarn add mobx .babelrcには追加。 { "presets": ["babel-preset-expo"], + "plugins": ["transform-decorators-legacy"], "env": { "developm…

    VSCode ユーザ設定のJSONの設定

    VSCode ユーザ設定のJSONの設定がいきなりUIになっていた。 それをJSONで表示する。

    JSでWindowsとMacで現象が違うので注意

    Edit fiddle - JSFiddle var a = new Date('2018-07').getMonth(); // これは0開始なので7ではなく6が出るはず。 // しかしWindowsは6ではなくて5 alert(a); Windowはなぜか5

    ヤンクバッファ vim

    vim

    vimのヤンクバッファは好きな文字にヤンク(クリップボードにコピー)できる。 「a」をヤンクバッファに命名したいとき、 " => a => y とすれば 貼り付けるときに「a」をつかえる " => a => p

    ReactNativeで水平線

    react-native - 在React Native中绘制水平线 ここに中国語だけど色々サンプル