Show newer
王小美 boosted

Cliffs at Navajo Loop Trail below Sunset Point, Bryce Canyon National Park, Utah, USA

王小美 boosted

​互动抽奖
坎公快讯!公测200日即将到来之际,11月11日维护结束后,《坎公骑冠剑》将开启【200天纪念签到 免费礼包】!14日共计可获得【钻石*6000+超凡突破锤*1+体力*100+经验结晶*140000+金币*100000】,关注并转发本条动态,我们将于11月14日抽取5名守护者送出坎公骑冠剑周边礼包一份,感谢各位守护者对我们的支持~
==============
(一)活动时间
11月11日维护完成后~11月25日停机维护前领取

(二)活动条件
在探险中通关“世界1”后,可前往卡马逊商店开启【200天纪念签到 免费礼包】;该礼包仅限开启1次。

(三)活动奖励一览
开启【200天纪念签到 免费礼包】后,活动时间内14天共计可领取【钻石*6000+超凡突破锤*1+体力*100+经验结晶*140000+金币*100000】奖励!

:sys_bilibili: t.bilibili.com/591343612850521

封装了一个vue 的 navigation hook:

import type { AxiosResponse } from 'axios'
import { reactive } from 'vue'
import { ElMessage } from 'element-plus'
import type { Pagination, PaginationModel } from '@/model/rootObject'
import type { PaginationRequestBase } from '@/apis/requestType'

export const usePagination = <Q extends PaginationRequestBase, T>(
  AxiosRequest: (query: Q) => Promise<AxiosResponse<PaginationModel<T>, any>>,
  queryOptions: Parameters<typeof AxiosRequest>[0]
) => {
  const state = reactive({
    fetchingError: false,
    fetching: true,
    list: [] as T[],
    pagination: { current: queryOptions.current || 1, pages: NaN, total: NaN, size: queryOptions.size || 10 } as Pagination
  })

  const fetchList = async () => {
    // @ts-ignore
    delete queryOptions.current
    // @ts-ignore
    delete queryOptions.size

    AxiosRequest({
      ...queryOptions,
      current: state.pagination.current,
      size: state.pagination.size
    })
      .then((res) => {
        state.list = res.data.data.records as typeof state.list

        state.pagination.current = res.data.data.current
        state.pagination.pages = res.data.data.pages
        state.pagination.total = res.data.data.total
        state.pagination.size = res.data.data.size
        state.fetchingError = false
      })
      .catch((err) => {
        state.fetchingError = true
        ElMessage.error(err.message)
      })
      .finally(() => {
        state.fetching = false
      })
  }

  const handlePageSizeChange = (val: number) => {
    state.pagination.size = val
    fetchList()
  }

  const handlePageCurrentChange = (val: number) => {
    state.pagination.current = val
    fetchList()
  }

  const handlePagePrevClick = () => {
    state.pagination.current--
    state.pagination.current = Math.max(state.pagination.current, 0)
    fetchList()
  }

  const handlePageNextClick = () => {
    state.pagination.current++
    state.pagination.current = Math.min(state.pagination.current, state.pagination.pages)
    fetchList()
  }

  return { state, methods: { fetchList, handlePageSizeChange, handlePageCurrentChange, handlePagePrevClick, handlePageNextClick } }
}

似乎是和插件TSLint冲突了,把TSLint卸载以后就好了(光是禁用也不行)

Show thread
王小美 boosted

Fedora怎么还自带这种玩意儿,可视化逼格太低了啦

:bili_recixilie_nibiyoule:
//转发自: @谭乔: 【谭sir与大爷】过 命 之 交
明日之后第四季:生存之战三部曲之《末日无间》
“你是为了我学会三轮车漂移的吗?”
“只能,漂一点点……“

:sys_video: api.2heng.xin/bilibili/og.php?
:sys_bilibili: t.bilibili.com/590775234063080

今天才发现以前写的自动备份脚本忘记写密码了,于是每次pg dump实际都没有执行成功,这一年多一直就是备份了个寂寞,也幸亏今年没出现什么意外

然而真的今天跑了一次pg dumpall,发现性能开销极大(8GB的数据库,把其他所有服务停了也得20分钟才能dump完),打算以后备份策略改为直接停机压缩打包所有PostgreSQL文件 :catthink:

Show thread

吓死我了,这还以为刚刚把数据库搞丢了

分享动态
//转发自: @eee花凋零: 【原神】新功能?待机动画竟能互动了
视频整了不少时间了 好兄弟点个赞吧
这是对UP主最大的动力,,Ծ‸Ծ,, 
投币 收藏 我直接好耶 ヾ(✿゚▽゚)ノ
(EDG好样的)

:sys_video: api.2heng.xin/bilibili/og.php?
:sys_bilibili: t.bilibili.com/590691203025001

我的cf partner该不会是被吊销了吧 :bili_2233_chijing:

迁移postgresql 14的时候报错有点多,回退了 

