Records from 3/29 to 4/2

To be filled…

Facts about SQL

  • MySQL does not support data integrity check(that is, it parses but ignores CHECK constraint).
  • MariaDB was the same but started implementing it since 10.2.
  • PostgreSQL is likely to support this feature.

Facts about Arch Linux

  • Arch Linux has only in its official repo MariaDB 10.1 because of this.
  • updpkgsums is a command line tool to update the checksums in the PKGBUILD file.
  • Running makepkg with -s would install the dependencies for it, and -i would install the package built.
  • trizen, aurman are also AUR helpers, the same as yaourt, pacaur.

Facts about CentOS 7

  • It uses Linux 3.10.
  • The packages in EPEL can be very old as well.
  • The lttng package in EPEL is ver 2.4.

Fact about Oracle

It sucks.

Facts about Input Methods

  • The author of Flypy(http://www.flypy.com) is stingy about the double pinyin scheme they created – they haunt every developer of an input method which make Flypy available – either as preset or configurable afterwards – without their authorization.

  • Rime, GBoard, and MS IME seem not (yet) in trouble.

  • The author of Flypy criticized others’ approach to tackle zero-consonant characters(‘a’, ‘er’, ‘ou’, etc.) from their perspective. Flypy uses the first and the last letter of the syllable(‘ee’ for ‘e’, ‘ag’ for ‘ang’, etc.), while some others allocate a specific letter, say, ‘o’, for it.(That is, ‘oa’ for ‘a’, ‘ol’ for ‘ai’ for MS).

  • A family of double pinyin derives from Ziranma, with minor differences. MS and Sogou are among them.

  • Mozc could be configured using /usr/lib/mozc/mozc_tool --mode=config_dialog, where the input mode could be switched between Romaji and Kana.

Misc

空はきれいなのに

Comment and share

The video game developer, Compile Heart Inc., has recently announced its bankruptcy, according to Noirina International Reports. The developer who’s had the hands on War of Agarest series, the franchise of Neptunia, has finally meet its fate because of its overspending and decision mistakes.

Compile Heart was a video game developer, set up as the complete subsidiary of Idea Factory by Shingo Kuwana, who was the CEO of Idea Factory. It was more like a brand than a child company of IF, just like how FAVORITE and Omega-Star were to CROSSNET. When Compile Heart focused on moe games, another brand of IF, Otomate, majored in Otome games, as its name suggests.

Year 2015 witnessed a major success of Compile Heart, when the Megadimension Neptunia was launched. The game, features three stories in three dimensions, was said to be well crafted and organized. Though not perfectly, the game is still a complete embodiment of the spirits of Neptunia series.

However, after 2015, Compile Heart has ceased the development of any canon Neptunia games, instead, there were only three spin-offs launched in the following years: Megatagmension Blanc+Neptune VS Zombies, Superdimension Neptune VS Sega Hard Girls, and Cyberdimension Neptunia. Even those are not full-fledged Neptunia games as the previous four, they are still completed, having their own good plots(except the first one and the last one). Also, the first and the last of them are good explorations into a brand new genre that Compile Heart has never set its foot in, rather than staying within its RPG confort zones(and still never now, because these action games were developed by Tamsoft, the maker of Senran Kagura). But they received positive reviews from customers over the world, although seen not as good as the canon ones.

And Compile Heart just took a step further. It decided to entrust a Carribean game studio, AmateurGameStudios the next game of Neptunia series. The studio gave it a tentative title: Villain Neptune. According to its settings, the evil Neptune, the protagonist in the game, crushed one of the three dimensions, making the whole game a 2D one. It was purported that they were making a Megaman Maverick Hunter X at first, but ended up with another Odin Sphere. And its quality was severely compromised probably because of this sudden change during the game making.

So it came as no surprise that the Evil Neptune(the name when it was launched) did not receive much acclaim. However, Compile Heart erroneously attributed its failure to the assumption that Neptunia was losing its momentum. And it decided to make new IPs. In this period, they made the Fairy Fencer F, Genkai Toki, Mugen Souls Z, and so on. They had attempts with not only role playing games, but card games and adventure games as well. However, none of them made enough profits to reverse the situation. . The economical crisis in Spring 2018 added to the difficulty for the company to operate. On 4/1/2018, Sunday, Compile Heart issued an application for bankruptcy to Tokyo District Court. Its property rights of Neptunia and other series go to Idea Factory Co., Ltd. And one of the company’s previous member, Masamitsu Niitani, is going to start a new game maker called Compile(the brand name and the heart symbol still belong to IF, so he cannot use it). And Takashi Takeuchi, the founder of Type-Moon, is showing his willingness to join the new company’s graphics team.

Comment and share

Facts about Bash/Dash/sh

  • Arch Linux uses Bash(Bourne Again Shell) for POSIX shell (/bin/sh)
  • When Bash is called with sh, it tries to emulate the POSIX shell
  • Dash is POSIX compatible, making it Bash incompatible.

Facts about of V-Table

In C++, the virtual table pointer is located in the head of the class instance.

The virtual table is a table of pointer to virtual(overridden or not) functions.

Therefore, to invoked these virtual methods, a mechanism called thunk(a jocular form of think) is needed. It means doing something before the actual function is called. And functional language relies largely on this mechanism.

Fact about Zeromq

  • It is a distributed communication library.
  • It sits on top of the TCP/IP layer, means the possibility is huge that it sends message by syscalls like send.

Facts about lttng

  • Means Linux Tracing Tool, next generation
  • In Artful repo, for older Ubuntu versions, go to ppa:lttng
  • Can be used to trace syscall, or even user application(need to write code into the program)
  • babeltrace could be used to translate the file.

Facts about Ubuntu

  • The life span of Zesty(17.04) has ended in Jan. 2018. Artful will meets its end in Jul. 2018.
  • The life span of non-LTS versions is 9 months.
  • 18.04 is called Bionic, will upgrade later

Facts about Opam

The package manager of OCaml. Not a kind of mineral.

Facts about type algebra

Refer to this page.

The type could be expressed in an algebra-like manner:

0: None type, there is 0 way to construct an empty type object

1: Singleton

2: Two ways to construct the type, boolean type is an example

++: Sum type, the object of type a+ba+b could be either type a or type b, but not both, there are exactly a+ba+b ways to construct the object. Injection is used to construct an instance, if it is called an instance. ×\times: Product type, the object of type a×ba\times b is a combination of an object of type a and one of type b. OCaml adopts this notation, an constructor applied to type a×ba\times b is written as `Foo of a*b`.

And as a surprising yet unsurprising coincidence, the sum and product obey the rules:

Communicative: a+b=b+aa+b=b+a

Associative: a+(b+c)=(a+b)+ca+(b+c)=(a+b)+c

Distributive: a×(b+c)=a×b+a×ca\times(b+c)=a\times b+a\times c

For recursive types like the tree, which is

data Tree a = Leaf a | Branch (Tree a) (Tree a)

The formula is:

T=a+T2T = a + T^2

Therefore, we have:

T2T+a=0T^2-T+a=0 T=114a2T = \frac{1-\sqrt{1-4a}}{2} (Why choose the minus sign?)

Use Taylor series, we could obtain:

T=1+a+a2+2a3+5a4+14a5+42a6T=1 + a + a^2 + 2 a^3 + 5 a^4 + 14 a^5 + 42 a^6 \cdots

And the coefficients of a are Catalan numbers.

Zippers means we could turn the pocket inside out and focus on one element in a data structure, in a way that updating the focused element , as well as moving the focus around, takes O(1)O(1) time.

And we can focus on the holes of a type.

a×ba\times b has one hole of a a+aa+a has two holes of a, that is `data _, a` and `data a, _`

It is likened to partial differentiation, for example:

(u×v)a=ua×v+va×u\frac{\partial (u \times v)}{\partial a} = \frac{\partial u}{\partial a} \times v + \frac{\partial v}{\partial a} \times u

If ta\frac{\partial t}{\partial a} means the hole numbers of a in t, and let the g of constant be zero, and g of other variables be one, then magic!

It can be applied to the list type:

data List a = [] | Cons a (List a)
L=1+aLL=1+aL , take both sides' derivative of a, we got: La=L+La×a\frac{\partial L}{\partial a} = L + \frac{\partial L}{\partial a} \times a La=L1a\frac{\partial L}{\partial a}=\frac{L}{1-a} andLa=L2\frac{\partial L}{\partial a}=L^2. Bravo! That is the zipper type, one pointing to left and the other right.

Added 3/29:

But the same thing could not be perfectly applied to the binary tree type.

Recall, we have the binary tree type:

data Tree a = Leaf | Branch a (Tree a) (Tree a)

Then the formula is:

T=1+aT2T=1+aT^2

The best I could get is about:

Ta=T2L\frac{\partial T}{\partial a}=T^2L, and the LL is a list of type 2aT2aT.

According to LYAHFGG, the zipper of a binary tree should be something like this:

data Crumbs a = LeftCrumb a (Tree a) | RightCrumb a (Tree a)
type BreadCrumbs a = [Crumbs a]
type Zipper a = (Tree a, Breadcrumbs a)

It is easy to see that Crumbs a has a type of 2aT2aT and BreadCrumbs a has a type of 112aT\frac{1}{1-2aT}.

But wait! That gives TT rather than a T2T^2 in the numerator.

Maybe we’ve just started wrong, like, we took the wrong differentiation.

That would be left for future investigation.

Misc

PEBKAC (Problem Exists Between Keyboard And Chair) is the word that describes user error.

Comment and share

Memories, Off

in writing

The title of this post refers to the galgame series produced by the once existing KID, though there is no obvious relevance between the game and this article(though the protagonist in Yubikiri no Kioku does have a memory loss and mistakes himself for someone else). By the way, an eighth installment of it is near its publication by MAGES, the franchise’s now owner, along with GloriaWorks. It was once decided to be a homage to one of the songs of Jin’s Kagerou Project, but you are not seeing it here because I forgot that and went for this one.

This article contains spoilers, which may harm or even completely ruin your playing or reading experience of the works, including but not limited to:

Game Shichinen go de Matteiru (waiting for you seven years later), fumi_md Lightnovel Tosho Meikyuu (the labyrinth of book), Juuji Shizuka, Shirabi Lightnovel Boku no Shiranai Rabukome (the love comedies I don’t know), Kashimoto Tsubame, Pyon-Kti Lightnovel Owari no Album (album of the end), Sugii Hikari

Note the pen names are kept as is: their surnames – if those could be called surnames – sits before their names. Make sure before reading on.

Continue reading

This article contains spoilers, which may harm or even completely ruin your playing experience of the games, including but not limited to: Doki Doki Literature Club!

Proceed at your own risk.

Continue reading
Author's picture

NoirGif

A progamer.

(click me to see some )


Student(probably)