mnd mnd@io.mndet.net

Russia, Yekaterinburg

  • Spam

    2017-09-22T13:36:16Z via Pumpa To: Public CC: Followers

    I got mail with suggestion to write advertising post in this blog. Hey, pump.io popular enough for spammers!

    Sadly, it's been popular enough for that for a long time xD

    JanKusanagi at 2017-09-22T13:41:35Z

  • Scheme & Okasaki data structures

    2017-09-01T12:08:44Z via Pumpa To: Public CC: Followers

    Decided to read Okasaki work on lazy data structures. He made fix for SML syntax to achieve readable code for lazy structures in strict language. Same changes for scheme you can achieve in next manner:

    (use-modules
     (srfi srfi-45) ; lazy primitives
     (ice-9 match) ; pattern matching
     (ice-9 textual-ports))
    
    (define (read-delay chr port)
       (match (get-char port)
        (#\$ `(= force ,(read port)))
        (c (unget-char port c) `(delay ,(read port)))))
    (read-hash-extend #\$ read-delay)
    

    And thats all. To delay evaluation you can use #$expr, to match delayed structures you can write (match delayed_expr [#$$match ...]) (note: hash-dollar-dollar). And now you can write code very similay to SML code in Okasaki work:

    (define stream #$(cons 1 #$(cons 2 #$(cons 3 #$'()))
    (define (take-stream n s)
      #$(match (cons n s)
          [(0 . _) '()]
          [(_ . #$$'()) '()]
          [(k . #$$(h . t)) (cons h (take (- k 1) t))]))
    
  • Bicycle

    2017-04-29T21:09:37Z via Puma To: Public

    Season is opened. Ok, it was opened 2 weeks ago, but today was first trip over 30 kilometers.

    Not bad! =)


    🚴.......🚵

    JanKusanagi at 2017-04-29T22:25:26Z

  • pump.io 3.0.x issue

    2017-03-28T14:22:19Z via Pumpa To: Public CC: Followers

    After upgrade I can't use uploads. After update I move files

    /srv/pumpio/* -> /src/pumpio/uploads/*

    and changed configuration:

    "uploaddir": "/srv/pumpio", --> "datadir": "/srv/pumpio",

    As result I can't open my old images and upload new ones. All files under /src/pumpio accessible to "pumpio" user.

    Any suggestions? My pump.io works with nginx and updates manually from git

    I imagine you followed the steps outlined on this issue.


    Do you have the 'enableUploads' option mentioned there?


    Also, did you do this? "Move the former uploaddir into the datadir, renaming it uploads if they hadn't already"


    Actually:

    >> mnd:

    “[...] and changed configuration:
    "uploaddir": "/srv/pumpio", --> "datadir": "/srv/pumpio [...]”

    shouldn't the new "datadir" variable point to the directory where you moved the stuff, /src/pumpio/uploads"? Assuming that 'src' is not a typo.


    Also, IIUC, I think you'll have another "./uploads" inside the datadir, so your path will have 2 "/uploads".



    Anyway, too many questions for now. Taking a look at what the automation script for this does might help re-trace your steps.

    JanKusanagi at 2017-03-28T14:40:09Z

    @JanKusanagi @ DM, thank you! Now it works. In pump.io.json.sample option named uploadsEnabled.

    mnd at 2017-03-28T14:48:20Z

    You're very welcome =)

    JanKusanagi at 2017-03-28T14:57:56Z

  • 2017-03-05T19:03:34Z via io.mndet.net Web To: Public CC: Followers

    Journalistic investigation about "received as a gift" assets of the head of Russian government (there is english subtitles) https://www.youtube.com/watch?v=qrwlk7_GF9g

  • night thoughts

    2017-02-09T20:13:48Z via Puma To: Public

    It's time to decise what I want from this life… But I'm too young for midlife crysis!

  • emacs module

    2017-02-08T20:47:25Z via Puma To: Public

    Creating module for emacs at work. Good. Not sure if this module will be published. Not so good.

  • guix environment

    2016-12-09T11:14:14Z via Dianara To: Public CC: Followers

    I guess it must be something like

    guix environment -L ~/Workspace/guix-mnd-pkgs -C --ad-hoc sdcc stm8flash make -e '(@ (gnu) %base-packages)' --share=${HOME}/Workspace/libstm8=/src/libstm8

    for clean environment with specified files in specified place

    I think I must send code for stm8flash package to guix...

    mnd at 2016-12-09T11:35:49Z

  • openid

    2016-12-02T01:35:22Z via Puma To: Public

    I do not know if anyone still used OpenID, but I installed OpenID server to own host.

    Is there any alive login projects that can be installed to own host?

    Timo Kankare, Claes Wallin (韋嘉誠), Douglas Perkins likes this.

    Claes Wallin (韋嘉誠) shared this.

  • LinkedIn blocked in Russia

    2016-11-17T09:32:49Z via Dianara To: Public CC: Followers

    I think this is good time to finally create account at LinkedIn.

  • Pump.io v2.0.4

    2016-11-14T22:40:06Z via Pumpa To: Public CC: Followers

    io.mndet.net updated

  • Jaws brewery

    2016-11-04T13:18:44Z via Puma To: Public

    Just come from tour to “Jaws” brewery. One of the best Russian beer!

  • GNU Make

    2016-10-25T14:15:05Z via Dianara To: Public CC: Followers

    It supposed to work in this manner?

    $ cat a
    VARIABLE_WITH_QUESTION ? = 1
    VARIABLE_WITHOUT_QUESTION ?= 2
    VARIABLE WITH SPACES = 3
    VARIABLE  WITH  SPACES = 4
    NEWLINES\
    REPLACED  WITH    \
      ONE \
    SPACE = 5
    
    all:
            @echo $(VARIABLE_WITH_QUESTION ?)
            @echo $(VARIABLE_WITHOUT_QUESTION)
            @echo $(VARIABLE WITH SPACES)
            @echo $(VARIABLE  WITH  SPACES)
            @echo $(NEWLINES REPLACED  WITH ONE SPACE)
    $ make -f a
    1
    2
    3
    4
    5
    $ make --version
    GNU Make 3.81
    Copyright (C) 2006  Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.
    There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
    PARTICULAR PURPOSE.
    
    This program built for x86_64-pc-linux-gnu
    $ 
    
    

    Note two spaces in "NEWLINES REPLACED WITH ONE SPACE" name.

    AJ Jordan likes this.

  • Election

    2016-09-23T22:12:51Z via Impeller To: Public CC: Followers

    Russian Duma election is over. The winning party added to themself about 12 millions fake votes (12 of 50 millions).

    There is millions statistically improbable votes. If we remove this suspicious votes then results will be much closer to exit polls.

    mnd at 2016-09-24T19:07:00Z

  • libreboot update

    2016-09-09T08:01:53Z via Dianara To: Public CC: Followers

    To update libreboot on laptop you must reboot with "nopat iomem=relaxed" kernel options.

  • Russian post

    2016-09-08T18:07:56Z via Pumpa To: Public CC: Followers

    Postal tracking said that my order delivered to office with zip code 620143. It was sent to office 620144. It's at far end of my town! At least same town.

  • FLOSS in cars

    2016-08-14T21:51:07Z via Puma To: Public

    Looking at @Bradley M. Kuhn post I have got idea.

    FLOSS in cars is excellent idea for autopilots. Not only because FLOSS is ethical, but because free software can solve issue with responsibility for crashes. If source would be freely available then insurance companies could take responsibility for specific autopilot modification that used in specific car.

  • downtime

    2016-08-07T21:44:07Z via Pumpa To: Public CC: Followers

    Sorry for long downtime. Just forgot about my server

  • ssl certificates

    2016-08-01T13:03:48Z via Dianara To: Public CC: Followers

    Yesterday I updated certificates for my io.mndet.net (my pump.io instance) and for www.mndet.net. Still from StartSSL. Still did not adopt Let's Encrypt.