首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏开源部署

    MySQL主从复制详解

    ghc-ghc-devel.x86_64 0:7.6.3-26.4.el7 will be installed --> Processing Dependency: ghc-ghc(x86-64) = Dependency: ghc(ghc-7.6.3-12ed9fda297e18c83fc01b7e90af0868) for package: ghc-ghc-devel-7.6.3-26.4.el7 ) for package: ghc-ghc-devel-7.6.3-26.4.el7.x86_64 --> Processing Dependency: ghc-devel(binary-0.5.1.1 : ghc-devel(filepath-1.3.0.1-b12cbe18566fe1532a1fda4c85e31cbe) for package: ghc-ghc-devel-7.6.3-26.4. ) for package: ghc-ghc-devel-7.6.3-26.4.el7.x86_64 ---> Package ghc-hashed-storage.x86_64 0:0.5.10-7.

    2.7K30编辑于 2022-08-18
  • 来自专栏pydata

    ubuntu 14.04 install haskell

    下面是安装ghc的步骤: sudo aptitude build-dep ghc sudo aptitude install git autoconf automake libtool make ncurses-dev g++ llvm gpaco wget https://www.haskell.org/ghc/dist/7.8.3/ghc-7.8.3-src.tar.bz2 tar jxvf ghc-7.8.3- src.tar.bz2 cd ghc-7.8.3-src . /configure --prefix=/usr/local/ghc make -j8 sudo paco -D make install sudo aptitude purge ghc 编辑.bashrc 文件 PATH="/usr/local/ghc/bin:$PATH" source ~/.bashrc ghci #验证是否安装成功 sudo aptitude purge ghc Cabal是Haskell

    1.1K10发布于 2018-08-02
  • 来自专栏IT杂记

    Pandoc安装实现Markdown转PDF (CentOS6)

    官方网址:https://pandoc.org/ Pandoc安装 由于Centos6的yum源中haskell相关的版本都比较老了,所有须要自行源码安装,须要安装的内容有:ghc, cabal, pandoc ghc是haskell的编译器,cabal是一种包管理器,可以很方便的自动安装各种包和依赖,pandoc就是使用cabal来安装的,TeX是一种文档排版系统,texlive是like unix下的一种TeX ghc安装 pandoc官方文档提到: Note that pandoc requires GHC >= 7.8. 所以我下载安装7.8.2, 下载安装源码包 $ wget http://www.haskell.org/ghc/dist/7.8.2/ghc-7.8.2-x86_64-unknown-linux-centos65 .tar.bz2 $ tar xf ghc-7.8.2-x86_64-unknown-linux-centos65.tar.bz2 $ cd ghc-7.8.2 $ .

    3K60发布于 2018-02-08
  • 来自专栏我的独立博客

    Haskell 自定义type与typeclass

    ’ instance Eq a => Eq [a] -- Defined in ‘GHC.Classes’ instance Eq Word -- Defined in ‘GHC.Classes’ instance Eq Ordering -- Defined in ‘GHC.Classes’ ... ’ instance Functor (Either a) -- Defined in ‘Data.Either’ instance Functor [] -- Defined in ‘GHC.Base ’ instance Functor Maybe -- Defined in ‘GHC.Base’ instance Functor IO -- Defined in ‘GHC.Base’ instance Functor ((->) r) -- Defined in ‘GHC.Base’ instance Functor ((,) a) -- Defined in ‘GHC.Base’ 可以看到typeclass

    59310编辑于 2024-09-02
  • 来自专栏黯羽轻扬

    铁定不纯的IO_Haskell笔记5

    (GHC.Prim.State# GHC.Prim.RealWorld -> (# GHC.Prim.State# GHC.Prim.RealWorld, a #)) -- Defined in ‘GHC.Types’ instance Monad IO -- Defined in ‘GHC.Base’ instance Functor IO -- Defined in ‘GHC.Base’ instance Applicative IO -- Defined in ‘GHC.Base’ instance Monoid a => Monoid (IO a) -- Defined in ‘GHC.Base’ 从类型上看,IO与Maybe :: * -> *类似,都是接受一个具体类型参数,返回具体类型(比如IO ()) P.S.其中,newtype与data类型声明类似 输入空行会退出,输入其它内容会按行原样输出 也可以编译得到可执行文件: $ ghc --make .

    1.9K30发布于 2019-06-12
  • 来自专栏黯羽轻扬

    从惰性IO说起_Haskell笔记6

    -> B.ByteString -> B.ByteString B.cons' :: GHC.Word.Word8 -> B.ByteString -> B.ByteString cons就是List Chunk "<" Empty)))))))))) > Prelude.foldr B.cons' B.empty [50..60] Chunk "23456789:;<" Empty P.S.旧版本GHC 0) putStr contents 试玩一下: $ ghc --make . /testArgs -a --p path /absolute/path/to/testArgs NODE_ENV production testArgs -a --p path P.S.除ghc -- make sourceFile编译执行外,还有一种直接run源码的方式: $ runhaskell testArgs.hs -b -c /absolute/path/to/ghc-8.0.1/bin/ghc

    2.8K30发布于 2019-06-12
  • 来自专栏SEian.G学习记录

    Online DDL 工具 gh-ost原理(二)

    1、连上从库,在主库上修改 这是gh-ost默认的工作模式,它会查看从库情况,找到集群的主库并且连接上去,对主库侵入最少,大体步骤是: 在主库上创建_xxx_gho、_xxx_ghc,并修改_xxx_gho 2、直接主库修改 在主库上创建_xxx_gho、_xxx_ghc,并修改_xxx_gho表结构; 从主库上读取二进制日志事件,将变更应用到主库上的_xxx_gho表; 在主库上读源表的数据写入_xxx_gho :44:01.095759Z 1761855 Binlog Dump Log: 'mysql3306.000064' Pos: 8255879 3、创建log表_xxx_ghc `_employees_ghc` 2019-12-07T14:44:01.109409Z 1761853 Query create /* gh-ost */ table `wjq`. `_employees_ghc` ( id bigint auto_increment, last_update

    1.1K20发布于 2021-03-03
  • 来自专栏黯羽轻扬

    newtype_Haskell笔记8

    undefined *** Exception: Prelude.undefined CallStack (from HasCallStack): error, called at libraries/base/GHC /Err.hs:79:14 in base:GHC.Err undefined, called at <interactive>:12:1 in interactive:Ghci1 能够用来检验惰性( undefined "*** Exception: Prelude.undefined CallStack (from HasCallStack): error, called at libraries/base/GHC /Err.hs:79:14 in base:GHC.Err undefined, called at <interactive>:37:10 in interactive:Ghci17 而下面这种形式的就不会被计算

    1K30发布于 2019-06-12
  • 来自专栏张恒的网络日志

    python写一个日志查询工具(登录ftp服务器得到日志并分析)

    = 'Gavin' import os from HashMap import HashMap import shutil from FTPUtils import FTPUtils class ghc (object): def __init__(self): self.name = "ghc" def look(self): print self.name name__ == "__main__": port = 22 host = "xxx.cn" user = "xxx" password = "xxx" g = ghc 接下来就是打包了,命令是这样的 python {你的Pyinstaller文件夹位置}pyinstaller.py --console --onefile ghc.py --console是指转化为命令行式的

    1.1K10发布于 2020-04-28
  • 来自专栏黯羽轻扬

    Functor与Applicative_Haskell笔记7

    ’ instance Functor Maybe -- Defined in ‘GHC.Base’ instance Functor IO -- Defined in ‘GHC.Base’ instance Functor ((->) r) -- Defined in ‘GHC.Base’ instance Functor ((,) a) -- Defined in ‘GHC.Base’ (注意:简单起见 ’ instance Applicative Maybe -- Defined in ‘GHC.Base’ instance Applicative IO -- Defined in ‘GHC.Base ’ instance Applicative ((->) a) -- Defined in ‘GHC.Base’ instance Monoid a => Applicative ((,) a) -- Defined in ‘GHC.Base’ Maybe instance Applicative Maybe where pure = Just Nothing <*> _ = Nothing (

    81130发布于 2019-06-12
  • 来自专栏子曰五溪

    Haskell

    这两种安装包,都包含了ghcghc包含了三个主最要的部分: ghc 编译器 ghci 交互式解析器和调试器 runghc 以脚本的方式运行Haskell 而我们即将学习的起点就是在ghci中来练习Haskell的基本语法。

    1.3K30发布于 2019-06-24
  • 来自专栏掘金安东尼

    热爱函数式的你,句句纯正的 Haskell【类型篇】

    调试 目前 Haskell 的主要编译器是 GHC,下载地址,你可以创建 .hs 文件,用 Notepad++ 打开。 GHCi 是 GHC 的一部分,可以解析、调试 Haskell 程序。 也可以新建一个文件:Helloworld.hs 然后 :l 引入,输入 main 运行: Prelude> :l D://ghc-haskell//test.hs *Main> main Hello, True&&False not True Char 字符型,与其它语言一致 Prelude> :t "str" "str" :: [Char] Int 有符号整数,它的范围与操作系统和 GHC

    1.9K30编辑于 2022-09-19
  • 来自专栏SEian.G学习记录

    Online DDL 工具 gh-ost实战(一)

    `_employees_ghc` 2019-12-07 22:44:01 INFO rotate to next log from mysql3306.000064:0 to mysql3306.000064 ---------------------+ | Tables_in_wjq (%employees%) | +-----------------------------+ | _employees_ghc ------+ 3 rows in set (0.00 sec) root@localhost:mysql3306.sock [wjq]>show create table _employees_ghc \G; *************************** 1. row *************************** Table: _employees_ghc Create ) ENGINE=InnoDB AUTO_INCREMENT=311 DEFAULT CHARSET=utf8mb4 1 row in set (0.00 sec) _employees_ghc

    2.7K30发布于 2021-03-03
  • 来自专栏idba

    gh-ost 原理剖析

    -08T22:01:20.948065+08:00 17762 Binlog Dump Log: 'mysql-bin.000005' Pos: 795282 3 创建 日志记录表 xx_ghc 如下日志记录了该过程,gh-ost会将核心步骤记录到 _b_ghc 中。 `_b_ghc` ( id bigint auto_increment, last_update timestamp not null DEFAULT CURRENT_TIMESTAMP `_b_ghc`(id, hint, value)values (NULLIF(2, 0), 'state', 'GhostTableMigrated') on duplicate key update `_b_ghc` 如果cut-over过程的各个环节执行失败会发生什么? 其实除了安全,什么都不会发生。 如果c10的create `_b_del` 失败,gh-ost 程序退出。

    2.6K40发布于 2019-09-24
  • 来自专栏技术杂记

    nginx基础3

    pcre.x86_64 7.8-6.el6 @anaconda-CentOS-201410241409.x86_64/6.6 ghc-pcre-light.x86 _64 0.4-7.el6 epel ghc-pcre-light-devel.x86_64

    48910编辑于 2022-05-12
  • 来自专栏MYSQL轻松学

    MySQL DDL Online Schema Change—gh-ost介绍

    1、校验阶段: 检查有没有外键和触发器 检查表的主键信息 预估行数 检查是否主库或从库,是否开启log_slave_updates,以及binlog信息 检查gho和del结尾的临时表是否存在 创建ghc 清理_ghc表。 流程图: ? gh-ost三种模式: ? a. 连接从库,在主库执行 gh-ost默认执行方式,查看从库情况,并获取主库信息并连到主库,对主库侵入最小。 步骤为: 1)在主库上创建_xxx_gho、_xxx_ghc,并修改_xxx_gho表结构; 2)从slave上读取binlog日志事件,将变更应用到主库上的_xxx_gho表; 3)在主库上读源表的数据写入

    1.7K31发布于 2019-12-05
  • 来自专栏note

    本地使用 Haskell CodeWorld Locally

    = 4.11 && < 5 , codeworld-api >= 0.4 && < 0.8 , doctest ghc-options

    75430编辑于 2022-05-20
  • 来自专栏全栈程序员必看

    手眼标定算法Tsai-Lenz代码实现(Python、C++、Matlab)

    , 0, 0, 1] Homo_cam2gripper 是否包含旋转矩阵:1 Matlab版本: % handEye - performs hand/eye calibration % % gHc % (relative to the calibration block) % Dimension: size(Hwc) = size(Hbg) % gHc point of the camera is positioned, .. % .. relative to the gripper, at % f = gHc Also refered to as transformation from camera to world % function gHc = handEye(bHg, wHc) M = size( = Rcg(1:3,1:3)*Hcij(1:3,4) - Hgij(1:3,4); % right-hand side end; end; Tcg = A \ B; gHc

    2.2K10编辑于 2022-08-31
  • 来自专栏新智元

    GitHub趋势榜第一:超级命令行工具Semantic,比较解析源代码

    force cabal new-update cabal new-build cabal new-test cabal new-run semantic -- --help Semantic最低要求GHC 我们建议使用ghcup沙箱GHC版本。我们使用的版本基于StackageLTS版。目前的LTS版本是13.13。如果您愿意,也可以使用堆栈版。

    1K30发布于 2019-06-05
  • 来自专栏萝卜要加油

    每日 Hacker New 热点-2025-11-03

    GHC now runs in the browser 链接[1] | 评论[2] Haskell 编译器 GHC 现在可以在浏览器中运行,通过 WebAssembly 技术实现,无需本地安装即可编译和测试代码 引用链接 [1]链接: https://discourse.haskell.org/t/ghc-now-runs-in-your-browser/13169 [2]评论: https://news.ycombinator.com

    25810编辑于 2025-11-14
领券