GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Pleroma-tan (kirby@lab.nyanide.com)'s status on Wednesday, 29-Nov-2023 10:49:49 JST Pleroma-tan Pleroma-tan
    so i don't really have a clue on why this could be happening

    but I've been trying to beat the very new [as of some 2000 years ago] and difficult to beat Caesar cipher with this program. but for some reason i keep getting truncated strings after some runs.

    anyone know why this could be happening?
    In conversation Wednesday, 29-Nov-2023 10:49:49 JST from lab.nyanide.com permalink

    Attachments


    1. https://meds.lab.nyanide.com/media/c395e9f05fd505c52d7eb462eab8c0fbb7497dd74b016cd4e879aa34defdc88d.png

    2. https://meds.lab.nyanide.com/media/f7e5e974b30d582a67c87dfa4ba1df0f225b29c50d47fc7ac3399a4831fdf7cd.png

    3. https://meds.lab.nyanide.com/media/14fb7957b033a5d6a66da1c541ec3d55c61457fec18a8f51b4e6a92cdfc7a7f6.png
    • Embed this notice
      Pleroma-tan (kirby@lab.nyanide.com)'s status on Wednesday, 29-Nov-2023 11:07:39 JST Pleroma-tan Pleroma-tan
      in reply to
      ended up finding the solution

      for loop in shiftletter did not account for strlen just returning length and not last index

      l == i - 1

      and i never accounted for capital letters so i made a copy of if with the alphabet replaced with a capped alphabet
      In conversation Wednesday, 29-Nov-2023 11:07:39 JST permalink
    • Embed this notice
      postemples (postemples@clubcyberia.co)'s status on Wednesday, 29-Nov-2023 11:14:27 JST postemples postemples
      in reply to
      @kirby In your shiftletter function you are never reaching a state where i == l is true since your for loop stops executing before that happens. It'd probably be better just to do 'letter++' and set it back to 'a' if it's greater than 122 or 'z' instead of doing that for loop stuff.
      In conversation Wednesday, 29-Nov-2023 11:14:27 JST permalink
      Pleroma-tan likes this.
    • Embed this notice
      Pleroma-tan (kirby@lab.nyanide.com)'s status on Wednesday, 29-Nov-2023 11:17:29 JST Pleroma-tan Pleroma-tan
      in reply to
      • postemples
      @postemples holy crap if i had known ascii already organized them by alphabet i wouldve just done something with that instead tysm
      In conversation Wednesday, 29-Nov-2023 11:17:29 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.