万年素人からHackerへの道

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

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

    Swiftのヒラギノのバグ?

    ちょい古いコード https://gist.github.com/takehito-koshimizu/05bd614f980ce7c7d7d2 解説 j gみたいなのではみ出ること。 Decent なのかdescender なのか? https://akisute.com/2016/09/ios.html https://qiita.com/OSR108/items/88f2b3fb6ff8f3c66e3c

    倒置っぽいけど違う says S(主語)

    That's another sign, says Sean Brennan from Coffee Affection. 倒置ではない。 says とSean Brennan って逆。 英語でこの種の引用のスタイルや構造に言及する際、一般的には「attribution」(帰属)や「reporting clause」(報告節)などの用語が使用され…

    LIBMOをiOSで設定 機種変更

    iOS

    QRをSafariで読む。(LINEでは開けない) ここ(General → VPN & Device Management)に追加される

    iPhone移行で確認

    ・クイックスタートで 失敗するときは根気よくやった。 https://m32006400n.xsrv.jp/procedure/iphone-quick-start-failed-redo-procedure/ iPhone移行で確認 ・手動 各クレジットカード系 Suica Kyash Authy確認 LINE(旧機種いる) PayPay 楽天ペイ(ログ…

    iOSで下に引っ張って検索する機能なんていいますか?あれを使ったアプリ作れますか?

    iOSのオペレーティングシステム(OS)レベルでの「下に引っ張って検索」の機能としては、Spotlight検索が存在します。ユーザーはホーム画面を下にスワイプすることでSpotlight検索バーを開き、アプリ、コンテンツ、ウェブ結果などを検索できます。 ただし、…

    GodotでiOSのExportのエラー

    このエラーがうざい やり方あった https://www.reddit.com/r/godot/comments/16d15in/error_when_trying_to_export_project_on_android/ Enable this setting: Project >> Project Settings... >> General >> Rendering >> Textures >> VRAM Compression >> …

    2つのUIViewControllerを交換する拡張メソッド

    /// Swaps the display order of two child view controllers within their parent view controller. /// /// This method is used to adjust the z-ordering of the views associated with two child view controllers. /// It's particularly useful when …

    Xcode 15 - Unable to install iOS 17 Simulator runtime

    Unable to install iOS 17 Simulator runtimeみたいなエラーが出た。 https://developer.apple.com/forums/thread/737648 iOS_17_Simulator_Runtime.dmg をダウンロードする。 その後ダウンロードしたフォルダで以下のコマンド。 xcrun simctl runtime add i…

    bonfireでのExample

    https://github.com/RafaelBarbosatec/bonfire v3.0.0を使うのがいい。 bonfireでのExampleのメモ

    Godot試し

    Godot(ゴドー)試す。 今から始める『Godot Engine』 を参考にした。 ダウンロード https://godotengine.org/download/macos/ 2つあった。.NETなしでいいや。 Godot Engine with .NET Support: .NETを使用してスクリプトを書くことができます(主にC#)。 …

    MAUIを始めるのに参考になる

    Getting started with .NET MAUI (iOS) on an M1 Mac.

    miro pluginのドキュメント

    https://developers.miro.com/docs

    UICollectionViewCompositionalLayoutはUICollectionViewFlowLayoutと競合するもの

    iOS 13から登場した以下の方法 ※今回 _ にしているが、実際の値は(sectionIndex, environment) self.collectionView.collectionViewLayout = UICollectionViewCompositionalLayout { _, _ in // セルの高さ let cellHeight: CGFloat = 54.0 // セルの上下左…

    XcodeへのGitHubアカウントの設定

    XcodeへのGitHubアカウントの設定 | 現役のプログラマーが書くプログラミング情報 なんだこれ? https://github.com/settings/tokens?type=beta

    go install によってインストールされた実行可能ファイルが使えない場合のトラブルシューティング

    go

    go get -d github.com/作者の名前/ツールの名前でいつもGitHubとかからインストールしているかと思うが、 ローカルに git clone したものはカレントディレクトリに移動して go install でインストールできる。 $GOPATH/bin が $PATH に含まれているか確認 Go…

    TypeScriptをサポートしているECサイトのフレームワーク

    TypeScriptをサポートしているECサイトのフレームワークやライブラリはいくつか存在します。以下は主なものをいくつか挙げてみました: Next.js with Commerce.js: Next.js はReactベースのフレームワークで、サーバーサイドレンダリングや静的サイト生成が…

    sedのオプション

    sed -i '' -E 's/元の/置換など/g' ファイル名 -iと-Eは、それぞれ sed コマンドのオプションです。 -i オプションは --in-place の略で、このオプションを使うと sed コマンドは元のファイルを直接編集します。つまり、ファイルに対する変更は元のファイル…

    scm_breezeのいつものエラー

    よく出て来るエラーのcommand not found: compaudit のやつ・・・ ~/.zshrcにかく autoload -U compinit compinit [ -s "$HOME/.scm_breeze/scm_breeze.sh" ] && source "$HOME/.scm_breeze/scm_breeze.sh"

    SearchControllerのエラー

    Error (Xcode): ../../../.pub-cache/hosted/pub.dev/flutter_hooks-0.19.0/lib/src/search_controller.dart:7:1: Error: Type 'SearchController' not found. hooks_riverpod: ^2.3.7 だけだとだめ? flutter_hooks: ^0.20.0 Error (Xcode): ../../../.pub-…

    YAMLのファイルまでのコードジャンプをAndroidStudioやVSCodeで行いたい

    AndroidStudio https://plugins.jetbrains.com/plugin/14837-openapi-swagger-editor VSCode https://marketplace.visualstudio.com/items?itemName=42Crunch.vscode-openapi

    Androidの例のtry to migrate this app to the V2 embeddingエラー

    This app is using a deprecated version of the Android embedding. To avoid unexpected runtime failures, or future build failures, try to migrate this app to the V2 embedding. Take a look at the docs for migrating an app: https://github.com/…

    Dartでsplit

    Kotlinの.split('\n', ignoreCase = false, limit = 4)と同等の動作をする関数の例です。 List<String> splitWithLimit(String input, String separator, int limit, {bool ignoreCase = false}) { List<String> result = []; int currentIndex = 0; int matchIndex = ignore</string></string>…

    Navigatorのエラー Flutter

    Navigator.of(context).pushAndRemoveUntil( MaterialPageRoute<HogePage>( builder: (context) => const HogePage(), ), (Route<dynamic> route) => false, ), E/flutter ( 7164): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Navigator operati</dynamic></hogepage>…

    GASスクリプトでコメント行消す

    function removeCommentedLines(text) { // 改行文字でテキストを分割して配列に格納 var lines = text.split("\n"); // コメント行を削除する var filteredLines = lines.filter(function(line) { // 行の先頭が `` で終わる場合は削除しない return !(/^$/…

    プッシュ通知のFlutterメモ

    android/app/src/main/AndroidManifest.xml activity配下ではない!!! [flutter] FCM で バックグラウンド時の通知アイコンが表示されない時のつまづき <meta-data android:name="com.google.firebase.messaging.default_notification_channel_id" android:value="@string/default_notification_channel_id" /> </meta-data>

    knocked unconscious

    Knocked out - knocked unconscious knock A C AをなぐってCの状態にする 受動態にしなければ、たとえば The man knocked him unconscious. となる。 受動態にすると、形容詞がその位置にくることになるのだと思います。

    Navigator 2.0

    今更ながらFlutterの画面遷移にNavigator 2.0なるものがあった。 状態の変化で遷移するものっぽい。

    badges.BadgeAnimation

    バッジのパッケージアニメを切る badges.Badge( badgeAnimation: const badges.BadgeAnimation.slide( toAnimate: false, ),

    Flutterのsuper.key??

    コンストラクタで BottomNavigation({ Key? key, }) : super(key: key); が BottomNavigation({ super.key, }); https://dart-lang.github.io/linter/lints/use_super_parameters.html

    DartでList<dynamic>を直接`as`でキャストできないので

    json.decode(utf8.decode(jsonNativeData)) as List<Map<String, dynamic>?>;でエラーになる。 Listを直接asでキャストできないようだ・・。 こうする。 List<Map<String, dynamic>?>? res; try { final dynamicList = json.decode(utf8.decode(jsonNativeData)) as List<dynamic>; // List<dynamic>型をList<Map<String, dynamic>?>型に変換す</map<string,></dynamic></dynamic></map<string,></map<string,>…