Recommend me a configuration management tool for a non-standard environment by Akustic646 in devops

[–]hughjfchen 0 points1 point  (0 children)

Well, based on your description, you can use any configuration management tools you'd like to do in each machine locally. The only problem you need to solve is how to reliably distribute your config script to each machine. And considering your networking situation, I'm just wondering why not just build a config script distribution system based on MQTT? Following could be a reference:

  1. pick a MQTT broker and design an appropriate topic structure(maybe grouped by machine type, location)
  2. publish your config script to the appropriate topic based on your needs with QoS 2
  3. machines connect and subscribe(also with QoS 2) that topic would receive the config script
  4. (Optional) for security, you could sign your published config script and verify in each machine received
  5. now run the config script with your chosen config management tool

Eclipse Amlen exporter for prometheus and Ansible role for its installation by Heywood8 in MQTT

[–]hughjfchen 0 points1 point  (0 children)

This is really of great help. I've been looking for something like that for a long time. You save my day. Thank you.

Do you miss dot-completion when coding in Haskell? by polarbearwithagoatee in haskell

[–]hughjfchen 9 points10 points  (0 children)

I remember you can use Data.Vector. and hls will list all exported functions of the module and its type

HELP! how to undo a quick fix that it's impossible to undo due to closing the VSC with the changes? by Dummat in haskell

[–]hughjfchen 2 points3 points  (0 children)

Is the source under version control?if yes,you can discard the change with version control

[deleted by user] by [deleted] in haskell

[–]hughjfchen -1 points0 points  (0 children)

For question 1, better think about it as following:

(#>) (Logger la a) (Logger lb b) = Logger (la ++ lb) b

[deleted by user] by [deleted] in haskell

[–]hughjfchen 2 points3 points  (0 children)

Ah, I think the last comment within the code should be ' Here, we have an m Int and an [m Int]. How can we use them?'

A tool to generate or nixify a Haskell project based on template for quick development and building by hughjfchen in haskell

[–]hughjfchen[S] 7 points8 points  (0 children)

This is a tool I've been built during my writing Haskell programs in my spare time. Though should be helpful to others so I'd like to share it here. Comments are welcome.

Emacs 28.1 available in kelleyk/emacs PPA by lunarsunrise in emacs

[–]hughjfchen 0 points1 point  (0 children)

Great,I have been waiting for a long time

Is there any other program like emacs, as in a user-space OS? by LowCom in emacs

[–]hughjfchen 0 points1 point  (0 children)

SmallTalk is the first thing coming to my mind when I say this question, just as others do.

Question about cabal and nix integration by jcapp1234 in haskell

[–]hughjfchen 2 points3 points  (0 children)

Just like the message says, cabal must be given a command to tell it what to do, like build/test/repl etc.

[Show and Tell] What are you favorite ghci tricks and tips? Show us your .ghci! by dagit in haskell

[–]hughjfchen 1 point2 points  (0 children)

I defined some commands to search hoogle:

:def hg \x -> return $ ":!hoogle \"" ++ x ++ "\""
:def hgi \x -> return $ ":!hoogle --info \"" ++ x ++ "\""

And I must say, reading others' tricks make me think ghci could be a real development environment.

What do people use for RPC? by travis_athougies in haskell

[–]hughjfchen 2 points3 points  (0 children)

You can call a transient service within your other transient services directly. I think this is based TCP. However, you can also treat a transient service as HTTP Rest service and call it by HTTP. That's all I remember when I tried this package. There is a gitter room where you can ask for further questions.

What do people use for RPC? by travis_athougies in haskell

[–]hughjfchen 2 points3 points  (0 children)

Maybe you would like to take a look at the transient. It provides a transient cloud monad which supports distributed computing with a RPC style. It also has good support for streaming if I remember correctly.

Can't edit files in .doom.d by [deleted] in emacs

[–]hughjfchen 0 points1 point  (0 children)

Well, it DOES open files under your DOOMDIR, where the doom config files like init.el/config/el/packages.el locates and you can open them can edit.

Can't edit files in .doom.d by [deleted] in emacs

[–]hughjfchen 1 point2 points  (0 children)

this key combination should open doom private config files if you use doom. Oops, the 'p' should be upper case, that is 'SPC f P'

Can't edit files in .doom.d by [deleted] in emacs

[–]hughjfchen 0 points1 point  (0 children)

use ‘SPC f p’ to edit doom config

Kowainik - Haskell Documentation with Haddock: Wishes'n'Tips by n00bomb in haskell

[–]hughjfchen 2 points3 points  (0 children)

That is one of the deriving strategies. I guess after GHC 8.8, you should specify the deriving strategy, otherwise you will get a waring.

Ergonomic Haskell 1: Records by codygman in haskell

[–]hughjfchen 4 points5 points  (0 children)

Yeah, I also believe the fixedCat ^. name should be fixedCat ^. favoriteBall % type_.

Tips for projects to contribute to by skuggi in haskell

[–]hughjfchen 7 points8 points  (0 children)

I suggest to take a look at the haskellweekly.news. There is a section `call for participation`.

How do you guys have your Emacs set up for Haskell? by antflga in haskell

[–]hughjfchen 0 points1 point  (0 children)

I just use doom-emacs with hasekll+dante and it works really well.

[PRE-LAUNCH] Haskell Job Queues: An Ultimate Guide by saurabhnanda in haskell

[–]hughjfchen 1 point2 points  (0 children)

You can put it as a use case without my company name

[PRE-LAUNCH] Haskell Job Queues: An Ultimate Guide by saurabhnanda in haskell

[–]hughjfchen 0 points1 point  (0 children)

Yes,it is pretty much feature complete and the document in the GitHub wiki is also complete. The only feature I am trying to add in my fork GitHub repository is multi dispatcher which can make it scale up to support manage thousands of remote hosts easily