,
PostgreSQL Database directory appears to contain a database; Skipping initialization,
,
2021-11-08 03:10:09.353 UTC [1] LOG: starting PostgreSQL 14.0 on x86_64-pc-linux-musl, compiled by gcc (Alpine 10.3.1_git20210424) 10.3.1 20210424, 64-bit,
2021-11-08 03:10:09.353 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432,
2021-11-08 03:10:09.353 UTC [1] LOG: listening on IPv6 address "::", port 5432,
2021-11-08 03:10:09.359 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432",
2021-11-08 03:10:09.369 UTC [21] LOG: database system was shut down at 2021-11-08 03:09:59 UTC,
2021-11-08 03:10:09.377 UTC [1] LOG: database system is ready to accept connections,
2021-11-08 03:10:57.632 UTC [43] ERROR: role "postgres" already exists,
2021-11-08 03:10:57.632 UTC [43] STATEMENT: CREATE ROLE postgres;,
2021-11-08 03:11:52.879 UTC [22] LOG: checkpoints are occurring too frequently (24 seconds apart),
2021-11-08 03:11:52.879 UTC [22] HINT: Consider increasing the configuration parameter "max_wal_size".,
2021-11-08 03:12:04.023 UTC [45] ERROR: invalid input syntax for type boolean: "",
2021-11-08 03:12:04.023 UTC [45] CONTEXT: COPY mentions, line 880367, column silent: "",
2021-11-08 03:12:04.023 UTC [45] STATEMENT: COPY public.mentions (id, status_id, created_at, updated_at, account_id, silent) FROM stdin;,
2021-11-08 03:12:12.970 UTC [45] ERROR: invalid input syntax for type bigint: "c565353",
2021-11-08 03:12:12.970 UTC [45] CONTEXT: COPY preview_cards, line 534192, column id: "c565353",
2021-11-08 03:12:12.970 UTC [45] STATEMENT: COPY public.preview_cards (id, url, title, description, image_file_name, image_content_type, image_file_size, image_updated_at, type, html, author_name, author_url, provider_name, provider_url, width, height, created_at, updated_at, embed_url, image_storage_schema_version, blurhash) FROM stdin;,
2021-11-08 03:12:17.027 UTC [22] LOG: checkpoints are occurring too frequently (25 seconds apart),
2021-11-08 03:12:17.027 UTC [22] HINT: Consider increasing the configuration parameter "max_wal_size".,
2021-11-08 03:12:19.727 UTC [45] ERROR: invalid input syntax for type timestamp: "",
2021-11-08 03:12:19.727 UTC [45] CONTEXT: COPY status_stats, line 974194, column updated_at: "",
2021-11-08 03:12:19.727 UTC [45] STATEMENT: COPY public.status_stats (id, status_id, replies_count, reblogs_count, favourites_count, created_at, updated_at) FROM stdin;,
2021-11-08 03:12:33.652 UTC [22] LOG: checkpoints are occurring too frequently (16 seconds apart),
2021-11-08 03:12:33.652 UTC [22] HINT: Consider increasing the configuration parameter "max_wal_size".,
2021-11-08 03:12:51.660 UTC [22] LOG: checkpoints are occurring too frequently (18 seconds apart),
2021-11-08 03:12:51.660 UTC [22] HINT: Consider increasing the configuration parameter "max_wal_size".,
2021-11-08 03:13:11.506 UTC [22] LOG: checkpoints are occurring too frequently (20 seconds apart),
2021-11-08 03:13:11.506 UTC [22] HINT: Consider increasing the configuration parameter "max_wal_size".,
2021-11-08 03:13:27.982 UTC [22] LOG: checkpoints are occurring too frequently (16 seconds apart),
2021-11-08 03:13:27.982 UTC [22] HINT: Consider increasing the configuration parameter "max_wal_size".,
2021-11-08 03:13:49.128 UTC [74] ERROR: canceling autovacuum task,
2021-11-08 03:13:49.128 UTC [74] CONTEXT: while scanning block 62212 of relation "public.media_attachments",
automatic vacuum of table "postgres.public.media_attachments",
2021-11-08 03:13:53.847 UTC [74] ERROR: canceling autovacuum task,
2021-11-08 03:13:53.847 UTC [74] CONTEXT: while scanning block 7912 of relation "public.mentions",
automatic vacuum of table "postgres.public.mentions",
2021-11-08 03:13:55.768 UTC [74] ERROR: canceling autovacuum task,
2021-11-08 03:13:55.768 UTC [74] CONTEXT: while scanning block 2208 of relation "public.pghero_space_stats",
automatic vacuum of table "postgres.public.pghero_space_stats",
2021-11-08 03:13:57.035 UTC [74] ERROR: canceling autovacuum task,
2021-11-08 03:13:57.035 UTC [74] CONTEXT: while scanning block 2117 of relation "public.preview_cards",
automatic vacuum of table "postgres.public.preview_cards",
2021-11-08 03:14:00.123 UTC [94] ERROR: canceling autovacuum task,
2021-11-08 03:14:00.123 UTC [94] CONTEXT: while scanning block 39950 of relation "public.statuses",
automatic vacuum of table "postgres.public.statuses",
2021-11-08 03:15:33.147 UTC [22] LOG: checkpoints are occurring too frequently (24 seconds apart),
2021-11-08 03:15:33.147 UTC [22] HINT: Consider increasing the configuration parameter "max_wal_size".,
2021-11-08 03:15:37.676 UTC [125] ERROR: canceling autovacuum task,
2021-11-08 03:15:37.676 UTC [125] CONTEXT: while scanning block 213998 of relation "public.statuses",
automatic vacuum of table "postgres.public.statuses"

分享动态
//转发自: @-MeilleurEager: 2003年 18岁的艾薇儿在韩国演唱了首专神曲《tomorrow》

那一年她发了首专《letgo》一夜爆红
那时候的艾薇儿风吹起她的头发是青春最美好的样子

:sys_video: api.2heng.xin/bilibili/og.php?
:sys_bilibili: t.bilibili.com/590054843496125

王小美 boosted
Show older
小森林

每个人都有属于自己的一片森林,也许我们从来不曾走过,但它一直在那里,总会在那里。迷失的人迷失了,相逢的人会再相逢。愿这里,成为属于你的小森林。