Jun Makita
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Hamamatsu.rb #139 ## 自己紹介 - 新しい参加者は無し ## 前回ふりかえり - http://firekpt.jacoyutorius.com/board/?id=-N96PWOtl2RkiFDA47xy&title=Hamamatsu.rb%20%23138 ## 今回のネタ ### パターンマッチ - [Rubyのパターンマッチを使って簡単なプログラミング問題を解いてみた](https://qiita.com/jnchito/items/36c1c28fa82d1133d5ac) - [パターンマッチ入門 Ruby 編](https://qiita.com/natsuokawai/items/cc897ffeef8fb48ce89d) - [ruby のパターンマッチ使ってなかったので練習する](https://qiita.com/Nabetani/items/6c595e0f0378408e1431) - このCSVのパーサーなんかはパターンマッチ使って書ける?/... - [適格請求書発行事業者の情報](https://www.invoice-kohyo.nta.go.jp/download/zenken#csv-filtyp) ### GUI - [Glimmer DSL for LibUI](https://github.com/AndyObtiva/glimmer-dsl-libui) - WSLだとうまくいかへん - ![](https://i.imgur.com/rJ3acvp.png) ```ruby= yowasou@DESKTOP-CHJK33L:~/rubyprogs/glimmertest$ bundle exec ruby atest.rb Unable to init server: Could not connect: Connection refused (ruby:2150): GLib-CRITICAL **: 21:05:52.258: g_ptr_array_add: assertion 'rarray' failed (ruby:2150): Gtk-CRITICAL **: 21:05:52.260: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed (ruby:2150): Gtk-CRITICAL **: 21:05:52.261: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed (ruby:2150): Gtk-CRITICAL **: 21:05:52.263: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed /home/yowasou/rubyprogs/glimmertest/vendor/bundle/ruby/3.0.0/gems/libui-0.0.15/lib/libui/ffi.rb:20: [BUG] Segmentation fault at 0x0000000000000018 ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux] ``` - WSLが原因かも。次回はWindows版Rubyで試してみよう ### Heroku無料廃止 - [開発者向けサービス「Heroku」が無料プランの段階的廃止を発表](https://gigazine.net/news/20220826-heroku-next/) - 代替サービスとして使えそうなのは?… - Kaigiでも話出てたそうです - 無料無くなっちゃうなら他に行くかも - GCPとか? - AWSとか? - AppHarborとか?(C#だけ) - そもそも円安→さくら? - 他の無料サービスも有料化するのかも? - メールスパム用のシステムがたくさん作成されてしまう。それを防ぐためのコストがないらしい ### Stable Diffusionインストールした人いる? - 求められるスペックが割と高い - メモリ8GB GPU 1050ti Windowsじゃ足りなかった - サイボウズの購入基準のPCならいける? - サイボウズ、“メモリ8GB”の社用PCを撤廃していた 全て16GB以上に エンジニア以外も - ITmedia NEWS - https://www.itmedia.co.jp/news/articles/2209/14/news119.html - メモリ8GBだとVMとか立ち上げるのが厳しいです - クラウドでやるべきかも - 炎上したのはmimicの方 - coplilotはどうなったんだろ - ちょいちょい使われてるのでは - 画像生成AIでプレゼン資料作るのもいいかも - Midjourney、Stable Diffusion、mimicなどの画像自動生成AIと著作権 | STORIA法律事務所 - https://storialaw.jp/blog/8820 - それなりのリスクはある ### GitHub、Ruby on Rails向けのデータベースアダプタをオープンソースとして公開 - https://github.com/github/trilogy - MySQL互換DB用のクライアント - パフォーマンス、柔軟性、組み込みの容易さを考慮して三部作(trilogy) - postgresもホシイ... - 三つ組? ### RubyKaigi 2022無事に終了 - https://rubykaigi.org/2022/ - RubyKaigi 2023: May 11-13, 2023 3日間 - 詳しくはSlackを参照 - Fukuoka mruby会議もあるよ - Rubyに関する話の国際カンファレンス - (日本観光を兼ねて海外から来る人もいる - 最初は基調講演から - お弁当はいろいろ選べます - 今回はパーティーないですがお食事券が - ラーメンとか餃子とか - スポンサーたくさん。 - 前より増えてるかも - SEGAのメガドライブでRubyを動かす話が面白かった - SEGAとRubyへの愛があふれていた - メガドライブはなぜかオープンソースの開発がさかん - String meets encodingの話も面白かった - 速度改善の話 - まず速度を計測してどこが遅いのか特定するのが重要 - この方、SIerの元COBOLプログラマだったのを、2年前フィヨルドブートキャンプでruby学んでesmにてんしょくしたばかりなんですよね - 次回は松本で5/11~13に開催 - コロナで延期になったので2023年になった - オンラインもあるはず - RubyKaigiで発表できるほどのエンジニアになりたい - 浜松市でRubyKaigiできるころには - 発表は半分くらい英語 - 日本語⇒英語の同時通訳はあった - 英語力を鍛えましょう - あまり質疑応答はなかった - 楽しいので一度は行ってみましょう。Rubyそのものの開発となるとC言語の話になったりもする - 新しい言語という時代とは変わってきている。 - Ruby3になって開発環境とかパフォーマンスの改善が主になってきました ### Robert C.Martin『Clean Craftsmanship 規律、基準、倫理』 - https://www.kadokawa.co.jp/product/302206001224/ - 役者の角征典さんはRubyも詳しい人 ### 驚き最小の原則 - [日本語Wiki](https://ja.wikipedia.org/wiki/%E9%A9%9A%E3%81%8D%E6%9C%80%E5%B0%8F%E3%81%AE%E5%8E%9F%E5%89%87) - [英語Wiki](https://en.wikipedia.org/wiki/Principle_of_least_astonishment) - 『どうしようかな?』と思ったときには、 相手の『驚き』を最小にするような選択をすべき ## Twiiterから気になる話 <blockquote class="twitter-tweet"><p lang="ja" dir="ltr">Chrome 105で`:has()`が入ったらjQueryが壊れたという話が出てきてうわーってなっている。<a href="https://t.co/HxjKvwpEwG">https://t.co/HxjKvwpEwG</a></p>&mdash; Masataka Yakura (@myakura) <a href="https://twitter.com/myakura/status/1565986899097178112?ref_src=twsrc%5Etfw">September 3, 2022</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> - Rubyでもバージョンアップするとある - PGの修正で回避 - システム系の名前と被らないように。名前の付け方は重要 ## 次回以降のネタ <blockquote class="twitter-tweet"><p lang="ja" dir="ltr">ブログ書きました(1/2)<br>「リーダブルテストコード」の動画、出ましたよ!<br><br>当日見逃したあなたに!「リーダブルテストコード」の登壇動画が公開されました <a href="https://twitter.com/hashtag/vstat?src=hash&amp;ref_src=twsrc%5Etfw">#vstat</a> - give IT a try <a href="https://t.co/fuKGsxnbXM">https://t.co/fuKGsxnbXM</a></p>&mdash; Junichi Ito (伊藤淳一) (@jnchito) <a href="https://twitter.com/jnchito/status/1566557095440179200?ref_src=twsrc%5Etfw">September 4, 2022</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> ### RubyでCのコードを出力させている - Rubyでできたシンセ - https://github.com/risgk/digital-synth-vra8-u - https://github.com/risgk/digital-synth-vra8-u/blob/main/DigitalSynthVRA8U/filter-table.h ### パターンマッチ - このCSVのパーサーなんかはパターンマッチ使って書ける?/... - [適格請求書発行事業者の情報](https://www.invoice-kohyo.nta.go.jp/download/zenken#csv-filtyp) ## 告知 ### JAWS DAYS 2022 - Satellites - 2022.10.08(Sat) 10:00~18:00 - [浜松会場はこちら](https://jawsug-hamamatsu.doorkeeper.jp/events/142652) ### 浜松Androidの会 - 2022.09.16(Fri) 20:00~ - https://jaghama.connpass.com/event/260275/ ### Python駿河(unagi.pyと合同) - https://py-suruga.connpass.com/event/260005/ - 各イベントハイブリッドになって健康的になった気がする... ## KPT - [Hamamatsu.rb #139](http://firekpt.jacoyutorius.com/board/?id=-NBvoWmoE54vn6lS3ZBp&title=Hamamatsu.rb%20%23139) ### KEEP - ちょっとRuby書いた - ruby会議の話聞けてよかった ★2 - Ruby動かした - パターンマッチ良かった! - 勉強になった ### PROBLEM - みんなに喋らせることができなかった - メモリ不足 - パターンマッチ予習していない ★1 - Rubyのセットアップ間に合わなかった ★1 ### TRY - RubyKaigiで発表する ★1 - またRuby書く - 次回10/12(水) 19:00-21:00 ★1 - パターンマッチでRubyのコード書く ★1 - Windows版Ruby入れる ## チャット内容 ``` 牧田純18:56 議事録です https://hackmd.io/O-DyfwR-RSGTNIcHCnfgOA 牧田純19:35 https://qiita.com/jnchito/items/36c1c28fa82d1133d5ac 議事録です https://hackmd.io/O-DyfwR-RSGTNIcHCnfgOA?both 久々湊優人19:42 puts [*10..12] 10 11 12 あなた20:03 https://ascii.jp/elem/000/001/255/1255878/ ASCII.jp:Rubyで電卓を作る def evaluate(tree)   if tree[0] == "lit"     tree[1]   else     if tree[0] == "+"      left = evaluate(tree[1])      right = evaluate(tree[2])      left + right     else      # ここでは tree[0] == "*"      left = evaluate(tree[1])      right = evaluate(tree[2])      left * right     end   end end suchi org (suchi)20:21 この方、SIerの元COBOLプログラマだったのを、2年前フィヨルドブートキャンプでruby学んでesmにてんしょくしたばかりなんですよね C言語も初心者だったそうです かっこいい suchi org (suchi)20:31 本日中途半端な参加で失礼しました。楽しく聴いてました。移動するので失礼します! あなた20:38 https://sou-hamamatsu.jp/index.php/2022/09/05/8003/ JAWS-UGが生きる原動力を与えてくれた – SOU あなた20:43 https://av.watch.impress.co.jp/docs/series/dal/1439090.html 【藤本健のDigital Audio Laboratory】「Arduino Uno」でシンセサイ… https://github.com/risgk/digital-synth-vra8-u あなた20:44 https://github.com/risgk/digital-synth-vra8-u/blob/main/DigitalSynthVRA8U/generate-filter-table.rb https://github.com/risgk/digital-synth-vra8-u/blob/main/DigitalSynthVRA8U/filter-table.h 牧田純20:46 http://firekpt.jacoyutorius.com/board/?id=-NBvoWmoE54vn6lS3ZBp&title=Hamamatsu.rb%20%23139 wjm-rbmu-zym ```

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully