asterisk's recent activity

  1. Comment on What have you been watching / reading this week? (Anime/Manga) in ~anime

    asterisk
    Link
    What I am liking very much: Eizouken ni wa Te o Dasuna! — it is about anime making with interesting draw style (sometimes it looks like Shōjo Shūmatsu Ryokō) and insertions like:...

    What I am liking very much:

    • Eizouken ni wa Te o Dasuna! — it is about anime making with interesting draw style (sometimes it looks like Shōjo Shūmatsu Ryokō) and insertions like: https://streamable.com/tef2w

    • Jibaku Shounen Hanako-kun — it is also with interesting draw style about yokais and kinda mystics, here is also funny banters between the boy and the girl.

    • Somali to Mori no Kamisama — it's kinda Mandalorian but in anime with some differences.

    Just fine for my mood:

    • Dorohedoro — something of utopia that I can not understand but I like.

    • Nekopara — well, catgirls is kinda holy things.

    • Koi Suru Asteroid — slice-of-slice by Dogo Koba with elements about astronomy and geology.

    • Kyokou Suiri — a light version of Monogatari.

    • Runway de Waratte — it's about modeling and clothes making for them in kinda shōnen style I guess.

    • Rikei ga Koi ni Ochita no de Shoumei Shite Mita — comedy romance with scientific elements.

    Another section:

    • Gekijouban Kyochuu Rettou — bad movie about people vs big insect with hentai elements.
    • Sayonara no Asa ni Yakusoku no Hana o Kazarou — pretty nice movie about relation between long-living mother and not-her son.
    • Seishun Buta Yarou wa Yumemiru Shoujo no Yume o Minai — I guess it would be better in format as second season.
    2 votes
  2. Comment on Day 5: Sunny with a Chance of Asteroids in ~comp

    asterisk
    Link
    I got sick, but now I kinda fine, so I return. It was really hard to read and to understand the task for me too. PHP functions.php <?php class instructions { public $input; public $point; public...

    I got sick, but now I kinda fine, so I return.

    It was really hard to read and to understand the task for me too.

    PHP

    functions.php

    <?php
    
    class instructions
    {
        public $input;
        public $point;
        public $enter;
        public $result;
    
        function __construct($input, $enter)
        {
            $this->input = $input;
            $this->enter = $enter;
            $this->point = 0;
        }
    
        function size()
        {
            return count($this->input);
        }
    
        function imm($add = 0, $point = null) // immediate
        {
            return is_null($point) ? $this->point + $add : $point;
        }
    
        function pos($add = 0, $point = null) // possition
        {
            return $this->input[$this->imm($add, $point)];
        }
    
        function mode($pos)
        {
            $modes = array_reverse(str_split(substr($this->pos(), 0, -2)));
    
            return isset($modes[$pos - 1]) ? $modes[$pos - 1] ? $this->imm($pos) : $this->pos($pos) : $this->pos($pos);
        }
    
        function sum($augend, $addent, $sum)
        {
    
            $this->input[$sum] = $this->input[$augend] + $this->input[$addent];
            $this->point += 4;
        }
    
        function multi($multiplier, $multiplicand, $product)
        {
    
            $this->input[$product] = $this->input[$multiplier] * $this->input[$multiplicand];
            $this->point += 4;
        }
    
        function input($where)
        {
    
            $this->input[$where] = $this->enter;
            $this->point += 2;
        }
    
        function output($where)
        {
    
            $this->result = $this->input[$where];
            $this->point += 2;
        }
    
        function compare($first, $second, $where = null)
        {
            switch (substr($this->pos(), -2)) {
                case 5:
                    $this->point = $this->input[$first] ? $this->input[$second] : $this->point + 3;
                    break;
                case 6:
                    $this->point = $this->input[$first] ? $this->point + 3 : $this->input[$second];
                    break;
                case 7:
                    $this->input[$where] = $this->input[$first] < $this->input[$second] ? 1 : 0;
                    $this->point += 4;
                    break;
                case 8:
                    $this->input[$where] = $this->input[$first] == $this->input[$second] ? 1 : 0;
                    $this->point += 4;
                    break;
            }
        }
    }
    

    part-2.php; For part-1 just remove cases. But here is no different exept value of $enter (sysmtem ID), even with these cases it works same.

    <?php include('functions.php');
    
    function run($input, $enter = 1)
    {
        $op = new instructions($input, $enter);
    
        while ($op->point < $op->size()) {
            switch (substr($op->pos(), -2)) {
                case 1:
                    $op->sum($op->mode(1), $op->mode(2), $op->mode(3));
                    break;
                case 2:
                    $op->multi($op->mode(1), $op->mode(2), $op->mode(3));
                    break;
                case 3:
                    $op->input($op->mode(1));
                    break;
                case 4:
                    $op->output($op->mode(1));
                    break;
                case 5:
                    $op->compare($op->mode(1), $op->mode(2));
                    break;
                case 6:
                    $op->compare($op->mode(1), $op->mode(2));
                    break;
                case 7:
                    $op->compare($op->mode(1), $op->mode(2), $op->mode(3));
                    break;
                case 8:
                    $op->compare($op->mode(1), $op->mode(2), $op->mode(3));
                    break;
                case 99:
                    break 2;
                default:
                    echo sprintf("Point %s, Op %s\n", $op->imm(), $op->pos());
                    break 2;
            };
        }
    
        echo "Result: $op->result\n";
    }
    
    run(explode(',', file_get_contents(__DIR__ . '/input.txt')), 5); // p1 7566643, p2 9265694
    
    1 vote
  3. Comment on Day 4: Secure Container in ~comp

    asterisk
    Link Parent
    Rewrited function findBi() <?php function findBi($input) { if (isSameAdjent(substr($input, 0, 2)) && !isSameAdjent(substr($input, 1, 2)) || !isSameAdjent(substr($input, strlen($input)-3, 2)) &&...
    Rewrited function findBi()
    <?php function findBi($input)
    {
        if (isSameAdjent(substr($input, 0, 2)) && !isSameAdjent(substr($input, 1, 2))
        || !isSameAdjent(substr($input, strlen($input)-3, 2)) && isSameAdjent(substr($input, strlen($input)-2, 2))) {
            return true;
        }
    
        for ($i = 1; $i < strlen($input) - 1; $i++) {
            if (!isSameAdjent(substr($input, $i-1, 2)) && isSameAdjent(substr($input, $i, 2)) && !isSameAdjent(substr($input, $i+1, 2))) {
                return true;
            }
        }
        return false;
    }
    
    1 vote
  4. Comment on Day 4: Secure Container in ~comp

    asterisk
    Link
    PHP functions.php <?php function isSixtLength($input) { return strlen((string) $input) == 6; } function isSameAdjent($input) { for ($i = 0; $i < strlen($input); $i++) { if ($i && $input[$i] ==...
    PHP

    functions.php

    <?php
    
    function isSixtLength($input)
    {
        return strlen((string) $input) == 6;
    }
    
    function isSameAdjent($input)
    {
        for ($i = 0; $i < strlen($input); $i++) {
            if ($i && $input[$i] == $input[$i - 1]) {
                return true;
            }
        }
        return false;
    }
    
    function isDecrease($input)
    {
        for ($i = 0; $i < strlen($input); $i++) {
            if ($i && $input[$i] < $input[$i - 1]) {
                return true;
            }
        }
        return false;
    }
    
    function findBi($input)
    {
        for ($i = 0; $i < strlen($input); $i++) {
            switch ($i) {
                case 0:
                    if ($input[$i] == $input[$i + 1] && $input[$i] != $input[$i + 2]) {
                        return true;
                    }
                    break;
                case 1:
                    if (
                        $input[$i] == $input[$i + 1] && $input[$i] != $input[$i + 2] && $input[$i] != $input[$i - 1]
                        || $input[$i] == $input[$i - 1] && $input[$i] != $input[$i + 1]
                    ) {
                        return true;
                    }
                    break;
                case strlen($input) - 2:
                    if (
                        $input[$i] == $input[$i + 1] && $input[$i] != $input[$i - 1]
                        || $input[$i] == $input[$i - 1] && $input[$i] != $input[$i - 2] && $input[$i] != $input[$i + 1]
                    ) {
                        return true;
                    }
                    break;
                case strlen($input) - 1:
                    if ($input[$i] == $input[$i - 1] && $input[$i] != $input[$i - 2]) {
                        return true;
                    }
                    break;
                default:
                    if (
                        $input[$i] == $input[$i + 1] && $input[$i] != $input[$i + 2] && $input[$i] != $input[$i - 1]
                        || $input[$i] == $input[$i - 1] && $input[$i] != $input[$i - 2] && $input[$i] != $input[$i + 1]
                    ) {
                        return true;
                    }
            }
        }
        return false;
    }
    

    part-1.php

    <?php include('functions.php');
    
    $count = 0;
    foreach (range(197487, 673251) as $number) {
        if (isSixtLength($number) && isSameAdjent((string) $number) && !isDecrease((string) $number)) {
            $count++;
        }
    }
    
    echo $count; 
    

    part-2.php

    <?php include('functions.php');
    
    $count = 0;
    foreach (range(197487, 673251) as $number) {
        if (isSixtLength($number) && findBi((string) $number) && !isDecrease((string) $number)) {
            $count++;
        }
    }
    
    echo $count;
    
    2 votes
  5. Comment on Advent of Code 2019 in ~comp

    asterisk
    Link
    It is really fun and interesting. For example I liked to read about 1202 Program Alarm. My git where I am coding in [bad] PHP.

    It is really fun and interesting. For example I liked to read about 1202 Program Alarm.

    My git where I am coding in [bad] PHP.

    3 votes
  6. Comment on What have you been watching / reading this week? (Anime/Manga) in ~anime

    asterisk
    Link
    I also started to watch Houkago Saikoro Club — mosty about girls, tabletop gaming and sometimes making. By the way, what I am watching else: if Rick & Morty is not Japanese-style anyway then RWBY...

    I also started to watch Houkago Saikoro Club — mosty about girls, tabletop gaming and sometimes making. By the way, what I am watching else: if Rick & Morty is not Japanese-style anyway then RWBY has some styles.

    I finished to read mangas:

    • Yagate Kimi ni Naru — nice story about love beetwen girls. Not so long time ago was anime.
    • Yesterday wo Utatte — old story about love.
    1 vote
  7. Comment on What have you been watching / reading this week? (Anime/Manga) in ~anime

    asterisk
    Link
    Itʼs my new seasonʼs comment about animes, yeah. Fallʼs animes Babylon — detective, triller and mystic. Beastars — good story and animation, the best openning. Chuubyou Gekihatsu Boy — five odd...

    Itʼs my new seasonʼs comment about animes, yeah.

    Fallʼs animes

    • Babylon — detective, triller and mystic.
    • Beastars — good story and animation, the best openning.
    • Chuubyou Gekihatsu Boy — five odd guys and one girl.
    • Hoshiai no Sora — sport with drama about families.
    • Mugen no Juunin: Immortal — samurais, revenge and older Dororo.
    • Watashi, Nouryoku wa Heikinchi dette Itta yo ne! — cute girls in slice-of-lifeʼs isekai. Itʼs a good thing after Babylon.

    From previous season and new part

    • Chihayafuru 3
    • Dr. Stone
    • Vinland Saga

    Out-category

    • Aggressive Retsuko — two seasons are mostly about what we hate.
    • Black Fox — revenge and fathers, so-so for me.
    • Gabriel Dropout — fine simple comedy.
    • Gankutsuou — Japanese Monte Cristo with good-strange style
    • Penguin Highway — similar to next anime and have some similar themes: weather with affects, love and against-older; and for me this anime was better.
    • Tenki no Ko
    2 votes
  8. Comment on Must-have browser extensions? in ~tech

  9. Comment on Russia paid radio broadcaster $1.4 million to air Kremlin propaganda in Washington, D.C. in ~news

    asterisk
    Link
    Not so along time ago in Ukraine, partner of Putinʼs comparde bought neutral or pro-Ukrainian TV-chanel ZIK 🇺🇦. He already has 2 another popular enough channels: NewsOne 🇺🇦 & 112 Ukraine. Here is...

    Not so along time ago in Ukraine, partner of Putinʼs comparde bought neutral or pro-Ukrainian TV-chanel ZIK 🇺🇦. He already has 2 another popular enough channels: NewsOne 🇺🇦 & 112 Ukraine. Here is web-propaganda a year ago in Baltic.

    Kremlin has no doubts in money for informational influence.

    2 votes
  10. Comment on I just ran across Planetes and I love it, any similar recommendations? in ~anime

    asterisk
    Link
    …and maybe a couple others. I dunno, but just for certain: Akira, Area 88.

    …and maybe a couple others.

    I dunno, but just for certain: Akira, Area 88.

    1 vote
  11. Comment on What have you been watching/reading this week? (Anime/Manga) in ~anime

    asterisk
    Link
    I did not write a long time about new season. So, I am watching: Carole & Tuesday — good music and around music, not idol, anime on Mars in future. Fairy Gone — kinda JoJo, but with kinda politic...

    I did not write a long time about new season.

    So, I am watching:

    • Carole & Tuesday — good music and around music, not idol, anime on Mars in future.
    • Fairy Gone — kinda JoJo, but with kinda politic and not so good CG; here is also hard-names of towns which I do not remember. Very middle anime, but I somewhy watch. maybe because I like main heroine — she is pretty girl.
    • Kenja no Mago — kinda isekai but I define as almost general slice-life but with politic and magic. It is not harem but here is enough of dithyrambs for main hero.
    • Kimetsu no Yaiba — shounen anime about oldtime world with demons, with good animation and some brutal and cute.
    • Mix: Meisei Story — to be honest, I did not watch any Touch but Cross Game. Simple spokon where slice-life is main subject.
    • Sarazanmai — good anime of drama, kappas and absurdic.
    • Sewayaki Kitsune no Senko-san — perfect iyashikei.

    shorts & sprecial

    • Joshi Kausei — 4 min: three girls, slice-life with sometime light ecchis.
    • Miru Tights — 4 min: tights, girls and ecchi.
    • Chou Kadou Girl ⅙ — 15 min: otaku-culture about figures which are alive.
    • Watashi ni Tenshi ga Maiorita! - special: lolis, kinda iyashikei.

    from previous season

    • Dororo — same as Kimetsu no Yaiba above, but I somewhy do not feel it as shounen. And by the way only some, I guess two, episodes have a really bad animation. First OP is catchy.
    • JoJo no Kimyou na Bouken: Ougon no Kaze

    I rarely read manga but I was a glad to read a short [but name is not, bhh] completed manga with three volumes — Jumyou wo Kaitotte Moratta. Ichinen ni Tsuki, Ichimanen de.

    1 vote
  12. Comment on What anime should everyone watch? in ~anime

    asterisk
    Link
    Perfect Blue.

    Perfect Blue.

    1 vote
  13. Comment on What have you been watching/reading this week? in ~anime

    asterisk
    (edited )
    Link
    I guess, better to create week-topisc when week starts/ends, so, yeah, better to do this anywhen between Friday — Monday. About watching. I just watching what mentioned here, but Shoujo☆Kageki...

    I guess, better to create week-topisc when week starts/ends, so, yeah, better to do this anywhen between Friday — Monday.

    About watching. I just watching what mentioned here, but Shoujo☆Kageki Revue Starlight instead Muhyo to Roji no Mahouritsu Soudan Jimusho.

    Nothing especial on this week but only one. I start watch Lupin only from the ongoing series. So, last outed episode (20th) was about (post-)Soviet location, it suprised me (I am from Ukraine), because it is very rarely to see good enough (post-)Soviet: backgrоunds, uniforms, buildings, cars etc.

    I am currently reading last outed book Game of Thrones, so I do not have so much time for mangas.

  14. Comment on What is your favorite anime, and why? in ~anime

    asterisk
    Link
    Well, it’s hard to write about favorite anime, cause I cann’t choose. But I would like to mention Sayonara Zetsubou Sensei: Good absurd comedy on many [mostly japonic] thematics. Very, hm… special...

    Well, it’s hard to write about favorite anime, cause I cann’t choose. But I would like to mention Sayonara Zetsubou Sensei:

    • Good absurd comedy on many [mostly japonic] thematics.
    • Very, hm… special OPs, example: evolution of one.
    1 vote
  15. Comment on Summer 2018 Anime: What have you picked up? in ~anime

    asterisk
    (edited )
    Link
    Summer is good on and for comedies: Asobi Asobase Chio-chan no Tsuugakuro Grand Blue So, I am watching Banana Fish Hataraku Saibou Tsukumogami Kashimasu — slice of life with tsukumogami during...

    Summer is good on and for comedies:

    • Asobi Asobase
    • Chio-chan no Tsuugakuro
    • Grand Blue

    So, I am watching

    • Banana Fish
    • Hataraku Saibou
    • Tsukumogami Kashimasu — slice of life with tsukumogami during Tokugawa period; it started late, 3rd episode was outed yesterday; I like that rhythmic OP.
    • Muhyo to Roji no Mahouritsu Soudan Jimusho — but this started very late — 1st episode was last week, so I dunno, looks a little like Mob Psycho 100.

    From previous season

    • Lupin Sansei: Part 5
    1 vote
  16. Comment on How are you keeping track of anime? in ~anime

    asterisk
    Link
    I started from MAL. Later I used Shikimori — it’s Muskovian alternative. But from a long time ago I am using AniDB. I didn’t have any big problem with changing, cause all mentioned sites have...

    I started from MAL. Later I used Shikimori — it’s Muskovian alternative. But from a long time ago I am using AniDB. I didn’t have any big problem with changing, cause all mentioned sites have im/export.

  17. Comment on Markdown in ~tildes

    asterisk
    Link Parent
    As I see, http://~ is redirecting to https://~, so here is always https, and my browser will take me to https://example. But, yeah, youʼre right, and thanks for explanation, I checked: if a...

    As I see, http://~ is redirecting to https://~, so here is always https, and my browser will take me to https://example. But, yeah, youʼre right, and thanks for explanation, I checked: if a web-site doesnʼt have own redirect or doesnʼt support then Iʼll get an error.

    1 vote
  18. Comment on Markdown in ~tildes

    asterisk
    Link
    I like Markdown+HTML cause it isnʼt hard. I preffer kinda markdown from StackExchange because : you can use paragraph with indantation part of htpps: or htpp: isnʼt necessary...

    I like Markdown+HTML cause it isnʼt hard. I preffer kinda markdown from StackExchange because :

    • you can use paragraph with indantation
    • part of htpps: or htpp: isnʼt necessary [link](//tildes.net/~tildes/1zo); wait, you can even for siteself [link](/~tildes/1zo)

    As I know, Tildesʼ canʼt that. I would like to have preview for markdown, I guess it would be easier to understand how markdown works and a good thing for find mistakes with mardown.

    1 vote
  19. Comment on Name a cool, mostly unknown feature of your OS of choice in ~tech

    asterisk
    (edited )
    Link
    Windows: you can put a link of image in a field of ”Choose file” dialog box, and it will upload on sile as local image file (which is true, as I know, this image will be as caсhe or sorta this).

    Windows: you can put a link of image in a field of ”Choose file” dialog box, and it will upload on sile as local image file (which is true, as I know, this image will be as caсhe or sorta this).